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
e86eb2562eb7084cf74fc7fdb14b96d200771093
PHP
flysap/scaffold-generator
/src/Packages/Package.php
UTF-8
1,455
2.59375
3
[]
no_license
<?php namespace Flysap\ScaffoldGenerator\Packages; use Flysap\Support\Traits\ElementAttributes; use Illuminate\Contracts\Support\Arrayable; abstract class Package implements Arrayable { use ElementAttributes; /** * @var \Illuminate\Foundation\Application|mixed */ protected $stubGenerator; ...
true
5fc572277d86bbeb714bf76758d385dd07429ff3
PHP
arenj/Aren
/Core/Lang.class.php
UTF-8
3,166
2.78125
3
[ "Apache-2.0" ]
permissive
<?php namespace Aren\Core; class Lang { // 语言数据 private static $lang = array(); /** * 获取语言定义(不区分大小写) * @access public * @param string|null $name 语言变量 * @param array $vars 变量替换 * @return mixed */ public static function get($name, $vars = array()) { $key = st...
true
7460490a0a3470218cc792b0a2c1883e85dc7f08
PHP
sublimemahesh/credit-master
/class/Expenses.php
UTF-8
2,252
3.1875
3
[]
no_license
<?php /** * Description of Customer * * @author Sublime Holdings */ class Expenses { public $id; public $date; public $time; public $amount; public $reason; public function __construct($id) { if ($id) { $query = "SELECT * FROM `expenses` WHERE `id`=" . $id; ...
true
a61a9cbaa5711574d640197a0cedb06388e596b4
PHP
Pipe2193/Taller2SantaFeAndresFelipeAL
/usuario_credencial/model/modelClass.php
UTF-8
3,146
2.953125
3
[]
no_license
<?php /** * @author Andres Felipe Alvarez <andy_93421@hotmail.com> * @copyright (c) 2014, Andres Felipe Alvarez * model Class es para manejar las funciones del sistema */ class modelClass { /** * * * @return \PDOException */ static public function getData() { try { $sql = 'SELECT id, ...
true
c92a882c850fbae8f08b2253ac5797630b514b88
PHP
Maden-maxi/NewPostApp
/app/server/DB/db.class.php
UTF-8
10,811
2.9375
3
[ "MIT" ]
permissive
<?php require_once 'DB.interface.php'; /** * DB */ class DB { const DB_HOST = 'localhost'; const DB_NAME = 'new_post'; const DB_DRIVER = 'mysql'; const DB_USER = 'root'; const DB_PASSWORD = ''; private $db_exist = false; protected $_db; public function __construct() { $dsn = self::DB_DRIV...
true
898d485a9775022828e62a89301a4c8249987ca1
PHP
dan-j/wp-drafts-for-friends
/includes/class-public-filterer.php
UTF-8
2,884
3.125
3
[ "MIT" ]
permissive
<?php // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'DFF_Public_Filterer' ) ) { /** * Filter class to determine if a user can see a draft and filter results accordingly. */ final class DFF_Public_Filterer { private $shared_post = null; function __construct() {...
true
1cd803fbd78cde06759c181eeb9920dbe0f4c904
PHP
deawx/Inventory-System
/inventory/classes/Category.php
UTF-8
2,762
3.03125
3
[]
no_license
<?php $filepath = realpath(dirname(__FILE__)); include_once ($filepath . '/../lib/Database.php'); include_once ($filepath . '/../helpers/Format.php'); class Category { //put your code here private $db; private $fm; public function __construct() { $this->db = new Database(); //obj create fo...
true
a14925578b21c8144442431a8e364066d5e5503f
PHP
syd3050/lfw
/core/Loader.php
UTF-8
1,534
2.6875
3
[]
no_license
<?php namespace core; class Loader { public static $namespaceMap = [ 'core' => ROOT_PATH.'core'.DS, 'app' => ROOT_PATH.'app'.DS, ]; public static $map = []; // 自动加载 public static function autoload($class) { if ($file = self::findFile($class)) { include_once $file; ...
true
05e73dffca076b9cec3999145ff9890d56f71e38
PHP
flyplay91/acellemail
/app/Jobs/ImportBlacklistJob.php
UTF-8
2,175
2.59375
3
[]
no_license
<?php namespace Acelle\Jobs; use Acelle\Library\Log as CustomLog; class ImportBlacklistJob extends ImportExportJob { // @todo this should better be a constant protected $file; /** * Create a new job instance. * * @return void */ public function __construct($file, $customer=NULL, ...
true
9a4bcd914e5c4a05d970c85119d3ada51b58d417
PHP
viniciustavanoferreira/tennis-rest-api
/application/helpers/data_helper.php
UTF-8
305
2.71875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); //Helper Data //Allan Neros //Contem funcoes relacionadas a datas if ( !function_exists('hoje')) { function hoje() { //Retorna a data e hora atual $data_hoje = date("Y-m-d H:i:s"); return $data_hoje; } }
true
8e25bacf880d744ad7ff081bc7c7c668a31d58b2
PHP
VargheseGeorge01/PHP-Tutorials-PART-2
/mysqli_num_fields.php
UTF-8
628
3.015625
3
[]
no_license
//To return the number of fields in a result set <?php $dbhost='localhost'; $dbuser='root'; $dbpass=''; $db='XYZ'; //creating connection $conn=mysqli_connect($dbhost,$dbuser,$dbpass,$db); //checking creation if($conn->connect_error){ die("connection failed:".$conn->connect_error); } echo "connected successf...
true
11d91031042e4786513deaa99f9a94f3bd87847c
PHP
phanvanthanh/ANLAC-COMPUTER
/app/Http/Middleware/CheckRole.php
UTF-8
1,995
2.515625
3
[ "MIT" ]
permissive
<?php /* Chú ý: Check role này phải khai báo trong kernel.php protected $routeMiddleware = [ 'check-role' => \App\Http\Middleware\CheckRole::class, ]; */ namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Auth; use DB; use App\AdminRes...
true
0d5d1a38e01b41152c0dc65c9b887e4fb80624d7
PHP
ElliotSanchez/mSchoolOnline
/module/Admin/src/Admin/DigitWhiz/Mastery/Entity.php
UTF-8
5,314
2.546875
3
[]
no_license
<?php namespace Admin\DigitWhiz\Mastery; use Admin\ModelAbstract\EntityAbstract; class Entity extends EntityAbstract { public $importFilename; public $importedAt; public $downloadDate; public $studentId; public $studentName; public $multiplicationPLW; public $multiplicationCurrent; ...
true
07d2db549be8447c2393860e040285842122d4e3
PHP
kaihongChan/s-yaf
/application/library/cahce/Redis.php
UTF-8
549
2.8125
3
[]
no_license
<?php namespace Application\Library\Cache; final class Redis { /** * @var Redis */ private static $instance; private $host = '127.0.0.1'; private $port = '6379'; public $client; /** * 获取Redis实例 * @return Redis */ public static function getInstance(): Redis ...
true
30a096c0bd80d459cc37f305afbf80344d32915b
PHP
steve402791890/CS85
/unit6-1/New folder/index.php
UTF-8
3,627
2.703125
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="EN" dir="ltr" xmlns="http://www.w3.org/1999/xhtml"> <head> <title> a simple guest book</title> <link rel = "stylesheet" type = "text/css" href = "quiz.css" /> </head> <...
true
ba27563ed7f9b03dabba2a5af59d8aed6ef97079
PHP
Subsession/Cache
/src/adapters/BaseCachePool.php
UTF-8
2,893
2.5625
3
[ "MIT" ]
permissive
<?php /** * PHP Version 7 * * LICENSE: * Permission is hereby granted, free of charge, to any * person obtaining a copy of this software and associated * documentation files (the "Software"), to deal in the * Software without restriction, including without limitation * the rights to use, copy, modify, merge, p...
true
a2b3c07711d9abce52abe8117cd43ca2223da17e
PHP
tyreamer/bitroad
/qryHelper.php
UTF-8
691
2.890625
3
[]
no_license
<?php include('connect.php'); class QryHelper { function QryHelper() { $conn = new mysqli("$hostname", "$username", "$password", $database); } function Test() { $qry = "Select * from location"; if(!$result2 = $conn->query($qry)){ die('There was an error running the query [' . $c...
true
b50abc7b87d8b86b7406bea5ce6293da7ade1087
PHP
ayoubmanie/RADEETA_BackEnd
/Web/entity.temp/Service.php
UTF-8
700
3.125
3
[]
no_license
<?php namespace Entity; use \Lib\Entity; class Service extends Entity { protected $id, $nom; const ID_INVALIDE = 1; const NOM_INVALIDE = 2; public function setId($id) { if (is_string($id) && !empty($id)) { $this->id = $id; } else { $this->...
true
0d6ebff3cb4fc02790720d44d2aecff8c103e7de
PHP
borzilleri/php-openid
/Tests/Auth/OpenID/BigMath.php
UTF-8
4,272
2.828125
3
[ "Apache-2.0" ]
permissive
<?php /** * Tests for the BigMath functions. * * PHP versions 4 and 5 * * LICENSE: See the COPYING file included in this distribution. * * @package OpenID * @author JanRain, Inc. <openid@janrain.com> * @copyright 2005-2008 Janrain, Inc. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache */ require...
true
7f965024a86964b116584d14f1bd0ae5ac090138
PHP
rlannoye/ldap
/ldapSearch.php
UTF-8
890
2.703125
3
[]
no_license
<html> <head> <title> Utilisateurs </title> <meta charset="utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <link rel="stylesheet" type="text/css" href="ldap.css"> </head> <body> <h1> Liste des utilisateurs </h1> <?php include 'connexion.php'; $r=ldap_bind($ldapconn); $...
true
a3909c3d03f3943af87eb7bfa6807b98f01dc311
PHP
martinsanders/startertheme2
/startertheme/installer/core/installersettings.php
UTF-8
5,021
2.609375
3
[ "MIT" ]
permissive
<?php namespace Heibel\Installer\Core; class InstallerSettings extends Installer { protected $configFile = '010-settings.config.php'; protected function install() { if (isset($this->config['system_settings'])) { foreach ((array)$this->config['system_settings'] as $key => $setting) { ...
true
8d038336cb0a70a6b5879736c58f29887f88ec4f
PHP
ThreshHG/Cards
/src/basic/models/Element.php
UTF-8
4,097
2.609375
3
[]
no_license
<?php namespace app\models; use Yii; /** * This is the model class for table "element". * * @property int $id * @property string|null $name * @property int|null $axisx1 * @property int|null $axisy1 * @property int|null $axisx2 * @property int|null $axisy2 * @property int|null $axisz * @property int|null $b...
true
9cbb213a881d39119fa9930bce350eac19c3c623
PHP
jay7981/BFAdminCP
/app/bfacp/Adkats/Statistics.php
UTF-8
1,600
2.6875
3
[]
no_license
<?php namespace BFACP\Adkats; use BFACP\Elegant; class Statistics extends Elegant { /** * Should model handle timestamps * * @var boolean */ public $timestamps = false; /** * Table name * * @var string */ protected $table = 'adkats_statistics'; /** * ...
true
cd7380ac8251328aa38f954f697581c12ef74937
PHP
mkny/cinimod-php
/src/Cinimod/Middleware/DefaultMiddleware.php
UTF-8
2,529
2.796875
3
[]
no_license
<?php // 2019 namespace Mkny\Cinimod\Middleware; use Closure; use DB; use Cache; use Illuminate\Http\Request; use Route; // use Mkny\Cinimod\Logic; // use Lavary\Menu; abstract class DefaultMiddleware { protected $module; protected $action; protected $controller; /** * Handle an incoming requ...
true
40cfcfe9501385c9aa91fcaed67372134ec498ec
PHP
EngineerWebDeveloper/url-shortener
/url-shortener-app/url-short/app/Http/Controllers/Api/UrlController.php
UTF-8
1,920
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use App\UrlMapper; use Illuminate\Http\JsonResponse; use Illuminate\Support\Facades\DB; class UrlController extends Controller { /** * @return JsonResponse */ public function url() { $post = file_get_conten...
true
d4cc694f77466b837d433c3ce2d86e7240d1ce4e
PHP
DanielHe4rt/php4noobs
/3-Basico/exemplos/tipos1.php
UTF-8
324
3.828125
4
[ "MIT" ]
permissive
<?php echo "Exemplos de números inteiros \n"; var_dump(1234); // número decimal var_dump(-123); // um número negativo var_dump(0123); // número octal (equivalente a 83 em decimal) var_dump(0x1A); // número hexadecimal (equivalente a 26 em decimal) var_dump(0b11111111); // número binário (equivalente ao 255 decimal)
true
a2f017f0ea23492fee10168553b25b1afc9c3a1e
PHP
su6i/masterIpsSemester1
/HMIN115M - Technologies du Web/Projet/app/lib/api.php
UTF-8
6,447
2.65625
3
[]
no_license
<?php // Cours: Web Technologies // Project: MarmitUM // Authors: Hassina BOUFATIS, Aicha DERBAL and Amir SHIRALI POUR function checkAPICall() { $request = []; $request['method'] = $_SERVER['REQUEST_METHOD']; $request['url'] = rtrim($_SERVER['REQUEST_URI'], '/'); $trimmed_url = ltrim(...
true
fd09ba443347d5966e359bc5a30d3b7e90dd2914
PHP
hosseinkhajehhosseini/Final-Thesis-Project
/app/WorkoutProgramItem.php
UTF-8
1,111
2.59375
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class WorkoutProgramItem extends Model { protected $table = 'workout_program_item'; public $timestamps=false; protected $fillable = [ 'program_id', 'workout_ids', 'day', 'set', 'repeat', 'rhythm...
true
a0c937034c908338d8d779d58ac2cda31d2a228f
PHP
ibtisamtauhidi/tinyDB
/setup/addForm.php
UTF-8
1,202
2.78125
3
[]
no_license
<?php class formSetup { var $name,$type,$id,$required,$config; var $options; function addForm($name,$type,$required,$config) { $this->name = $name; $this->type = $type; $this->required = $required; $this->config = $config; } function addOption($value) { $this->options[]=$value; } function com...
true
ba41241855ace196113cccf50112f4f722f8aa49
PHP
kuso-megane/blog
/www/controllers/SearchController.php
UTF-8
1,175
2.546875
3
[]
no_license
<?php namespace myapp\Controllers; use myapp\myFrameWork\Bases\BaseController; use domain\search\Interactor; use myapp\config\AppConfig; class SearchController extends BaseController { public function index(?array $vars) { $builder = new \DI\ContainerBuilder(); $builder->addDefinitions('/va...
true
ba504b992e620cc40e95f48d97fd5af75d861252
PHP
Hekatey/ProgWeb
/TP/Vue/VueEquipes/vue_equipes.php
UTF-8
958
2.96875
3
[]
no_license
<?php class VueEquipes{ public function __construct(){ } function menu(){ echo "<a href=\"index.php?action=bienvenue\">Bienvenue\n</a>"; echo "<a href=\"index.php?action=liste\">List\n</a>"; echo "<a href=\"index.php?action=details\">Details\n</a>"; } function affiche_liste($tableau){ ...
true
44753e2fdcea315ab8a3c5d6201f95e746a52bba
PHP
fernandoval/Springy
/app/controllers/index.page.php
UTF-8
509
2.75
3
[ "MIT" ]
permissive
<?php /** * Sample controller for the main page. */ namespace App\Controller; use Springy\Controller; class Index extends Controller { public function __invoke() { $date = date('F j, Y'); debug('Exemplo de debug 1'); debug('Exemplo de debug 2', 'Exemplo com título'); debug...
true
806f8d4b1a90f234ddceaa0c94e688bd16e522bb
PHP
77web/phpkansai2018-hellopage
/src/CustomerCriteria.php
UTF-8
865
3.015625
3
[ "MIT" ]
permissive
<?php namespace Quartetcom\HelloPage; class CustomerCriteria implements CustomerCriteriaInterface { /** * @var string */ private $tel; /** * @var string */ private $keyword; /** * @return string */ public function getTel(): string { return $this->t...
true
23f11a6ef3fe932e3e878760ac5a194d7db2a005
PHP
wvuweb/spade-core
/src/Spade/ValidationTests/Count.php
UTF-8
4,408
3.078125
3
[]
no_license
<?php /*! * Count Test * * Copyright (c) 2014 Dave Olsen * */ namespace Spade\ValidationTests; use \Spade\Error; use \Spade\ValidationTest; class Count extends ValidationTest { /** * Check to see if this option has the correct number of options * * yaml use: * ModelName: * itemName: * ...
true
1f8af4e7461ee35dd7980a85d7814678f1b11158
PHP
janephp/janephp
/src/Component/OpenApi3/Tests/fixtures/issue-445/expected/Model/TransferDetail.php
UTF-8
10,349
2.875
3
[ "MIT" ]
permissive
<?php namespace PicturePark\API\Model; class TransferDetail extends \ArrayObject { /** * @var array */ protected $initialized = array(); public function isInitialized($property) : bool { return array_key_exists($property, $this->initialized); } /** * ID of transfer. ...
true
27b1c60edbbd2054ede68178397edc90205e9cce
PHP
william13771/w7-rangine-empty
/tests/Future/ContainerTest.php
UTF-8
898
2.609375
3
[ "Apache-2.0" ]
permissive
<?php namespace W7\Tests\Future; use W7\Tests\TestCase; class TestContainer { public function __destruct() { echo 'test container destruct'; } } class ContainerTest extends TestCase { public function testDelete() { iloader()->set('test', true); $this->assertSame(true, iloader()->has('test')); iloader()...
true
8d190f05012838b0cd69e314ae5827cbf19a3c6c
PHP
ClubFinance/ClubFinance
/src/Entity/Kontenplan.php
UTF-8
1,967
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\KontenplanRepository") */ class Kontenplan { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="integer") ...
true
8a1f48102eb1043aeeeefde3efb8ded8479e1519
PHP
maurisfer/php-dpcomportamentais
/projeto/src/Orcamento.php
UTF-8
997
3.109375
3
[]
no_license
<?php namespace Alura\DesignPattern; use Alura\DesignPattern\EstadosOrcamento\EmAprovacao; use Alura\DesignPattern\EstadosOrcamento\EstadoOrcamento; class Orcamento { public float $valor; public int $quantidadeItens; public EstadoOrcamento $estadoAtual; public function __construct() { $...
true
5541475d46720f6d584302dc62cd719d497188af
PHP
smong2/project
/podo/class/Podo/Dispatcher/ArrayFile.php
UTF-8
1,469
2.953125
3
[]
no_license
<?php /** * Podo_Dispatcher_ArrayFile class * * @package Podo.Dispatcher * @version 1.0 * @author kimgua<kimgua@nate.com> * @copyright SK Communications. all rights reserved * @createDate 2007.04.02 */ class Podo_Dispatcher_ArrayFile { private $oriArray; private $targetFile; public function setArray($arrAr...
true
630fdf0176b556791e6e83a3098aec6d9af8ff3b
PHP
rakaaist/fitness_club
/app/classes/Controllers/Common/API/FeedbackApiController.php
UTF-8
774
2.625
3
[]
no_license
<?php namespace App\Controllers\Common\API; use App\App; use Core\Api\Response; class FeedbackApiController { public function index(): string { $response = new Response(); $feedback = App::$db->getRowsWhere('feedback'); $rows = $this->buildRows($feedback); $response->setD...
true
a7dea67e818af05c7e6a7fae00e0cea71d15d0bb
PHP
alexkovalevv/sociallocker-cloud
/common/modules/subscription/common/services/sendgrid/SendGridSubscriptionService.php
UTF-8
6,591
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\modules\subscription\common\services\sendgrid; use Yii; use common\modules\subscription\common\classes\Subscription; use common\modules\subscription\common\services\sendgrid\libs\SendGrid; use common\modules\subscription\common\classes\SubscriptionException; class SendGridSubscriptionServ...
true
e281090b46a07965f311f41c709c71180e42da1a
PHP
cedricleblond35/site_supervision
/src/SiteSupervisionBundle/Entity/Lot.php
UTF-8
4,749
2.53125
3
[]
no_license
<?php namespace SiteSupervisionBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * Lot * * @ORM\Table(name="lot") * @ORM\Entity(repositoryClass="SiteSupervisionBundle\Repository\LotRepository") */ class Lot { /** * @var int * * @ORM\Colu...
true
104840efce9fa93f2f5224ac70dd8c84ef89fae8
PHP
apishka/db-query-pgsql
/tests/QuerySelectTest.php
UTF-8
18,260
2.734375
3
[]
no_license
<?php namespace ApishkaTest\DbQuery\PgSql; use Apishka\DbQuery\PgSql\QuerySelect; use Apishka\DbQuery\StdLib\Expression; /** * Query select test */ class QuerySelectTest extends \PHPUnit\Framework\TestCase { /** * Get query * * @return Query */ protected function getQuery() { ...
true
e2f7f6627b23840b68a4d8da37cae8a6023cf62d
PHP
mapq/csetd
/database.php
UTF-8
410
2.984375
3
[]
no_license
<?php function connect_database() { try { // SQLite Database $DBH = new PDO("sqlite:etd.sqlite"); $DBH->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // added this as default mode $DBH->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); return $DBH; } catch(PDOEx...
true
874c3a7a54c5dc4ee5dc1a43dd005e2c0f38329d
PHP
tanya-sonker/grocery-helper.github.io
/mult.php
UTF-8
185
2.765625
3
[]
no_license
<?php if(isset($_POST['submit'])) { if(isset($_POST['items'])) { foreach($_POST['items'] as $item) { print "$item "; } } else { echo "Select an option first!"; } } ?>
true
5e59182b35739ff25adcc898cc5581d2566f1d1c
PHP
mimosafa/do-system-core
/mocks/Application/Brand/Data/UpdateBrandOutputMock.php
UTF-8
596
2.734375
3
[]
no_license
<?php namespace DoSystemCoreMock\Application\Brand\Data; use DoSystem\Core\Application\Brand\Data\UpdateBrandOutputInterface; use DoSystem\Core\Domain\Brand\Brand; class UpdateBrandOutputMock implements UpdateBrandOutputInterface { /** * @var Brand */ public $model; /** * @var string[] ...
true
6f41acf8843f8656aab08ace4e7b1d0783abb673
PHP
maxleaver/bloomhound
/app/Http/Controllers/Api/SetupController.php
UTF-8
940
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api; use App\Setup; use App\Http\Controllers\Controller; use Carbon\Carbon; class SetupController extends Controller { public function __construct() { $this->middleware('in_account:setup'); } /** * Updates an event setup * * @param \App\Se...
true
2f4c7be47105edc3fa4561fd84bbcaa9896d7dc8
PHP
ElmayorG/primerosProyectos
/CMS tienda/carrito.php
UTF-8
982
2.53125
3
[]
no_license
<center><table width="350px"> <?php $conecta = new mysqli('localhost','root','','andrea'); if (empty($_COOKIE['idusu'])) { $id = $_COOKIE['id_sesion']; }else{ $id = $_COOKIE['idusu']; } $total = 0; $busca = 'SELECT * FROM carrito WHERE id_sesion="'.$id.'"'; $ejecuta = $conecta -> query($busca)...
true
607634a6e21f6ca80c158067d42d02ea6eeff6fc
PHP
sebastianzatko/SocialUPE
/blogic/cdata/datacarreras.php
UTF-8
428
2.703125
3
[]
no_license
<?php require_once('conexion/conectionpdo.php'); class dataCarreras{ public function obtenerCarreras(){ $con = new Conexion(); $sql="SELECT carrera.id_carrera,carrera.descripcion FROM `carrera` "; $query=$con->prepare($sql); $query->execute(); $result = $query->fetchAll(); $datos = array(); foreach($resu...
true
ce492836c0472d4638e88bc5795fdbf57ca78428
PHP
exgalibas/QrCode
/src/Writer/AbstractDataUriWriter.php
UTF-8
899
2.65625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* * (c) Jeroen van den Enden <info@endroid.nl> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Endroid\QrCode\Writer; abstract class AbstractDataUriWriter extends AbstractWriter { /** * {@inheritdoc} */ public ...
true
48a0a7e5b473ef7cee2cd1da5639d2c228f346f9
PHP
maykelsb/tables4dms-api
/src/Migrations/Version20180320100518.php
UTF-8
1,684
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Tables4DMs\Migrations; use Doctrine\Migrations\AbstractMigration; use Doctrine\DBAL\Schema\Schema; /** * Auto-generated Migration: Please modify to your needs! */ class Version20180320100518 extends AbstractMigration { protected $tableName = 'sheetitem'; public f...
true
f55a9a69c52b9af95ad583c187ada923e10ad49d
PHP
nahilaqudsi/proyekSWCT
/application/models/Phpexcel_model.php
UTF-8
650
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Phpexcel_model extends CI_Model { public function upload_data($filename){ ini_set('memory_limit', '-1'); $inputFileName = './assets/uploads/'.$filename; try { $objPHPExcel = PHPExcel_IOFactory::load($inputFile...
true
47a9f35be6215b21c832fa5be7e66375b08ed7bc
PHP
ToribioMatiasRaulAlberto/disor
/cifrado/web/codigo/PHP/vendor/pradosoft/prado/framework/TComponent.php
UTF-8
84,830
2.90625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * TComponent, TPropertyValue classes * * @author Qiang Xue <qiang.xue@gmail.com> * * Global Events, intra-object events, Class behaviors, expanded behaviors * @author Brad Anderson <javalizard@mac.com> * * @link https://github.com/pradosoft/prado * @copyright Copyright &copy; 2005-2016 The PRADO Grou...
true
028bb2e58a6d9a46cc7625e6d4cae0597d2111a2
PHP
everpe/api-akia
/app/Http/Controllers/api/NewController.php
UTF-8
3,600
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\api; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\News; class NewController extends Controller { public function __construct(){ $this->middleware('auth:sanctum', ['except'=>['index','show']]); } /** * Display a listing...
true
25b644c8ed2b02331797b9f6e31c6afb62f26e19
PHP
dbkeator/conte_webapp
/lib/misc.php
UTF-8
4,650
2.578125
3
[]
no_license
<?php $db = $_SERVER['DOCUMENT_ROOT'] . '/lib/rdf-db.php'; require_once $db; function get_conte_terms_hash($links = 'no'){ $data = get_conte_terms(); $numrows = count($data); $hash = array(); for($ri = 0; $ri < $numrows; $ri++) { $row = $data[$ri]; $term = $row['term']; $link ...
true
677aa269b509d1984b76b3ad217b45d9fa28209f
PHP
insafmechergui/Integration
/restau/application/models/MealModel.class.php
UTF-8
903
2.6875
3
[]
no_license
<?php class MealModel { public function afficheMeal() { $database = new Database(); $sql = 'SELECT * FROM meal'; $meal = $database->query($sql); return $meal; } public function afficheOrder($mealid) { $database = new Database(); $sql = 'SELECT * FROM mea...
true
698bc0297ca8615654e6efb6dd39a4a7fe6cdb6a
PHP
noeliovando/sernautavweb.com
/modelo/car_old.php
UTF-8
1,425
2.5625
3
[]
no_license
<?php class car{ function conectar($db_server,$db_user,$db_pass,$db_name){ $this->db_server = $db_server; $this->db_user = $db_user; $this->db_pass = $db_pass; $this->db_name = $db_name; $this->db_conexion = mysql_connect($this->db_...
true
37d2725a118ec75691e920174ad4e7fc808563d0
PHP
kalina-iva/e-commerce-symfony-rest-api
/app/src/Infrastructure/Product/ProductRepository.php
UTF-8
2,072
2.671875
3
[]
no_license
<?php declare(strict_types=1); namespace App\Infrastructure\Product; use App\Domain\Product\Entity\Product; use App\Domain\Product\Repository\ProductRepositoryInterface; use Doctrine\DBAL\Exception\UniqueConstraintViolationException; use Doctrine\ORM\EntityManager; use Symfony\Component\HttpFoundation\Exception\BadR...
true
673ef14ec5c015fa832f814ee82f88f2362c3768
PHP
bjornhorsdal/PhpProject7
/class_utover_db.php
UTF-8
4,170
2.828125
3
[]
no_license
<?php include_once 'class_utover.php'; include_once 'class_tilskuer_db.php'; include_once 'feilbehandling.php'; class utover_db{ public $db; public function __construct($db) { $this->db=$db; } public function hentAlle(){ $utovere=array(); $sql = 'SELECT * FROM utover;'; ...
true
3124dccf027f27b1f074358bd79008a49c5aac9b
PHP
mz0in/iOS-JSON-Login
/login.php
UTF-8
894
2.703125
3
[]
no_license
<?php $user = "USERNAME"; $pass = "PASSWORD"; $database = "DATABASE"; $salt = "SALT"; $mysqli = new mysqli('localhost', $user, $pass, $database); $username = $_GET['username']; $username = addcslashes($username, "';"); $password = $_GET['password']; $password = addcslashes($password, "';"); $query = $mysqli-...
true
2f3affa4c411bc8327b78ebba17afad64ef0153b
PHP
ScautingBurgum/auti-kafe
/src/admin/actions/action_post.php
UTF-8
3,101
2.734375
3
[ "MIT" ]
permissive
<?php if(isset($_SESSION['username'])) { ?> <div id="postvlak" class="pages" style='padding: 15px'> <form name="upload" action="?action=submit" enctype="multipart/form-data" method="post"> <?php $query = "SELECT * FROM `evenement` WHERE id = $count"; if($query = mysqli_query($conn, $query)) { $items = mysqli_fetc...
true
0fe7bb5aa3dc6a4aae1dc7e1ed17c2e379a389c2
PHP
larawhale/cms
/tests/Unit/Library/Entries/BasicEntryTest.php
UTF-8
2,225
2.671875
3
[ "MIT" ]
permissive
<?php namespace LaraWhale\Cms\Tests\Unit\Library\Entries; use PHPUnit\Framework\TestCase; use LaraWhale\Cms\Library\Entries\BasicEntry; use LaraWhale\Cms\Library\Entries\Contracts\BasicEntryInterface; class BasicEntryTest extends TestCase { /** * The BasicEntry instance used for testing. * * @var ...
true
42f8a2f45c93d28695791db59b2e737139796965
PHP
wangfengfly/swoole_persistent_project
/FileCache.php
UTF-8
884
2.96875
3
[]
no_license
<?php class FileCache{ private $root_dir; public function __construct($root_dir){ $this->root_dir = $root_dir; if(file_exists($this->root_dir) === false){ mkdir($this->root_dir, 0700, true); } } public function set($key, $value){ $file_name = $this->root_di...
true
71fcac511dd6bf65115d162affadb9deb4d9ead5
PHP
TA3/bearicade
/public/access/vendor/bjeavons/zxcvbn-php/src/Searcher.php
UTF-8
4,039
3.125
3
[ "MIT" ]
permissive
<?php namespace ZxcvbnPhp; use ZxcvbnPhp\Matchers\Bruteforce; class Searcher { /** * @var */ public $matchSequence; /** * Calculate the minimum entropy for a password and its matches. * * @param string $password * Password. * @param array $matches * Array of ...
true
1650745941a1dadc4ebfe4adc0753e34fbeba832
PHP
intruxxer/car-management
/application/controllers/login.php
UTF-8
1,608
2.5625
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class login extends CI_Controller { public function index() { //Check Logged in if($this->session->userdata('loggedin')==true) { redirect('dashboard'); } $data['login_message'] = ""; if($this->session->flashdata('login_mess...
true
5de530bee43aa6c03348d070ac793736f2f4b0ac
PHP
Fr0oosT/my-projects
/carrental/carrental.php
UTF-8
833
2.859375
3
[]
no_license
<?php //Aparte PHP Pagina met database en INSERT query $dbHost = 'localhost'; $dbName = 'carrental'; $dbUser = 'root'; $dbPass = ''; $db = new PDO("mysql:host=$dbHost;dbname=$dbName", $dbUser, $dbPass); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "INSERT INTO cars (c...
true
ac69d96dd57012c6ef7514031cd6ff2f102748a0
PHP
VovaLucky/newsPortal
/src/AppBundle/Security/EmailManager.php
UTF-8
601
2.6875
3
[]
no_license
<?php namespace AppBundle\Security; use AppBundle\Entity\User; use Exception; class EmailManager { const ADDRESS = 'dryg-vova@yandex.ru'; public static function sendMail(\Swift_Mailer $mailer, User $user, string $subject, string $body): bool { try{ $message = (new \Swift_Message($sub...
true
1ac96be70a6705c4f55b8b1e0e1098764a02d8e5
PHP
cloudsthere/walker
/src/Commands/AbstractMigrate.php
UTF-8
334
2.5625
3
[]
no_license
<?php namespace Walker\Commands; class AbstractMigrate { protected function instance($migration) { include \Walker\config('migration_path') . '/' . $migration; $segments = array_slice(explode('_', explode('.', $migration)[0]), 4); $class = implode('', array_map('ucfirst', $segments)); return new ...
true
53537c178ac0dac557a5c87ee0bcd3f6664c11c6
PHP
webeweb/core-library
/src/skidata/Parser/CustomerParser.php
UTF-8
5,718
2.625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the core-library package. * * (c) 2018 WEBEWEB * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace WBW\Library\SkiData\Parser; use WBW\Library\SkiData\Exception\TooLongDataException; use WBW...
true
6bae7269a9aaa93ff5cf4ec507010a889607b234
PHP
wireui/wireui
/src/Traits/Actions.php
UTF-8
550
2.65625
3
[ "MIT" ]
permissive
<?php namespace WireUi\Traits; use WireUi\Actions\{Dialog, Notification}; trait Actions { public function notification(array $options = []): Notification { $notification = new Notification($this); if ($options) { return $notification->send($options); } return $no...
true
8a284ae99027ddf3f0921143582924179e60bd5b
PHP
vstadnyk/Arckane-IO
/app/core/prototype.php
UTF-8
3,174
2.734375
3
[]
no_license
<? abstract class Prototype { public $_name; public $data = array(); public $page = false; public $dic = array(); function __construct ($page = false) { $this->request = new Request(); $this->config = $this->request->config('main'); $this->dic[] = 'main.json'; $this->page = $page; $this->db = new...
true
1cef559cbc00ed734375d7cf61b590732ca634c8
PHP
solepixel/bmoney-content-tabs
/bmoney-content-tabs.php
UTF-8
3,372
2.65625
3
[]
no_license
<?php /* Plugin Name: BMoney Content Tabs Plugin URI: http://infomedia.com/ Description: Content Tabs! Version: 1.1 Author: Brian DiChiara Author URI: http://www.briandichiara.com */ define('BMCT_PLUGIN_VERSION', '1.1'); define('BMCT_PLUGIN_DIR', plugin_dir_url( __FILE__ )); define('BMCT_PLUGIN_PATH', d...
true
923868db1ffb92fc60e25089440225b956f4a86e
PHP
farhanali/restboat
/app/Models/User.php
UTF-8
1,954
2.640625
3
[ "Apache-2.0", "MIT" ]
permissive
<?php namespace Restboat\Models; use Illuminate\Auth\Authenticatable; use Illuminate\Auth\Passwords\CanResetPassword; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract; class User extends BaseModel implements Authentica...
true
9ffe52a5d516bc49389224707b138c35fc1af857
PHP
thiphan94/Web
/gestion_actualites_action.php
UTF-8
2,740
2.734375
3
[]
no_license
<?php session_start(); $id=htmlspecialchars($_POST['id']); $num=htmlspecialchars($_POST['num']); $titre=htmlspecialchars($_POST['titre']); $text=htmlspecialchars($_POST['text']); $date=htmlspecialchars($_POST['date']); $etat=htmlspecialchars($_POST['etat']); $mysqli = new mysqli('localhost','zphannu00','gezi3uf9','zfl2...
true
1d5870ec98253d5949b522a8a170e161efa31ffb
PHP
xboston/phalcon-code
/codes/1.1.0/reference/db/db-183.php
UTF-8
438
2.59375
3
[]
no_license
<?php // Binding with numeric placeholders $sql = "SELECT * FROM robots WHERE name = ?1 ORDER BY name"; $sql = $connection->bindParams($sql, array(1 => "Wall-E")); $result = $connection->query($sql); // Binding with named placeholders $sql = "INSERT INTO `robots`(name`, year) VALUES (:name:, :year:)"; $sql ...
true
22ee34340b0b4ccd89d5143de5f2cbbfa633edbd
PHP
repman-io/repman
/src/Security/UserChecker.php
UTF-8
715
2.578125
3
[ "MIT", "ISC", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Buddy\Repman\Security; use Buddy\Repman\Security\Model\User; use Symfony\Component\Security\Core\Exception\CustomUserMessageAuthenticationException; use Symfony\Component\Security\Core\User\UserCheckerInterface; use Symfony\Component\Security\Core\User\UserInterface; class U...
true
84ce4c20ec58022a41b679367a3d21836f047acc
PHP
jncinet/flysystem-wcs
/src/Sdk/Storage/ArgusManager.php
UTF-8
2,107
2.5625
3
[]
no_license
<?php namespace Jncinet\Flysystem\Wcs\Sdk\Storage; use Jncinet\Flysystem\Wcs\Sdk\Auth; use Jncinet\Flysystem\Wcs\Sdk\Config; use Jncinet\Flysystem\Wcs\Sdk\Support; /** * 内容审核接口 */ final class ArgusManager { private $auth; private $config; public function __construct(Auth $auth, Config $config = null) ...
true
ae6928102799916ab11f367cca476e56ad736e42
PHP
svititom/distributedWeather
/libs/ErrorPresenterListener.php
UTF-8
1,517
2.59375
3
[]
no_license
<?php namespace App\Api; use Kdyby\Events\Subscriber; use Nette\Application\Application; use Nette\Application\Request; use Tracy\Debugger; use Nette\Http\Request as HttpRequest; use Nette\Http\Response as HttpResponse; use Nette\Object; use Nette\Utils\Strings; class ErrorPresenterListener extends Object implemen...
true
9bd3069dcbecc00d9a5c70656223e2cdee0e8fcc
PHP
akim004/SoundCloudParser
/SoundCloudParser.php
UTF-8
3,594
2.8125
3
[]
no_license
<?php require_once 'DbRepository.php'; class SoundCloudParser { private $clientId; private $tracks; private $repository; private $url = 'https://api-v2.soundcloud.com/'; private $parseUrl; public function __construct($parseUrl, DbRepository $repository) { $this->parseUrl = $...
true
1183881d72fb700e6020a8cadc7dc38609a7857e
PHP
JuanMa2102/laravel-api-rest
/app/Http/Controllers/Auth/AuthController.php
UTF-8
1,878
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; use Illuminate\Validation\ValidationException; class AuthController extends Controller { public function register(Request $request){ $requ...
true
9236e92722e2de21d5078b378f9ffc3c8917fe03
PHP
pfalencar/Go_MEI
/edit_compra.php
UTF-8
1,484
2.6875
3
[]
no_license
<?php session_start(); include_once("Conexao.php"); $id = filter_input(INPUT_GET, 'id', FILTER_SANITIZE_NUMBER_INT); $result_compra = "SELECT * FROM compra WHERE id_compra = '$id'"; $resultado_compra = mysqli_query($conexao, $result_compra); $row_compra = mysqli_fetch_assoc($resultado_compra); ?> <!DOCTYPE html> <h...
true
8e09c0427b413653cfa59f55d17333d213445a7e
PHP
bluzi/simple-mvc-system
/ simple-mvc-system --username eliran013@gmail.com/Boot/Modules/form.sys.module.inc
UTF-8
18,553
2.859375
3
[]
no_license
<?php /** * @name form.sys.module.inc * @description * @date 29/03/2011 * @author Eliran Pe'er * @team */ class Form { /** * Constants */ const default_input_type = 'text'; const static_form_default_action = ''; const static_form_default_method = 'post'; const form_default_id = ''; const form_defa...
true
52d03f8a3e92430afd59664b017a8cdbdb350cf5
PHP
DorciM/login-php
/login/app/registration.php
UTF-8
3,434
2.8125
3
[]
no_license
<?php require('config.php'); $error = false; if (isset($_POST['username']) && isset($_POST['password'])){ $username = mysqli_real_escape_string($con, $_POST['username']); $email = mysqli_real_escape_string($con, $_POST['email']); $password = mysqli_real_escape_string($con, $_POST['password']); $hashed...
true
e9e84d8d66a8e6cb8884091563cc7a979e5e2f25
PHP
emmanuelleabendan/mod06-08
/assets/lib/twelve_days.php
UTF-8
1,187
3.078125
3
[]
no_license
<?php function console_log( $data ){ echo '<script>'; echo 'console.log('. json_encode( $data ) .')'; echo '</script>'; } function getTitle() { return '12 Days of Christmas'; } function getLyrics() { $days = array('first','second', 'third','fourth','fifth','sixth','seventh','eight','ninth','tenth','eleven...
true
b26ea3a551b860f25d2ac7ec5cfe3f55186e775c
PHP
jnashsiegle/SSL
/Week1/Part1/loop_break.php
UTF-8
553
3.90625
4
[]
no_license
<!DOCTYPE html> <html> <head lang = "en"> <meta charset = "UTF-8"> <title>loop break</title> </head> <body> <?php for ($count = 0; $count <= 10; $count++){ if ($count == 5){ break; } echo $count . ", "; } ?> <br /><br /> left side numbers from inner loop, right side #'s from outer loop' <?ph...
true
81abc2c2eb6b01312776fb2ec798114acd62d111
PHP
oz4n/NoiZingProject
/protected/extensions/dynatree/DynaTree.php
UTF-8
3,238
2.59375
3
[ "MIT" ]
permissive
<?php /** * DynaTree is a Yii Framework wrapper class for jQuery Dynatree extension {@link http://wwwendt.de/tech/dynatree/index.html) * also it handles with setting selected items and form submit in hidden fields. * * @author Murat Kutluer <muratkutluer@yahoo.com> * @copyright Copyright &copy; Murat Kutluer 2012...
true
e9ae86fbfad930471e5b495817b16fe8b2f52d03
PHP
jasonyulong/erpcnapi
/.svn/pristine/c4/c4960120a69d3dd0fc8cd2b3b76b9c686eef0583.svn-base
UTF-8
2,017
2.796875
3
[]
no_license
<?php class PdfToimg{ public function __construct(){} /** * @param $PDF pdf文件 */ function pdf2png($PDF,$sls,$dir){ $Path='./pngLable'; # echo $PDF.'<br>'; if(!file_exists($PDF)){ echo 'not file'; return false; } $bname=basename(...
true
3a41ceb98a974f432f35b5a6e675c523b1502917
PHP
martindeveloper/VisioFramework
/Html/Form.php
UTF-8
678
2.546875
3
[]
no_license
<?php /** * @author Martin Pernica * @copyright 2008 - 2013 * @version 3.0 * @license {linkPending} Proprietary software, unauthorized copying of this file is strictly prohibited! * @package Visio */ namespace Visio\Html; use Visio; /** * Creating HTML forms. Not completed yet! * * @package Visio\Html * @...
true
d8a5c39d51b5fdedcfa96ebad098dd2ec4f27361
PHP
SIU-Toba/framework
/php/nucleo/componentes/negocio/toba_cn.php
ISO-8859-1
5,752
2.59375
3
[]
no_license
<?php /** * Este componente permite unificar la carga y entrega de datos y servicios a una jerarquia completa de componentes de interface (especialmente a los cis) * * Separar la carga y utilizacin de los datos (inicio y fin de una transaccion de negocios) * permite: * -Lograr una maxima independencia entr...
true
f49863a80ffad5bb7a651d1dc3573408743325e2
PHP
inayelle/inayelle.store
/app/model/Sign.php
UTF-8
3,963
2.703125
3
[]
no_license
<?php namespace app\model; use app\model\entity\UserEntity; use app\model\entity\UserPermission; use app\model\exception\AlreadyVerifiedException; use app\model\exception\BadVerificationCodeException; use app\model\exception\UserNotFoundException; use vendor\auxiliary\Email; use vendor\auxiliary\SaltGenerator; use ve...
true
47a8c8b874ca7c73e8286129de193c9ba3abc751
PHP
deorankush1/OOPS-CONCEPT
/UtiliStatic.php
UTF-8
257
3.859375
4
[]
no_license
<?php class UtiliStatic { static public $numCars = 0; static public function addToNumCars($int) { $int = (int)$int; self::$numCars += $int; } } echo UtiliStatic::$numCars; UtiliStatic::addToNumCars(2); echo "<br> ". UtiliStatic::$numCars;
true
d2701aafa676b0211f08443cd148fe7b304c1287
PHP
topmaster716/Yolove_Laravel
/sg/app/filters.php
UTF-8
4,952
2.6875
3
[ "MIT" ]
permissive
<?php /* |-------------------------------------------------------------------------- | Application & Route Filters |-------------------------------------------------------------------------- | | Below you will find the "before" and "after" events for the application | which may be used to do any work befor...
true
f88c7f59d87c3e7f0b77683443f6715883d7693e
PHP
zy54321/notebook
/4_PHP/02PHP/01内部变量与魔术变量.php
UTF-8
464
2.671875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: dllo * Date: 18/3/13 * Time: 上午9:35 */ header("content-type:text/html;charset=utf-8"); //内部变量 //运行的操作系统 echo PHP_OS."</br>"; echo PHP_VERSION."</br>"; //魔术变量 //当前文件所在路径 echo __FILE__."</br>"; //打印当前文件所在路径 echo __LINE__."</br>"; //打印当前所在的行数 function aaa() { echo __F...
true
58ec36eb7a78c649c1dedcad58bbebb70cd4c470
PHP
watt0126/whshop
/source/application/common/model/article/Fields.php
UTF-8
1,043
2.71875
3
[]
no_license
<?php namespace app\common\model\article; use app\common\model\BaseModel; /** * 文章扩展字段模型 * Class Category * @package app\common\model */ class Fields extends BaseModel { protected $name = 'fields'; /** * 关联文章分类表 * @return \think\model\relation\BelongsToMany */ public function category() { return ...
true
c1ec1f6301eb597c53bb3bd3281f4cbca0dac527
PHP
tim-bec/attribute_combinedvalues
/src/system/modules/metamodelsattribute_combinedvalues/TableMetaModelsAttributeCombinedValues.php
UTF-8
1,757
2.6875
3
[]
no_license
<?php /** * The MetaModels extension allows the creation of multiple collections of custom items, * each with its own unique set of selectable attributes, with attribute extendability. * The Front-End modules allow you to build powerful listing and filtering of the * data in each collection. * * PHP version 5 *...
true
7d1d7f2efe55981b8b94cda5512e3331c516ef73
PHP
daniellienert/assetsource-pexels
/Classes/Api/PexelsClient.php
UTF-8
5,456
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace DL\AssetSource\Pexels\Api; /* * This file is part of the DL.AssetSource.Pexels package. * * This package is Open Source Software. For the full copyright and license * information, please view the LICENSE file which was distributed with this * source code. */ use DL\Asse...
true
a7ea0665772a3f95b75efac700f34227b101ecba
PHP
faina7748/laravel-api-starter
/app/Api/Controllers/DistrictsController.php
UTF-8
2,287
2.5625
3
[]
no_license
<?php namespace Api\Controllers; use App\Districts; use App\Http\Requests; use Illuminate\Http\Request; use Api\Requests\DistrictsRequest; use Api\Transformers\DistrictsTransformer; /** * @Resource('Districts', uri='/districts') */ class DistrictsController extends BaseController { public function __construct...
true
0c74b2594c8192683cde5e552dbbb5019029cb28
PHP
zhaobinforward/luniang2017
/include/class.mysql7.php
UTF-8
6,905
3.09375
3
[]
no_license
<?php /** * mysql相关操作 */ class nMysql { var $m_host; var $m_port; var $m_user; var $m_password; var $m_name; var $m_link; var $m_charset; function Err($sql = "") { // echo "db error!";exit; $host = $_SERVER['HTTP_HOST']; $remote_addr = $_SERVER['REMOTE_ADDR']; // echo "db error!";exit; if...
true
4072b51d73ae105c9e1983220c238aae1936ea21
PHP
sonysaji/mvcstudentregistration
/mvcstudentregistration/model/mymodel.php
UTF-8
6,313
2.671875
3
[]
no_license
<?php class mymodel { function adminauthentication($user,$pass) { include('../config/connection.php'); $result=mysqli_query($conn,"SELECT * from admin WHERE username='".$user."' and password='".$pass."'"); $count=mysqli_num_rows($result); if($count>0) { while...
true
e7583bba5e0059aff969d6088e3da9f6c4b9664b
PHP
jeromeklam/PawFw
/Library/PhalconFW/Tools/Dir.php
UTF-8
811
2.96875
3
[]
no_license
<?php namespace PhalconFW\Tools; class Dir { /** * * @param unknown $path * @return boolean */ public static function mkpath ($path) { if (@mkdir($path) || file_exists($path)) { return true; } return (self::mkpath(dirname($path)) && mkdir($...
true