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
6b514684dd5f2933abf7835cd9b453ad1c2e2131
PHP
asgupta9/classroombooking
/user.php
UTF-8
1,584
2.78125
3
[]
no_license
<?php include('database.php'); session_start(); class user{ var $username; var $userid; var $password; var $type; public function login($userid,$password){ $db=new database(); $valid=$db->validateCredentials($userid,$password); if($valid){ $row=mysqli_fetch_row($valid); ...
true
90fe8a72129c8982c27ff8bde932842f83449693
PHP
daymwk/disconunu
/controller/classes.php
UTF-8
2,655
2.96875
3
[]
no_license
<?php require dirname(__FILE__) . '/../dbUtil/select.php'; require dirname(__FILE__) . '/../dbUtil/insert.php'; class User { private $userID; private $username; private $email; function __construct($UserID){ $data = selectUser($UserID); $this->userID = $UserID; $this->username = $data['username'...
true
4f625df5dc56e7f8d500318392742f62c7a36136
PHP
MohsinQK/focuspoint
/Classes/Domain/Model/Content.php
UTF-8
753
2.6875
3
[]
no_license
<?php declare(strict_types = 1); /** * Content. */ namespace HDNET\Focuspoint\Domain\Model; use HDNET\Autoloader\Annotation\DatabaseField; use HDNET\Autoloader\Annotation\DatabaseTable; /** * Content. * * @DatabaseTable("tt_content") */ class Content extends AbstractModel { /** * Image ratio. *...
true
18406c08d2a7c7f564d6e5062d80717e61aa4420
PHP
cthit/chalmersit-wordpress
/lib/helpers.php
UTF-8
9,921
2.828125
3
[ "MIT" ]
permissive
<?php function load_all($dir) { foreach(glob(get_template_directory()."/{$dir}/*.php") as $filename) { include $filename; } } function asset_path($file) { echo ASSET_PATH . $file; } function img_url($img) { echo asset_path("/images/".$img); } function javascript_path($file) { $f = append_extension($file, ".j...
true
ebfaaa9db4dc2b6ba757c8c62f1c9862ebaac655
PHP
imjonos/laravel-laguage-lines
/src/Services/LanguageLineService.php
UTF-8
3,838
2.734375
3
[ "MIT" ]
permissive
<?php namespace Nos\LanguageLine\Services; use Exception; use Illuminate\Contracts\Container\BindingResolutionException; use Illuminate\Filesystem\Filesystem; use Nos\CRUD\Services\BaseService; use Nos\LanguageLine\Interfaces\Repositories\LanguageLineRepositoryInterface; use Nos\LanguageLine\Interfaces\Repositories\L...
true
f5ef6407c7bf55d746c2ffd668568b63dd3577f2
PHP
benjaminhansen/workday-wsdl
/src/StructType/External_Pay_Group_ReferenceType.php
UTF-8
2,364
2.828125
3
[]
no_license
<?php namespace WorkdayWsdl\\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for External_Pay_Group_ReferenceType StructType * Meta information extracted from the WSDL * - documentation: Reference element representing a unique instance of External Pay Group. * @subpackage Struc...
true
f50285970b592cc0ad5ce8215897c370c36188f6
PHP
gteeuwen/webshop
/webshop_drie/general/session_manager.php
UTF-8
605
3.203125
3
[]
no_license
<?php class SessionManager{ public function __construct(){ session_start(); } public function setOrEditSessionVariable($var_name, $var_value){ $_SESSION[$var_name] = $var_value; } public function getSessionVariable($var_name, $default = null){ return isset($_SESSION[$var_name]) ? $_SESSION[$var_name] :...
true
8c68e9bfb12c77172d03ae8565391f84eff20124
PHP
paynl/shopware6-plugin
/src/Helper/StringHelper.php
UTF-8
325
2.6875
3
[]
no_license
<?php declare(strict_types=1); namespace PaynlPayment\Shopware6\Helper; class StringHelper { public function endsWith(string $haystack, string $needle ) { $length = strlen($needle); if (!$length) { return true; } return substr($haystack, -$length) === $needle; ...
true
1d44c219a44cfdbb79dc457b29509e32fa9e767a
PHP
donszelmann/atlas-web
/htdocs/Atlas/Collaboration/datapreparationreadxml.php
UTF-8
3,523
2.703125
3
[]
no_license
<?php ob_start(); $xml_data = file_get_contents('https://atlas.web.cern.ch/Atlas/Collaboration/xmls/data.xml'); // Use cURL to get the RSS feed into a PHP string variable. $ch_data = curl_init(); curl_setopt($ch_data, CURLOPT_URL, 'https://atlas.web.cern.ch/Atlas/Collaboration/xmls/data.xml'); curl_setopt($c...
true
83709fad159914a3afc1350d0da9df60320b51d1
PHP
trimeloni/RecipeTutorial
/Project/OBJ/Recipe.php
UTF-8
1,159
3.015625
3
[]
no_license
<?php namespace OBJ; /** * @Entity @Table(name="recipe") **/ class Recipe { /** @Id @Column(name="recipeId",type="integer") @GeneratedValue **/ public $recipeId; /** @Column(type="string") **/ public $name; /** @Column(type="integer") **/ public $prepTime; /** @Colum...
true
0c883886e247c43aa735aeebdff8b96d9e0b0837
PHP
zjjzjw/fangquantest
/fangquan/core/app/Src/Developer/Infra/Repository/DeveloperRepository.php
UTF-8
7,151
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Src\Developer\Infra\Repository; use App\Foundation\Domain\Repository; use App\Src\Developer\Domain\Interfaces\DeveloperInterface; use App\Src\Developer\Domain\Model\DeveloperEntity; use App\Src\Developer\Domain\Model\DeveloperSpecification; use App\Src\Developer\Domain\Model\DeveloperStatus; use Ap...
true
02ab2b86a82cd013708d31ea95121d423eff6658
PHP
laurinaT/Exercices
/backend/php/poo/exo9/model/catManager.php
UTF-8
1,178
3.5
4
[]
no_license
<?php /** * */ final class CatManager { private PDO $_db; public function getCats():array { $query = $this->_db->query('SELECT * FROM cat'); //Si on souhaite récupérer directement des objets $data = $query->fetchAll(PDO::FETCH_CLASS, "Cat"); //Sinon on peut utiliser fetch assoc mais il faut cré...
true
8279876d2a07380b9d01e9e5d8cd1033d3e74fa2
PHP
gcr-ciscar/gcr_ciscar
/site-administration/modules/document/DocInfoDyn/metier/view/DocInfoDynListView.php
UTF-8
1,688
2.8125
3
[]
no_license
<?php /** * @author Florent DESPIERRES * @package site-administration * @subpackage document * @version 1.0.4 */ class DocInfoDynListView { private $myList; public function __construct($aList) { $this->myList = $aList; } // ### public function render() { // Navigation bar $aff = '<b><...
true
69a6298b80c8344e9229750662b76c00aeab09b8
PHP
sytnic/photo-gallery
/public/admin/index.php
UTF-8
1,013
2.59375
3
[]
no_license
<?php require_once("../../includes/initialize.php"); // в 27 строке, в session.php, я описал этот момент. Если функция is_logged_in() возвращает true, значит была уже задана сессия (на странице есть SESSION), иначе она возвращает false, сессии не было. Эту проверку производит функция check_login() там. if (!$session-...
true
9024c6a7f2d94fdefa6892c9e0fb67e2a9a98e1d
PHP
rolandx/php
/orders/get_latest.php
UTF-8
3,428
2.71875
3
[]
no_license
<?php /* ** 打印出最近一段时间的网站订单。 by wzs 090913 ** 时间格式有两种:一是到本周一网站所有的订单(已排除前期的订单);另一种是上一周的网站订单(周一至周日) */ header("Content-type: text/html; charset=utf-8"); $DB_Server = "localhost"; $DB_Username = "root"; $DB_Password = "123465"; $DB_DBName = "2u4u"; $Connect = @mysql_connect($DB_Server, $DB_Username, $DB_Password) or d...
true
2bd538129d7e47254c8befdb3cb9661cd2069d45
PHP
bsod85/test-alunni
/src/AppBundle/DataFixtures/ORM/Alunni.php
UTF-8
1,227
2.578125
3
[]
no_license
<?php namespace AppBundle\DataFixtures\ORM; use AppBundle\Entity\Alunno; use AppBundle\Entity\Voto; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Common\Persistence\ObjectManager; class Alunni extends Fixture { public function load(ObjectManager $manager) { $alunni = [ ['Angelo...
true
c67c80d2fb7355939dccabd114564ac3b43bbc79
PHP
xiaochong0302/cphalcon
/tests/unit/Tag/SetTitleCest.php
UTF-8
870
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * This file is part of the Phalcon Framework. * * (c) Phalcon Team <team@phalcon.io> * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ declare(strict_types=1); namespace Phalcon\Test\Unit\Tag; use Phalcon\Tag; use U...
true
1d842a8cacaf9af9a28a2b763c2eb91670fd994c
PHP
bornfight/wp-main-template
/app/postTypes/CustomPostTypeFactory.php
UTF-8
519
2.546875
3
[]
no_license
<?php namespace {=namespaceSlug=}\postTypes; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } use {=namespaceSlug=}\helpers\CustomPostTypeHelper; use {=namespaceSlug=}\postTypes\customPostTypes\TestPostType; class CustomPostTypeFactory { public static function get_post_type_object( string $post...
true
b678081f6a61d95a05dff84563c91a51d4aebaa7
PHP
thyagopacher/correspondente-bancario
/control/ConsultaCpfSiape.php
UTF-8
2,005
2.609375
3
[ "Apache-2.0" ]
permissive
<?php header('Content-Type: text/html; charset=utf-8'); // $cpf = $_POST["cpf"]; $cpf = "05820810929"; if(isset($cpf) && $cpf != NULL && $cpf != ""){ function __autoload($class_name) { if(file_exists("../model/".$class_name . '.php')){ include "../model/".$class_name ....
true
eae47ad527ae4c57a5c1bc9752801bb35ee041dc
PHP
snehaj/acr
/adserver/src/rest/BannerController.php
UTF-8
3,595
2.6875
3
[]
no_license
<?php /** * @package Adserver * @author Sneha J */ use \Jacwright\RestServer\RestException; require_once 'AdsController.php'; require_once 'HttpStatusCodes.php'; require_once 'Banner.php'; require_once 'Campaign.php'; class BannerController extends AdsController { /** * Gets sll banners info * ...
true
17c68fddd5919763131dbd2f9851fe59ed583710
PHP
HDVinnie/Gazelle-1
/sections/torrents/ranking_funcs.php
UTF-8
3,814
2.625
3
[ "Unlicense" ]
permissive
<?php function inverse_ncdf($p) { /*************************************************************************** * inverse_ncdf.php * ------------------- * begin : Friday, January 16, 2004 * copyright : (C) 2004 Michael Nickerson * email : nickersonm@yahoo.com * **...
true
3f8cfb7fc25c8f941995afe45dd80bd0c1ed11a8
PHP
ugoh2kelechi/everydayhomecare
/app/Http/Requests/contentRequest.php
UTF-8
709
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use App\Http\Requests\Request; class contentRequest extends Request { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules that apply to the request. * *...
true
c110ed7ffb2e106cbcfc942724a6a154a2274f32
PHP
NovaXmu/app
/meet/model/data/Message.php
UTF-8
4,234
2.734375
3
[]
no_license
<?php /** * * @copyright Copyright (c) 2015 echo Lin * All rights reserved * * file: Message.php * description: Data for Message.php * * @author Linjun * @license Apache v2 License * **/ class Data_Message{ function __construct(){} /** * 添加消息记录 * * @param int ...
true
661ac1bfcbb43603a4ee455b4e4cd023ef43bccc
PHP
mhannan-dev/laravel-myweb
/app/Models/Tag.php
UTF-8
632
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Tag extends Model { public function setNameAttribute($value){ $this->attributes['name'] = $value; $this->attributes['slug'] = $this->slugify($value); } private function slugify($value){ $name = str_replace(...
true
1165d3643510b2b24329c4d90dd03528dfe4da04
PHP
GiulianoMiralles/Stampymail-test
/includes/db.php
UTF-8
282
2.53125
3
[]
no_license
<?php //create the connection to the database $conection = new mysqli("localhost", "root", "", "stampymail_test", 3306); if ($conection->connect_errno) { echo "Error al intentar conectar con la base de datos: (" . $conection->connect_errno . ") " . $conection->connect_error; }
true
81a50ec103b404c327b88e5222fbba1266537ba9
PHP
GenesisFrame/real-estate-mls-search-master
/lib/KenRequest.php
UTF-8
5,924
2.9375
3
[]
no_license
<?php /* Plugin Name: Real Estate Cloud Plugin URI: http://www.realestatecloud.co Description: Real Estate MLS IDX Plugin Version: 1.5.1 Author: Real Estate Cloud LLC Author URI: http://www.realestatecloud.co License: Real Estate Cloud LLC */ class KenRequest { public function __get($name) { return $this -> quer...
true
266f8ee96544f9626182ecd09269ffab7acde3f7
PHP
tex-mall/tex-mall-2018
/app/Http/Requests/Api/VerificationCodeByLoginAndPasswordRequest.php
UTF-8
609
2.640625
3
[]
no_license
<?php namespace App\Http\Requests\Api; class VerificationCodeByLoginAndPasswordRequest extends FormRequest { /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'phone' => 'required|regex:/^1[34578]\d{9}$...
true
b68daa9560d88b9361fb14d6a9f95a4e7cf7ad6d
PHP
mahdikhorshidi/ecolefa
/app/Http/Controllers/Dashboard/Admin/UserController.php
UTF-8
3,195
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers\Dashboard\Admin; use App\User; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Spatie\Permission\Models\Role; class UserController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ ...
true
7445d4b5a5e4a0abfa00e87c40b361b32f090b2f
PHP
itrocks/examples
/itrocks/examples/widget/Date_As_Inputs.php
UTF-8
2,065
2.953125
3
[ "MIT" ]
permissive
<?php namespace ITRocks\Examples\Widget; use ITRocks\Framework\Builder; use ITRocks\Framework\Controller\Feature; use ITRocks\Framework\Controller\Parameter; use ITRocks\Framework\Tools\Date_Time; use ITRocks\Framework\View\Html\Builder\Property; use ITRocks\Framework\View\Html\Template; /** * Widget example widget ...
true
9d31e9ec8049e557606dd42932bf16eb2b5e296a
PHP
964repel/dincom
/app/controllers/StudylevelController.php
UTF-8
470
2.515625
3
[]
no_license
<?php namespace app\controllers; class StudylevelController extends AppController { public function changeAction(){ $studyLevel = !empty($_GET['studlvl']) ? $_GET['studlvl'] : null; if($studyLevel){ $studlvl = \R::findOne('study_levels', 'code = ?', [$studyLevel]); if (!...
true
a4b1014951dc7ce181116a0baae17606c8895fba
PHP
kasselTrankos/Ephp
/Ephp/fences/Ephp/serialize/Serialize.php
UTF-8
331
2.890625
3
[]
no_license
<?php namespace Ephp\serialize; use Ephp\Form\Form; class Serialize { public $serializes; public function __construct($args, $session) { foreach($args as $arg){ if($arg instanceof Form) $this->makeForm($arg, $session); } } private function makeForm($arg, $session) { $session->Add("FORM", serialize($arg...
true
0e0f632127a6082dc2962f44a0e110c70995d210
PHP
yanguanglan/platform
/app/Http/Controllers/ContactController.php
UTF-8
705
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Http\Requests; use App\Http\Controllers\Controller; use App\Repositories\Contact\ContactInterface as Contact; use App\Http\Requests\Contact\StoreRequest; class ContactController extends Controller { protected $contact; public function __construct(Contact $contact) { ...
true
c2ec611ff045658e43a84d7d34d0e4860981ed50
PHP
combak/Modpack-Webservice
/module/Modpack/Model/Github/IssueService.php
UTF-8
2,225
2.9375
3
[]
no_license
<?php namespace Modpack\Model\Github; use Zend\Http\Client; use Zend\Http\Request; use Zend\Json\Json; /** * Description of IssueService * * @author DerOli82 <https://github.com/DerOli82> */ class IssueService implements IssueServiceInterface { /** * Issue config * * @var array */ pri...
true
e3d85683ce9a4c955f412bf13698b8b060aef93a
PHP
octalmage/wib
/php-7.3.0/ext/standard/tests/file/stat_variation7-win32.phpt
UTF-8
4,310
3.015625
3
[ "MIT", "BSD-4-Clause-UC", "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "TCL", "ISC", "Zlib", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "blessing" ]
permissive
--TEST-- Test stat() functions: usage variations - names of dir/file stored in objects --SKIPIF-- <?php if (substr(PHP_OS, 0, 3) != 'WIN') { die('skip.. only for Windows'); } ?> --FILE-- <?php /* * Prototype: array stat ( string $filename ); * Description: Gives information about a file */ /* test the stats ...
true
65d57aec24a20e2e257c0a1d613a08485c97e42b
PHP
bykike/MarcarRegistroMySqlconCheckbokPhp
/actualizar.php
UTF-8
1,326
2.75
3
[]
no_license
<?php include 'conexion.php'; $link = conexion(); /* Uso a modo de función */ var_dump ($EmailCheckbox = $_POST[casilla]); /* Inicializamos a 0 el campo activo antes de reescribir los que están a 1 en el checkbox */ $sql = "UPDATE Usuarios SET activo = 0"; if(mysqli_query($link, $sql)){ echo "Los r...
true
e497f5867a074810ccc94fd6b637004786e76c08
PHP
djay43/Moteur-de-blog
/src/DAO/Auth.php
UTF-8
1,029
2.78125
3
[]
no_license
<?php namespace App\src\DAO; /* ----------Vérification de l'authentificaiton--------------*/ /** * Class Auth * @package App\src\DAO */ class Auth extends DAO{ /**---------------------------- VERIFICATION LOGIN MDP ADMIN ---------------------------------------------- * @return bool True si connecté, f...
true
681a038b8fbb8323e1894bd3807d5b599fc74b46
PHP
andymuqee/dangerous
/code/application/core/MQ_Controller.php
UTF-8
16,122
2.5625
3
[]
no_license
<?php /** * MQ_Controller Application Controller Class * * This class object is the extend to super class that every library in * XZD will be assigned to. * * @package TTZG * @subpackage Libraries * @category Libraries * @author xzd Dev Team * @version $Id: MQ_Controller.php06 2014-05-07 ...
true
205cb730badb999d1881a22a7718942207bf3e78
PHP
arusdef/kraftwerk
/craft/plugins/kraftwerk/services/Kraftwerk_RequestService.php
UTF-8
916
2.671875
3
[]
no_license
<?php namespace Craft; class Kraftwerk_RequestService extends BaseApplicationComponent { /** * Returns the request parameters that will be used for action parameter binding. * * By default, this method will return $_GET merged with {@link UrlManager::getRouteParams}. * * @return array The ...
true
e4bb024b68758749fc36dc88b51508bc4131fc91
PHP
AMSTONES/BRSC-Full
/wp-content/plugins/brsc-volunteers/brsc-volunteeringvj1.php
UTF-8
7,005
2.53125
3
[]
no_license
<?php /* Plugin Name:BRSC_VOLUNTEERS Description: A simple plugin that allows you to perform Create (INSERT), Read (SELECT), Update and Delete volunteers in a table. Version: 1.0.1 Author: June Kirkman */ /* THe table is set up when the plugin is activated */ register_activation_hook( __FILE__, 'Create_BRSC_Table'); fu...
true
1946fa89f30546fdbf0ef89ee6399e578a001c7c
PHP
johrdane93/SavHtdocs
/Silex/BOUTIQUE/src/Entity/details_commande.php
UTF-8
1,054
2.765625
3
[]
no_license
<?php namespace BOUTIQUE\Entity; class membre { private $id_details_commande; private $id_commande; private $id_produit; private $quantite; private $prix; public function getId_details_commande(){ return $this -> id_details_commande; } public function setId_details_comman...
true
19c263d5f284b3670dda7c805e2aa56c3dbeb88b
PHP
NiroshaKannan/PHP
/associative_array.php
UTF-8
246
3.6875
4
[]
no_license
<!DOCTYPE html> <html> <body> <h3>Associative Array in php </h3> <?php $flowers = array( "Nirosha" => "female", "Jain" => "female", "Ranjith" => "male"); echo "Ranjith is ".$flowers["Ranjith"]; ?> </body> </html>
true
788576c44a9ef2c95fc03d99169c6f3ef1531cef
PHP
JSTema/A_Test_Shop
/views/news/index.php
UTF-8
1,231
2.8125
3
[]
no_license
<?php //Regular //if (preg_match("/\bweb\b/i", "PHP is a web scripting language")) { // echo "Success"; //}else { // echo "Not value"; //} //preg_match('@^(?:http://)?([^/]+)@i', // "http://www.php.net/index.php", // $matches); //$host = $matches[1]; //preg_match('/[^.]+\.[^.]+$/', ...
true
f9cee2cdaf91a219fb0100cf4362ccecd9f6cc3c
PHP
alex-foleon/service-library-catalog-php
/tests/Exception/AppExceptionTest.php
UTF-8
494
2.515625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Tests\Exception; use LibraryCatalog\Exception\AppException; class AppExceptionTest extends \PHPUnit\Framework\TestCase { /** * Test message passed. */ public function testManualMessage() { self::assertEquals('Tiesto', (new AppException('Tiesto')...
true
a0a9cae7b677311ea29c560c25d72b10e52459b4
PHP
makeadiff/Phoenix
/app/GraphQL/Mutations/AssignBatchMentors.php
UTF-8
1,748
2.59375
3
[]
no_license
<?php namespace App\GraphQL\Mutations; use GraphQL\Type\Definition\ResolveInfo; use Nuwave\Lighthouse\Support\Contracts\GraphQLContext; // use App\Models\Allocation; // use App\Models\Batch; use App\Http\Controllers\BatchController; use Illuminate\Http\Request; use App\Exceptions\GraphQLException; class assignBatchMe...
true
fc6df34613bf01f1975379145615e65c0fe7b292
PHP
FoRavel/VVA-BTS-SIO
/VVA/date.php
UTF-8
648
3.078125
3
[]
no_license
<?php $aujourdhui = new DateTime("today"); $intervalle = new DateInterval("P1M"); $anneesEnCours = $aujourdhui->format("Y"); $dernierMoisAnnee = new DateTime($anneesEnCours."/12/31"); $iteration = new DatePeriod($aujourdhui, $intervalle, $dernierMoisAnnee); foreach($iteration as $mois) { echo $mois->format("F"); } ...
true
ecbaccb702340f66a97b7630d9c9158e5f3c2a86
PHP
Shepardov/donorstvo
/models/EditForm.php
UTF-8
425
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use yii\base\Model; class EditForm extends Model { public $password; public $email; public $name; public $surname; public $gender; public $birthdate; public $bloodtype; public function rules() { return [ [['email','name','surname','gende...
true
90fa84ecfaabb3852e8d7ed6e5590a3d73bf595d
PHP
linchg/wangpan
/application/libraries/File.php
UTF-8
5,999
2.796875
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class File { private $CI; public function __construct() { $this->CI =& get_instance(); } /** * 创建一个目录,返回创建好的目录id * * @param $uid int 用户ID * @param $fid int 父目录的ID * @param $name string 目录的名字 ...
true
319ac1569f6fa6b93ba5c3d9aea8eed5436340fb
PHP
Cleoco/my_patinoire_portfolio
/src/DataFixtures/AppFixtures.php
UTF-8
2,379
2.515625
3
[]
no_license
<?php namespace App\DataFixtures; use App\Entity\Comment; use App\Entity\Filter; use App\Entity\Article; use App\Entity\FiltersBlog; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Common\Persistence\ObjectManager; class AppFixtures extends Fixture { public function load(ObjectManager $manager) { ...
true
5b214b44335f5d294664e9b614b01dbf2e47c486
PHP
GoMexSI/gomexsi-web
/interaction/InteractionContainer.php
UTF-8
588
3.140625
3
[]
no_license
<?php require_once 'Interaction.php'; class InteractionContainer implements Interaction { private $source; private $target; public function __construct($title) { $interaction = new SupportedInteractions(); $this->interactionTitle = $title; $this->source = $interaction->interactionToSource($title); $this->...
true
8d294363e42101b60b3d4a7e550a89aeee4c2059
PHP
dmackenzie1985/phoenix-travel-laravel
/app/Http/Controllers/ItineraryController.php
UTF-8
4,917
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Itinerary; use App\Tour; use Illuminate\Http\Request; use App\Http\Requests; /* * Name: David Mackenzie * Date: 11/05/2017 * Description: Used to control routes for Itineraries * File: ItineraryController.php * Updated By: David Mackenzie * Updated: 19/05/2017 */ ...
true
57927249ec3adbb0e5cb5b767348f540db69568c
PHP
acid24/framework-mvc
/src/Salexandru/Db/Pdo/Statement/PdoStatement.php
UTF-8
1,320
2.890625
3
[]
no_license
<?php namespace Salexandru\Db\Pdo\Statement; use Salexandru\Db\PreparedStatementInterface as DbStatement; use Salexandru\Db\Adapter\PdoAdapter; use Salexandru\Db\RowSet\PdoRowSet; use Salexandru\Db\Exception\SqlException; class PdoStatement implements DbStatement { private $adapter; private $stmt; ...
true
6e43d67dbe78a0bc6a180c256a841919d6e42b97
PHP
kktsvetkov/ShrinkPress
/src/Code.php
UTF-8
3,850
2.953125
3
[]
no_license
<?php namespace ShrinkPress\Evolve; class Code { static function tabify($code) { $code = str_replace("\n", "\n\t" , $code); $code = "\t" . rtrim($code, "\t"); return $code; } static function extractByLines($code, $fromLine, $toLine) { $lines = explode("\n", $code); $total = count($lines); if ($from...
true
32533d4a9db821f86213dde04f77465d0e0cfbd7
PHP
dlepera/framework-3.0
/aplicativos/painel-dl/modulos/website/modelos/configuracaosite.modelo.php
UTF-8
1,158
2.53125
3
[]
no_license
<?php /** * @Autor : Diego Lepera * @E-mail : d_lepera@hotmail.com * @Projeto : FrameworkDL * @Data : 12/01/2015 10:27:37 */ namespace WebSite\Modelo; use \Geral\Modelo as GeralM; class ConfiguracaoSite extends GeralM\Principal{ protected $id, $tema = 1, $formato_data = 1; /* * 'Gets' e 'Sets' da...
true
394e4633cefaf15b40b795d5399b12ced95b2627
PHP
snowio/akeneo3-fredhopper-integration
/src/StandardAttributeMapper.php
UTF-8
3,027
2.53125
3
[]
no_license
<?php declare(strict_types=1); namespace SnowIO\Akeneo3Fredhopper; use SnowIO\Akeneo3DataModel\AttributeData as AkeneoAttributeData; use SnowIO\Akeneo3DataModel\AttributeType as AkeneoAttributeType; use SnowIO\FredhopperDataModel\AttributeDataSet; use SnowIO\FredhopperDataModel\AttributeType as FredhopperAttributeType...
true
b74f45e0127e07da07ca147e6499ae89f957184a
PHP
raulfraile/steganography_talk
/demos/demo2/demo2_1/decoder.php
UTF-8
1,317
3.0625
3
[ "MIT" ]
permissive
<?php require_once __DIR__ . '/../../../vendor/autoload.php'; require_once __DIR__ . '/../functions.php'; $image = imagecreatefrompng(__DIR__ . '/output.png'); $message = ''; $width = imagesx($image); $height = imagesy($image); $bitPosition = 0; $byte = 0; for ($y = 0; $y < $height; $y++) { for ($x = 0; $x < $w...
true
edcdd194c75c2c1b9727c9a066703670537bc100
PHP
benjads/bwr-wp-toolkit
/wp-content/plugins/bwr-toolkit/bwrt-multisite.php
UTF-8
2,483
2.65625
3
[]
no_license
<?php /** * ACTION: Add templates to new child/club site * * @param $site WP_Site New site, passed by core * @param array $args New site args, passed by core */ function bwrt_default_pages( WP_Site $site, array $args ) { // Get template pages $templates = bwrt_get_default_pages(); if ( empty($templat...
true
c9779e0aaa851cbab0f1249975dd942ad6d3d488
PHP
DavidSamuell/scanAndDine_SE
/register-user.php
UTF-8
3,371
2.875
3
[]
no_license
<?php include('config/constants.php'); ?> <!-- main content section starts here --> <div class="main-content"> <div class="wrapper"> <h1>Register User</h1> <br /><br /> <?php if(isset($_SESSION['add_user'])){ //checking whether the session i...
true
2347eb32f9987a915b901fc8e54900d823fd0a78
PHP
rossanorb/piweb
/application/forms/Cliente.php
UTF-8
6,774
2.78125
3
[]
no_license
<?php class Form_Cliente extends Zend_Form{ private $UfId = 0; public function __construct($options = null) { parent::__construct($options); } public function setIdUF($UfId = 0){ $this->UfId = $UfId; } public function generate() { ...
true
4a7a94441520be2b9986e027ef597ba89bf8628f
PHP
decodelabs/df-r7-base
/libraries/user/helper/Base.php
UTF-8
898
2.71875
3
[]
no_license
<?php /** * This file is part of the Decode Framework * @license http://opensource.org/licenses/MIT */ namespace df\user\helper; use DecodeLabs\Exceptional; use df\user; abstract class Base implements user\IHelper { public $manager; public static function factory(user\IManager $manager, $name) { ...
true
3c619905b31d774274597aaf5ce2397331013fe5
PHP
zetc0de/tugasphp
/tugas_array.php
UTF-8
1,556
2.96875
3
[ "BSD-2-Clause" ]
permissive
<?php $bulan = ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Augustus', 'September', 'Oktober', 'November', 'Desember', ]; $hari_ini = date('d'); $bulan_ini = date('n'); $tahun_ini = date('Y'); ?> <!DOCTYPE html> <html> <head> <title>Tugas Array</title> <style type="text/css"> *{ margin...
true
006928fd74f48fc3f1e965f1d21ffd39b351c6c7
PHP
BeautyFastCode/jottacms
/src/Menu/MenuService.php
UTF-8
447
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Menu; use App\Repository\PageRepositoryInterface; final class MenuService { private PageRepositoryInterface $pageRepository; public function __construct(PageRepositoryInterface $pageRepository) { $this->pageRepository = $pageRepository; } p...
true
79a6d5cda82a95498afbb342f8b4ade434888ce6
PHP
jujudellago/cabinetsens
/web/app/plugins/qode-music/post-types/albums/shortcodes/album-player.php
UTF-8
5,744
2.625
3
[ "MIT" ]
permissive
<?php namespace QodeMusic\CPT\Albums\Shortcodes; use QodeMusic\Lib; /** * Class AlbumsList * @package QodeMusic\CPT\Albums\Shortcodes */ class AlbumPlayer implements Lib\ShortcodeInterface { /** * @var string */ private $base; public function __construct() { $this->base = 'qode_album_player'; add_act...
true
468570a944b2da12a43e7ad57d796aa79b683ff0
PHP
enas-adwan/addrecipe
/search-master ٢/cookrecipe/register.php
UTF-8
757
2.6875
3
[]
no_license
<?php if($_POST['secret'] != '3CH6knCsenas2va8GrHk4mf3JqmUctCM') { exit("Access denied"); } $name = $_POST['name']; $gender = $_POST['gender']; $email=$_POST['email']; $password = $_POST['password']; if($name == '' || $password == '' ||$email==''){ echo 'please fill all values'; }else{ $con=mysqli_connect("...
true
34856125844c540f5f51fb94e99cd4e3f9a6753c
PHP
jnicomorell/magento2
/Ceg/app/code/Ceg/Quote/Ui/Component/Listing/Columns/Quantity.php
UTF-8
763
2.65625
3
[]
no_license
<?php declare(strict_types=1); namespace Ceg\Quote\Ui\Component\Listing\Columns; use Magento\Ui\Component\Listing\Columns\Column; class Quantity extends Column { /** * Column name */ const NAME = 'column.items_qty'; /** * Prepare Data Source * * @param array $dataSource * @...
true
901d750e342e0cd4be9207a8c6d8d5e0eea1d872
PHP
muktiwbw/apriori-algorithm
/apriori.php
UTF-8
6,102
2.578125
3
[]
no_license
<?php // ini_set('display_errors', 1); class Apriori{ private $data; private $itemsets = []; private $assoc_rules = []; private $thresholds = [ 'min_sup' => 40, 'min_conf' => 75]; private $last_iteration = 0; private $current_iteration = 0; public function set_data($_data){ $this->data = $_data;} public function get_...
true
a0cc445b4d2172ebe9ff5943ccfdad6083e02aef
PHP
Basster/twig-bundle
/Loader/InMemoryLoader.php
UTF-8
2,312
2.765625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the DriftPHP Project * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Feel free to edit as you please, and have fun. * * @author Marc Morera <yuhu@mmoreram.com> */ declare(strict_types=1); names...
true
4b1ca855f576bd45fce993f9cfd674d16724b88e
PHP
NicolassciarrottaUNLu/pawfinal
/app/controllers/admin.php
UTF-8
25,046
2.609375
3
[]
no_license
<?php namespace App\Controllers; require_once('app/models/usuario.php'); require_once('app/models/auth.php'); require_once('app/models/categoria.php'); require_once('app/models/contacto.php'); require_once('app/models/producto.php'); require_once('app/models/oferta.php'); require_once('app/models/pedido.php');...
true
506f4706ad5d1c21a5d0f718c0863b92e4cf5415
PHP
lnaundorf/abibuch
/Login.php
UTF-8
2,364
2.5625
3
[]
no_license
<h1>Login</h1> <? require('ValUser.php'); require('actionLog.php'); //check if user already logged in if(!$loggedin) { if($_POST['user']) { if(!$userexists) { echo '<div style="color: red; font-size: 14pt">Der Benutzer existiert nicht<br></div>'; } else { if(!$pwright) { echo '<div style="color: red; font-si...
true
08063667b49096ea5e5091ffb241e75d3ecd2924
PHP
offbeat-empire/offbeat-view-counts
/offbeat-view-counts.php
UTF-8
4,256
2.640625
3
[]
no_license
<?php /** * Plugin Name: Offbeat View Counts * Description: Jetpack enabled view counter for Offbeat Empire * Version: 1 * Author: Kelly Maguire */ class OffbeatViewCounter { public function __construct(){ add_action('init', array($this, 'setup_schedule')); add_filter( 'cron_schedules', array($t...
true
df6b52c1a7d923b2595d27f7c2331759af0ff213
PHP
thorne51/Advent-of-Code-2017
/day_01/day_01.php
UTF-8
1,193
3.6875
4
[]
no_license
<?php /** * Created by PhpStorm. * User: thorn * Date: 2018/03/18 * Time: 20:00 */ $input = file_get_contents('input.txt'); /***** part 1 *****/ $previous_character = $input[strlen($input) - 1]; $running_total = 0; for ($i = 0; $i < strlen($input); $i++) { if ($input[$i] == $previous_character) { $ru...
true
738eecd01b5bd5fcca93962588ab03af7f6600f8
PHP
Telegramsrv/esportcolosseum
/code/phase-1/app/Http/Controllers/Auth/RegisterController.php
UTF-8
3,308
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Auth; use App\User; use App\Models\Role; use App\Models\UserDetails; use Validator; use App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\RegistersUsers; use App\Http\Requests\Auth\RegisterRequest; use Illuminate\Support\Facades\URL; use Illuminate\Support\Facades\Ma...
true
b1aa2fc006b0aaececa728bac2657b4ca0ecc9a8
PHP
dpdconnect/woocommerce-shipping
/classes/enums/ParcelType.php
UTF-8
278
2.78125
3
[]
no_license
<?php namespace DpdConnect\classes\enums; class ParcelType { const TYPEREGULAR = 1; const TYPERETURN = 2; public static function parse($return) { if ($return) { return self::TYPERETURN; } return self::TYPEREGULAR; } }
true
0b32ecf1e744ff49788fc8cbea99b3ca29795a1e
PHP
WajeehaParker/site7-EcommerceSite
/adminpanel/addcategory.php
UTF-8
5,904
2.703125
3
[]
no_license
<?php ob_start(); ?> <?php include('header.php'); $msg=""; if(isset($_POST['insert']) && !isset($_GET['catid']) ) { if(!empty($_POST['catname'])) { $catname = $_POST['catname']; $query = mysqli_query($con,"select cat_id from tbl_category WHERE cat_name = '$catname'"); $numrows = mysqli_num_rows($query); ...
true
74ce94bef31c011abbbbab3b05b77b2d5c46ad23
PHP
jimwu979/mokeyblog
/dist/back/function/jwtUtility.php
UTF-8
1,699
2.9375
3
[]
no_license
<?php session_start(); class jwtHelper { private $_key = "c.6y7"; public function isValidToken() { if(!isset($_SESSION["token"])) return false; // 回傳的是payload if(is_array(self::parseJwt())) { return true; } else { return false; } } public function generateToken(string $user_id) { $payloa...
true
38ff5cd65128a7e86d287fcf529b9009e87a49ef
PHP
mariosiqueira/jobfinder
/src/vo/Servico.php
UTF-8
2,036
2.859375
3
[]
no_license
<?php namespace App\VO; use JsonSerializable; class Servico implements JsonSerializable { private $id; private $titulo; private $descricao; private $enderecoServico; private $valor; private $usuarioId; private $dataPostagem; private $status; public function jsonSerialize() { ...
true
4e55fcb5409f2356473faf0720ffb559c226c7b6
PHP
mixof/Eduparser
/utils/myDocWrap.php
UTF-8
1,532
2.921875
3
[]
no_license
<?php require_once __DIR__."/phpQuery.php"; class MyDocWrap implements arrayaccess { private $doc; private $data; public function __construct($data) { $this->data=$data; //phpQuery::unloadDocuments(); $this->doc=phpQuery::newDocumentHTML($data); } public function __destruct() { //...
true
30bba6d00f1bd0d563a34b59526d33abccb2d2f6
PHP
ashishghimire/walkman-web
/app/User.php
UTF-8
1,233
2.5625
3
[]
no_license
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; /** * Class User * @package App */ class User extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected ...
true
d3c96b42e0ac77e32e8d407075db63f28a4ce427
PHP
caiminfang/Learning
/test/509. 斐波那契数/index.php
UTF-8
943
3.953125
4
[]
no_license
<?php /** 斐波那契数,通常用 F(n) 表示,形成的序列称为斐波那契数列。该数列由 0 和 1 开始,后面的每一项数字都是前面两项数字的和。也就是: F(0) = 0,   F(1) = 1 F(N) = F(N - 1) + F(N - 2), 其中 N > 1. 给定 N,计算 F(N)。   示例 1: 输入:2 输出:1 解释:F(2) = F(1) + F(0) = 1 + 0 = 1. 示例 2: 输入:3 输出:2 解释:F(3) = F(2) + F(1) = 1 + 1 = 2. 示例 3: 输入:4 输出:3 解释:F(4) = F(3) + F(2) = 2 + 1 = 3.   提示:...
true
9466ae85878f4209bb815dfe789cc8016a90e254
PHP
rcwsr/combyna
/php/src/Combyna/Component/Environment/Config/Act/NativeFunctionNode.php
UTF-8
3,598
2.734375
3
[ "MIT" ]
permissive
<?php /** * Combyna * Copyright (c) the Combyna project and contributors * https://github.com/combyna/combyna * * Released under the MIT license * https://github.com/combyna/combyna/raw/master/MIT-LICENSE.txt */ namespace Combyna\Component\Environment\Config\Act; use Combyna\Component\Bag\Config\Act\Expressio...
true
a9d54d737442e6e7d44d0864830681b58fee2842
PHP
wpscholar/comparison
/Comparison.php
UTF-8
1,945
3.59375
4
[]
no_license
<?php /** * A PHP library to make dynamic comparisons easy. * * @package wpscholar; */ namespace wpscholar; /** * Class Comparison * * @package wpscholar */ class Comparison { /** * Internal storage of operators. * * @var Container */ protected $operators; /** * Constructor. */ public functi...
true
7435ac1057a79262411304e9f7d0ed341e40629c
PHP
bloom-hondo/lando-acquia-multisite-recipe
/lando/drush/.drush/post_sql_sync_extras.drush.inc
UTF-8
3,778
2.53125
3
[]
no_license
<?php /** * Implement hook help alter. * * When a hook extends a command with additional options, it must * implement help alter and declare the option(s). Doing so will add * the option to the help text for the modified command, and will also * allow the new option to be specified on the command line. Withou...
true
7b2208a17466e9939fa930955413100167ee0fe1
PHP
wbarcovsky/yii-calendar
/protected/models/FormLogin.php
UTF-8
2,744
3.046875
3
[]
no_license
<?php /** * LoginForm class. * LoginForm is the data structure for keeping * user login form data. It is used by the 'login' action of 'SiteController'. */ class FormLogin extends FormModel { const ACTION_REGISTER = 'register'; const ACTION_LOGIN = 'login'; const ACTION_CHECK = 'check'; public $em...
true
32eb9cfcc5057bb19108aff6760aba540f0a6a73
PHP
dxdeaner/gyfl-registration
/_inc/_functions/func.common.php
UTF-8
1,016
2.640625
3
[]
no_license
<?php function func_Redirect_to($New_Location){ //header("Location :'.$New_Location'"); ?><script>window.location.href = <?php echo $New_Location; ?></script><?php exit; } //func_Redirect_to($New_Location); function func_confirmLogin() { if (isset($_SESSION["loggedin"])) { return true; } else...
true
f5e78fa9ef8ce8772a10c6aa05dd89bcde81de07
PHP
beverloo/peter.sh
/services/services/repository-tracker/RepositoryTracker.php
UTF-8
18,632
2.515625
3
[ "MIT" ]
permissive
<?php // Copyright 2014 Peter Beverloo. All rights reserved. // Use of this source code is governed by the MIT license, a copy of which can // be found in the LICENSE file. class RepositoryTracker extends Service { // Registers the polling task which we'll want to execute a few times per hour to // fetch the l...
true
68dba7c0a2061ffd90bd549fb0eb07fa80e6208b
PHP
hoatrangnv/danhkiet
/web/admindk/modules/languages/models/table.php
UTF-8
10,803
2.640625
3
[]
no_license
<?php class LanguagesModelsTable extends FSModels { var $limit; var $page; function __construct() { parent::__construct(); $limit = 30; // $page = FSInput::get('page'); $this->limit = $limit; // $this->page = $page; } function getTable($id) { if(!$id){ return; } global $db;...
true
0e59cde3458df7920fad9ec4e572324514c84816
PHP
Stillat/Database
/src/Stillat/Database/Console/Tenant/CreateCommand.php
UTF-8
1,055
2.625
3
[ "MIT" ]
permissive
<?php namespace Stillat\Database\Console\Tenant; use Exception; use Illuminate\Console\Command; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputArgument; class CreateCommand extends Command { /** * The console command name. * * @var string */ protected $name = 'ten...
true
24abdb7194e8bfbb913b6000e69791751953ab89
PHP
gvidasku/SportOrganiser
/vendor/laravel/framework/src/Illuminate/Queue/InteractsWithQueue.php
UTF-8
1,572
2.9375
3
[ "MIT" ]
permissive
<?php namespace Illuminate\Queue; use Illuminate\Contracts\Queue\sportevent as sporteventContract; trait InteractsWithQueue { /** * The underlying queue sportevent instance. * * @var \Illuminate\Contracts\Queue\sportevent */ public $sportevent; /** * Get the number of times the ...
true
b9e69cafe0e9027fe5af201161387aa7b917dd0f
PHP
karayabin/universe-snapshot
/universe/Ling/UrlSmuggler/UrlSmugglerTool.php
UTF-8
831
3.203125
3
[]
no_license
<?php namespace Ling\UrlSmuggler; /** * The UrlSmugglerTool class. */ class UrlSmugglerTool { /** * Returns the smuggled version of the url. * * @param string $url * @return string */ public static function smuggle(string $url): string { return str_replace([ ...
true
f896080270a58da8a4c08a99a85baed3879cd83d
PHP
xingxuewen/letter_api
/app/Services/Lists/Filter/FilterAbstract.php
UTF-8
313
2.578125
3
[]
no_license
<?php namespace App\Services\Lists\Filter; use App\Services\Lists\Lists; abstract class FilterAbstract implements FilterInterface { use Lists; protected $_productInfo = []; public function setProductInfo($productInfo) { $this->_productInfo = $productInfo; return $this; } }
true
ddf1a5e930edf6a691ab4d2b2e0a354f3cc3aabb
PHP
DannyBattison/COVID-19-API
/src/Command/ImportData.php
UTF-8
1,192
2.90625
3
[]
no_license
<?php namespace App\Command; use App\Service\ImportService; use DirectoryIterator; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class ImportData extends Command { public const DATA_DIR = './data/csse_covid...
true
ed78f9c6dff289a2084d34047793abe397e79aae
PHP
TRowbotham/PHPDOM
/src/NodeIterator.php
UTF-8
4,573
2.921875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Rowbot\DOM; /** * @see https://dom.spec.whatwg.org/#nodeiterator * @see https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator * * @property-read \Rowbot\DOM\Node $root * @property-read \Rowbot\DOM\Node $referenceNode * @pr...
true
9e3291606214164cdd8c59a0c9a1829da642722d
PHP
kylian-duval/TD_Php_Mysql
/exo bdd/td4/fonction.php
UTF-8
941
2.796875
3
[]
no_license
<?php function afficher_requet_select($marequete){ try { $BDD = new PDO('mysql:host=192.168.65.227; dbname=TD2 exo 2 kylian;charset=utf8','kiki', 'kiki'); $donneBDD = $BDD->query("$marequete"); echo '<table border="2"><tr><td>Nom</td><td>Prenom</td></tr>'; while ($tabBdd = $donneBDD -> fetch()){ ...
true
eaf5c58838d1a398212da7b2d1f60c93a911bfd7
PHP
maickon/Card-Game
/cartas/card.php
UTF-8
4,008
2.84375
3
[]
no_license
<?php abstract class Card{ protected $nivel; protected $nome; protected $raridade; protected $sub_nome1; protected $sub_nome2; protected $descricao; function card_raridade(){ $chance = rand(1,1000); if ($chance <= 10) { $this->raridade = 'Lendário'; } elseif ($chance > 10 and $chance <= 110) { $th...
true
a2a2c5f7323a32d72e662b9244f1f2be47b0ba45
PHP
appbels/Org
/Org/Schema/Thing/Intangible/ItemList.class.php
UTF-8
2,352
2.953125
3
[ "Apache-2.0" ]
permissive
<?php namespace Org\Schema\Thing\Intangible; /** * Class ItemList. * A list of items of any sort—for example, Top 10 Movies About Weathermen, or Top 100 Party Songs. * Not to be confused with HTML lists, which are often used only for formatting. * @author AppBels <app.bels@gmail.com> * @name ItemList...
true
a36b1698dc469a608b169c71efd5e92b8a842bdd
PHP
dianafire/proektkurs
/homework/12_oop/ex_2/Policeman.php
UTF-8
553
3.515625
4
[]
no_license
<?php class Policeman extends Employee{ protected $rank; public function __construct($hoursWork,$salaryMonth,$rank){ parent::__construct($hoursWork,$salaryMonth); $this->rank=$rank; } public function setRank($rank){ $this->rank=$rank; ...
true
46d9631c04801701abc39b24e4ce0fbd5c9153f4
PHP
phpcodex2019/barak
/lib/ApplicationController.php
UTF-8
4,837
2.734375
3
[ "MIT" ]
permissive
<?php class ApplicationController { const CONTROLLERPATH = "app/controllers/"; private $_locals = []; private $_render = null; private $_redirect_to = null; private $_route; final public function __construct(ApplicationRoute $route) { // genişletilemez fonksiyon $this->_route = $route; // rou...
true
c9fab44c8d77be2c54f91f6ca025b2c86913eab1
PHP
fernandoaurelio/CRUDLojaDeCelular
/_php/PesquisaCliente.php
UTF-8
562
2.53125
3
[]
no_license
<?php require_once 'Conexao.php'; $getnome = filter_input(INPUT_GET, "nome"); $sql = "SELECT * FROM clientes WHERE cliente_nome = '$getnome'"; $query = mysqli_query($conecta, $sql); $clienteOs = mysqli_fetch_array($query); if(!$clienteOs){ echo "erro".mysqli_errno($conecta); }else{ echo "foi"; } // Transforma...
true
d5893fabe0d4faa94193b62fe32fa62dff94dd58
PHP
fits/try_samples
/php/strtime/datetime.php
WINDOWS-1252
401
2.640625
3
[]
no_license
<?php $date = new DateTime('2009/06/08 14:01:03'); echo $date->format('Y - m - d H i sb'); $date2 = new DateTime(); echo $date2->format('Ymd') . "\n"; echo sprintf("%04d", 6) . "\n"; $now = new DateTime(); $date3 = $now->format('Ymd'); $todayMaxReqNo = '20090610_9999'; $dateList = split('_', $todayMaxReqNo); ...
true
862332a4868959870e6dc7b2be2b3a44a5ae5d4f
PHP
h0kd33/kagariNMB
/phpFront/kagari/controller.php
UTF-8
6,299
2.84375
3
[]
no_license
<?php /** * 大概是控制器吧 */ class Controller { /** * cookie读取 * 参数:用户cookie中的username * 返回:新的cookie中的username * 或者之前cookie的username * 或者dismatch(现有cookie和数据库中不匹配) */ public static function cookies($username) { global $config; $data = Array( 'ip' => $_SERVER['REMOTE_ADDR'] ); $opts = Array( 'http'...
true
56b9719e1bd704cd715cceb21829021fca190657
PHP
smuckster/status
/app/Models/Status.php
UTF-8
2,359
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Status extends Model { use HasFactory; protected $fillable = ['name', 'description', 'color']; public function services() { return $this->hasMany(Service::class, 'cur...
true