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
eff15bd432a2186bafcea40b3688ceb73a210c4e
PHP
spycvs/kbsystem
/n_reports/rqueries.php
UTF-8
847
2.703125
3
[]
no_license
<?php include "../db_conn.php"; ?> <?php // SQL FOR Gender Population Count// $maleSqlChart = mysqli_query($conn, "SELECT COUNT(id) as countM from residents where sex = 'Male'"); $male_count = mysqli_fetch_array($maleSqlChart); $femaleSqlChart = mysqli_query($conn, "SELECT COUNT(id) as countF from residents where ...
true
d7e2576d6d1d9d34c6a2186a659a1dfbbb3ec8e7
PHP
Faulo/slothsoft.net
/mod/lang/php/GrammarJa.php
UTF-8
5,984
2.84375
3
[]
no_license
<?php namespace Slothsoft\Lang; use DOMDocument; use DOMXPath; use DOMElement; use Exception; class GrammarJa { protected $doc; protected $xpath; protected $rootNode; protected $conjugationTypeList; protected $conjugationBaseList; protected $conjugationExceptionList;...
true
4e18575bf5e5909dede3459c319f9ce2888f40ea
PHP
kucik/misc_scripts
/libcice_platby/import.php
UTF-8
7,959
2.625
3
[]
no_license
<?php class import extends Main { function load($file) { $data = fopen("$file", r); $radek = 0; echo "<h1>Stav importu</h1>"; echo "<div id=\"datawindow\">"; while ($platby = fgetcsv($data, filesize("$file"), ";", '"')) { $pocet = count($platby); ...
true
a5daaea71866e430cac21305ddf741a1b0d662b2
PHP
salvatorecriscioneweb/Jabu-php
/add.php
UTF-8
1,666
2.546875
3
[]
no_license
<?php $errConnection = "Error in connection, please contact admin..., host not valid"; $errSelectDb = "Error in select DB, please contact admin...."; ?> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <meta http-equiv="content-language" content="it"> <link rel="styles...
true
e07349d07911d8b34e1f71b634880a604dece0a5
PHP
bitobmen/hello
/main/app/Services/Product/ProductDto.php
UTF-8
2,466
2.765625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Services\Product; use App\Services\Product\VO\ProductStatus; use App\VO\Commission; use Illuminate\Http\UploadedFile; /** * Class ProductDto. */ final class ProductDto { private int $driverNumber; private int $productTypeNumber; private int $locationNumber;...
true
2c973813256e06ed9e14d8962361ccea8cffd59d
PHP
ccxt/ccxt
/php/pro/test/Exchange/test_watch_ticker.php
UTF-8
1,120
2.578125
3
[ "MIT" ]
permissive
<?php function test_watch_ticker($exchange, $symbol) { echo __FUNCTION__ . "\n"; $method = 'watchTicker'; // we have to skip some exchanges here due to the frequency of trading $skipped_exchanges = array( 'cex', 'ripio', 'mexc', 'woo', 'alpaca' ); if ...
true
27e37c07ae7987443aa25827aec2d01b5c9b7663
PHP
JanMikes/symplify
/packages/phpstan-rules/src/NodeFinder/PreviousLoopFinder.php
UTF-8
1,296
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Symplify\PHPStanRules\NodeFinder; use PhpParser\Node; use PhpParser\Node\Expr\Variable; use PhpParser\NodeFinder; use Symplify\Astral\Naming\SimpleNameResolver; use Symplify\Astral\ValueObject\AttributeKey; final class PreviousLoopFinder { public function __construct( ...
true
f0bd02fcfe8d5c7ef8ae69a4bb3df4f442e61fcb
PHP
Hurmatullah/DropOut-System
/database/migrations/2019_09_21_084222_students.php
UTF-8
1,096
2.609375
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class Students extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('students', function (Blue...
true
157b65a474a0482dcad5592a4e96739d9174ba45
PHP
agustindidiego/reviews-module
/src/Section/Contract/SectionInterface.php
UTF-8
727
2.546875
3
[ "MIT" ]
permissive
<?php namespace Rage\ReviewsModule\Section\Contract; use Anomaly\Streams\Platform\Entry\Contract\EntryInterface; use Anomaly\Streams\Platform\Entry\EntryModel; use Anomaly\Streams\Platform\Stream\Contract\StreamInterface; interface SectionInterface extends EntryInterface { public function getTitle(); public funct...
true
498520cf97997ea64d1144292f3ceb89263743ee
PHP
ngilain/twity
/src/Document/Package.php
UTF-8
1,177
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Document; use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB; use Symfony\Component\Serializer\Annotation\Groups; /** * @MongoDB\EmbeddedDocument */ class Package { /** * @MongoDB\Field(type="string") * @Groups({"package_default"}) */ protected $version; /** ...
true
066a9feae1c0c4974323fca9ca14de171020ef68
PHP
Nikiqq/web-practice
/PHP_algorithm/Sorting/Bubble_sort.php
UTF-8
1,048
3.578125
4
[]
no_license
<?php //сортировка пузырьком (Bubble sort) function sorting($arr) { for($i = 0; $i < count($arr); $i++) { $flag = true; for($j = 0; $j < count($arr) - ($i + 1); $j++) { if($arr[$j] < $arr[$j + 1]) { $flag = false; $dummy =...
true
4b3ea72e441911a4cff72b63d56472c8123a70f6
PHP
OpenMageModuleFostering/orbitvu_sun
/app/code/community/Orbitvu/Sun/controllers/OrbitvuDatabaseInterface.php
UTF-8
98,106
2.75
3
[]
no_license
<?php /** * Orbitvu PHP eCommerce Orbitvu DB drivers * @Copyright: Orbitvu Sp. z o.o. is the owner of full rights to this code */ final class OrbitvuDatabaseInterface { /** * Database driver instance * @var instance */ private $database; /** * Database tables prefix * ...
true
c926043292b9d6a6bbdfc553233b0230545d5c21
PHP
originalix/Original
/PHP/lixshop/common/models/SalesFlatOrderItem.php
UTF-8
3,248
2.65625
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; use yii\behaviors\TimestampBehavior; use common\models\SalesFlatOrder; use common\models\Product; /** * This is the model class for table "{{%sales_flat_order_item}}". * * @property int $id * @property int $order_id 关联的订单id * @property int $customer_id 顾客id * @property i...
true
92be09e4db80e04da8527ae14057a59e9227edee
PHP
Festigeek/festigeekAPI
/app/Exceptions/Festigeek/InvalidCredentialsException.php
UTF-8
569
2.515625
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: Iosis * Date: 06.03.2018 * Time: 00:10 */ namespace App\Exceptions\Festigeek; class InvalidCredentialsException extends \Exception { /** * InvalidCredentialsException constructor. */ public function __construct() { } /** * Render the exce...
true
a8de938fd9acd4fe4a33c0ec2b4f2d425a20b64a
PHP
Shipow/concrete5
/web/concrete/core/jobs/generate_sitemap.php
UTF-8
4,483
2.8125
3
[ "MIT" ]
permissive
<? /** * * Responsible for loading the indexed search class and initiating the reindex command. * @package Utilities */ defined('C5_EXECUTE') or die("Access Denied."); class Concrete5_Job_GenerateSitemap extends Job { /** The end-of-line terminator. * @var string */ const EOL = "\n"; /** Returns the job name. ...
true
7ac22f9dbebabd6689add8882261a3c810ace419
PHP
ShayanJavadi/yeller
/app/Auth/Auth.php
UTF-8
879
2.9375
3
[]
no_license
<?php namespace SMA\Auth; use SMA\Models\User; //handles authenticating /signing in/out class Auth { public function user() { if (isset($_SESSION['user'])) { //grab the user return User::find($_SESSION['user']); } } public function isLoggedIn() { //check to see if user is logged in...
true
f00984ddbb0cef8749868f0d7c345b580e28bfa7
PHP
vgab09/dIntra
/app/Persistence/Models/LeaveRequestHistory.php
UTF-8
1,191
2.625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: g09 * Date: 2018.10.28. * Time: 13:37 */ namespace App\Persistence\Models; use Illuminate\Database\Eloquent\Model; /** * Class LeaveRequestHistory * @package App\Persistence\Models * * @property int id_leave_request_history * @property int id_leave_request * @prop...
true
d747f0a11c4aa995217bdf2456db8a6d6595f881
PHP
Franogales/szertegia
/app/Time.php
UTF-8
458
2.59375
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Time extends Model { private static $instance = null; protected $fillable = [ 'user_id','start','start_break','end_break','comment','out' ]; private function __contruct(){ } public static function getInstance...
true
2cbfc2b8f93ac805427920c4fdb37aa76ce37b8c
PHP
webguru0725/tsvt
/app/Models/UserRoleModel.php
UTF-8
1,457
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use CodeIgniter\Model; class UserRoleModel extends Model{ protected $table = 'roleinfo'; protected $allowedFields = ['RoleName', 'RoleType', 'RoleFatherID']; public function getUsersByRoleID($role_id) { $db = \Config\Database::connect(); $builder = $db->tab...
true
7ef73defd6867a0918e11c0c5ba923e9af2c8b2c
PHP
Julien-webdev84/TP_php
/index.php
UTF-8
1,140
2.578125
3
[]
no_license
<?php var_dump($_GET); if(isset($_GET["page"])) { switch($_GET["page"]) { case "page1" : $pageAInclure = "page1.php"; break; case "page2" : $pageAInclure = "page2.php"; break; case "page3" : $pageAInclure = "page3.php"; break; case "vuearticle" : $pageAInclure = "page3...
true
5f16209997258256d50f33e0757ef8380610b084
PHP
LBDistrictScouts/DistrictLeaders
/src/Queue/Task/CompassTask.php
UTF-8
1,298
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Queue\Task; use Queue\Model\QueueException; use Queue\Queue\Task; use Queue\Queue\TaskInterface; /** * Class QueueWelcomeTask * * @package App\Shell\Task * @property \App\Model\Table\DocumentVersionsTable $DocumentVersions */ class CompassTask extends Task implements...
true
b369e16c5b90f940c63d313cf1e611a9ed5cb845
PHP
Stunny/PW_PWBOX_GROUP_19
/src/model/Folder.php
UTF-8
2,034
3.015625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Alex * Date: 4/10/2018 * Time: 6:06 PM */ namespace PWBox\model; class Folder { private $id; private $creador; private $nom; private $path; private $created_at; private $updated_at; public function __construct($id, $creador, $nom, $path, $cre...
true
5dc6630ed1dfe96597dbb15324d4f9ac5ee63a01
PHP
curator-wik/curator
/dist/src/Persistence/SessionFauxPersistence.php
UTF-8
2,262
2.828125
3
[ "MIT" ]
permissive
<?php namespace Curator\Persistence; use Symfony\Component\HttpFoundation\Session\SessionInterface; /** * Class SessionFauxPersistence * This class is registered in the DI container as the persistence handler * only during one-time setup of the application, before a real persistence * mechanism has been e...
true
b37f04b392866baae8c5b4d156cd27f851f440fc
PHP
SaveOverKa/cafweb
/tests/tests.php
UTF-8
3,105
2.625
3
[]
no_license
<?php if (isset($_GET['var'])){ setcookie('var', $_GET['var']); setcookie("answ",""); } $ids = 1; if (isset($_POST['idk'])) { $ids = $_POST['idk']+1; setcookie("answ", $_COOKIE['answ'].":".$_POST['ans']); } if (isset($_COOKIE['Remix'])) { if ($_COOKIE['Remix'] == md5($_SERVER['REMOTE_ADDR'])){ if (...
true
2ec3ee6c187ccb48013cbad1ec56a1035c5b3449
PHP
hipema/php-clase
/unidad4/sesiones/agendaContactos/index.php
UTF-8
5,493
2.96875
3
[]
no_license
<?php /** * @author: manolohidalgo_ * * contactos (array indexado con "contacto") * contacto (array asociativo con ["nombre", "apellidos", "telefono", "email"]) */ session_start(); $titulo = "Ejercicio 1"; $descripcion = "Crear una aplicación para gestionar una agenda de contactos."; $contactosEnAgenda = ...
true
19b29c279197c60036aca01084026e5bbc730924
PHP
kukko/BinTree
/tests/randomString.php
UTF-8
296
3.25
3
[]
no_license
<?php if (!function_exists('randomString')){ function randomString($length=8){ $output=""; $chars='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; for ($i=0; $i<$length; $i++){ $output.=substr($chars, mt_rand(0, strlen($chars)), 1); } return $output; } }
true
4f50cb3ca2a4cdd61f0e39f07c44f98da0c8d7d8
PHP
uncleqiu/design-patterns
/Creational/Singleton/Singleton.php
UTF-8
1,209
3.546875
4
[]
no_license
<?php /** * 单例模式 * 特点:保证一个类只能产生一个对象,对外仅提供一个获取实例的方法,降低资源的消耗 * 缺点:不适用于经常变化的对象,不易扩展 * 应用场景:需要频繁实例化,消耗资源多且使用较频繁的类(如数据库连接对象) */ /** * 单例模式类 */ final class Singleton { /** * 保存实例的属性 */ private static $instance; /** * 构造方法私有化,防止外部new实例化对象 */ private function __construct() {} ...
true
2ba3d907f58c9016ec0224ed56d71caa0e274fbb
PHP
andreicorreaa/Advoprev
/view/exclusaoView.php
UTF-8
420
2.796875
3
[]
no_license
<?php class exclusaoView{ //classe View da pagina login static function respostaExclusao($resposta){ /*Se a variável $resposta estiver neste momento como TRUE, então os dados estão corretos e podemos exibir uma mensagem de sucesso. Caso contrário, irá cair no else, que irá alertar que os dados são inválidos.*...
true
66182f489e4f64cdc8d9aa47a8b2fd5ab0cb4022
PHP
Menes1337/3dcart-api-php-client
/tests/Unit/Primitive/UnsignedIntegerValueObjectTest.php
UTF-8
3,139
2.875
3
[ "MIT" ]
permissive
<?php namespace tests\Unit\Primitive; use tests\Unit\ThreeDCartTestCase; use ThreeDCart\Primitive\UnsignedIntegerValueObject; /** * Class UnsignedIntegerValueObjectTest * * @package tests\Unit\Primitive */ class UnsignedIntegerValueObjectTest extends ThreeDCartTestCase { /** * @param mixed $value *...
true
52e920a3a23c4cb29c56c49a32b13a803695c202
PHP
dmarjos/fbgroup-phpsite
/projects/dmarjos/eframework/Base/Controller/View/Error.php
UTF-8
983
2.75
3
[]
no_license
<?php /** * @ignore * @subpackage Controller */ if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * This is the standard error manager for views<br> * * @author Daniel Marjos <dmarjos@gmail.com> * @version 1.0 */ class Base_Controller_View_Error { /** * Use this method to assign a valu...
true
eb9a54c8b2d1dbd7daefcb43fecc3a8cf496ab66
PHP
josefoons/DES
/Tema8-BaseDeDatos/formularioBase.php
UTF-8
1,602
2.8125
3
[ "MIT" ]
permissive
<html> <body> <?php if ( !isset ( $_GET["boton"] ) ) { ?> <form action="formularioBase.php" method="get"> Introduzca su ID: <br> <input type="number" name="id"> <br> In...
true
2dce643658bf29b0706581b15a17c1923a410023
PHP
DamianKocjan/php-react-forum
/server/api/post/read_one.php
UTF-8
2,258
2.859375
3
[]
no_license
<?php // required headers header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); header("Access-Control-Allow-Methods: GET, OPTIONS"); header("Access-Control-Max-Age: 3600"); header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, authori...
true
2b074290b7ebf56c5b16ed77f5285508e8ff0380
PHP
tekod/AccentPHP
/Request/File.php
UTF-8
11,909
2.71875
3
[ "MIT" ]
permissive
<?php namespace Accent\Request; /** * Part of the AccentPHP project. * * @author Miroslav Ćurčić <office@tekod.com> * @license MIT License * @link http://www.accentphp.com */ /** * Accent\Request\File object represents uploaded file received with HTTP request. * It encapsulates common tasks for h...
true
763d535d476b375c82368a93399bdf3b4b22920d
PHP
burnz/laravel-bundles
/Admin/Elements/KPanel.php
UTF-8
2,198
2.59375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: kevin * Date: 15/6/24 * Time: 23:48 */ namespace Xjtuwangke\Admin\Elements; use \HTML; /** * Class KPanel */ class KPanel { protected $title = ''; protected $content = ''; protected $attributes = []; protected $list_group = []; protected $btn ...
true
46d9f0f64a8d706a5d521555f0cd19e6bc660a66
PHP
princerafid01/31-php-problem
/4greatTheWork IsDone.php
UTF-8
850
3
3
[]
no_license
<?php $stdin = fopen('php://stdin', 'r'); $stdout = fopen('php://stdout', 'w'); $input = readline(); $arr = explode(' ', $input); $finished_hour = $arr[0]; $members = $arr[1]; $work =0; $case=[]; // $input = file_get_contents("php://stdin"); $work=0; function run() { global $members; global $work; $fp ...
true
019da06178130ccc2a31eb403571772585982398
PHP
enricocarraro/wp-fetch-metadata
/tests/phpunit/framework/Unit_Test_Case.php
UTF-8
1,511
2.6875
3
[ "Apache-2.0" ]
permissive
<?php /** * Class Google\WP_Fetch_Metadata\Tests\PHPUnit\Framework\Unit_Test_Case * * @package Google\WP_Fetch_Metadata * @copyright 2020 Google LLC * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * @link https://wordpress.org/plugins/fetch-metadata */ namespace Google\WP_Fetc...
true
cc90b4282bbf8d0a91be66728938aeb48f2563f1
PHP
tyronsef1/Village88-Login-Registration
/application/models/student_model.php
UTF-8
679
2.78125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Student_model extends CI_Model { function get_student_by_email($email) { $query = "SELECT * FROM users WHERE email = ?"; $values = array($email); return $this->db->query($query, $values)->row_array(); } functi...
true
98e3a2c4383e58b8e11a10df705030c3aae1c841
PHP
diocomm/phpbrainstorm
/Task1_28.php
UTF-8
841
3.4375
3
[]
no_license
// //Task1_28 Преобразовать числа заданной последовательности натуральных чисел n0 ,n1,...,nm так, чтобы цифры каждого числа образовывали максимально возможные числа. $limit1 = 1; $limit2 = 1000; for($j = $limit1; $j < $limit2; $j++) { $arr = array(); $a = $j; while ($a != 0){ $dig = $a % 10; ...
true
ee7fa63aa2161cfd93ef35bc1a31be961296936a
PHP
TeamRuhr/pt_extbase
/Classes/Tree/ArrayTreeWriter.php
UTF-8
2,814
2.71875
3
[]
no_license
<?php /*************************************************************** * Copyright notice * * (c) 2010 Daniel Lienert <daniel@lienert.cc>, Michael Knoll <mimi@kaktusteam.de> * All rights reserved * * * This script is part of the TYPO3 project. The TYPO3 project is * free software; you can redistribute it and/or mo...
true
c7a1c8e5bb6863d69bb65cd3a306cbacec75fdf7
PHP
brad/bid4it
/core/Dataface/dhtmlxGrid/activegrid.php
UTF-8
5,462
2.78125
3
[]
no_license
<?php import('Dataface/dhtmlxGrid/grid.php'); /** * This class is an Active grid, meaning that it is bound to a data-store and * exists across multiple requests. * <p>A grid is assigned an ID which is used to automatically reload it each time * it is loaded. The grid data is stored in session data, until a cal...
true
9953d75f1a7ff9367302eec120439ea1388a64e5
PHP
JordanBarwell/20-3110-AB-CourseWork
/ab_coursework/app/src/FileSessionWrapper.php
UTF-8
2,155
3.21875
3
[]
no_license
<?php namespace ABCoursework; /** * FileSessionWrapper: A wrapper for session file CRUD function, including encryption/decryption for security. * * @package ABCoursework * @author Team AB (Jared) */ class FileSessionWrapper implements SessionWrapperInterface { /** * @var LibSodiumWrapper LibSodiumWrappe...
true
bad585895246f334118d5f8b7290f3f2dc786a5a
PHP
poojakarthik/my-work
/cli/billing/write_off_accounts.php
UTF-8
1,252
2.640625
3
[]
no_license
<?php //----------------------------------------------------------------------------// // CONFIG //----------------------------------------------------------------------------// $strPath = "/home/richdavis/Desktop/writeoff_20070921.csv"; //----------------------------------------------------------------------------/...
true
393c40f994c62f38b1037070067383bc1b7e6211
PHP
joopjib/allure-phpunit-example
/src/Yandex/Allure/Adapter/Example/StackTest.php
UTF-8
1,315
2.765625
3
[]
no_license
<?php namespace Yandex\Allure\Adapter\Example; use PHPUnit_Framework_TestCase; use Yandex\Allure\Adapter\Annotation\Features; use Yandex\Allure\Adapter\Annotation\Stories; use Yandex\Allure\Adapter\Annotation\Title; /** * @package Yandex\Allure\Adapter\Example * @Title("Stack Test") */ class StackTest extends PHP...
true
661e159ec49c8367f89b8f8b98dfd986fe9883b3
PHP
Jeiti/test
/OOP/patterns/observer/Observer1.php
UTF-8
111
3.015625
3
[]
no_license
<?php class Observer1 implements IObserver{ public function update(){ echo "Я Observer1"; } }
true
943b6cc884468939aa7db67a85bf58087a64ddc6
PHP
masturiano/EPS
/SYSTEM/GPRISM/NAING/20170405_MACHINE_DOWNTIME_EMAIL_REGISTRATION/machine_downtime_email_registration/machine_downtime_email_registration/popup.php
UTF-8
1,029
2.6875
3
[]
no_license
<?php include('db_conn.php'); $select_info = "select * from fullname"; // select table info $query_exec = mysqli_query($conn,$select_info); // execute query ?> <!DOCTYPE html> <html> <head> <script> function sendDataToParent(group,fname){ window.close(); window.opener.document.getElementBy...
true
ad4f3d0962701d33d57ee8c85c07395f4dfe48a8
PHP
mapkyca/old-misc
/tests/php/MrClay/AutoP/form.php
UTF-8
2,234
2.859375
3
[]
no_license
<?php ini_set('display_errors', 1); $content = isset($_POST['content']) ? $_POST['content'] : ''; $content = str_replace(array("\r\n", "\r"), "\n", $content); if ($content !== '') { require_once dirname(__FILE__) . '/../../../../php/MrClay/AutoP/WordPress.php'; require_once dirname(__FILE__) . '/../../../../p...
true
66e94d5757a205f497a567fe7a9f648c2181c9c6
PHP
nvcVincent/CoinCod-1
/sql_function.php
UTF-8
21,884
2.59375
3
[]
no_license
<?php function codeClean($var) { $res = mysql_real_escape_string((get_magic_quotes_gpc())? stripslashes($var): $var); return $res; } function verifyLogin($email,$pass, $auth) { if($auth == 0) { $rule_auth = ""; } else { $rule_auth = " AND Category='".$auth."'"; } $hash_pass = md5($pass); $sql = mysql_query(...
true
858f2706d5a9ef35b4eeda25661a22d2ce52c5fa
PHP
jinligen/samsui
/test/Samsui/Provider/GenderTest.php
UTF-8
1,411
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Samsui\Provider; use \PHPUnit_Framework_TestCase; use Samsui\Generator\Generator; class GenderTest extends PHPUnit_Framework_TestCase { protected $generator; protected function setUp() { $this->generator = new Generator(); $this->generator->registerProvider('math', new Mat...
true
4ecb1290ab262e9840cd6bfa57fb4fae6b8fb457
PHP
xgch/act20
/parte3/resultado.php
UTF-8
911
3.015625
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <?php include 'dbNBA.php'; $nba = new dbNBA(); if ((isset($_POST['local'])) || (isset($_POST['visitante'])) || (isset($_POST['temporada']))) { ?> <table border=1> <tr> <th> EQUIPO LOCAL </th> <th> PUNTOS LOCAL <...
true
996a2dc875ec4e261c15c51a4aa7d7496c2a9650
PHP
Heavyshield/SDI31
/1_music/controller/class.SqueezeCLI.php
UTF-8
2,762
2.96875
3
[]
no_license
<?php final class SqueezeCLI { public $buffer; public $reply; private $cli; function __construct($message) { //$this->setBuffer(); $this->socket(); $this->connect(); $this->sendCLI($message); //$this->receiveCLI(); //$this->conversion(); //$this->disconnect(); } private function s...
true
8ad3da233e5753bd13a87b7b5d91032d054c7015
PHP
daniyal2959/management
/src/Classes/Factory.php
UTF-8
719
2.53125
3
[]
no_license
<?php namespace IAMdaniyal\Management\Classes; use IAMdaniyal\Management\Contracts\IClass; use Illuminate\Support\Facades\File; use Illuminate\Support\Str; class Factory implements IClass { public function generate($name, $data = null) { $factoryStub = file_get_contents(__DIR__ . DIRECTORY_SEPARATO...
true
ae93194d88b733abbfec6d8f59ac1a8e4123fca1
PHP
intellisr/bookShelf
/chats/chat.php
UTF-8
916
2.65625
3
[]
no_license
<?php include 'db.php'; $query = "SELECT * FROM chat ORDER BY id "; $run = $conn->query($query); while ($row = $run->fetch_array()): ?> <?php if(!isset($_SESSION)) { session_start(); } $myid = $_SESSION["userName"]; ?> <div id="chat_data"> <?php if($row['name'] != $myid){?> <div s...
true
886efc03ff9e9a9b8edc2b3ac0d66067a2ae4a68
PHP
AskaoAhmedSaad/user-management-system-api
/app/migrations/m181026_190526_create_users_table.php
UTF-8
646
2.53125
3
[]
no_license
<?php use yii\db\Migration; /** * Handles the creation of table `users`. */ class m181026_190526_create_users_table extends Migration { /** * {@inheritdoc} */ public function safeUp() { $this->createTable('users', [ 'id' => 'INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY', ...
true
69ad19ec94dec9fa30feba8b8fe0899933fd90ce
PHP
artmarkov/fdoc_school
/classes/forms/core/Form.php
UTF-8
31,571
2.5625
3
[]
no_license
<?php namespace main\forms\core; /** * Класс формы. * * @package form */ use main\forms\auth\Base as AuthBase; use main\forms\datasource\DatasourceInterface; class Form { /** * преобразует psr0 имя класса контрола в * @param $class string * @param string $prefix * @param string $namespac...
true
75574e20e425429cf28e778d914bddcba9741972
PHP
iDucation/iDucation
/protected/models/TClass.php
UTF-8
3,756
2.78125
3
[]
no_license
<?php /** * This is the model class for table "class". * * The followings are the available columns in table 'class': * @property integer $class_id * @property integer $teacher_id * @property string $class_name * @property string $description * @property string $class_code * @property string $created_date * ...
true
35075c1b8036610e636e539b08bf1d1ed4364179
PHP
chendaye/Lesson
/dependency_injection/Di/three/Test.php
UTF-8
889
3.171875
3
[]
no_license
<?php /** * 这就叫依赖注入 * * 依赖的创建和绑定移到 类的外面来 * 程序更容易维护,降低程序代码的耦合度 */ $a = new \Di\three\A(); $a->setB(\Di\three\Factory::getB()); $a->doSomething(); /** * 上面的方法比较麻烦 先要实例 再注入 * 于是又想出 直接用工厂方法 返回一个注入好的 A 的实例 */ $a = \Di\three\Factory::getA(); $a->doSomething(); /** * 传统的方法 要调用 A 的 doSomething 方法 从A 开始 实例化 B ...
true
ee2b1f5700975605276fd47f2d349292cc61ee93
PHP
nyann123/spachat
/app/Http/Controllers/Ajax/UserAuth.php
UTF-8
871
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers\Ajax; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class UserAuth extends Controller { public function __invoke(Request $request) { // 必須パラメータが登録されているか確認 $check_param = ['id','name','taken']; $exist = true; foreach ($c...
true
e62d60142e4cf2ae8a63795255e4b086d444b2e7
PHP
Furious-Few/2020-php-game
/backend/backend.php
UTF-8
3,221
2.6875
3
[ "MIT" ]
permissive
<?php session_start(); require 'connection.php'; if ( $_POST['formType'] == 'register' ){ // je komt vanuit het register form $Username = $_POST['Username']; $Password = $_POST['Password']; $Email = $_POST['Email']; $hashedPassword = password_hash($Password, PASSWORD_DEFAULT);...
true
c4910c5e121677a3f2f145f4ef6513ae8db2268c
PHP
PrakerinSMKN4/DigitalMarketingService
/app/Http/Controllers/ResetPassController.php
UTF-8
1,621
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; session_start(); use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Mail; use Exception; use App\OtpCode; class ResetPassController extends Controller { public function sendOTP(Request $request) { try{ $this->ran...
true
750b481ed8ac6e0b5536d31f0d3e1fce4e78af98
PHP
TeamInfinityCSUS/Bridge
/php/stReg.php
UTF-8
4,743
2.921875
3
[]
no_license
<?php //Define variables and set to empty values $outgoing = []; //will hold any error messages $uName = $_POST['studentAcct'][0]; $password = $_POST['studentAcct'][1]; $cPassword = $_POST['studentAcct'][2]; $email = $_POST['studentAcct'][3]; $cEmail = $_POST['studentAcct'][4]; $fName = $_POST['studentAcct'][5]; $lNam...
true
63f4683f876e4a4b4a0556c7cf11fc5664e26644
PHP
xiangnanT1/T1
/extend/org/ZhangjunSms.php
UTF-8
1,054
2.5625
3
[]
no_license
<?php namespace org; use library\tools\Http; //掌骏传媒 class ZhangjunSms { /* 发送短信 $time=date('YmdHis',time());//时间戳,系统当前时间字符串,年月日时分秒 $md5=md5('jmwzp'.'123456'.$time);//MD5加密,账号+密码+时间戳 $str1='【天宇互动】祝您生活愉快';//短信内容 $contented = iconv("gb2312","utf-8//IGNORE",$str1);//将短信内容装换成 $result=sendsms('11',$time,$md5,'13611452175...
true
ad308329bd89b5a95db92e845184c9085a4bbf22
PHP
bpolaszek/bentools-etl
/src/Extractor/JsonExtractor.php
UTF-8
2,807
2.96875
3
[ "MIT" ]
permissive
<?php namespace BenTools\ETL\Extractor; use BenTools\ETL\Etl; use BenTools\ETL\Exception\UnexpectedTypeException; use Safe\Exceptions\JsonException; final class JsonExtractor implements ExtractorInterface { public const EXTRACT_AUTO = 0; public const EXTRACT_FROM_STRING = 1; public const EXTRACT_FROM_FIL...
true
c7ab585cf78ade4129eea37cc4aac3a797f71190
PHP
nicolas-anaxago/EntityChangeWatchBundle
/Tests/Fixtures/Entity/NotWatchedEntity.php
UTF-8
1,056
2.546875
3
[ "MIT" ]
permissive
<?php namespace Actiane\EntityChangeWatchBundle\Tests\Fixtures\Entity; use Doctrine\ORM\Mapping as ORM; /** * Class NotWatchedEntity * @package Actiane\EntityChangeWatchBundle\Tests\Fixtures\Entity * @ORM\Entity */ class NotWatchedEntity { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(typ...
true
e067ec28fa94ff459034e1a98dd46b3745fb5bd8
PHP
bspanyik/area51
/src/Validator/CreateValidator.php
UTF-8
972
3.109375
3
[]
no_license
<?php namespace Area51\Validator; use Area51\Request\CreateRequest; class CreateValidator implements ValidatorInterface { /** * @param CreateRequest $request * @return array */ public function validate($request): array { $violations = []; if (!$this->validateRequest($reque...
true
a2c9cd434495ad1e4073199957eb01970e449417
PHP
sqills/symfony-console
/src/ProgressWriter.php
UTF-8
1,748
2.953125
3
[ "MIT" ]
permissive
<?php namespace Port\SymfonyConsole; use Port\Reader\CountableReader; use Port\Writer; use Symfony\Component\Console\Helper\ProgressBar; use Symfony\Component\Console\Output\OutputInterface; /** * Writes output to the Symfony2 console * * @author David de Boer <david@ddeboer.nl> */ class ProgressWriter implement...
true
5460c6e9b8880b4ed6c632c889bd40b88942a0d5
PHP
astrojebus/HackingLab
/WEB SECURITY/comments.php
UTF-8
4,376
2.859375
3
[]
no_license
<?php $pageStart = '<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>'; $pageStart .= '<script type="text/javascript"> function checkValid(a){ if( /[^a-zA-Z0-9]/.test( (a.value)) ) { $("#helpBlock").text("Error, invalid characters det...
true
1292e01a037e78522952fc1d40c3c933fbb35f5e
PHP
hackzilla/bing-api
/PHP/bingads/BingAds/CampaignManagement/GetPlacementDetailsForUrlsRequest.php
UTF-8
435
2.609375
3
[ "Apache-2.0" ]
permissive
<?php namespace BingAds\CampaignManagement; /** * Retrieves placement information for the specified URLs. * @link http://msdn.microsoft.com/en-us/library/dn277530(v=msads.90).aspx GetPlacementDetailsForUrlsRequest Request Object */ final class GetPlacementDetailsForUrlsRequest { /** * An array of URLs fro...
true
d025fb0fcf92f1a8ea885381c14c9194a3cd037b
PHP
cxty/auth.dbowner.com
/include/ext/partner/common/CommonOAuth2.php
UTF-8
2,210
2.6875
3
[]
no_license
<?php /** * OAuth 1.0 处理类 * * @author Administrator * */ class CommonOAuth2{ public $code = 'code'; //默认的验证方式 function __construct($callback=NULL,$ApiInfo=NULL,$fieldArr,$partner=null){ $this->callback = strtolower($callback); $this->api_key = $ApiInfo['keys']['api_key']; $this->api_se...
true
2173b9d309b8c57316942e477c58c014d80c0e8c
PHP
irarup/wpu-php-dasar
/pertemuan-2/index.php
UTF-8
695
3.390625
3
[]
no_license
<h3>Syntax Dasar PHP</h3> <!-- Tag PHP seperti ini <?php ?> --> <?php // Code komentar /* Ini Comentar lebih dari satu baris */ // UNTUK MENCETAK KE BROWSER /* echo "string"; print "string"; print_r(array/string); var_dump(array); */ echo "Ira Rupaida <br>"; print "Ira Rupaida <br>"; print...
true
adddcdb51a5aad0b35fa68e1e0800bc9ea0a010a
PHP
rajasanthakumar/UTEP-Alumni
/list.php
UTF-8
5,585
2.578125
3
[]
no_license
<?php //session start session_start(); ?> <html> <head> <title> CS UTEP ALUMNI</title> <style> #nav { line-height:30px; background-color:#003366; color:#ffffff; text-align:center; height:100%; width:15%; ...
true
1bb3b13336f42be0f08b44196f1e2076cc514f0a
PHP
curtishowell/mcg
/team.php
UTF-8
5,678
2.53125
3
[]
no_license
<?php include("common.php"); head('Team', 2); ?> <div id="content"> <?php $teamXML = new DOMDocument(); $status = $teamXML->load( 'team.xml' ); $people = $teamXML->getElementsByTagName( "person" ); $features = array(); $numPeople = $people->length; for($i = 1; $i <= $numPeople; $i++)...
true
1ef2caa41add526b36f46c0e6745675d09250b3c
PHP
athomepdll/smart-pdll
/src/Entity/ImportModel.php
UTF-8
3,259
2.578125
3
[]
no_license
<?php namespace App\Entity; use App\Entity\Behavior\TimestampableBehavior; use AthomeSolution\ImportBundle\Entity\Config; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; /** * Class ImportModel * @package App\Entity */ class ImportModel extends Entity { use Timest...
true
4969f4b529ccdd886c48981b374357c7190684b2
PHP
CSIYI/restaurant_homepage
/soda.php
UTF-8
1,495
2.59375
3
[]
no_license
<?php if( isset($_GET['command'])){ RecentViews("Soda"); } function RecentViews($id) { if(isset($_COOKIE['views'])) { $datastr = $_COOKIE['views']; $ids = explode('|',$datastr); if(count($ids )< 5){ if(!in_array($id,$ids)){ $datastr .= '|'....
true
144e602e8dd0cb23910808c73da23cba584bb07d
PHP
huijay12/college-database-project_book-renting-system
/login_manager.php
UTF-8
2,358
2.828125
3
[]
no_license
<?php include("dbconnect.php"); $error_msg = ""; if(!isset($_COOKIE['manager_name'])){ if(isset($_POST['submit'])){ //Grab the user-entered log-in data $managername = mysqli_real_escape_string($dbc, trim($_POST['managername'])); $password = mysqli_real_escape_string($dbc, trim($_POST['pass...
true
335623ad4b87f3eaa417da16465bfce26f4994bb
PHP
tsmithe2/INF653-Get-Parameter-Assignment
/index.php
UTF-8
1,614
3.359375
3
[]
no_license
<?php echo "<!DOCTYPE html> <html lang = 'en'> <head> <meta charset = 'UTF-8'> <meta name = 'viewport' content = 'width-device-width, initial-scale=1.0'> <link rel = 'stylesheet' href = 'css/main.css'> <title>Get parameter assignment</title> </head> <body>"; if (...
true
d527935a03e86c2961feaf71f2580fea12895d5c
PHP
YuriGizra/generate-table
/Database.php
UTF-8
674
3.328125
3
[]
no_license
<?php class Database { protected static $db; private function __construct($settings) { try { self::$db = new PDO( 'mysql:host=' . $settings['host'] . ';dbname='. $settings['db_name'], $settings['user'], $settings['pass'], array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAME...
true
9a2bd4bb9eb3533ffeab00a6ad260b19f9addbd2
PHP
BGCX261/zotop-svn-to-git
/trunk/alpha/system/libraries/zotop/ui/block.php
UTF-8
958
2.734375
3
[]
no_license
<?php class BaseBlock extends Base { public static function header($header=array()) { if( !is_array($header) ) { $header = array('title'=>$header); } $html[] = ''; $html[] = '<div class="block '.$header['class'].'"'.(isset($header['id']) ? ' id="'.$header['id'].'"':'').'>'; if(isset...
true
7e6cb05fe5a6d0fe81a1949181f56e90f3e26cbb
PHP
superfaktura/SmsManager
/src/Exceptions/ServerException.php
UTF-8
1,178
2.65625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: SF1 * Date: 27.03.2017 * Time: 13:01 */ namespace Po1nt\SmsManager\Exceptions; use Exception; class ServerException extends \Exception { private $errors = [ 101 => 'Neexistující data požadavku (chybí XMLDATA parametr u XML API)', 102 => 'Zaslaná data nejsou ve správ...
true
a20580763c77d84ebc6a45aa9908ba0d97e5a56d
PHP
massimovirno/covi
/View/VGestionelocation.php
UTF-8
2,209
2.75
3
[]
no_license
<?php /** * File VHome.php contenente la classe VHome * * @package view */ /** * Classe VHome, estende la classe view del package System e gestisce la visualizzazione e formattazione del sito, inoltre imposta i principali contenuti della pagina, suddivisi in contenuti principali (main_content) e contenuti della ba...
true
456ab0bab6d317c80e32204fd33c6b95762bd4e8
PHP
zhangsiyan/handao
/src/webapi/app/models/HdUserAutoReportSummary.php
UTF-8
1,554
2.5625
3
[]
no_license
<?php class HdUserAutoReportSummary extends \Phalcon\Mvc\Model { /** * * @var integer */ public $id; /** * * @var integer */ public $order_id; /** * * @var integer */ public $report_id; /** * * @var string */ public $tire_b...
true
245a2ff293eb864ca5dd15ff9059ab658519a403
PHP
abcreche/print
/src/Traits/HasWritings.php
UTF-8
2,093
3.15625
3
[ "MIT" ]
permissive
<?php namespace ABCreche\Printer\Traits; use Illuminate\Support\Collection; use ABCreche\Printer\Models\Writing; trait HasWritings { /** * An array of texts which needs to be printed. */ protected array $writings = []; /** * Adds some text in the writings collection */ public fun...
true
1bee70c9ce7a7093cccb97c9d4f4afcaf508dbf0
PHP
amneale/dns-updater
/src/Adapter/CloudFlareAdapter.php
UTF-8
2,612
2.84375
3
[ "MIT" ]
permissive
<?php namespace DnsUpdater\Adapter; use Cloudflare\Zone; use Cloudflare\Zone\Dns; use DnsUpdater\Value\Record; final class CloudFlareAdapter implements Adapter { const NAME = 'cloudflare'; const STATUS_ACTIVE = 'active'; /** * @var Zone */ private $zone; /** * @var Dns */ ...
true
1ab5580e8d044b8dc319405a1883cfc677d93d7b
PHP
mastashake08/laravel-spark-archive
/app/Events/Team/Deleting.php
UTF-8
406
2.5625
3
[ "MIT" ]
permissive
<?php namespace Laravel\Spark\Events\Team; use Illuminate\Queue\SerializesModels; class Deleting { use SerializesModels; /** * The team being deleted. * * @var mixed */ public $team; /** * Create a new event instance. * * @param mixed $team * @return void ...
true
e0e81fec73e958b4e0ede225e2b805f7aa7b4d3b
PHP
ruokki/PenguinPossess
/application/models/Category_model.php
UTF-8
963
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* * 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. */ /** * Description of category_model * * @author Ruokki */ c...
true
fee4587bd09051f5c5003fd3c9a4c990a35b16d8
PHP
ngotrihoa/php44
/Day11_PHP_Operator_Condition_Loop/Bai_tap_ve_nha/Danh_sach_nop_bai/php44_VietKhanh_day11/btvn/btvn3.php
UTF-8
168
2.953125
3
[]
no_license
<?php $a=6; echo"duong kinh cua hinh tron =$a"; echo "<br>"; $A=($a*$a)/4*pi(); $C=$a*pi(); echo "chu vi hinh tron =$C"; echo "<br>"; echo "dien tich hinh tron =$A"; ?>
true
639dc11f1a7ced65b2cf156788621fe0c176a77f
PHP
GabrielNSilva/BatDerivadas
/array2.php
UTF-8
562
3.609375
4
[]
no_license
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <?php echo (session_start()) ? "true" : "false"; $fun = array(); echo count($fun); $fun[] = 2; echo count($fun); $fun[count($fun)] = 8; $fun[count($fun)] = [2,4]; print_r($fun); echo "<br><br>"; print_r($_SESSION);echo "<br>"; //$...
true
52dfcdf3097012834b161eb5ea58c45c52bb5a55
PHP
Devictorinos/PHP_LEARNING
/images_work/rotate/rotate.php
UTF-8
877
2.90625
3
[]
no_license
<?php // $filename = '1.jpg'; // $rotang = 180; // Rotation angle // $source = imagecreatefromjpeg($filename) or die('Error opening file '.$filename); // imagealphablending($source, false); // imagesavealpha($source, true); // $rotation = imagerotate($source, $rotang, imageColorAllocateAlpha($s...
true
91d6af6744ae9ce402b4f33521faf6196fb1284e
PHP
JonathanDorado/SGE
/application/models/Event_projections_model.php
UTF-8
1,159
2.6875
3
[]
no_license
<?php class Event_projections_model extends CI_Model { public function __construct() { parent::__construct(); $this->load->database(); } public function getProjectionsByEvent($event_id) { $sql = "SELECT ep.event_projection_id, ep.event_id, ...
true
b7a6f114f3ed9a6e74de13635a778239ee95a9af
PHP
Akhadjon-Bokijanov/ondoc-api-v1
/database/migrations/2021_01_23_064741_create_contract_products_table.php
UTF-8
1,051
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateContractProductsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('contra...
true
f4bb2cf756c9141ba55ba27d4a73eced5627716d
PHP
Md-Masud/phpsyntex
/constant.php
UTF-8
94
2.640625
3
[]
no_license
<?php define("VALUE", "I am student");//constant function name() { echo VALUE; } name(); ?>
true
5ab5c394c355369475db62036ed160b130665a50
PHP
JamesHight/php-code-examples
/Real-Time Metrics/B72/Metrics/Processsor.php
UTF-8
2,820
2.859375
3
[]
no_license
<?php /** * Collect values to write directly to the Carbon server proxy **/ class B72_Metrics_Processsor { protected $meters = array(); protected $counters = array(); protected $histograms = array(); protected $timers = array(); protected $metrics; protected $time; public function __construct() { $thi...
true
0ffe3a28875a7e778372443ba1c17ab07ef05a2f
PHP
benjamindulau/poc-cqrs
/src/Acme/UserBundle/Domain/Model/User/UserRepositoryInterface.php
UTF-8
372
2.796875
3
[]
no_license
<?php namespace Acme\UserBundle\Domain\Model\User; interface UserRepositoryInterface { /** * Finds an User using given Id * * @param mixed $id * @return User or null */ function find($id); /** * Saves given User * * @param User $user * @ret...
true
6ae69255f843c3996315cfe7061fe66e4ac998d3
PHP
agsystemspl/trello-rest-client
/src/Client.php
UTF-8
583
2.65625
3
[ "MIT" ]
permissive
<?php namespace AGSystems\Trello\REST; class Client extends \AGSystems\REST\AbstractClient { protected $accessToken; protected $appId; public function __construct(array $args) { $this->accessToken = $args['api_token']; $this->appId = $args['app_id']; } protected function clie...
true
30ecaf9a2efb9c6990e2f044b85627c5313324b4
PHP
UP680879/Database
/db_connect.php
UTF-8
775
2.546875
3
[]
no_license
<?php /* Here we are going to keep recored of the database connection_aborted like the use, host, server and password */ $conn_error = 'Not connected'; // this is the message error $db_name = "INSE"; // this is the database name $un = 'root1'; // this is the username $pw = 'root'; // this is the pa...
true
bc573310e2f51d90c552d77c0b099113a7e2a2a8
PHP
cyrilledelabre/cyrilledelabre
/app/Modeles/Table/CategorieTable.php
UTF-8
956
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: cyrilledelabre * Date: 29/01/15 * Time: 21:16 */ namespace App\Modeles\Table; use Core\Table\Table; class CategorieTable extends Table{ public function getCategoriesByType($type, $from) { return $this->query( " SELECT categories.t...
true
e0390c4d9b70aacb41ae3273cd19d173851ee65b
PHP
codex-team/codex.editor.sandbox
/www/system/autoload.php
UTF-8
373
2.59375
3
[ "MIT" ]
permissive
<?php spl_autoload_register(function ($classname) { $pathParts = explode('\\', $classname); $pathToFile = __DIR__ . '/'; for ($i = 0; $i < count($pathParts); $i++) { $pathToFile .= ($i + 1 == count($pathParts)) ? $pathParts[$i] . '.php' : strtolower($pathParts[$i]) . '/'; } if (file_exists($...
true
b45dd8ada137efa42c46358e205080a62c76b22c
PHP
name2long/third_pay
/project/20180719银利宝/document/pay-doc/php/php/rsa.php
UTF-8
522
3.046875
3
[]
no_license
<?php class rsa { /** * 验证签名 * @param string $data 数据 * @param string $sign 签名 * @param string $publicKey 公钥 * @return bool */ public static function verifySign($data = '', $sign = '', $publicKey = '') { if (!is_string($sign) || !is_string($sign)) { return...
true
8be6524fea3465189708fe7a7f646b91b86e4236
PHP
EromangaSenpai/shopPhp
/func/func_SignUp.php
UTF-8
962
3.15625
3
[]
no_license
<?php //Little check function test_input($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } //Get data info about already existed users function GetData($path) { static $final_str = ""; $file = fopen($path, 'r') or die("Не удалось открыть...
true
c1389d47e0039b7fe78f9f6887223b078426c928
PHP
proskurindima/neuro
/img/main.php
UTF-8
416
2.640625
3
[]
no_license
<?php if(isset($_POST) && count($_POST) > 0){ fReturn($_POST); }else{ fReturn([], false); } function fReturn($data, $type = true){ $message = ''; if($type){ $message = 'Данные успешно получены'; }else{ $message = 'Получение данных не произошло'; } exit(json_encode([ 'TYPE'=>$type, 'M...
true
bb6b4c6943b06b742253f8dc70780c9d3de20dfe
PHP
fortSQ/test
/src/Player.php
UTF-8
2,327
3.453125
3
[]
no_license
<?php namespace Fool; use Fool\Condition\CardCondition; class Player { /** @var Game Игра */ private $game; /** @var int Команда */ private $command; /** @var Card[] Карты на руках */ private $cardList = []; private function __construct(Game $game, $command) { $this->game =...
true