blob_id
stringlengths
40
40
language
stringclasses
1 value
repo_name
stringlengths
5
116
path
stringlengths
2
241
src_encoding
stringclasses
31 values
length_bytes
int64
14
3.6M
score
float64
2.52
5.13
int_score
int64
3
5
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
text
stringlengths
14
3.57M
download_success
bool
1 class
4ec0d7da1e2d719be4791cecb0628820cd297aa5
PHP
franc6/BOF
/src/classes/Projector.php
UTF-8
2,566
2.828125
3
[ "MIT" ]
permissive
<?php namespace ICCM\BOF; use \Firebase\JWT\JWT; use \PDO; class Projector { private $view; private $dbo; private $router; function __construct($view, $router, $dbo) { $this->view = $view; $this->router = $router; $this->dbo = $dbo; } function _getNominationStage() { return $this->d...
true
68dc36ae55d0405d693b20ef06e524fd98ce54a9
PHP
apardo04/intercustom
/public/sendquote.php
UTF-8
3,359
2.515625
3
[]
no_license
<?php Function SendMail($myName,$myFrom,$myReplyTo,$myTo, $myCCList, $myBCCList, $mySubject,$myMsg, $MailFormat) { global $WU_DATA; if(!isset($MailFormat) || ($MailFormat!=0 && $MailFormat!=1)) $MailFormat = 1; if($MailFormat==1) { $myMsgTop = "<table border='0' cellspacing='0' cellpadding='2' width='95%'> ...
true
8150fcb5f2e9884255697a20dc38bf1d9700e4a5
PHP
spujadas/exposure
/tests/Exposure/Tests/ODM/SubscriptionTypeAndDurationODMTest.php
UTF-8
4,194
2.59375
3
[ "MIT", "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
<?php /* * This file is part of the Exposure package. * * Copyright 2013 by Sébastien Pujadas * * For the full copyright and licence information, please view the LICENCE * file that was distributed with this source code. */ namespace Exposure\Tests\ODM; use Exposure\Model\SubscriptionTypeAndDuration, Expo...
true
8c25afc2c760963407844f8c6747ed635c5d97b1
PHP
sonthen/bukalapak
/app/Http/Controllers/productController.php
UTF-8
2,955
2.8125
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use App\product; class productController extends Controller { function getAllProduct(){ // if (! $user = JWTAuth::parseToken()->authenticate()) { // return response()->json(['user_not_foun...
true
1a1f485f685d7a4f4d6459739128424d6da9797f
PHP
bolmstedt/advent-of-code-php
/src/Days/Y2015/D15/Day.php
UTF-8
2,272
3.171875
3
[]
no_license
<?php namespace Bolmis\AdventOfCode\Days\Y2015\D15; use Bolmis\AdventOfCode\Commands\AbstractDayCommand; final class Day extends AbstractDayCommand { protected $description = 'Science for Hungry People'; protected $ingredients = []; protected $doughs = []; protected function processPayload($payload)...
true
5df18bf99f8742bd48f51198250329eed3d7ee7d
PHP
wercascaded/photomarket
/application/libraries/Applib.php
UTF-8
26,093
2.609375
3
[ "Apache-2.0" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class AppLib { private static $db; // Define system tables public static $user_table = 'users'; public static $invoices_table = 'invoices'; public static $invoice_items_table = 'items'; public static $tax_rates_table ...
true
6c495819cc5e32b0f98bedae1dec3870fab19e2c
PHP
uhde/DokumentationssystemIT3
/db_cleanup.php
UTF-8
1,222
2.578125
3
[]
no_license
<html> <head> <?php // Mithilfe dieses Scriptes werden Einträge, die schon ein Jahr lang als gelöscht markiert sind, auch tatsächlich gelöscht require('include/config.inc.php'); include("include/mysql.class.php"); include("include/template.class.php"); include("include/functions.inc.php"); $objMySQL = new MySQL(); ...
true
c4b84472a9b5dddf585de96f6c9fa6a42da521ce
PHP
dammydev2/physio
/vendor/laravel/framework/src/Illuminate/Database/Console/Migrations/BaseCommand.php
UTF-8
1,450
3.078125
3
[]
no_license
strncmp($cast, 'datetime:', 9) === 0; } /** * Determine if the cast type is a decimal cast. * * @param string $cast * @return bool */ protected function isDecimalCast($cast) { return strncmp($cast, 'decimal:', 8) === 0; } /** * Set a given attribute o...
true
c31f85d4ee81e0dd65f8a7c59fda0214394cc995
PHP
jingangzu/lianxi
/app/Http/Controllers/DataBaseController.php
UTF-8
1,020
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class DataBaseController extends Controller { // public function newQueryInsert() { for ($i = 0; $i <= 9; $i++) { $start = $i * 100000 + 1; $end = ($i+1) * 100000; if ($i == 9) { ...
true
ef5fe799e30a0cc95c89c4e71ff1842a14095e6a
PHP
rafale2k/uproda
/web/app/fuel/app/tasks/ngwords.php
UTF-8
646
2.703125
3
[]
no_license
<?php namespace Fuel\Tasks; class Ngwords { private function log($message) { \Cli::write(\Date::forge()->format('%Y-%m-%d %H:%M').': '.$message); } public function run() { try { $this->log('NGWords登録開始'); \Libs_Config::load('spamwords'); $words = \Libs_Config::get('words'); $count = 0; forea...
true
70091b1c647f772c5cad22bc1a080102c64382e1
PHP
rjredkite/bydgit
/application/helpers/custom_helper.php
UTF-8
4,712
2.90625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /*======================================================================================================== [-- PRINT_R WITH <PRE></PRE> ---------------------------------------------------------------------------] ==========================================================================================...
true
60b2125aba7f5bc80f36ac0e4e527558f18ccd27
PHP
walace100/mvc
/lib/Autoload/AutoloadReal.php
UTF-8
1,343
2.875
3
[ "MIT" ]
permissive
<?php namespace Lib\Autoload; final class AutoloadReal { /** * Verifica se o autoload do composer existe, e o chama, * Senão chamará o autoload do próprio sistema. * * @return void */ public static function bootstrap(): void { if (file_exists(ROOT . '/vendor/autoload.php'...
true
f0d4960ed73ff8158af0d62ed41a321f5a0a5f78
PHP
ShowkatAli/php_crud
/edit.php
UTF-8
3,964
2.578125
3
[]
no_license
<?php session_start(); require_once('includes/pdo.php'); if (!isset($_SESSION['user_id'])){ die('Not logged in'); return; } if(!isset($_GET['profile_id'])){ $_SESSION['error'] = "Missing profile_id"; header('Location: index.php'); return; } if (isse...
true
744342468b3fa82398f1bb2deec5d13719a88025
PHP
sezarsaman/mars-rover
/test/Model/Command/MoveTest.php
UTF-8
757
2.59375
3
[]
no_license
<?php declare(strict_types=1); namespace MarsRover\Test\Model\Command; use MarsRover\Model\Command\CommandsCollection; use MarsRover\Model\Rover\Rover; use MarsRover\Model\Rover\RoverSetup; use MarsRover\Service\CommandFactory; use PHPUnit\Framework\TestCase; class MoveTest extends TestCase { public function te...
true
2bfff9cb38c2fb52d961a641dda6d660f6819e40
PHP
Ilareguy/old-game-community-site-archive
/includes/bbcodes.php
UTF-8
18,342
2.890625
3
[]
no_license
<?php /* * Les fonctions pour transformer les textes */ if(!defined('__ROOT__')) define('__ROOT__', dirname(__FILE__) . '/'); function bbcodes($stringToTransform, $bbcodes = true){ include(__ROOT__."includes/bddConnect.php"); require_once(__ROOT__."includes/news.php"); require_once(__ROOT__.'includes/c...
true
5420256548b47412141fe2d72d4dbdc8a5cb39d0
PHP
nguyentyen/SLA-Reporting
/SLA_Reporting/Model/project_model.php
UTF-8
1,934
2.84375
3
[ "MIT" ]
permissive
<?php class Project_Model { private $project_name; private $creator; private $created_time; private $ticket_array; private $tickets_data_from_youtrack; public function __construck() { } function get_project_data() { $res['project_name'] = $this->project_na...
true
db7231a830329e1f283635c1775838553709d902
PHP
icampusittp/Coba
/functions.php
UTF-8
5,237
2.78125
3
[]
no_license
<?php // Koneksikan ke database $db = mysqli_connect("localhost", "root", "", "samsung"); function query($query){ global $db; $result = mysqli_query($db, $query); //Lemarinya $rows = []; //kotak kosong while( $row = mysqli_fetch_assoc($result)) //Ambil baju kemudian dipindahkan kekotak kosong atau mengg...
true
a1faa0e2f7be54fd5ec01a5cf0a9930b9a128afa
PHP
WackoWiki/wackowiki
/src/lib/HTMLSax3/Decorators/CaseFolding.php
UTF-8
1,551
3.5625
4
[ "BSD-3-Clause" ]
permissive
<?php namespace HTMLSax3; /** * Coverts tag names to upper case * @package HTMLSax3 * @access protected */ class CaseFolding { /** * Original handler object * @var object * @access private */ public $orig_obj; /** * Original open handler method * @var string * @access private */ public $orig_o...
true
1f57f920b2a9707977943f7c9ffc50361b574728
PHP
schematical/ffs
/ctl/data/search_bkup.php
UTF-8
2,730
2.734375
3
[]
no_license
<?php /** * Class and Function List: * Function list: * - GetExtension() * - Run() * Classes list: * - FFSJsonSearchDriverHandeler */ abstract class FFSJsonSearchDriverHandeler { public static function GetExtension() { if (array_key_exists('mjax-route-ext', $_GET)) { return $_GET['mjax-route-ext...
true
68a1c01a7971619743cf0fb5a97857162aa9bc5a
PHP
vegardsando/tilstaelsen
/plugins/calendar/services/Calendar_SelectDatesService.php
UTF-8
3,973
2.703125
3
[]
no_license
<?php namespace Craft; use Calendar\Library\DateTimeUTC; use Calendar\Library\Carbon; class Calendar_SelectDatesService extends BaseApplicationComponent { /** * Returns a list of Calendar_SelectDateModel's if any are found * * @param Calendar_EventModel $eventModel * @param \DateTime ...
true
1dcbe7365b2b463189dcb4467c3ef5eca045065e
PHP
locmark/bazy_projekt
/html/widok_wyszukaj_pracownikow.php
UTF-8
4,131
2.703125
3
[]
no_license
<h3>Wyszukaj pracownika</h3> <?php include 'scripts/show_errors.php'; include 'scripts/db_connect.php'; if(isset($_POST['nazwisko'])) { $nazwisko = $_POST['nazwisko']; } else { $nazwisko = ''; } if(isset($_POST['akademik'])) { $akademik = $_POST['akademik']; } else...
true
6e59af2fe2be63b03e4bd3b4c05a41304427826f
PHP
lovelikeyou870405/php-practice
/hello.php
UTF-8
256
2.78125
3
[]
no_license
<?php session_start(); echo "session id :".session_id()."<br>"; if(!isset($_SESSION['count'])) $_SESSION['count']=1; else $_SESSION['count']++; echo "這是您在本瀏覽器第{$_SESSION['count']}次載入本網頁"; ?>
true
5bf996ca0c967abaac979716d88d8f8783dd2d5c
PHP
Oktopost/Squid
/Source/Squid/MySql/Impl/Connection/Executors/RetryOnError/Base/IErrorValidator.php
UTF-8
353
2.515625
3
[ "MIT" ]
permissive
<?php namespace Squid\MySql\Impl\Connection\Executors\RetryOnError\Base; interface IErrorValidator { /** * @param \Exception $e * @return bool */ public function isHandled(\Exception $e); /** * @return array ["ms-delay" => Number of ms to wait before trying again, "retries" => Maximum number of retries] ...
true
8f4fed9ec89c867c7c7b71b0df6a7d3170c6c617
PHP
cXLGD/file_system
/index.php
UTF-8
4,233
2.765625
3
[]
no_license
<?php include './functions.php'; // pre(pathinfo($_SERVER['SCRIPT_FILENAME'])['dirname']); if(!empty($_GET['path'])){ $dirname = $_GET['path']; }else{ $dirname = pathinfo($_SERVER['SCRIPT_FILENAME'])['dirname']; } pre($dirname); // 创建文件 $creatName = $_POST['new_file_na...
true
da37f8e45bff558775b26b78b42689158c6d2579
PHP
Inpassor/php-rcb
/base/UserIdentity.php
UTF-8
5,033
2.71875
3
[ "MIT" ]
permissive
<?php namespace rcb\base; use \rcb\models\User; /** * Class UserIdentity * @package rcb\base * * @method array getProfileInfo() * @method void setData(array $data) * @method bool save() * * @property User $model * @property \rcb\models\UserAuth $oauthModel * @property string $token * @property int $tokenE...
true
2c3a1de606692ae202040841e3f93f6e0a42d729
PHP
sheaxiang/laravel-vue-admin
/src/Requests/StoreAdminUser.php
UTF-8
1,068
2.640625
3
[]
no_license
<?php namespace SheaXiang\LaravelAdmin\Requests; class StoreAdminUser extends ApiRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules that apply to...
true
c079c66c24b27ffd06cddaceec3ace057314a3db
PHP
nlreturns/inventApp
/==ONLINE==/classes/Client.php
UTF-8
3,607
2.96875
3
[]
no_license
<?php include_once 'db/DbClient.php'; class Client extends DbClient { private $company; private $client_name; private $client_address; private $client_postal; private $client_city; private $client_telephone; private $client_email; private $client_id; ...
true
61cd09b78f2cd3eead636c8338e2b829bc401452
PHP
siosphere/virge-enigma
/Virge/Enigma.php
UTF-8
6,093
3.03125
3
[]
no_license
<?php namespace Virge; use Virge\Core\Config; /** * Used to encrypt/decrypt data * @author Michael Kramer */ class Enigma { /** * Encrypt data * @param string $data * @param string $key * @return string */ public static function encrypt($data, $key = false, $encryptionAlgorith...
true
dbd230bea614d5f67741bb064f510b1485c48035
PHP
hidalgopagoto/design-patterns-php
/ChainOfResponsability/index.php
UTF-8
735
3.078125
3
[]
no_license
<?php use Entities\DogHandler; use Entities\MonkeyHandler; use Entities\SquirrelHandler; use Interfaces\HandlerInterface; require('autoload.php'); function process(HandlerInterface $handler) { $foodList = ['Orange', 'Nut', 'Banana', 'Apple', 'Bone', 'Fish', 'Tuna']; foreach ($foodList as $food) { $re...
true
bf48e6fb765b6745a50fb2e74973ad6d4dbbb673
PHP
bborealis/TitleCase
/tests/TitleCaseGeneratorTest.php
UTF-8
3,083
3.1875
3
[ "MIT" ]
permissive
<?php require_once "src/TitleCaseGenerator.php"; class TitleCaseGeneratorTest extends PHPUnit_Framework_TestCase { function test_makeTitleCase_oneLetter(){ //Arange $test_TitleCaseGenerator = new TitleCaseGenerator; $input = "b"; //Act ...
true
40c4fef2097aa929d94da58c9ce9f73739e83538
PHP
RocheR2D2/API_PLATFORM
/api/src/Entity/Reservation.php
UTF-8
3,016
2.625
3
[]
no_license
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping\ManyToOne; use Doctrine\ORM\Mapping\JoinColumn; use Doctrine\ORM\Mapping\OneToOne; use Doctrin...
true
7dff2b77aa1e96281be4a922ca08b4895f22828e
PHP
didits/rekonsiliasi
/app/Http/Controllers/AuthController.php
UTF-8
849
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Organisasi; use Auth; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; class AuthController extends Controller { public function logout() { Auth::logout(); return redirect('/'); } public function changePassword(Request $re...
true
43aceeb72a130683d8207e38b247d2bdd0445e84
PHP
helenagarcia90/ocularis-web
/users/core/protected/models/Category.php
UTF-8
4,528
2.578125
3
[]
no_license
<?php /** * This is the model class for table "category". * * The followings are the available columns in table 'category': * @property string $id_category * @property string $id_category_parent * @property string $name * @property string $level * @property string $left * @property string $right *...
true
9ceb8c1ee73839aafa628b9b46d0ce8e5983d4a2
PHP
verdurevigor/CS296Lab3
/ecmainbackend.php
UTF-8
9,790
2.953125
3
[ "MIT" ]
permissive
<?php // Session must be started in order to use it session_start(); // If the user has successfully logged in (during this session) - show event calendar page, otherwise redirect to login page if (isset($_SESSION["userId"])) { include_once ("filefunctions.php"); include_once ("array2dfunctions.php"); $userId = ...
true
390b84f28827ac2f2e9d2959048c177673d1032b
PHP
migmosquera/cheyproducciones
/controller/showAllSong.php
UTF-8
1,134
2.546875
3
[]
no_license
<?php include_once 'model/song.php'; $cant_song = 10; $pagina=""; if(isset($_GET['pag'])){ $pagina = (int)$_GET['pag']; } if(isset($_POST['searchSong'])){ $name = $_POST['nameSong']; $song_total = Song::searchSong($name); $columns = count($song_total); $pagination = ceil($columns/$cant_s...
true
965baefd65251a909b5da153c6881e4a0c4bc235
PHP
LNetlesgrimm/flower
/app/Http/Requests/StoreFlowerRequest.php
UTF-8
957
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class StoreFlowerRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Ge...
true
34517d2fe7e5e512f198a5ba2f2dbdf3186de722
PHP
pellecuer/Symfony-backend.test
/src/Calculator/Mk2Calculator.php
UTF-8
2,999
3.109375
3
[]
no_license
<?php namespace App\Calculator; use App\Calculator\CalculatorInterface; use App\Model\Change; //Automate qui interoge le service calculator pour connaitre le nombre de billets et pièces à rendre en fonction des billets disponibles //Chiffres ronds //Monnaie optimale //N a accès qu'au pièces de 1 Class Mk...
true
99513a84f0614d766948e0843346e5b3a4de8445
PHP
divanov-web/my.liquimoly.ru
/migrations/m160617_130634_create_vebinar_list.php
UTF-8
710
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles the creation for table `vebinar_list`. */ class m160617_130634_create_vebinar_list extends Migration { /** * @inheritdoc */ public function up() { $this->createTable('vebinar_list', [ 'id' => $this->primaryKey(), 'mouth'...
true
a916bba0c182e1f7012b79e82790ce381950c481
PHP
tchoulom/breengrow-backend
/src/Presentation/Api/Consumer/DataProvider/ShowConsumerDataProvider.php
UTF-8
1,250
2.546875
3
[]
no_license
<?php declare(strict_types=1); namespace App\Presentation\Api\Consumer\DataProvider; use ApiPlatform\Core\DataProvider\ItemDataProviderInterface; use ApiPlatform\Core\DataProvider\RestrictedDataProviderInterface; use App\Application\UseCases\Consumer\Show\ShowConsumerRequest; use App\Presentation\Api\Consumer\Model\...
true
62d2b1fc2a9982295cf827e8cefc30fa91ad5508
PHP
dawid-trybulowski/bibliotekarz_beta
/app/Http/Services/Content/WaitingListService.php
UTF-8
3,325
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Services\Content; use App\Http\Entities\WaitingListEntity; use App\Http\Helpers\Message; use App\Models\Book; use App\Models\WaitingList; use Mockery\Exception; class WaitingListService { /** * @var WaitingList */ private $waitingList; /** * @var Book */ ...
true
2a8d933219fa9703349ce45ac26e870d8cbfff9c
PHP
tungman08/laravel-keycloak
/app/Repositories/CrudRepository.php
UTF-8
1,047
2.90625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use Illuminate\Database\Eloquent\Model; interface CrudRepository { /** * List all model items. * * @return \Illuminate\Database\Eloquent\Collection */ public function list(); /** * Find a model item by id. * * @param mixed $id * ...
true
dc2a50e40083371658a913214d8d1e670ce204f0
PHP
demianbarry/zonales
/components/com_customproperties/admin/models/cpvalue.php
UTF-8
13,200
2.59375
3
[]
no_license
<?php /** * Custom Properties for Joomla! 1.5.x * @package Custom Properties * @subpackage Component * @version 1.98 * @revision $Revision: 1.5 $ * @author Andrea Forghieri * @copyright (C) Andrea Forghieri, www.solidsystem.it * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU/GPL ver...
true
91938d503e2496215d8970ae26b4a7d305ad43f7
PHP
AhmedElkhodary/E-Commerce
/page.php
UTF-8
375
2.609375
3
[]
no_license
<?php $do = ( isset( $_GET['do'] ) ? $_GET['do'] : 'manage'); if ($do == 'manage') { echo "welcome to manage page<br>"; echo "<a href='page.php?do=add'>To Add Page </a>"; } elseif($do == 'add') { echo "welcome to add page"; } elseif ($do == 'insert') { echo "welcome to insert page "; } else { e...
true
6b2c4f87c2390024aa132cb66ae92c60f62b2f3c
PHP
sonalipriya/storystream
/api/registration.php
UTF-8
2,150
2.734375
3
[ "MIT" ]
permissive
<?php // Project: Story Stream header("Content-type: application/json"); require './includes/class.database.php'; require './includes/class.errorlist.php'; $response = array(); class Users{ public function __construct($uemail, $uname, $upass) { $this->user_email ...
true
668a537295ddd42006f6a32406ba4925f3481c7c
PHP
sekhm3t/AfpaLab
/web/Class/Crypting.php
UTF-8
737
3.265625
3
[]
no_license
<?php class Crypting { // A UTILISER, et on compare, on ne peut pas décrypter à l'inverse. function __construct($maCleDeCryptage, $maChaineACrypter, $bSalt = 0) { if ($bSalt) { // Set a random salt $salt = openssl_random_pseudo_bytes(8); } else { // Or empty salt so that we'll be able to compare again ...
true
035174ec6c7326d5f2c3c8cc6f3275b281b7aa1a
PHP
letsdrink/ouzo
/src/Ouzo/Core/Middleware/MiddlewareRepository.php
UTF-8
833
2.546875
3
[ "MIT" ]
permissive
<?php /* * Copyright (c) Ouzo contributors, https://github.com/letsdrink/ouzo * This file is made available under the MIT License (view the LICENSE file for more information). */ namespace Ouzo\Middleware; use Ouzo\Utilities\Chain\Interceptor; class MiddlewareRepository { /** @var Interceptor[] */ private...
true
60ec6c569eb9019f62d97e29dbb11078284d0e63
PHP
RanaRizk/RNR
/application/models/User.php
UTF-8
2,362
2.5625
3
[]
no_license
<?php class Application_Model_user extends Zend_Db_Table_Abstract { protected $_name = "user"; function addUser($data) { $row = $this->createRow(); $row->userName = $data['userName']; $row->password = md5($data['password']); $row->email = $data['email']; $row->gender =...
true
df590d44d3982829ff652e06221928bd6e2a42f8
PHP
bulfaitelo/Fat-Free-Framework-Examples
/Codificacao_e_Conversao/09-base64.php
UTF-8
320
2.53125
3
[]
no_license
<?php // FRAMEWORK F3 $f3 = require('../lib/base.php'); # lógica: # string base64 ( string $data, string $mime ) echo $saida = $f3->base64('<b> Stronnnng! </b>','text/html'); //data:text/html;base64,PGI+IFN0cm9ubm5uZyEgPC9iPg== echo "<br>"; echo base64_decode('PGI+IFN0cm9ubm5uZyEgPC9iPg=='); // <b> Stronnnng! </b>
true
4fcdf757ce616c8b86142648266b510fc4fc17d8
PHP
skymercy/VTWeb
/app/dao/classesCourseDAO.php
UTF-8
2,119
2.546875
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace app\dao; class classesCourseDAO extends baseDAO { protected $table = 'classes_course'; protected $_pk = 'id'; protected $_pkCache = true; public static function searchStudentCourse($searchData) { $filters = $searchData; $page = $filters['page']; $pageSize = $filters['pageS...
true
b30b3690f624011ae0249729fb23c289b631f05f
PHP
mavo97/api_eventos
/objects/actividades.php
UTF-8
5,220
3.296875
3
[]
no_license
<?php class Actividad{ // database connection and table name private $conn; private $table_name = "actividades"; // object properties public $id_actividad; public $nombre; public $fecha_inicio; public $fecha_fin; public $descripcion; public $id_evento; // constructor wit...
true
e4de735339eb1983683fa7f3a4b04a2a879818aa
PHP
Kshounish/Eduyard
/login.php
UTF-8
4,432
2.578125
3
[]
no_license
<?php session_start(); //session started ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Login </title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <meta name="apple-mobile-web-app-capable" content="yes"> <...
true
f2545ec9793be8090079d0c726da97187d0e7cc3
PHP
tsaniawarda2/pw2020_193040143
/kuliah/pertemuan7/result.php
UTF-8
297
2.625
3
[]
no_license
<?php //fungsi function ceklogin($username, $password){ if($username == "admin" && $password == "12345") { echo "Selamat Datang Admin"; }else{ echo "Username / Password salah"; } } //eksekusi $username = $_GET['username']; $password = $_GET['password']; ceklogin($username,$password); ?>
true
2f91183f2121799c800531d3aef008053d047d02
PHP
crswan/girl-scouts
/play/image.php
UTF-8
718
3
3
[]
no_license
<?php /* header("Content-type: image/jpeg"); //$img = imagecreatefromjpeg("images/Tulips.jpg"); // $img = imagecreatefromjpeg("images/Jellyfish.jpg"); imagejpeg($img); imagedestroy($img); */ // Create a 300x100 image $im = imagecreatetruecolor(300, 100); $red = imagecolorallocate($im, 0xFF, 0x00, 0x00); $black = ima...
true
ad83a1641898ec761f0ce3e0702f72c844f36628
PHP
Adolph1/mkopo
/console/migrations/m170615_125429_create_tbl_customer_category_table.php
UTF-8
660
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles the creation of table `tbl_customer_category`. */ class m170615_125429_create_tbl_customer_category_table extends Migration { /** * @inheritdoc */ public function up() { $this->createTable('tbl_customer_category', [ 'id' => $this->p...
true
be836f13819d918f70deb53f7cb4559fbddd1a9c
PHP
jobasa/DesarrolloWebEnEntornoServidor
/Symfony/src/AppBundle/Controller/GestionFestivalesController.php
UTF-8
3,078
2.578125
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace AppBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Annotation\Route; use AppBundle\Form\FestivalType; use AppBundle\Entity\Festival; use AppBundle\Entity\Estilo; use AppBundle\Form\EstiloType; /*...
true
8d635ae4b4a4450e19998725da989c7f2e5c72a6
PHP
Shofiul-Alam/magento-app
/src/vendor/magento/module-signifyd/Model/Guarantee/CancelGuaranteeAbility.php
UTF-8
1,992
2.578125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "AFL-2.1", "AFL-3.0", "OSL-3.0" ]
permissive
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Signifyd\Model\Guarantee; use Magento\Framework\Exception\InputException; use Magento\Framework\Exception\NoSuchEntityException; use Magento\Sales\Api\Data\OrderInterface; use Magento\Sales\Api\Ord...
true
37a0c132f05018b16ca0db50531ac16735e472fa
PHP
excellent-coder/lance-ofm-edu
/app/Http/Controllers/TagController.php
UTF-8
3,379
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\Tag; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Str; class TagController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public fu...
true
01a2aa09d9d2e910c7d48b42cbe52d434252b2c1
PHP
justcarakas/forkcms
/src/Modules/Internationalisation/Domain/Translation/Command/CreateTranslationHandler.php
UTF-8
1,084
2.546875
3
[ "MIT" ]
permissive
<?php namespace ForkCMS\Modules\Internationalisation\Domain\Translation\Command; use ForkCMS\Core\Domain\MessageHandler\CommandHandlerInterface; use ForkCMS\Modules\Internationalisation\Domain\Translation\Event\TranslationCreatedEvent; use ForkCMS\Modules\Internationalisation\Domain\Translation\Translation; use ForkC...
true
5de58e01643e4ec71d123bd85e8f5811bb995c3c
PHP
sundu007/travelagency
/travelagency/profile.php
UTF-8
2,031
2.578125
3
[]
no_license
<?php session_start(); include("header.php"); if(isset($_SESSION['id'])) { ?> <html> <head><title>:: Profile ::</title> <?php require("config.php"); $uid=$_SESSION['id']; $sql = mysql_query("select * from register where id = '$uid'"); $r = mysql_fetch_array($sql); $name = $r['name']; $dob = $r['dob']; $adress = $r['...
true
7b1c54174a2931eebef8ee07738dd00bfe9a82c7
PHP
LJlkdskdjflsa/laravel_api
/database/seeders/DatabaseSeeder.php
UTF-8
1,694
2.765625
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use App\Models\Command; use App\Models\Post; use App\Models\User; use App\Models\Vote; use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { //...
true
295a57ee68a91cef0380c072f509f416bdd64d30
PHP
shivalir12/PHP-codes
/cookie1.php
UTF-8
363
2.640625
3
[]
no_license
<?php $cookie_name="user"; $cookie_name="Shiv"; setcookie($cookie_name,$cookie_value,time()+(86400*30),"/"); ?> <html> <body> <?php if(!isset($_COOKIE[$cookie_name])) { echo "Cookie named"'.$cookie_name.' "is not sent!"; } else { echo "Cookie"'.$cookie_name.'"is set up.<br>"; echo "Value is".$_COOKIE[...
true
cbd667c8611d2e97429c3f741d74bc0fd6a92617
PHP
LeVanTan-58131382/design_pattern_LP
/php_designpattern/New folder/thanh_nam/Creational_Pattern/01.FactoryPattern/Honda.php
UTF-8
129
2.828125
3
[]
no_license
<?php require_once "Car.php"; class Honda implements Car2{ public function view() { return "Honda Civic"; } }
true
1cd91038f7c2c3f005d6bfc34ac4527752e10dde
PHP
webalagiri/jobportal
/app/Http/ViewModels/TrackStatusViewModel.php
UTF-8
736
2.765625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: admin * Date: 07/11/2016 * Time: 1:08 PM */ namespace App\Http\ViewModels; class TrackStatusViewModel { private $candidateId; private $statusId; /** * @return mixed */ public function getCandidateId() { return $this->candidateId; ...
true
0f236d9867b5969cfce1a5d2c9b6ec195dd7e9c9
PHP
alexesteban/sannico
/servicios/readAsignaturasByAlumno.php
UTF-8
1,258
2.515625
3
[]
no_license
<?php include 'conexion.php'; header("Content-Type: text/html;charset=utf-8"); $data = json_decode(file_get_contents("php://input")); $guidAlumno = mysqli_real_escape_string($conn, $data->guid); //GET ID_CURSO $cursoResult = $conn->query("SELECT grado FROM students WHERE guid = '$guidAlumno'"); while ($...
true
ef911cc3623da796c5099ea13c839ef1a1ccd905
PHP
pondokcoder2020/news
/lontonglah/api/app/CPPT.php
UTF-8
9,431
2.65625
3
[ "MIT" ]
permissive
<?php namespace PondokCoder; use PondokCoder\Poli as Poli; use PondokCoder\Inventori as Inventori; use PondokCoder\Query as Query; use PondokCoder\QueryException as QueryException; use PondokCoder\Utility as Utility; class CPPT extends Utility { static $pdo; static $query; protected static function getConn(){...
true
d8fd2d0eb80fa786b9f0a1aa40408d803eb0bb19
PHP
adimoraret/mailgun-for-wp
/settings/pages/modules/GeneralSettings/GeneralSettings.php
UTF-8
1,578
2.640625
3
[]
no_license
<?php namespace MailGunApiForWp\Settings\Pages\Modules\GeneralSettings { use MailGunApiForWp\MailGunApiForWp; use MailGunApiForWp\Settings\Pages\Modules\AdminBasePage; class GeneralSettings extends AdminBasePage { private $httpSettingsForm; private $smtpSettingsForm; private $prov...
true
fe48072ed8a9b49c74feb731e2947abb02bb4c46
PHP
ZeroxTheDwarf/mtgar
/core/Migration.php
UTF-8
236
2.625
3
[]
no_license
<?php namespace app\core; abstract class Migration { abstract public function up(); abstract public function down(); protected static function exec(string $sql) { Application::$app->db->pdo->exec($sql); } }
true
83e3ba9c8e00e13ac5dfe5a000631410df8f84d8
PHP
dumparun/firecracker-server
/web/application/helpers/utilities_helper.php
UTF-8
6,135
2.734375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); function formatNumberToDisplayInMillions($number, $fullFormat=FALSE) { // is this a number? if(!is_numeric($number)) return false; // now filter it; if($number>=1000000000000) return round(($number/1000000000000),0). (($fullFormat)? ' Tri...
true
8434d2783193589165c091d861fbeca23a8faaad
PHP
nurbakhyt/testsy-api
/database/migrations/2017_01_26_204644_create_tests_table.php
UTF-8
1,024
2.625
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTestsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tests', function ...
true
b0446d249604cd97a655bb90757cd6d78f81dbc1
PHP
jainishp75/Day8
/Day8/select.php
UTF-8
1,476
2.625
3
[]
no_license
<?php $con=mysqli_connect("localhost","root","","internship"); if($con) { echo " <style> table,tr,td,th { text-align:center; } </style> "; $select="select * from student"; $execute=mysqli_query($con,$select); if($execute) { echo "<CENTER>"; echo "<table border='1px'>"; echo"<tr> ...
true
da3e07c1915355c69da157ef0565e55a70761807
PHP
gowork/values
/src/Arrayable/Chunk.php
UTF-8
751
3.109375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace GW\Value\Arrayable; use GW\Value\Arrayable; use function array_chunk; /** * @template TValue * @implements Arrayable<array<int,TValue>> */ final class Chunk implements Arrayable { /** @var Arrayable<TValue> */ private Arrayable $arrayable; /** @var int<1, max> ...
true
386b66d313668ed363d59586d8b1d93d4673a3df
PHP
KarelWintersky/kwRPG.NPCGen
/engine/npc.core.php
UTF-8
4,448
2.71875
3
[]
no_license
<?php /** * * @param $min * @param $max * @return int */ function dice($min, $max) { return mt_rand($min, $max); } /** * * @return int */ function d100() { return dice(1, 100); } /** * * @return int */ function rolld6() { return dice(1, 6); } /** * * @return int */ function roll2d6() { ...
true
b13a39e37f2a850b924ddddd7dd57d50960fd52d
PHP
kusumajati51/lini-ultraklin-laravel
/database/migrations/2018_02_27_124205_setup_service_table.php
UTF-8
2,873
2.5625
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class SetupServiceTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('services', funct...
true
211c7d6196c2807cc4e199ee7c402af4e0961ecc
PHP
sunulabo/interim
/src/Recover/UserBundle/DataFixtures/ORM/User.php
UTF-8
1,023
2.65625
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace Recover\UserBundle\DataFixtures\ORM; use Doctrine\Common\DataFixtures\FixtureInterface; use Doctrine\Common\Persistence\ObjectManager; use Recover\UserBundle\Entity\User; class Users implements FixtureInterface { public function load(ObjectManager $manager) { // Les noms d'utilisateurs à créer ...
true
896e4a85d41e41ffad0c0bfe42170d78d35a2426
PHP
antonsmolko/calipari.laravel
/app/Services/ColorCollection/Handlers/UpdateHandler.php
UTF-8
863
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Services\ColorCollection\Handlers; use App\Models\ColorCollection; use App\Services\ColorCollection\Repositories\CmsColorCollectionRepository; class UpdateHandler { private CmsColorCollectionRepository $repository; /** * StoreHandler constructor. * @param CmsColorCollectionRe...
true
f969f43dcfc37a51aa891e84be4f7899b56781d7
PHP
luckypoem/php-framework
/src/Core/Router/ConsoleRouter.php
UTF-8
977
2.84375
3
[]
no_license
<?php namespace Core\Router; /** * 用于命令行工具的路由 * * @author lisijie <lsj86@qq.com> * @package Core\Router */ class ConsoleRouter extends AbstractRouter implements RouterInterface { public function makeUrl($route, $params = [], $full = false) { $route = $this->normalizeRoute($route); foreach ...
true
963a564cebe00d6adda236ec37bc3b021f2c9677
PHP
ubc/studiorum
/includes/class-studiorum-utils.php
UTF-8
20,781
2.96875
3
[]
no_license
<?php /** * Generic helper utils * * @package Studiorum * @subpackage Admin/Studiorum-Utils * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License * @since 0.1.0 */ // Exit if accessed directly if( !defined( 'ABSPATH' ) ){ exit; } class Studiorum_Utils { /**...
true
65af420b391f3fd16e4cffeaef7bd0b146481685
PHP
fesor/yii-amqp
/CAMQP.php
UTF-8
4,435
2.703125
3
[]
no_license
<?php /** * AMQP extension wrapper to communicate with RabbitMQ server * @version 1 */ class CAMQP extends CApplicationComponent { /** @var string */ public $host = ''; /** @var string */ public $port = ''; /** @var string */ public $vhost = ''; /** @var string */ public $login = ''...
true
a25f122d72a2196a3e6ac13fadfaec583394b48e
PHP
marcelomileris/mvc
/models/painel_model.php
UTF-8
993
2.6875
3
[]
no_license
<?php class Painel_Model extends Core { public function data() { $sql = "select id, date_format(created, '%d/%c/%Y %H:%i') as created, user, name, email, pass, active from users order by created desc"; return $this->db->select($sql); } public function get($u...
true
523dcaa913a21b42f4ac918eb56437b0f0b64e93
PHP
lucasdeaquino/TCC-armarios
/TCC/Ajax/reserva-armario-ajax.php
UTF-8
1,435
2.59375
3
[]
no_license
<?php include('../conexao.php'); session_start(); $reserva = $_POST['reserva']; date_default_timezone_set("Brazil/East"); $date = date('d/m/y'); $time = date('H:i:s'); $aluno = $_SESSION['id_aluno']; //Consultando se o aluno já tem uma reserva $consultar_reserva = "SELECT *F...
true
0415b1828eeaa0272646be9cb72e98545712d9f9
PHP
Dario-spec/Social_network
/actions/create.php
UTF-8
1,544
2.609375
3
[]
no_license
<?php include "connection.php"; //varijable $name = $mysqli->real_escape_string(strip_tags($_POST['name'])); $last_name = $mysqli->real_escape_string(strip_tags($_POST['last_name'])); $password = $mysqli->real_escape_string(strip_tags($_POST['password'])); $username = $mysqli->real_escape_string(strip_t...
true
7f0242a878fb60c98ff91478ce74c1ebc05c6e27
PHP
cameronjacobson/Spas
/examples/basicpath.php
UTF-8
425
2.6875
3
[ "BSD-2-Clause" ]
permissive
<?php require_once(dirname(__DIR__).'/vendor/autoload.php'); use Spas\ApplicationServer; use Spas\SilexApp; $app = new SilexApp(); $app->get('/hello/{name}', function($name) use($app) { return 'Hello '.$app->escape($name); }); echo 'NOW RUN THIS FROM COMMAND LINE:'.PHP_EOL; echo '> curl -XGET http://localh...
true
a9c35eaacfbea10558fb854f7088511af1d86d6e
PHP
violinist-dev/anycontent-client-php
/src/AnyContent/Connection/Configuration/RestLikeConfiguration.php
UTF-8
2,285
2.84375
3
[ "MIT" ]
permissive
<?php namespace AnyContent\Connection\Configuration; use AnyContent\AnyContentClientException; use AnyContent\Connection\RestLikeBasicReadOnlyConnection; use AnyContent\Connection\RestLikeBasicReadWriteConnection; class RestLikeConfiguration extends AbstractConfiguration { protected $timeout = 30; protected...
true
be39fb7212a989acc70f7ec9f333ca3ca7d4bf89
PHP
BryanFV/BJFV_LM1819
/PHP/ejercicio.php
UTF-8
96
3.390625
3
[]
no_license
<?php //tabla de multiplicar for($b=1; $b<=10; $b++) { echo "$a x $b = ". ($a*$b); } ?>
true
a4b6e0ce0a8dfd5839d4258d3f565e56cafaef40
PHP
mahmoodr786/icingcms
/plugins/UserManager/config/Seeds/RolesSeed.php
UTF-8
893
2.703125
3
[ "MIT" ]
permissive
<?php use Phinx\Seed\AbstractSeed; /** * Roles seed. */ class RolesSeed extends AbstractSeed { /** * Run Method. * * Write your database seeder using this method. * * More information on writing seeders is available here: * http://docs.phinx.org/en/latest/seeding.html * * ...
true
e51d560bf923ea1178fce1478726c6f9413c1af0
PHP
suu-K/SE
/app/Http/Controllers/couponController.php
UTF-8
1,252
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\coupon; class couponController extends Controller { /public function insert(Request $request){ $coupon = new coupon; $validate = $request->validate([ 'title' => 'required', 'body' => 'requir...
true
8a5373079d0767be66d540171fd2dfd0d3dcd55f
PHP
nxvhm/zfauth
/module/Application/src/Entity/User.php
UTF-8
2,305
2.96875
3
[]
no_license
<?php namespace Application\Entity; use Doctrine\ORM\Mapping as ORM; /** * Registered user model * @ORM\Entity() * @ORM\Table(name="users") */ class User { /** * @ORM\Id * @ORM\Column(name="id") * @ORM\GeneratedValue */ protected $id; /** * @ORM\Colum...
true
f84270dc2b94c831478ff1834a00f6e882606db9
PHP
acmephp/acmephp
/src/Core/Exception/Protocol/ChallengeFailedException.php
UTF-8
764
2.59375
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Acme PHP project. * * (c) Titouan Galopin <galopintitouan@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace AcmePhp\Core\Exception\Protocol; /** * @author Titouan Galopin <...
true
c81d5add03cdfb297d135a1947cc15bd39df5295
PHP
kajalyerunkar/shoppers_stop
/kajal/ex11.php
UTF-8
88
3.453125
3
[ "MIT" ]
permissive
<?php //concat,join,dot $x=10; $y=$x*$x; echo 'square of ' . $x . ' is ' . $y; ?>
true
9d08d167a49d1b41f1209993174a9351f74e632c
PHP
uclaioes/ucla-wp-web-components
/core/includes/classes/class-ucla-components-for-wp-run.php
UTF-8
4,565
2.71875
3
[]
no_license
<?php // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) exit; /** * HELPER COMMENT START * * This class is used to bring your plugin to life. * All the other registered classed bring features which are * controlled and managed by this class. * * Within the add_hooks() function, you can register al...
true
d63a45d52dacd33205590e9632f59c9fa821e45c
PHP
21stdigital/wp-tfd-core
/main/shortcodes/_main.php
UTF-8
731
2.890625
3
[]
no_license
<?php namespace TFD; /* * Hide email from Spam Bots using a shortcode. * * @param array $atts Shortcode attributes. Not used. * @param string $content The shortcode content. Should be an email address. * * @return string The obfuscated email address. */ add_shortcode('email', function ($atts, $content = nu...
true
6ca51b788d8fd5695e462e5305fe316dd8d35275
PHP
pletfix/core
/src/Services/HttpClient.php
UTF-8
12,565
2.9375
3
[ "MIT" ]
permissive
<?php namespace Core\Services; use Core\Application; use Core\Services\Contracts\HttpClient as HttpClientContract; use RuntimeException; class HttpClient implements HttpClientContract { /** * Headers * * @var array */ private $headers = []; /** * Base URL * * @var stri...
true
07a00d59499b5b2f67b0a46dd98edf0174677d9a
PHP
RotaTour/backend
/app/Models/User.php
UTF-8
6,093
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; use Tymon\JWTAuth\Contracts\JWTSubject; use Spatie\Permission\Traits\HasRoles; use App\Models\Status; /** * Class User * * @package App\Models * * @SWG\Definition( * definition="NewU...
true
953fc848a65c071b08745b8bf13084897cd906f0
PHP
srjn45/FileDB-php
/FileDB/FileDB.php
UTF-8
355
2.578125
3
[ "MIT" ]
permissive
<?php require_once("Record.php"); interface FileDB { public function getRecords(); public function getParsedRecords($className); public function addRecord(Record $record); public function deleteRecord($id); public function updateRecord(Record $record); public function drop(); public function commit(); ...
true
7c9f75687b17a6425296496a6175969456ab1bfd
PHP
Eli-jah/lenuEdu
/shm/libs/helpers/file_helper.php
UTF-8
2,501
3.125
3
[]
no_license
<?php if (!defined('BASEPATH')) exit('No direct access allowed.'); /** * 遍历获取目录下的指定类型的文件 * @param $path * @param array $files * @return array */ function getfiles( $path , &$files = array() ) { if ( !is_dir( $path ) ) return null; $handle = opendir( $path ); while ( false !== ( $file = readdir( $handle...
true
76745aaec54b17341e91a6713d53e55bd49bb6db
PHP
arundquist/test2
/app/controllers/DeptsController.php
UTF-8
1,592
2.515625
3
[ "MIT" ]
permissive
<?php class DeptsController extends BaseController { /** * Display a listing of the resource. * * @return Response */ public function index() { $depts=Dept::orderBy('shortname', 'ASC')->get(); return View::make('depts.index') ->with('depts', $depts); } /** * Show the form for creating a new res...
true
b0723bc0a6d9563adf6c5a6ee242d3cee9f77a77
PHP
djames266/sse
/psendverifyCF.php
UTF-8
4,647
2.953125
3
[]
no_license
<?php /***************************************************************************\ * psendverifyCF.php * Denison Parreno (2013) * Common functions used by p_mailF.php and p_verifyF.php ***************************************************************************/ /** FUNCTIONS **/ //Cleanses the form inputs before ...
true
a57919ebb8e97466d7e80f60ea41560c1c875c32
PHP
Mecxer713/private_project-
/application/helpers/report_helper.php
UTF-8
3,022
2.578125
3
[]
no_license
<?php header("Expires: Tue, 01 Jan 2000 00:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); if (!defined('BASEPATH')) exit('No ...
true
b4e4d52428470d63d867e0192f3a3d275b8c8f42
PHP
porcarimaxim/symfony
/src/AppBundle/Util/EmailUtil.php
UTF-8
1,036
2.859375
3
[]
no_license
<?php namespace AppBundle\Util; use Swift_Mailer; use Symfony\Component\DependencyInjection\ContainerInterface; /** * Class EmailUtil * * @package AppBundle\Util */ class EmailUtil { /** * @var Swift_Mailer */ private $mailer; /** * @var ContainerInterface */ private $container; /** * Construct...
true
691ad2df07a25cc9d879394fafb98652c74f2ff6
PHP
Toscane56/Usine5Sens
/api/src/Controllers/WorkshopController.php
UTF-8
5,428
2.890625
3
[]
no_license
<?php namespace App\Controllers; use App\Controller; class WorkshopController extends Controller //classe pour la gestion des ateliers { public function index() //fonction permettant de montrer tous les ateliers et les sens associés de la journée { $query = $this->db->query("SELECT * FROM worksho...
true