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
1e48f1ca6aa0b4c2c0a982fe905a84ef1f75ac25
PHP
Chicho25/cal_viejo
/inmuebles/usuarios/clave.php
UTF-8
5,835
2.578125
3
[]
no_license
<?php //require_once('../Connections/conexion.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $th...
true
4ad36d08d6875f94417f8e3c4b9c1a310caa95d3
PHP
Kaowser/student_management
/admin/add-student.php
UTF-8
3,942
2.546875
3
[]
no_license
<h1 class="text-primary"><i class="fa fa-user-plus"></i> Add Student <small> Add New Student</small></h1> <ol class="breadcrumb"> <li><a href="index.php?page=dashboard" >Dashboard</a></li> <li class="active"><i class="fa fa-user-plus"></i> Add Student</li> </ol> <?php if(isset($_POST['add-student']...
true
dc9dc80167080f35e593733a5d2ace34f80ac7fb
PHP
christophehurpeau/Springbok-Framework
/db/queries/QFindRows.php
UTF-8
1,482
2.953125
3
[ "MIT" ]
permissive
<?php /** * return an array of arrays * * Be careful ! fech_row returns an array of strings even for ints and floats * * @see http://php.net/manual/en/mysqli-result.fetch-row.php */ class QFindRows extends QFind{ protected static $FORCE_ALIAS=true; private $groupResBy; /** * @return string[]|array */ ...
true
38a70a7e0dc3926787136a577369cf9b2b141195
PHP
ChapResearch/Online-Orders-Database
/GUI Files/orderform1.php
UTF-8
5,575
2.6875
3
[]
no_license
<?php function showFormData() { echo '<table frame="box"> <tr> <td align="right"> <b>First Name:</b> </td> <td> <b>'; echo $_GET["firstname"]; echo '</b> </td>'; echo ' </tr>'; echo ' <tr>'; echo ' <td align="right"> <b>Last Name:</b> </td> <td> <b>'; echo $_GET["lastname"]; echo '</b> </td>'; echo '...
true
018e66e9c7a8248a87a9ee815b8670bc75afe2d3
PHP
cosmoarunn/sidrah
/manage_ramadan_questions.php
UTF-8
9,126
2.734375
3
[ "MIT" ]
permissive
<?php // Manage Ramadan Questions. require_once("inc/functions.inc.php"); $user = user_information(); if ($user["group"] != "admin" && $user["member_id"] != 348) { redirect_to_login(); return; } $action = mysql_real_escape_string(@$_GET["action"]); switch ($action) { case "add_question": $submit = mysql_re...
true
bdb850fd65ca4032da26717c9f718bdd28ca2a87
PHP
redound/phalcon-graphql
/src/PhalconGraphQL/Definition/FieldGroups/ModelFieldGroup.php
UTF-8
703
2.6875
3
[]
no_license
<?php namespace PhalconGraphQL\Definition\FieldGroups; class ModelFieldGroup extends FieldGroup { protected $_modelClass; public function __construct($modelClass) { $this->_modelClass = $modelClass; parent::__construct(); } /** * @param mixed $modelClass * @return stat...
true
aa48f6a3064fd771214f93d57d45bf1ea3a64c8c
PHP
OleksiiRudyi/FileNamingResolver
/tests/NamingStrategy/AggregateNamingStrategyTest.php
UTF-8
2,626
2.609375
3
[ "MIT" ]
permissive
<?php namespace FileNamingResolver\NamingStrategy; use FileNamingResolver\FileInfo; /** * @author Victor Bocharsky <bocharsky.bw@gmail.com> */ class AggregateNamingStrategyTest extends \PHPUnit_Framework_TestCase { public function testProvideName() { $strategies = array( // 1st naming s...
true
c8be448975a6b434303ee15c1cea1a9157228290
PHP
matt34000/keycode-24
/txt.php
UTF-8
3,759
2.71875
3
[]
no_license
<?php echo "test"; // test du checksum *********************************************** $csvalid = false; $cs5 = $_GET["cs4"]; if ($cs5 != "") { if (is_numeric($cs5)) { if (strlen($cs5) == 9) { $cs6 = intva...
true
68440bb2a08d2506a282550e1699356c56e4c91b
PHP
erickleandro/Q-Blog
/backend/app/Http/Resources/CategoryResource.php
UTF-8
1,258
2.796875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class CategoryResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArray($request) { ...
true
7d92155503e89c1cd5a53661137605a942f8ff83
PHP
StenFrancesco/roosteruren-new
/roosteruren/app/Models/RoosterItem.php
UTF-8
2,579
2.796875
3
[ "MIT" ]
permissive
<?php /** * Roosteritem bevat de uren en tijden voor een gebruiker-dag-afdeling combinatie * - tijden (urenbereik(en), bijvoorbeeld 9:00 - 12:00, 13:00 - 18:00) * - uren (gekoppelde tijd in hele seconden) * - opmerking (extra opmerking, bijvoorbeeld "vergadering" of "cursus") * - date (datum als integer YYYYMMDD) ...
true
d39a8db6a01f36c8bf7c451681a0037127f6c2c3
PHP
fremin33/one2one-pascal
/ftp.php
UTF-8
1,832
2.90625
3
[]
no_license
<?php echo "tet"; $ftp_server="ftp.one2one-larochelle.com"; $ftp_user_name="oneonela"; $ftp_user_pass="mNYNgwKm"; echo getcwd(); // Définition de quelques variables $local_file = 'C:\Users\abourmau\Desktop\testFTP\bg.jpg'; $server_file ='bg.jpg'; // Mise en place d'une connexion basique $conn_id = ftp_connect($ft...
true
7a42d2a6e411a0c6a6b089055741d9c6fcf7d89f
PHP
Spomky-Labs/pki-framework
/src/CryptoEncoding/PEM.php
UTF-8
3,442
2.9375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace SpomkyLabs\Pki\CryptoEncoding; use function is_string; use RuntimeException; use Stringable; use UnexpectedValueException; /** * Implements PEM file encoding and decoding. * * @see https://tools.ietf.org/html/rfc7468 */ final class PEM implements Stringable { // well...
true
0dfb1bb026982e248704a0289ab5bbefaab1bf92
PHP
NguyenBaKhiem/WeNote
/app/Utils.php
UTF-8
2,316
2.640625
3
[ "MIT" ]
permissive
<?php namespace App; use Carbon\Carbon; use App\Consts; use Auth; use DB; use App; use Illuminate\Support\Facades\Session; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Log; class Utils { public static function previous24hInMillis() { return ...
true
d614b591b3f5653293fbff0a2103e0be7faf8961
PHP
hsli2020/crh
/app/services/ExportService.php
UTF-8
3,254
2.703125
3
[]
no_license
<?php namespace App\Service; use Phalcon\Di\Injectable; class ExportService extends Injectable { public function export($params) { $dataType = $params['datatype']; if ($dataType == 'raw-data') { return $this->exportRawData($params); } if ($dataType == 'baseline-ac...
true
08b610acbfb1a3b98bbd80e3974ba65d08ce2bc1
PHP
NeroReflex/APIHackful
/src/DecryptionTrait.php
UTF-8
2,731
3
3
[]
no_license
<?php /************************************************************************** Copyright 2018 Benato Denis Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2....
true
5f6f3539db5a9a46c11553478d4296df7c077010
PHP
itgalaxy/Itgalaxy-Coding-Standards
/ItgalaxyCodingStandards/Tests/Strings/NoMultilineStringDeclarationUnitTest.inc
UTF-8
159
2.96875
3
[ "MIT" ]
permissive
<?php $var = 'hello I am a large string in a php variable that spans multiple lines'; $var = " {$var} "; $var = 'test'; $var = "test"; $var = "test ${var}";
true
4c99689c6ae4cf838a6c42f9bb204da75364e0cb
PHP
Amancio302/Armazem
/controllers/Fazenda.php
UTF-8
1,696
2.5625
3
[ "Apache-2.0" ]
permissive
<?php include_once("../models/Fazenda.php"); include_once("../views/fazenda-view.php"); function getAll(){ $Fazenda = new Fazenda(); return $Fazenda->showAll(); } function deleteById($id){ $Fazenda = new Fazenda(); $Fazenda->deleteById($id); header("Location: Fazenda....
true
c7f4226c0d1d5215a0e2ad75fe805dfd5007f820
PHP
vinitdave49/commxcloudv1
/src/Commcloud/VoiceBundle/Entity/HtTaskqueueData.php
UTF-8
4,062
2.515625
3
[ "MIT" ]
permissive
<?php namespace Commcloud\VoiceBundle\Entity; /** * HtTaskqueueData */ class HtTaskqueueData { /** * @var int */ private $id; /** * Get id * * @return int */ public function getId() { return $this->id; } /** * @var string */ private $...
true
53b134ae5445846d05217e304669c3a63f496ceb
PHP
SergioFelzener/cod3rPHP
/oo/interface.php
UTF-8
992
3.8125
4
[]
no_license
<div class="title">Interface</div> <?php //interfface define apenas o metodo publico interface Animal { function respirar(); } interface Mamifero { function mamar(); } interface Felino { function correr(); } interface Canino extends Animal, Mamifero { function latir(): string; } class Cachorro...
true
11c6e308159c67e10d55cc193d1b4d46997e6173
PHP
madetsl/payment-sketch
/Process.php
UTF-8
4,077
2.625
3
[]
no_license
<?php namespace payment; use Psr\Log\LoggerInterface; class Process { /** * @var Gateway */ protected $gateway; /** * @var Transaction\Repository */ protected $transactionRepository; /** * @var Log\Logger */ protected $transactionLogger; /** * @var L...
true
fa5e1df074f19df899d7744fad461cab7c40f9f5
PHP
josephjlee/PHP-PDO-MATERIALIZE-RESPONSIVE-CRUDE--Contacts-list
/atualizar_processo.php
UTF-8
821
2.578125
3
[]
no_license
<?php if (isset($_REQUEST['id_at']) ? $idatual = $_REQUEST['id_at'] : $idatual = ''); if (isset($_REQUEST['nome_at']) ? $nvnome = $_REQUEST['nome_at'] : $nvnome = ''); if (isset($_REQUEST['telefone_at']) ? $nvtel = $_REQUEST['telefone_at'] : $nvtel = ''); try { require_once 'conexao_pdo.ph...
true
6716fe2374c2271b55f8cd58172b693f15af90a6
PHP
yasminms/Linguagem-de-Programacao-II
/PHP/Exercicios 28-08-2018/exer1.php
UTF-8
2,040
3.421875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>EXERCÍCIO 1</title> </head> <body> <form method="post"> <label>Nome:</label><input type="text" name="nome"><br> <label>Ano:</label><input type="text" name="ano"><br> <label>Altura:</label><input type="text" name="altura"><br><br> <label>Idiomas:</label><br><label...
true
ab75c35c5bd0bf160fa965fa709070092d8c3bcc
PHP
nguatuan123/CungHocTiengAnh
/model/login-process/login-process.php
UTF-8
1,883
2.59375
3
[]
no_license
<?php require_once("../../connect/connect.php"); session_start(); // Get Input Data $username = addslashes($_POST['username']); $pass = addslashes($_POST['pass']); $cus_check_login = $_POST['cus_check_login']; // Encode Pasword $pass = md5($pass); $sql = "SELECT `username`, `pas...
true
cad655fbe17bc192ff3d92c93b6ea01cd82eb230
PHP
jokopurnomoa/elips-php
/elips/framework/Elips/Helpers/error.php
UTF-8
321
2.578125
3
[ "MIT" ]
permissive
<?php /** * Error Helper * * Show error message * */ /** * Dumping Error * * @param $message */ function error_dump($message){ echo '<pre style="font-family: \'Courier New\', Monospace;padding: 30px;border: 1px solid #eee;margin: 50px 20px;border-radius: 5px">'; print_r($message); echo '</pre>'; }...
true
e75adbd403a472d5e59e251c5bf475881cf9f9d2
PHP
tutchmedia/BeerBoard
/index.php
UTF-8
1,485
2.671875
3
[]
no_license
<?php require_once(realpath(dirname(__FILE__) . "/resources/config.php")); require_once(realpath(dirname(__FILE__) . "/resources/classes/database.class.php")); require_once(realpath(dirname(__FILE__) . "/resources/classes/beer.class.php")); require_once(realpath(dirname(__FILE__) . "/resources/template...
true
21777c9651eba93a13ef4325b532a324cb5f4b01
PHP
VIOMS/laravel-cities
/src/Console/Commands/PopulateCities.php
UTF-8
5,520
2.703125
3
[ "MIT" ]
permissive
<?php namespace Vioms\Cities\Console\Commands; use Illuminate\Console\Command; use Vioms\Cities\Models\City; use Vioms\Countries\Models\Country; class PopulateCities extends Command { const ZIP_LOCATION = 'allCountries.zip'; const CSV_LOCATION = 'allCountries.txt'; /** * The name and signature of t...
true
e449f15b79c5a34238c91c4cc8cdb48d849657f0
PHP
rhormaza/observium
/config_to_json.php
UTF-8
618
2.65625
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php /* Observium configuration to JSON converter Written by Job Snijders <job.snijders@atrato.com) */ $defaults_config_file = 'includes/defaults.inc.php'; $config_file = 'config.php'; // move to observium install dir chdir(dirname($argv[0])); function iscli() { if(php_sapi_name() =...
true
553dd40b4ceb82bd497df5044e8de6eb8bc9b58d
PHP
SheilaAbby/ProposalProcessing
/app/Http/Controllers/Auth/RegisterController.php
UTF-8
4,398
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Validator; use Illuminate\Foundation\Auth\RegistersUsers; use Illuminate\Support\Str; use App\User; use Mail; use App\Mail\VerifyAccountMail; use Illuminate\Http\Request; use Session; class RegisterContr...
true
a6e852a94023710411c7ab11a8618a0d0c27f9fa
PHP
b-front/filmlista
/controllers/actor_controller.php
UTF-8
1,883
2.515625
3
[]
no_license
<?php class actor_controller { public function init() { $x = ""; if (ch::get_action()=='actors'){ $x.= actor_view::show_all_actors(); } if (ch::get_action()=='show_actors'){ $x.= actor_view::show_all_actors(); } if ...
true
5f7ef3becc9abaa4fa00bad47fad8e1599e33346
PHP
mikezangirolami/CorsoMagentoNews
/project/query.php
UTF-8
892
2.75
3
[]
no_license
<?php require_once("app/Mage.php"); Varien_Profiler::enable(); Mage::setIsDeveloperMode(true); ini_set("display_error", 1 ); umask(0); Mage::app(); //create a category //$category = Mage::getModel("zangirolami_news/category"); //$category->setCode("ThinkOpen") // ->setName("ThinkOpen") // ->setStatus(...
true
7833723a9c12cc9625af888d3fd781ab58599fd3
PHP
deyy94/torneo-de-futbol
/Registro/index.php
UTF-8
2,487
2.53125
3
[ "MIT" ]
permissive
<?php SESSION_START(); ?> <?php if(!$user = $_SESSION['user']) { header('Location: ../Players/login/index.php'); } ?> <?php require "../bd/bd.php"; $teamName = $_POST['teamName']; $president = $_POST['president']; $teamDT = $_POST['teamDT']; $numberPlayers = $_POST['playersNumber']; $namePlayer=$_POS...
true
ddbc7962f317a2ce92b5f28a43958c9afea68bd7
PHP
Sywooch/multipay
/common/models/PaymentInApi.php
UTF-8
2,057
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; use yii\behaviors\TimestampBehavior; /** * This is the model class for table "payment_in_api". * * @property integer $pay_id * @property string $pay_created * @property string $pay_updated * @property integer $agent_id * @property integer $user_id * @property double $p...
true
3e82233c01a5bfea5a4bcd2b5e879b36216dbeb4
PHP
tristankells/jrnal.me
/api.jrnal.me/src/Controller/AnalysisController.php
UTF-8
1,465
2.703125
3
[]
no_license
<?php namespace App\Controller; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\HttpFoundation\Request; use Swagger\Annotations as SWG; use Sentiment\Analyzer; class AnalysisController { /** * Returns a sentinment anal...
true
1d02b682c4be44b2712eca8d1384bd9f8f03e9be
PHP
AhmedHany2021/Graduation-Project
/app/controllers/authcontroller.php
UTF-8
6,222
2.578125
3
[]
no_license
<?php namespace PROJECT\CONTROLLERS; class authcontroller extends abstractcontrol{ use \PROJECT\CORE\inputfilter; use \PROJECT\CORE\redirector; use \PROJECT\CORE\securedata; use \PROJECT\CORE\validation; private $patientregisterole = array( 'name' => "req|alpha|min(3)|ma...
true
0676582180641eb84e536418b110dd036f9b35e7
PHP
Gortega713/Exercise_02_01_01
/DaysArray.php
UTF-8
1,313
3.671875
4
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <!-- Exercise 02_01_01 Author: Gabriel Ortega Date: 9.13.18 DaysArray.php --> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edg...
true
b344d78b64a8e6dee6fbc4a29c2fd980dfd5d76a
PHP
mmoyanot/HGPT---Bodegas-Transitorias
/Bodega/class/classAsistencias.php
UTF-8
1,741
2.71875
3
[]
no_license
<?php class sistema{ public function conexion(){ $host = 'localhost'; $usuario = 'root'; $password = 'sargentoaldea660'; $dataBase = 'g1'; $conexion = mysql_connect($host, $usuario, $password); $seleccion = mysql_select_db($dataBase, $conexion); //$seleccion = mysqli_select_db($conex...
true
2930875e94dbf9f6282208178dfc5f00117e6864
PHP
kraionz/coreyon
/src/Theme/ThemeManager.php
UTF-8
8,935
2.65625
3
[]
no_license
<?php namespace Creatyon\Core\Theme; use Illuminate\Container\Container; use Illuminate\Contracts\Translation\Translator; use Illuminate\View\ViewFinderInterface; use Creatyon\Core\Theme\Theme as ThemeModel; class ThemeManager implements ThemeContract { /** * Theme Root Path. * * @var string ...
true
bbcea59157e176d15a0ba2b8d0b85beccf46e9de
PHP
FilipeAZV/Web-2
/Backend/PHP1/Xampp/1.PHP Básico/confirmaCadastro.php
UTF-8
855
3.484375
3
[]
no_license
<?php //Foi atribuido valor para este campo? if (isset($_POST['formCadastro'])) { cadastrar(); } elseif (isset($_POST['formMedia'])) { calcularMedia(); } else { header("Location: Formulario.php"); } function cadastrar() { //Recebe os dados informados no formulário $nome = $_POST['nome']; $sobren...
true
340cbf7c959becbb05bccf4502e6b0fdf697ee31
PHP
comerja/zipcodemap
/zipcodemap252/index.php
UTF-8
2,435
2.8125
3
[]
no_license
<!DOCTYPE html> <html> <head> <script src="http://maps.googleapis.com/maps/api/js?key=AIzaSyAZi4epp-NctvuWW-dyvGUlhlX-_GZrXlE&sensor=false"> </script> <script> <!-- Creates global variable and arrays so that they can be used throughout entire script and throughout functions --> var map; var mlat = []; var mlng = []; ...
true
debb4b0c4cadced1c0effa882dfcc986d2aa73a0
PHP
ozidrice/VoxPopuli
/API/_modules/_ADMIN/commande/controller.php
UTF-8
591
2.515625
3
[]
no_license
<?php require_once("_model/commandemodel.php"); class commandeController extends Controller{ function __construct(){ parent::__construct(new commandeModel(), new View()); } function run_action($action){ if($action==""){ $this->view->set_template("commande"); $this->view->set_titre("Commandes"); $...
true
e5ef8711d15d8a19e46261c972e7317dfbe11810
PHP
vianhandika/SIBENTO-WEB
/app/Transformers/SupplierTransformers.php
UTF-8
874
2.53125
3
[]
no_license
<?php namespace App\Transformers; use League\Fractal\TransformerAbstract; use App\Supplier; use App\Sales; class SupplierTransformers extends TransformerAbstract { /** * Transform Supplier. * * @param Supplier $supplier */ public function transform(Supplier $supplier) { // $s...
true
145d818cd1dd194b207ace4a00314e4cedd9e148
PHP
hostnet/wsdl2php
/test/resource/Providers/EBay/generated/HnStyle/Sub4/Complex/GetBidderListRequestType.php
UTF-8
3,613
2.5625
3
[]
no_license
<?php namespace Controle\Hostnet\Namesp\Sub4\Complex; /** * GetBidderListRequestType * Retrieves all items on which the user is currently bidding or which the buyer has won or * purchased. You can control the result set with elements such as ActiveItemsOnly, which limits the * result set to active items. */ clas...
true
3b8dacb3a8d1f2d704024c8e5cafe006efbbd342
PHP
manuelgeek/gtt_unit_test
/app/Http/Controllers/API/LoginController.php
UTF-8
2,563
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\API; use App\User; use Validator; use Illuminate\Support\Facades\Hash; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Auth; class LoginController extends Controller { public function login(Request $request) { $vali...
true
6fc094ca854c01261aac76d6dcf95dbc2176ffc9
PHP
maehata-syouki/cocospace-internship
/課題2/form2-5.php
SHIFT_JIS
897
2.828125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>OƃRg͂tH[</title> <meta charset = "SHIFT_JIS"> </head> <body> <form action="receive2-5.php", method="post"> O:@@<input type="text" name="name"><br> Rg:<input type="text" name="comment"><br> <input type="submit" value="M"> </form> <form action="delete2-5.php", m...
true
675c6f49a8f449cb3c5bb40fcc208f52bd360671
PHP
riobahtiar/wponion
/fields/spinner/class-spinner.php
UTF-8
1,263
2.71875
3
[ "MIT" ]
permissive
<?php namespace WPOnion\Field; defined( 'ABSPATH' ) || exit; if ( ! class_exists( '\WPOnion\Field\Spinner' ) ) { /** * Class Spinner * * @package WPOnion\Field * @author Varun Sridharan <varunsridharan23@gmail.com> * @since 1.0 */ class Spinner extends Text { /** * Checks & Updat fields args based...
true
f7f1ceb2e439f3d364f18fde47d4859c947cf513
PHP
Chhunlong/neos-development-collection
/TYPO3.TypoScript/Classes/TYPO3/TypoScript/TypoScriptObjects/Helpers/FluidView.php
UTF-8
2,975
2.578125
3
[]
no_license
<?php namespace TYPO3\TypoScript\TypoScriptObjects\Helpers; /* * * This script belongs to the TYPO3 Flow package "TypoScript". * * * * It is free software; you can...
true
ea57206035fce0e9e3fdc755bda6500776398354
PHP
Abanod00/AComer
/resources/android_connect/db_connect.php
UTF-8
507
2.546875
3
[]
no_license
<?php define('DB_SERVER', "localhost"); // DB_SERVER define('DB_USER', "android"); // DB_USER define('DB_PASSWORD', "1234"); // DB_PASSWORD define('DB_DATABASE', "a_comer_db"); // DB_DATABASE $con; function connect(&$con) { $con = mysqli_connect(DB_SERVER, DB_USER, DB_PASSWORD, DB_DATABASE) or die(mysq...
true
889526e156271e5711e680f7bba9c0584ea21a95
PHP
simondavies/SlimPHP3-Vanilla
/App/Controllers/BaseController.php
UTF-8
1,480
2.953125
3
[ "MIT" ]
permissive
<?php namespace App\Controllers; use \Interop\Container\ContainerInterface; use \Psr\Http\Message\ResponseInterface as Response; /** * */ class BaseController { /** * @var Class */ protected $container; /** * @var Class */ protected $config; /** * @var Class */ ...
true
670db6566a1fb99fff823ecfa4870a484810108e
PHP
libgraviton/graviton
/src/Graviton/DocumentBundle/Serializer/Visitor/AbstractVisitor.php
UTF-8
1,348
2.6875
3
[ "MIT" ]
permissive
<?php /** * abstract visitor */ declare(strict_types=1); namespace Graviton\DocumentBundle\Serializer\Visitor; use JMS\Serializer\GraphNavigatorInterface; /** * @author List of contributors <https://github.com/libgraviton/graviton/graphs/contributors> * @license https://opensource.org/licenses/MIT MIT Licens...
true
c11720ddf9fde35c9679e98618ea8a4467ce0f68
PHP
async-aws/aws
/src/Service/MediaConvert/src/ValueObject/Xavc4kIntraCbgProfileSettings.php
UTF-8
1,692
2.6875
3
[ "MIT" ]
permissive
<?php namespace AsyncAws\MediaConvert\ValueObject; use AsyncAws\Core\Exception\InvalidArgument; use AsyncAws\MediaConvert\Enum\Xavc4kIntraCbgProfileClass; /** * Required when you set Profile to the value XAVC_4K_INTRA_CBG. */ final class Xavc4kIntraCbgProfileSettings { /** * Specify the XAVC Intra 4k (CBG...
true
05812c5507f1e19c199af0cb30ca1ea933dc0074
PHP
BrunoDanielPretti/Ejercicios-Programacion-3
/TP/indexOld.php
UTF-8
1,153
2.875
3
[]
no_license
<?php require_once "persona.php"; require_once "empleado.php"; require_once "fabrica.php"; $miPersona = new empleado("Bruno", "Pretti", 36806053, 'm', 10, 1000); $per1 = new empleado("Marina", "Meza", 12053554, 'm', 20, 2000); $per2 = new empleado("Puchi", "Perro", 33333333, 'm', 30, 3000); ...
true
2e3483ecbb751e995537aa0e1cb0019af8ef09ad
PHP
panbro/binarySearch
/binarySearch.php
UTF-8
5,521
3.15625
3
[]
no_license
<?php /** * осуществляет бинарный поиск значения по ключу в текстовом файле */ Class Search { /** @var int константа, задающая размер записи */ public const FRAGMENT_SIZE = 4000000; /** * осуществляет бинарный поиск значения по ключу в текстовом файле * @param string $fileToOpen - файл, в кот...
true
dd816ccd93af0a6e853547abc4c939d471f9b000
PHP
xiaoyemaoco-ltd/ecommerce_project
/extend/otao/ObApiHelper.php
UTF-8
30,030
2.59375
3
[ "Apache-2.0" ]
permissive
<?php namespace otao; class ObApiHelper { public $client; public function __construct($client) { $this->client = &$client; } /** * 根据URL判断网站类型和获取 idS */ public function parse_url($url) { if(substr($url,0,4)!='http'){ preg_match('@http(s)?\://[^ ]+@', $url, $u); i...
true
57aeaaf0d01e6029544f13d89786e34cba304d7d
PHP
Rifqimiftah12/form
/gajipro.php
UTF-8
1,027
3.328125
3
[]
no_license
<?php class Gaji { public function __construct($a,$b,$c,$d) { $this->nama = $a; $this->nip = $b; $this->alamat = $c; $this->jhk = $d; } public function datadiri() { $data = "Nama : " .$this->nama; $data .= "<br> Nip : " .$this->nip; $data .= "...
true
dd0fa8e82ca87f6651fdd45209ddb1b6208d54a0
PHP
davinderkaur975/assignment
/cover.php
UTF-8
1,161
2.75
3
[]
no_license
<?php $pageTitle = 'CoverImage'; require_once('header.php'); ?> <main class="container"> <h1>Cover Image</h1> <?php //Step 1: connect to the database require_once('db.php'); //Step 2: create a SQL command $sql = "SELECT * FROM coverfile"; //Step 3: prepare the SQL command $cmd = $conn-...
true
4d3fd66e9c58756c544c02cbb12f10504f46f349
PHP
Nitix/L3-Miage-Web-Site-de-Musique
/src/protected/Controllers/Controller.php
UTF-8
863
3.046875
3
[]
no_license
<?php namespace Controllers; /** * This interface define all the basics action that must implements Controllers */ interface Controller { /** * Call the default page of the controller */ function index(); /** * Check if the controller has the action * @param String $action action t...
true
17acf991f3b2e3cc235ea5f1d4feae83f1c1e7f0
PHP
karpiop/WAI
/Karpinski_Pawel_155085/web/php/03-session/cart.php
UTF-8
1,136
2.6875
3
[]
no_license
<?php require_once 'functions.php'; $cart = get_cart(); if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['clear_cart'])) { $_SESSION['cart'] = $cart = []; header('Location: ' . $_SERVER['HTTP_REFERER']); exit; } ?> <h2>Koszyk</h2> <table> <thead> <tr> <th>Nazwa</th> <th...
true
621eb55c1a31a5b82e1955358e1825887c5d669d
PHP
Pandamine/ESORaidplanner
/app/Telegram/Menu/ShowEventsMenu.php
UTF-8
4,484
2.703125
3
[ "MIT" ]
permissive
<?php /** * This file is part of the ESO Raidplanner project. * * It is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License, either version 3 * of the License, or any later version. * * For the full copyright and license information, please read the * LIC...
true
c66a8478d44cb93a119a21ce0dd2c85ef4bd0047
PHP
yopley/ecommerceProject
/connexion.php
UTF-8
354
2.546875
3
[]
no_license
<?php setlocale(LC_ALL, 'fr_FR'); $hote = 'localhost'; $bdd = 'produit'; $util = 'root'; $mdp = ''; try { $pdo = new PDO('mysql:host='.$hote.';dbname='.$bdd,$util,$mdp); // On définit le codage en utf8 $pdo->exec("set character set utf8"); } catch (PDOException $e) { echo 'Connexion échouée :'.$e->...
true
b07b4149890683453926efb7620a3ef60b153c6d
PHP
mirzafeb/LinepayApi
/src/Request/ReservePayment.php
UTF-8
1,111
2.6875
3
[ "MIT" ]
permissive
<?php namespace HQ\LinepayApi\Request; /** * Class ReservePayment * * @author Jakapun Kehachindawat <jakapun.kehachindawat@hotelquickly.com> */ class ReservePayment extends RequestAbstract { protected $_path = 'payments/request'; protected $_method = self::METHOD_POST; protected $_mandatoryParams = [ 'produ...
true
1351182f7dd5e76788c0b6c58c01db0510673d28
PHP
nikolaidan/lusoexpress
/src/kennysLabs/LusoExpress/Domain/User/Command/UserUpdateCommand.php
UTF-8
1,025
3.0625
3
[]
no_license
<?php namespace kennysLabs\LusoExpress\Domain\User\Command; use kennysLabs\LusoExpress\Domain\User\Model\UserUuid; use kennysLabs\LusoExpress\Domain\Shared\Command\CommandInterface; /** * Class UserUpdateCommand */ class UserUpdateCommand implements CommandInterface { /** * @var UserUuid */ privat...
true
a108c2fe8467fd7d23588798c14429af553d438a
PHP
jjechev/algorithms
/greycodegenerator.php
UTF-8
924
3.59375
4
[]
no_license
<?php GrayCode::main(); class GrayCode { private static $arr = array(); private static $n = 4; public static function main() { self::ForwardGray(self::$n -1); } private static function ForwardGray($k) { if ($k < 0) { self::printArr(); } ...
true
53c9eae8b0078f5d3d12726751542cc37b10064f
PHP
Cagil/PHP-API-Backend-for-DYnamic-Web-APP
/server/controllers/messagesController.php
UTF-8
2,327
2.890625
3
[]
no_license
<?php include_once ROOT.'/config/db.php'; include_once 'Controller.php'; class messagesController extends Controller { public function __construct($request_method, $uri_data= null, $body_data = null){ $this->HTTP_METHOD = "".strtolower($request_method); if(isset($uri_data['id'])){ $this->URI_DATA =...
true
afb614be1efd2801a8c80b75a25868e2cf0ba464
PHP
aoloe/htdocs-xox
/edit/update.php
UTF-8
1,665
2.671875
3
[]
no_license
<?php class Configuration { public $url_base = "https://raw.github.com/aoloe/htdocs-xox/master/"; public function get_url($url) {return $this->url_base.$url;} public $url_index = "index.md"; public $url_notes = "notes.md"; public $path_base = "../"; public $path_edit = "edit/"; public $path_...
true
a32c6ca907daaecc9becf87606e5472b1afb2bac
PHP
gigyboys/oio
/src/Model/UserPassword.php
UTF-8
826
2.921875
3
[]
no_license
<?php namespace App\Model; class UserPassword { private $currentPassword; private $newPassword; private $repeatPassword; //currentPassword public function setCurrentPassword($password) { $this->currentPassword = $password; return $this; } public function getCurrentPassword() ...
true
087cffff2850272d03fcb3074465adaeccda188b
PHP
arifur9993/laravel_e-commerce_api
/app/Http/Controllers/Admin/UserManagement/UserManageController.php
UTF-8
3,176
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers\Admin\UserManagement; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Modules\Admin\User\UserHandler; class UserManageController extends Controller { /** * Create User * Via this Api Admin Able to create User/Support/Admin by the role ...
true
5d1e0f30b88fd6cf8ebf35f95e34bcce7d93f463
PHP
jeffreyckh/eLesson
/admin/db_mysql.php
UTF-8
2,556
2.671875
3
[]
no_license
<?php // MYSQL Database class db_sql { var $usepconnect=0; var $server='localhost'; var $port='3306'; var $user='root'; var $password=''; var $database=''; var $link_id=0; var $query_id=0; var $query_num=0; var $query_time=0; var $query_str=''; // Database server connect function connect(){ if ($this->...
true
0c12ff5e20b9e21055e799bd870d480eeecbc29a
PHP
praveenpeddinti/TechO2Labs
/protected/models/mongo/TrackBrowseDetailsCollection.php
UTF-8
50,086
2.53125
3
[]
no_license
<?php /** * This collection is used to create a new group * @author Praneeth */ class TrackBrowseDetailsCollection extends EMongoDocument { public $SecurityToken; public $ClickType; public $UserId; public $IP; public $FeatureType; public $AccessFrom; public $AccessType; public $T...
true
cbfa1089a0dc3220072be11cc4302135aa6967ae
PHP
tech-is/izumi
/upload_resize/index.php
UTF-8
3,058
2.828125
3
[]
no_license
<?php function uploadImage($tmpName, $dir, $maxWidth, $maxHeight) { $finfo = new finfo(FILEINFO_MIME_TYPE); $mime = $finfo->file($tmpName); if ($mime == 'image/jpeg' || $mime == 'image/pjpeg') { $ext = '.jpg'; $image1 = imagecreatefromjpeg($tmpName); } elseif ($mime == 'image...
true
f1e1920b7f93df024a8b2aedbd7c33c108d02f3a
PHP
dartika/laravel-uploadable-mutator
/src/UploadableMutator.php
UTF-8
1,007
2.78125
3
[]
no_license
<?php namespace Dartika\UploadableMutator; trait UploadableMutator { public function setAttribute($key, $value) { if (isset($this->fileFields) && array_key_exists($key, $this->fileFields)) { try { $this->attributes[$key] = $this->uploadfile($value, $this->fileFields[$key]);...
true
335038a7e22bf231c722f204e3460f07abff06c6
PHP
majidsaddique/phoneBook
/user.php
UTF-8
1,219
2.65625
3
[]
no_license
<?php include('navbar.html'); ?> <?php echo"<link href='stylecode.css' rel='stylesheet'>"; include ('dbconnection.php'); $target_dir = "images/"; $target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); $uploadOk = 1; $imageFileType = pathinfo($target_file,PATHINFO_EXTENSION); // Check if image file is ...
true
dfa6171234a85c40921c02d7379393f05ef7c7b4
PHP
rozaverta/cmf-core
/RozaVerta/CmfCore/Filesystem/Traits/WriteFileTrait.php
UTF-8
4,122
2.75
3
[ "MIT" ]
permissive
<?php /** * Created by GoshaV [Maniako] <gosha@rozaverta.com> * Date: 18.08.2018 * Time: 0:52 */ namespace RozaVerta\CmfCore\Filesystem\Traits; use RozaVerta\CmfCore\Exceptions\JsonParseException; use RozaVerta\CmfCore\Helper\Json; use RozaVerta\CmfCore\Helper\PhpExport; use RozaVerta\CmfCore\Filesystem\Exception...
true
28394d6e532951062bcb8dffb7e46439241dd547
PHP
michaelcullum/php-compiler
/lib/JIT/Builtin/Type/Value.php
UTF-8
2,932
2.625
3
[ "MIT" ]
permissive
<?php /* * This file is part of PHP-Compiler, a PHP CFG Compiler for PHP code * * @copyright 2015 Anthony Ferrara. All rights reserved * @license MIT See LICENSE at the root of the project for more info */ namespace PHPCompiler\JIT\Builtin\Type; use PHPCompiler\JIT\Builtin\Type; use PHPCompiler\JIT\...
true
2179af2b821c93329d56b0814ad1e240cc5c9647
PHP
escribanodiaz/localHost
/PHP/Tema1 y 2/Proyecte/proyecte3/mail.php
UTF-8
749
2.671875
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <form class="" action="<?php echo $_SERVER["PHP_SELF"];?>" method="post"> <label>From:</label> <input type="text" name="from" value=""> <br /> <label>Assumpte:</label> <input type="text" n...
true
c2c9c2948aac161986ac632df43f0cfd968fc500
PHP
Gavrysh/koterov
/Chapter 12/simple.php
UTF-8
340
3.46875
3
[]
no_license
<?php ##Простійший генератор function simple($from = 0, $to = 100) { for ($i = $from; $i <= $to; ++$i) { echo 'Значення = '.$i.'<br>'; yield $i; } } foreach (simple() as $val) { echo 'квадрат = '.$val * $val.'<br>'; if ($val >= 5) { break; } }
true
081f04080d3faf45e742eb0b10910c511470fcb9
PHP
RichardHpa/Skills17Conference-Book-App
/addAuthor.php
UTF-8
1,774
3.046875
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Skills17 Conference</title> <link rel="stylesheet" href="css/style.css"> </head> <body> <?php if($_POST){ //turns all of the entires into variables extract($_POST); //create an array for the errors $errors=array(); if(!$author...
true
6f374881f74e6ae2fba3ff1b2f7f7bd29079ddb9
PHP
hardywen/youzan
/src/Oauth.php
UTF-8
1,729
2.546875
3
[]
no_license
<?php namespace Hardywen\Youzan; use Exception; use Illuminate\Support\Facades\Session; class Oauth { protected $baseUrl = 'https://open.koudaitong.com/oauth'; function __construct($config) { if (!$config['client_id']) { throw new Exception('缺少client_id', 422); } $...
true
9eeb8be48ff6f29fd9124a7c989e08394a018341
PHP
YerlenZhubangaliyev/skel
/src/App.php
UTF-8
1,574
2.796875
3
[]
no_license
<?php use Composer\Autoload\ClassLoader; /** * Application initialization */ class App { /** * Local developer machine environment */ const ENV_LOCAL = 'Local'; /** * Development environment */ const ENV_DEVELOPMENT = 'Development'; /** * Test environment */ ...
true
be985392231b202a242340a9eb0eceeea674bf8c
PHP
Jalay111/Academia-Actual
/Controlador/Usuarios/Acudientes.php
UTF-8
576
2.90625
3
[]
no_license
<?php require_once 'Personas.php'; /** * @author Johnny Pacheco */ class Acudientes extends Personas{ private $idEst; public function __construct($id, $DNI, $Nom1, $Nom2, $Ape1, $Ape2, $Tel, $Nacimiento, $idEst){ $this->Id_Usuario = $id; $this->DNI = $DNI; $this->Nombre1 = $Nom1; $this->Nombre2 = $Nom2...
true
be76d773359cae1cb7965ca61380d5e7ac29cf15
PHP
MMazoni/crud-enquete
/webapp/src/Model/Enquete.php
UTF-8
2,789
2.65625
3
[]
no_license
<?php namespace SIGNOWEB\TestePratico\Model; use SIGNOWEB\TestePratico\Conexao; class Enquete { private $mysql; public function __construct() { $this->mysql = Conexao::conectar_banco(); } public function validarData() { setlocale(LC_TIME, 'pt_BR', 'pt_BR.utf-8', 'pt_BR.utf-...
true
f324575e665c763850ee45bc75a9e4eee39f5588
PHP
Furgas/yasumi
/tests/USA/ChristmasDayTest.php
UTF-8
1,674
2.65625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /* * This file is part of the Yasumi package. * * Copyright (c) 2015 AzuyaLabs * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author Sacha Telgenhof <stelgenhof@gmail.com> */ namespace Yasumi\Tests\USA; use DateTime; us...
true
27eebdde0506dea0804bbefbfc6fdb620e869f1a
PHP
m3rc1nary/Faulkner-Alumni-Tracker
/View/EditAccount.php
UTF-8
3,468
2.546875
3
[]
no_license
<?php /* * To change or delete an account. * * @author Robert Vines */ include('Header.php'); $employeeID = $_GET['edit_account']; $sql="SELECT schoolemployee.EmployeeID, schoolemployee.FirstName, schoolemployee.LastName," . "schoolemployee.Email, schoolemployee.Role, lo...
true
a862b956a59cf674b11bd3a751fd5c2006dd7447
PHP
assertchris/next-php-framework
/source/Testing/TestResponse.php
UTF-8
2,698
2.859375
3
[]
no_license
<?php namespace Next\Testing; /** * Based on Laravel 8's test response. * * @mixin \Next\Http\Response */ class TestResponse { private \Next\Http\Response $baseResponse; public function __construct(\Next\Http\Response $response) { $this->baseResponse = $response; } /** * @return...
true
b0613bb8edb10a7ba49a59d452833cfed5d0d9d6
PHP
krackou/Disquemonde
/site/biblio/biblio_theatre.php
UTF-8
825
2.609375
3
[]
no_license
 <tr> <td align="center" colspan="2"><br /> <br /> <h1><? print $title[$_GET['lang']]; ?></h1> <? if ($_GET['lang'] != 'en_en' && isset($translator)) print 'traduit par ' . $translator[$_GET['lang']] . '<br />'; ?> <br /> <? print $intro[$_GET['...
true
81fcfe78fdd1c3a0c48fbf10574ac74f2bd36ef7
PHP
apisandipas/eventbrite-for-wordpress
/includes/eventbrite_options.class.php
UTF-8
3,589
2.828125
3
[]
no_license
<?php class EBO { // Our option names public static $options = array( 'eventbrite_app_key', 'eventbrite_user_key', 'eventbrite_user_email', 'eventbrite_user_pass', 'eventbrite_background_color', 'eventbrite_text_color', 'eventbrite_link_color', 'ev...
true
6b4534ed5df7f6a49b363f101e34da2d943be9c5
PHP
vaytanetc/investor-testing
/backend/common/Base/Utils/TransformationUtils.php
UTF-8
5,063
3.109375
3
[ "Apache-2.0" ]
permissive
<?php namespace Common\Base\Utils; use DateTime; use stdClass; abstract class TransformationUtils { /** * Массив строк трансформации из camelCase в under_score * * @var array<string, string> */ private static array $camelCaseToUnderScore = []; /** * Массив строк трансформации из...
true
fa408e3983ab85dbe4985d420f731575635ef190
PHP
Denise98/portgas-d-denise-fanarts
/proyecto/Database.php
UTF-8
3,183
3.234375
3
[]
no_license
<?php class Database{ private $dbHost ="localhost"; private $dbUser ="root"; private $dbPort ="3306"; private $dbPass =""; private $dbName ="fanart"; private static $prp; private static $pdo = null; //vamos a aplicar el metodo singleton:para ello comentamos el antiguo constructor /*public functio...
true
95ec762330699c666b582a3d8e1e954aaa274778
PHP
manuabhijit/PHP_Workshop_2015
/10. Entry into table/data.php
UTF-8
652
2.609375
3
[]
no_license
<html> <body> <!-- Dont JUMP --> ID<?php echo $_POST["id"]; ?><br> Name<?php echo $_POST["name"]; ?><br> Gender <?php echo $_POST["gender"]; ?> <?php $host="localhost"; $username="root"; $password=""; $database="workshop"; $var1=$_POST["id"]; $var2=$_POST["name"]; $var3=$_POST["gend...
true
7b24e5d9ff745d563d40f8dce97472b72b4b2950
PHP
abbajbryant/Virtualizable
/models/behaviors/virtualizable.php
UTF-8
3,029
2.71875
3
[]
no_license
<?php /** * Virtualizable Behavior for CakePHP 1.3 * * A Behavior to help manage virtualFields during finds - based largely on the ebook CakePHP 1.3 Application * Developlment by Mariano Iglesias - Chapter 3 'Pushing the Search' * * @author Abba James Bryant */ class Virtualiz...
true
92be41b4a7fc149aeb5665636a71bc14848f53c5
PHP
camilosm/letrastrocadas
/views/classes/class_insert.php
UTF-8
421
2.96875
3
[]
no_license
<?php class Inserir { private $tabela; private $campos; public function __construct($var_tabela="", $var_campos="") { $this->tabela = $var_tabela; $this->campos = $var_campos; } public function inserir() { $sql = "INSERT INTO $this->tabela VALUES ($this->campos)"; //echo $sql.'<B...
true
e7f1739f2b8bcabb71009775d3566a6ce548d3bf
PHP
JoshPiper/steam-api-php
/tests/src/Steam/Command/Directory/GetCMListTest.php
UTF-8
1,151
2.625
3
[ "BSD-2-Clause" ]
permissive
<?php /** * Created by IntelliJ IDEA. * User: daniel * Date: 18/05/2015 * Time: 23:21 */ namespace Steam\Command\Directory; use Steam\Command\CommandInterface; class GetCMListTest extends \PHPUnit_Framework_TestCase { /** * @var GetCMList */ protected $instance; public function setUp() ...
true
a8f523e25f7fd4fbc9b38b21521c79612e05240e
PHP
Quant85/laravel-boolpress
/app/Http/Controllers/API/PostAController.php
UTF-8
3,190
2.640625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Post; class PostController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { //dammi un file json //restituiscimi una rispo...
true
a016bce5cf625041efdc7cfffad41faabfb51a3f
PHP
PrincetonAfeez/kommerce-core
/src/EntityDTO/Builder/TagDTOBuilder.php
UTF-8
4,060
2.734375
3
[ "Apache-2.0" ]
permissive
<?php namespace inklabs\kommerce\EntityDTO\Builder; use inklabs\kommerce\Entity\Tag; use inklabs\kommerce\EntityDTO\TagDTO; use inklabs\kommerce\Lib\Pricing; use inklabs\kommerce\Lib\PricingInterface; use inklabs\kommerce\Lib\Slug; use inklabs\kommerce\Lib\UuidInterface; class TagDTOBuilder implements DTOBuilderInter...
true
06ac838e647236dc03d523db01f5ddcc95b68ee8
PHP
onepiece-framework/op-unit-google
/OAuth.class.php
UTF-8
3,174
2.703125
3
[]
no_license
<?php /** * OAuth.class.php * * @creation 2017-10-30 * @version 1.0 * @package unit-google * @author Tomoaki Nagahara <tomoaki.nagahara@gmail.com> * @copyright Tomoaki Nagahara All right reserved. */ /** OAuth * * @creation 2017-10-30 * @version 1.0 * @package unit-google * @author Tomoaki...
true
915bc1134ce78fd5bdac0620068b9e4333f37760
PHP
brian3t/formulary_api
/util/cms_drug_form.php
UTF-8
5,066
2.515625
3
[]
no_license
<?php /* * Import CMS' basic_drugs_formulary from inp/basic_drugs_formulary_file***.txt into fda_ndc table */ require_once __DIR__ . '/../vendor/autoload.php'; use Dibi\Connection; const DEBUG = false; //const DEBUG = true; const NUM_COLS = 11; $yii_conf = require_once(dirname(__DIR__) . '/f/protected/config/overr...
true
ba260faec1e7ad270fbc31c1b051f311ce48601b
PHP
Superpractica/cineUTN
/models/usuarios.php
UTF-8
3,423
2.875
3
[]
no_license
<?php require("connection.php"); class Usuario { private $connection; public function __construct(){ $this->connection = ConnectionTwitter::getInstance(); } public function getCantidad(){ $query = "SELECT COUNT(usuarioID) AS cantidad FROM usuarios"; $cantidad = $this...
true
258405572bcf46c4997b359cd1486a4b0ff5b55c
PHP
Victopia/prefw
/.private/scripts/models/WorkInstance.php
UTF-8
14,229
2.546875
3
[]
no_license
<?php /*! Jobs.php | Job models for the prefw system. */ namespace models; use core\Configuration as conf; use core\Database; use core\Deferred; use core\Relation; use core\Log; use core\Utility as util; use framework\Bayeux; use framework\exceptions\FrameworkException; /** * The job model does not need json sche...
true
699356dfd968b3106cfdabe937a4eedbc81d3734
PHP
moh-js/ngo
/app/Http/Livewire/Sections/DonationTab.php
UTF-8
815
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Livewire\Sections; use App\Models\About; use Livewire\Component; class DonationTab extends Component { public $about; public $missionToogle = true; public $visionToogle = false; public $valueToogle = false; public function mount() { $this->about = About::byB...
true
565a47fc6400edd8de847135757e2abb163b5d2f
PHP
Chantouch/scheduling
/app/Http/Controllers/JsonDataController.php
UTF-8
822
2.6875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Model\JsonData; use Illuminate\Http\Request; class JsonDataController extends BaseController { /** * JsonDataController constructor. */ public function __construct() { parent::__construct(); } public function show($id) { ...
true
1132ce77bbe617fe67a6da9721afed8743d43090
PHP
RochanaWeerasiri/Website-
/db.php
UTF-8
468
2.640625
3
[]
no_license
<html> <body> <?php $con=mysqli_connect("localhost","mysqluser","mysqluserpwd"); if(!$con){ die('could not connect'.mysqli_error()); } if(mysqli_query($con),"CREATE DATABASE message"){ echo "database created"; } else{ echo "error creating database ".mysqli_error(); } mysqli_select_db($con,"message"); ...
true