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
c25cabe2afc114ec33a59c33794d71c6ff051754
PHP
tony-tran/en-marche.fr
/src/Membership/MembershipRequest/AvecVousMembershipRequest.php
UTF-8
1,334
2.53125
3
[ "GPL-3.0-only", "Apache-2.0" ]
permissive
<?php namespace App\Membership\MembershipRequest; use App\Address\Address; use App\Entity\Contact; use App\Membership\MembershipSourceEnum; use libphonenumber\PhoneNumber; class AvecVousMembershipRequest extends AbstractMembershipRequest { public ?string $lastName = null; public ?\DateTimeInterface $birthda...
true
42f143dbaf68d4eb33456419da3490f1a34c8aca
PHP
machi520/portfolio
/02_kaiinn/css/Encode.php
UTF-8
1,021
2.875
3
[]
no_license
<?php //エスケープ function e($string){ return htmlspecialchars($string,ENT_QUOTES,'UTF-8'); } function sanitize($before){ foreach ($before as $key => $value) { $after[$key] = htmlspecialchars($value,ENT_QUOTES,'UTF-8'); } return $after; } //トークン function create_token(){ $t...
true
ff6ad9eb8d640e07a64093543866d80471efcd1a
PHP
mmh1984/healthapp
/clinic/controls/messages.php
UTF-8
1,059
2.640625
3
[]
no_license
<?php if(!isset($_GET["op"])){ $data=array(); array_push($data,"ERROR"); } $op=$_GET["op"]; switch($op){ case "message": get_message(); break; case "read": read_message(); break; } function read_message(){ include "../../connection.php"; $id=$_GET["id"]; $s...
true
a9cb1715011f1a4a73e59879b8fd12322055e8ce
PHP
ByeongUkChoi/oauth2-server-php
/src/Dto/TokenDto.php
UTF-8
769
3.140625
3
[]
no_license
<?php namespace oauth2server\Dto; use JsonSerializable; class TokenDto implements JsonSerializable { /** * @var string */ private $accessToken; /** * @var int */ private $expires; /** * @var string */ private $refreshToken; /** * @var int */ pr...
true
0409c10d2b28a81b6a21c4189ad9eb7a7d7d9ae2
PHP
samescolas/php-piscine
/day07/resources/ex04/Jaime.class.php
UTF-8
189
2.609375
3
[]
no_license
<?php include_once('Lannister.class.php'); class Jaime extends Lannister{ public $potential_mates; public function __construct() { $this->potential_mates = array("Cersei"); } } ?>
true
981424d64f5546d045bde7fac532cc6d5003d8b0
PHP
harutyunyan611/pica-di-roma-api
/app/Services/UserService.php
UTF-8
1,018
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Contracts\IUserService; use App\Contracts\IUserRepository; use Exception; use Auth; use InvalidArgumentException; use Illuminate\Validation\ValidationException; use Symfony\Component\HttpFoundation\Response; class UserService implements IUserService { protec...
true
ff3e59cc84d151968c8e4adf3f164f478fef10c8
PHP
mattjs/mlib
/src/Mlib/Data/Set/Set.php
UTF-8
447
2.890625
3
[ "BSD-2-Clause" ]
permissive
<?php namespace Mlib\Data\Set; class Set { public $member_names; protected $data_configs; public function __construct(SetConfigInterface $config) { $details = $config->details(); for($i = 0; $i < count($details); $i++) { $this->data_configs[$details[$i]['name']] = $details[$i]['config']; $this->member_n...
true
5c79bae489ad3cf6c981e2a2d8d37b4b58660435
PHP
0x48415a484952/aphiria
/src/Collections/tests/HashSetTest.php
UTF-8
4,820
3.015625
3
[ "MIT" ]
permissive
<?php /** * Aphiria * * @link https://www.aphiria.com * @copyright Copyright (C) 2020 David Young * @license https://github.com/aphiria/aphiria/blob/master/LICENSE.md */ declare(strict_types=1); namespace Aphiria\Collections\Tests; use Aphiria\Collections\HashSet; use Aphiria\Collections\Tests\Mocks\Mo...
true
552767433240336168d86efad58b4b9aa6eeb2be
PHP
feralc/dextra-desafio
/server/src/Http/Api/Transformers/CustomSnackTransformer.php
UTF-8
926
2.5625
3
[]
no_license
<?php namespace App\Http\Api\Transformers; use App\SnackSale\Domain\Model\Snack\CustomSnack; use App\SnackSale\Domain\Model\Snack\SnackPriceCalculator; use League\Fractal; class CustomSnackTransformer extends Fractal\TransformerAbstract { protected $defaultIncludes = [ 'ingredients' ]; private ...
true
e15f938634e958de8a1eb334620f2401a4d7d99f
PHP
asepsupriadi032/belajarcrud
/list2.php
UTF-8
819
2.65625
3
[]
no_license
<?php require('proses_mhs.php'); $mhs = getList("SELECT * FROM mahasiswa"); ?> <html> <head> <title>Belajar</title> </head> <body> <table border = '1' cellpadding="10" cellspacing='0'> <tr> <th>No</th> <th>Aksi</th> <th>Nama</th> <th>Nip</th> <th>Alamat</t...
true
d32561e1df000e4d2d2f718ddabcc2af6fae9efa
PHP
Kulkow/employee
/Admin/Forms/Password.php
UTF-8
971
2.59375
3
[]
no_license
<?php namespace Modules\Employee\Admin\Forms; class Password extends \Classes\Base\Form { public function filters() { return ['password' => 'trim']; } public function rules() { return [ 'password' => [ 'NotEmpty' => [ 'message' =...
true
07ca3642ae145c8a3bd84c52a0e4f6835ef47783
PHP
Vazcore/draenorOS
/classes/HelpPanel.php
UTF-8
438
2.5625
3
[]
no_license
<?php require_once "Draenor.php"; class HelpPanel extends Draenor{ function __construct(){ // code } function init(){ // code } function list_commands(){ $res = $this->database->link()->query("SELECT * FROM os_commands"); echo "<table border='1'>"; while ($row = $res->fetch_array()) { echo "<tr>"...
true
690a8f7479812dfa025e896a99492b581ec1c60e
PHP
hnhdigital-os/laravel-slack-api
/src/Payload/FilesListPayload.php
UTF-8
2,701
2.59375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Bluora\LaravelSlackApi\Payload; use CL\Slack\Payload\FilesListPayload as OriginalFilesListPayload; class FilesListPayload extends OriginalFilesListPayload { /** * Get or set the user id. * * @param mixed $userId */ public function userId() { if (func_num_args()...
true
36c5ebe5653d33d50beb7a14fac259ad58d94391
PHP
rritoch/vwp-1
/libraries/vwp/archive/archive.php
UTF-8
11,414
2.703125
3
[]
no_license
<?php /** * Virtual Web Platform - Archive Support * * This file provides Archive Support * * @package VWP * @subpackage Libraries.Archive * @author Ralph Ritoch <rritoch@gmail.com> * @copyright (c) Ralph Ritoch - All Rights Reserved * @link http://www.vnetpublishing.com VNetPublishing.Com * @license...
true
79b64f1a5ad7f0ef5e5336d58f8a067461f55bb2
PHP
AssemHassan94/laravel-hotel-system
/app/Models/Room.php
UTF-8
735
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Notifications\Notifiable; class Room extends Model { use HasFactory; protected $primaryKey = 'number'; protected $fillable = [ 'floor_number', 'cre...
true
25b199ca4cbd836525a501790ba032c7c33ce754
PHP
man780/panda-game
/models/Product.php
UTF-8
3,957
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "product". * * @property int $id * @property string $name * @property string $description * @property int $cost * @property int $quantity * @property int $quantity_max * @property int $is_team * @property string $image * @propert...
true
4b6f912ca851619c6fb11060930496948e3405d0
PHP
Jefry0727/fundacion
/back_end/src/Controller/BiradsController.php
UTF-8
3,610
2.53125
3
[]
no_license
<?php namespace App\Controller; use App\Controller\AppController; /** * Birads Controller * * @property \App\Model\Table\BiradsTable $Birads */ class BiradsController extends AppController { /** * Index method * * @return \Cake\Network\Response|null */ public function index() { ...
true
3b4767e9eea2c2dd315547ed296a3af7655f853a
PHP
PayGreen/module-magento-2
/bundles/PGShop/Services/Mappers/OrderStateMapper.php
UTF-8
5,838
2.546875
3
[ "X11", "MIT" ]
permissive
<?php /** * 2014 - 2022 Watt Is It * * NOTICE OF LICENSE * * This source file is subject to the MIT License X11 * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/mit-license.php * If you did not receive a...
true
f736bcdfa23239dc3d51dbd536fec8fc1afa1053
PHP
RobvH/amazon-kinesis-client-php
/src/Actions/ShutdownAction.php
UTF-8
369
2.671875
3
[ "MIT" ]
permissive
<?php namespace Robvh\Kcl\Actions; class ShutdownAction extends Action { /** @var string */ private $reason; public function __construct(string $reason) { $this->type = 'shutdown'; $this->reason = $reason; } /** * @return string */ public function getReason(): st...
true
7e7a2125dffe7a79028f0fe3b92496c35a82d93c
PHP
siogo/highschool
/public/reset.php
UTF-8
2,812
2.53125
3
[ "MIT" ]
permissive
<?php header('Content-Type:text/html;charset=utf-8'); if($_SERVER['REQUEST_METHOD'] == 'POST') { include '../sys/connect.class.php'; $con = new connect(); $email = $_POST['email']; //$email = htmlentities($email); $match = "/\w+@(\w|\d)+\.\w{2,3}/i"; if($email != '') { if(preg_match($match, $emai...
true
3594d2ffee912e8f09fbe2f6ba7d4884391eba58
PHP
ThomasPalma1/FatecPI-01
/src/carousel/add-product/add-product/index.php
UTF-8
4,423
2.703125
3
[]
no_license
<?php session_start(); include_once("conexao.php"); ?> <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8"> <title>Produtos</title> </head> <h1>Produtos</h1> <?php if(isset($_SESSION['msg'])){ echo $_SESSION['msg']; unset($_SESSION['msg']); } echo "Português <br> <hr>"; $result_usu...
true
c0d396d0497b2741a58e21334ea400ca8e6c8790
PHP
Olivier3231/projet3WCS
/src/Entity/Customer.php
UTF-8
4,137
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Entity; use App\Repository\CustomerRepository; use DateTime; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=CustomerRepository::class) */ class Customer { /** * @ORM\Id ...
true
27762d179e5a550f0acbe2ea01d091cac27f5e37
PHP
xxxmasmayxxx/DZ
/18-02-19/Dz1.php
UTF-8
804
3.890625
4
[]
no_license
<?php /*Написать функцию, которая будет принимать в качестве аргумента не пустой массив, будет находить минимальное и максимальнрое значения массива и будет возвращать массив найденых ['min'=>$min, 'max' => $max] значений. */ function func($arr){ if (empty($arr)) { echo ' Массив пустой '; ...
true
adab67faa55ebdf3963666fdd334b0cb3eae9e19
PHP
ThibaudLafont/5Team
/3 - Traitement sur les textes/index.php
UTF-8
1,191
3.734375
4
[]
no_license
<!-- PHP logic: split a text document by space --> <?php // Get content of article file $article = file_get_contents('article.txt'); // Replace punctuation [. , ; : ! ? ( ) - _ "] and line breaks by whitespaces // Explode string by whitespaces characters // $words may contain empty entries (preg_re...
true
452b480c3911f7c4503f9220ca938822ef507536
PHP
zeeshan1853/dynamic
/migrations/m180830_035749_create_settings_table.php
UTF-8
684
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles the creation of table `settings`. */ class m180830_035749_create_settings_table extends Migration { /** * {@inheritdoc} */ public function safeUp() { $this->createTable('settings', [ 'id' => $this->primaryKey(), 'ms_shee...
true
52146e836a739d5b75eb4a8c8dccc9b2be51fa38
PHP
mohamedelfert/cours_php_yat
/PHP3-1/myFirstPage.php
UTF-8
738
2.984375
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php //single line...
true
bc03ded4922c22f7744cc27de8a4501b599dadf9
PHP
82826666/shop
/application/common/library/wechat/WxUser.php
UTF-8
5,856
2.828125
3
[]
no_license
<?php namespace app\common\library\wechat; /** * 微信小程序用户管理类 * Class WxUser * @package app\common\library\wechat */ class WxUser { private $appId; private $appSecret; private $error; /** * 构造方法 * WxUser constructor. * @param $appId * @param $appSecret */ public functi...
true
8eb77431a08dd7c9ab4535c10350b7da2c4e8225
PHP
rongself/xsale
/module/Application/src/Application/Service/AccountService.php
UTF-8
2,651
2.5625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Ron * Date: 14-5-2 * Time: 下午11:15 */ namespace Application\Service; use Application\Entity\Account; use Application\Entity\Exception\ValidationException; use Application\Lib\Authentication\Password; class AccountService extends AbstractService{ public function get...
true
2c0c26473f17081312d7d51277a84e3fc380039d
PHP
B3noit/WebServiceREST
/index.php
UTF-8
2,441
2.78125
3
[]
no_license
<?php // On démarre une session session_start(); //Connexion à la base require_once('DbConnect.php'); $sql ='SELECT * FROM `client`'; //Preparation de la requête $query = $db->prepare($sql); //Execution de la requête $query->execute(); //Stockage du résultat dans un tableau associatif $result = $query->fetchAll(PD...
true
56005d9fb9e04953831ec7eb4733ddc8be315fa9
PHP
MichaelJamesParsons/MetroPublisher-PHP-SDK
/src/Api/Collections/EventCollection.php
UTF-8
2,000
2.734375
3
[ "MIT" ]
permissive
<?php namespace MetroPublisher\Api\Collections; use DateTime; use MetroPublisher\Api\AbstractResourceCollection; use MetroPublisher\Api\Models\Event; use MetroPublisher\Api\Models\EventOccurrence; use MetroPublisher\Api\Models\Resolvers\ModelResolver; use MetroPublisher\Api\ResourceCollectionInterface; use MetroPubli...
true
c215b8dd22fcc93326913471c26b5bcac35677f0
PHP
FrenzelGmbH/company-website
/modules/posts/widgets/WidgetBlogMap.php
UTF-8
865
2.515625
3
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
<?php namespace app\modules\posts\widgets; use Yii; use yii\helpers\Html; use yii\data\ActiveDataProvider; use app\modules\posts\models\WidgetConfig; use app\modules\app\widgets\AdminPortlet; class WidgetBlogMap extends AdminPortlet { /** * const WIDGET_NAME must be defined for all widgets! */ const WIDGET_NAME...
true
8320f50eb1c27b73d3b4be25c79d02eef128c8c8
PHP
cinghie/yii2-aws
/models/SNS.php
UTF-8
9,997
2.8125
3
[]
no_license
<?php /** * @copyright Copyright &copy; Gogodigital Srls * @company Gogodigital Srls - Wide ICT Solutions * @website http://www.gogodigital.it * @github https://github.com/cinghie/yii2-aws * @license BSD-3-Clause * @package yii2-aws * @version 0.1.2 */ namespace cinghie\aws\models; use Aws\Exception\AwsExcep...
true
9f4e7a8556e641d96d2f43fde228ce92295766e4
PHP
actual-saurabh/ajax-post-title
/class-ya-apt.php
UTF-8
2,310
2.75
3
[]
no_license
<?php /** * Contains class with core plugin functionality * * @author Saurabh Shukla <saurabh@yapapaya.com> * */ if ( ! defined( 'ABSPATH' ) ) exit; if ( ! class_exists( 'YA_APT' ) ) { /** * Loads plugin's main functionality * * @author Saurabh Shukla <saurabh@yapapaya.com> */ class YA_APT { /** ...
true
7cb4ba9b0ee9789527aca7ad1053da10e499cb6a
PHP
vixriihi/aani
/module/Aani/src/Aani/Entity/Room.php
UTF-8
738
2.703125
3
[]
no_license
<?php namespace Aani\Entity; /** * @ORM\Entity * @ORM\Table(name="rooms") */ class Room { /** * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") * @ORM\Column(type="integer") */ public $id; /** @ORM\Column(type="string") */ public $key; /** @ORM\Column(type="string") */...
true
4559bfde7dfcdb52c7a7ea156e0c7fb64ccdf26d
PHP
TayoLusi/-TayoLusi-.github.io
/Database Project copy/ITConferenceDB.php
UTF-8
4,190
2.890625
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Stored Names</title> </head> <body> <body style="background-image:url('DatabaseBackground.jpg')"> <div align="center"> <?php include 'include.htm'; echo "<body style='background-color:powderblue'>";?> <h1>Stored Information</h1> <h2>Accepted Data From The IT Conference Form and sto...
true
b808d453bfe5f35326978ec96ef3e680e7bf82b2
PHP
bussnet/laravelshoppingcart
/tests/CurrencyCartTest.php
UTF-8
13,821
2.6875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: darryl * Date: 1/12/2015 * Time: 9:59 PM */ use Bnet\Cart\CurrencyCart as Cart; use Bnet\Money\Money; use Mockery as m; require_once __DIR__ . '/helpers/SessionMock.php'; class CurrencyCartTest extends PHPUnit_Framework_TestCase { /** * @var Bnet\Cart\CurrencyCart ...
true
1d8a364453d6ce62071508a9b3d61b86e2f3220c
PHP
kkesidis/larashop
/app/Services/TransactionService.php
UTF-8
1,283
3.015625
3
[]
no_license
<?php namespace App\Services; use App\Eloquent\TransactionRepository; class TransactionService { /** * @var TransactionRepository */ private $transactionRepository; /** * @param TransactionRepository $transactionRepository */ public function __construct(TransactionRepository $tr...
true
39f68ce7ff97fe0d43b299ceaaa02f6276fd330f
PHP
adminarchitect/contacts
/src/Terranet/Contacts/Contacts.php
UTF-8
1,902
2.8125
3
[ "MIT" ]
permissive
<?php namespace Terranet\Contacts; use Closure; use Illuminate\Support\Collection; use Terranet\Contacts\Traits\HasContacts; use Terranet\Contacts\Traits\HasDescription; use Terranet\Contacts\Traits\HasLocation; class Contacts { use HasLocation, HasDescription, HasContacts; /** * @var null|Collection ...
true
83f122783cc8820e25bc1719f94d4e7dc78912ef
PHP
LapSiLap/sf_event_mgt
/Classes/Validation/Validator/RegistrationValidator.php
UTF-8
3,663
2.640625
3
[]
no_license
<?php namespace DERHANSEN\SfEventMgt\Validation\Validator; /*************************************************************** * * Copyright notice * * (c) 2014 Torben Hansen <derhansen@gmail.com> * * All rights reserved * * This script is part of the TYPO3 project. The TYPO3 project is * free sof...
true
3e17f25851da1e701754df98b47d5ab677856777
PHP
GustavoPinheiro170/Ranking-PHP-2020
/futebol/vw_jogos.php
UTF-8
4,627
2.640625
3
[]
no_license
<?php require "../controller/conexao.php"; $pagina = (isset($_GET['pagina'])) ? $_GET['pagina'] : 1; $consulta = "SELECT * FROM vw_Jogos ORDER BY data DESC"; $resultado = mysqli_query($conexao, $consulta); //Contando total de jogos $total_jogos = mysqli_num_rows($resultado); //seta a quantidade de jogos por página $q...
true
d3b57ba38bec4727a69f6f1bf1bb3fd05353586f
PHP
wendelsodres/oop2
/while.php
UTF-8
108
3.21875
3
[]
no_license
<?php $inicio = 5000; $fim = 5543; while ($inicio <= $fim) { echo $inicio . "<br>"; $inicio ++; }
true
01fdd757131ad3364b39af719facab7b6f4d7f92
PHP
comodojo/zip
/src/Comodojo/Zip/Traits/SkipTrait.php
UTF-8
1,872
2.875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Comodojo\Zip\Traits; use \Comodojo\Zip\Interfaces\ZipInterface; use \Comodojo\Exception\ZipException; /** * Skip mode helper trait. * * @package Comodojo Zip * @author Marco Giovinazzi <marco.giovinazzi@comodojo.org> * @license MIT * * LICENSE: * * THE SOFTWARE IS PROVIDED "AS I...
true
ee61a3f5540d2f0c5ad7265ca1e241aa6badcb77
PHP
at-huydoan/3h-truyen
/database/migrations/2016_06_28_064739_create_stories_table.php
UTF-8
1,024
2.578125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateStoriesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('story', function (Blueprint $table) { $tab...
true
1197058470053b0e466639abab46f70b3052cc1c
PHP
kristianmzmz/gildedrose-kata-php7
/src/BackstagePassRuledItem.php
UTF-8
679
2.8125
3
[]
no_license
<?php namespace App; class BackstagePassRuledItem extends GenericRuledItem { const ITEM_NAME = 'Backstage passes to a TAFKAL80ETC concert'; public function updateItemQuality(): void { $this->increaseQuality(); if ($this->item->sell_in <= 10) { $this->increaseQuality(); ...
true
360daf5d5b82caf284a8ce2e18e9dec5dbf295d4
PHP
shakkurcwb/E-LearningV1
/database/migrations/2014_10_12_400005_create_questions_table.php
UTF-8
1,148
2.5625
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateQuestionsTable extends Migration { public function up() { Schema::create('questions', function (Blueprint $table) { $table->bigIncrement...
true
43a8a57268a5ab2af4bffdc61acaf1d719425778
PHP
freezable/dyno-php-lib-quantity-updater
/lib/Http/Client.php
UTF-8
968
2.859375
3
[ "MIT" ]
permissive
<?php namespace DynoLib\Http; use Exception; class Client implements ClientInterface { /** * @param RequestInterface $request * @return ResponseInterface * @throws Exception */ public function send($request) { $options = [ CURLOPT_URL => $request->getUri(), ...
true
ea647f34e51b6d96c9b239d9a3dceabc2aafbf76
PHP
shen2/zenapi
/src/IqiyiOAuth2.php
UTF-8
1,020
2.625
3
[ "Apache-2.0" ]
permissive
<?php namespace ZenAPI; class IqiyiOAuth2 extends BaseClient{ use OAuth2Trait; /** * Set API URLS */ /** * @ignore */ public function accessTokenURL(){ return 'https://openapi.iqiyi.com/api/oauth2/token'; } /** * @ignore */ public function authorizeURL(){ return 'https://openapi.iqiyi.com/api/o...
true
3071134061e14c8d886d7e58ef97193d36cf3103
PHP
china-wangyu/TRR-tp6
/app/validate/User.php
UTF-8
546
2.515625
3
[ "MIT" ]
permissive
<?php declare (strict_types = 1); namespace app\validate; use think\Validate; class User extends Validate { /** * 定义验证规则 * 格式:'字段名' => ['规则1','规则2'...] * @var array */ protected $rule = [ 'sex' => 'require|in:1,2', 'px' => 'require|in:500,999' ]; protected $scene = [ ...
true
b1d49a2eb6d9959d7b9233f5f8f830087f7f9fe9
PHP
fredcarneiro/laravel-php-api
/app/Carneiro/Transformers/Transformer.php
UTF-8
662
2.875
3
[ "MIT" ]
permissive
<?php namespace App\Carneiro\Transformers; /** * */ abstract class Transformer { /** * Transform a Collection * * @return array * @author Fred Carneiro **/ public function transformCollection(array $items) { return array_map([$this, 'transform'], $items); } /*...
true
176ee0bce2febcff923161845aa735786f0b9209
PHP
Aleks-W/chat
/auth/login.php
UTF-8
1,016
2.609375
3
[]
no_license
<?php require_once '../vendor/autoload.php'; require_once '../config/config-local.php'; if ( $_POST ) { $post = filter_input_array( INPUT_POST, $_POST ); try { $db = new \db\Db( DB_DSN, DB_USERNAME, DB_PASSWORD ); $user = $db->getUserByUsername( $post['username'] ); } catch ( Throwable $e ) { echo json_enco...
true
696789c524ef4d9c6660a5e0fdb3e2e6bfbbaafd
PHP
Hancock-Xu/FancyGo
/app/Company.php
UTF-8
3,295
2.859375
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * App\Company * * @property integer $id * @property \Carbon\Carbon $created_at * @property \Carbon\Carbon $updated_at * @property integer $user_id * @property string $company_name * @property string $business_license_name * @property string $c...
true
8880102778d930542c88f33c22be3c4f009daf01
PHP
stevejuUCL/RestaurantReviewsGroupF
/RestaurantReview/GetReservations.php
UTF-8
8,289
2.671875
3
[]
no_license
<?php session_start(); if (isset($_SESSION["userID"])) { require_once('PHP_Database/phpDatabaseConnection.php'); require_once('header.php'); $connection = connectToDb(); $userID = $_SESSION['userID']; $userType = $_SESSION['userType']; ?> <title>My Reservations</title> <div class="con...
true
8d423ae611b3b9c6941937c0235050802694fb0f
PHP
lslaaa/20171013
/ssi/cls/transmysql.class.php
UTF-8
23,779
2.78125
3
[]
no_license
<?php /* * @类名:分布式多库数据库操作类 * @描述: * 本类用作多服务器之间的多库式数据库操作,需要两条配置信息: * 1.服务器的配置信息,形如:array('服务器IP的最后一段数字'=>array('mysql:host=127.0.0.1;dbname=i','数据库账号','数据库密码'),....); * 2.分布式数据库或者表于服务器之间的对应信息:array('数据库名_表名'=>'服务器IP的最后一段数字','数据库名_*'=>'服务器IP最后一段数字',....); * 构造函数会自动将不同的数据库_表分配分配给相应的服务器,但不会立即初始化数据库连接,当真正执行一串sql的时候,才执...
true
4d1fafdd202656945bc3484e5c49ccbb061164c1
PHP
halgurdh/site
/wp-content/plugins/jetpack/json-endpoints/jetpack/class.jetpack-json-api-check-capabilities-endpoint.php
UTF-8
954
2.65625
3
[ "GPL-2.0-or-later", "GPL-1.0-or-later", "GPL-2.0-only", "MIT" ]
permissive
<?php class Jetpack_JSON_API_Check_Capabilities_Endpoint extends Jetpack_JSON_API_Modules_Endpoint { // GET /sites/%s/me/capability // The unused $object parameter is for making the method signature compatible with its parent class method. public function callback( $path = '', $_blog_id = 0, $object = null ) { //...
true
a793e38862043e2574f50846b076125ac7af49b4
PHP
msaad1999/PHP-Login-System
/contact/includes/contact.inc.php
UTF-8
4,358
2.625
3
[ "MIT" ]
permissive
<?php session_start(); require '../../assets/setup/env.php'; require '../../assets/includes/security_functions.php'; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require '../../assets/vendor/PHPMailer/src/Exception.php'; require '../../assets/vendor/PHPMailer/src/PHPMailer.php'; require '.....
true
ea4deac1bc51f56a138669b1afb0297fbe857f48
PHP
AmsterdamPHP/trello-organizer
/src/Trello/BoardManager.php
UTF-8
1,761
2.75
3
[]
no_license
<?php declare(strict_types=1); namespace AmsterdamPHP\TrelloChecklister\Trello; use AmsterdamPHP\TrelloChecklister\ExecutionResult; use DateTimeImmutable; use Stevenmaguire\Services\Trello\Client; use function array_filter; final class BoardManager { /** * @var Client */ private $trello; priva...
true
8021e333f5664d12fc0f23d09493dd3959ccf3dc
PHP
khaliqakhan/HelloWorld
/HelloWorld.php
UTF-8
313
2.890625
3
[]
no_license
<!-- NAME: Khaliq Khan --> <!-- DATE: September 12th, 2018 --> <!-- PROGRAM: HelloWorld.PHP --> <html> <!-- HTML Header --> <head> <title>PHP Test</title> </head> <!-- PHP code to echo "Hello World" --> <body> <?php echo '<p>Hello World</p>'; ?> </body> </html>
true
79e41c754591b85ea222114a7c892e71fb681cbe
PHP
aweneagle/env
/env/hash/console.php
UTF-8
1,976
3.125
3
[]
no_license
<?php namespace env\hash; class console implements ihash{ private $inputs = array(); public function __construct(){ global $argv; if ($argv) { foreach ($argv as $i => $a) { if ($delimit_pos = strpos($a, '=')) { /* '=' is not the first characters of $a */ $key = substr($a, 0, $delimit_pos); ...
true
dc4deacf17e8aeb8cb59ff36b38ff03fe0225572
PHP
Vutov/SoftUni
/PHP/Exams/Exam-05-Sept/03.FacebookPosts.php
UTF-8
1,641
3.171875
3
[]
no_license
<?php date_default_timezone_set('UTC'); $text = $_GET['text']; //var_dump($text); $regex = '/\s*(.*?)\s*;\s*(.*?)\s*;\s*(.*?)\s*;\s*(.*?)\s*;\s*(.*)/'; preg_match_all($regex, $text, $matches); $json = []; //var_dump($matches); for ($i = 0; $i < count($matches[0]); $i++) { $name = $matches[1][$i]; $date = $matc...
true
2f7e043041beb42d14bbdf26d136a3acad1d2636
PHP
olguinjosiass/ngsys-bstore
/models/inventario.modelo.php
UTF-8
1,822
2.90625
3
[]
no_license
<?php require_once "conexion.php"; class ModeloInventario { // MOSTRAR MOVIMIENTOS static public function mdlMostrarMovimientos($item, $valor) { if ($item != null) { $sentencia = Conexion::conectar()->prepare("SELECT inventario.*, productos.descripcion as producto ...
true
0610b0b595e75aaccd3d481c3692812d141eed8f
PHP
abisiaux/Polyjoule11-12_coteUtilisateur
/BD/LivreDOrBD.php
UTF-8
3,482
2.796875
3
[]
no_license
<?php include_once('BD.php'); include_once('../METIER/LivreDOr.php'); /** getAllLivreDOr() * Renvoie un tableau contenant tous les commentaires du livre d or sous forme d objets LivreDOr * @return LivreDOr $tableauDeLivreDOr[] : un tableau contenant tous les LivreDOr existants */ function getAllLivreD...
true
71b33856a0f68130b0c7f50d34e767bbe788bee6
PHP
Marsek190/cinema-app
/src/Validation/MovieValidator.php
UTF-8
2,169
2.84375
3
[]
no_license
<?php namespace App\Validation; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\Validator\Constraints\Collection; class MovieValidator extends AbstractValidator { protected function getConstraint(): Collection { return new Collection([ 'title' => $this->getTit...
true
4099511f36ae3f2425837d4ad0b7d1d823cf2c39
PHP
MAJA-Lin/LeetCodePlayground
/src/algorithms/leetcode/easy/0509_Fibonacci_Number/FibonacciNumber.php
UTF-8
2,126
4.25
4
[]
no_license
<?php /** * Related questions: * 91. Decode Ways * 62. Unique Paths * 70. Climbing Stairs */ class Solution { /** * @param Integer $n * @return Integer */ public function fibRecursive($n) { if ($n === 0) { return 0; } if ($n === 1) { ...
true
d9a9cdaf9e44de62350e545efa3e35ce145259a4
PHP
rockysynergy/algs4_php
/test/Util/StopWatchTest.php
UTF-8
949
2.515625
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; class StopWatchTest extends TestCase { /** * @test */ public function elapsedTime() { $start = new \DateTime('2001-07-12 18:00:00'); $stopWatch = new \Orq\PHP\Algs\Util\Stopwatch($start); $now = new \DateTime(); $diff = $now->getT...
true
a2e5067a5ee9bcc6c24fa7becca97e35c4ff07f7
PHP
tux-php/LivroPHPOO_DesignPattern
/classes/Cidade.php
UTF-8
435
3.453125
3
[]
no_license
<?php class Cidade { private $id; private $nome; function __construct($id) { $data[1] = 'Porto Alegre'; $data[2] = 'São Paulo'; $data[3] = 'Rio de Janeiro'; $data[4] = 'Belo Horizonte'; $this->id = $id; $this->setNome($data[$id]); } function ...
true
640876700060c31765c5624438eb737ed2ad89b9
PHP
zjhzxjm/realbio
/app/www/models/payment.php
UTF-8
1,736
2.53125
3
[]
no_license
<?php /*********************************************************** Filename: app/www/models/payment.php Note : 购物车表中涉及到的操作 ***********************************************************/ class payment_m extends Model { var $sessid; function __construct() { parent::Model(); } function payment_m() { $this->__co...
true
97d3472c4dc324fb070d329098027a583cf0350d
PHP
dariomolina93/Soundbox
/src/ACRCloud.php
UTF-8
5,404
2.984375
3
[]
no_license
<?php //include the file for spotify and youtube include("Spotify.php"); require __DIR__ . "/YoutubeAudioLink.php"; class ACRCloud{ //class attributes private $apiResponse; private $spotifyData; private $youtubeData; private $song; //declare a variables for spotify and youtube class ...
true
af0f4206189e3c6fadce24c083eb59ae7472249e
PHP
jitu-git/php-rest-framework
/app/Database/Mysql/Connection.php
UTF-8
1,051
3.03125
3
[]
no_license
<?php namespace App\Database\Mysql; use App\Database\DbConnection; use \PDO; class Connection extends DbConnection { private $host, $username, $password, $database, $port, $socket; public $connection, $prefix; public function __construct() { $this->dbConfig(); } public function connec...
true
c657301556ab38fb450b01f2415476ae4dd924f7
PHP
baraveli/container
/src/Sample/SampleClass.php
UTF-8
140
2.671875
3
[]
no_license
<?php namespace Baraveli\Container\Sample; class SampleClass { public function printHello() { echo 'Hello World'; } }
true
0d8d4c8e8362253b34984732259d9edefe8b0e85
PHP
Rajavasanthan/mr-framework
/framework/Router.class.php
UTF-8
3,151
2.9375
3
[]
no_license
<?php namespace com; /** * @copyright (c) 2011-13, Magesh Ravi */ class Router { /** @var Log $log */ private $log; private $path; private $args = array(); public $file; public $controller; public $action; /** * * @param string $path the controller directory path...
true
3c1c2bbfc144df8343ce9f5f3a30aee7419ce418
PHP
blitz-php/framework
/src/Validation/Rules/Unique.php
UTF-8
2,281
2.671875
3
[]
no_license
<?php /** * This file is part of Blitz PHP framework. * * (c) 2022 Dimitri Sitchet Tomkeu <devcode.dst@gmail.com> * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ namespace BlitzPHP\Validation\Rules; use BlitzPHP\Contracts\Databa...
true
25eb6428fb6da822d844d79759468c554ee18416
PHP
ChildrenOfTek/Project
/EHS/src/UserBundle/Controller/SecurityController.php
UTF-8
3,838
2.578125
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace UserBundle\Controller; /** * Description of SecurityController * * */ use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use...
true
991d2e51819c0c25134627a9764569477b14afc5
PHP
Mcflag/mcflag-ganchai
/PHP/Public/Assets/libs/uploadify/uploadify.php
UTF-8
4,116
2.78125
3
[ "MIT" ]
permissive
<?php /* Uploadify Copyright (c) 2012 Reactive Apps, Ronnie Garcia Released under the MIT License <http://www.opensource.org/licenses/mit-license.php> */ header("Content-Type:text/json;charset='utf-8'"); // Define a destination $targetFolder = '/uploads/image'; // Relative to the root $verifyToken = md5('unique_salt'...
true
e3b2effed61f02e19518fdf64d96ca8fd73ec7cd
PHP
jy4uk/webPL_jyar
/todo/signOut.php
UTF-8
619
2.65625
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="main.css" /> <title>Logged Out</title> </head> <body> <?php session_start() ?> <div class="container"> <h2>You have successfully logged out.</h2> ...
true
a7579a9894a6b924ec395390c1927264c83e594f
PHP
svknd/sws-sdk
/src/OAuth.php
UTF-8
996
2.8125
3
[]
no_license
<?php declare(strict_types=1); namespace Savikindo\Sws; use GuzzleHttp\Client; class OAuth { private $data = []; public function __construct() { // } public function autorize(array $payload=null) { $client = new Client([ 'headers' => ['Content-Type' => 'application...
true
61505df973797cb78f09d1875046d93a0710e6c6
PHP
vinicius56789/WEBSite-Automoveis
/adm/excluircarro.php
UTF-8
1,860
2.53125
3
[ "CC0-1.0" ]
permissive
<?php include_once('../php/conexao.php'); include_once('../php/verifica_login.php'); $id_carro = $_GET['id']; $query = "SELECT * FROM carro WHERE id_carro = $id_carro"; $res = mysqli_query($con, $query); $row = mysqli_fetch_array($res); $imagens = "SELECT arquivo FROM imagens_carro W...
true
85f34393f3a013a4da9af2ee9904582992ed51f4
PHP
duncan3dc/dates
/tests/RangeTest.php
UTF-8
2,512
3.109375
3
[ "Apache-2.0" ]
permissive
<?php namespace duncan3dc\DateTests; use duncan3dc\Dates\Date; use duncan3dc\Dates\DateTime; use duncan3dc\Dates\Range; use PHPUnit\Framework\TestCase; class RangeTest extends TestCase { public function testGetStart(): void { $date = Date::now(); $range = new Range($date, $date); $thi...
true
08c852acd2441cfcaf8c4f4837cc28983ed04b39
PHP
juni-core-sarl/lesemeur
/Autoload.php
UTF-8
353
2.625
3
[]
no_license
<?php namespace App; class Autoload { static function register() { spl_autoload_register(array(__CLASS__, 'autoload')); } static function autoload($class) { $class = str_replace(__NAMESPACE__, "", $class); $class = str_replace("\\", "/", $class); require __DIR__ ...
true
d1017a423da14697f3bae3f4446dabf4e5b86492
PHP
UrzhuntcevUV/php
/6/4.php
UTF-8
5,945
2.59375
3
[]
no_license
<?php /** * Напишите программу, отображающую, проверяющую достоверность и обрабатывающую * форму для ввода сведений о доставленной посылке. Эта форма должна содержать * поля ввода адресов отправителя и получателя, а также размеров и веса посылки. * При проверке достоверности данных из переданной на обработку формы ...
true
b49f451c067d114f0c37d27ba133c6beacbfbf53
PHP
webhappens/traverser
/tests/Stubs/Page.php
UTF-8
613
2.609375
3
[ "MIT" ]
permissive
<?php namespace WebHappens\Traverser\Tests\Stubs; class Page extends Model { public $uri; public function __construct($uri) { $this->uri = $uri; } protected static $data = [ 'home' => [], 'about' => ['parent' => 'home'], 'contact' => ['parent' => 'home'], ]; ...
true
eb1bd7cc0d779a51e71db761fdadb53a14922988
PHP
all-ride/ride-lib-api
/src/ride/library/api/doc/tag/ParamTag.php
UTF-8
1,699
2.96875
3
[]
no_license
<?php namespace ride\library\api\doc\tag; use ride\library\api\doc\Doc; use ride\library\api\doc\DocParameter; /** * Parser for the param tag */ class ParamTag extends Tag { /** * Name of this tag * @var string */ const NAME = 'param'; /** * Parses the lines for this tag into the ...
true
4a7894c8068807ae9be72a1470eeef76a70f114c
PHP
hthiers/CAService_legacy
/vo/UserVO.php
UTF-8
1,508
3.03125
3
[]
no_license
<?php /* Value Object para manejar datos de usuario */ class UserVO { private $id_user; private $code_user; private $id_tenant; private $name_user; private $id_profile; private $password_user; public function UserVO() { } //ID USER public function...
true
69a8adc01c949b4d6b6f0ece5c3695c3bc8bfe8e
PHP
superdev999/Bueno
/app/Bueno/Services/SmsAPI.php
UTF-8
1,371
3.015625
3
[ "MIT" ]
permissive
<?php namespace Bueno\Services; use Bueno\Loggers\SmsLogger; use GuzzleHttp\Client; use Bueno\Repositories\DbOrderRepository as OrderRepo; class SmsAPI { /** * Guzzle Client Instance * */ protected $client; protected $logger; /** * base url for the SMS API * * @var string */ protect...
true
41a217d704f0bc5a12fa8a7bc6235ceda5e8b3a2
PHP
jsRuner/trainingsys
/Application/Teacher/Model/VideoRelationModel.class.php
UTF-8
3,665
2.515625
3
[ "Apache-2.0" ]
permissive
<?php namespace Teacher\Model; use Think\Model\RelationModel; /** * 视频关联的模型 */ class VideoRelationModel extends RelationModel { protected $tableName ="course_videos"; //关联规则 protected $_link = array( 'author'=>array( 'mapping_type' => self::BELONGS_TO, //视频必定属于某个用...
true
02710f424e941a47dcae62223047b40ccf2630ce
PHP
muhnbl/0110120189_GET_AND_POST-
/0110120189_GET_AND_POST_SI04/getandpost.php
UTF-8
874
2.828125
3
[]
no_license
<!DOCTYPE html> <html> <body> <h3>Method GET!</h3> <form method="GET" action="finish.php"> <label for="name">Name :</label> <input type="text" name="name"><br> <label for="email">E-mail :</label> <input type="text" name="email"><br> <input type="submit" name="submit" value="Submit!"> </for...
true
97ba955fa1853d217e6de206d25f1e45bd27a4b0
PHP
jasonlimantoro/infinitude
/app/Http/Controllers/VisitorsController.php
UTF-8
1,116
2.796875
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Visitor; use App\Mail\VisitorContact; class VisitorsController extends Controller { public function send() { // Validate the form $this->validate(request(), [ 'name' => 'required|min:5', 'email' => ...
true
bc046a3b15f293e189f2d105d55f824c60249052
PHP
jifalops/oatia
/tables.php
UTF-8
1,696
2.734375
3
[]
no_license
<?php require_once('header.php'); echo '<h4>This page shows a raw dump of all of the tables in the database</h4>'; /*echo '<a href="tables.php?table=all">all</a> | <a href="tables.php?table=agency">agency</a> | <a href="tables.php?table=member">member</a> | <a href="tables.php?table=person">person...
true
1112b7ca0aac56ddd2623505cf0d4ad2611c4ae3
PHP
haroldmantilla/framework
/lib/lib_csv.php
UTF-8
2,619
3.453125
3
[]
no_license
<?php // This function reads in a CSV, Comma Separated file, and returns a // 2D array indexed like, $table[ROW_ID][COLUMN_ID] = CELL_VALUE // Inputs: // $filename = 'test.csv' // specific file // $withHeaders = True // Is their a header row // $withLeftID = True // Can a row be determined by ...
true
b2460aae1024b5582ff02df98f27ebd411e614d7
PHP
humisoft/humiweb
/script/PersonActions.php
UTF-8
7,750
2.53125
3
[]
no_license
<?php try { //Open database connection include(".dbconfig.php"); //Getting records (listAction) if($_GET["action"] == "list") { //Get records from database $result = mysqli_query($dbconfig, "SELECT * FROM olt ORDER BY d...
true
25ae66c7bbc60fd30f52762437e73bafffa04551
PHP
copycomme/contactform.plugin
/snippets/contactform.php
UTF-8
2,453
2.5625
3
[]
no_license
<?php $form = new contactform(array( 'to' => 'John <john@yourdomain.com>', 'from' => 'Contact Form <contact@yourdomain.com>', 'subject' => 'New contact form request', 'goto' => $page->url() . '/status:thank-you' )); ?> <section id="contactform"> <?php if(param('status') == 'thank-you'): ?> ...
true
ebd27168bc29405f0a972c22ee4937a62d3f463c
PHP
calderacc/geobundle
/DistanceCalculator/DistanceCalculatorInterface.php
UTF-8
300
2.59375
3
[]
no_license
<?php namespace Caldera\GeoBundle\DistanceCalculator; use Caldera\GeoBundle\PositionList\PositionListInterface; interface DistanceCalculatorInterface { public function setPositionList(PositionListInterface $positionList): DistanceCalculatorInterface; public function calculate(): float; }
true
6877d21b65ca92da108095c2b82a25e2623dc9d3
PHP
binsoul/net-http-response
/src/Type/Redirection/NotModifiedResponse.php
UTF-8
563
2.53125
3
[ "MIT" ]
permissive
<?php declare (strict_types = 1); namespace BinSoul\Net\Http\Response\Type\Redirection; use BinSoul\Net\Http\Message\Collection\HeaderCollection; use BinSoul\Net\Http\Response\Type\RedirectionResponse; /** * Represents a response with the HTTP status code 304. */ class NotModifiedResponse extends RedirectionRespo...
true
59eeb0bc5324596f7c13338854b9b9ea9bb4ee93
PHP
orangeShadow/payment_system
/src/Exceptions/CurrencyRateExistException.php
UTF-8
413
2.734375
3
[]
no_license
<?php declare(strict_types=1); namespace OrangeShadow\Payments\Exceptions; use Throwable; class CurrencyRateExistException extends PaymentsException { public function __construct(string $date, int $code = 0, Throwable $previous = null) { $message = "Currency rate on ...
true
0c4e2d2e48e34af047767962ae98adf116e92bbd
PHP
TEAM-APP-BIT-11/Wezenberg-Project
/application/views/trainer/wedstrijdaanvraag_aanpassen.php
UTF-8
3,899
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * @file wedstrijdaanvraag_aanpassen.php * @author Ruben Tuytens * * View waar een wedstrijddeelname wordt weergegeven van een persoon en kan aangepast worden. * - krijgt een $deelname-object binnen * - krijgt een $huidigeSlagAFstand-object binnen * - haalt afstanden op met ajax */ ?> <link rel="styles...
true
d896fc7b8eec5d72e9fcb22e970daa21dbe3a355
PHP
rexyrex/student-recruiter
/test/models/TeacherTest.php
UTF-8
674
2.796875
3
[]
no_license
<?php class TeacherTest extends PHPUnit_Framework_TestCase { public function testCreateTeacher() { $t = new Teacher(); $t->firstname = "Wikc"; $t->lastname = "Dominik"; $t->hashed_password = "123456"; $t->email = "scodfk@example.com"; $t->gender = 0; $t->dob = '1999-09-21'; $t->school_id = 1; $t->ph...
true
6d8fb6f6df471c2b434c08a393f99c5c526429bc
PHP
Nikitae57/web
/lab7/db_connection.php
UTF-8
344
2.828125
3
[]
no_license
<?php function OpenDbConnection() { $dbhost = "localhost"; $dbuser = "root"; $dbpass = "password"; $db = "mydb"; $conn = new mysqli($dbhost, $dbuser, $dbpass, $db) or die("Connect failed: %s\n". $conn -> error); $conn -> set_charset('utf8'); return $conn; } function CloseDbConnection($conn) { $...
true
4422581b173a144cfe187137982ad0809f4407ea
PHP
MarquesMan/Sistema
/www/ci/application/models/estagios/Estagios_aluno.php
UTF-8
2,434
2.546875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * Class User_model * * Clasee resposável por fazer o gerenciamneto dos estagios de um aluno */ class Estagios_aluno extends MY_Model { public function estagios(){ $query = $this->db->query('SELECT user_id FROM users WHERE user =...
true
44fd067cb40f428871cc4539ee45d73da11582d4
PHP
maximizeIT/MAS
/App/admin/assets/deleteAssociation.php
UTF-8
891
2.546875
3
[]
no_license
<?php // needed for prepared DB statements include_once('db/DBHandler_rw.php'); // Checks for input fields if ($_SERVER['REQUEST_METHOD'] == 'POST') { // check for errors } //Check all fields if (empty($_POST['association_name']) || $_SERVER['REQUEST_METHOD'] == 'GET') { if ($_SERVER['REQUEST_METHOD'] == 'POST') ...
true
47b459529257a52bcf1b844dc3d00d85a899e1c8
PHP
rgrigga/myapp
/app/controllers/BlogController.php
UTF-8
39,220
2.859375
3
[ "MIT" ]
permissive
<?php function sortArrayByArray($array,$orderArray) { $ordered = array(); foreach($orderArray as $key) { if(array_key_exists($key,$array)) { $ordered[$key] = $array[$key]; unset($array[$key]); } } return $ordered + $array; } // http://flatuicolors.com/ //http://www.codera...
true
6351d795107c369050e234dfd1720f918c8ec7a1
PHP
P79N6A/project_code
/project/payhk/models/open/YidunRequest.php
UTF-8
2,995
2.5625
3
[]
no_license
<?php namespace app\models\open; use Yii; /** * This is the model class for table "yidun_request". * * @property integer $id * @property integer $requestid * @property integer $aid * @property string $name * @property string $idcard * @property string $phone * @property string $token * @property string $pa...
true