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
c3c36c9e56a28a329e596cf081c7d63a8288b2e8
PHP
planetacomputer/socphp
/webservices/server.php
UTF-8
543
2.546875
3
[]
no_license
<?php if(!extension_loaded("soap")){ echo "carga extension"; dl("php_soap.dll"); } ini_set("soap.wsdl_cache_enabled","0"); $server = new SoapServer("aritmetica.wsdl"); function sumar($operando1,$operando2){ return $operando1+$operando2; } function restar($operando1,$operando2){ return $operando...
true
0e5c2e2cbb6a5fa46f16d8ff3c670e413a66e598
PHP
Denisov-Vladimir/web-development
/lw3/task2/task2.php
UTF-8
777
3.140625
3
[]
no_license
<?php function checkIdentifier(string $ident): ?string { if (ctype_alpha($ident[0])){ for ($i = 1; $i < strlen($ident); $i++) { if (!((ctype_alpha($ident[$i])) or (ctype_digit($ident[$i])))) return 'NO (Есть специальные символы)'; }...
true
629f62a982cef9eb82f5471d8d89e6055f1898ab
PHP
ecfectus/cache
/src/Adapters/ProxyAdapter.php
UTF-8
1,846
2.640625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: leemason * Date: 10/10/16 * Time: 14:27 */ namespace Ecfectus\Cache\Adapters; use Psr\Cache\CacheItemInterface; class ProxyAdapter extends AbstractAdapter { /** * @var null */ private $pool = null; /** * Accept a PSR CacheItemPoolInterface ins...
true
fdae5e933e3ecb77cf5c4740ac965eff47c86ea3
PHP
SagLara/Logica-de-Sistema-de-Ventas-PHP
/ubicacionCrud.php
UTF-8
3,712
2.640625
3
[]
no_license
<?php class Ubicacion{ public function addUbicacion($data){ try{ $id_cliente = $data['id_cliente']; $ciudad = $data['ciudad']; $latitud = $data['latitud']; $longitud = $data['longitud']; $conexion = new Conexion(); $db = $conexion->getConexion(); $query = "INSERT INTO ubicacio...
true
48fca26713328aec93e7135747fb60a8a43c7e6f
PHP
tequila/mongodb-odm
/src/BulkWriteBuilder.php
UTF-8
4,255
2.65625
3
[ "MIT" ]
permissive
<?php namespace Tequila\MongoDB\ODM; use MongoDB\Operation\BulkWrite; use Tequila\MongoDB\ODM\Exception\InvalidArgumentException; use Tequila\MongoDB\ODM\Exception\LogicException; class BulkWriteBuilder { /** * @var DocumentManager */ private $documentManager; /** * @var string */ ...
true
50e25c0652bf7707787be84c94db377bea4aac6b
PHP
AntonIarosh/bitrix_bonus
/src/Commands/DemoData/GenerateContactsCommand.php
UTF-8
5,407
2.546875
3
[]
no_license
<?php declare(strict_types=1); namespace Rarus\Interns\BonusServer\Commands\DemoData; use Bitrix24\SDK\Core\Exceptions\BaseException; use Psr\Log\LoggerInterface; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Sy...
true
5a987d19d52293a5d2626542e3c75ca6fe5a9189
PHP
tonypeng/photon
/lib/HashMap.php
UTF-8
1,418
3.078125
3
[ "MIT" ]
permissive
<?php abstract class IHashCodeProvider { public function getHashCode() { return spl_object_hash($this); } } class HashMap implements ArrayAccess { private $_map; private $_keys; // save keys for keys() public function __construct() { $this->_map = []; $this->_keys = []; ...
true
0bc1d58e97ca3a5a362dc8401569ad3dab9a29e2
PHP
alexandre-melard/EventFlowAnalyser
/src/Mylen/EventFlowAnalyser/Entity/EventIn.php
UTF-8
2,818
2.734375
3
[ "MIT" ]
permissive
<?php /** * Created by JetBrains PhpStorm. * User: Alexandre Melard <alexandre.melard@atos.net> * Date: 24/10/12 * Time: 17:07 * EventIn class type. An event aggregates 0..* EventOut. */ namespace Mylen\EventFlowAnalyser\Entity; use Mylen\EventFlowAnalyser\Patterns\VisitorHost; use Mylen\EventFlowAnalyser\Patter...
true
b84e186739936e3d5c2f480ec656ccdae38396f2
PHP
manhnt190199/manhnt99
/project/frontend/controllers/PaymentController.php
UTF-8
7,970
2.625
3
[]
no_license
<?php //controllers/PaymentController.php require_once 'controllers/Controller.php'; require_once 'models/Order.php'; require_once 'models/OrderDetail.php'; //nhúng các file liên quan đến thư viên PHPMailer để gửi mail require_once 'configs/PHPMailer/src/PHPMailer.php'; require_once 'configs/PHPMailer/src/SMTP.php'; re...
true
1c9e7a46f7f47ba3c563ec38d47552d18722ff0b
PHP
ProjectInfoWeek/Projeto-InfoWeek
/admin/validacaouser.php
UTF-8
4,547
2.578125
3
[]
no_license
<!DOCTYPE html> <!-- 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. --> <?php session_start(); if (!(isset($_SESSION['logadoadmin']))) { if(!(isset($_SESSION['logamod']))) { ...
true
64df9a2a9070812990d8a3a72b46cc58b90684ac
PHP
MichaelBeeu/jp_doc_conv
/convert.php
UTF-8
1,316
3.203125
3
[]
no_license
<?php require "vendor/autoload.php"; use App\Reader\XMLReader; use App\Writer\HtmlWriter; use App\Iterator\FuriganaIterator; $output_filename = '-'; $input_filename = '-'; // Perform very basic argument handling. // TODO: Implement more complex handling of arguments. See getopt() if (!isset($argv[1])) { // Print...
true
7347b1d1e76011a50aa100224f83ebc547381624
PHP
srinivas-narayan/htdocs
/CSS/PHP/FunObj.php
UTF-8
2,984
3.515625
4
[]
no_license
<?php //Chapter 7 - Practical PHP printf("I an %d years old, which is %X in hexadecimal<br>", 34, 34); //use it to generate color! printf("<font color='#%X%X%X'>Hello</font> <br>", 65, 127, 245); $r = 65; $g= 127; $b = 245; /* for ($i=0;$i<255;$i++) { $r = $r +1; for ($j=0;$j<255;$j++) { $g= $g +1; for ($k=0;...
true
c68e82fadb6336c17c8d42a53dd407049f9ed9e3
PHP
Santttal/carsharing
/carsharing/app/Models/CarsharingPolygon.php
UTF-8
1,200
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Geokit\LatLng; use Geokit\Polygon; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; /** * @property Polygon coordinates */ class CarsharingPolygon extends Model { use SoftDeletes; protected $table = 'polygons'; public function getCo...
true
6f5ad1ad853bf2450e512c08f8f53bdb3c091be3
PHP
nowisesys/uup-ews
/source/UUP/Exchange/Types/SyncFolderItemsReadFlagType.php
UTF-8
1,345
2.828125
3
[ "Apache-2.0" ]
permissive
<?php namespace UUP\Exchange\Types; class SyncFolderItemsReadFlagType { /** * @var ItemIdType $ItemId */ protected $ItemId = null; /** * @var boolean $IsRead */ protected $IsRead = null; /** * @param ItemIdType $ItemId * @...
true
57273f12acc36a34897c74803c8c88e77b0b8d4e
PHP
werd2000/contasoft
/Aplicacion/Modulos/Profesionales/Modelo/ProfesionalesModelo.php
UTF-8
3,656
2.84375
3
[]
no_license
<?php require_once 'App/LibQ/ModelBase.php'; /** * Clase para interactuar con la BD en el modulo Profesionales * @author Walter Ruiz Diaz * @see LibQ_ModelBase * @category Modelo * @package Profesionales */ class ProfesionalesModelo extends ModelBase { function __construct() { parent::__cons...
true
de57e1a0c84448875180014ee772af3a48e4ddf4
PHP
dastrup-kamianne/cs313-php
/assignments/scriptures.php
UTF-8
3,053
2.984375
3
[]
no_license
<?php $dbHost = getenv('OPENSHIFT_MYSQL_DB_HOST'); $dbPort = getenv('OPENSHIFT_MYSQL_DB_PORT'); $dbUser = getenv('OPENSHIFT_MYSQL_DB_USERNAME'); $dbPassword = getenv('OPENSHIFT_MYSQL_DB_PASSWORD'); $dbName = 'scriptures'; $db = new PDO("mysql:host=$dbHost:$dbPort;dbname=$dbName", $dbUser, $dbPassword); $book = ...
true
9fbcf64e01851d16a2f291e7837909787af487ec
PHP
yoedall/ProyectoProcesos
/Procesos/application/models/UsuarioModel.php
UTF-8
1,364
2.65625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php Class UsuarioModel extends CI_Model { // Todas las consultas son realizadas mediante procedimientos almacenados function __construct() { parent::__construct(); $this->load->database('default'); } public function registrarUsuario($nombres,$apellidos,$usuario,$passw) { $llamar="CALL sp...
true
1185cf9ac4e36682c3b4c6d4a7f45880fdc48065
PHP
johncxf/laradmin
/app/Http/Controllers/Admin/AdminBaseController.php
UTF-8
842
2.625
3
[ "Apache-2.0" ]
permissive
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; class AdminBaseController extends Controller { // 默认连接数据库 protected $CONN_DB; public function __construct() { $this->CONN_DB = 'mysql_laradmin'; } /** * 获取登录用户信息 * @param string $guard * ...
true
4f6ab4a826a7b37ff81e069860c78cc30a3c0418
PHP
AlexBauchet/Running
/app/Controller/DefaultController.php
UTF-8
580
2.546875
3
[]
no_license
<?php namespace Controller; use \W\Controller\Controller; class DefaultController extends Controller { /** * Page d'accueil par défaut */ public function home() { $user = $this->getUser(); if (isset( $user )) { $this->redirectToRoute('seekrun'); } else { $this->show('default/home'); } ...
true
731800bc0923f4a7fbc144df9fe0ae8b2b116620
PHP
slickframework/http
/src/Message/Server/Request.php
UTF-8
9,822
2.78125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * This file is part of slick/http * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Slick\Http\Message\Server; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\StreamInterface; use Psr\Http\Messa...
true
90cd5d20839737a32c6500decc5245ab93178797
PHP
gudwin/extasy
/src/Columns/Checkbox.php
UTF-8
2,189
2.5625
3
[]
no_license
<? namespace Extasy\Columns { use \Faid\UParser; use \Faid\DB; use \DAO_Exception; //************************************************************// // // // Элемент Input // // Copyright (c) 2006 ООО S...
true
9e13a234b3a201cbc584a97ba9e1dd6471fd4481
PHP
iamsajidjaved/swismax
/includes/db_o_delete_order.php
UTF-8
501
2.515625
3
[ "MIT" ]
permissive
<?php // including database connection file include '../config/db_connection.php'; // getting h_id from get variable $o_id=$_GET['o_id']; //declaring message variable $message=''; //deleting data $sql = "DELETE FROM baw_orders WHERE o_id='$o_id'"; if ($conn->query($sql) === TRUE) { $message= "Order deleted su...
true
a647bed8ca570910e241159d96f1369452ff551f
PHP
elboby/asCachedRoutingPlugin
/lib/configuration/ControllerConfiguration.class.php
UTF-8
1,003
2.59375
3
[]
no_license
<?php class ControllerConfiguration { protected $config, $application, $environment; public function __construct($config, $application, $environment) { $this->config = $config; $this->application = $application; $this->environment = $environment; } public function init() {} public fu...
true
ec5deee86f007207ae7884f173dd853f4f2bac40
PHP
fredfmm/estoque
/app/Http/Controllers/ProdutoController.php
UTF-8
4,463
2.671875
3
[]
no_license
<?php namespace estoque\Http\Controllers; use estoque\Produto; use Illuminate\Support\Facades\DB; use Request; use estoque\Http\Requests\ProdutosRequest; class ProdutoController extends Controller { public function __construct() { $this->middleware('auth'); } public function lista(){ // $produtos...
true
329ce16765f8e801cf441f42ea78dcd9585162db
PHP
turkmvc/Hepsiburada_Fiyat_Bulucu
/findprice.php
UTF-8
729
2.75
3
[]
no_license
<?php function find($dom,$tag,$attribute,$constant){ $returnList = $dom->getElementsByTagName($tag); foreach ($returnList as $element){ if($element->getAttribute($attribute) == $constant){ return $element; } } } function get_price($link){ $data = @file_get_contents($li...
true
7f2eff04735453bb8bd60cfc9e0f496fef89701a
PHP
keshavgautam/wowrolApp
/App/mvcPureCDN/urlparse/sr-includes/libraries/functions/function_time.php
UTF-8
2,785
2.78125
3
[]
no_license
<?php /*/ date_dayformat(_ /*/ function date_dayformat($time) { $time= strtotime($time); if ($time >= strtotime("today 00:00")) { return date("h:i a", $time) ; } elseif ($time >= strtotime("yesterday 00:00")) { return "Yesterday at ".date("h:i a", $time); } elseif ($time >= strtotime(...
true
6e0eb0d454eb367d774fec436000184da7b0f581
PHP
georanma/amazon-mws-service
/src/AmazonService/AmazonMerchantShippingServices.php
UTF-8
1,620
2.765625
3
[ "MIT" ]
permissive
<?php namespace Georanma\AmazonMwsService\AmazonService; /** * Gets Eligible Shipping Services from Amazon for Creating Shipments. * * This Amazon Feeds Core object can submit feeds to Amazon. * In order to submit a feed, the feed's contents (as direct input or from a file) * and feed type must be set. Once the ...
true
8c3cd8fede8d3e7789a394a3ebdd7989c775ee14
PHP
JanaKlasterkova/php-lekce-3
/ukol-1.php
UTF-8
150
3.015625
3
[]
no_license
<?php $cislo=3; if ($cislo < 0 ) { echo 'záporné číslo'; } elseif ($cislo === 0) { echo 'nula'; } else { echo 'kladné číslo'; }
true
cb8880e4e481bf0f148f05887bdd3763cf27fbe6
PHP
ChargeMap/ocpi-protocol
/src/Versions/V2_1_1/Client/Locations/Get/GetLocationResponse.php
UTF-8
1,460
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace Chargemap\OCPI\Versions\V2_1_1\Client\Locations\Get; use Chargemap\OCPI\Common\Client\Modules\Locations\Get\GetLocationResponse as BaseResponse; use Chargemap\OCPI\Common\Client\OcpiUnauthorizedException; use Chargemap\OCPI\Common\Server\Errors\OcpiInvalidPayloadClientError; ...
true
4dc4fdc217cad8ea67d886d0bd57cea2857c8a55
PHP
CmfOrchestra/cmfOrchestra
/vendor/Zend/library/Zend/Form/Element/Xml.php
UTF-8
960
2.671875
3
[ "MIT" ]
permissive
<?php /** * AF Application * * @category Library * @package FormeElement * @subpackage Xml * @version $Id: Xml.php 2009-11-19 00:00:00 pi_etienne $ * * @author Etienne de Longeaux <etienne_delongeaux@hotmail.com> */ require_once ('Zend/Form/Element.php'); /** * Classe Element Xml. *...
true
4cbb5d559153c78b933ac2a6288e0b36420ba15c
PHP
nyroDev/UtilityBundle
/Form/Type/FilterTypeInterface.php
UTF-8
642
2.71875
3
[ "MIT" ]
permissive
<?php namespace NyroDev\UtilityBundle\Form\Type; use NyroDev\UtilityBundle\QueryBuilder\AbstractQueryBuilder; /** * Interface to be used for FilterType elements. */ interface FilterTypeInterface { /** * Apply the filter to the given QueryBuilder. * * @param string $name Field name * @param ...
true
aa448c175b6d20e3c6af22affbbace2dae0e2069
PHP
vsimitsis/brewme
/src/Model/User.php
UTF-8
351
2.828125
3
[]
no_license
<?php namespace BrewMe\Model; class User { public $user_id; public $username; public $created_at; public $updated_at; /** * User constructor. * * @param array $attrs */ public function __construct($attrs = []) { foreach ($attrs as $key => $v) { $thi...
true
d6ee04f2e0077b34b38ba07c824b77c30d9360de
PHP
madjarica/pdg
/app/Http/Controllers/AdminEventTypeController.php
UTF-8
1,647
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\EventType; use Illuminate\Support\Facades\Input; use Illuminate\Support\Facades\Redirect; use Illuminate\Support\Facades\Validator; class AdminEventTypeController extends Controller { /* |-------------------------------------------------------------------...
true
6694be6b79171b0a3198900be35b944bd1b1cf2b
PHP
ialex1970/test
/App/Db.php
UTF-8
1,345
3.1875
3
[]
no_license
<?php namespace App; class Db { use Singleton; private $_dbh; /** * Db constructor. */ protected function __construct() { $options = array( \PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8', ); try { $this->_dbh = new \PDO('mysql:host=127....
true
ae9efb5c5bbf8ca44fe29c41e0d98b78dfd1d719
PHP
pamungk29/rest-api
/json/latihan2.php
UTF-8
251
2.53125
3
[]
no_license
<?php // mengambil data json $data = file_get_contents('coba.json'); // jika ingin merubah menjadi array tambahkan true di parameter kedua $mahasiswa = json_decode($data,true); var_dump($mahasiswa); echo $mahasiswa[0]["pembimbing"]["pembimbing1"];
true
d900d06a61cff4f381822890e3c29aff7bac6440
PHP
ProgramowanieToWyzwanie/potrzeba_wyznacza_rozwoj
/guest/actions/register.php
UTF-8
2,863
2.859375
3
[]
no_license
<?php session_start(); // startujemy sesje $_SESSION['register_errors'] = false; // ustawiamy zmienna sesyjna w której będziemy zapisywać komunikaty o błędach $_SESSION['register_success'] = false; // ustawiamy zmienna sesyjna w której będziemy zapisywać komunikaty powodzeniu $name = $_POST['name']; ...
true
397e18e51510467ec3d7f7c93cb468622f259789
PHP
asknicely/jobadder-api-client
/generated/Model/UserGroupRepresentation.php
UTF-8
1,560
2.734375
3
[]
no_license
<?php namespace Varspool\JobAdder\V2\Model; class UserGroupRepresentation { /** * @var int */ protected $groupId; /** * @var string */ protected $name; /** * @var UserSummaryModel[] */ protected $users; /** * @var UserGroupLinks */ protected $lin...
true
b4a8bce4bb83c3447a24d1304250dd74bb23783e
PHP
MarkussenDk/bdpweb
/bildelspriser.dev/bdp/library/Bildelspriser/DB/DBObject.php
UTF-8
12,319
2.671875
3
[ "MIT" ]
permissive
<?php //namespace library\Bildelspriser\DB; $db=""; include 'UTF8.php'; class Bildelspriser_DB_DBObject { private $id = 0; public $table; public $id_name; /** @var $fields array containing all fields */ public $fields = array(); //public static $sta_tab_name; public $insert_statements; public stati...
true
dd8c25a961de3f174a0aafda406112a2558c0627
PHP
rednascodes/SpecRepo
/src/Specification/OrSpecification.php
UTF-8
301
2.625
3
[]
no_license
<?php namespace SpecRepo\Specification; class OrSpecification extends CompositeSpecification { public function isSatisfiedBy($candidate) { foreach ($this->_specifications as $specification) { if ($specification->isSatisfiedBy($candidate)) { return true; } } return false; } }
true
e8d1fb8e51002408ca2c7dd10f5217c53d54a442
PHP
ir-regular/hopper
/src/Ds/HashMap/Lazy.php
UTF-8
8,528
2.78125
3
[]
no_license
<?php declare(strict_types=1); namespace IrRegular\Hopper\Ds\HashMap; use IrRegular\Hopper\Ds\Lazy as LazyInterface; use IrRegular\Hopper\Ds\Mappable; use IrRegular\Hopper\Ds\Sequence; use IrRegular\Hopper\Ds\Set; use function IrRegular\Hopper\Language\convert_to_key; use function IrRegular\Hopper\Language\is_valid_k...
true
ec670a29cbc5221e860cc618f07ed751eac3b16f
PHP
superphs333/challenger_
/joinfeedoneheart.php
UTF-8
1,472
2.5625
3
[]
no_license
<?php // db, phpfunction 파일 불러오기 include "./db.php"; include "./phpfunction.php"; // ajax로 받아온 정보 {shotidx:shotidx,check:check,category:category,sort:sort} $category = $_POST['category']; // 어떤 데이터베이스값 변경할지 $check = $_POST['check']; $idx = $_POST['shotidx']; $sort = $_POST['sort']; $user = $_SESSION['user']; // 데이터베...
true
76dd554219b9364ab84385c49fb996f5895ddb6d
PHP
zooshme/25hlabs
/extensions/content_field/fields/field.content.php
UTF-8
14,828
2.546875
3
[ "MIT" ]
permissive
<?php /** * @package content_field */ require_once __DIR__ . '/../libs/message-stack.php'; require_once __DIR__ . '/../libs/content-type.php'; require_once __DIR__ . '/../libs/text-content-type.php'; class FieldContent extends Field { protected $errors; public function __construct() { parent::__cons...
true
ba7c8e819ff970a76a94c9e3253181b236b1e456
PHP
Robert430404/plm-php-sdk
/src/PlmSdk/Entities/Create/Loan.php
UTF-8
2,811
3.03125
3
[]
no_license
<?php namespace Robert430404\PlmSdk\Entities\Create; use Robert430404\PlmSdk\Contracts\Entity; /** * Class Loan * * @package Robert430404\PlmSdk\Entities\Create */ class Loan implements Entity { /** * @var string */ private $accessKey; /** * @var int */ private $customerId; ...
true
585cf6d12baedf1e7e4065d8e549e517ffc0214b
PHP
warlomak/telegram-bot-backend
/app/Http/Requests/Bot/CreateBotRequest.php
UTF-8
446
2.5625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Http\Requests\Bot; use App\Http\Requests\Api\JsonRequest; /** * @property-read string $label * @property-read string $token */ class CreateBotRequest extends JsonRequest { public function rules(): array { return [ 'label' => array_merge(['re...
true
5d88d8d1af8e043fa36e388718cbb6c0e3cb4cae
PHP
jinghewang/yii2-advanced-2.0.6
/api/models/Organization.php
UTF-8
3,329
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace api\models; use common\models\User; use Yii; /** * This is the model class for table "organization". * * @property string $orgid * @property string $name * @property string $parentid * @property integer $lft * @property integer $rgt * @property integer $level * @property string $enname * @p...
true
90fc745fa2b4a4352c5cdcf9fba29e275b15a161
PHP
dsisconeto/Capsula-do-Tempo
/PHP - Informativo Carajás 2/app/Controllers/Services/Site/ServicesSystemSocialNetwork.php
UTF-8
598
2.5625
3
[]
no_license
<?php namespace App\Controllers\Services\Site; use App\Models\System\SocialNetwork; use DSisconeto\Simple\DataBase\SQL\Criteria; class ServicesSystemSocialNetwork { public function selectOrderByName() { $social = new SocialNetwork(); $cri = new Criteria(); $cri->setProperty("order",...
true
fc1d17f30539238ec8074a9a66e19d6b060f76b6
PHP
4elbik/Spanch
/models/create_page.php
UTF-8
596
2.6875
3
[]
no_license
<?php require_once __DIR__ . '/../functions/DB.php'; require_once __DIR__ . '/../functions/translit.php'; $way = __DIR__ . '/../games/'; $query = 'SELECT title FROM games'; $res = sql_query($query); foreach ($res as $one) { $all_pages = strtolower(translit(implode('_', explode(' ', $one['title'])))) . '.php'; ...
true
b2c6a379d5ca148ec1477730bd7f9778a3926031
PHP
Cyber-Duck/laravel-search
/src/ModelObserver.php
UTF-8
2,199
2.71875
3
[ "MIT" ]
permissive
<?php namespace CyberDuck\Search; use Illuminate\Database\Eloquent\SoftDeletes; class ModelObserver { /** * The class names that syncing is disabled for. * * @var array */ protected static $syncingDisabledFor = []; /** * Enable syncing for the given class. * * @param ...
true
d0764210cbf5815cc8262b7fb276d4f8e66d8744
PHP
baquaz/Lumen-API
/database/migrations/2017_08_14_221101_create_items_table.php
UTF-8
939
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateItemsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('items', functi...
true
e46a61c3854fa39a7778de4e7b07ccf35e1527ac
PHP
abbibr/register-and-login
/signup.php
UTF-8
2,165
2.765625
3
[]
no_license
<?php session_start(); include_once "db.conn.php"; if(isset($_POST['name']) && isset($_POST['email']) && isset($_POST['password']) && isset($_POST['cpassword'])) { function validate($data) { $data=trim($data); $data=stripcslashes($data); $data=htmlspecialchars($data); return $data; } $name=va...
true
c1749e875158df6a4a14d9ed6857c86dc75ef201
PHP
adnam/ban-framework
/src/Ban/Application.php
UTF-8
2,970
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php require_once 'Zend/Application.php'; require_once 'Zend/Config.php'; require_once 'Zend/Config/Ini.php'; class Ban_Application extends Zend_Application { const CONFIG_CACHE_TIMEOUT = 10; // 10 seconds /** * Constructor * * Initialize application. Potentially initializes include_path...
true
55a77b9469691346465ebfba8831e3fa59965599
PHP
2125zyrc/easyswoole_api
/App/Exception/ApiException.php
UTF-8
531
2.578125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: samsun * Date: 2020/5/21 * Time: 9:14 PM */ namespace App\Exception; use EasySwoole\Http\Exception\Exception; use Throwable; class ApiException extends Exception { protected $message = 'base error'; protected $code = 200; public function __construct(string ...
true
424b9768ec1ff25158bc72917838570cd8c0b8f8
PHP
dels07/fabelio-price-monitor
/app/PriceHistory.php
UTF-8
591
2.515625
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * App\PriceHistory * * @property-read \App\Product $product * @method static \Illuminate\Database\Eloquent\Builder|\App\PriceHistory newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|\App\PriceHistory newQuery() * @method sta...
true
76777ab1e6f40000eef9d5372065f733709aa892
PHP
kovarthanan3222/articlePublish-angular
/app/server_side/functions.php
UTF-8
2,213
3.15625
3
[ "MIT" ]
permissive
<?php require_once 'config.php'; class Database { public $db = ""; public function __construct() { $this->db = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME); } /** * Inserting into database */ public function insert($tableName, $values) { $column = implode(","...
true
fb1d31adbe710ff6874564c2b32cb3df96a3dc2b
PHP
yalsicor/treeo_api
/app/Containers/Village/Tasks/CreateVillageTask.php
UTF-8
860
2.78125
3
[ "MIT", "Apache-2.0" ]
permissive
<?php namespace App\Containers\Village\Tasks; use App\Containers\Village\Data\Repositories\VillageRepository; use App\Ship\Exceptions\CreateResourceFailedException; use App\Ship\Parents\Tasks\Task; use Exception; /** * Class CreateVillageTask * * @author Sebastian Weckend <sebastian.weckend@posteo.de> */ class C...
true
b1d16a66b30f0ebf8c1626f9322e7c264438a8d3
PHP
pascoseankyle/Cocolime
/apiPos/models/Post.php
UTF-8
33,075
2.71875
3
[]
no_license
<?php class Post{ protected $gm, $pdo, $get; public function __construct(\PDO $pdo) { $this->pdo = $pdo; $this->gm = new GlobalMethods($pdo); $this->get = new Get($pdo); } // ADD PRODUCT // CRM NEW FUNCTIONS public function notConfirmed($dt) { $code = 401; $payload ...
true
0ae39e47cb27da92f71e0ccae206c4c88c58c0df
PHP
mmockelyn/v3
/app/Repository/Route/Version/VersionGareRepository.php
UTF-8
624
2.6875
3
[]
no_license
<?php namespace App\Repository\Route\Version; use App\Model\Route\RouteVersionGare; class VersionGareRepository { /** * @var RouteVersionGare */ private $routeVersionGare; /** * VersionGareRepository constructor. * @param RouteVersionGare $routeVersionGare */ public function...
true
879241874f4d6188bd152590afcb5135381b57d2
PHP
DanielEduardoA/pousada
/pousada/clientes.php
UTF-8
3,403
2.71875
3
[]
no_license
<?php require_once('conexao.php'); if(isset($_POST['nome']) && $_POST['nome'] != "" && isset($_POST['documento']) && $_POST['documento'] != "" && isset($_POST['dataNascimento']) && $_POST['dataNascimento'] != "" && isset($_POST['cidade']) && $_POST['cidade'] != ""){ $id = $_POST['id']; $nome = $_POST['nome']; $...
true
02765e60355ed36a8013e14dee8341dfdd9a7586
PHP
thephpleague/uri-schemes
/src/AbstractUri.php
UTF-8
35,047
2.6875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * League.Uri (http://uri.thephpleague.com). * * @package League\Uri * @subpackage League\Uri\Schemes * @author Ignace Nyamagana Butera <nyamsprod@gmail.com> * @license https://github.com/thephpleague/uri-schemes/blob/master/LICENSE (MIT License) * @version 1.2.1 * @link https://git...
true
d70868d2bda089441ca0757a7f7e92f4616d7303
PHP
camcima/bit-util-php
/src/BitUtil/BitStreamWriter.php
UTF-8
1,357
3.734375
4
[]
no_license
<?php namespace BitUtil; use BitUtil\BitArray; /** * a mechanism for writing a stream if bits into a string, which can then be easily transmistted or stored */ class BitStreamWriter { private $data = ""; private $workingByte = null; private $cursor = 0; /** * initialize be creating our work...
true
8c6607096282b2771c864699096c86eaade7ad40
PHP
hbasyhari/tugas_akhir
/edit.php
UTF-8
2,261
2.625
3
[]
no_license
<?php //koneksi DBMS require "functions.php"; $hewan = query("SELECT * FROM dt_hwn WHERE id=$_GET[id]"); //cek apakah tombol submit sudah ditekan atau belum? if(isset($_POST["submit"])){ if(count($hewan) == 0){ echo " <script> alert('Data Hewan Tidak Ada'); document.location.href =...
true
d6a7eccbe62b61207e9cf31701364f60b69cad05
PHP
justin-ash/csvfileextract
/app/Jobs/FileExtract.php
UTF-8
3,334
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Jobs; use App\Imports\ValidateFile; use App\Mail\ErrorReportMail; use App\Model\ModuleModel as Module; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModel...
true
bf296fa003357fc575483bf348ff7170447a4937
PHP
yohei4/Schedule_management
/app/Calendar/CalendarMonth.php
UTF-8
1,024
3.3125
3
[ "MIT" ]
permissive
<?php namespace App\Calendar; use Carbon\Carbon; class CalendarMonth { protected $carbon; protected $index = 0; function __construct($date, $index = 0){ $this->carbon = new Carbon($date); $this->index = $index; } function getClassName(){ return "Month-" . $this->index; } /** * @return CalendarWeekD...
true
37b5e4c30fa290b229279503303a55cfdb465698
PHP
BernhardBaier/WebsiteEditor
/setup/user.php
UTF-8
6,304
2.671875
3
[]
no_license
<?php error_reporting(E_ERROR); /** * Created by PhpStorm. * User: Bernhard * Date: 01.08.14 * Time: 19:53 */ if(!function_exists('encrypt')){ function encrypt($decrypted, $password, $salt='!kQm*fF3pXe1Kbm%9') { // Build a 256-bit $key which is a SHA256 hash of $salt and $password. $key = hash('SHA256', $salt...
true
49d474e5a97800cf448ee1d5d3e13d9314199d4a
PHP
ManuelVR461/practica-mvc-php
/models/nuevomodel.php
UTF-8
683
2.6875
3
[]
no_license
<?php class NuevoModel extends Model{ public function __contruct(){ parent::__contruct(); } public function insert($data){ try { $query = $this->db->connect()->prepare( 'INSERT INTO alumnos (matricula,nombre,apellido) ' . 'VALUES (:matricula,:nom...
true
e251676c05788641760bd6c47536976c8edf0aa5
PHP
csiyuan/yishunHospitalAssignment
/doLogin.php
UTF-8
1,657
2.6875
3
[]
no_license
<!-- CHENG SI YUAN 19016011 --> <?php include("dbFunctions.php"); session_start(); if (isset($_POST['username'])) { $username = $_POST['username']; $password = $_POST['password']; $query = "SELECT * FROM user WHERE name='$username' AND password=SHA1('$password')"; $result = mysqli_query($link, $quer...
true
d4ec0136fa9f1b4e3ff7433d3ba3c13d681de558
PHP
JulioCVaz/som-de-garagem
/api/app/Http/Controllers/ArtistController.php
UTF-8
3,251
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Artistas; use Illuminate\Support\Facades\DB; class ArtistController extends Controller { public function __constructor(){ $pattern = '[0-9]+'; } // retorna todas as ocurrencias segundo a busca ...
true
7d9bb6e5cca8ff60edb2521f6be5cc24674e117d
PHP
ePrescription/patientportal
/app/patientportal/utilities/UserType.php
UTF-8
252
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\patientportal\utilities; class UserType { const USERTYPE_ADMIN = 1; const USERTYPE_HOSPITAL = 2; const USERTYPE_DOCTOR = 3; const USERTYPE_PATIENT = 4; const USERTYPE_LAB = 5; const USERTYPE_PHARMACY = 6; }
true
020b467c345233d3a90e86db0ce35258a7932256
PHP
GunioRobot/BreadcrumbBundle
/BreadcrumbItem.php
UTF-8
4,280
2.875
3
[]
no_license
<?php namespace Bundle\BreadcrumbBundle; class BreadcrumbItem implements \ArrayAccess, \Countable, \IteratorAggregate { /** * Properties on this breadcrumb item */ protected $route = null, // the route of this breadcrumb item $attributes = null, // an array of attrib...
true
fc388acd2c85c2818b69b9b52aedf60a5fce4820
PHP
sinri/aliyun-log-php-sdk
/Aliyun/SinriLog/src/Models/MachineGroupAttribute.php
UTF-8
597
2.71875
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
<?php namespace sinri\aliyun\sls\Models; class MachineGroupAttribute { public $externalName; public $groupTopic; public function __construct($externalName = null, $groupTopic = null) { $this->externalName = $externalName; $this->groupTopic = $groupTopic; } public function t...
true
1a3a89e5abc1e4fc26e946ef92b6a69dec01b430
PHP
przeslijmi/test
/src/Exceptions/WrotypeDefaultsException.php
UTF-8
1,404
2.828125
3
[]
no_license
<?php declare(strict_types=1); namespace Przeslijmi\XlsxPeasant\Exceptions; use Przeslijmi\Sexceptions\Exceptions\ParamWrotypeException; use Throwable; /** * While setting defaults wront type of value has been used for particular setting. */ class WrotypeDefaultsException extends ParamWrotypeException { /** ...
true
29efd7ba131aae35f6890caf1874cd0c85bdb4f4
PHP
platon4/itwip.net
/common/helpers/Url.php
UTF-8
5,087
2.765625
3
[]
no_license
<?php namespace common\helpers; use Yii; class Url { private static $_hostInfo; public static function getDomen($url) { if($url == '') return; $url = str_replace("http://", "", strtolower($url)); $url = str_replace("https://", "", $url); if(substr($url, 0, 4)...
true
88b2fbfd133160bbac184b8c2eb6ee425dd5bcf9
PHP
nairi-abgaryan/forreview
/src/Manager/ExpertManager.php
UTF-8
4,457
2.5625
3
[]
no_license
<?php namespace App\Manager; use App\Entity\Expert; use App\Entity\User; use App\Repository\ExpertRepository; use App\Resource\Constant; use App\Service\HashService; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\DependencyInjection\Container; use Symfony\Component\DependencyInjection\ContainerInterfa...
true
fa168ac8d08bbc35068a2500525d6729cca97558
PHP
UNOWNperson/UNOWNperson
/voorstellen.php
UTF-8
568
2.640625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>voorstellen</title> </head> <body> <?php $sNaam = "Maik"; $sMiddelnaam = "Alexander"; $sAchternaam = "Lüd...
true
503e7b22e1b43f4f6733d2877de4c25e112a2ae7
PHP
arnaud-lb/php-rdkafka-doc
/doc-base/scripts/check-acronyms.php
UTF-8
8,553
2.515625
3
[ "DOC", "CC-BY-3.0" ]
permissive
<?php /* +----------------------------------------------------------------------+ | PHP Version 4 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2011 The PHP Group | +------...
true
e2063982378379e64f03794e3b644f5907c900e0
PHP
guruapp/task-buym
/server/database/seeds/TasksTableSeeder.php
UTF-8
505
2.609375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Task; class TasksTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { Task::truncate(); $faker = \Faker\Factory::create(); for ($i = 0; $i < 6; $i++) { ...
true
4be42d9063b1491f9ce7a90d16a0c283e2b78003
PHP
zhangjiquan1/phpsourcecode
/uchiyou/emms/app/Util/ModelUtil.php
UTF-8
3,578
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Util; use App\TreeTrunk; use App\User; use Illuminate\Contracts\Pagination\LengthAwarePaginator; use Illuminate\Support\Facades\Auth; use Illuminate\Http\Request; class ModelUtil { // 与操作相关的权限字段,不存在数据库中 const WHERE_PERSON = 'person'; const WHERE_MANAGE = 'manage'; /* * 与删除相关的权限字段,不存在数据库中 ...
true
a2cf59229183a047cb092dc4d168f7159d9939b0
PHP
mbccp/platform
/src/Oro/Bundle/MessageQueueBundle/Log/Formatter/ConsoleFormatter.php
UTF-8
3,796
2.828125
3
[ "MIT" ]
permissive
<?php namespace Oro\Bundle\MessageQueueBundle\Log\Formatter; use Oro\Component\MessageQueue\Client\Config; use Symfony\Bridge\Monolog\Formatter\ConsoleFormatter as BaseConsoleFormatter; /** * Formats message queue consumer related log records for the console output * by coloring them depending on log level. * The...
true
c430ae36eb1d6e39508d060ae21ea243ba0cdb81
PHP
zerospam/sdk-framework
/src/Utils/JSON/JSONParsing.php
UTF-8
754
2.703125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: aaflalo * Date: 18-06-01 * Time: 11:11. */ namespace ZEROSPAM\Framework\SDK\Utils\JSON; use Psr\Http\Message\ResponseInterface; /** * Class JSONParsing * * Parse a request JSON * * @package ZEROSPAM\Framework\SDK\Utils\JSON */ final class JSONParsing { private ...
true
92026a6009dbd79ffd6d9b8252b1a5174798ef0f
PHP
jraulcr/curso-php
/vid18_ejemplo_while.php
UTF-8
633
3.5625
4
[]
no_license
<!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <?php $var1 = 1; do { echo "Estamos ejecutando el código del bucle<br/>"; $var1++; } while ($var1 < 6)...
true
3f4241959f8e712c9e94afb0839110bf58d358f3
PHP
mitgd-learning/plinq-1
/tests/SelectTest.php
UTF-8
732
2.859375
3
[]
no_license
<?php require_once("./src/plinq.php"); use plinq\plinq; class SelectTest extends PHPUnit_Framework_TestCase { public function __construct(){ } public function testSelectReturnsResultOfExpression() { $input = [1, 2, 3]; $expected = [2, 4, 6]; $doublingSelection = function($key, $value){ return $value * ...
true
042c018e45785317355bf3ad0e4b94cc8f05062e
PHP
medley-ltd/planet-meister
/fuel/app/classes/model/shoplist.php
UTF-8
727
2.671875
3
[ "MIT" ]
permissive
<?php /** * ショップマスターモデル * * @author hideki.takahashi */ use \Fuel\Core; class Model_ShopList extends Model_Crud { protected static $_table_name = 'shop_list'; protected static $_primary_key = 'id'; /** * ショップの一覧を取得する。 * @param int $limit 任意。 * @param int $offset 任意。指定時は $limitの倍数で。 */ ...
true
7350482f4a6b6c844400195f8f8d87f2dc8fa5c9
PHP
PacktPublishing/PHP-Reactive-Programming
/Chapter06/deferred_01.php
UTF-8
400
2.65625
3
[ "MIT" ]
permissive
<?php require_once '../vendor/autoload.php'; use React\Promise\Deferred; $deferred = new Deferred(); $deferred->promise() ->then(function($val) { echo "then #1: $val\n"; return $val + 1; }) ->then(function($val) { echo "then #2: $val\n"; return $val + 1; }) ->done...
true
00aeca73198897591b1a5a3bb6053a358c329dad
PHP
Yashaswajain/SpeechToEmotion
/upload.php
UTF-8
2,769
2.734375
3
[]
no_license
<?php $ans1=""; $ans2=""; if(isset($_POST['save_audio']) && $_POST['save_audio']=="Upload Audio") { // Appending the count to the starting of the filename so that incoming file gets stored at the end $dir='uploads/'."new"; $audio_path=$dir.".wav"; // Storing the file in the desired path if(move_uploade...
true
bb63d7f55ce939304b26a5611d369a978b29e416
PHP
mliz1984/quickplus
/lib/quickLanguage.php
UTF-8
4,185
2.71875
3
[ "MIT" ]
permissive
<?php namespace Quickplus\Lib; use Quickplus\Lib\Tools\FileTools as FileTools; class QuickLanguage { protected $languagePath = Array(); protected $languageList = Array(); protected $languageData = null; protected $defaultLanguageCode = null; protected $defaultLanguageName = null; protected $currentLanguag...
true
c38d43b205ff1ae483799aac350d84b8b3e74eab
PHP
AaronMoorhouse/Athena
/lib/model.php
UTF-8
379
2.671875
3
[]
no_license
<?php require_once("database.php"); class Model extends Database { protected $model; function __construct($tname = null) { $this->connect(AUTH_HOST, AUTH_DATABASE, AUTH_USER, AUTH_PASS); $this->model = strtolower(get_class($this)); if($tname) { $this->table = $tname; } else { ...
true
162f762b581a2d276de2b3418cf1b523735388f2
PHP
corrigang/json-validator
/Dgilan/JsonDocValidator/Node.php
UTF-8
5,293
2.90625
3
[]
no_license
<?php /** * Validation node * * PHP version 5.3 * * @category library * @package Dgilan\JsonDocValidator * @subpackage Dgilan\JsonDocValidator * @author Mikhail Lantukh <lantukhmikhail@gmail.com> * @link https://github.com/dgilan/json-validator */ namespace Dgilan\JsonDocValidator; use Dgilan...
true
a1076ecf2ae57bd5c11624b0c4a5f836f8245c62
PHP
190103065/inf232-190103065
/app/Http/Controllers/StudentController.php
UTF-8
1,167
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class StudentController extends Controller { public function get_students(){ static $students = array(0=> "Diana",1=> "Nazgul"); return $students; } public function index($id){ $students=$this->get_students(); return view('StudentName',["name...
true
4a831a2b2365cff43554baac3440b666aa45f38a
PHP
legus/asessments
/config/database.php
UTF-8
306
2.921875
3
[]
no_license
<?php class Database{ private $db_url="../data/"; public $conn; // get the database connection public function getConnection(){ $this->conn = null; if (is_dir($this->db_url)) { $this->conn=$this->db_url; } return $this->conn; } } ?>
true
4e07b7754325583f87cd2604aa69f0e13b298296
PHP
thewakingsands/cafemaker-web
/src/Command/Search/UpdateSearchCommand.php
UTF-8
14,661
2.53125
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
<?php namespace App\Command\Search; use App\Command\CommandHelperTrait; use App\Command\GameData\SaintCoinachRedisCommand; use App\Common\Service\Redis\Redis; use App\Common\Utils\Arrays; use App\Common\Utils\Language; use App\Service\Search\SearchContent; use App\Common\Service\ElasticSearch\ElasticSearch; use Symfo...
true
5c0a01e7fb3b375a5909eedbcb91505aa8172e89
PHP
azadam/pei-rest-backend
/lib/RANDF/PEI/Authentication.php
UTF-8
27,431
2.734375
3
[]
no_license
<?php namespace RANDF\PEI; use \Memcache as Memcache; use \Respect\Validation\Validator as v; use \RANDF\Database as Database; use \PDO as PDO; /** * Authentication * * Authenication layer for PEI REST API * * @uses \RANDF\Database * @uses \Respect\Validation\Validator * * @package PEI * @author Adam Hooker <adamh@r...
true
c31b9b48453828911fa1bcd0df42245f2d376c85
PHP
jessicastutsman/code-examples
/Eyeglass/warp/src/Warp/Asset/Filter/CssImageBase64Filter.php
UTF-8
1,705
2.71875
3
[]
no_license
<?php /** * @package Warp Theme Framework * @author YOOtheme http://www.yootheme.com * @copyright Copyright (C) YOOtheme GmbH * @license http://www.gnu.org/licenses/gpl.html GNU/GPL */ namespace Warp\Asset\Filter; /** * Replace stylesheets image urls with base64 image strings. */ class CssImageB...
true
175e624f0cc390a7f67d3a6237772b4a600be14f
PHP
dotmailer/dotmailer-magento2-extension
/Model/Monitor/MonitorTypeProvider.php
UTF-8
1,401
2.71875
3
[ "MIT" ]
permissive
<?php namespace Dotdigitalgroup\Email\Model\Monitor; class MonitorTypeProvider { /** * @var Cron\Monitor */ private $cronMonitor; /** * @var Importer\Monitor */ private $importerMonitor; /** * @var Campaign\Monitor */ private $campaignMonitor; /** * @v...
true
c9f83a8701ffcfd01237b188ec12c228d24e867c
PHP
ayman2243/PHP-Framework-By-Me-2009
/system/lib/php/mysql/Mysql_Utilities.php
UTF-8
4,914
2.96875
3
[]
no_license
<?php /* * Gomado FrameWork is A beta version only for test * * Develop by Ayman Elgohary -> ayman2243@gmail.com * * website: webcober1.tk * * phone: +966-0531929262 * * * * * Mysql Function will help you to control * mysql result to make it easy to count result and toggler...
true
1556f1ab80efeadfef637b252077b416e7bfcad9
PHP
aminegongi/Wasp_E-Commerce
/INTG 27 12H30/projet-web/projet-webb/projet web/views/FrontOfficeEnactus/Gestion Reclamations/entities/reclamationE.php
UTF-8
1,626
2.703125
3
[]
no_license
<?PHP class Reclamation{ //private $ID_client; private $Categorie; private $Designation; private $Description; private $Reponse; private $Etat; private $Date_r; private $Date_s; private $IDC; function __construct($categorie, $designation, $description, $reponse){ //$id_client ...
true
ea09b92bd47f4eddc156d8df313e07881fe8c104
PHP
oberoisehej/Artifex
/src/setUp.php
UTF-8
617
2.578125
3
[]
no_license
<?php $con = mysqli_connect("localhost", "id3764634_sehejoberoi10", "abcd1234", "id3764634_csia"); // Check connection if (mysqli_connect_errno()){ echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $pin = $_POST["pin"]; $sql = "CREATE TABLE `$pin` ( turn INT(6) AUTO_I...
true
98c80f5630eebf41a2beb0c3efa01f04e3f128e1
PHP
liehualee/design-patterns
/strategy/CashReturn.php
UTF-8
1,257
3.21875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: llh * Date: 2018/9/5 * Time: 下午5:08 */ namespace strategy; class CashReturn extends SuperCash { private $moneyCondition; private $moneyReturn; public function __construct(string $moneyCondition, string $moneyReturn) { $this->moneyCondition = floa...
true
1f5e9a97c90748b9e7e0718d67b6004bfba41336
PHP
langhf/campus
/database/migrations/2017_07_17_182830_create_door_checks_table.php
UTF-8
818
2.640625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateDoorChecksTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('door_checks'...
true
b53f527165737ed2689efc73f678dd5842875620
PHP
karliuka/m2.OrderMark
/Ui/Component/Listing/Column/User/Options.php
UTF-8
1,442
2.515625
3
[]
no_license
<?php /** * Copyright © 2011-2017 Karliuka Vitalii(karliuka.vitalii@gmail.com) * * See COPYING.txt for license details. */ namespace Faonni\OrderMark\Ui\Component\Listing\Column\User; use Magento\Framework\Data\OptionSourceInterface; use Magento\User\Model\ResourceModel\User\CollectionFactory; /** * User Option...
true
aa6e249e42f19308c846808b68191361552e694e
PHP
Kandy-Hamisi/PHP-upload-download
/filesLogic.php
UTF-8
2,556
2.921875
3
[]
no_license
<?php // connection to the database $mysqli = mysqli_connect("localhost", "root", "", "uploads"); // selecting from the files table $sql = "SELECT * FROM files"; $result = mysqli_query($mysqli, $sql); $files = mysqli_fetch_all($result, MYSQLI_ASSOC); // Upload Files if (isset($_POST['save'])) { //if save button i...
true