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
c05fce93efa185611c50c6545a32c4848c114cbf
PHP
jiazhuang1geren/Single
/设计模式/WMLcode/01-Singleton.php
UTF-8
803
3.78125
4
[]
no_license
<?php /* *$_instance 必须是私有静态属性 *构造方法一定是私有的,防止在外部实例化 *getInstanse一定是公有的 *魔术方法__clone变成私有 *因为new都会消耗内存 *场景:数据库链接 */ class Singleton { private static $_instance = null; //阻止在外部实例化 private function __construct() { echo '实例化对象 <br />'; } static public function getInstanse() { if (is_null(self::$_instance)) { ...
true
7547de9d3f1b977375ab437bea90d2ccc5ada961
PHP
geeksesi/ghir-webservice
/app/Http/Controllers/Account.php
UTF-8
992
2.59375
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\Support\Facades\Crypt; class Account extends Controller { public function get(Request $req) { $response = []; $status = ["status"=>"ok"]; if (!$req->has('status')) ...
true
8bd26f77df6b54e2b7d644884b019a12b77dec29
PHP
vaseninm/pixelio
/application/common/models/Team.php
UTF-8
3,798
2.515625
3
[]
no_license
<?php /** * This is the model class for table "team". * * The followings are the available columns in table 'team': * @property integer $id * @property string $fullname * @property string $position * @property string $about * @property int $sort * @property integer $domain_id */ class Team extends EActiveRec...
true
fcf18f266463a5eadecd525769a78adaebb1e459
PHP
tmalidin33/Projet_Web_Questionnaire
/classes/DatabasePDO.class.php
UTF-8
606
3.015625
3
[]
no_license
<?php class DatabasePDO{ static $DB_HOST = 'localhost'; static $DB_NAME = 'projet_web'; static $DB_USER = 'root'; static $DB_PWD = 'root'; static $PDO = NULL; private function __construct(){} public static function getPDO(){ if(is_null(self::$PDO)){ try{ self::$PDO = new PDO("mysql: ...
true
2580928e6fc8c6e7155ba8d40af86da705d5d6a8
PHP
Rainzfw/bugtracker
/business/userService/model/User.php
UTF-8
886
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2017/1/16 * Time: 17:06 */ namespace business\userService\model; use yii\db\ActiveRecord; class User extends ActiveRecord { public static function tableName(){ return '{{%user}}'; } public function rules(){ return [ ...
true
98c1734d316b09d3bde8c1ab86777fa3481a802b
PHP
dabingli/php
/day1.php
UTF-8
512
3.140625
3
[]
no_license
<?php echo "123<br>"; $age = $people = 10; echo $age."<br>"; $_age = isset($age); echo $_age."<br>"; var_dump(empty($age)); echo "<br>"; $c = &$age; echo $c; echo "<br>"; $a = 0; $b = 0; if($a = 3 || $b = 3){ $a++; $b++; } var_dump($a); var_dump($b); echo $a."====".$b; echo "<br>"; $c = 3 + 5*5; ...
true
0b96415cd9bbbb6a1f333db70c47824146ba5224
PHP
thaiq8nguyen/SugarNailsManagement
/php/Class.Technician.php
UTF-8
1,005
2.796875
3
[]
no_license
<?php $base = dirname(dirname(__FILE__)); require ($base. '/php/Connection.php'); /** * Created by PhpStorm. * User: tnguyen * Date: 8/10/2016 * Time: 11:49 AM */ class Technician { private $firstName; private $lastname; private $position; private $saleCommissionRate; private $tipCommissionRate...
true
e64c93d20333e104f8fc2b577e501076126033e0
PHP
NaderElmor/bric_php
/connection.php
UTF-8
7,742
2.75
3
[]
no_license
// This is a class responsible of interacting with an API, what recomendations do you have for this? No need to code them just explaining what can be improved is fine /* I think we have to make a general trait has several methods to return responses to make this code less noisy */ <?php namespace App\Modules\CarSha...
true
cee292ce05518339e58b4373a414c658d3dcf10f
PHP
cnryng/SongDatabaseCOMP2221
/HTML_and_PHP/AverageSoldArtist.php
UTF-8
708
2.71875
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = "root"; $database = "Song Database"; $AName=$_POST['AName']; $conn = new mysqli($servername, $username, $password, $database); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $query = "SELECT avg(Amoun...
true
e620e13bf24a8313e5d4fe54d6a053b08e8dc501
PHP
PLCCKochi/PLCCLegal
/app/Models/Advocate.php
UTF-8
1,753
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Backpack\CRUD\CrudTrait; class Advocate extends Model { use CrudTrait; /* |-------------------------------------------------------------------------- | GLOBAL VARIABLES |-----------------------------------------------------------------...
true
36c14f64b3cdd20e400e23b3245a6122f03e55bc
PHP
dotmaker619/jobcube
/jobcube2_2.2.4/include/base/QueryParser.php
UTF-8
8,443
2.796875
3
[]
no_license
<?php //★クラス // /** @brief POSTクエリの手動解析用クラス @details 大容量ファイルのアップロードに対応するための処理をまとめたクラスです。 @remarks このクラスを使用する場合は php.ini の enable_post_data_reading を無効にするか、または post_max_size と upload_max_filesize の値を一致させてください。\n (post_max_size を超えずに upload_max_filesize だけを超えた場合、POSTクエリの手動読み込みができなくなります) */ class ...
true
0223ba2389edf9a025a0ee21707c70bccaf04cbd
PHP
open-source-contributions/LicensePlate
/src/PBurggraf/LicensePlate/LicensePlateFactory.php
UTF-8
2,074
3.140625
3
[]
no_license
<?php namespace PBurggraf\LicensePlate; use PBurggraf\LicensePlate\Detector\AbstractDetector; use PBurggraf\LicensePlate\Response\LicensePlateResponse; /** * @author Philip Burggraf <philip@pburggraf.de> */ class LicensePlateFactory { /** * @var string */ protected $licensePlate; /** * ...
true
795a1d7aafc22383009c408c51306a593afd226f
PHP
NanaBarimah/inventory
/app/Admin.php
UTF-8
1,265
2.53125
3
[]
no_license
<?php namespace App; use Laravel\Passport\HasApiTokens; use Illuminate\Notifications\Notifiable; //use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Database\Eloquent\SoftDeletes; class Admin extends Authenticatable { use Notifiable, SoftDeletes...
true
ffada4a236bd5d5215e1c95a644333db7ce8fb46
PHP
ysc8620/lephp
/lib/core/driver/mysql.core.php
UTF-8
10,598
2.59375
3
[]
no_license
<?php define ( 'CLIENT_MULTI_RESULTS', 131072 ); class core_driver_mysql extends core_db { /** +---------------------------------------------------------- * 架构函数 读取数据库配置信息 +---------------------------------------------------------- * @access public +------------------------------------------------...
true
5d8bbfe41116a08170a4e970d2a03573ae9dd9ee
PHP
Sbipul/Student-Management-System-PHP
/entry.php
UTF-8
3,038
2.59375
3
[]
no_license
<?php session_start(); if (!isset($_SESSION['bip'])) { session_destroy(); header('location:login.php'); } include_once('header.php'); if (isset($_POST['submit'])) { $s_name = $_POST['s_name']; $s_age = $_POST['s_age']; $s_father = $_POST['s_father']; $s_mother = $_POST['s_mother']; $s_division = $_P...
true
13d1557fc943f95cc3367a4e6a2750233d065369
PHP
kerlyklee/fakeSpotify
/includes/classes/Account.php
UTF-8
3,661
3.15625
3
[]
no_license
<?php class Account { private $connection; private $errorArray; public function __construct($connection) { $this->connection = $connection; $this->errorArray = array(); } public function register($fn, $ln, $un, $em, $em2, $pas, $ckpas) { $this->validateFirstname($fn); ...
true
330033e51075afe374261b27a31060bae73ab64f
PHP
RobsonMacedo/cursophp7-dao2
/index.php
UTF-8
1,548
3.140625
3
[]
no_license
<?php // essa é o arquivo inicial, conectamos no config e acessamos as classes via config.php require_once('config.php'); // Está funcionando ... traz todos os dados da tabela /* $sql = new Sql(); $usuarios = $sql->select('SELECT * FROM tb_usuarios'); echo json_encode($usuarios); */ // Está funcionando ... traz ...
true
2ff5bf5294b76bbcc160c2173bd4fd7d5d351d4b
PHP
carloscastro313/TP5_bisbis
/backend/eliminar.php
UTF-8
1,102
2.890625
3
[]
no_license
<?php require_once("../Clases/Fabrica.php"); $legajo = $_GET['legajo']; $empleados = array(); $archivo = array(); $ar = fopen("../Archivos/empleados.txt","r"); $flag = false; while(!feof($ar)) { $listado = fgets($ar); $archivo = explode(" - ",$listado); $archivo[...
true
2ebd7022e97220eff7f0174aa9ea711610a9a8e7
PHP
geekscode/Geeks
/IT/menu.php
UTF-8
1,059
2.53125
3
[]
no_license
<?php include 'conf/config.php'; echo "<ul class=\"nav\"> <li class=\"\"><a href=\"media.php?module=home\"><i class=\"icon-home icon-white\"></i> Home</a></li>"; $sql= mysql_query("SELECT * from mainmenu where aktif='N' order by idmain"); while ($r = mysql_fetch_array($sql)) { echo "<li class=\"dropdown\">"; ...
true
f4c311f996f231de5418812e59df20ff7cf0337e
PHP
fumiyasac/caketest
/app/views/helpers/gourmet_map.php
UTF-8
3,994
3
3
[]
no_license
<?php /** * 第1回:大塚グルメマップ用変数 * API表示用ヘルパー */ class GourmetMapHelper extends AppHelper{ //API取得情報のページングを行う function apiPagenate($page, $maxDataCount , $conditions = array(), $itemsPerPage = 10){ $page_tag = ""; $minPage = 1; $maxPage = ceil($maxDataCount / $itemsPerPage); ...
true
c2236792538581fbad321f2c067a5865aa8b35ec
PHP
abdoulk9/PHP
/BlogEntraideM2i_V2/daos/UtilisateursIDAO.php
UTF-8
4,007
3.1875
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. */ declare(strict_types = 1); require_once 'IDAO.php'; class UtilisateursIDAO implements IDAO{ function selectAll(PDO $pdo...
true
70fa5eb0ba025c329c18ac0edcd808d9255d2dd0
PHP
wellnet/devel
/modules/webprofiler/src/Twig/Extension/CodeExtension.php
UTF-8
1,839
2.875
3
[]
no_license
<?php namespace Drupal\webprofiler\Twig\Extension; use Symfony\Component\HttpKernel\Debug\FileLinkFormatter; use Twig\Extension\AbstractExtension; use Twig\TwigFilter; /** * Twig extension relate to PHP code and used by Webprofiler. */ class CodeExtension extends AbstractExtension { /** * The File link forma...
true
48cc25f5d5e8ce2e99f32a0304f62d187c4c1c90
PHP
1suming/CenturyServer
/command/ActRandomOne.php
UTF-8
514
2.546875
3
[]
no_license
<?php // 随机返回一条词汇 include_once 'BaseCommand.php'; class ActRandomOne extends BaseCommand { protected function executeEx($params) { // 是否是需要审核的词汇 include_once PATH_HANDLER . 'ActionHandler.php'; $words = new ActionHandler ( $uid ); $des=$words->getRandomOne(1); $act=$words->getRandomOne(2); $ret = array ( ...
true
0d351bf1dd8095989baeda18a12b91b77cf54fd4
PHP
TheHuebschi/xml-webapp
/frontend/php/challenges_add.php
UTF-8
2,597
2.765625
3
[]
no_license
<?php $id = htmlspecialchars($_POST["id"]); $companyId = htmlspecialchars($_POST["companyId"]); $title = htmlspecialchars($_POST["title"]); $price = htmlspecialchars($_POST["price"]); $description = htmlspecialchars($_POST["description"]); $xml = simplexml_load_file('../../database/ch...
true
3c438a68421980cdda05ed00cc35e60c3bfc70b3
PHP
vincebru/siteTechnoWeb
/dto/MenuLink.php
UTF-8
694
3.21875
3
[]
no_license
<?php class Link{ private $menuLabel; private $menuLink; private $page; function __construct($menuLabel,$menuLink,$page){ $this->menuLabel=$menuLabel; $this->menuLink=$menuLink; $this->page=$page; } public function getMenuLabel() { return $this->menuLabel; } public function setMenuLabel($menu...
true
95b16ee4c3306e04a7ca4c35e2673b611e91ffc5
PHP
venessantonio/EASCUSTOMS90
/ADMIN/AssistantManager/process/getVehicleData.php
UTF-8
692
2.625
3
[ "LicenseRef-scancode-other-permissive" ]
permissive
<?php require "require/dataconf.php"; if(isset($_POST["group_id"]) && !empty($_POST["group_id"])){ //Get all state data $query = $connection->query("SELECT * FROM vehicles WHERE personalId= ".$_POST['group_id']." ORDER BY plateNumber ASC"); //Count total number of rows $rowCount = $query-...
true
c4bae42d72053b7fd23131c696d459ddf0a7ec10
PHP
boyvn2911/sconnect
/src/Models/ListDepartmentResponse.php
UTF-8
1,178
2.65625
3
[]
no_license
<?php namespace SonLeu\SConnect\Models; class ListDepartmentResponse extends Response { /** @var ListDepartmentData */ protected $data; /** * @return ListDepartmentData */ public function getData() { return $this->data; } /** * @param ListDepartmentData $data ...
true
bd6d7902c30245930b36e5a256f57243c1c7ce56
PHP
igasi/hero
/classes/results.class.inc
UTF-8
753
2.625
3
[ "MIT" ]
permissive
<?php /* *igasi */ abstract class ero_results { //Properties definition protected $current_nid = NULL; protected $results = array( 'arithmetic' => array(), 'dbo' => array(), 'hierarchy' => array() ); //Definition abstract functions for hierarchy class abstract protected function ...
true
ad78b69b3164305107799bb8b6ea04fba2f80cee
PHP
toastnz/silverstripe-modular
/code/helpers/LogOutputWriter.php
UTF-8
752
2.953125
3
[]
no_license
<?php class LogOutputWriter extends Zend_Log_Writer_Abstract { private $messageType; public function __construct($messageType) { $this->messageType = $messageType; } /** * Write a message to the output buffer, if cli append an eol, if not append a html break then eol. * * @param array $event log data ev...
true
19c2958e6314581b737ef9594ba9a2869c5ec8d0
PHP
leonbobster/dynamodb-query-builder
/src/Lbstr/DynamoDb/QueryBuilder/QueryBuilderException.php
UTF-8
938
2.84375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: leonidbobylev * Date: 4/19/16 * Time: 6:16 AM */ namespace Lbstr\DynamoDb\QueryBuilder; /** * Class QueryBuilderException * * @package Lbstr\DynamoDb\QueryBuilder */ class QueryBuilderException extends \Exception { /** * @param string $message ...
true
f5d5ea0bafa92d49150f02ed12039ab2d5bc2a95
PHP
SujaySKumar/ePrescription
/ePrescriptionPHP/ePrescription/setType.php
UTF-8
1,475
2.671875
3
[]
no_license
<?php include_once './DbConnect.php'; function createNewCategory() { if (true/*isset($_POST["Name"]) && $_POST["Name"] != "" && isset($_POST["Phone"]) && $_POST["Phone"] != "" && isset($_POST["Symptoms"]) && $_POST["Symptoms"] != "" */) { // response array for json $response = array(); $...
true
706df6c7e05ebfbbbc151c13537af459ffda23b5
PHP
MarsCube/AlgorithmByPhp
/leetcode/151-200/162.php
UTF-8
1,153
3.828125
4
[]
no_license
<?php /** * 寻找峰值 中等难度 * 峰值元素是指其值大于左右相邻值的元素。 给定一个输入数组 nums,其中 nums[i] ≠ nums[i+1],找到峰值元素并返回其索引。 数组可能包含多个峰值,在这种情况下,返回任何一个峰值所在位置即可。 你可以假设 nums[-1] = nums[n] = -∞。 示例 1: 输入: nums = [1,2,3,1] 输出: 2 解释: 3 是峰值元素,你的函数应该返回其索引 2。 示例 2: 输入: nums = [1,2,1,3,5,6,4] 输出: 1 或 5 解释: 你的函数可以返回索引 1,其峰值元素为 2;  ...
true
17b013bb5bd5b03db39abce83a0941a3e1ec1da6
PHP
rudra1988/rudra1988.github.io
/old_webpage/publist.php
WINDOWS-1252
7,721
2.890625
3
[]
no_license
<? // // PubList v1.0, a little script for automating the generation // of a list of scientific publications. // Copyright (C) 2006 - Alejandro G. Stankevicius. // // This script is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free ...
true
449d0a8b91949a20f9ca1670198da3544f9f35a3
PHP
plazorax/kirki
/kirki-packages/field-dimensions/src/Dimensions.php
UTF-8
7,348
2.546875
3
[ "MIT" ]
permissive
<?php /** * Override field methods * * @package kirki-framework/field-dimensions * @copyright Copyright (c) 2023, Themeum * @license https://opensource.org/licenses/MIT * @since 1.0 */ namespace Kirki\Field; use Kirki; use Kirki\Field; use Kirki\URL; /** * Field overrides. * * @since 1.0 */ class ...
true
77d1a7451b215227a169754d72a186bd4b934191
PHP
bassemBMI/Hiring-Test
/src/website/Entity/Products.php
UTF-8
2,647
2.546875
3
[]
no_license
<?php namespace SSENSE\HiringTest\Entity; /** * @Entity * @Table(name="products") * */ class Products { /** * @var integer * @Id @Column(name="id", type="integer") * @GeneratedValue */ private $id; /** * @var string * * @Column(name="name", type="text", nullable=f...
true
8410824d909862092df543dc56ec4a3c92d20882
PHP
anifshikder/Exam-Schedule-Website
/config.php
UTF-8
1,344
2.53125
3
[]
no_license
<?php /* Author: Anif Shikder DESCRIPTION AND CONTENTS courses.php: User types a course name (or substrings of) into the form and clicks the "search" button. myexams.js: JavaScript code intercepts the click event, and initiates an Ajax request to look up the course id, course name, section and instructor ...
true
b241bcbb1b5cdf62ad983a3e54c11ba5093a50f4
PHP
GeckoPackages/GeckoBSONFileIterator
/src/Bson/BsonFileIterator.php
UTF-8
7,426
2.890625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of the GeckoPackages. * * (c) GeckoPackages https://github.com/GeckoPackages * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace GeckoPackages\Bson; /** * Iterator (reader) for BSON...
true
2967f8094a4d91800a6f0730e0c5a81ec011bc3f
PHP
Soyhuce/laravel-somake
/test-laravel/app/Domain/User/Data/UserData.php
UTF-8
346
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Domain\User\Data; use Carbon\Carbon; use Domain\User\Enums\Role; use Spatie\LaravelData\Data; class UserData extends Data { public function __construct( public string $name, public string $email, public ?Carbon $email_verified_at, public Ro...
true
f9913a79739fca3e70292fbc44f39aeead194998
PHP
123inkt/internationalization
/src/Money/MoneyProvider.php
UTF-8
2,615
3.28125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace DR\Internationalization\Money; use DR\Internationalization\Number\NumberParser; use InvalidArgumentException; use Money\Currencies; use Money\Currencies\ISOCurrencies; use Money\Currency; use Money\Exception\ParserException; use Money\Money; use Money\Parser\DecimalMoneyParser...
true
16463eb0cf6070d280ed0201f1cae1a0a50dfa03
PHP
AntoniaBall/atypikhouse-api
/src/Security/Voter/CommentsVoter.php
UTF-8
1,444
2.65625
3
[]
no_license
<?php namespace App\Security\Voter; use App\Entity\Comments; use App\Entity\User; use App\Entity\Reservation; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\Authorization\Voter\Voter; use Symfony\Component\Security\Core\Security; use Symfony\Component\Se...
true
c6c080be15333f33e156d669eb75e98a67eafed6
PHP
anomalylabs/files-module
/src/Folder/Contract/FolderInterface.php
UTF-8
1,919
2.5625
3
[ "MIT" ]
permissive
<?php namespace Anomaly\FilesModule\Folder\Contract; use Anomaly\FilesModule\Disk\Contract\DiskInterface; use Anomaly\FilesModule\File\FileCollection; use Anomaly\Streams\Platform\Entry\Contract\EntryInterface; use Anomaly\Streams\Platform\Stream\Contract\StreamInterface; use Illuminate\Database\Eloquent\Relations\Has...
true
4b261a8a314a02a59eb7cf54ab351065235b047d
PHP
dmathew885/php-project
/details.php
UTF-8
2,503
2.546875
3
[]
no_license
<h1> booKKart </h1> <span> <a href="index.html">home</a> <a href="store.php">store</a> </span><br> <?php session_start(); if($_SERVER['REQUEST_METHOD']=='GET'){ $_SESSION['id'] = $_GET['id']; $productid = $_GET['id']; require("mysqli_connect.php"); $q = "SELECT * FROM products WHERE produc...
true
dfe4e7b8b78e202a95e3bac4a6bfab1e712383c6
PHP
aaaahoang123/laravel-sample
/app/Repositories/Eloquent/ContactMessageRepositoryEloquent.php
UTF-8
1,383
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Eloquent; use HoangDo\Common\Repository\RepositoryEloquent; use App\Repositories\Contract\ContactMessageRepository; use App\Models\ContactMessage; /** * Class ContactMessageRepositoryEloquent. * * @package namespace App\Repositories\Eloquent; */ class ContactMessageRepositoryEloq...
true
a2141c86408e2aeeb4437aacd2b465e5a06238d7
PHP
lostkill33/projet_4
/blog_comm/model/UserAdmin.php
UTF-8
2,214
2.578125
3
[]
no_license
<?php include_once "manager.php"; class UserAdmin extends Database_blog { private $table_name = "user"; function createaccount($pseudo,$password) { $db = $this->db_blog(); $stmt = $db -> prepare("SELECT id FROM " . $this -> table_name . ' WHERE pseudo = ...
true
5759fb80d41d38444a89d306eedfbfff97267789
PHP
Pouchopa/Master_Info_Groupe_B
/Sources/medicalmanage.fr/app/database/migrations/2016_02_07_202656_create_rdvs_table.php
UTF-8
837
2.65625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateRdvsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('rdvs', function(Blueprint $table) { $table->increments('id')->index(); $tab...
true
ea36f3715940ed618aee2f774ac57ba1081796db
PHP
packaged/mutex
/src/Mutex.php
UTF-8
5,192
3.265625
3
[ "MIT" ]
permissive
<?php namespace Packaged\Mutex; use Packaged\Mutex\Exceptions\LockFailedException; use Packaged\Mutex\Interfaces\IMutexProvider; class Mutex { /** * By default a mutex will only be locked for this long (in seconds) * NOTE: This should be a reasonable amount less than PHP's max execution time */ const DEF...
true
bddd491ce3cfb1628e7b6b297f16502d0e02c190
PHP
peteraba/Wigez
/tests/unit/Foo/Grid/Pagination/PaginationTest.php
UTF-8
5,122
2.703125
3
[]
no_license
<?php namespace Foo\Grid\Pagination; use PHPUnit\Framework\TestCase; class PaginationTest extends TestCase { /** * @return array */ public function getToDataProvider() { return [ [1, 10, 10, 5, 10], [11, 10, 23, 5, 20], [16, 5, 3223, 5, 20], ]...
true
848b54f956b6fcd4f9dcb500836147f83b4b9ab1
PHP
jpcid/xapi
/Client/Api/AgentProfileApiClientInterface.php
UTF-8
1,818
2.53125
3
[ "MIT" ]
permissive
<?php /* * This file is part of the xAPI package. * * (c) Christian Flothmann <christian.flothmann@xabbuh.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Xabbuh\XApi\Client\Api; use Xabbuh\XApi\Common\Model\AgentPr...
true
b09a04be5b0bc26794cf2c198ec46958278ace10
PHP
e7d/ifconfig
/app/src/Types/Subdivision.php
UTF-8
780
3.03125
3
[ "MIT" ]
permissive
<?php namespace IfConfig\Types; use JsonSerializable; class Subdivision extends AbstractType implements JsonSerializable { protected string $name; protected string $isoCode; public function __construct( string $name, string $isoCode ) { $this->name = $name; $this->iso...
true
8d9130e92824fae383bf33ae694e5c59fca22a21
PHP
Chiff/webtech-2019
/public/api/results.php
UTF-8
1,770
2.765625
3
[]
no_license
<?php require_once('../../src/helpers.php'); header('Content-type: application/json; charset=utf-8'); if(!isset($_SESSION) || !isset($_SESSION["uid"])) { writeError(401, 'Unauthorized', "Ak chces pokracovat prihlas sa!"); return; } $conn = new mysqli($hostname, $username, $password, $dbname); $conn->set_char...
true
05c6c77c77a80ca578ecc1439b2e27f96a029087
PHP
jayankaghosh/tmvc
/Core/Tmvc/Framework/Command/Cache/Clean.php
UTF-8
1,498
2.703125
3
[]
no_license
<?php /** * * @package tmvc * @author Codilar Technologies * @license https://opensource.org/licenses/OSL-3.0 Open Software License v. 3.0 (OSL-3.0) * @link http://www.codilar.com/ */ namespace Tmvc\Framework\Command\Cache; use Tmvc\Framework\Cache; use Tmvc\Framework\Cli\AbstractCommand; u...
true
e5c4bab98a957b51ae6c42a60473cf7ca4509a2d
PHP
iramgutierrez/vitem
/app/Vitem/WebServices/UserWebServices.php
UTF-8
5,956
2.5625
3
[ "MIT" ]
permissive
<?php namespace Vitem\WebServices; use Vitem\Filters\ACLFilter; use Vitem\Repositories\UserRepo; class UserWebServices extends BaseWebServices { /*public function getModel() { return new User; }*/ static function all(){ $store_id = (!empty($_GET['store_id'])) ? $_GET['store_id'] : false; $return = User...
true
a7ebafb8d10e1e4fd79be9b202cda31534eae474
PHP
id0612/initphp
/initphp/core/dao/db/sqlbuild.init.php
UTF-8
6,162
2.984375
3
[ "BSD-3-Clause" ]
permissive
<?php if (!defined('IS_INITPHP')) exit('Access Denied!'); /********************************************************************************* * InitPHP 3.8.2 国产PHP开发框架 Dao-sqlbuild 数据字段安全封装类 *------------------------------------------------------------------------------- * 版权所有: CopyRight By initphp.com * 您可以自由使用该...
true
918ed8393cd8845ea1c3a0d0c11a0a097b8a138a
PHP
yz-fraction/portfolio-fraction
/CodeIgniter-draft-homework/movieslist/application/models/Records.php
UTF-8
2,182
2.765625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Records extends CI_Model { var $table = 'records'; var $key_ID = 'ID'; public function __construct() { parent::__construct(); } public function name_by_ID( $ID = FALSE ) { # Query. $this-> db-> select( ''.$this->key_ID.', title' ); $this-> db-> where( $this->table.'.'.$thi...
true
5b43d9688775bf49a499262dd9ac6573a7d7d3d8
PHP
murmeliLUT/wwwSovHarkkatyo
/DHandler.php
UTF-8
4,028
2.609375
3
[]
no_license
<?php require_once "recaptchalib.php"; require_once "checker.php"; require_once "utils.php"; require_once "DBHandler.php"; /* File to handel all data steams but login and registeration (excluding recaptha). Contorller part of MVC design pattern. Calls utils.php, or javaS.js when using AJAX, to print views an...
true
d17ad137338fb2026f23205cc7080105628b108c
PHP
mateuszlichwiarz/Cake
/tests/TestCase/Human/StarverClassTest.php
UTF-8
385
2.75
3
[]
no_license
<?php namespace App\tests\TestCase\Human; use App\Human\StarverClass; use Cake\TestSuite\TestCase; class StarverClassTest extends TestCase { public function testAddFamine(): void { $starver = new StarverClass; $starver->setFamine(2); $starver->setStarvation(0.15); $result = $starver->addFamine(); $prop...
true
63cb538f4f50c2d8800725f820789bd85ce5a5dd
PHP
meritlouka/social
/social/Modules/Post/Repositories/PostRepositoryServiceProvider.php
UTF-8
662
2.546875
3
[ "MIT" ]
permissive
<?php namespace Modules\Post\Repositories; use Modules\Post\Entities\post; use Modules\Post\Repositories\PostRepository; use Illuminate\Support\ServiceProvider; /** * Register our Repository with Laravel */ class UserRepositoryServiceProvider extends ServiceProvider { /** * Registers the pokemonInterface with...
true
8f670ff8c9a131e611c4547d8f50ab22ca4e2ffa
PHP
polyerter/laravel-sberbank-acquiring
/src/Client/Curl/CurlInterface.php
UTF-8
1,982
2.859375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php declare(strict_types=1); namespace Avlyalin\SberbankAcquiring\Client\Curl; interface CurlInterface { /** * Инициализирует сеанс CURL * * @param string $url URL * * @return mixed */ public function initialize(string $url = ''); /** * Устанавливает несколько параме...
true
1168956cb474e9c7833e481a38f099b77f0636fd
PHP
leo7962/orden-de-trabajo
/model/modelOS.php
UTF-8
1,092
2.59375
3
[]
no_license
<?php include "../data base/conexion.php"; class OS extends conexion { public function agregar(){ private $idOS=$_POST['idOS']; private $OSnombre=$_POST['OSnombre']; $SQL = "insert into mydb values('','".$idOS."','".$OSnombre."')"; $query= mysql_query($SQL); if($query){ echo"se ha insert...
true
98c51430cf39b6eb4deaa7e657751e4cba466639
PHP
daxitasonar02/all-days
/array_extra_work.php
UTF-8
3,769
4.0625
4
[]
no_license
Array function <?php //array count() $arr = array('php','c','c++','java','Android'); echo count($arr); //array_count_value() $arr = array("C","php","c","android","php","java"); $newarr = array_count_values($arr); foreach ($newarr as $key => $value) { echo "<br/>$key - <strong>$value</strong> ";...
true
c26c78fb7267cf1dfda1dd170d4360ff8d0f1fa1
PHP
kakirigi/ostreidae
/src/Orchestra/Story/Parsers/Markdown.php
UTF-8
396
2.5625
3
[]
no_license
<?php namespace Orchestra\Story\Parsers; use dflydev\markdown\MarkdownExtraParser; class Markdown extends Parser { /** * {@inheritdoc} */ protected function initiate() { $this->parser = new MarkdownExtraParser; } /** * {@inheritdoc} */ public function parse($conten...
true
862467940524f4fa4f9e7dc1eaba13884c72ccad
PHP
davibr/sonserina-pay
/src/App/Domain/Services/CheckServiceInterface.php
UTF-8
496
2.828125
3
[]
no_license
<?php declare(strict_types=1); namespace App\Domain\Services; use App\Domain\Entities\CheckService; use App\Domain\Entities\Transaction; /** * Interface CheckServiceInterface * @package App\Domain\Services * * Interface dos serviços de checagem para ter um método igual em todos para checagem de uma transação *...
true
4add914e04d9e2e88d0c4f4fdd0d100abf9aea63
PHP
bobby569/CodePath_WebSecurity
/Assignment4/globitek/private/validation_functions.php
UTF-8
3,267
3.203125
3
[ "Apache-2.0" ]
permissive
<?php // is_blank('abcd') function is_blank($value='') { return !isset($value) || trim($value) == ''; } // has_length('abcd', ['min' => 3, 'max' => 5]) function has_length($value, $options=array()) { $length = strlen($value); if(isset($options['max']) && ($length > $options['max'])) { retu...
true
4d77e2a3eafcf017ebbdafa059a9b88417612f47
PHP
aledefreitas/vivapets-moloni-magento2
/Model/Endpoints/CurrenciesEndpoint.php
UTF-8
585
2.640625
3
[ "Apache-2.0" ]
permissive
<?php /** * @author Alexandre de Freitas Caetano <alexandrefc2@hotmail.com> */ namespace Vivapets\Moloni\Model\Endpoints; use Vivapets\Moloni\Model\Endpoint; use Vivapets\Moloni\Api\Endpoints\CurrenciesEndpointInterface; class CurrenciesEndpoint extends Endpoint implements CurrenciesEndpointInterface { /** ...
true
216c105ef0759687781a9ae4c1913a797d27f2c6
PHP
heike07/taoblog
/admin/models/options.php
UTF-8
1,340
2.765625
3
[]
no_license
<?php class TB_Options { public function get($name, $def=''){ global $tbdb; $sql = 'SELECT value FROM options WHERE name=? LIMIT 1'; if($stmt = $tbdb->prepare($sql)){ $stmt->bind_param('s', $name); $stmt->execute(); $stmt->bind_result($value); $stmt->fetch(); $stmt->close(); return $value ? $...
true
bc269520971855485b4c2b70290bd2b4e1c83f48
PHP
brightmachine/scrutiny
/tests/Probes/PhpExtensionLoadedTest.php
UTF-8
953
2.640625
3
[ "MIT" ]
permissive
<?php namespace ScrutinyTest\Probes; use Exception; use Illuminate\Support\Str; use Scrutiny\Probes\PhpExtensionLoaded; use ScrutinyTest\TestCase; class PhpExtensionLoadedTest extends TestCase { /** @test */ public function passesIfAnExtensionIsLoaded() { $loaded = get_loaded_extensions(); ...
true
0910ffae327fc29191fba28ce9e19414cab7040e
PHP
bjorndragland/carcscores
/objekter/spiller.php
UTF-8
1,700
3.0625
3
[]
no_license
<?php header('Content-Type: text/html; charset=utf-8'); class spiller { // database connection and table name private $conn; private $table_name = 'spiller'; // spiller attributter public $SpillerID; public $SpillerFornavn; public $SpillerOmgang; public $SpillerResultat; // const...
true
5625882b5ea22ebc3be7ab57c9896fde4b9bf215
PHP
Shahriar201/school_management_system
/app/Http/Controllers/Backend/Setup/SubjectController.php
UTF-8
1,690
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Backend\Setup; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Model\StudentClass; use App\Model\Subject; use DB; class SubjectController extends Controller { public function view(){ $data['allData'] = Subject::all(); re...
true
c49e3a120ba22103e7f128b94ae70250b1d468a3
PHP
theobour/LO10-backend
/api/reservation.php
UTF-8
2,001
2.515625
3
[]
no_license
<?php require('../config/header.php'); require('../config/conn.php'); require('auth_check.php'); // Pour retourner du JSON partout header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); if ($_SERVER['REQUEST_METHOD'] == "GET" && isset($_GET['locataire_id'])) { // Permet ...
true
7add2b8f6c8b16accb0e63648fd24d7c77453f7b
PHP
mahmud83/thermal-scanner
/app/Models/DashboardModel.php
UTF-8
5,522
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use CodeIgniter\Model; use Config\Database; use DateInterval; use DateTime; use Exception; class DashboardModel extends Model { protected $db; function __construct() { parent::__construct(); $this->db = Database::connect(); } function getDetectionCount...
true
63f120e7b5063b1a250954be28b5dffe1919a274
PHP
ksander142/YetiCave
/www/login.php
UTF-8
2,692
2.5625
3
[]
no_license
<?php require_once "helpers.php" ; $rows_cat = select('id, name as categories', 'categories'); $categories = []; foreach ($rows_cat as $row_cat) { $categories[] = $row_cat['categories']; } $is_auth = 0; $user_name = ''; $title = 'Главная страница' ; $errorForm = [ 'form' => 'the good' ]; $rules = []; if (!...
true
e5c16a605b8e853807d46cb2c8c59d356c97620b
PHP
KevinMasson/Advent_of_code
/Puzzle25/index.php
UTF-8
555
2.921875
3
[]
no_license
<?php $data = fopen('data.txt', 'r'); $DataArray=array(); while(!feof($data)){ $Line = fgets($data); array_push($DataArray, trim($Line)); } $EarlierTime=$DataArray[0]; $Buses=explode(',',$DataArray[1]); $Find=false; $Time=$EarlierTime; while (!$Find){ foreach($Buses as $Key => $Value){ if($Value!="x"){ if($Ti...
true
d443b61231719338822b03912470ff173173745c
PHP
MansonOrYmc/youyao99
/QA/app-youyao-core/2017_06_01/classes/dao/sms/SMSInfo.php
UTF-8
4,839
2.515625
3
[ "MIT" ]
permissive
<?php apf_require_class("APF_DB_Factory"); class Dao_Sms_SMSInfo { private $pdo; public function __construct() { $this->pdo = APF_DB_Factory::get_instance()->get_pdo("master"); } public function dao_send_sms_notify($data) { Logger::info(__FILE__, __CLASS__, __LINE__, var_export($data, true)); ...
true
bac56891ff2335fd839e87ba6fa74a4e7f143e2e
PHP
thuatnt2/LibraryManagement
/app/Plugin/Usermgmt/Controller/FacultiesController.php
UTF-8
3,550
2.578125
3
[]
no_license
<?php App::uses('AppController', 'Controller'); /** * Faculties Controller * * @property Faculty $Faculty * @property PaginatorComponent $Paginator */ class FacultiesController extends AppController { /** * Components * * @var array */ public $components = array('Paginator'); /*...
true
fac5ee54a42eccd99acc5c8b3d4f4bca0d6104f5
PHP
ahmadsaubani/laravel7.2-micro-services
/book/app/Http/Responser/ResponseCollection.php
UTF-8
393
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Responser; use Illuminate\Database\Eloquent\Builder; final class ResponseCollection extends AbstractResponse { public function __construct($pageSize = 1000) { parent::__construct(null, $pageSize); } public function render(Builder $qb) { $data = $qb->p...
true
d58f992174533168013f02f8a137f954632fc934
PHP
vanhungbkcbg1/5.3
/app/Http/Controllers/StudentController.php
UTF-8
1,334
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Grade; use App\Student; use Illuminate\Http\Request; class StudentController extends Controller { // public function __construct() { $this->middleware('auth'); } public function index(Request $request){ $content=$request->input('conte...
true
6bcbfeb0a2de2195c0a07b1ea0f2f8231ba1a470
PHP
cebe/highlight.php
/Highlight/Languages/SmallTalk.php
UTF-8
3,404
2.625
3
[ "BSD-2-Clause" ]
permissive
<?php /* Copyright (c) * - 2006-2013, Vladimir Gubarkov (xonixx@gmail.com), highlight.js * (original author) * - 2013, Geert Bergman (geert@scrivo.nl), highlight.php * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provi...
true
b48be7771f803224d9a4e187b462a37a36079278
PHP
quansitech/qs-grid-import
/src/Grid/Row.php
UTF-8
1,966
2.75
3
[]
no_license
<?php namespace QsGridImport\Grid; use QsGridImport\Grid; use QsGridImport\Helper; class Row{ protected $cells = []; protected $children; protected $error; public function __construct($option, $data) { foreach($data as $key => $val){ $data_option = Helper::getDataOptionByKe...
true
5aad53fe7ebb006c0109e8fdbbcf6d2550940895
PHP
claudionts/Calendario_OPP
/app/Model/EventoInfo.php
UTF-8
1,576
2.890625
3
[]
no_license
<?php namespace App\Model; class EventoInfo{ private $id_usuario; private $id_evento; private $title; private $color; private $start; private $end; /** * @return int */ public function getIdUsuario() { return $this->id_usuario; } /** * @param int $va...
true
09a7420fb69aacecae4ab32508c53d2b6b3e9a91
PHP
Deathshadowown/camagru
/core/database/connection.php
UTF-8
228
2.53125
3
[]
no_license
<?php $dest = 'mysql:host=localhost; dbname=camagru'; $user = 'root'; $pass = 'Gooseberry211'; try{ $pdo = new PDO($dest, $user, $pass); }catch(PDOException $error){ echo 'Connection error! ' . $error->getMessage(); } ?>
true
564e2b3c26f63402b0ab9b6ddd5d436e176f1b6f
PHP
diegovernan/laravel_calendar
/src/LaravelCalendarClass.php
UTF-8
1,307
2.71875
3
[]
no_license
<?php namespace DiegoVernan\LaravelCalendar; use DiegoVernan\LaravelCalendar\Exceptions\AuthException; use DiegoVernan\LaravelCalendar\Services\Event; use Illuminate\Support\Facades\Redirect; class LaravelCalendarClass extends CalendarConnection { public function __construct($config, $userId = null) { if (class_...
true
bb53b6d84580b8e1767dc862b64173ad8313ac87
PHP
zhouweiaccp/php5start
/03/code3_49.php
GB18030
427
2.953125
3
[]
no_license
<?php /*file_get_contentsڣʹԶİ汾 file_get_contentsPHP4.2.0б״롣*/ if(!function_exists("file_get_contents")) { function file_get_contents($filename){ $handle = fopen ($filename, "r"); $contents = fread ($handle, filesize ($filename)); fclose ($handle); return $contents; } } $string = file_get_cont...
true
9e4b47b68e9bf1bf8026f23df1b59d42c9194471
PHP
tsantos84/datatable
/src/Tavs/DataTable/View.php
UTF-8
838
2.9375
3
[]
no_license
<?php namespace Tavs\DataTable; /** * Class View * @package Tavs\DataTable */ class View implements \ArrayAccess { public $vars = array(); /** * @param mixed $offset * @return bool|void */ public function offsetExists($offset) { return array_key_exists($off...
true
e16cf4b394a332ffc5727d7740f0265c7d5c0cfc
PHP
xtzero/xtPHP
/lib/model/coreModel.php
UTF-8
6,255
2.65625
3
[]
no_license
<?php namespace lib; class coreModel{ protected $_table = ''; protected $_where = null; protected $_field = '*'; protected $_join = []; protected $_sql = ''; protected $_mode = ''; //select insert update delete protected $_page = 0; protected $_limit = 0; protected $_order = []; ...
true
8c1cb3848f1012cf877b1f14451ee46064be3a9c
PHP
mantey/dolop
/app/controllers/ListController.php
ISO-8859-1
1,163
2.546875
3
[ "MIT" ]
permissive
<?php class ListController extends BaseController { public function getCreate() { return View::make('add_list'); } public function postCreate() { //criando regras de validao $regras = array('title' => 'required'); //executando validao $validacao = Validator::make(Input::all(), $regras); //se a...
true
56c21c8d87ab4ee9a6cad8374ec07152afb2d5fe
PHP
LockonF/ExamenNative2
/php/controller/listmaterias.php
UTF-8
1,019
2.625
3
[]
no_license
<?PHP require_once '../model/Materia.php'; require_once '../model/Examen.php'; require_once '../model/Session.php'; if(!Session::isExamenActive()) { Session::unsetExam(); } /* * Si no tenemos sesión de examen, entonces generamos un nuevo examen */ if(!Session::isExamenSet()) { $_SESSION["numPasos"]=0; $...
true
4044f6fbb2ca117b8fba49785249770e35c4d3bd
PHP
M-Hidayatullah/Laravel-Passport-and-Vue-Js-Authentication
/app/Http/Controllers/RegisterController.php
UTF-8
943
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; use App\Models\User; class RegisterController extends Controller { public function register(Request $request) { $validator = Validator::make($request-...
true
e41d084fa6e282f1e0c50fac42fab57a658414b3
PHP
lezhnev74/pasvl
/src/Validation/ArrayValidator.php
UTF-8
9,003
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace PASVL\Validation; use PASVL\Parsing\Compound\CompoundRuleParser; use PASVL\Parsing\Compound\Tokens\Operand; use PASVL\Parsing\Compound\Tokens\TokenSimpleOperand; use PASVL\Parsing\Problems\UnexpectedCharacter; use PASVL\Parsing\Simple\Tokens\TokenQuantifier; use PASVL\Parsing...
true
63be21c335362d1a1458e1bf5ebd6fe6232eacb4
PHP
aladdinelnozahy/freelanceproject
/admin/edit.php
UTF-8
4,195
2.578125
3
[]
no_license
<?php if(isset($_GET['id'])){ $id = $_GET['id']; $getUser = "SELECT * FROM create_users WHERE id='$id' "; $result = mysqli_query($connection,$getUser); // var_dump( $result); // $row = mysqli_fetch_row($result); $row = $result->fetch_assoc(); // var_dump($row...
true
5dbcd425788d4a302752cbb77e20cbbb7927998f
PHP
ermshiperete/lflexview
/src/Core/View/PHP/PhpKit.php
UTF-8
1,933
2.640625
3
[]
no_license
<?php //-------------------------------------------------------------------------------- // Copyright 2005 - 2009 Arketec Limited. (http://www.arketec.com) // Released under the GPL license (http://www.gnu.org/licenses/gpl.html) //-------------------------------------------------------------------------------- /** * @...
true
d5a525c41c55c9abc0af164e3de91f3fa1c22708
PHP
KRAndroidDevelopment/LizaAlert
/parser/inc/mysql/mysql_connection.php
UTF-8
1,134
2.84375
3
[]
no_license
<? if(!class_exists("mysql_connection")): require_once dirname(realpath(__FILE__)) . '/mysql_exception.php'; class mysql_connection{ public $db_conn; public $host, $login, $password; function __construct($host, $login, $password){ $this->stated = microtime(true); list($this->host, $this->login, $...
true
2e440ade33dec600830fe66254e63543c4b6c028
PHP
nikitagreb/blog
/database/migrations/2019_11_21_055755_create_table_images.php
UTF-8
1,166
2.71875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateTableImages extends Migration { /** @var string */ private const TABLE_NAME = 'images'; /** * Run the migrations. * * @return void */ pu...
true
79db299f5ce19e9d0691be806d850b111e76d037
PHP
Zhengziming/vino
/modeles/Cellier.class.php
UTF-8
2,740
2.875
3
[]
no_license
<?php /** * Class User * Cette classe possède les fonctions de gestion des usager. * * @author Ming * @version 1.0 * @update 2019-02-06 * @license Creative Commons BY-NC 3.0 (Licence Creative Commons Attribution - Pas d’utilisation commerciale 3.0 non transposé) * @license http://creativecommons.org/licenses/b...
true
85157e5ac09fd8764750fcdfedaf6cc4de72709c
PHP
uoitwebteam/xmodule
/src/XModule/MultiColumn.php
UTF-8
1,110
2.703125
3
[]
no_license
<?php namespace XModule; use \XModule\Base\Element; use \XModule\Constants\ElementType; use \XModule\Shared\Functions; use \XModule\Traits\WithId; const DEFAULT_MULTICOLUMN_OPTIONS = [ 'id' => null, ]; class Multicolumn extends Element { use WithId; private $columns; public function __construct(array $colu...
true
4a7516bd0353d66a899ee14151f3123c2ae5ded6
PHP
bryant1410/angular-music-db
/protected/extensions/starship/RestfullYii/actions/EActionRestDELETE.php
UTF-8
2,663
2.609375
3
[ "WTFPL" ]
permissive
<?php Yii::import('RestfullYii.actions.ERestBaseAction'); /** * Action For Rest Deletes * * Provides the action for rest delete behavior * * @category PHP * @package Starship * @subpackage Restfullyii/actions * @copyright Copyright (c) 2013 Evan Frohlich (https://github.com/evan108108) * @license htt...
true
c32137d7076708ee2f49b4664a248dcd99ed36fe
PHP
ssd-tutorials/image-tagging
/completed/pages/index.php
UTF-8
1,988
2.5625
3
[ "MIT" ]
permissive
<?php $objDb = new Dbase(); $search = array(); $objPaging = new Paging(); $offset = $objPaging->_current_page * IMAGES_PER_PAGE; if (isset($_GET['search']) && !empty($_GET['search'])) { $search[] = "%{$_GET['search']}%"; $sql = "SELECT DISTINCT `i`.* FROM `images` `i` LEFT JOIN `tags` `t` ON `t`.`ima...
true
51e64f3b95f8d1b721e67ef2b326f79a607a6ca3
PHP
123jason/Imora
/webservice/src/Oradt/StoreBundle/Entity/I18nCityFollows.php
UTF-8
2,008
2.546875
3
[]
no_license
<?php namespace Oradt\StoreBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * I18nCityFollows */ class I18nCityFollows { /** * @var string */ private $uuid; /** * @var string */ private $userId; /** * @var string */ private $citycode; /** * @var ...
true
b03875cc0b9eba010bdea1e613a2c0e8e52ebc95
PHP
ajs-design/Forma-Fitness---Nov
/admin/plugins/client_measurement_plugin.php
UTF-8
5,701
2.59375
3
[]
no_license
<?php /*-------------------------------- CLIENT MEASUREMENT PHP SECTION ---------------------------------*/ class measurement{ public function __construct($conn) { $this->conn = $conn; return true; } public function insert_new_measurement($c_id, $weight, $height, $chest, $waist, $hi...
true
c243e1439f3f2a1479c8e3ff4b5ae71f9e86adb9
PHP
elreco/probuilds
/app/Http/Controllers/API/RegionController.php
UTF-8
460
2.640625
3
[]
no_license
<?php namespace App\Http\Controllers\API; use App\Http\Controllers\Controller; // REGION use App\Entities\RegionEntity; class RegionController extends Controller { /** * route : /api/regions. * * @return \Illuminate\Http\Response */ public function index() { $return = []; ...
true
3e4bed3cf6f26b20f854e4fcb97e4a4388ab79ce
PHP
FroylanMtz/sistema_lavado
/Administrador/Controllers/Controlador1.php
UTF-8
16,461
2.953125
3
[]
no_license
<?php class Controlador1 { // Variables miembro de la clase private $enlace = ''; private $pagina = ''; public function cargarPlantilla() { //session_start(); // Si la variable de sesión está iniciada se incluye la plantilla, de lo contrario // se direcciona ...
true