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
be673e84eefaf7fd0851113712facebbc79d89dd
PHP
stevebontemps/gsb
/donnees/wsservice.class.php
UTF-8
13,607
2.8125
3
[]
no_license
<?php include_once "gestion.class.php"; //nom du fichier de gestion class WSService //nom de la classe { /** *Nom de la fonction : achatAjouterUn * *Parametre entree : *$achat : object * *Parametre sortie : * **/ public function achatAjouterUn($achat) { Gestion::ajouter($achat);// votre code ici...
true
393fca91a30fed157a11edfc43ad9b2756e2508f
PHP
csalazart/open-skool
/src/OpenSkool/AdminBundle/Entity/Pensum.php
UTF-8
2,493
2.515625
3
[ "MIT" ]
permissive
<?php namespace OpenSkool\AdminBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Pensum * * @ORM\Table(name="pensum") * @ORM\Entity(repositoryClass="OpenSkool\AdminBundle\Entity\Repository\PensumRepository") */ class Pensum { /** * @var integer * * @ORM\Column(name="id", type="integer") ...
true
723cc14c8fc717b40daeb784cbb0038acd104aa8
PHP
dms-org/common.structure
/tests/Tests/Field/MultipleFromFieldTest.php
UTF-8
1,508
2.625
3
[ "MIT" ]
permissive
<?php namespace Dms\Common\Structure\Tests\Field; use Dms\Common\Structure\Field; use Dms\Common\Testing\CmsTestCase; use Dms\Core\Form\Field\Type\ArrayOfType; use Dms\Core\Form\Field\Type\StringType; use Dms\Core\Form\InvalidInputException; /** * @author Elliot Levin <elliotlevin@hotmail.com> */ class MultipleFro...
true
081327d8b3fd5217fcceb8c86391eab1bfba11fd
PHP
MahmoudThePeltist/WhoSaysWebsite
/index.php
UTF-8
1,894
2.625
3
[]
no_license
<?php //php functions include 'phpconnect.php'; //user settings class include 'includes\php\userClass.php'; session_start(); //connect to DB $conn = connectToDB(); $userObj = new userClass($conn); $whatHappened = ""; if ($_POST){ //Login handling if(isset($_POST["loginButton"])){ $log...
true
b273439f0f4014a3ba0b29699f261659501176a2
PHP
thanhtruong1992/textsdaily-vue
/app/Repositories/Reports/ReportListSummaryRepository.php
UTF-8
2,123
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Reports; use App\Repositories\BaseRepository; use App\Models\ReportListSummary; use Auth; use DB; class ReportListSummaryRepository extends BaseRepository implements IReportListSummaryRepository{ /** * Specify Model class name * * @return string */ functi...
true
d4b084e9aeaceb525ab86241a3e8f038015d9a91
PHP
hanhan1978/code2epub
/src/autoload.php
UTF-8
565
2.546875
3
[ "MIT" ]
permissive
<?php spl_autoload_register("loadLibrary"); define("DS", "/"); define("ROOT", dirname(__FILE__)."/../"); require_once ROOT.'vendor/autoload.php'; /* * Autoloader for code2epub * @param $className Name of class to be loaded */ function loadLibrary($className) { $it = new RecursiveDirectoryIterator(dirname(_...
true
b7ddd99d1aca44358ccb9d7ee719ca531dd8d495
PHP
KurilHohenzollern/contract-interface
/Project_2/old/create.php
UTF-8
4,289
2.734375
3
[]
no_license
<?php if (!empty($_POST)) { $action = $_POST["action"]; switch ($action) { case 'addUser': $data = ['firstName' => $_POST['firstName'], 'lastName' => $_POST['lastName'], 'birthd' => $_POST['birthd'], 'active' => $_POST['active']]; $manyFiles = opendir('data/users'); ...
true
01c91a32b663505633371b4e9105927f4b27eebf
PHP
MarinKacaj/MarksManager
/src/fti/adv_db/entity/AcademicYear.php
UTF-8
1,452
2.625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Marin Kaçaj * Date: 6/22/2015 * Time: 10:53 PM */ namespace fti\adv_db\entity; use fti\adv_db\entity\util\EntityActionHelper; use fti\adv_db\entity\util\EntityBuilderHelper; use fti\adv_db\property\IntegerProperty; require_once dirname(dirname(__FILE__)) . '/functions/a...
true
4b4f8184156b8614dc9947f3d1bec873c2b12425
PHP
dymissy/dabello-wdg-web-view
/src/ImageFinder.php
UTF-8
2,164
3
3
[]
no_license
<?php namespace DabelloWdg; use Aws\S3\S3Client; use Symfony\Component\Finder\Finder; class ImageFinder { const BUCKET_NAME = 'dabello-wdg'; const BASE_PATH = 's3://%s/photos'; const FULL_PATH = 's3://%s/photos/full'; const THUMB_PATH = 's3://%s/photos/thumb'; /** * @var S3Client */ ...
true
3d88ea1ca29c2875f2d7077a6ebf8db33577a9e3
PHP
bcryderman/lllt
/application/models/QbQueueMapper.php
UTF-8
3,037
2.59375
3
[]
no_license
<?php class LLLT_Model_QbQueueMapper { protected $_dbTable; public function setDbTable($dbTable) { if (is_string($dbTable)) { $dbTable = new $dbTable(); } if (!$dbTable instanceof Zend_Db_Table_Abstract) { throw new Exception('...
true
e207ce76e8225e0ca23448a2609d660cd93cf37b
PHP
huang-yi/shadowfax
/src/Events/CloseEvent.php
UTF-8
699
2.875
3
[ "MIT" ]
permissive
<?php namespace HuangYi\Shadowfax\Events; class CloseEvent { /** * The Swoole server instance. * * @var \Swoole\Server */ public $server; /** * The connection's file descriptor. * * @var int */ public $fd; /** * The reactor id. * * @var int ...
true
93a0b67f8387808d9ccbd671f2ad094862e41613
PHP
event-engine/php-engine
/src/Exception/InvalidEventFormat.php
UTF-8
1,304
2.546875
3
[ "MIT" ]
permissive
<?php /** * This file is part of event-engine/php-engine. * (c) 2018-2021 prooph software GmbH <contact@prooph.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace EventEngine\Exception; use Even...
true
5424c6db49afb4a23a5d56ad50cf499ce9c1ba85
PHP
vlad1987/backend.homework
/02-16-PHP-Arrays Loops Tasks/arrays_loops_tasks/p06.php
UTF-8
674
3.703125
4
[]
no_license
<?php $arr = ['green'=>'зеленый', 'red'=>'красный','blue'=>'голубой']; foreach ($arr as $english => $russian) { $en[] = $english; $ru[] = $russian; } echo '<pre>'; print_r($en); echo '</pre>'; echo '<pre>'; print_r($ru); echo '</pre>'; // <p>6. Дан массив $arr. С помощью цикла foreach запишите английские назван...
true
263cc3f728538057aba3ef2d013e2f732a794f66
PHP
rakit/console
/src/Command.php
UTF-8
765
2.8125
3
[]
no_license
<?php namespace Rakit\Console; abstract class Command { protected $app; protected $signature; protected $description; public function getSignature() { return $this->signature; } public function getDescription() { return $this->description; } public functio...
true
6466403f74437ebd5d395ca514b597cc7e0f1843
PHP
dan-har/presentit-laravel
/src/Contracts/Presentable.php
UTF-8
399
2.6875
3
[ "MIT" ]
permissive
<?php namespace Presentit\Laravel\Contracts; interface Presentable { /** * Get the present object for the entity. * * @return \Presentit\Present */ public function present(); /** * Transform the entity to a new presentation. * * @param mixed $transformer * @return ...
true
01858326066f89d1cf798cd29c1868b744ad9bd4
PHP
sofandani/web-grab-snippet
/curl.php
UTF-8
9,642
2.890625
3
[]
no_license
<?php /** * cURLs CLASS * Handling request data from external url/site domain * With 2 type method: _checkDomainURL() and _ProcessDataCurl() * * @since v1.0 * @author Ofan Ebob */ class cURLs { protected $_url; protected $_type; protected $_args; function __construct($arr){ $this->_url = isset($arr['url']...
true
e21498cde802508b77e894664871e05e949909ee
PHP
cyppan/hateoas-bundle
/Http/JsonResponse.php
UTF-8
817
2.546875
3
[ "MIT" ]
permissive
<?php /** * @copyright 2014 Integ S.A. * @license http://opensource.org/licenses/MIT The MIT License (MIT) * @author Javier Lorenzana <javier.lorenzana@gointegro.com> */ namespace GoIntegro\Bundle\HateoasBundle\Http; // HTTP. use Symfony\Component\HttpFoundation\JsonResponse as SymfonyJsonResponse; class JsonRes...
true
2c4f34f38743cc51b0d965c4cfcfcf73000210c9
PHP
olimortimer/phargs
/Phargs/Formatter/Table.php
UTF-8
2,783
3.234375
3
[ "MIT" ]
permissive
<?php namespace Phargs\Formatter; class Table { protected $fields = array(); protected $fieldWidths = array(); protected $fieldCount = 0; protected $rows = array(); protected $vertChar = '|'; protected $horizChar = '-'; protected $cornerChar = '+'; public function __construct(Array $fields = array()...
true
c5aa0d60acd2e6b074a79eb9ac67ae22b322bc19
PHP
adamcameron/php
/php.local/www/experiment/oo/classes/Address.class.php
UTF-8
857
3.3125
3
[]
no_license
<?php class Address { use Serialisation, Logging { toXml as private _toXml; toJson as private; logToFile as private; logToScreen as private; } protected $streetAddress; protected $postalCode; protected $country; public function __construct($streetAd...
true
b0c1ff4aca3b33dec8e4b5c5817327da4eb701a8
PHP
Paradoxa42/Finlande-PHP-DKPCalculator
/misc/user.php
UTF-8
1,465
2.59375
3
[]
no_license
<?php //If the user is registering if ($_POST['passwordRepeat'] && $_POST['usernameRegister'] && $_POST['passwordRegister']) { if ($_POST['passwordRegister'] == $_POST['passwordRepeat']) { $password = password_hash($_POST['passwordRegister'], PASSWORD_BCRYPT); $username_san = $vanidanitizator->sani...
true
12904fc96c28feb32dfa63f338c04cdbc6ec5c5e
PHP
hsh803/minsida
/jetty/undersidana.php
UTF-8
356
3.046875
3
[]
no_license
<?php $db = connectToDatabase($dsn1); // Check whats in the database $sql = "SELECT * FROM jetty"; $stmt = $db->prepare($sql); $stmt->execute(); // Get the results as an array with column names as array keys $res = $stmt->fetchAll(PDO::FETCH_ASSOC); echo "<p>The result contains " . count($res) . " rows.</p>"; pr...
true
aca66834b591a40078b8a289353ef1cf80215554
PHP
Juan20Trejo/sw-inscripcion
/inicio/php/conexion.php
UTF-8
531
2.609375
3
[]
no_license
<?php //importamos la libreria fpdf require ('fpdf.php'); //variables para la conexion $host = ""; $database = ""; $user = ""; $contra = ""; $conectar = mysqli_connect($host,$user,$contra,$database); if(!$conectar){ die("Error:".mysqli_connect_error()); } echo "Co...
true
9a65f53797a67f8dc726a6bb2459e9107d9828cf
PHP
Amrbahaa22/HotelSystem
/HtmlCSSbs/Melad/login.php
UTF-8
614
2.59375
3
[ "CC-BY-3.0" ]
permissive
<?php if(isset($_GET['sub'])){ $username=$_GET['username']; $password=$_GET['password']; if(empty($username)){ echo 'Enter a username'; } if(empty($password)){ echo'enter password'; } if(strlen($password)>8){ echo 'password must be less tha or equal to 8'; } }echo"<a href='register.php'>register</a>" ?> <ht...
true
a929c266edd25d8ddf97b38e7cc996164da533c2
PHP
voscampanha/zf
/module/Pessoa/src/Controller/PessoaController.php
UTF-8
3,033
2.640625
3
[]
no_license
<?php namespace Pessoa\Controller; use Zend\Mvc\Controller\AbstractActionController; use Zend\View\Model\ViewModel; use Pessoa\Model\PessoaTable; use Pessoa\Model\Pessoa; use Pessoa\Form\PessoaForm; class PessoaController extends AbstractActionController{ private $table; public function __construct(Pesso...
true
d1c604bfafe558a8d04565617542879449f059f3
PHP
elinxer/library
/php/tools/elinx/used.php
UTF-8
274
3.171875
3
[]
no_license
<?php // php使用自定义函数参数 // 调用时传什么参数就是什么,个数无限制 $a = fun($args_1); $b = fun($args_1, $args_2); // 函数没有传参 function fun() { foreach (func_get_args() as $agrs) { echo $agrs; //输出你的函数参数 } }
true
13680a6a8fedebb13d3814871fb9f54dd0fcf723
PHP
Comp4711Group7Reboot/PhpAssignment2
/application/models/Stock.php
UTF-8
5,629
2.703125
3
[]
no_license
<?php /* * This is the Stock controller */ if (!defined('BASEPATH')) exit('No direct script access allowed'); /* * This is the stock model */ class Stock extends CI_Model { function getStocks($url) { $this->load->library('session'); $stocks = array(); ini_s...
true
8eb4f5570fcd50b8a3db8067d7fca2f7c364126d
PHP
augustoall/platinumweb
/model/CidadesDao.php
UTF-8
3,726
2.984375
3
[]
no_license
<?php class CidadesDao { public static $instance; public function __construct() { } static public function getInstance() { if (!isset(self::$instance)) self::$instance = new CidadesDao(); return self::$instance; } public function m_busca_...
true
7eb598523954418b5e7b00650135d2f43596280f
PHP
SumXProveALPE/StoreCredit
/src/sum/Command/Subcommands/InfoCommand.php
UTF-8
1,361
2.96875
3
[]
no_license
<?php namespace sum\Command\Subcommands; use pocketmine\command\Command; use pocketmine\command\CommandSender; use pocketmine\Player; use pocketmine\Server; use pocketmine\utils\TextFormat; use sum\Command\CreditCommand; use sum\StoreCredit; class InfoCommand extends Command{ /** * InfoCommand...
true
6c5eaa17422e006e23dfbcd990e71fa4900bacc7
PHP
KirillK31/labLib
/src/Line.php
UTF-8
259
2.9375
3
[]
no_license
<?php namespace kormakov; class Line { protected $X1; public function line($a, $b) { if ($a == 0) { throw new KirillExeption('The equation does not have exist'); } return $this->X1 = [($b * -1) / $a]; } }
true
55bac703d35da5a9baea3fad356ba98e34eb513b
PHP
luciFer-roble/CNT
/database/seeds/TerminalSeeder.php
UTF-8
1,303
2.59375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class TerminalSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $file = file_get_contents(database_path('seeds/jsons/tablesTerminales.json')); $fields = json_decode($file); fo...
true
d36166d9c1741b91119361bb420361028b253ec7
PHP
dinh0012/doantotnghiep
/vendor/security/Validation.php
UTF-8
346
2.703125
3
[]
no_license
<?php namespace vendor\security; class Validation { public static function ValidateImage($image){ $exts = array('gif', 'png', 'jpg','jpge'); $ext_image = explode('.', $image); $ext_image = end($ext_image); if(in_array($ext_image, $exts)){ return true; } r...
true
1982acb4af0b93cd3b41a5a15442e31e4cbee9d9
PHP
tanuahn/PHPS4_stopwatch
/index.php
UTF-8
827
3.25
3
[]
no_license
<?php include 'StopWatch.php'; $arr = []; for ($i = 0; $i < 10000; $i++){ $arr[$i] = $i * rand(1, 100); } function sapXep($arr){ // Lap de sap xep for ($i = 0; $i < count($arr) - 1; $i ++){ // Tim vi tri min $min = $i; for ($j = $i +1; $j < count($arr); $j ++){ if ($arr...
true
ac870e1301fb0ca382d4b42e4b58bc422b98a428
PHP
waltkong/myDisplays
/feiniaov1.0/app/library/frame/LogLibrary.php
UTF-8
621
2.625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: kongweitao * Date: 2019/3/27 * Time: 14:36 */ namespace app\library\frame; class LogLibrary { /** * 打印一般信息 * @param $data * @param string $description */ public function info( $data, $description=''){ $obj = new \Log()...
true
2f1e394714a2fa13ac64d3be95801936fdd1a32e
PHP
tiagojpdias/blog-api-demo
/app/Repositories/UserEloquentRepository.php
UTF-8
546
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Filters\UserFilter; use Illuminate\Contracts\Pagination\LengthAwarePaginator; class UserEloquentRepository implements UserRepository { /** * {@inheritdoc} */ public function getPaginator(UserFilter $filter, $queryBuilder): LengthAwarePaginator { ...
true
39dd9a731cc20d705310906acb5225e8d1e38fe1
PHP
sourceboat/laravel-enumeration
/tests/Unit/Weighted/IsGreaterThanOrEqualToTest.php
UTF-8
1,811
2.671875
3
[ "MIT" ]
permissive
<?php namespace Sourceboat\Enumeration\Tests\Unit\Weighted; use Sourceboat\Enumeration\Tests\FruitType; use Sourceboat\Enumeration\Tests\TestCase; class IsGreaterThanOrEqualToTest extends TestCase { public function setUp(): void { parent::setup(); config([ 'enums' => [ ...
true
6d5c02725c1c30df453fbd59d4ed52d70d3fd4a5
PHP
chaandhra/PDAM2
/admin/add-tagihan.php
UTF-8
3,265
2.765625
3
[]
no_license
<?php include_once 'dbconfig.php'; include_once 'model/tagihan.php'; $crud = new tagihan($DB_con); if(isset($_POST['btn-save'])) { $tanggal = $_POST['tgl']; $id = $_POST['id']; $besar= $_POST['besar']; $idpelanggan=$_POST['pelanggan']; if($crud->create($id,$tanggal,$besar,$idpelanggan,$status)) { header("Locat...
true
d784e232f2132d4b443a59cd1802309ebe96f000
PHP
MikeChipshop/MM2019
/mu-plugins/site-specific.php
UTF-8
14,574
2.734375
3
[]
no_license
<?php /* * Plugin Name: Site Functions * Description: Adds specific content functions to the Royal Exchange theme. Please make sure this plugin stays activated! * Plugin URI: http://miniman-webdesign.co.uk * Version: 1.0 * Author: Mike @ Miniman * Author URI: http://miniman-webdesign.co.uk * License: Private */ ...
true
59fc39c1a31239b45da2f9c135a25a1a74aa6f8f
PHP
sinedas/hackatonwishlist
/lib/form/renderer/OneColFormRenderer.php
UTF-8
1,489
3.15625
3
[]
no_license
<?php class OneColFormRenderer { /** * Enter description here... * * @var Form */ var $form; /** * Enter description here... * * @param Form $form * @return FormRenderer */ function OneColFormRenderer(&$form) { $this->form = $form; } /** * Enter description here... * * @return str...
true
4de2b8b804829d57d66b159aede290641eedc736
PHP
josephjlee/Loan_application
/sendmessage.php
UTF-8
843
2.71875
3
[]
no_license
<?php function e($x){ return htmlspecialchars(stripslashes($x)); } if(isset($_POST["submit"])){ include 'includes/connect.php'; //prepare and bind // (?,?,?,?) yan yung parameter markers gamit sa variable binding $sql = "INSERT INTO `tblmessages`(`name`, `email`, `message`, `datemess`) VALUES ...
true
0a7fc38e63ba47d6586e061e7ef30906ae77b3ae
PHP
nchamp/wordfinder
/tests/unit/Routing/BaseRoutesTest.php
UTF-8
1,093
2.53125
3
[]
no_license
<?php use Phalcon\Mvc\Micro\Collection, Phalcon\Mvc\Controller, Wordfinder\Controller\BaseController, Wordfinder\Routing\BaseRoutes; /** * @author Nicholas Potesta * @package */ class BaseRoutesTest extends WordfinderTestCase { /** * @var BaseRoutes */ protected $routes; public function setUp() { $th...
true
92d75a6289ce83ef4e8fa2e4912c27fd4b54e483
PHP
ksenzee/views3ui
/modules/aggregator/views_handler_argument_aggregator_fid.inc
UTF-8
514
2.65625
3
[]
no_license
<?php /** * Argument handler to accept an aggregator feed id. */ class views_handler_argument_aggregator_fid extends views_handler_argument_numeric { /** * Override the behavior of title(). Get the title of the feed. */ function title_query() { $titles = array(); $result = db_query("SELECT f.title...
true
fbf86c6af5e417d553aa74e4662c80cfb122a8f4
PHP
Silentspec/shop
/www/core/controllers/ControllerPost.php
UTF-8
3,182
2.640625
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace core\controllers; /** * Description of ControllerPost * * @author Silentspec */ class ControllerPost extends \co...
true
cc9cc6efa30bda5ff0cb9bd0f0d0da798bec7609
PHP
cvairlis/simple-laravel-vuejs-crud-system
/app/Models/User.php
UTF-8
1,121
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Carbon\Carbon; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; class User extends Authenticatable { use HasFactory, Not...
true
13c27a7c471b1d0ffd5ffa294f3944f3ea34deeb
PHP
harrylaw/EflyPro_Blogging_System
/controller/CommentController.php
UTF-8
2,095
2.9375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: harry * Date: 08/05/2017 * Time: 3:54 PM */ namespace controller; use model\Comment; require_once "../model/Comment.php"; require_once "DBController.php"; class CommentController { private static $instance = null; private $comments = array(); private functio...
true
bfd7b1cd2d07c2cc6f8a89fc86abe665707e66a8
PHP
wiz-anzhen/weixin-test
/app/lib/MP/Model/Mp/OrderStatus.php
UTF-8
2,031
2.546875
3
[]
no_license
<?php //Don't edit this file which is generated by Bluefin Lance. namespace MP\Model\Mp; use Bluefin\Convention; use Bluefin\Data\ValidatorInterface; class OrderStatus implements ValidatorInterface { const DEFAULT_STATUS = 'default_status'; const SUBMITTED_TO_PAY = 'submitted_to_pay'; const PAID_TO_VERIFY...
true
67e0fbe8eeacd3e44551dbc2d77532a95f926cd8
PHP
mlazdans/hackerrank
/lonely-integer/solution.php
UTF-8
624
3.40625
3
[]
no_license
<?php #https://www.hackerrank.com/challenges/lonely-integer/problem error_reporting(E_ALL); function array_print($arr){ return "[".join(",", $arr)."]"; } function lonelyinteger($a) { sort($a); for($i=0;$i<count($a);$i+=2){ if(($i + 1 >= count($a)) || ($a[$i] != $a[$i + 1])){ return $a[$i]; } } } $fptr = ...
true
f953650eb715f1188774a1290da1eb07aae2d4de
PHP
antonradchuk/SphereMall-test
/Model/Feedback.php
UTF-8
2,691
2.984375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Anton * Date: 12.11.17 * Time: 00:42 */ namespace Model; class Feedback { private $id; private $firstName; private $secondName; private $email; private $message; private $imagePath; private $image; public function __construct (ContactFor...
true
539dd5d45fd5e4c0de48ae81a56cd5c6be2d7590
PHP
lothar17/examen
/fonctions/fonction.php
UTF-8
1,568
2.6875
3
[]
no_license
<?php function create_livre($nom_livre, $id_auteur, $avis, $note) { require __DIR__ . "/../database/conn.php"; $req = $db->prepare("INSERT INTO livres (nom_livre, id_auteur, avis, note) VALUES (:nom_livre, :id_auteur, :avis, :note)"); $req->bindValue(":nom_livre", $nom_livre, PDO::PAR...
true
f28e61e3ed1c7647cd3d6a1a9b7abea4cbe8c64f
PHP
tonyhokas113/bit-php
/09/nd63.php
UTF-8
330
2.96875
3
[]
no_license
<?php $h1 = function (string|array $text) : string { // if (is_array($text)) { // // $text = $text[0]; // $text = array_pop($text); // } return "<h1 style=\"display:inline;\">".($text[0] ?? $text)."</h1>"; }; $genText = md5(time()); $out = preg_replace_callback('/\d+/', $h1, $genText); ...
true
90e94e521b8ae83865bb7a512daea0d1b2a31aab
PHP
vparul/Random-Webpages
/randquote.php
MacCentralEurope
1,016
2.625
3
[]
no_license
<?php $quotes=[ [ 'author'=>' try to create sympathy for my characters, then turn the monsters loose.', 'text'=> 'Stephen King' ], [ 'author'=>' Prose is architecture, not interior decoration.', 'text'=>'Ernest Hemingway' ], [ 'author'=>' Its none of their business that you have to learn to write. Let them think you we...
true
1ca85315508074bca0fa169ee9a943a45aaf7aae
PHP
Arteaga2k/problema2
/app/libs/mysql_DB.php
UTF-8
9,743
3.25
3
[]
no_license
<?php /** * Clase mysqldb * * Intenta emular el comportamiento de active record de codeigniter * guarda condiciones del query por separado * * @author Carlos */ class MysqlDB { /** * * @var array datos enlazados */ private $binds; /** * * @var cone...
true
c3a7f1f98f137d9a6bd9fef3aa24590af762ee57
PHP
13808796047/hdjob
/web/backend/model/arcModel.php
UTF-8
2,593
2.75
3
[]
no_license
<?php /* * Copyright : [后盾人才招聘系统] (C)2011-2012 后盾网 ,Inc. * Link : http://www.houdunwang.com * Encoding : UTF-8 * Author : 张博 * Email : zhangbo1248@gmail.com * Created : 2012-10-01 * Describe : 文章、栏目模型 */ class arcModel extends Model { public $arc; public $channel; public $arc...
true
927ef7aab542fc9f5aadbeed2cd68e599efc3a1b
PHP
Y-Less/YSI
/PHP/YSI/YSI_live.php
UTF-8
2,507
2.609375
3
[]
no_license
<?php class YSI_live { public $YSI_live_stats = array(array()); public $settings; function SetSettings($set) { $this->settings = $set; } function Loop() { $file = $this->settings->YSI_SCRIPTFILES . '_temp_ysi_live_file_.ysi'; if (file_exists($file)) { $ini = new YSI_ini($file); $ini->Parse('...
true
46f74e6d97b7b19c21af50564f5071c335367a5e
PHP
haja12/test
/connection.php
UTF-8
1,902
2.671875
3
[]
no_license
<?php // DB connection $servername = "localhost"; $username = "root"; $password = ""; $dbname = "midinfi"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Database Connection failed: " . $conn->connect_error); }...
true
0f0f8b174916c45ff07f7baf106b21fa13ad2c3c
PHP
israelpootvarguez/octavo
/administrador/models/users.php
UTF-8
3,030
2.828125
3
[]
no_license
<?php function usersGet($params){ $filters = (isset($params['filters']))? $params['filters'] : array(); $sorts = (isset($params['sorts']))? $params['sorts'] : array(); $start = (isset($params['start']))? $params['start'] : ""; $quantity = (isset($params['quantity']))? $params['quantit...
true
fe8fd5f5d7bfa67a07927844ecd46335bf353a54
PHP
Klym/sp-dnr
/packages/info/mapper/NewsMapper.php
UTF-8
4,372
2.9375
3
[]
no_license
<?php namespace info\mapper; require_once("DataMapper.php"); require_once("SelectionFactory.php"); class NewsMapper extends DataMapper { function __construct(\PDO $pdo) { parent::__construct($pdo); // Запрос на выборку самых новых данных каждого типа $this->selectLatestStmt = $this->pdo->prepare("SELECT *, ...
true
e09ec1b15be4cc1c7fa148c91e474adeed8d06c6
PHP
simfatic/boar
/tests/NumberTest.php
UTF-8
1,041
2.53125
3
[ "MIT" ]
permissive
<?php use PHPUnit\Framework\TestCase; use Simfatic\Boar\Boar; class NumberTest extends TestCase{ public function testValidation() { $v = Boar::create(); $v->field("weight")->isNumber(); $res = $v->validate(["weight"=>"A12345"]); $this->assertTrue($res->hasErrors()); $th...
true
44b5c3c8bd2ccac554ca08360063dd1221f1d847
PHP
code-foundation/flow-config
/src/AccessControl/NullAccessControl.php
UTF-8
672
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace CodeFoundation\FlowConfig\AccessControl; use CodeFoundation\FlowConfig\Interfaces\AccessControl\AccessControlInterface; use CodeFoundation\FlowConfig\Interfaces\EntityIdentifier; /** * This null class returns the default of 'true' for all check methods. */ class NullAccessC...
true
85fce952f2d38cfd8c4f8ec8948355cc049d23fb
PHP
luisgazui/freelancer
/tests/traits/MakeTblSubCategoriasTrait.php
UTF-8
1,513
2.53125
3
[ "MIT" ]
permissive
<?php use Faker\Factory as Faker; use FreelancerOnline\Models\TblSubCategorias; use FreelancerOnline\Repositories\TblSubCategoriasRepository; trait MakeTblSubCategoriasTrait { /** * Create fake instance of TblSubCategorias and save it in database * * @param array $tblSubCategoriasFields * @ret...
true
04af469d46f2c2da338f3eef790c5ac589f60675
PHP
gitemad/edu_php
/search.php
UTF-8
2,232
2.78125
3
[]
no_license
<html> <head> <link href="style.css" rel="stylesheet"> </head> <body> <form action=""> <input name="search" type="text" class="input"> <input name="submit" type="submit" class="input" value="Search"> </form> <?php error_reporting("~E_ALL"); if (isset($_GET['se...
true
89a05c19de0ff66c6aeab32e0dd24ccd8674af15
PHP
AdvancedKittenry/AdvancedKittenry.github.io
/src/suunnittelu_ja_tyoymparisto/esimerkit/tietokanta.php
UTF-8
646
2.625
3
[ "Unlicense" ]
permissive
<?php //Otetaan yhteys mysql-tietokantaan $yhteys = new PDO("mysql:host=localhost;dbname=tietokannan_nimi", "kayttaja", "salasana"); //Suoritetaan sql-kysely. Haetaan täysi-ikäiset Lehtoset tietokannasta $sql = "SELECT id, nimi, osoite FROM kayttajat WHERE ika >= ? and sukunimi = ?"; $kysely = $yhteys->prepa...
true
398c72eec80d307707e6075e2d877a2ff3dc0fbc
PHP
BlinkVonDoom/CSIS2440
/CSIS2440/CE08/NewAccount.php
UTF-8
3,511
2.6875
3
[]
no_license
<!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <meta charset="UTF-8"> <title>New Captain Account</title> <?php require...
true
4b89c103d62af9dd5a472cbe3a0fb19beeba9297
PHP
Uditha05/Depot-Management-System
/includes/AttendancerecordDTO.class.php
UTF-8
731
2.765625
3
[]
no_license
<?php class AttendancerecordDTO{ private $empid; private $date; private $ontime; private $offtime; private $available; public function __construct($empid,$date,$ontime,$offtime,$available){ $this->empid=$empid; $this->date=$date; $this->ontime=$ontime; $this->off...
true
25bb72b8ad50005455cc5d397e11a3d93aeba004
PHP
krzysztofuryga/CRUD-app-exercise
/users/users.php
UTF-8
2,316
2.921875
3
[]
no_license
<?php function getUsers() { return json_decode(file_get_contents(__DIR__ . '/users.json'), associative: true); } function getUserById($id) { $users = getUsers(); foreach ($users as $user) { if ($user['userId'] == $id) { return $user; } } return null; } function createU...
true
c2708b29a81f41a6e19ca4d691e79f141ebebcf3
PHP
ekadmit/Lara21
/app/Http/Requests/StoreNewsRequest.php
UTF-8
1,244
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class StoreNewsRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ // проверка прав и ролей пользователя public function authorize() { ...
true
92894f450a98d0a4c1abaacc2df96ecf1c621ca1
PHP
abusalam/utsav
/fun/sms/smsgw_cdac.php
UTF-8
8,769
2.875
3
[ "MIT" ]
permissive
<?php //header('Content-Type: text/html;'); $username = SMS_CDAC_USER; //username of the department $password = SMS_CDAC_PASS; //password of the department $senderid = SMS_SENDER_ID; //senderid of the deparment //$message = "Your Normal message here "; //message content //$messageUnicode = "???????????????????????...
true
2a1c6ae1e04d38e7e96cbaa56da14141a571931e
PHP
Crabbey/AoC2019
/puzzle1/puzzle.php
UTF-8
711
3.5
4
[]
no_license
<?php include_once("../common.php"); function calculateFuel($mass) { return floor(($mass / 3) - 2); } function puzzle1_part1() { $input = readInput(); $moduleMasses = explode("\n", $input); $totalWeight = 0; foreach ($moduleMasses as $module) { $totalWeight += calculateFuel($module); } return $totalWeight; ...
true
1959dd5097e8e947424d08dba7b0d4b2e73a6e67
PHP
IKramOMHAND/my_blog_project
/database/migrations/2019_04_17_155021_create_comments_table.php
UTF-8
1,100
2.625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCommentsTable extends Migration { /** * Run the migrations. * Les migrations sont associées au générateur de schéma de Laravel pour créer facilement le schéma...
true
591a04b430c6e0268f887d4ba739e8d925e85c7d
PHP
marjanshuplinoski/preskok
/checkDownloadedFromS3.php
UTF-8
2,576
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Marjan * Date: 4/10/2018 * Time: 10:13 AM */ include_once 'S3.php'; function checkDownloadedFromS3($uploadToS3Cloud = null) { $s3Client = connectClient(); $result = $s3Client->listBuckets(array()); foreach ($result['Buckets'] as $bucketname) { $bucket ...
true
dfc4de7944f8553b49eef067548c030e58c3744a
PHP
joelcolucci/harvard-cs50-coursework
/pset7/public/index.php
UTF-8
1,079
2.78125
3
[]
no_license
<?php // configuration require("../includes/config.php"); // get user id from session $id = $_SESSION["id"]; // fetch all user stocks from database $rows = query("SELECT id, symbol, shares FROM portfolio WHERE id = $id"); $positions = []; foreach ($rows as $row) { ...
true
500e931d3ef87a4913be4d0969c350bfc4d55a3d
PHP
jakub-klapka/vossps-kromeriz-wp
/wp-content/themes/vossps_km/core/classes/AktualityTheme.class.php
UTF-8
917
2.59375
3
[]
no_license
<?php namespace Lumi\Classes; use TimberPost; class AktualityTheme { public static function getTheme() { global $lumi_aktuality_theme; if( isset( $lumi_aktuality_theme ) ) return $lumi_aktuality_theme; global $lumi; $tax_vos_id = $lumi['config']['tax_vos_id']; $tax_ss_id = $lumi['config']['tax_ss_id'...
true
1fea4797dffa2f7ffd782b92b1e768bb6c314d1f
PHP
shophp/shophp
/app/presenters/Admin/Shipment/controls/ShipmentForm.php
UTF-8
6,387
2.59375
3
[]
no_license
<?php namespace ShoPHP\Admin\Shipment; use Nette\Forms\Controls\ChoiceControl; use Nette\Forms\Controls\TextInput; use ShoPHP\AddressFormContainer; use ShoPHP\Shipment\ShipmentOption; use ShoPHP\Shipment\ShipmentPersonalPoint; use ShoPHP\Shipment\ShipmentCollectionPoint; use ShoPHP\Shipment\ShipmentTransportCompany; ...
true
e1c52bef66bb274b7fb8f4cff8a81cf11df74f38
PHP
tarikmanoar/xenforo
/src/XF/Service/Thread/Merger.php
UTF-8
9,261
2.578125
3
[]
no_license
<?php namespace XF\Service\Thread; use XF\Entity\Thread; use function intval, is_array; class Merger extends \XF\Service\AbstractService { /** * @var Thread */ protected $target; protected $alert = false; protected $alertReason = ''; protected $redirect = false; protected $redirectLength = 0; protecte...
true
3af7ad40e2d0637c0ae3714fc77e1cb9d5d324a5
PHP
Erli/eet
/app/Http/Controllers/ItemController.php
UTF-8
1,060
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Item; use Illuminate\Http\Request; class ItemController extends Controller { // public function index() { return view('items'); } public function get(Request $request) { $posts = Item::orderBy('created_at', 'desc')->get(); ...
true
7222da5900cabff5190821a35076612ea87ccc16
PHP
Shahriar201/online_voting_system
/app/Http/Controllers/Backend/VoteController.php
UTF-8
1,567
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Backend; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Model\VotePurpose; use App\Http\Requests\VoteRequest; use Auth; class VoteController extends Controller { public function view(){ $data['allData'] = VotePurpose::all(); ...
true
4b63ac311aed2df6a4c9208e99033c26edf8f383
PHP
nenadpaic/sy2-projekat
/src/Report/ModelBundle/Repo/ReportsRepo.php
UTF-8
1,092
2.578125
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace Report\ModelBundle\Repo; use Doctrine\ORM\EntityRepository; class ReportsRepo extends EntityRepository{ /** * Checking if user has submitted report * @param $user * @param $component * @param $component_id * @return int */ public function isReported($user,$compon...
true
e1c2b9d3dee48400634d7e7417f3dae69d313200
PHP
rakelley/jakkedweb
/src/cms/routes/Users/views/Index.php
UTF-8
2,157
2.703125
3
[ "MIT" ]
permissive
<?php /** * @package jakkedweb * @subpackage cms * * All content covered under The MIT License except where included 3rd-party * vendor files are licensed otherwise. * * @license http://opensource.org/licenses/MIT The MIT License * @author Ryan Kelley * @copyright 2011-2015 Jakked Hardcore Gym */ namespace...
true
fccfecdb6cf4c4a6766d40b1b41eddebb0f9338a
PHP
lFirellCodel/Modulo-geo
/tienda/mapa-registrar.php
UTF-8
570
2.53125
3
[]
no_license
<?php require_once './config.php'; $lat = $_POST['lat']; $lng = $_POST['lng']; $direc = $_POST['direc']; $edif = $_POST['edif']; var_dump($lat); var_dump($lng); $mapa = new Mapa(); $mapa->lat = $lat; $mapa->lng = $lng; $mapa->direc = $direc; $mapa->edif = $edif; try{ MapaDAO::registrar($mapa); ...
true
39503843e07e679062d424de8b927b66dd890a49
PHP
srinivas1591/TheSparksFoundation
/tsf/transactions.php
UTF-8
903
2.59375
3
[]
no_license
<?php include 'database.php'; ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Transactions</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" type="text/css" href="index.css"> </head> <body> <?php include 'nav.php'; ?> <center> <h2>Transact...
true
608dfd6ba25e71705716579bfd6bc9c0ae6ed0d0
PHP
anish-dadlani/newsbuzz
/vendor/murat-yuksel/news-api-php/src/NewsApi/Client.php
UTF-8
2,678
3.09375
3
[]
no_license
<?php namespace NewsApi; use NewsApi\Request\EverythingRequest; use NewsApi\Request\SourcesRequest; use NewsApi\Request\TopHeadlinesRequest; use NewsApi\Response\ResponseInterface; /** * Class Client * @package NewsApi */ class Client implements ClientInterface { /** * @var RequestParser */ priv...
true
c0a282c2fd90ae467e507ecef5587e834f150986
PHP
dimassrio/link
/app/controllers/CoursesController.php
UTF-8
12,268
2.625
3
[ "MIT" ]
permissive
<?php class CoursesController extends BaseController { /** * Display a listing of the resource. * * @return Response */ public function index() { $course = Course::all(); $data['pagetitle'] = "List of registered course."; $data['courses'] = $course; return View::make('courses.index', $d...
true
d9a2447efcf4052e839e809007c9adeaa00ad91d
PHP
KevinHubs/rpc-testinterface
/src/Consulservice/User/UserInterface.php
UTF-8
145
2.59375
3
[]
no_license
<?php declare(strict_types=1); namespace Consulservice\User; interface UserInterface { public function login(int $user,string $pass):bool ; }
true
3504359592bdf94a043abd96d8d2d6d31b0dcf95
PHP
writerim/rq
/vendor/codeigniter/framework/application/models/Converter_model.php
UTF-8
6,469
2.59375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Converter_model extends CI_Model { public $id = 0; public $type = 0; public $title = ""; public $ip = ""; public $port = 0; public $login = ""; public $password = ""; public $is_excluded = 0; public $meter_ok = 0; public $converter_title = ''; public $portcontrol = 0; protected $...
true
832a7af0946ce9ff6f125e2b84f0828808a2d2a9
PHP
cameronandwilding/CWTool
/src/CW/Util/BatchContext.php
UTF-8
1,366
2.921875
3
[]
no_license
<?php /** * @file */ namespace CW\Util; class BatchContext { const KEY_SANDBOX = 'sandbox'; const KEY_FIRST_RUN_DONE = 'first_run'; const KEY_FINISHED = 'finished'; const FINISHED_COMPLETE = 1; /** * @var array */ private $context; public function __construct(&$context) { $this->context ...
true
6b41c0bf4b3d6326b751f037dfda2f35af9cb941
PHP
JarneDeschacht/RealEstate
/api/api-register.php
UTF-8
2,162
2.703125
3
[]
no_license
<?php if (empty($_POST['txtFirstname'])) { sendErrorMessage('First name is missing', __LINE__); } if (empty($_POST['txtLastname'])) { sendErrorMessage('Last name is missing', __LINE__); } if (empty($_POST['txtEmail'])) { sendErrorMessage('E-mail is missing', __LINE__); } if (!filter_var($_POST['txtEmail'],...
true
548bc06ab677f99906b587525ad9f1c058580d8c
PHP
lalofee/php_day_2
/exercise_4.php
UTF-8
613
3.203125
3
[]
no_license
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="style.css"> <title>create database</title> </head> <body> <?php //Create Database using PHP and MySQL. //connect to mysql $servername = "localhost"; $user = "root"; $pw = ""; $dbname = "myDB"; $con = new mysqli($servername, $user, $pw); if($con ->c...
true
206a34fe2e2c7e9340489ea8c8fa858d8ca6272e
PHP
ant-hill/searcher
/src/Searcher/LoopBack/Parser/Filter/FilterCondition.php
UTF-8
1,150
2.875
3
[ "MIT" ]
permissive
<?php namespace Searcher\LoopBack\Parser\Filter; class FilterCondition { /** Logical AND operator */ const CONDITION_AND = 'and'; /** Logical OR operator */ const CONDITION_OR = 'or'; /** Numerical greater than (>); Valid only for numerical and date values. */ const CONDITION_GT = 'gt'; ...
true
14f71e4acf263c47c655647d424b78038f9b4def
PHP
gaoolp/phpboot
/src/Lock/LockInterface.php
UTF-8
130
2.625
3
[ "MIT" ]
permissive
<?php namespace PhpBoot\Lock; interface LockInterface { public function lock($key, $ttl); public function unlock($key); }
true
6486856556d9be1263801fac61ec15ef4846db04
PHP
yevgen-grytsay/bandicoot
/src/Builder.php
UTF-8
2,793
2.609375
3
[]
no_license
<?php namespace YevgenGrytsay\Bandicoot; use YevgenGrytsay\Bandicoot\Context\ContextInterface; use YevgenGrytsay\Bandicoot\Context\ContextResolverInterface; use YevgenGrytsay\Bandicoot\Context\IteratorContext; use YevgenGrytsay\Bandicoot\Context\ListContext; use YevgenGrytsay\Bandicoot\Context\RenderContext; use Yevge...
true
996d53d77c7c3a2f03ac8dd23e419954e2359ba7
PHP
jinwei233/temple
/1.0/test/main.php
UTF-8
255
3.296875
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
<?php class Engine{ public $__s__ = ""; public function render($env){ $this->__s__ .= "\n"; $this->__s__ .= "hi "; $this->__s__ .= $env["name"]; return $this->__s__; } } $engine = new Engine; print( $engine->render(Array()) ) ?>
true
1f36804601bbac87e4232b2ed3e768b0d03794a5
PHP
scriptlabs/phalcon-hint-generator
/phalcon-ide/2.0.5.4/Phalcon/Annotations/Adapter/Files.php
UTF-8
779
2.609375
3
[ "MIT" ]
permissive
<?php namespace Phalcon\Annotations\Adapter; use Phalcon\Annotations\Adapter; use Phalcon\Annotations\AdapterInterface; use Phalcon\Annotations\Reflection; use Phalcon\Annotations\Exception; class Files extends Adapter implements AdapterInterface { protected $_annotationsDir = './'; /** * Phalcon\Annotation...
true
aa6abd12a2d5ca28e75963b98ce1539263687453
PHP
takagotch/phplib
/phpmook/cakephp/mook/Controller/InfoController.php
UTF-8
1,410
2.65625
3
[]
no_license
<?php // コントローラクラスの定義 (1) class InfoController extends AppController { // 使用するモデル(テーブル)の定義 (2) public $uses = array('Info'); // デフォルトのアクション (3) public function index(){ $list = $this->Info->find('all'); $this->set('list',$list); // 表示するビューの指定 (4) $this->render('index'); } // レコードの追加アクション (5) public f...
true
6477312ced828ea4a9728ff7f2a914fc07969df1
PHP
judasgutenberg/symfony_react
/symfony_backend/src/Entity/Shift.php
UTF-8
3,480
2.515625
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * Shift * * @ORM\Table(name="shift", indexes={@ORM\Index(name="manager_id", columns={"manager_id"}), @ORM\Index(name="employee_id", columns={"employee_id"})}) * @ORM\Entity */ class Shift extends Model { /** * @var int * * @ORM\...
true
723689c44990393df4becfcaff4e3c4b807575a3
PHP
namoclopez2020/mrrobot-guias
/includes/session.php
UTF-8
1,780
2.6875
3
[]
no_license
<?php session_start(); class Session { public $msg; private $user_is_logged_in = false; function __construct(){ $this->flash_msg(); $this->userLoginSetup(); } public function isUserLoggedIn(){ return $this->user_is_logged_in; } public function login($user_id){ $_SESSION['user_id'] = $user_i...
true
929782f61a5003799b76680d7a1d89ca9c268234
PHP
rohi333/RomanToDecimal
/R-D1/index.php
UTF-8
1,449
3.015625
3
[]
no_license
<html> <title>Roman Numeral To Decimal in PHP</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script type="text/javascript"> function chk(){ var name=document.getElementById('name').value; var dataString='na...
true
fdba7a00528ed193c62442e54cb0e7700e1b4b70
PHP
FlyBirdHeight/php_learning
/test01/test02.php
UTF-8
615
3.1875
3
[]
no_license
<?php namespace test\02; class StreamDocument implements Documentable { protected $resource; protected $buffer; public function __construct($resource,$buffer = 4096){ $this->resource = $resource; $this->buffer = $buffer; } public function getId() { return 'resource-'.(int)$this->resource; } public func...
true
9834ec12cced8c0e31518074229dfe2f3bda97b8
PHP
paragonie/paseto
/src/Keys/Base/SymmetricKey.php
UTF-8
6,739
2.9375
3
[ "ISC" ]
permissive
<?php declare(strict_types=1); namespace ParagonIE\Paseto\Keys\Base; use Exception; use ParagonIE\ConstantTime\{ Base64UrlSafe, Binary }; use ParagonIE\Paseto\{ Exception\ExceptionCode, Exception\InvalidVersionException, Exception\PasetoException, Protocol\Version3, Protocol\Version4, P...
true
9f2cdd465a07af2605e3faf09c49b15bf7744e77
PHP
devlabs91/generic-ota-hotel-api-service
/src/StructType/StatisticApplicationSetType.php
UTF-8
6,393
2.53125
3
[ "MIT" ]
permissive
<?php namespace Devlabs91\GenericOtaHotelApiService\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for StatisticApplicationSetType StructType * Meta informations extracted from the WSDL * - documentation: Includes the statistic data reported and the codes for which it has been ...
true
16e9f7cfaebb57b7018b6edc51fe591d0778b86e
PHP
lookyman/rundeck-api
/src/Configuration.php
UTF-8
1,373
2.96875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Lookyman\Rundeck\Api; use GuzzleHttp\ClientInterface; use Lookyman\Rundeck\Api\Authentication\AuthenticationInterface; use Lookyman\Rundeck\Api\Format\FormatInterface; class Configuration { /** * @var ClientInterface */ private $guzzle; /** * @var string */ priva...
true
c9d33235a081e199dcb6fabb465f4fc6310090b3
PHP
zhenghua75/PigCms
/PigCms/Lib/ORG/WechatShare.class.php
UTF-8
7,003
2.515625
3
[ "Apache-2.0" ]
permissive
<?php class WechatShare { public $wxuser; public $wecha_id; //构造函数获取access_token function __construct($wxuser,$wecha_id){ $this->wxuser = $wxuser; $this->wecha_id = $wecha_id; } public function getSgin(){ $now = time(); //$share_data = M('Wxuser')->where(array('token'=>$this->token))->field('shar...
true