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
225d71a58059b6612ded9755a811cffb51d6d283
PHP
baks-dev/reference-cars
/UseCase/Modification/NewEdit/Characteristic/Chassis/CarsModificationChassisDTO.php
UTF-8
2,044
2.5625
3
[ "MIT" ]
permissive
<?php /* * Copyright (c) 2023. Baks.dev <admin@baks.dev> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
true
86258f7c3d034c997136925ed7818901ff69dbba
PHP
vherus/php-framework-decoupling-bootstrap
/src/app/Framework/Middleware/Auth/ArrayAuthoriser.php
UTF-8
690
2.796875
3
[]
no_license
<?php namespace Vherus\Framework\Middleware\Auth; use Psr\Http\Message\RequestInterface as IRequest; class ArrayAuthoriser implements Authoriser { private $allowedTokens; private $ignoredPaths; public function __construct(array $allowedTokens, array $ignoredPaths) { $this->allowedTokens = $a...
true
2172a7313342b5f16f447faafa4a866e1d5906ca
PHP
SharwanBuri/todoproject
/application/libraries/Myrender.php
UTF-8
725
2.65625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * Rendering Library * * @version 1.0.0 * @author rk */ class Myrender { protected $CI; //Constructor public function __construct() { $this->CI =& get_instance(); $this->CI->load->model("account_model"); $t...
true
43d917240c1fc3567a916a9ba2b7bf60dca24dd8
PHP
AlexVanDerrer/sungear
/application/models/Main_model.php
UTF-8
3,285
2.609375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Main_model extends CI_Model { public function __construct() { parent::__construct(); $this->load->database(); } public function getArrFromXlsx() { require_once __DIR__ . '/simple_xlsx/src/SimpleXLSX.php'; $xlsx = SimpleXLSX::parse(__DIR__.'/list_parts.xlsx...
true
33465752da682e549c0c01bc9e5e2478d12c934f
PHP
alikingravi/vehicle-sales-business-app
/app/Http/Controllers/CostController.php
UTF-8
3,206
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Cost; use Illuminate\Http\Request; class CostController extends Controller { /** * CostController constructor. */ public function __construct() { $this->middleware('auth'); } /** * Gets the costs associated with the vehi...
true
d50d2c1c2d47a0da8ee6cdfd7c083676565c665a
PHP
avoutic/web-framework
/src/Core/RecaptchaFactory.php
UTF-8
387
2.546875
3
[ "MIT" ]
permissive
<?php namespace WebFramework\Core; class RecaptchaFactory { public function __construct( private GuzzleClientFactory $guzzleClientFactory, private string $secretKey, ) { } public function getRecaptcha(): Recaptcha { return new Recaptcha( $this->guzzleClientFact...
true
81f4f053779b9851188fc9d574f08f483a70ea91
PHP
aloware/changelog
/app/Models/Company.php
UTF-8
1,017
2.5625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Company extends Model { use HasFactory; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'name' ]; ...
true
ff397cba46ea1df74af7b7a5795be8da726ae05c
PHP
tran-dat-mulodo/YiiDemo
/AnPham/Notes/protected/components/APIController.php
UTF-8
1,148
2.765625
3
[ "Apache-2.0" ]
permissive
<?php class APIController extends CController { private $_responseType = 'xml'; private $_responseHeader = array( 'status' => 200, 'messages' => array(), ); protected function sendResponse( $inputs = null, $node_name = 'value') { $response = null; $data = array( 'header' => $this->_responseHeader, ...
true
9956ee5ce5960e372d9a514cb1071a44b1c276a6
PHP
aztecweb/base-project
/src/includes/setup/class-assets.php
UTF-8
1,017
2.765625
3
[]
no_license
<?php /** * Theme assets setup. * * @package Aztec */ namespace Aztec\Setup; use Aztec\Base; /** * Manipulate the stylesheets and javascripts */ class Assets extends Base { /** * Add assets hooks */ public function init() { add_action( 'wp_enqueue_scripts', $this->callback( 'enqueue_style' ) ); add_...
true
c8040210b8866c1f9c26843464ef3bf23d89da99
PHP
omegapinho/SIS-OPM
/app/control/sisacad/professor/defineDisciplinaProfessorForm.class.php
UTF-8
18,316
2.546875
3
[]
no_license
<?php /** * defineDisciplinaProfessorForm Master/Detail * @author <your name here> */ class defineDisciplinaProfessorForm extends TPage { protected $form; // form protected $table_details; protected $detail_row; protected $professor_lista; /*-----------------------------------------------------...
true
e65b60562536547060a307725e0b1e8fbb3f1fd7
PHP
TomatorCZ/Bachelor_thesis
/src/examples/AllTogether/PHPScripts/Graph/showGraph.php
UTF-8
330
3.078125
3
[]
no_license
<?php function printGraph($graph) { echo "<div style='position:relative;width:500px;height:500px;background-color:grey;'>"; foreach($graph as $item) { echo "<div style='position:absolute;width:3px;height:3px;background-color:black;left:".strval($item[0])."px;top:".strval(500 - $item[1])."px'></div>"; } echo "</...
true
77565afb82765cabaee0b833e1fad1b8dff50aff
PHP
fracz/refactor-extractor
/results/phabricator/89ee928a51c72d9fda17a59f73b060a92cc0c665/before/PhabricatorSlowvotePollController.php
UTF-8
13,099
2.515625
3
[]
no_license
<?php /** * @group slowvote */ final class PhabricatorSlowvotePollController extends PhabricatorSlowvoteController { private $id; public function willProcessRequest(array $data) { $this->id = $data['id']; } public function processRequest() { $request = $this->getRequest(); $user = $request-...
true
4330b19a474a20a8dbf9e7185c67cc67b3cec5ce
PHP
rannk/share_board
/download.php
UTF-8
810
2.53125
3
[]
no_license
<?php $filename = $_GET['fn']; //$filename = urlencode($filename); $file = __DIR__ . "/data/files/" . urlencode(basename($filename)); $file_arr = pathinfo($file); $ext = $file_arr['extension']; //echo $ext; exit; if(file_exists($file)) { if($ext == "png" || $ext == "jpg" || $ext == "gif" || $ext == "jpeg" || $ext...
true
7a4f22bf3f2b9d3bc8842027071c118695ec3b6b
PHP
Kuran-Bertalan/KLPZ
/Code/protected/user/register.php
UTF-8
2,762
2.78125
3
[]
no_license
<?php if($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['register'])) { $postData = [ 'uname' => $_POST['username'], 'email' => $_POST['email'], 'email1' => $_POST['email1'], 'password' => $_POST['password'], 'password1' => $_POST['password1'] ]; if(empty($postData['uname']) || empty($pos...
true
40e58c21f2344fc3665fe68f56853d57f65ae88b
PHP
barracudanetworks/Cuda-PHP-Code-Standards
/PHP_CodeSniffer/Barracuda/Sniffs/ControlStructures/NoInlineAssignmentSniff.php
UTF-8
1,863
2.90625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Disallows inline variable assignment (i.e. in an if statement). * * PHP version 5 * * @category PHP * @package PHP_CodeSniffer * @author Andy Blyler <ablyler@barracuda.com> * @license BSD License 2.0, see LICENSE file. * @version 2.0.00 * @link https://github.com/BarracudaNetworks/C...
true
c12623f72d571fada87f3c2053b05388fe216d4a
PHP
stijlenvorm/snv2015
/includes/snv/Theme/Shortcodes.php
UTF-8
17,497
2.890625
3
[]
no_license
<?php namespace snv\Theme; /** * class for all shortcodes used in the theme */ class Shortcodes { public function __construct() { add_shortcode('googlemaps', array($this, 'googleMapsShortcode')); add_shortcode('staticmap', array($this, 'googleMapsStatic')); add_shortcode('contactinfo'...
true
1c7539bba72d5559c7cf953c49d03f28568ade6d
PHP
AubertAlexis/symfony5-cms
/src/Handler/ContactHandler.php
UTF-8
1,357
2.71875
3
[]
no_license
<?php namespace App\Handler; use App\Form\ContactType; use App\Services\Mailer; use Doctrine\ORM\EntityManagerInterface; use Swift_Mailer; class ContactHandler extends AbstractHandler { /** * @var EntityManagerInterface */ private $entityManager; /** * @var Mailer */ private ...
true
6e7bb768b774b8e79d69cded816880cb4672e4e5
PHP
Gamingpc/platform
/src/Core/Framework/Api/OAuth/Scope/WriteScope.php
UTF-8
785
2.75
3
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
<?php declare(strict_types=1); namespace Shopware\Core\Framework\Api\OAuth\Scope; use League\OAuth2\Server\Entities\ScopeEntityInterface; class WriteScope implements ScopeEntityInterface { public const IDENTIFIER = 'write'; /** * Get the scope's identifier. */ public function getIdentifier(): ...
true
4b2af58531d5a9026bdded560d9d84ff47f72fda
PHP
TimLangley/Zend_RabbitMQ
/src/main/php/Rabbit/AMQP/Serialize/Decimal.php
UTF-8
1,710
2.609375
3
[]
no_license
<?php /** * Rabbit * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://github.com/canddi/Zend_RabbitMQ/blob/master/LICENSE.txt * If you did not receive a copy of t...
true
382168cc8e86003561611b6b52bb52f979e756bf
PHP
tobymackenzie/db.php
/src/Query/Clause.php
UTF-8
195
2.78125
3
[]
no_license
<?php namespace TJM\DB\Query; class Clause extends Structure{ public function __construct($opts = null){ if(is_string($opts)){ $this->value = $opts; }else{ $this->set($opts); } } }
true
19d296c5727ea71cdf4e7cd03068bdf8170f1f0f
PHP
isdarka/QuerySymfony
/src/Query/Query.php
UTF-8
6,928
2.6875
3
[ "MIT" ]
permissive
<?php /** * * @author isdarka * @created Nov 22, 2013 5:11:59 PM */ namespace Query; use Doctrine\DBAL\Query\QueryException; use Doctrine\ORM\QueryBuilder; use Doctrine\ORM\EntityManager; use Doctrine\ORM\Query\Expr\Comparison; use Query\Interfaces\Comparision; use Doctrine\ORM\Query\Expr; use Doctrine\ORM\Query\...
true
409afeea1bfa932a2a56a5a1f2fe5e8e7a0bcd62
PHP
dotocan1/programiranje-za-internet-projekt
/db.php
UTF-8
7,448
2.859375
3
[]
no_license
<?php function connection() { //1.otvaranje konekcije $server = "localhost"; $username = "root"; $password = ""; $database = "e-library"; $conn = mysqli_connect($server, $username, $password, $database); return $conn; } function readDataKnjige() { $conn = connection(); //2.rad s bazo...
true
0f4eedf76c0aabc5a4f0be21ef5b79df9598e2d4
PHP
SerafimArts/Stream
/src/ClassLoader.php
UTF-8
2,988
2.53125
3
[ "MIT" ]
permissive
<?php /** * This file is part of Stream package. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Serafim\Stream; use Composer\Autoload\ClassLoader as Composer; use Serafim\Stream\Exception\Strea...
true
9a9a798b27163bb8d580f58e8484acb603229157
PHP
Zhafirsp/pw2020_193040135
/praktikum/p4_PW_193040135/Latihan4d.php
UTF-8
2,123
2.734375
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Latihan4d</title> </head> <body> <?php $Bola = [ "pemain1" => ["NO" => 1, "NAMA" => "Cristiano Ronaldo", "CLUB" => "Juventus", "MAIN" => 100, "GOL" => 76, "ASSIST" => 30], "pemain2" => ["NO" => 2, "NAMA" => "Lionel Messi", "CLUB" => "Barcelona", "MAIN" => ...
true
8de00155d29d338be4d105d4ff56101a383db2fe
PHP
leonelbula/transaciones
/ajax/cuentasAjax.php
UTF-8
693
2.609375
3
[]
no_license
<?php require_once '../config/DataBase.php'; class ListaCuentas { public $db; public function __construct() { $this->db = Database::connect(); } public function MostrarCuentasId($id) { $sql = "SELECT * FROM datos_bancario WHERE id = $id"; $resul = $this->db->query($sql); return $resul->fetch_object...
true
53e04b1df70a516ffb2d6803c8d4c2387cfe9fc6
PHP
ksysctl/covid
/app/Model/DailyReport.php
UTF-8
1,941
2.796875
3
[]
no_license
<?php namespace App\Model; use Illuminate\Support\Facades\Log; class DailyReport { // Count received columns private $columns = 0; // Object fields public $state = NULL; public $country = NULL; public $update = NULL; public $latitude = NULL; public $longitude = NULL; public $confi...
true
a557263ec8397b7d0a707b33cc50ef766a7e1738
PHP
TheWonsz/AnubisBot
/core/Wrappers/Parts/Part.php
UTF-8
865
3.140625
3
[ "MIT" ]
permissive
<?php namespace Core\Wrappers\Parts; class Part { protected $part; /** * Ctor. * * @param mixed \Discord\Parts\Part * * @return void */ public function __construct($part) { $this->part = $part; } /** * Used to dynamically call on Part class methods....
true
dfa963746ed37cebf11c1405f53132476e6674fe
PHP
tuanb11a2/NetflixClone
/application/models/Movie.php
UTF-8
11,257
2.90625
3
[ "MIT" ]
permissive
<?php /** * */ class Movie extends Model { private $movie_id; private $title; private $language; private $year; private $rating; private $isAdult; private $description; private $poster; private $genre = array(); function __construct() { parent::__construct(); } ...
true
e02fef5fd33d7a6aa396547ac26aa8864d5e98fe
PHP
pritam-git/VSOH
/application/services/MediaImage.php
UTF-8
25,796
2.671875
3
[]
no_license
<?php /** * L8M * * * @filesource /application/services/MediaImage.php * @author Norbert Marks <nm@l8m.com> * @version $Id: MediaImage.php 533 2017-07-21 15:37:49Z nm $ */ /** * * * Default_Service_MediaImage * * */ class Default_Service_MediaImage extends Default_Service_Base_Abstract { /** * ...
true
30e97a3d4cef62bf356a78a44ae3b1871ce2f368
PHP
thaild/VoiceIP
/freePBX/html/admin/libraries/Composer/vendor/respect/validation/tests/Rules/CallbackTest.php
UTF-8
1,912
2.609375
3
[ "MIT" ]
permissive
<?php namespace Respect\Validation\Rules; class CallbackTest extends \PHPUnit_Framework_TestCase { private $truthy, $falsy; function setUp() { $this->truthy = new Callback(function() { return true; }); $this->falsy = new Callback(function() { return false; ...
true
e668f3552c5aee1d509e7834c77e88d6e1740f4c
PHP
flinx27/yii2-statemachine
/interfaces/StateMachineTimeout.php
UTF-8
1,087
2.828125
3
[]
no_license
<?php /** * User: Paris Theofanidis * Date: 01/07/16 * Time: 11:10 */ namespace ptheofan\statemachine\interfaces; use ptheofan\statemachine\StateMachine; use SimpleXMLElement; /** * Interface StateMachineTimeout * * @package ptheofan\statemachine\interfaces */ interface StateMachineTimeout { /** * @r...
true
9e655e62aa6d4a3594b6e979139b05494a2a389b
PHP
dawidofed/Magento-2
/Helper/CmsStarterKit/user/GigyaSubscription.php
UTF-8
2,431
2.953125
3
[ "Apache-2.0" ]
permissive
<?php namespace Gigya\GigyaIM\Helper\CmsStarterKit\user; use Gigya\GigyaIM\Helper\CmsStarterKit\GigyaJsonObject; class GigyaSubscription extends GigyaJsonObject { /** * @var boolean */ private $isSubscribed; /** * @var array */ private $tags; /** * @var string */ private $lastUpdatedSubscriptionS...
true
e103fd757c59b6ec4196d5bdffced079e39b38d5
PHP
bderrick18/Intern
/Nema/read_tree_types.php
UTF-8
392
2.578125
3
[]
no_license
<<?php require('nema.php'); $results = $sql_connection->query("SELECT ID, TYPE_NAME, NUMBER_OF_TREES FROM tree_types ORDER BY ID ASC"); foreach ($results as $key => $value) { $id = $value["ID"]; $name = $value["TYPE_NAME"]; $number = $value["NUMBER_OF_TREES"]; echo " <tr> <td> $id </td> ...
true
0c08aa4d35a29923f76091edbe7b34411cb76433
PHP
thibs911/MovieManager
/server/AutoRestObject.php
UTF-8
4,213
2.828125
3
[ "MIT" ]
permissive
<?php /** * Created by JetBrains PhpStorm. * User: gbouchez * Date: 02/12/13 * Time: 16:37 * To change this template use File | Settings | File Templates. */ class AutoRestObject { /** * @var \PDO */ protected $pdo = null; protected $name = null; protected $columns = null; protected...
true
64037d78c46ea02a867bcd7aa46d9664814d54ed
PHP
paulomendesdigital/lm-cursos-de-transito
/app/Model/Poll.php
UTF-8
1,336
2.640625
3
[]
no_license
<?php App::uses('AppModel', 'Model'); /** * @copyright Copyright 2017 * @author Grupo Grow - www.grupogrow.com.br * Poll Model * * @property PollQuestion $PollQuestion */ class Poll extends AppModel { public $validate = array( 'name' => array( 'notempty' => array( 'rule' => array('notempty'), 'messa...
true
9752370864ed37d09f1f59562ada0da12087c9ab
PHP
AakashKinage/OnlineMovieBookingSystem
/bms/bms/cdetails.php
UTF-8
950
2.546875
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>Record</title> <style> table,th,td { border:1px solid black; } td { t...
true
1ebd822dd1af9114a9cb4c6fa2feee3c781f53af
PHP
josealfredojimenezgarcia/Condiciones_if_else_eslif_switch_04_05_2021
/EdadJ.php
UTF-8
1,208
2.8125
3
[]
no_license
<?php //EJERCICIO //Creamos un formulario que pida la edad //Crea un condiconales que segun la edad muestre si es //Mayor de edad,un recien nacido, un niño(a), un adolecente, un adulto(a) //un señor(a), o un anciano 04-05-2021 echo "EJERCICIO PARA CONOCER LOS GRUPOS ETAREOS"; $edad = (int) $_REQUEST["edad"]; if (...
true
fea824e87c4e665c01f2a8607876af01b327d55b
PHP
udovenko/deferred-registration
/app/controllers/users.class.php
UTF-8
5,732
2.953125
3
[]
no_license
<?php namespace controllers; /** * Controller for requests related with users. * * @author Denis Udovenko * @version 1.0.3 */ class Users extends Common { const SESSION_REGISTRATION_TOKEN_KEY = "registration_token"; /** * Renders registration form. * * @access public ...
true
e338f4a668c211ffca4a9894321529ee3d6ed5e8
PHP
marothstein/UnitedBankForm
/bin/insertNewRecord.php
UTF-8
568
2.78125
3
[]
no_license
<?php // get db connection info include_once( 'db.php' ); // make the connection $con = make_mysql_connection(); // insert test record mysql_query( "INSERT INTO form VALUES ()" ); $result = mysql_query( "SELECT MAX(id) FROM form" ); // $result = mysql_query( "SELECT * FROM test" ); if (!$result) { echo "Could ...
true
a728fa6f6c5dc50eb188d77e8d80e270a2832efc
PHP
FedeSa/TSAuthentication
/TSAuth/actionform.php
WINDOWS-1252
7,284
2.65625
3
[]
no_license
<?php session_start(); //crea o recupera sessione include('myfunctions.php'); $conn = dbConnect(); myhttps(); $MAX=5; //no. images $LMAX=8; if (!empty($_POST)) { if(isset($_POST['Signin'])){ $email =$_REQUEST['uemail']; $valid=myEmail_format($email); if($valid)...
true
26883881d3c5276a500a9f6108902223d6c01e10
PHP
sluy/laravel-translation
/src/Commands/ImportCommand.php
UTF-8
1,807
2.71875
3
[ "MIT" ]
permissive
<?php namespace Sluy\LaravelTranslation\Commands; use Illuminate\Console\Command; use Sluy\LaravelTranslation\LaravelTranslation; /** * Artisan Command to import translations beetween formats. * * @author Stefan Luy<sluy1283@gmail.com> */ class ImportCommand extends Command { /** * The name and signatur...
true
1cd790f0d7c9a874dd55b03c0e99b0c0fec8cade
PHP
lenochware/Datex
/Datex.php
WINDOWS-1250
3,438
3.25
3
[]
no_license
<?php /** * An experimental simple date library. Basically, it is object wrapper for function strtotime(). * - Working with php 5.2. * - Date parameters can be timestamp (numeric) or any strtotime date string * - Czech names of months and days * Example: print Datex::format("2015-05-05", "d.m.Y"); */ class Datex { c...
true
b1f5e833d9da5a3d8c53869cb11eb9465fa0fc11
PHP
blakerscott/php_codeReview_week2
/src/RepeatCounter.php
UTF-8
417
3.140625
3
[ "MIT" ]
permissive
<?php class RepeatCounter { function CountRepeats($wordToCount, $sentence) { $result = 0; $lowerCaseSentence = strtolower($sentence); $lowerCaseWordToCount = strtolower($wordToCount); $sentenceArray = explode(" ", $lowerCaseSentence); foreach ($sentenceArray as $word) { if ($word == ...
true
26591e76c96e75393bd1cb595fd4ca3a210d34f6
PHP
NorbertElephant/Exercice_03W
/exo_Oriente_Objet/09_-_Design_patterns/Controle_minier/Models/coreModel.php
UTF-8
1,366
2.65625
3
[]
no_license
<?php Abstract class coreModel { /*************************************************************************************************** * ATTRIBUTS ****************************************************************************************************/ /** Login / mdp pour c...
true
05cbb39f424f2e2edcba5afc786f141a9744fc38
PHP
UsenParzhanov/sandelik
/components/Db.php
UTF-8
298
2.625
3
[]
no_license
<?php /** * Description of Db * * @author Usen */ class Db { public static $dsn="mysql:host=localhost;dbname=sandelik1"; public static function DbConnection(){ $dsn = self::$dsn; $db = new PDO($dsn, 'root',''); return $db; } }
true
6d9b5e42c0d92bbfa791676d842d64a18fe32497
PHP
shokocham/Wevote-IL
/admin/voteManager.php
UTF-8
1,814
2.59375
3
[]
no_license
<?include("checkSession.php"); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title> New Document </title> <meta name="Generator" content="EditPlus"> <meta name="Author" content=""> <meta name="Keywords" content=""> <meta name="Descrip...
true
bc0bcd2131649b882fdb099deca0c6e1f43bbc1d
PHP
pjfiers/RWTTframework
/init.php
UTF-8
1,769
2.53125
3
[]
no_license
<?php /** * RWTT v2 * * Initiation file, sets defaults and loads required objects in the right order * * @author PJ Fiers pjfiers@gmail.com * @version 0.1.0 */ /** * read config */ $configData = parse_ini_file('config.ini', true); // devmode errors if ($configData['site']['mode'] === 'development') { er...
true
b7ccc47c126d1c9c80da66d72b31ff3d29a12223
PHP
kkeiper1103/plates-for-wordpress
/src/Filters/TemplateIncludeFilter.php
UTF-8
1,402
3.015625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: kkeiper * Date: 11/6/2015 * Time: 6:52 PM */ namespace kkeiper1103\PlatesForWordPress\Filters; use League\Plates\Engine; class TemplateIncludeFilter { /** * @var Engine */ private $engine; /** * @param Engine $engine */ public functi...
true
1fad82dc8ba9966adc2e8bc02608bb4d80d5c211
PHP
ankithaan/KnowYourPet
/petcare/petdetails.php
UTF-8
2,015
2.859375
3
[]
no_license
<?php $conn=mysqli_connect("localhost","root",""); $db=mysqli_select_db($conn,"kyp"); if($db) { echo "Connected Succesfully!"; } else{ echo "Not Connected"; } ?> <?php //ini_set("display_errors",1); /*$sql3="select id from sample order by id desc"; $result=mysqli_query($conn,$sql3); $row=mysqli_fetch...
true
9da1b9ec6ddf7953688fa1e7f6ecf5683e8bbfff
PHP
TonyVlcek/GoClimb
/app/server/Model/Repositories/ColorRepository.php
UTF-8
488
2.59375
3
[]
no_license
<?php /** * @author Tomáš Blatný */ namespace GoClimb\Model\Repositories; use GoClimb\Model\Entities\Color; class ColorRepository extends ReadonlyRepository { /** * @param string $hash * @return Color|NULL */ public function getGlobalByHash($hash) { return $this->getDoctrineRepository()->findOneBy(['...
true
d1902fec96dfe73154513fca5cb00d4d59d7f811
PHP
tastank/cs564-project
/db/aircraft.php
UTF-8
2,250
2.703125
3
[]
no_license
<?php include_once(__DIR__."/db.php"); include_once(__DIR__."/type.php"); function get_all_reg_numbers() { global $db; $reg_number_query = "SELECT reg_number FROM Aircraft"; $result = $db->query($reg_number_query); if ($result === false) { return null; } ...
true
6b73322dbd26bf4c56d137262e2b33be69ebd197
PHP
peveradad/PHP-playground-MVC
/module/Application/src/Application/Calculator/MultOperation.php
UTF-8
185
2.96875
3
[]
no_license
<?php namespace Application\Calculator; class MultOperation implements OperationInterface { public function apply($a, $b) { $c = $a * $b; return $c; } }
true
85d5a9e1a4b859c3dbaa62c56ff1b658be0b5fa5
PHP
svhdevops/pokal
/www/num_liste.php
UTF-8
633
2.75
3
[ "MIT" ]
permissive
<?php include( "db_func.php" ); init_globals(); // first run query $result = getAllShooters(); // now create some simple html printPageHeader(); echo '<table> <tr> <th></th> <th> Name </th> <th>Verein </th></tr> '; $idx = 1; while($res = mysqli_fetch_array($result, MYSQLI_AS...
true
3eb32f830dd4920687958555b7ea3687e56291b0
PHP
trickyplan/Codeine
/src/Drivers/System/Network/Whois.php
UTF-8
1,259
2.515625
3
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
<?php /* Codeine * @author bergstein@trickyplan.com * @description * @package Codeine * @version 2019.x */ setFn('Lookup', function ($Call) { exec($Call['Whois']['Command'] . ' ' . $Call['Whois']['Domain'], $Result, $Status); $WhoisParsed = []; if ($Status == 0...
true
85323713bc0f34ca5c23531625475d71d577f1f7
PHP
IhorNotevskyi/09_10_samples
/shop/components/db/fields/Decimal.php
UTF-8
320
2.734375
3
[]
no_license
<?php namespace components\db\fields; use components\db\FieldType; /** * Class Decimal * @package components\db\fields */ class Decimal extends FieldType { /** * @return string */ public function build() { return "{$this->name} DECIMAL({$this->length}){$this->getDefault()}"; } }
true
f4bec962a67cf8c2088e46f0232b550937963df9
PHP
vjousse/sfDoctrineAssetsLibraryPlugin
/lib/datagrid/plugin/BasesfAssetsDatagrid.class.php
UTF-8
1,888
2.53125
3
[ "MIT" ]
permissive
<?php class sfAssetsDatagrid extends BasesfAssetsDatagrid { public function getModelName() { return "sfAsset"; } public function setupDatagrid() { $this->addFilter( 'folder_id', null, new sfWidgetFormDoctrineSelect(array('model' => 'sfAssetFolder', 'add_empty' => true)), ne...
true
c9fd1360c2c4d1138147bd3132d28483e7b954c9
PHP
hisuley/gds
/trunk/union_ticket/Common/HttpRequest.php
UTF-8
10,002
2.8125
3
[ "MIT" ]
permissive
<?php /* HttpRequest Class 唐春龙 2012-05-17 携程 */ class HttpRequest { public $url, $method, $port, $hostname, $uri, $protocol, $excption, $_headers = array(), $_senddata, $status, $statusText, $HttpProtocolVersion, $responseBodyWithoutHeader; private $fp = 0, $_buffer = "", $responseBody, $respon...
true
c5d20dc27ed7ec35458d43f57d43864392a01050
PHP
LIN3S/PatternLibraryBuilder
/src/LIN3S/PatternLibraryBuilder/Twig/IndentTwigCodeExtension.php
UTF-8
2,658
2.90625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Pattern Library Builder library. * * Copyright (c) 2017-present LIN3S <info@lin3s.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace LIN3S\PatternLibraryBu...
true
70fbe83efc549650edda57286e07ffc2affce7cf
PHP
BrendanParks/VotingSimServer
/old/helpers_bp.php
UTF-8
1,559
2.671875
3
[]
no_license
<?php use Facebook\FacebookSession; define('dbu', 'admin6QHMFM1'); define('dbpw', 'fsghjRCP6qW3'); define('dbh', 'localhost'); define('dbn', 'voting_bp'); if($dbc = mysql_connect(dbh,dbu,dbpw)) { if(!mysql_select_db(dbn)) { trigger_error("Could not select the database"); echo "1"; exit(); ...
true
e777ce4a3e47415f3850999d2b91b312fb77e460
PHP
adobi/ci_farm
/app_old/application/controllers/productiondata.php
UTF-8
1,680
2.515625
3
[]
no_license
<?php if (! defined('BASEPATH')) exit('No direct script access'); require_once 'MY_Controller.php'; class Productiondata extends MY_Controller { /** * egg_production_data bejegyzeset szerkeszt, ajaxos, egg_production_day_id alapjan * * @return void * @author */ public function edit...
true
e4500fd297eb28d111ab9d728c70c525ec2dced5
PHP
nixxholas/is113-rekt
/week11/resources/ex4/display.php
UTF-8
737
3.421875
3
[]
no_license
<?php require_once "autoload.php"; $dao = new PersonDAO(); $result = $dao->retrieveAll(); ?> <html> <head> <style> table,th,td{ border: 1px solid black; } </style> </head> <body> <table> <tr> <th>Nam...
true
c1a48892e9af32687013ca2abc5ccc4192802180
PHP
glowdan/framework
/src/Bean/Parser/MappingParser.php
UTF-8
1,095
2.59375
3
[ "Apache-2.0" ]
permissive
<?php namespace Swoft\Bean\Parser; use Swoft\Bean\Annotation\Mapping; use Swoft\Bean\Collector; /** * Mapping注解解析 * * @uses MappingParser * @version 2017年10月15日 * @author stelin <phpcrazy@126.com> * @copyright Copyright 2010-2016 swoft software * @license PHP Version 7.x {@link http://www.php.net/...
true
b2a620b67405b70efd0300126cd84d4e7036b090
PHP
drieshooghe/PolitosPizza
/src/Controllers/MenuController.php
UTF-8
4,195
2.640625
3
[]
no_license
<?php //src/Controllers/MenuController.php namespace PolitosPizza\Controllers; use PolitosPizza\Models\Business\FoodListSvc; use PolitosPizza\Models\Business\OpeningSvc; use PolitosPizza\Models\Business\OrderlineSvc; use PolitosPizza\Models\Data\FoodDAO; use PolitosPizza\Models\Entities\Orderline; class MenuControll...
true
0ec6cd0608dc1653dce943449ee61063b1d8396e
PHP
tungdm/tvms
/src/Controller/Component/UtilComponent.php
UTF-8
1,388
2.671875
3
[]
no_license
<?php namespace App\Controller\Component; use Cake\Controller\Component; class UtilComponent extends Component { public function convertV2E($str) { if (!$str) { return false; } $str = trim($str); $str = mb_strtoupper($str); $str = preg_replace("/(À|Á|Ạ|Ả|Ã|...
true
7bfccfb006026dabe496b0e378f758857a3c0db6
PHP
Iglloala/practicaOopVirtualmarket
/adminInsertarProducto.php
UTF-8
2,976
2.515625
3
[]
no_license
<?php require_once('view/header.php'); // Si no es admin vuelve p'atrás autorizarAcceso(); ?> <!-- Contenido --> <div id='wrapper-contenido' class='container-fluid'> <div class="container"> <section id="contenido" class="row"> <div class="col-12"> <h1>Insertar producto</h1> <?php // Si no se han pas...
true
7484aa02560d885f8afa478a9c8c44a641f02669
PHP
harley-travis/PA_WP
/email/class/class.Mailer.php
UTF-8
2,316
2.84375
3
[]
no_license
<?php require_once(dirname(__FILE__)."/../../config.php"); require_once(PATH_LIB_PHP."phpmailer/PHPMailerAutoload.php"); class Mailer{ var $ServerAddress = MAILER_ADDRESS; var $MailSubject = MAILER_SUBJECT; var $MailTo = MAILER_MAILTO; var $Errors = array(); var $PostName; var $PostAddress; va...
true
212e96f74efd5345a6d7278a6235b798d2a59fb0
PHP
atarisafari/phpally
/tests/YoutubeTest.php
UTF-8
1,438
2.53125
3
[ "MIT" ]
permissive
<?php use CidiLabs\PhpAlly\Youtube; use GuzzleHttp\Client; class YoutubeTest extends PhpAllyTestCase { public function testCaptionsMissingAsrTrack() { $url = 'https://www.youtube.com/watch?v=liJVSwOiiwg'; $client = new Client(); $youtube = new Youtube($client); $this->assertE...
true
47d3dc13f8d60220355c6459108a17a3d464b381
PHP
Pavlyukovsky/bank
/services/ChargeCommissionService.php
UTF-8
2,773
3.109375
3
[]
permissive
<?php namespace app\services; use app\models\DepositAccount; use app\services\interfaces\ChargeCommissionServiceInterface; class ChargeCommissionService implements ChargeCommissionServiceInterface { protected const MIN_PERCENT = 5; protected const MIDDLE_PERCENT = 6; protected const MAX_PERCENT = 7; ...
true
ef383d027a3c673d048c6ed536251e923f1b61cb
PHP
shemetovdn/kluch
/backend/models/FileTreeModel.php
UTF-8
3,156
2.734375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Maksim Sergeevich (doctorpepper608@gmail.com) * Date: 04.09.2015 * Time: 11:26 */ namespace backend\models; use yii\base\ErrorException; use yii\base\Model; use yii\helpers\Html; class FileTreeModel extends Model{ public static function getSubFolders($path='',$pretty...
true
9f0dc9b74fcfdc301755a30d629391c293d34354
PHP
trba1810/config
/src/ConfigInterface.php
UTF-8
192
2.625
3
[]
no_license
<?php namespace Practice2020\Config; interface ConfigInterface { public function get($name, $default = null); public function set($name, $value); public function exists($name); }
true
96ce47dba8b8b9b5775c626caf470f9582953dc4
PHP
Drandos666/Clases_HTML
/exam_3/index.php
UTF-8
3,579
2.734375
3
[]
no_license
<?php include_once 'app.php'; //importa a el archivo app.php ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <LINK REL=StyleSheet HREF="skin.css"><!-- llama la c...
true
9035b8af9d938835f17b526193105b6041838ff4
PHP
gsouf/UForm
/src/UForm/DataBind/Binder.php
UTF-8
998
3.03125
3
[]
no_license
<?php /** * @license see LICENSE */ namespace UForm\DataBind; abstract class Binder { protected $whitelist = null; protected $blacklist = []; /** * @param array $whitelist */ public function setWhitelist($whitelist) { $this->whitelist = $whitelist; } /** * @para...
true
b139ca50a373525c0f2290701e26a974a1095901
PHP
dlenskyi/piscine_php
/day06/ex04/Camera.class.php
UTF-8
2,815
3.0625
3
[]
no_license
<?php require_once 'Camera.class.php'; class Camera { public static $verbose = false; private $_origin; private $_orientation; private $_width; private $_height; private $_ratio; private $_fov; private $_near; private $_far; private $_proj; private $_tT; public static f...
true
8b38d3b14e89d7bbf698267d0fb157e65db62624
PHP
jefferssonSinza/siscsi_api
/app/Http/Controllers/SemestreController.php
UTF-8
2,623
2.5625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: jeffersson sinza * Date: 21/05/2015 * Time: 9:36 AM */ namespace App\Http\Controllers; use App\Models\Semestre; use App\Validators\SemestreValidator; use Illuminate\Http\Request; class SemestreController extends Controller { public function index() { ...
true
9a46e9d89ec11e5d2d2296365b9c93adb8f89787
PHP
66Ton99/BadaBoom
/src/BadaBoom/Serializer/Encoder/TextEncoder.php
UTF-8
1,307
2.796875
3
[ "MIT" ]
permissive
<?php namespace BadaBoom\Serializer\Encoder; use Symfony\Component\Serializer\Encoder\EncoderInterface; class TextEncoder implements EncoderInterface { /** * {@inheritdoc} */ public function encode($data, $format) { $text = ''; foreach ($data as $key => $value) { $t...
true
bdd856d5b0ba89198ee4915e96a4ee137f4d2367
PHP
pazzi/avaliacao
/av2019/avaliacao/desempenho/classes/classPesquisa.inc
ISO-8859-1
8,162
2.890625
3
[ "MIT" ]
permissive
<?php /* Embrapa - Empresa Brasileira de Pesquisa Agropecuria Embrapa Meio Ambiente Autor: Cludia Vaz Crecci Data: Sistema: Pesquisa de Satisfao do Cliente Interno * **** Atualizaes ***** Autor: Cludia Vaz Crecci Data: 11/03/2009 Autor: Cludia Vaz Crecci Data: 26/03/2013 Descrio: criao do mtodo mtO...
true
8aa7c60850bca956089ee936fd4cd3f77f8bcc34
PHP
Joues/Library
/book_update_ok.php
UTF-8
1,273
2.671875
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>确认修改图书信息</title> </head> <body> <?php header("Content-type:text/html;...
true
890c62296a914c575938151dd6d5196236aa0bda
PHP
fixable11/myblog
/models/SearchForm.php
UTF-8
529
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; use yii\base\Model; use app\models\ArticleSearch; class SearchForm extends Model { public $keyword; public function rules() { return [ ['keyword', 'trim'], ['keyword', 'required'], ['keyword', 'string', 'min' => 3], ...
true
9f00a280e0c2631538d38c734ead97842be32b9b
PHP
michnaadam33/sp2
/src/AppBundle/Repository/GroupRepository.php
UTF-8
544
2.53125
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Repository; use AppBundle\Entity\Group; use Doctrine\ORM\EntityRepository; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; class GroupRepository extends EntityRepository { /** * @param $groupKey * @return Group */ public function findByGroupKey($grou...
true
57dd578336980d5f8df7022fb73018ebc9cbf4b6
PHP
vnaskos/e-thesis
/classes/DBHelper.class.php
UTF-8
1,445
3.171875
3
[]
no_license
<?php /** * @author Vasilis Naskos (vnaskos[at]gmail[dot]com) */ class DBHelper { /* @var $db mysqli */ protected static $db = null; /** * Fetches the database object used and will initialize one if needed * * @throws Exception * @return mysqli The db connection object */ public static function getDBO...
true
abf04bfa7dcfcb505891a97499b7ab9545e79647
PHP
ngthactuyen/XDWAT_v2
/models/Book.php
UTF-8
832
2.890625
3
[]
no_license
<?php class Book { public $id; public $category_id; public $name; public $author; public $year; public $publisher; public $content; public $amount; public $price; public $image; public $created_at; public $updated_at; public function __construct($data = '') { ...
true
8b0026a97329511f46c375b8d3d671df18029b1d
PHP
poetries/code-practice
/php/phpTraining/PHPBasicEnhance/06/16.php
UTF-8
675
3.53125
4
[]
no_license
<?php /** * Created by PhpStorm. * User: poerty * Date: 2016/5/22 * Time: 23:26 */ // 动态函数 // 即 函数的名字 可以用变量来表示. function wel() { echo '欢迎<br />'; } function love() { echo '斯密达<br />'; } function cry() { echo '55<br />'; } // 执行哪一个呢? 不一定, // 决定,用户输入哪个函数名,我就执行哪个函数 $func = $_GET['func']; // wel...
true
02c6ace62fe239b1e710861ef9165c79afccfe6c
PHP
bhdm/Aik
/Model/Driver.php
UTF-8
10,945
2.78125
3
[]
no_license
<?php namespace Model; class Driver extends Mysqli{ static public function find($type, $searchId){ $first = mb_substr($type,0,1);//первая буква $last = mb_substr($type,1);//все кроме первой буквы $first = strtoupper($first); $last = strtolower($last); $className = $first.$l...
true
7118e3106f61a0c2d7cc491a71613d9841ffa5db
PHP
NickCore98/webformat_ticket
/php/models/task.php
UTF-8
4,275
3.25
3
[]
no_license
<?php include_once('base_model.php'); include_once('project.php'); include_once(__DIR__.'/../interfaces/assignment_interface.php'); // CLASS TaskTHAT IMPLEMENTS 'AssignmentsInterface' METHODS class Task extends BaseModel implements AssignmentsInterface { // variables public $description; public $...
true
9cf6f56765a14fbad559248d7148da30ac6504a3
PHP
maximmmka/lesson3.3.1
/classes/volostnov/Vege.php
UTF-8
457
2.9375
3
[]
no_license
<?php namespace volostnov; require_once './autoload.php'; class Vege extends Product //На этот товар скидка распространяется только если вес больше 10кг { public function getPrice() { if ((isset($this->discount)) && ($this->weight>10)){ $this->shipping = 300; return round($this->price*(100-$this->discount)/...
true
3d7715f7d15f1abe3c42ae05ae52a985299aac18
PHP
EasyCorp/EasyAdminBundle
/src/Field/Configurator/DateTimeConfigurator.php
UTF-8
5,051
2.609375
3
[ "MIT" ]
permissive
<?php namespace EasyCorp\Bundle\EasyAdminBundle\Field\Configurator; use Doctrine\DBAL\Types\Types; use EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext; use EasyCorp\Bundle\EasyAdminBundle\Contracts\Field\FieldConfiguratorInterface; use EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto; use EasyCorp\Bundle\EasyAdminB...
true
91eb75f6c0e25fc52524da052bd7060dea3b3453
PHP
diegocaprioli/model
/src/Model.php
UTF-8
4,810
2.578125
3
[ "MIT" ]
permissive
<?php namespace Esensi\Model; use \Esensi\Model\Contracts\EncryptingModelInterface; use \Esensi\Model\Contracts\HashingModelInterface; use \Esensi\Model\Contracts\PurgingModelInterface; use \Esensi\Model\Contracts\RelatingModelInterface; use \Esensi\Model\Contracts\ValidatingModelInterface; use \Esensi\Model\Traits\En...
true
a3df8616692f4b83010133fb7633067eea710bdc
PHP
Fellis-a/htdocs
/vkr-app/app/Models/vkrs.php
UTF-8
746
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class vkrs extends Model { use HasFactory; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'id_vkr', 'title', 'year'...
true
495286906f02127eb9df1d88fc6e0e849ac49ad2
PHP
uzkurama/tourism.uz
/common/models/Contacts.php
UTF-8
1,723
2.5625
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "{{%contacts}}". * * @property int $id * @property string $email * @property int $phone * @property string $telegram * @property string $facebook * @property string $instagram * @property string $adress_uz * @property string $a...
true
5baa9dd2d6f89b318afbb5a34cb978df31b54602
PHP
farahhaddar/e-commerce_React-Laravel
/back/back/app/Repositories/WorkoutDatas/WorkoutDatasRepository.php
UTF-8
2,622
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\WorkoutDatas; use App\WorkoutDatas; use App\Repositories\Interfaces\Workout_Datas_Interface\WorkoutDatasInterface; use App\FileType\FileType; use File; class WorkoutDatasRepository implements WorkoutDatasInterface { public function getAllWorkoutDatas($row=5) { return ...
true
a92c24aa2915e5df2469e61994523571eaec19d7
PHP
slowgreenturtle/form
/src/HTTP/Element/TextArea.php
UTF-8
481
2.578125
3
[ "MIT" ]
permissive
<?php namespace SGT\HTTP\Element; use Form; use Illuminate\Support\Arr; class TextArea extends Input { protected $type = 'textarea'; public function drawElement() { $element_name = $this->getName(); $attributes = $this->getAttributes(); $attributes['id'] = $this->getId(); ...
true
0e43cea6579b916e8bb0b903293ac5f944975436
PHP
jairx/SAUTA
/SAUTA/garcom/cadastro-cliente.php
UTF-8
2,403
2.796875
3
[ "MIT" ]
permissive
<?php include("../conecta.php"); $countTel = 0; $countCel = 0; $id_cliente = 0; $tel = null; $cel = null; include("verifica-cliente.php"); function insereCliente($conexao, $nome, $cpf, $data_nascimento, $email) { $query = "insert into CLIENTE (CPF, NOME_CLIENTE, DATA_NASCIME...
true
76b82d686d886abfb8c6909dd080b95220d0a135
PHP
NickVries/SecondAssignment
/core/Database/Connector.php
UTF-8
479
2.78125
3
[]
no_license
<?php namespace Nick\Framework\Database; class Connector { public static function make($databaseConfig) { try { return new \PDO( $databaseConfig['connection'].';dbname='.$databaseConfig['name'], $databaseConfig['username'], $databaseConfig['p...
true
5f8932f135fa7bb7f72c06eef96cef5bc37c6567
PHP
auf/foad_auf_org
/include/inc_examens.php
UTF-8
1,717
3.265625
3
[]
no_license
<?php // function selectAnneeExam($name, $value) { // Date courante $liste = "<select name='$name'>\n" ; $liste .= "<option value=''></option>\n" ; for ( $i=(date("Y", time())+1) ; $i>=2004 ; $i-- ) { $liste .= "<option value='$i'" ; if ( $value == $i ) { $liste .= " selected='selected'" ; } $liste .=...
true
e3be52387f665ee2835b16292c333d1ff20f9e01
PHP
EvansUchwa/Ahimin
/Controlleurs/controlleurQuestions.php
UTF-8
411
2.59375
3
[]
no_license
<?php require_once('Vues/Vue.php'); class controlleurQuestions { private $_vueQuestions; function __construct($action) { if (isset($action) && count($action) > 1) { die('Url de l\'accueil incorrect'); } else { $this->generateAccueil(); } } public function generateAccueil() { $this->_vueA...
true
da839a15520d5819179d5e68f3279b085ca86403
PHP
INTO-University-Partnerships/mod-dragdrop
/tests/generator/lib.php
UTF-8
1,924
2.546875
3
[]
no_license
<?php defined('MOODLE_INTERNAL') || die(); global $CFG; require_once($CFG->dirroot . '/course/modlib.php'); class mod_dragdrop_generator extends testing_module_generator { /** * create a new dragdrop instance * @throws coding_exception * @param array|stdClass $record * @param array $options ...
true
98be4e1294f5135c37ebe8f85a6dd490f553104d
PHP
Alfafis/Web-Final
/model/Aluno.php
UTF-8
2,901
3.125
3
[]
no_license
<?php include __DIR__.'/Conexao.php'; class Aluno extends Conexao { private $nome; private $cpf; private $idade; private $curso; private $sexo; private $matricula; public function getNome() { return $this->nome; } public function setNome($nome) { $this->nome = $nome...
true
abba6559e691646418fa69b07529d7caa6484923
PHP
netherphp/database
/src/Nether/Database/Meta/TableJoin.php
UTF-8
1,380
2.578125
3
[ "BSD-2-Clause" ]
permissive
<?php namespace Nether\Database\Meta; use Nether\Database; use Nether\Common; use Attribute; use Exception; use ReflectionAttribute; use ReflectionProperty; #[Attribute(Attribute::TARGET_PROPERTY)] #[Common\Meta\Date('2023-07-14')] #[Common\Meta\Info('Allows Prototype based classes to auto-join foreign tables of cl...
true
ea21aa5d17599ce9a715b7c8c6bc9991f87e7ace
PHP
top-think/think-queue
/src/queue/command/Work.php
UTF-8
5,246
2.640625
3
[ "Apache-2.0" ]
permissive
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK IT ] // +---------------------------------------------------------------------- // | Copyright (c) 2006-2015 http://thinkphp.cn All rights reserved. // +----------------------------------------------...
true
82e00590ed77e6e927296231744c9cc3d917fa66
PHP
amarkusuma/testimonial1
/form-testimonial1.php
UTF-8
3,186
2.84375
3
[]
no_license
<?php $form = new Form(); add_shortcode('form', [$form, 'fomPage']); class Form { function html_form_code() { echo '<form action="' . esc_url($_SERVER['REQUEST_URI']) . '" method="post">'; echo '<p>'; echo 'Name <br/>'; echo '<input type="text" name="input-name" pattern="[a...
true