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
2321667e263025cd2fd992739d5565679522cfa3
PHP
Ben2416/fruplepenny
/portal/classes/Register.php
UTF-8
5,281
2.875
3
[]
no_license
<?php class Register{ private $db_connection = null; public $errors = array(); public $messages = array(); public function __construct(){ if(isset($_POST["register"])){ $this->doRegister(); } } private function doRegister(){ if(empty($_POST['first_name'])){ $this->errors[] = "Empty First Name"; ...
true
d4110dfd712fa3435452482ef9502f048f4d0a68
PHP
EventSaucePHP/EventSauce
/src/DotSeparatedSnakeCaseInflector.php
UTF-8
671
2.953125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace EventSauce\EventSourcing; use function get_class; class DotSeparatedSnakeCaseInflector implements ClassNameInflector { public function classNameToType(string $className): string { return str_replace('\\_', '.', strtolower((string) preg_replace('/(.)(?=[A-Z])/...
true
742c8bec532142c3a6883d92eaf77abf2409c491
PHP
julianseymour/php-web-application-framework
/src/element/attributes/CharacterSetAttributeTrait.php
UTF-8
520
2.9375
3
[]
no_license
<?php namespace JulianSeymour\PHPWebApplicationFramework\element\attributes; trait CharacterSetAttributeTrait { public function hasCharacterSetAttribute(): bool { return $this->hasAttribute("charset"); } public function getCharacterSetAttribute() { return $this->getAttribute("charset"); } public function...
true
78f8293fa4a3cde362e7da2aa49d1363cdad3a04
PHP
rddrdhd/VIS_TheGathering
/Models/Deck.php
UTF-8
504
2.890625
3
[]
no_license
<?php // PATTERN DTO - všechny modely class Deck { var $idDeck; var $name; var $createdAt; var $deletedAt; var $rights; var $owner; var $cards; public static function defaultDeck() { $th = new self(); $th->name = "D".microtime(); $th->createdAt = time(); ...
true
13d8fcdfc52d6c57499a3ff9616ceda67d635483
PHP
thinkermsandi/trasstbot
/ChatbotAI.php
UTF-8
17,390
3.28125
3
[]
no_license
<?php class ChatbotAI { protected $config; /** * ChatbotAI constructor. * @param $config */ public function __construct($config) { $this->config = $config; } /** * Get the answer to the user's message * @param $message * @return string */ public ...
true
f60610a0cc79d788505ac34885deb5b34fdb8d55
PHP
CarlosFerdeval/Ceramics-Company-webpages--PHP-and-SQL
/loginDetails.php
UTF-8
2,760
2.9375
3
[]
no_license
<!DOCTYPE html> <?php $errMessageUserName = "required field"; //this needs to be outside of the if statement otherwise //this will not be recognised in the form tags $errMessageUserPassword = "required field"; $userName = ""; $userpassword = ""; $loginErr = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { //User has pre...
true
22ba018e41292973fbd1b718c2f7137477a9bfdd
PHP
v0ff4k/shop
/src/Store/ShopBundle/Entity/Orders.php
UTF-8
5,034
2.75
3
[]
no_license
<?php // src/ShopBundle/Entity/Orders.php namespace Store\ShopBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Entity * @ORM\Table(name="orders") */ class Orders { //define constans for sold state const SOLD_PREPARED = false; const SOLD_...
true
47df553d5eeb94e44640ab199cf47c256f6e6b85
PHP
samdking/SaMVC
/base.php
UTF-8
609
2.734375
3
[]
no_license
<?php class Base { function find_file($filename, $required = true) { //$file_locations = Hooks::apply('file_locations', array($filename)); $file_locations = array($filename); // check system folder first foreach($file_locations as $file) { $file .= '.php'; if (file_exists(APP_PATH . $file)) ...
true
9139c8f400d8d5d9edfc41d027c46926c9b03cf4
PHP
linmingeng/testdindin
/web/controllers/uploader.php
UTF-8
9,183
2.578125
3
[]
no_license
<?php require_once BASE_PATH.'/libraries/upload.php'; require_once BASE_PATH.'/libraries/image.php'; require_once BASE_PATH.'/modules/user_module.php'; /** * 上传文件 * @author funfly * @email echo@funfly.cn * @copyright funREST * @version 1.0.0 * @since 2015-07-14 */ class uploader { ...
true
9a520868e25f6808a1e61b45055d1cbd3f2d5fdb
PHP
KumikoDoke/tech-aca5_KumikoDoke
/board2/login.php
UTF-8
2,597
2.859375
3
[]
no_license
<?php require_once'./board2.php'; $db = getDb(); session_start(); $status = "none"; if (isset($_SESSION["id"])) $status = "logged_in"; else if (!empty($_POST["id"])&& !empty($_POST["name"])&& !empty($_POST["password"])) { $stt = $db->prepare("SELECT * FROM member_table "); $stt->bindValue(':id',$_POST["...
true
6bca69006e4d1b2bdaa171189ce264e16f1b8fcd
PHP
Artgul/pon-portal
/app/Http/Controllers/Auth/ResetPasswordController.php
UTF-8
3,009
2.671875
3
[]
no_license
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Illuminate\Auth\Events\PasswordReset; use Illuminate\Foundation\Auth\User; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Str; use Illuminate\Support\Facades\Validator; use Symfony\Component\HttpFoundation\Request; class...
true
ce3fd35120d21c10013ca903e2f6cce159ab82a5
PHP
AlexABallWebDev/geologyinstructorproject
/geology-instructor-contacts-website/public_html/includes/export-table-to-csv.php
UTF-8
3,792
3.171875
3
[]
no_license
<?php //get database connection named $geologyDBConnection require "../secure-includes/db-connection.php"; $sql = 'SELECT * FROM geology_instructor_contacts ORDER BY last_name'; if ($result = @mysqli_query($geologyDBConnection, $sql)) { //open or create the file to be exported to. The previous file, if it exists, /...
true
de6d8098a1f747869bb9ef8dbc2361e7f18fd063
PHP
as-ad/codeigniter-ticketing-system
/application/controllers/Dashboard.php
UTF-8
4,150
2.53125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Dashboard extends CI_Controller { function __construct() { parent::__construct(); // check session user if(! $this->session->has_userdata("user")){ redirect("user/login"); } if( $this->session->userdata("user")["user_type"] !...
true
c0da890b08c323a5ea3395d7441ad9bdf2bcf618
PHP
compizberyl/tools
/database-comparsion.php
UTF-8
16,701
2.671875
3
[]
no_license
<?php if(!isset($_REQUEST['host1'])) $_REQUEST['host1'] = 'XX.XX.XX.XX'; if(!isset($_REQUEST['user1'])) $_REQUEST['user1'] = 'xx'; if(!isset($_REQUEST['pwd1'])) $_REQUEST['pwd1'] = 'xxx'; if(!isset($_REQUEST['db1'])) $_REQUEST['db1'] = 'xxx'; if(!isset($_REQUEST['host2'])) $_REQUEST['host2'] = 'XX.XX.XX.XX'; if(!isse...
true
3242cb27f285b77893a4c2f4674b20bedbfd1b7f
PHP
mbwile/sayu
/login.php
UTF-8
2,542
2.6875
3
[ "Apache-2.0" ]
permissive
<?php session_start(); //prepare db details $host="localhost"; $dbuser="root"; $dbname="sayu"; $dbpassword=""; //connect to the database $con = mysqli_connect($host,$dbuser,$dbpassword,$dbname); if(isset($_POST['login_btn'])){ $fname = $_POST['fname']; $password = $_POST['password']; $ombi =...
true
5bf3b1ff0218475f5d505f93c490638b49c1ee8c
PHP
winternet-studio/yii2-libs
/ConsoleHelper.php
UTF-8
7,130
2.9375
3
[]
no_license
<?php namespace winternet\yii2; use Yii; use yii\base\Component; use yii\console\Controller; use yii\helpers\Console; class ConsoleHelper extends Component { public static $starttime; public static $lasttime; public static $secsWidth = 8; public static $memWidth = 6; public static $columns = []; /** * @var s...
true
f2c15453dff39947f95ebcf37b610171a1b19241
PHP
ThibaultVlacich/Event-You-All
/apps/forum/model.php
UTF-8
5,032
2.8125
3
[ "MIT" ]
permissive
<?php defined('EUA_VERSION') or die('Access denied'); /** * This is the Model for the app "forum". * * @package apps/forum * @author Léo Plouvier <leo.plouvier@isep.fr> * @version 1.1.0-07-01-2015 */ class ForumModel { protected $db; public function __construct() { $this->db = System::getDb(); } pu...
true
2eff8358dcd7bf7bc7ba5896262557038e316386
PHP
jg-development/exar-framework
/lib/Exar/Annotation/Matcher/SequentialMatcher.php
UTF-8
777
2.890625
3
[ "MIT" ]
permissive
<?php namespace Exar\Annotation\Matcher; class SequentialMatcher extends AbstractMatcher { protected $matchers = array(); public function match(&$str) { $toParse = $str; // will be changed on every successful matching $result = array(); foreach ($this->matchers as $matcher) { // loop o...
true
791ec141ec4e02686ac4b3eb0c3f73ef17ad5d86
PHP
manolo1800/master_php
/proyectosPHP/proyecto1/includes/cambiardatos.php
UTF-8
2,691
2.59375
3
[]
no_license
<?php require_once 'conexion.php'; if(isset($_POST['cambiar'])) { $nombre= isset($_POST['nombre']) ? mysqli_real_escape_string($conexion,trim($_POST['nombre'])) : false; $apellidos=isset($_POST['apellidos']) ? mysqli_real_escape_string($conexion,trim($_POST['apellidos'])) : f...
true
41f860bbb398d56090005188f43f82839c1fdfff
PHP
dspinoz/projects
/phpframework/php/g/inc.utils.php
UTF-8
13,895
2.9375
3
[]
no_license
<?php /** Utility functions */ /** * Converts a given name of a file to something that is more widely supported. * Only allows alphanumeric characters. * @param String $name Original name of the file/directory * @return String New name of the file, where non-alphanumeric characters have * been replaced ...
true
fedae7df97825f3a5f24c211b8fc860f3c236188
PHP
nokia7900/hocphp
/users_manager/Database.php
UTF-8
1,340
3.078125
3
[]
no_license
<?php class Database{ protected $dbHost = 'localhost'; protected $dbName = 'users_manager'; protected $dbUser = 'root'; protected $dbPass = ''; protected $conn = NULL; protected $result = NULL; public function connect(){ $this->conn = mysql_connect($this->dbHost, $this->dbUser, $thi...
true
b592396eae24177384d038293b1150eaa4c23e55
PHP
pawelkr/testxsolve
/test.php
UTF-8
863
2.90625
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> </head> <body> <?php /** * parametr dla GET -> key= * */ if ( !isset($_GET['key']) || empty($_GET['key']) ) exit; $key = $_GET['key']; $ch = curl_init("http://xlab.pl/feed/"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $xml_string = c...
true
902afdb7c2de4eef35de188f399baccd90a2f1fb
PHP
caleeli/phpPMIO
/src/ProcessMaker/PMIO/ApiPackage.php
UTF-8
1,023
2.9375
3
[]
no_license
<?php namespace ProcessMaker\PMIO; class ApiPackage { /** * @var ApiBase */ protected $api; public function __construct(PMIO $api) { $this->api = $api; } protected function cleanData($data) { foreach ($data as $key => $value) { if ($...
true
3198f21b5d7b151089ff3b6d0dc69cb6cc06a9b7
PHP
sarancruzer/indi
/App/Response/ResponseHandler.php
UTF-8
398
2.65625
3
[]
no_license
<?php namespace App\Response; use App\Response\JsonHandler as JsonHandler; class ResponseHandler { protected $response_type; public function __construct() { $this->response_type = new JsonHandler; } public function encode_response($value){ return $this->response_type->encode($value); } public function...
true
566418ae5cae1055ab52ac025eb8a649122b74e8
PHP
AmandaisMe/phoneproject
/js/conExc.php
UTF-8
2,245
2.96875
3
[ "MIT" ]
permissive
<?php //连接数据库 function connect () { $serverName = "localhost"; $userName = "root"; $passWord = "root"; $DBname = "yjlogin"; //初始化连接,返回一个连接对象(包含所有连接数据库的信息) $con = mysqli_connect($serverName, $userName, $passWord, $DBname); //获取并判断连接对象的错误信息 if(mys...
true
7650846746c1b65b239fa912d98836073a9b3009
PHP
appwrite/appwrite
/tests/unit/Auth/Validator/PhoneTest.php
UTF-8
1,575
2.671875
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
<?php namespace Tests\Unit\Auth\Validator; use Appwrite\Auth\Validator\Phone; use PHPUnit\Framework\TestCase; class PhoneTest extends TestCase { protected ?Phone $object = null; public function setUp(): void { $this->object = new Phone(); } public function testValues(): void { ...
true
a47f456b8a7c89ab3d74e88ae9c22dedcb95a0d3
PHP
tamilkumarant/winsys
/sensordata.php
UTF-8
8,928
2.796875
3
[ "MIT" ]
permissive
<?php //read data from the incoming data content. $host = 'localhost'; $db = 'bg'; $user = 'root'; $pass = 'root123'; $charset = 'utf8'; $dsn = "mysql:host=$host;dbname=$db;charset=$charset"; $opt = [ PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETC...
true
527b16c78dd39a5a88f624de14f824b15444ed22
PHP
jooorooo/omniship-speedy
/lib/Ver01/ParamPhoneNumber.class.php
UTF-8
1,432
3.40625
3
[ "MIT" ]
permissive
<?php /** * Instances of this class are used as a parameter for client phone numbers in web service calls */ class ParamPhoneNumber { /** * Phone number (example: "0888123456", "+35932261020" etc.). * Max size is 20 symbols. * MANDATORY: YES * @var string */ protected $_number; ...
true
4208fa88c4bbce9e7f3f8839762fdf608afba2d1
PHP
sharf521/fenecll
/webservices_my/include/nusoap/nusoap_server1.php
GB18030
663
2.875
3
[]
no_license
<?php require_once("lib/nusoap.php"); // function hello() {return 'Hello World!';} //ʼ , soap_server һʵ $soap = new soap_server; //÷ register עҪͻ˷ʵij //ֻעij򣬲ܱԶ̿ͻ˷ʵ $soap->register('hello'); //һѿͻͨ post ʽύݣݸ service //service ݣӦĺ򷽷ȷķظͻˡ $soap->service($HTTP_RAW_POST_DATA); ?>
true
fb2a381e618b01c5a77850ff3197ce09dd03c8bf
PHP
nguyenvanduocit/GetMusic
/lib/Nhacso.class.php
UTF-8
1,503
2.796875
3
[]
no_license
<?php require_once 'Track.class.php'; require_once 'Curl.class.php'; require_once 'GetTrackAbstract.php'; class Nhacso extends GetTrackAbstract{ private $link; private $type; public function __construct($link = "") { $this->link = $link; $this->type = $this->checkType($link); } public function ch...
true
fccd2588aab86899bf692aaf2fe2bfd70b9d4bf3
PHP
Quillor/firstVoteNC
/wp-content/plugins/caldera-forms-pro-master/bootstrap-cf-pro.php
UTF-8
5,827
2.578125
3
[]
no_license
<?php use \calderawp\calderaforms\pro\container; use \calderawp\calderaforms\pro\admin\scripts; use \calderawp\calderaforms\pro\admin\menu; /** * Load up Caldera Forms Pro API client * * @since 0.0.1 */ add_action( 'caldera_forms_includes_complete', function(){ //add database table if needed if( 1 > get_option( '...
true
fb0ad435b52d20e5340e9c8c9272a937acbad3ea
PHP
pecinaon/doctrine-mapper
/src/Parsers/Date/IDateFormat.php
UTF-8
401
2.875
3
[]
no_license
<?php namespace DoctrineMapper\Parsers\Date; /** * Interface specified overriding date and time format * * @author Pecina Ondřej <pecina.ondrej@gmail.com> * @package DoctrineMapper\Parsers\Date */ interface IDateFormat { /** * Return date and time format * * @return string */ public function getDateTi...
true
469e6d9f74062f7e07f2341239ac09185b2c7cf3
PHP
MolMeDB/MolMeDB
/application/controller/Api/Methods.php
UTF-8
5,412
2.75
3
[]
no_license
<?php /** * */ class ApiMethods extends ApiController { /** * Returns method detail by given param * Priority: $id > $cam > $tag * * @GET * * @param $id * @param $cam * @param $tag * * @PATH(/detail) */ public function get_detail($id, $cam, $tag) ...
true
43192351784d4011d94d5abfe8c4bb49359b6664
PHP
maximov89/lesson_3.1
/index.php
UTF-8
3,298
2.984375
3
[]
no_license
<?php function vardump($var) { echo '<pre>'; var_dump($var); echo '</pre>'; } echo '<a href="news.php"><button>Посмотреть дополнительное задание</button></a>'; echo '<br/>'; echo '<p>1. Инкапсуляция - формирование оболочки-функционала для работы со свойствами и методами объектов одного класса и называемой класс...
true
807a2c98effe8e56e95a7c231c85ade17b80cb70
PHP
am9u/ge-client
/application/classes/serviceclient/user.php
UTF-8
3,107
2.515625
3
[]
no_license
<?php defined('SYSPATH') or die('No direct script access.'); class ServiceClient_User extends ServiceClient { protected $_client_type = 'api_writer'; const TOKEN_NAME = 'token'; const USERNAME_KEY = 'username'; const PASSWORD_KEY = 'password'; public function identify($credentials=NULL) { ...
true
2876fda1d9ec09c4d2fea41251e9f7894d3bb093
PHP
loevgaard/linkmobility-php-sdk
/tests/Request/PostMessageRequestTest.php
UTF-8
7,310
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Loevgaard\Linkmobility\Payload; use Loevgaard\Linkmobility\Request\PostMessageRequest; use Loevgaard\Linkmobility\ValueObject\Message; use Loevgaard\Linkmobility\ValueObject\Recipient; use Loevgaard\Linkmobility\ValueObject\Sender; use PHPUnit\Framework\TestCase; class PostMes...
true
1ab092a78cb49b7331f05fbdb37610193e2167e4
PHP
andrey-helldar/laravel-roles
/src/Models/BaseModel.php
UTF-8
677
2.65625
3
[ "MIT" ]
permissive
<?php namespace Helldar\Roles\Models; use Helldar\Roles\Facades\Config; use Helldar\Roles\Traits\Searchable; use Helldar\Roles\Traits\SetAttribute; use Illuminate\Database\Eloquent\Model; /** * @property int $id * @property string $slug * @property string $title * * @method static Model|self create(array $value...
true
1952eec7270ca485369320d6eabfd077c4e2bc92
PHP
clowestab/phalcon-bootstrap
/app/exceptions/ValidationException.php
UTF-8
590
2.859375
3
[]
no_license
<?php /** * Exception thrown when there is an issue validating * the inputs of a specific request */ class ValidationException extends ServiceException { private $errors = array(); public function addError($field, $message) { $this->errors[$field] = $message; } public function getErro...
true
f3d16e7888514879ca625ca5678f6bf68c700ccc
PHP
oxenti/Request
/src/Controller/RequeststatusController.php
UTF-8
4,337
2.546875
3
[]
no_license
<?php namespace Request\Controller; use Request\Controller\AppController; /** * Requeststatus Controller * * @property \Request\Model\Table\RequeststatusTable $Requeststatus */ class RequeststatusController extends AppController { /** * isAUtorized method * * @return void */ public fu...
true
a86d5d95c3c7ed3daf6b1c50f7e5bfa4030b498a
PHP
pasamio/mygovernance
/plugins/display/dotproject.php
UTF-8
2,616
2.515625
3
[]
no_license
<?php // dotProject Exporter Display Information //$_MAMBOTS->registerFunction( 'onViewProjectMenu', 'botDisplay_dotProjectApprove' ); class plgDisplayDotProject extends JPlugin { /** * Constructor * * For php4 compatability we must not use the __constructor as a constructor for plugins * because func_...
true
c33d84a2d9d78fbbf0abc82f9b63a633811ed6ec
PHP
braican/magic-numbers
/calculate.php
UTF-8
404
2.515625
3
[]
no_license
<?php $sox_wins = $_POST['red_sox_wins']; $sox_losses = $_POST['red_sox_losses']; $chaser_wins = $_POST['chaser_wins']; $chaser_losses = $_POST['chaser_losses']; $magic_number = 163 - $sox_wins - $chaser_losses; $sox_games_left = 162 - $sox_wins - $sox_losses; $final_array = array( 'magic_number' => $magi...
true
515471a3606e75022b7e853f16d4c920b39456d1
PHP
vvbatura/airtasker
/app/Traits/NexmoTrait.php
UTF-8
515
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Traits; trait NexmoTrait { public function initClient() { $basic = new \Nexmo\Client\Credentials\Basic(env('NEXMO_KEY'), env('NEXMO_SECRET')); return new \Nexmo\Client($basic); } protected function sendSMS ($number, $message) { $client = $this->initCl...
true
8fe4cb2eed84452c6ddbdaaf064cba17115e52f3
PHP
liugang23/tb100
/admin/app/Store/UserStore.php
UTF-8
693
2.796875
3
[]
no_license
<?php namespace App\Store; use App\Model\User; class UserStore { /** * 用户查询 admin */ public static function adminGetUser($id, $val) { return \DB::table('data_users') ->where($id, $val)->first(); } /** * 添加用户 admin * */ public static function adminAddUser($data) { return \DB::table('data...
true
f6a4baf5b46b4d5e491bb72dc473eb2fc96aa462
PHP
dinevillar/epesi-telemarketing
/modules/Utils/Tray/Box.php
UTF-8
2,677
2.796875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /* * @author Georgi Hristov <ghristov@gmx.de> * @copyright Copyright &copy; 2019, Georgi Hristov * @license MIT * @version 2.0 * @package epesi-tray * */ defined("_VALID_ACCESS") || die('Direct access forbidden'); class Utils_Tray_Box { protected $title; protected $weight = 5; /** * @var Utils_Tray_Slot[...
true
42f4b41647baef3efd2752170eff3ade269c42db
PHP
jhonzya/horario-fi
/database/migrations/2017_01_17_071615_crear_grupo.php
UTF-8
1,269
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CrearGrupo extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('grupo', function(Bluepr...
true
cdb92ed39d299364cf99015808645f3acca057e0
PHP
remyoldor/mvc
/model/PDORepository.php
UTF-8
573
3.078125
3
[]
no_license
<?php abstract class PDORepository { const USERNAME = "1sGhNU1F"; const PASSWORD = "XiwLHBFF"; const DB = "1sGhNU1F"; const HOST = "localhost"; private function getConnection(){ $u = self::USERNAME; $p = self::PASSWORD; $db = self::DB; $host = self::HOST; return new PDO("mysql:dbname=$db;host=$host", $...
true
86f5b38122c836db09b545016001eee0719a6951
PHP
yana619/yquest-backend
/src/SocketBundle/Server/SocketWorker.php
UTF-8
1,886
2.765625
3
[]
no_license
<?php namespace SocketBundle\Server; use Ratchet\ConnectionInterface; use Ratchet\MessageComponentInterface; use SocketBundle\Events\Client\ClientEvent; use Symfony\Component\DependencyInjection\ContainerInterface; use SplObjectStorage; class SocketWorker implements MessageComponentInterface { /** * @var Sp...
true
28283ed994d747828b34e44a656e94007c423e56
PHP
handsomegyr/qywechat
/lib/Qyweixin/Model/ExternalAttr/Base.php
UTF-8
686
2.65625
3
[ "MIT" ]
permissive
<?php namespace Qyweixin\Model\ExternalAttr; /** * 对外属性构体 */ class Base extends \Qyweixin\Model\Base { /** * external_attr.name 属性名称: 需要先确保在管理端有创建该属性,否则会忽略 是 */ public $name = NULL; /** * external_attr.type 属性类型: 0-文本 1-网页 2-小程序 是 */ protected $type = null; public function ...
true
63d9f4df96724727dcb7fb68219d5e45c4124342
PHP
m82amjaduk/play
/file/readReverse.php
UTF-8
1,012
3.015625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: AMojumder * Date: 11/11/2014 * Time: 11:13 */ $data = tail('test.log', 10); $data = implode("\n", array_reverse($data)); echo '<pre>'; print_r($data); function tail($filename, $n) { $buffer_size = 1024; $fp = fopen($filename, 'r'); if (!$fp) return array()...
true
9801189377a412cf4ddaa12ce3ec2e6082d1b346
PHP
3Dgoo/silverstripe-instagram-scraper
/src/Tasks/ImportInstagramPostsTask.php
UTF-8
2,708
2.515625
3
[ "MIT" ]
permissive
<?php namespace X3dgoo\InstagramScraper\Tasks; use InstagramScraper\Instagram; use InstagramScraper\Model\Media; use Phpfastcache\Helper\Psr16Adapter; use SilverStripe\Core\Environment; use SilverStripe\Dev\BuildTask; use SilverStripe\ORM\DB; use X3dgoo\InstagramScraper\Model\InstagramPost; class ImportInstagramPost...
true
d49630fe9fbf495a5f31e82c30ee145b7b2ad5e8
PHP
YellowSparkle/ProjectWebsite
/Registreren_pagina/Register_page.php
UTF-8
5,299
2.671875
3
[]
no_license
<?php require_once "../utility/HTMLGenerator.php"; require_once "../utility/Header.php"; generateTitle("Registration"); generateHeader(); ?> <div class="features"> <form name="registerform" method="post" action="Register_page.php" class="tekst"> <ul> <li>*Title</li> <input type="radio" id="male"...
true
712409ab5f16f92a8d915501f2340016f0523fbf
PHP
ztenna/Projects
/C#/Server Side/get_user_data.php
UTF-8
3,051
3.296875
3
[]
no_license
<?php // Include the PHP files that define objects or functions we need in this file. include_once '../application_files/database.php'; include_once '../application_files/user.php'; include_once '../application_files/utility_functions.php'; // In order to check if user is logged in, we have to have access to t...
true
c7aa9c79eb2145fc660601c1b0e957a3f3dbea9c
PHP
jongotlin/ArbetsformedlingenAds
/src/Event/ResultEvent.php
UTF-8
1,590
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace JGI\ArbetsformedlingenAds\Event; use JGI\ArbetsformedlingenAds\HRXMLDocument; use JGI\ArbetsformedlingenAds\Model\Result; use JGI\ArbetsformedlingenAds\Model\Transaction; use Symfony\Contracts\EventDispatcher\Event; class ResultEvent extends Event { const NAME = 'arbetsf...
true
58fa7fb003a3a02b6fe6dd5ff1a4f2a6cef0085c
PHP
Rickycezar/phpbrew
/src/PhpBrew/Platform/Linux.php
UTF-8
1,377
2.953125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace PhpBrew\Platform; use PhpBrew\Platform\Linux\Distribution; use PhpBrew\Platform\Linux\Debian; use PhpBrew\Platform\Linux\CentOS; use PhpBrew\Platform\Linux\UnknownDistribution; class Linux implements Platform { private $hardware; private $distribution; public function __construct(Hardwar...
true
f2ed6ea7799fb9034eaa8308f396bd2dc5c829fd
PHP
Planview/sales-playbook
/app/controllers/Admin/OperatingRegionsController.php
UTF-8
3,083
2.59375
3
[]
no_license
<?php namespace Admin; use \View; use \Response; use \Redirect; use \Input; use \OperatingRegion; class OperatingRegionsController extends \BaseController { protected $permission = 'manage_playbook_meta'; /** * Display a listing of the resource. * * @return Response */ public funct...
true
f6157be247ec76e0c1b2a2234696a7dce511a7ee
PHP
1armin/linkbaz
/delete.php
UTF-8
2,744
2.59375
3
[]
no_license
<?php // Include utility files require_once 'config.php'; //include security class file require_once INCLUDE_DIR.'security.php'; // Include session files require_once INCLUDE_DIR.'primary_session.php'; // Include apicaller files require_once INCLUDE_DIR.'apicaller.php'; $result = array(); try { $link_id = (isset...
true
31995c4e6d4d604a3832ff3edebe8befa056aebf
PHP
milkcreation/pollen-validation
/src/ValidatorInterface.php
UTF-8
1,420
2.96875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Pollen\Validation; use Respect\Validation\Exceptions\ComponentException; use Respect\Validation\Validatable; /** * @method static ValidatorInterface password(array $args = []) * @method static ValidatorInterface serialized(bool $strict = true) * * @mixin Validatable */ ...
true
f3c611deb276e5f8820173da2e699b2e714c91ce
PHP
rgrass-colleagues/rgrass
/app/models/Common/ChangeTimeModel.php
UTF-8
505
2.578125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Bob * Date: 15-4-3 * Time: 00:08 */ class Common_ChangeTimeModel extends Eloquent{ /* * 把时间戳转化成具体时间 * */ public function Inttotime($strtotime,$default=null){ return date('Y-m-d H:i:s',$strtotime); } /* * 根据ID查询users一条用户信息 * */ ...
true
397053c378de26986a770a0accfaec93f761aa8e
PHP
wassafr/dataloader-bundle
/Wassa/DataLoaderBundle/Command/DataLoaderCommand.php
UTF-8
2,528
2.640625
3
[]
no_license
<?php /* * DataLoaderCommand.php * * Copyright (C) WASSA SAS - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited * Proprietary and confidential * * 09/06/2015 */ namespace Wassa\DataLoaderBundle\Command; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareComm...
true
af8ed80dbfdc239b456c64e9d653a2954d492653
PHP
tlepeche/Piscines
/PHP/D06/ex04/Color.class.php
UTF-8
4,077
3.46875
3
[]
no_license
<?php # **************************************************************************** # # # # ::: :::::::: # # Color.class.php :+: :+: ...
true
9d773978ac75636bbe8ec94aace91c99841c8943
PHP
fytinnovations/clashfreaks
/plugins/fytinnovations/clashfreaks/updates/SeedInitialTables.php
UTF-8
1,749
2.6875
3
[ "MIT" ]
permissive
<?php namespace Fytinnovations\ClashFreaks\Updates; use Seeder; use Fytinnovations\ClashFreaks\Models\TownHall; use Fytinnovations\ClashFreaks\Models\VillageType; class SeedInitialTables extends Seeder { public function run() { $home_village = VillageType::create([ 'name' ...
true
47f442aea97db82d12e25249aef1f14f1e8bc20b
PHP
cmaixen/Project_OSSEC
/backend/generateRSAXML.php
UTF-8
597
2.78125
3
[]
no_license
<!DOCTYPE html> <html> <body> <?php ini_set( 'error_reporting', E_ALL ); ini_set( 'display_errors', true ); set_include_path(get_include_path() . PATH_SEPARATOR . 'phpseclib'); include('phpseclib/Crypt/RSA_XML.php'); $privatekey_file = "Privatekey.xml"; $publickey_file = "Publickey.xml"; $rsa = new Crypt_RSA_XML(); ...
true
0fc028831c6bd6a4cdaf75430dd87ca1d67acdf2
PHP
Serabass/gamesound
/packages/backend/app/Stats.php
UTF-8
3,429
2.71875
3
[]
no_license
<?php namespace App; use Illuminate\Support\Collection; use Illuminate\Support\Facades\DB; class Stats { public static function generalCount() { return intval(DB::table('sounds') ->select(DB::raw('COUNT(0) as count')) ->get()->first()->count); } public static function...
true
944044d367e1db8fb5675eeb58d0a44a73d53518
PHP
Asky-M/Elrahma
/web dinamis/explode/explode2.php
UTF-8
202
2.921875
3
[]
no_license
<?php function explode (s,separator,limit){ var arr = s.split(separator); if ($limit) { arr.push(arr.splice(limit-1, (arr.length-(limit-1))).join(separator)); } return arr; } ?>
true
31dd6e0be181eb6fd5ba88fb0f94c3a917f0857f
PHP
bejalane/anglist
/php/logoutold.php
UTF-8
708
2.59375
3
[]
no_license
<?php // Connect to database require 'mysqlconnect.php'; // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $data = json_decode(file_get_contents("php://input")); $userId = mysqli_real_escape_string($con, $data->userId); $sql="SELECT * FROM ...
true
061d7c3503aefc22ea3f2852ec70ae22d2f6df10
PHP
waitingfordark/exam-postgraduate
/migrations/20180411033527_biz_scheduler_add_job_fired_name.php
UTF-8
655
2.5625
3
[]
no_license
<?php use Phpmig\Migration\Migration; class BizSchedulerAddJobFiredName extends Migration { /** * Do the migration */ public function up() { $biz = $this->getContainer(); $connection = $biz['db']; $connection->exec("ALTER TABLE `biz_scheduler_job_fired` ADD COLUMN `job_n...
true
a2f0a51dc85342e1a2a0d6e34be8ae8e49f462e1
PHP
tuanquynh0508/tqframework
/tqframework/TQBase.php
UTF-8
1,995
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Tập tin TQBase class. * * @author Nguyễn Như Tuấn <tuanquynh0508@gmail.com> * @link http://tqframework.i-designer.net/ * @copyright 2014-2014 I-Designer * @license http://tqframework.i-designer.net/license/ * @package system * @since 1.0 */ namespace TQFramework; use TQCore\TQException as TQExcep...
true
d94b0c6d4319bd50aa7ee00d709ab7054f8ff124
PHP
liunianlh/html
/杂项/php/php/arr_apply/14-arr.php
UTF-8
1,788
3.390625
3
[]
no_license
<?php header('content-type:text/html;charset=utf-8'); echo '<pre>'; $arr=[]; $arr='king'; //foreach遍历数组和对象,如果不是数组或者对象会报警告,通过@符号无法抑制错误 if(is_array($arr)){ foreach($arr as $v){ echo 'this is a test'; } } $arr=[ ['a','b','c'], ['d','e','f'] ]; // print_r($arr); /* Array ( [0] => Array ( ...
true
9103e23d7b789730c4f5667bf913a8bff4161dcd
PHP
victorsfleite/easylunch
/tests/Feature/Users/ImpersonateUserTest.php
UTF-8
2,291
2.5625
3
[]
no_license
<?php namespace Tests\Feature\Users; use App\Models\User; use Illuminate\Foundation\Testing\DatabaseTransactions; use Illuminate\Http\Response; use Tests\TestCase; use Tests\TestResponse; class ImpersonateUserTest extends TestCase { use DatabaseTransactions; protected $users; public function setUp() ...
true
66cd2875c7297e1a3caf0fb5e7d698b492c73eee
PHP
tuantmtb/uet-receive
/app/Student.php
UTF-8
2,213
2.671875
3
[]
no_license
<?php namespace App; use Carbon\Carbon; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Query\Builder; /** * App\Student * * @property int $id * @property string $code * @property string $name * @property string $date * @property \Carbon\Carbon $created_at * @property \Carbon\Carbon $updated_...
true
951d372384d6705f3c37749021cb8f9e164ebe6b
PHP
mak001/silverstripe-manageable-dataobject
/code/form/ManageableDataObjectForm.php
UTF-8
864
2.765625
3
[]
no_license
<?php /** * Class ManageableDataObjectForm */ class ManageableDataObjectForm extends Form { /** * ManageableDataObjectForm constructor. * * @param Controller $controller * @param string $name * @param FieldList $object */ public function __construct(Controller $controller, $nam...
true
378a657a2be500296cbe73bec2961e19d9165191
PHP
npatil0821/nostalgic_gamer
/nostalgic_gamer/process/remove_from_cart.php
UTF-8
1,651
2.828125
3
[]
no_license
<?php //gets session info session_start(); //checks if user has logged in. if not, redirects to login page if ((isset($_SESSION['loggedin']) && $_SESSION['loggedin']) === false) { header('Location: ../login.php'); $_SESSION['needlog'] = true; exit(); } ...
true
a7e5ad52322b1f2ef61f7e097464bad9efa36b38
PHP
unithinktech/demoshop
/src/Shopsys/ShopBundle/Model/PickUpPlace/Exception/PickUpPlaceXmlParsingException.php
UTF-8
403
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Shopsys\ShopBundle\Model\PickUpPlace\Exception; use Exception; class PickUpPlaceXmlParsingException extends Exception implements PickUpPlaceExceptionInterface { /** * @param string $message * @param \Exception|null $previous */ public function __construct($message, Exception $p...
true
86767616b1d4e5f83e64d47c420609b2ece5837c
PHP
firomero/BosonIntegratorBundle
/Tests/Guzzle/GuzzTest.php
UTF-8
2,077
2.625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: firomero * Date: 20/02/15 * Time: 11:43 */ namespace IntegratorBundle\Tests\Guzzle; use GuzzleHttp\Client; class GuzzTest extends \PHPUnit_Framework_TestCase{ /** *Prueba la instancia de la clase guzz */ public function testGuzz() { $cl...
true
beb2334ba4d5e94af7ad690f221ff6bf2fbeab46
PHP
fabn/zle
/library/Zle/Validate/Confirmation.php
UTF-8
2,272
2.890625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Zend Library Extension * * PHP version 5 * * @category Zle * @package Zle_Validate * @author Fabio Napoleoni <f.napoleoni@gmail.com> * @license http://framework.zend.com/license/new-bsd New BSD License * @link http://framework.zend.com/ */ /** * Zle_Validate_Confirmation * * @category...
true
6e2be1a81de7b4722795e4f6398138bc984ed93a
PHP
BrosSquad/FluVal
/src/Fluent/Validators/Username.php
UTF-8
355
2.53125
3
[]
no_license
<?php namespace BrosSquad\FluVal\Fluent\Validators; class Username extends AbstractFluentValidator { public function validate($value): bool { if ($this->optional($value) === true) { return true; } $regex = "#^(?=[a-zA-Z])[-\w.]+([a-zA-Z\d]|(?<![-.])_)$#"; return p...
true
9742c71d8051b39cfdd0a2bdd632e8d8f7845a77
PHP
gongqingliang821/bot-framework
/src/lib/Logger.php
UTF-8
557
2.59375
3
[]
no_license
<?php namespace Bot\Framework\lib; class Logger { public static function setLevel($level = PLogger::ERROR, $options = []) { PLogger::get("single",$options); } public static function error($str) { PLogger::get("single")->error($str); } public static function warn($str) { ...
true
5fe506ab732ab7262fe209bad19b87c9d4d7ca17
PHP
sunkarapk/dropfw
/drop/timer.php
UTF-8
3,216
2.953125
3
[]
no_license
<?php /** * dropFW : PHP Web Development Framework * Copyright 2010, Pavan Kumar Sunkara * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2010 * @version 1.0.0 * @author Pavan Kumar Sunkara * @license MIT */ define('SECOND', 1);...
true
7f52d3a39996c6d920231edc01b335e8022465c3
PHP
thekid/xp-experiments
/jay/net/xp_framework/tools/vm/nodes/ForNode.class.php
UTF-8
678
2.59375
3
[]
no_license
<?php /* This class is part of the XP framework * * $Id$ */ uses('net.xp_framework.tools.vm.VNode'); /** * For * * @see xp://net.xp_framework.tools.vm.nodes.VNode */ class ForNode extends VNode { public $init, $condition, $loop, $statements; /** * Co...
true
bb7b9ef8817ee94efa385458962589996ed42f0a
PHP
RodGW13/Agenda-Asistencia-Social
/back-end/entidades/Cl_Conexion.php
UTF-8
1,617
2.8125
3
[]
no_license
<?php class Cl_Conexion { public $servidor = "localhost"; public $usuario = "root"; public $pass = ""; public $base = "Agenda"; public $cone; public function Cl_Conexion() { if ($this->cone == NULL) { $this->cone = mysqli_connect($this->servidor, $this->usuario...
true
ecd44c2bfbdc457a40741d620451a4c1317c9072
PHP
StulE-ru/ModernPDO
/src/Transaction.php
UTF-8
1,034
3.234375
3
[ "MIT" ]
permissive
<?php namespace ModernPDO; /** * Wrapper over transaction. * * Use ModerPDO objects to get this class object. */ class Transaction { public function __construct( private \PDO $pdo, ) { } /** * Initiates a transaction. * * @see https://php.net/manual/en/pdo.begintransaction....
true
4c47936bcf2c7c715315a3b10f504eb8f7cb4ab3
PHP
ncou/Chiron-HttpExceptions
/src/Client/UpgradeRequiredHttpException.php
UTF-8
689
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Chiron\Http\Exception\Client; use Chiron\Http\Exception\HttpException; class UpgradeRequiredHttpException extends HttpException { /** * @param array<string> $upgrade An array of required protocol(s) * * @see https://datatracker.ietf.org/doc/html/rfc7231#se...
true
ff5ff12e796484a5d5747637f0bb2ca87e511ae8
PHP
jikan-me/jikan
/test/JikanTest/Parser/Character/VoiceActorParserTest.php
UTF-8
1,725
2.71875
3
[ "LicenseRef-scancode-free-unknown", "MIT" ]
permissive
<?php namespace JikanTest\Parser\Character; use JikanTest\TestCase; /** * Class VoiceActorParserTest */ class VoiceActorParserTest extends TestCase { /** * @var \Jikan\Parser\Character\VoiceActorParser */ private $parser; public function setUp(): void { parent::setUp(); ...
true
ddd0004c1687c8b79eef0929bf8c7f53ca1b799b
PHP
SystemM007/ESJR
/www/beta/environment/classes/Template_Processor.php
UTF-8
2,619
3.125
3
[]
no_license
<?php class Template_Processor { protected $Root; protected $fill = array(); protected $options = array(); public function __construct(Template_Root_Element $Root) { $this->Root = $Root; } /* * Argumenten: * 1e is de eerste namespace * 2e de tweede namespace * (n-2)e is de (n-2)e namespace * (n-1)...
true
9419828a8cce659aa14fac72c91405fd204c82c3
PHP
wponion/wponion
/wponion.php
UTF-8
3,388
2.75
3
[ "MIT" ]
permissive
<?php defined( 'ABSPATH' ) || exit; if ( ! class_exists( 'WPOnion_Loader' ) ) { /** * Class WPOnion_Loader * * @author Varun Sridharan <varunsridharan23@gmail.com> */ final class WPOnion_Loader { /** * Stores Loader Instance. * * @var \WPOnion_Loader */ public static $_instance = null; /*...
true
2a6c407cafdd4270522baedfa2a03f0326096a3c
PHP
bkurtish/note-taking-on-a-file
/edit.php
UTF-8
2,012
2.984375
3
[]
no_license
<?php require_once("classes/Note.php"); require_once("classes/NoteRepository.php"); $id = ""; $errors = false; $note = null; if($_SERVER['REQUEST_METHOD'] == "GET") { $id = $_GET['id']; $noteRepository = new bkurtish\as2\NoteRepository(); $note = $noteRepository->getNoteByID($id); } else { $id = ...
true
82bba69c28fe2bbd512ceaf517f82f7295556f05
PHP
chokri-91/Restaurant
/application/forms/UserForm.class.php
UTF-8
543
2.546875
3
[]
no_license
<?php class UserForm extends Form { public function build() { $this->addFormField('nom'); $this->addFormField('prenom'); $this->addFormField('day'); $this->addFormField('month'); $this->addFormField('year'); $this->addFormField('adress'); $this->addFormFi...
true
3a42fddc1218f96482bfc6f9e0f7e938b659a72d
PHP
laminas/laminas-session
/src/Service/StorageFactory.php
UTF-8
2,661
2.75
3
[]
permissive
<?php namespace Laminas\Session\Service; // phpcs:disable WebimpressCodingStandard.PHP.CorrectClassNameCase use Interop\Container\ContainerInterface; use Laminas\ServiceManager\Exception\ServiceNotCreatedException; use Laminas\ServiceManager\FactoryInterface; use Laminas\ServiceManager\ServiceLocatorInterface; use L...
true
9e78ca399657cdddd2311e1540b9ca12bbee7b2b
PHP
RostislavKreisinger/is3
/app/Model/ImportPools/IFStepPool.php
UTF-8
1,730
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Model\ImportPools; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Relations\BelongsTo; /** * Class IFStepPool * @package App\Model\ImportPools */ abstract class IFStepPool extends IFPool { /** * @var array $appends */ protected $appends = ['if_ste...
true
4c19d721e974a9560a2dd308e1ff7849967c3548
PHP
etng/SimpleTodo
/lib/models/Attachment.php
UTF-8
3,585
2.71875
3
[]
no_license
<?php class Attachment { public static function uniqueName($name, $ext) { return date('/Ym/d/') . current(str_split(md5($name.time()), 8)).'.'. $ext; } public static function fromRemote($urls, $dest_dir, $allowed_types=array(), $thumb_configs=array()) { $files = array(); set...
true
a4cec3c276c3c4612d17c078c3d8e72b4f3f63de
PHP
ruchengtang/PHPDesignPatterns
/Structural/Facade/Facade.php
UTF-8
588
2.9375
3
[ "MIT" ]
permissive
<?php namespace Ruchengtang\PHPDesignPatterns\Structural\Facade; class Facade { private $bios; private $operatingSystem; public function __construct(Bios $bios, OperatingSystem $operatingSystem) { $this->bios = $bios; $this->operatingSystem = $operatingSystem; } public functi...
true
44e8f217e02b380de97fb7605efeb6a82b3a8137
PHP
YuriHermont1995/SecretShop
/src/SecretShop/Persistence/ItemDAO.php
UTF-8
2,209
2.875
3
[]
no_license
<?php include_once("../Model/ClassItem.php"); class ItemDAO{ function __construct(){ } //Função de cadastro de Item no sistema /* function cadastrar($Item,$link){ $insert ="INSERT INTO item(nome,descricao,preco,forca,agilidade,inteligencia,vida,mana,dano,armadura,velocidadeDeAtaque,habilidadeAtiva,descr...
true
5e5d06e174e299baecedf8f27d93ea71268fb707
PHP
MadeAja/VanillaX
/src/CLADevs/VanillaX/entities/passive/GlowSquidEntity.php
UTF-8
1,134
2.640625
3
[]
no_license
<?php namespace CLADevs\VanillaX\entities\passive; use CLADevs\VanillaX\entities\utils\interfaces\EntityClassification; use CLADevs\VanillaX\entities\VanillaEntity; use pocketmine\item\Item; class GlowSquidEntity extends VanillaEntity{ const NETWORK_ID = self::GLOW_SQUID; public $width = 0.95; public $...
true
5882d9293bc9e44ea4a9f6523a712009a801e41e
PHP
ccmorenosa/artemisa
/serviciosacademicos/consulta/clasificados/validar_datos.php
UTF-8
4,217
3.234375
3
[]
no_license
<?php /* USO: Primer parámetro: es la cadena que se quiere validar; Segundo parámetro: es el tipo de validacion que se quiere hacer; Tercer parámetro: es el mensaje que se quiere imprimir en caso de error; Cuarto parámetro: Si se quiere imprimir el mensaje se envía true, si no false; La función devuelve 0 o 1, se...
true
8a89fa2e188795a32993073ed165ea83f6c769dd
PHP
jakubkulhan/react-fcgi
/src/React/Fcgi/Connection.php
UTF-8
13,785
2.640625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace React\Fcgi; use React\EventLoop\LoopInterface; use React\Fcgi\Exception\BadResponseException; use React\Fcgi\Exception\ConnectionException; use React\Fcgi\Exception\ResponsePromiseRejectedException; use React\Promise\PromiseInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\...
true
7d086c6a32ebcbbc2bf9240790735c5e1e1502f4
PHP
lonson/Wechat_PHP_SDK
/src/Jenner/Wechat/Client/MenuStructure/ButtonMenu.php
UTF-8
776
2.921875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Jenner * Date: 14-12-20 * Time: 上午10:03 */ namespace Jenner\Wechat\Client\MenuStructure; use Jenner\Wechat\Exception\WechatException; class ButtonMenu { protected $buttons; public function addButton(Button $button) { $this->button...
true
9d2f841eddae9c08ab33ad60a19888a7426ef209
PHP
TannerWoodworth/community
/config/database.php
UTF-8
1,010
3.484375
3
[]
no_license
<?php class Database { //properties every database has: proper credentials private $host = 'localhost'; private $db_name = 'studentdb'; private $username = 'root'; private $password = ''; public $conn; /** * this method makes the database connection * @return then connection object c...
true
041315d50380249062a62ef31e3a41ff3a0c3939
PHP
ipqhjjybj/online
/class/WDealMode.data.php
UTF-8
704
3.015625
3
[]
no_license
<?php class WDealMode{ const MODE_NONE = 0; const MODE_GRAB = 1; const MODE_RESIZE = 2; const MODE_SAVE = 4; const MODE_All = 7; /** * 保存的mode类型 * @var int */ private $mode; /** * 用于执行此类的mode * @param unknown_type $sm * @return unknown */ function __construct($sm=self::MODE_NONE)...
true
4299f28a337c4ac78b48a8f23d66eb5ece3ea228
PHP
robotzero/RiftRun
/src/Infrastructure/Common/Doctrine/ORM/CriteriaOperator.php
UTF-8
1,143
2.546875
3
[]
no_license
<?php namespace App\Infrastructure\Common\Doctrine\ORM; use App\Domain\GameMode\Model\Bounty; use App\Domain\GameMode\Model\Grift; use App\Domain\GameMode\Model\Keywarden; use App\Domain\GameMode\Model\Rift; use Doctrine\Common\Persistence\ObjectRepository; use Doctrine\ORM\QueryBuilder; /** * Interface CriteriaOpe...
true
1ee502c25f52ce0fafa346ba64cf365c2a80eda7
PHP
Andresfyc/FilmSwap
/includes/suscripcion/FormularioEditarPlan.php
UTF-8
3,112
2.734375
3
[]
no_license
<?php namespace es\ucm\fdi\aw\suscripcion; use es\ucm\fdi\aw\Aplicacion; use es\ucm\fdi\aw\Form; class FormularioEditarPlan extends Form { private $id; private $plan; private $prevPage; public function __construct($id, $prevPage) { parent::__construct('formEditarPlan', $id); $th...
true