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
a4c6e2b929af9ab6ab82267310eee6a20bf0cfb7
PHP
hou1202/exampro-admin
/application/admin/validate/Mold.php
UTF-8
952
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace app\admin\validate; use app\common\validate\CommonValidate; class Mold extends CommonValidate { /** * 定义验证规则 * 格式:'字段名' => ['规则1','规则2'...] * * @var array */ protected $rule = [ 'id|类型ID' => 'require|number|isExist:mold,id', 'title|类型名称' => 'require|max:10...
true
1be387a90814605ec52e41b9c27f13eb487ffb69
PHP
omaymalberji/ProjetGL
/Ptravel/app/Http/Controllers/admin/volController.php
UTF-8
1,018
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\admin; use App\Vol; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class volController extends Controller { public function createVol() { $vol= new Vol(); $vol->port_depart=1; $vol->port_depart=2; $vol->port_arrivee=2; ...
true
01a4bd9d677e927c12a0439cb4560686ef15e19e
PHP
eddysiu/imcc
/cms/controllers/main.php
UTF-8
2,143
2.640625
3
[]
no_license
<?php // get config value in one specfic language function getConfigValueInOneLang($item, $lang){ $result = ""; $result = htmlspecialchars(data_configValueInOneLang($item, $lang)); return $result; } // get config value in all languages function getConfigValueInAllLang($item){ $result = ""; $result = htmlspecialc...
true
b1ff7e485f27c2dc25a18e1bb1ecb062ad20bbcc
PHP
sanjeevan/codelovely
/lib/model/doctrine/base/BaseComment.class.php
UTF-8
4,131
2.578125
3
[ "MIT" ]
permissive
<?php /** * BaseComment * * This class has been auto-generated by the Doctrine ORM Framework * * @property integer $id * @property integer $thing_id * @property integer $user_id * @property integer $article_id * @property integer $reply_id * @property integer $reply_depth * @property string $content * @p...
true
e50e1aa3d19658df1e4a8bcd41877946a5bc9e1c
PHP
AlexP007/a2c.helper
/lib/traits/loader.php
UTF-8
726
2.65625
3
[]
no_license
<?php namespace A2c\Helper\Traits; use Bitrix\Main\Loader as BxLoader; use Bitrix\Main\LoaderException; /** * Trait Loader * * Этот трейт предоставляет статический * метод-обертку над методом * Loader::includeModule * * @author Alexander Panteleev * @package a2c.helper */ trait Loader { /** * @par...
true
d52369b3a40a2f2442ee76b82135dd9f121a27ab
PHP
janeczko/vpp
/app/model/UserModel.php
UTF-8
811
2.8125
3
[]
no_license
<?php namespace App\Model; use Nette; class UserModel extends Model { const TABLE = 'user'; /** * @param string $attr * @param string $value * @param string $attrs * @return bool|Nette\Database\IRow|Nette\Database\Row */ public function findBy($attr, $value, $attrs = 'id, userna...
true
2c9a301cbfc31e6958291a3b25e238eb7067b295
PHP
Rmy5/symfonyBlog
/src/Entity/Article.php
UTF-8
6,521
2.625
3
[ "MIT" ]
permissive
<?php /* * Create : php bin/console make:entity * * */ namespace App\Entity; use App\Repository\ArticleRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Compon...
true
307bff31869ed2dcab186d0405e4ab2e7b22b09e
PHP
Manh-Nguyen-JB/LaravelGacha
/app/Repositories/MyAccountRepository.php
UTF-8
640
2.921875
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use Auth; class MyAccountRepository extends BaseRepository{ /** * Create a new UserRepository instance. * * @param App\Models\User $user * @return void */ public function __construct() { $this->model = Auth::user(); } public function is_logined() { return (i...
true
a64392be171a62bf43366c6608488b7267af6a84
PHP
amkoroew/hse.labor
/Classes/Domain/Model/StudentExercise.php
UTF-8
3,156
2.890625
3
[]
no_license
<?php namespace HSE\Labor\Domain\Model; /* * * This script belongs to the FLOW3 package "HSE.Labor". * * * * ...
true
e780cc0e45a8aabbe1cb150f04662f54f2838906
PHP
010Minds/api
/module/Stock/src/Operation/Model/Operation.php
UTF-8
4,789
2.75
3
[]
no_license
<?php namespace Operation\Model; use Zend\I18n\Validator\Float; use Zend\Validator\NotEmpty; use Zend\Validator\AbstractValidator; use Zend\InputFilter\InputFilter; use Zend\InputFilter\Factory; use Zend\InputFilter\InputFilterAwareInterface; use Zend\InputFilter\InputFilterInterface; /* Sets the operation status */...
true
46d134a0d57621ae87e599508e1c8ee24c2964e4
PHP
voximplant/apiclient-php
/src/Examples/RoleSystem/SetSubUserInfo.php
UTF-8
1,343
2.78125
3
[ "Apache-2.0" ]
permissive
<?php /** * @method SetSubUserInfo Edits a subuser. */ // Path to your autoload.php require_once '/path/to/vendor/autoload.php'; use Voximplant\VoximplantApi; use Voximplant\Resources\Params\SetSubUserInfoParams; /** * In order to use Voximplant PHP SDK, you need the following: * 1. A developer account. If you ...
true
abcaf4878a3b4a6762cb2befa0e690c0eecdeca7
PHP
tahirgit/cloudstore
/controllers/BillingController.php
UTF-8
2,459
2.578125
3
[]
no_license
<?php class BillingController extends Controller { public function filters() { return array( 'accessControl' // required to enable accessRules ); } /** * Specifies the access control rules. * This method is used by the 'accessControl' filter. * @return array acce...
true
f7fe7fe6db4d34c80f615380b7654626a822b01a
PHP
emirodriguez/search-algorithm-ia
/src/InformedSearcher.php
UTF-8
3,811
3.015625
3
[]
no_license
<?php namespace Search; use Ds\Queue; use Ds\Stack; class InformedSearcher { /** * Search the path of the solution * * @param array $connections * @param array $heuristics * @param string $startNode * @param string $endNode * @param bool $byProfundity * * @return arra...
true
0dd0d7a0c5c470d78c20178fa787bee1d5994169
PHP
gmarv1n/design-patterns-php
/Structural/Flyweight/CarVariation.php
UTF-8
1,371
3.6875
4
[]
no_license
<?php /** * Structural Patterns: Flyweight * CarVariation class * * Класс с повторяющимися свойствами автомобиля * * @author Gregory Yatsukhno <codejournaldev@gmail.com> * @version 12.04.2021 */ namespace DesignPatterns\Structural\Flyweight; class CarVariation { // Повторяющимися, в нашем примере, будут ...
true
8384382cff20f54bb2a43ca76108697e74210e63
PHP
AlfredQ/sicobim
/sistema/modelo/baseDatos.Class.php
UTF-8
15,505
2.578125
3
[]
no_license
<?php session_start(); abstract class Base { //Conexion para la Base De Datos abstract public function Conexion(); abstract public function Desconexion(); /** * * Gestiona registros en la base de datos haciendo uso de Procediminetos Almacenados en PostgreSQL * @PARAM $SP -> Inidica el Stored Procedure (Proc...
true
06445c3f5c36f7baed400005aa11f60ae3cd918a
PHP
rahat-hossain/Basic-PHP-Code
/twoDarray.php
UTF-8
850
3.375
3
[]
no_license
<?php // $arr_new = array( // array(25,45,"rahat"), // array(4,3), // array(96,105), // ); // foreach($arr_new as $index_a => $a) // { // foreach($a as $index_b =>$b) // { // echo "[" . $index_a . "]" . "[" . $index_b . "]" . " => " . $b . "<br>"; // } // } // $arr_new ...
true
f464c133a00759654ff90c9f6a3e07e3e5ed793c
PHP
laraflow/admin-module
/Services/Auth/RegisteredUserService.php
UTF-8
3,983
2.5625
3
[ "MIT" ]
permissive
<?php namespace Modules\Admin\Services\Auth; use Exception; use Illuminate\Auth\Events\Registered; use Illuminate\Support\Facades\Auth; use Modules\Admin\Models\User; use Modules\Admin\Repositories\Eloquent\Rbac\UserRepository; use Modules\Admin\Services\Common\FileUploadService; use Modules\Admin\Supports\Constant; ...
true
918128e4cc500521b1db5f38ec176aaa07e35ba2
PHP
techart/tao3
/src/TAO/Fields/Type/HugeMultilink.php
UTF-8
1,730
2.734375
3
[]
no_license
<?php namespace TAO\Fields\Type; class HugeMultilink extends Multilink { protected $datatype = null; public function datatype() { if (is_null($this->datatype)) { if ($code = $this->param('datatype')) { $this->datatype = dt($code); } } return $this->datatype; } protected function getValueFromReq...
true
1d9dd0a6e20bfe4c55b54b4494f0bcfb8c7b97a7
PHP
alexnord/swell
/app/Http/Controllers/Admin/LocationCrudController.php
UTF-8
5,214
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers\Admin; use Backpack\CRUD\app\Http\Controllers\CrudController; // VALIDATION: change the requests to match your own file names if you need form validation use App\Http\Requests\LocationRequest as StoreRequest; use App\Http\Requests\LocationRequest as UpdateRequest; /** * Class L...
true
e4c0de56bbd8fbde3cf4aa383d49fbe54be69767
PHP
ekkinox/kata-books
/features/bootstrap/CatalogContext.php
UTF-8
2,104
2.765625
3
[ "MIT" ]
permissive
<?php use Behat\Behat\Tester\Exception\PendingException; use Behat\Behat\Context\Context; use Ekkinox\KataBooks\Model\Book; use Ekkinox\KataBooks\Model\Catalog; /** * Defines application features from the specific context. */ class CatalogContext implements Context { /** * @var Book */ private $ca...
true
acb583128af9662f8ee795bd22b7f0be072416fe
PHP
dshum/old.yellow
/lemon-tree/admin/src/lib/properties/DatetimeProperty.php
UTF-8
2,665
2.78125
3
[ "MIT" ]
permissive
<?php namespace LemonTree\Properties; use Carbon\Carbon; use LemonTree\ElementInterface; class DatetimeProperty extends BaseProperty { protected static $format = 'Y-m-d H:i:s'; protected $fillNow = false; public function __construct($name) { parent::__construct($name); $this-> addRule('date_format:"'.sta...
true
9d9fa8c6d9b34c812d691a72b7f943003fbd6042
PHP
rmsaitam/TCC
/api/module/FastFood/Model/ClienteModel.php
UTF-8
2,159
2.890625
3
[]
no_license
<?php namespace FastFood\Model; use Szy\Mvc\Model\AbstractModel; use Szy\Mvc\Model\ModelException; class ClienteModel extends AbstractModel { public function cliente($codigo) { if (empty($codigo)) throw new ModelException('Codigo deve ter um valor inteiro'); $stmt = $this->query(...
true
f51f9cde37dcbf2aa0adbe332ec807f2be60d473
PHP
yrizos/data-entity
/tests/src/TypeTest.php
UTF-8
6,204
2.71875
3
[ "MIT" ]
permissive
<?php namespace DataEntityTest; use DataEntity\Type; class TypeTest extends \PHPUnit_Framework_TestCase { public function testRaw() { $type = Type::factory('raw'); $this->assertInstanceOf("DataEntity\\Type\\RawType", $type); $data = [ 1, true, fa...
true
219494d0d7db7464ddd2295599c51824b1630328
PHP
yadson18/SRI-Files
/src/Controller/AppController.php
UTF-8
1,455
2.609375
3
[]
no_license
<?php namespace App\Controller; use Simple\Controller\Controller; use Simple\Http\Request; use Simple\View\View; use Simple\Configurator\Configurator; abstract class AppController extends Controller { /** * initialize Method. * * @param * Simple\Http\Request $request - server request. * ...
true
328f7b06cf3ef11da42bc7ed64bfbbea1deb2a6d
PHP
M-Leggat/Magento2-Gigya-Extension
/Observer/Session/Extend.php
UTF-8
823
2.53125
3
[]
no_license
<?php namespace Gigya\GigyaIM\Observer\Session; use Gigya\GigyaIM\Model\Session\Extend as ExtendModel; use Magento\Framework\Event\Observer; use Magento\Framework\Event\ObserverInterface; class Extend implements ObserverInterface { /** * @var ExtendModel */ protected $sessionExtendModel; pub...
true
4e693b4ef811190df3f7cdd46399128487cd66b8
PHP
crafter88/docpro_v2_system
/application/models/Banks_Model.php
UTF-8
2,097
2.515625
3
[]
no_license
<?php class Banks_Model extends CI_Model{ private static $db; function __construct() { parent::__construct(); self::$db = get_instance()->db; } public static function bank_count(){ return count(self::$db->get_where('banks', ['b_company' => 'docpro', 'flag' => '1'])->result()); ...
true
4d9a16c144c1b70fcaaba278dcd2185c8912e5f1
PHP
mupimenov/wibi
/core/manager.php
UTF-8
2,939
2.515625
3
[]
no_license
<?php /* * manager.php * * Copyright 2010 Mikhail Pimenov <mupimenov@gmail.com> * * This program 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 Software Foundation; either version 2 of the License...
true
33fd76d5f36596c86671f700e2900ae5a86150ea
PHP
ProfeC/galleries.profec.net
/views/list.php
UTF-8
1,191
2.78125
3
[ "MIT" ]
permissive
<?php foreach($galleryArray as $gallery){ echo "\t<section id=\"" . $gallery . "\" class=\"galleryList row\">\n\t\t<div class=\"small-12 columns\"><header><h3 class=\"subheader\">" . $gallery . "</h3></header> \n"; echo "\t\t\t<ul class=\"small-block-grid-3\">"; // Get the list of albums in each gallery found $d...
true
0414a509787bb3216535c5ec1defbb8fc2a44ac6
PHP
lalalili/vote
/database/seeds/TitleTableSeeder.php
UTF-8
1,137
2.53125
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\Models\Title; class TitleTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('titles')->truncate(); $titles = [ [ 'name' => '銷售經理', ...
true
33ac79d205e959714d1643af836b1371e51a77b8
PHP
ZachWatkins/agrilife-learn-epubs
/src/class-customfields.php
UTF-8
709
2.5625
3
[]
no_license
<?php /** * The file that loads and handles custom fields * * @link https://github.com/AgriLife/agrilife-learn-epubs/blob/master/src/class-customfields.php * @since 1.0.0 * @package agrilife-learn-epubs * @subpackage agrilife-learn-epubs/src */ namespace Agrilife_Learn_Epubs; /** * The custom fi...
true
7ba1a887726a0f4e47492ebb3d1cbbb308dbcd90
PHP
NguyenHaiHa1992/sangovietphat
/protected/modules/dev/DevModule.php
UTF-8
1,960
2.640625
3
[]
no_license
<?php class DevModule extends CWebModule { public $password; public $ipFilters; public function init() { // this method is called when the module is being created // you may place code here to customize the module or the application Yii::app()->setComponents(array( 'user'=>array( 'class'=>'CWebUser', ...
true
4eb1a5fedb1cee1113ff2b0a0f639c4319f43597
PHP
tommy-urban-media/lachvegas
/wp-content/themes/lachvegas.de/template-import-news.php
UTF-8
3,678
2.71875
3
[]
no_license
<?php /** * Template Name: Import News */ get_header(); function isLocal() { return in_array($_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')); } function splitLine($str, $delimiter = ';') { return explode($delimiter, $str); } function savePost($arr) { return wp_insert_post($arr); } $filepath = dirname(__FI...
true
fff38b2774cbda44a1d6e67848ee8c5274baf414
PHP
Kshevchenko94/myway
/components/Storage.php
UTF-8
2,145
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\components; use yii\base\Component; use app\components\interfaces\StorageInterface; use yii\helpers\FileHelper; use yii\web\UploadedFile; use Yii; use Intervention\Image\ImageManager; class Storage extends Component implements StorageInterface { private $fileName; /** * @param Up...
true
4a137c36fbede3a50f0c31d1d10ee40987e458cd
PHP
nathanooley/new-novo
/php/upload-page-preview.php
UTF-8
1,465
2.546875
3
[]
no_license
<?php $uploadDir = 'novi/pages/'; $result = array(); if (isset($_POST["dir"]) && isset($_POST["path"])){ $path = $_POST["path"]; $projectName = $_POST["dir"]; $baseName = basename($path); $path_info = pathinfo($baseName); $targetName = preg_replace("/\s+/", "-", mb_convert_case($path...
true
0b908425fd4c23d2ae08b230e56114765019f497
PHP
puddinglover/voteApp
/app/ajax/createCookieUser.php
UTF-8
708
2.890625
3
[]
no_license
<?php require 'db_connect.php'; // AJAX call for creating a user with a cookie id. Returns true if completed. $postdata = file_get_contents("php://input"); $request = json_decode($postdata); try { if(!isset($request->cookieID)){ throw new Exception('NO COOKIE ID', 123); } if(gettype($request->cookieID) !=...
true
2d8ba5a67dd73c2cea244dd1a03309b4f87f5072
PHP
rafachacon/intercom_test
/src/Controller/ApiController.php
UTF-8
9,890
2.53125
3
[]
no_license
<?php namespace App\Controller; use App\Entity\Phone; use App\Service\PhoneHelper; use DateTime; use FOS\RestBundle\Controller\AbstractFOSRestController; use FOS\RestBundle\Controller\Annotations as Rest; use JMS\Serializer\SerializerInterface; use Symfony\Component\Config\Definition\Exception\Exception; use Symfony\...
true
72a73cc54d5badd3e4d841e893d9d75dc7b9644b
PHP
emartin-cfe/meeting_minutes
/deleteNote.php
UTF-8
1,386
2.640625
3
[]
no_license
<?php session_start(); if (!$_SESSION['signed_in']) { header("Location: sign_in.html"); exit; } ?> <?php $link = mysql_connect('127.0.0.1', 'task_tracker', 'task_tracker'); if (!$link) { die('Could not connect: ' . mysql_error()); } mysql_select_db('scheduling') or die(mysql...
true
8c14f1fce6251edb84a1f4e02af16526e16b69d3
PHP
duongnt99/NewRegis
/Models/Admin/ShowListSubjectModel.php
UTF-8
663
2.546875
3
[]
no_license
<?php trait ShowListSubject{ public function fetchListSubject(){ $conn = Connection::getInstance(); $query = $conn->query("SELECT *,subject.id as idsb FROM `subject` inner join (select id from kithi where Status=1) kithi on subject.idkithi = kithi.id"); return $query->fetchAll(); ...
true
e6ac52d904461c2085c2553bea1dca3981e310b0
PHP
johan-Rm/Symfony-4-src-folder-Johanrm
/src/Entity/Person.php
UTF-8
14,536
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Entity; use ApiPlatform\Core\Annotation\ApiProperty; use ApiPlatform\Core\Annotation\ApiResource; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use App\Entity\Traits\IdentifiableTrait; use App\Entity\Traits\ThingTrait; use App\Ent...
true
8a157b7ab1043c7f1870e0e3b071edd03d561350
PHP
chrispittersl/VIP
/php/conexao.php
UTF-8
282
2.671875
3
[]
no_license
<?php try{ $pdo = new PDO("mysql:host=localhost;dbname=vip","root","",array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")); $pdo->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION ); }catch(PDOException $e){ echo $e->getMessage(); } ?>
true
6359766cf2d0fce3799547a0faf9e8e4ed2f0479
PHP
daran9/n96localization-via-context
/Server/setup_data.php
UTF-8
1,554
3.1875
3
[ "MIT" ]
permissive
<?php /* Summary : This script gets the required POST variables, decodes them and insert them into the database. * Required POST variable : WLANDATA * Required POST variable : BLDG * Required POST variable : FLOOR * Required POST variable : SECTION * Return : */ //TODO: BLDG, FLOOR and SECTION information should...
true
985d1a8071bc0d772bb9567eecc747f235c8d437
PHP
SunderShadow/php-dotenv
/src/Parser.php
UTF-8
2,515
3.03125
3
[]
no_license
<?php namespace Sunder\Dotenv; use Sunder\Dotenv\Exceptions\CorruptedFileException; use Sunder\Dotenv\Exceptions\UndefinedFileException; class Parser { /** * Array of string lines * @var string[] */ private array $buffer; /** * Current line * @var string */ private stri...
true
546ee2f7b023c4804169b75236e9374ad5c6bfdc
PHP
suporte-avdesign/discal
/app/Services/Web/ClawsServices.php
UTF-8
10,774
2.921875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: avdesign * Date: 08/12/19 * Time: 10:05 */ namespace App\Services\Web; use GuzzleHttp\Client; use GuzzleHttp\Exception\ClientException; use Symfony\Component\DomCrawler\Crawler; use App\Services\Web\Traits\ClawsTrait; class ClawsServices { use ClawsTrait; pr...
true
c18a0b84053af12e8936f338722c65eba77b13b5
PHP
PatBass/yafabhi
/2_plan_team/include/class.RemoteApi.php
UTF-8
10,846
2.71875
3
[]
no_license
<?php /* * This class provides Remote Api methods * * @author Yuriy Bakhtin * @name RemoteApi * @version 0.1 * @package 2-plan * @link http://2-plan.com * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v3 or later */ class RemoteApi extends TableBase { private $accesskey = ""; pri...
true
65b69fa0bac50e287b611317b18c61280c4b37d5
PHP
roccotripaldi/wordpress-cribbage
/class.wp-cribbage.php
UTF-8
1,509
2.765625
3
[]
no_license
<?php class WP_Cribbage { function __construct() { add_action( 'init', array( $this, 'create_main_route' ) ); add_action( 'init', array( $this, 'maybe_flush_rewrites' ), 999 ); add_action( 'template_include', array( $this, 'maybe_serve_template' ), 99 ); } /** * Creates rewrites based on our app's url bas...
true
e9dce58106a4376b43d8986e585aa02c763ded94
PHP
chris-at-github/datamints-works
/Classes/Domain/Model/Container.php
UTF-8
2,690
2.71875
3
[]
no_license
<?php namespace Datamints\DatamintsWorks\Domain\Model; /*** * * This file is part of the "Datamints Works" Extension for TYPO3 CMS. * * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * * (c) 2017 Christian Pschorr <c.pschorr@datami...
true
6ff73ec49eb1c9ac2ac59d89dbfdaffbb1a0cecc
PHP
myCMS/myCMS
/engine/classes/page/StaticContent.php
UTF-8
2,100
3.109375
3
[]
no_license
<?php /** * Used for define static content * * @package Engine * @subpackage Page * @see EngineCore * @author AlexK * @version 1.0 */ class StaticContent { /** * Constructor of class StaticContent */ public function __construct() { } /** * Return current ...
true
73d7611cc6d702be259232491729a279b2e71ad6
PHP
DenverBYF/php_algorithm
/Offer.php
UTF-8
24,376
3.796875
4
[]
no_license
<?php /** * Created by PhpStorm. * User: denverb * Date: 18/2/11 * Time: 上午10:27 * 剑指offer的PHP实现 */ /* * 在一个二维数组中,每一行都按照从左到右递增的顺序排序, * 每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。 */ function Find($target, $array) { $columns = count($array[0]); //列数 $line = count($array); //行数 $tmp = $array[$lin...
true
76a02a5623bb7209d270073b404f3652b457076b
PHP
halaei/telegram-bot
/tests/FileUpload/InputFileTest.php
UTF-8
1,150
2.796875
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Telegram\Bot\Tests\FileUpload; use PHPUnit\Framework\TestCase; use Telegram\Bot\FileUpload\FileId; use Telegram\Bot\FileUpload\HttpUrl; use Telegram\Bot\FileUpload\InputFile; use Telegram\Bot\FileUpload\InputStream; class InputFileTest extends TestCase { public function test_input_stream_open() ...
true
a73aa3be02289a1851e9eb2a47610ef938af4866
PHP
DivanteLtd/pimcore-enrichment-progress
/src/Controller/EnrichmentController.php
UTF-8
1,646
2.515625
3
[]
no_license
<?php /** * @date       23.07.2021 * @author Jakub Płaskonka <jplaskonka@divante.pl> * @copyright   Copyright (c) 2021 DIVANTE (http://divante.com/) */ declare(strict_types=1); namespace EnrichmentProgressBundle\Controller; use EnrichmentProgressBundle\EnrichmentProgress\EnrichmentProgressService; use Pimco...
true
517e4ecb8edef24a3be1d9e0501f3b1d22683ff7
PHP
davidz1113/backend_tienda
/producto.php
UTF-8
1,464
2.890625
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. */ require '../backend_tienda/conexion.php'; class Producto{ function __construct() { } public static...
true
19a2c63a118086a7096a2f150f17a167fbf90ba7
PHP
rkarkut/slack-api-package
/src/lib/Oauth.php
UTF-8
1,096
2.8125
3
[]
no_license
<?php namespace Rkarkut\Slack\lib; use Guzzle\Http\Client as GuzzleClient; class Oauth extends Slack { /** * Getting access to an application. * * * @param $clientId * @param $clientSecret * @param $code * @param $redirectUrl * * @return object * @throws \Exception ...
true
453f2c7dd279415d2fb501b3e5a486133eb020dc
PHP
szaboferee/esprimaPHP
/src/Node/Statement/WithStatement.php
UTF-8
629
2.96875
3
[]
no_license
<?php namespace EsprimaPhp\Node\Statement; use EsprimaPhp\Node\Statement; use EsprimaPhp\Parser\Syntax; class WithStatement extends Statement { /** * @var string */ public $type = Syntax::WITH_STATEMENT; /** * @var Expression */ public $object; /** * @var Statement; ...
true
c29e5ecf2d983c698d908d22a8505fafee79e57f
PHP
alban30/PHP
/TD6/controller/ControllerTrajet.php
UTF-8
3,321
2.5625
3
[]
no_license
<?php require_once (File::build_path(array("model", "ModelTrajet.php"))); // chargement du modèle class ControllerTrajet { protected static $object = "trajet"; public static function readAll() { $tab_t = ModelTrajet::selectAll(); //appel au modèle pour gerer la BD $pagetitle = "Liste de t...
true
b961e363ef5804159b246027140f4338e1faef77
PHP
borishaw/itn-quotegen
/scripts/update_fcl_price_table.php
UTF-8
819
2.53125
3
[]
no_license
<?php /*require '../vendor/autoload.php'; DB::$user = 'root'; DB::$password = 'root'; DB::$dbName = 'itn_quote_gen'; use League\Csv\Reader; $csv = Reader::createFromPath('fcl_price_table.csv'); $result = $csv->fetchAll(); foreach ($result as $row) { $city = $row[0]; $province = $row[1]; $country = $row...
true
51d70ff9b7bc99be74a04cbf7bb198bb13777426
PHP
amansingh95/online_exam
/exam_timer.php
UTF-8
2,058
2.71875
3
[ "MIT" ]
permissive
<?php session_start(); if($_SESSION['std']!="") { ?> <?php /*//A: RECORDS TODAY'S Date And Time echo "month".$month =date('m'); echo "days".$days =date('d') ; echo "hour".$hours =date('H') ; echo "minute".$min =date('i') ; echo "second".$sec =date('s') ; ...
true
02423975680c33f3579bae27932db24eafe5de40
PHP
kristiankeep/decibel-framework
/stream/DHttpStream.php
UTF-8
836
2.875
3
[ "MIT" ]
permissive
<?php // // Copyright (c) 2008-2016 Decibel Technology Limited. // namespace app\decibel\stream; /** * A stream to which data can be written over HTTP. * * @author Timothy de Paris */ interface DHttpStream extends DWritableStream { /** * Flushes the content of the stream to the client. * ...
true
a3bca224e6c48e27a9de5edd342861ed0df6a2f8
PHP
eabatalov/educational-gaming-platform
/website/protected/models/entities/UserSkill.php
UTF-8
1,403
3.359375
3
[]
no_license
<?php /** * Storage information about level of particular user skill * * @author eugene */ class UserSkill { /* * @throws InvalidArgumentException */ function __construct($userId, $skillId, $value) { $this->setUserId($userId); $this->setSkillId($skillId); $this->setValue(...
true
21ac2db0b9be261643098e4815171aa919b12d6b
PHP
tipsypastels/relibrary
/ratings.php
UTF-8
945
2.625
3
[]
no_license
<?php include('header.php') ?> <?php if (empty($_GET)) { redirect_to('index'); exit(); } $ratings = BookRating::where($_GET); $book = null; if (isset($_GET['book_id'])) { $book = Book::find(['id' => $_GET['book_id']]); } ?> <main> <h1 class="title">Ratings</h1> <?php if ($book && signed...
true
dd39a72d2ce764a7af0f5508d6c894240b587acb
PHP
andparsons/mage-app-start
/app/code/Magento/VisualMerchandiser/Model/Sorting/SortInterface.php
UTF-8
551
2.515625
3
[]
no_license
<?php namespace Magento\VisualMerchandiser\Model\Sorting; /** * Interface SortInterface * @package Magento\VisualMerchandiser\Model\Sorting * @api * @since 100.0.2 */ interface SortInterface { /** * @param \Magento\Catalog\Model\ResourceModel\Product\Collection $collection * @return \Magento\Catalo...
true
50252e8b3b69660105c15daabdfb33797fcbcae7
PHP
web-vision/magento-high-speed-import
/fw/Cemes/Helper/Timer.inc.php
UTF-8
2,345
3.25
3
[]
no_license
<?php if (!$GLOBALS['CEMES']['ACTIVE']) die('Framework ist nicht aktiv'); /* * Singleton-Klasse * * @package Cemes-Framework * @version 1.0.0 * @author Tim Werdin * * Cemes_Config liest diverse Config dateien und kann sie auch beschreiben */ class Cemes_Helper_Timer { /** * is timer already runnin...
true
dd7530877d5c30972a2b1c82662447c3bd19281e
PHP
softscripts/WWEX-SpeedShip
/Rate/Options/MynewServiceStructRateServiceOptions.php
UTF-8
8,773
2.671875
3
[]
no_license
<?php /** * File for class MynewServiceStructRateServiceOptions * @author Soft Scripts Team <srinivas@softscripts.net> * @version 20140325-01 * @date 2014-03-29 */ /** * This class stands for MynewServiceStructRateServiceOptions originally named RateServiceOptions * Meta informations extracted from the WSDL * ...
true
617a497ff7baee1cbfff599d5e4eb13685c86f82
PHP
BradCrumb/ze-swagger-codegen
/src/V30/Hydrator/CallbackHydrator.php
UTF-8
1,206
2.625
3
[]
no_license
<?php namespace Swagger\V30\Hydrator; use Swagger\V30\Schema\Callback; use Zend\Hydrator\HydratorInterface; use Swagger\V30\Schema\PathItem; class CallbackHydrator implements HydratorInterface { /** * @var PathItemHydrator */ protected $pathItemHydrator; /** * Constructor * --- ...
true
52d4dc3fbe2b301ff27f2ba43b3d30e40be79fde
PHP
shayleydon/deputy
/Role.php
UTF-8
770
3.421875
3
[]
no_license
<?php namespace Deputy; /** * Role is a class representation of a role. */ class Role { private $id; private $name; private $parentId; public function __construct(int $id, string $name, int $parentId) { $this->id = $id; $this->name = $name; $this->parentId = $parentId; ...
true
91508b6175bfafd46c6ef0a168f15c73a551118d
PHP
pedrosland/zf2-console-test
/module/Transactions/src/Transactions/Data/CurrencyWebservice.php
UTF-8
930
3.296875
3
[]
no_license
<?php namespace Transactions\Data; use Zend\Math\Rand; /** * Dummy web service returning random exchange rates * */ class CurrencyWebservice { /** * Returns exchange rate for currency * * Note: Normally, exchange rates would be between currency A and currency B * but sticking with the API,...
true
f66c901a2ebe97a068808c63b28e73d1cf72505f
PHP
jesequihuae/residencitasitsa
/php/helper.class.php
UTF-8
6,899
2.703125
3
[]
no_license
<?php class helper { private $conection; function __construct() { $this->abrirConexion(); } function abrirConexion(){ try{ /*$handler = new PDO('mysql:host=127.0.0.1;dbname=residenciasitsa','root',''); //Localhost $handler->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);*/ $hand...
true
8c37d82c1738a642e8c66b3c6edf112138d60e1c
PHP
iakbarp/bukuangkatan
/edit.php
UTF-8
8,348
2.71875
3
[ "Apache-2.0" ]
permissive
<?php include("header.php"); // memanggil file header.php include("koneksi.php"); // memanggil file koneksi.php untuk koneksi ke database error_reporting(0); ?> <div class="container"> <div class="content"> <h2>Data Mahasiswa &raquo; Edit Data</h2> <hr /> <?php...
true
965ee5a2bf9ba4e440d82d8de935b8c2afe7651a
PHP
evgKoval/exchanger
/app/Http/Controllers/Api/V1/CurrenciesRatesController.php
UTF-8
1,799
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api\V1; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Interfaces\CurrencyInterface; use App\Coinbase; class CurrenciesRatesController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ publi...
true
115317a27fc7fda3619020f6df06d123cdaf5419
PHP
prodigyworks/Trianik
/session-image-upload.php
UTF-8
488
2.515625
3
[]
no_license
<?php require_once(__DIR__ . "/pgcore-db.php"); require_once(__DIR__ . "/businessobjects/ImageClass.php"); try { SessionControllerClass::getDB()->beginTransaction(); $image = new ImageClass(); $image->setDescription("User Profile"); $image->uploadFromFile("file", 16000, 16000); $image->setSessionid(se...
true
b3ad15670204e0309b6f87a685cb34631bb550ba
PHP
mpiton/cours-php
/vendredi/test.php
UTF-8
858
2.734375
3
[]
no_license
<?php require("outils.php"); require("header.php"); // VARIABLES // VARIABLES $tableau = $_FILES['fichier']; $name = $tableau['name']; $type = $tableau['type']; $tmp_name = $tableau['tmp_name']; $size = $tableau['size']; $destinationfinale = $destination . "/" . $name; echo "<form action=\"\" method='post'enctype=...
true
c57fa56f9b5096fc9e5bc6a8e6d9fd0e218fa939
PHP
JoshuaW5/COMP3512_ASG2
/includes/SubjectDB.php
UTF-8
1,104
2.75
3
[]
no_license
<?php ini_set('error_reporting', E_ALL); ini_set('display_errors', 'On'); include_once 'includes/AbstractDB.php'; class SubjectDB extends AbstractDB{ protected $baseSQL = "SELECT SubjectID, SubjectName FROM Subjects"; private $connection = null; protected $keyFieldName = "SubjectID"; pub...
true
8b029674029f7349b4dec509bcbb2740c6fb5e80
PHP
fanzhaogui/PHP_More_Testing
/code_test/pattern/2_factory/2_3_abstract_factory/SQLiteFactory.php
UTF-8
300
2.640625
3
[]
no_license
<?php /** * User: Andy * Date: 2020/3/24 * Time: 0:01 */ class SQLiteFactory implements Factory { public function createUser() { echo "sqlite create user at " . __FUNCTION__ . '<br>'; } public function createArticle() { echo "sqlite create article at " . __FUNCTION__ . '<br>'; } }
true
d7382d9b1fe0bd090a69fc38498202c11604ca1a
PHP
BialekM/training
/Eagles/SarosTest/Konwerter języków PHP-Java/wycinara.php
UTF-8
485
3.390625
3
[]
no_license
<?php class test { function znajdz1 ($wyraz) { $wyraz = $wyraz; $regex = "/System\.out\.println\(\".*\"\);/"; $wynik = preg_match($regex, $wyraz, $zmienna); return $zmienna[0]; } function wytnijZmienna ($string) { $regex = "/\".*\"/"; $wynik = p...
true
7b5fcdcbfbc37d0ab96eccb14126b3b3f67c2a68
PHP
tapiau/php-playground
/fourier/src/FFT.php
UTF-8
667
2.875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: zibi * Date: 2018-03-13 * Time: 12:42 */ class FFT { public $sampleList = null; public $weightList = []; public function __construct($sampleList) { $this->sampleList = $sampleList; } public function calcWeight($freq) { $modConst = $freq*2*M_PI; return arra...
true
c34357a9858781bf4ae27cb3790ac33c531899eb
PHP
ahmedAlraimi/Tasarim
/Term Project/1 Full Project/Design_Pattern/models/ManagementProfile.php
UTF-8
586
2.875
3
[]
no_license
<?php namespace models; class ManagementProfile { private $position; private $address; private $phone_number; public function setPosition($position){ $this->position = $position; } public function setAddress($address){ $this->address = $address; } public function setPhoneNumber($phone_number){ $...
true
5fece835b6b7dc2e363dad94a89a13c713e51dde
PHP
denst/38076DGF
/www/application/classes/helper/password.php
UTF-8
522
3.140625
3
[]
no_license
<?php defined('SYSPATH') or die('No direct access allowed.'); class Helper_Password { public static function generate_password($length = 8) { $password = ""; $possible = "123456789abcdefghjkmnpqrstuvwxyz123456789"; for ($i = 0; $i < $length; $i++) { // pic...
true
49d98f556d493188537172032c6240dda330f03e
PHP
dsisconeto/Capsula-do-Tempo
/PHP - Informativo Carajás/src/core/model/ModelCompanyDepartment.php
UTF-8
2,056
2.734375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: dejair * Date: 03/04/16 * Time: 17:20 */ class ModelCompanyDepartment extends dbConnection { private $companyDepartmentId; private $companyIdFk; private $companyDepartmentName; private $companyDepartmentDateInsert; private $companyDepartmentDateUpdate;...
true
24efc5f7c53299b1b0b5da1fa27f90a3fda15cda
PHP
liangpig1/worddestructor
/WordDestructor/Lib/Model/WordlistModel.class.php
UTF-8
1,001
2.609375
3
[]
no_license
<?php class WordlistModel extends Model { public function getListById($listId) { return $this->where("id=".$listId)->find(); } public function getListByName($name) { return $this->where("name='".$name."'")->find(); } public function getListsByUser($userId) ...
true
fbf77b9d309f21fe1a74be01e2de6d87ed3a910a
PHP
borry262921984/genaku
/demo4.php
UTF-8
2,313
3.5
4
[]
no_license
<?php //本例子采用作为实例标签 //载入xml $_sxe = simplexml_load_file('test.xml'); // 1) 读一级标签的值 // 就算version自动列成数组,但简单输出方法没有指定索引号,所以以第一个打印 echo '1 -> '; echo $_sxe->version; echo "\n\n"; // 2) 如果加上索引号则可以指定打印目标(前提是存在的数组索引号) echo '2 -> '; echo $_sxe->version[2]; echo "\n\n"; ...
true
b0d7a6921f814c24cf1ab274b291f5bc15271d29
PHP
wuluo/KMB
/kohana/modules/misc/classes/Base62.php
UTF-8
798
3.28125
3
[]
no_license
<?php /** * Base62 将整型转为62进制数字(有大数问题) * @author Sundj * @since 2014.04.07 */ class Base62 { const BASE = 62; static $baseChars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; public function encode($number) { $output = ''; do { $reminder = $number % Base62::BASE; $output ...
true
a59ead04ca3c143d574dfdb58a6ef5e0959b0fe3
PHP
DyoungDsea/frenxy
/webcontrol/clean.php
UTF-8
1,401
2.71875
3
[]
no_license
<?php @session_start(); require("config.php"); function clean($value){ GLOBAL $conn; $value=trim($value); $value=htmlspecialchars($value); $value=strip_tags($value); $value = $conn->real_escape_string($value); return $value; } @$idc = clean($_SESSION['userid']); functio...
true
b6b47103d5c848189584461d16e392a1ee4e12e7
PHP
halvaroz/restaurant
/library/FlashBag.class.php
UTF-8
750
2.921875
3
[]
no_license
<?php class FlashBag{ public function __construct(){ if(session_status() == PHP_SESSION_NONE){ session_start(); } if(array_key_exists('flash-bag', $_SESSION) == false){ $_SESSION['flash-bag'] = array(); } } public function add($message)...
true
dd8788cfc40b454d4b26198467b5b693b119a9ac
PHP
sydorenkovd/nemo.api
/src/Response/GuideAircraft.php
UTF-8
4,238
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: sydorenkovd * Date: 08.06.17 * Time: 12:19 */ namespace Nemo\Library\Response; use Nemo\Library\Core\BaseHelper; use Nemo\Library\Core\Logo; class GuideAircraft { private $id; private $name; private $nameEn; private $manufacture; private $originCoun...
true
e2ea9610a70dc13d5695e34731b2727b2001f049
PHP
menkveld/parallel
/yii/modules/person/controllers/DefaultController.php
UTF-8
2,980
2.609375
3
[]
no_license
<?php class DefaultController extends PpController { // Overide the model property of the Controller base class // Once this is done, the generic loadModel method can be used. protected $_model = "Person"; /** * Generic CRUD Functionality * * create - Generic entity create action * update - Generic entit...
true
7d72d06c1497857733923e7e92189b5c5f8eff28
PHP
c9s/CLIFramework
/tests/CLIFramework/TestAppCommandTest.php
UTF-8
870
2.515625
3
[ "BSD-4-Clause-UC" ]
permissive
<?php use CLIFramework\ArgInfo; use TestApp\Application; use PHPUnit\Framework\TestCase; class TestAppCommandTest extends TestCase { public function testSimpleCommand() { $command = new TestApp\Command\SimpleCommand(new Application); $command->init(); $argInfos = $command->getArgInfoLi...
true
e2ebfb543062b95787007821aa2ef574499ca0e8
PHP
passerellesnumeriques/SDB-0.1-prototype
/www/component/authentication/FakeAuthenticationSystem.inc
UTF-8
199
2.59375
3
[]
no_license
<?php require_once("AuthenticationSystem.inc"); class FakeAuthenticationSystem extends AuthenticationSystem { public function authenticate($username, $password, &$error) { return "1"; } } ?>
true
b68aa920a096082c4df1592056f2a47f695ad93f
PHP
gotohr/simple-php-code-gen
/src/GoToHr/SimpleCodeGen/InterfaceMethodTemplate.php
UTF-8
167
2.59375
3
[]
no_license
<?php namespace GoToHr\SimpleCodeGen; class InterfaceMethodTemplate extends StructureMethodTemplate { protected function generateBody() { return ";".PHP_EOL; } }
true
8333a511bcc1e02456d6a1a3ea88a6d636a71d5b
PHP
BerilBBJ/scraperwiki-scraper-vault
/Users/C/Cato/artificer.php
UTF-8
4,058
2.8125
3
[]
no_license
<?php /* scraper by Tomasz Polonczyk http://www.tomot.eu */ require 'scraperwiki/simple_html_dom.php'; /* Extract BLOCKS */ scraperwiki::sqliteexecute("create table if not exists data (col1 char(24), col2 int(24), col3 char(24), col4 char(24), col5 char(24), col6 char(24), col7 char(24), col8 char(24), col9 char(2...
true
35524e6fd7669c7059c9d428aeb9ae9ad3113329
PHP
zgolus/kw
/src/Command/Write.php
UTF-8
1,719
2.71875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: jzgolinski * Date: 15.03.18 * Time: 18:29 */ namespace App\Command; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; ...
true
3f5016657542e4f7cc68a60582c1e708870656b1
PHP
andres2r/prueba-tecnica
/app/Http/Controllers/UsersController.php
UTF-8
925
2.671875
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Http; class UsersController extends Controller { public function index(){ //GET request al API para obtener todos los datos $users = Http::get('https://jsonplaceholder.typicode.com/todos')->json(); ...
true
285b85d8c6740e19498f95955bec7ad617d16549
PHP
hbour/Bibliotheque
/indexArticle.php
UTF-8
2,285
2.671875
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE html> <!-- Ceci est du HTML 5 --> <html lang="fr"> <head> <meta charset="utf-8" /> <link rel="stylesheet" href="reset.css" /> <link rel="stylesheet" href="style.css" /> <title>Exam Library</title> </head> <body> <div id="marges"> <?php include "header.php"; ?> ...
true
54cdff040d08bbe0ac4c56801d331fcd81a9f464
PHP
Idimma/piller-api
/app/Services/ExpoNotification.php
UTF-8
1,108
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Services; use Illuminate\Http\Request; use GuzzleHttp\Client; use GuzzleHttp\Exception\ClientException; class ExpoNotification { public static function sendNotification(String $notification_token, String $title, String $message, array $data) { $client = new Client([ '...
true
73720d0978872ec11e8109d3890e277514f3ba54
PHP
lukisanjaya/LumenElasticSearch
/app/Http/Controllers/Controller.php
UTF-8
925
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Dingo\Api\Exception\ValidationHttpException; use Laravel\Lumen\Routing\Controller as BaseController; class Controller extends BaseController { /** * Override validate method use dingo validation exception * * @param Request $req...
true
6edfc46c8ced8c5187abc1614d7280926bbc45ef
PHP
bigshoesdev/KindWorker
/protected/components/TToolButtons.php
UTF-8
3,392
2.5625
3
[]
no_license
<?php namespace app\components; use Yii; use yii\helpers\Html; use yii\helpers\StringHelper; use app\models\User; class TToolButtons extends TBaseWidget { /** * * @var Model */ public $title; public $model; public $htmlOptions; /** * * @var string Current action id. */ public $actionId; /** *...
true
a8059985a3803e33f7be75b2a9d303c5ae14a8e9
PHP
MFDonadeli/trigorh
/website/models/vaga_model.php
UTF-8
15,666
2.578125
3
[ "MIT" ]
permissive
<?php class Vaga_model extends CI_Model { public function __construct() { parent::__construct(); $this->load->helper('password_helper'); } /** * registra_acao * * Grava ação do profissional no site * * @par...
true
0dd0b1602c8ac8f97073613307c94a30711e6b23
PHP
LoicFeuga/ShareEverything
/php/classes/Room.php
UTF-8
1,523
3.078125
3
[]
no_license
<?php class Room{ private $id; private $name; private $description; private $id_tchat; private $pdo; public function __construct($name ="no_name", $description = "no_description",$pdo){ $this->name = $name; $this->description = $description; $this->pdo = $pdo; } public function insertRoom(){ $this-...
true
f833529a38a8a0ffc17a4977d4c9c86d784a813e
PHP
newsukarun/nts_hackathon
/inc/rest-api/sms/sms-no-food.php
UTF-8
1,521
2.59375
3
[]
no_license
<?php use NTSFOOD\SMS_Sender; class NTS_FOOD_Coupon extends WP_REST_Controller { //The namespace and version for the REST SERVER var $ntsfood_namespacce = 'sms/v'; var $ntsfood_version = '1'; public function register_routes() { $namespace = $this->ntsfood_namespacce . $this->ntsfood_version; $base = 'n...
true
5fa47589bab66673a63eb8ddc7100155121c9894
PHP
MarijaJankovic623/PSI_Implementacija
/application/models/UserValidationModel.php
UTF-8
33,112
2.921875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /** * Description of registrationModel * * @author Marija */ class UserValidationModel extends CI_Model { public function __construct() { parent::__construct(); $this->load->library("my_database"); } /** * Provera sesije za sve vrste korisnika. * ...
true
6db1335f586ccb6014ee05ab512bd40aa0a05832
PHP
christian-reis/loja-web-reis
/App/Action/Admin/LoginAction.php
UTF-8
2,071
2.53125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Christian Reis * Date: 14/06/2018 * Time: 17:24 */ namespace App\Action\Admin; use App\Action\Action; class LoginAction extends Action { public function index($request, $response){//renderiza a tela de login if(isset($_SESSION[PREFIX.'logado'])){ ...
true
04ea58ec13273e53ebabdad319663de93963abcd
PHP
dru-id/sdk-consumer-rewards
/src/Security/Authentication.php
UTF-8
2,223
2.71875
3
[]
no_license
<?php namespace ConsumerRewards\SDK\Security; use ConsumerRewards\SDK\Exception\ConsumerRewardsSdkAuthException; use ConsumerRewards\SDK\Tools\Container; use ConsumerRewards\SDK\Tools\RequiredParameterTrait; use ConsumerRewards\SDK\Tools\UserPasswordGrantTrait; class Authentication { use RequiredParameterTrait; ...
true