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
f2ba7a8b296d4712a132c923b90012d065f4a000
PHP
Fikriridhwan/Fikri_CP_Exrcise
/Triangle.php
UTF-8
984
3.9375
4
[]
no_license
<?php class Triangle extends Shape{ private $const = 0.5; public function __construct(float $a,float $b){ if ($a == $b) { echo "2 variable harus bernilai berbeda"; }else{ $this->check($a,$b); $this->set_c(); } } protected function set_a(float $a){ $this->a = $a; } protected function set_b...
true
298051862d5c7ec169e05f30b8ca6c2da559e338
PHP
lampi87/twbs-helper-module
/src/TwbsHelper/Form/View/Helper/FormAddOn.php
UTF-8
8,835
2.546875
3
[ "MIT" ]
permissive
<?php namespace TwbsHelper\Form\View\Helper; class FormAddOn extends \Laminas\Form\View\Helper\AbstractHelper { use \TwbsHelper\View\Helper\HtmlTrait; public const POSITION_APPEND = 'append'; public const POSITION_PREPEND = 'prepend'; /** * @var \Laminas\Form\Factory|null */ protected ...
true
dbd834c0536e68dc8d0a9c162ecf5b5f2b9a40de
PHP
theodorebourgeon/NF17
/Statistique_age.php
UTF-8
765
2.515625
3
[]
no_license
<?php $a = $_POST["nom"]; echo "$a"; // Connexion à la base de données avec données de la base de postgres $vConn = new PDO('pgsql:host=tuxa.sme.utc;port=5432;dbname=dbnf17p099', 'nf17p099', 'h1AWr2Lr'); // Écriture, exécution et test de la requête $Sql = "SELECT AVG(DISTINCT AGE (CURRENT_DATE, patient.datenaiss)) ...
true
90542df5709899dec436303a9f7b7bd295e545fd
PHP
Shardj/zf1-future
/library/Zend/XmlRpc/Request.php
UTF-8
11,954
2.65625
3
[ "JSON", "LicenseRef-scancode-generic-cla" ]
permissive
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
true
74c697f1e4eb7e9b3f76703a8612d3958fbf7311
PHP
behamin/laravel-smvc
/src/Console/MakeCommand.php
UTF-8
2,563
2.75
3
[ "MIT" ]
permissive
<?php namespace Xanpena\SMVC\Console; use Illuminate\Console\GeneratorCommand; use InvalidArgumentException; use Illuminate\Support\Str; use Symfony\Component\Console\Input\InputOption; class MakeCommand extends GeneratorCommand { protected $name = 'make:smvc'; protected $description = 'Create a new SMVC S...
true
eaee8bc589784ec4d4d723c2f40a5a22000289d1
PHP
marekpo/tourdb
/views/appointments/elements/appointment_form.ctp
UTF-8
1,618
2.53125
3
[]
no_license
<?php echo $this->Form->create(); if(!empty($this->data['Appointment']['id'])) { echo $this->Form->hidden('Appointment.id'); } echo $this->Form->input('Appointment.title', array( 'label' => __('Titel', true), 'error' => array( 'notEmpty' => __('Der Titel eines Anlasses darf nicht leer sein.', true) ) )); echo $t...
true
d91ff75e10586dfdc7d1b4b2d2464760c57ee277
PHP
Ivan-Kubik/guru
/database/migrations/2020_05_08_000020_create_home_table.php
UTF-8
714
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateHomeTable extends Migration { public function up() { Schema::create('home', function (Blueprint $table) { $table->id(); $table->enum(...
true
cfa9c3c467c966a178d5a64ee61faa8f7835f7f1
PHP
KeitaSugiyama/otonari_asp
/custom/system/paySystem.php
SHIFT_JIS
366
2.625
3
[]
no_license
<?php include_once 'custom/system/BasePaySystem.php'; /** * VXeR[NX * * @author OHq * @version 1.0.0 * */ class paySystem extends BasePaySystem { // /** @brief e[u擾B @return e[uB */ function GetType() { return 'pay'; } }
true
f7be36bef94333dfd3680b5234a9a80c2eb6c4b4
PHP
FactibleMedia/PHPLearning
/Sistema Login/reguserswelcome_02.php
UTF-8
866
2.6875
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Bienvenido a la plataforma</title> </head> <body> <?php session_start(); // Esta función crea o reanuda una sesión. Rescatamos lo que hay almacenado en la variable superglobal $_SESSION que utilizamos en otra página. ...
true
9b32cad47b4eabaaace9fc216d95f4c6ed4df3a9
PHP
denyadzi/kalad-quest
/filters/QuestAdminAccessRule.php
UTF-8
1,034
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\filters; use yii\filters\AccessRule; /** * @inheritdoc */ class QuestAdminAccessRule extends AccessRule { /** * @inheritdoc */ public function matchRole($user) { $items = empty($this->roles) ? [] : $this->roles; if (!empty($this->permissions)) { ...
true
39bf2098b067e7f0c370c476b2713f441be04100
PHP
Csardelacal/CptnH00k
/bin/models/listener.php
UTF-8
1,413
2.515625
3
[ "MIT" ]
permissive
<?php use spitfire\Model; use spitfire\storage\database\Schema; /* * 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. */ class ListenerModel extends Model { /** * * @param Schema $...
true
631e8d17fc031ee715cd6f4293e59f4a8980fe3d
PHP
jcapoduri/ndorm
/src/orm/fieldDefinition.php
UTF-8
2,308
3.09375
3
[]
no_license
<?php namespace nd; class fieldDefinition { protected $defString; protected $type = "string"; protected $length = 0; protected $nullable = false; protected $index = false; protected $unique = false; public function __construct($defstring) { $this->defString = $defstring; ...
true
778e0dad679ff32137db1db190ec00fed7ac86cf
PHP
jlachancekffein/foretpossibilite
/plugins/cifq/newsletter/Plugin.php
UTF-8
2,446
2.578125
3
[]
no_license
<?php namespace Cifq\Newsletter; use Backend; use System\Classes\PluginBase; /** * Newsletter Plugin Information File */ class Plugin extends PluginBase { /** * Returns information about this plugin. * * @return array */ public function pluginDetails() { return [ ...
true
99b696b9d912992c546d1c05002e22762510f7ed
PHP
Urke011/MyYoutube
/includes/Classes/Video.php
UTF-8
2,037
3.5
4
[]
no_license
<?php class Video{ private $con; private $sqlData; private $userLoggedObj; public function __construct($con,$input,$userLoggedObj){ $this->con = $con; $this->userLoggedObj = $userLoggedObj; //ako je niz if(is_array($input)){ ...
true
f06cd5c72c7dd515fdb8544a190ca827089e1d60
PHP
santoshachari/Laravel-Basix-5.4
/app/ImageFilters/disabledImage.php
UTF-8
451
2.828125
3
[ "MIT" ]
permissive
<?php /** * Sample filter for image manipulation * via image cache */ namespace App\ImageFilters; use Intervention\Image\Filters\FilterInterface; use Intervention\Image\Image; class DisabledImage implements FilterInterface { /** * Applies filter to given image * * @param Image $image * ...
true
3babbdb92295b2991ac1909d13a024daa2530974
PHP
sebastianGR429/proyecto
/modelo/entidades/Partner.php
UTF-8
1,812
3.28125
3
[]
no_license
<?php class Partner{ private $cod_partner; private $nom_partner; private $correo_partner; private $tel_partner; public function __construct($cod_partner,$nom_partner,$correo_partner,$tel_partner){ $this->cod_partner=$cod_partner; $this->nom_partner=$nom_partner; $this->...
true
dfb1d6066028851b75eccd5ee6449080cd551c51
PHP
H3ll0W0lrd/eap
/Library/COM/Gaosi/VTeacher.class.php
UTF-8
4,960
2.734375
3
[]
no_license
<?php class VTeacher extends User { private $dao = null; private static $userTable = 'vip_user'; private $teacherTable = 'bs_teacher'; private $vipUserInfo = array(); private $_userInfo = array(); protected function __construct($userInfo) { parent::__construct($userIn...
true
f97dd89a7d61a00b88df42c3ce0da8a32cd2fc5d
PHP
nomissivraj/timebank
/create_account_login.php
UTF-8
1,441
2.578125
3
[]
no_license
<?php session_start(); // create datbase connection info $servername = "localhost"; $dbUsername = "root"; $dbPassword = "database"; $database = "timebank"; // Create connection using connection info $connect = new mysqli($servername, $dbUsername, $dbPassword, $database); // Check if connection has worked or failed - i...
true
a4076024d549d91f961492755d732caddde79a68
PHP
rezident/simple-telegram-bot
/src/methods/SetStickerSetThumb.php
UTF-8
1,377
2.640625
3
[]
no_license
<?php namespace TelegramBot\methods; use TelegramBot\TelegramBot; use TelegramBot\types\BooleanPrimitive; use TelegramBot\types\InputFile; /** * Use this method to set the thumbnail of a sticker set. Animated thumbnails can be set for animated sticker sets only. Returns True on success. * * @method $this setName(...
true
b6fe0edd12518ab28bacc3fbf02fe7ca343a9f7a
PHP
ekpliska/dev.management-company
/modules/api/v1/controllers/PaymentsController.php
UTF-8
2,942
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\modules\api\v1\controllers; use Yii; use yii\rest\Controller; use yii\filters\AccessControl; use yii\filters\auth\HttpBasicAuth; use yii\filters\auth\HttpBearerAuth; use app\modules\api\v1\models\payments\PaymentForm; use app\modules\api\v1\models\payments\Payments; ...
true
d3b74a35bd94f0f37896687971604b55d486b886
PHP
vyong1/PHPTodoApplication
/Index.php
UTF-8
1,505
2.828125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>My Todo</title> <link rel="icon" href="Resources/favicon.png"/> <script src="Resources\index.js"></script> <link rel="stylesheet" href="Resources\index.css" /> </head> <body> <?php // Require statements requ...
true
8f8c7bcb98aa28aadb63b156a63080808481a526
PHP
peresmishnyk/test_task
/src/Traits/ForwardCall.php
UTF-8
323
2.5625
3
[]
no_license
<?php namespace Peresmishnyk\Task\Traits; trait ForwardCall { public static function __callStatic($name, $args) { return forward_static_call_array([static::class, $name], $args); } public function __call($name, $args) { return forward_static_call_array([$this, $name], $args); ...
true
924ad704e6c4f3acef65741dd38e3b40c0e568b4
PHP
lukeelten/cakephp-password-hasher
/tests/TestCase/Auth/SecurePasswordHasherChainTest.php
UTF-8
1,516
2.5625
3
[ "MIT" ]
permissive
<?php namespace lukeelten\PasswordHasherTest\Auth; use lukeelten\PasswordHasher\Auth\Argon2PasswordHasher; use lukeelten\PasswordHasher\Auth\BcryptPasswordHasher; use lukeelten\PasswordHasher\Auth\SecurePasswordHasherChain; /** * Class SecurePasswordHasherChainTest * @package lukeelten\PasswordHasherTest\Auth * ...
true
10b02b5ab3a52ed4a93dd2bf92fa177c1cfd8153
PHP
YOLOMIN/grade-analyzing
/Teacher/php/ChineseScore.php
UTF-8
824
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Lenovo * Date: 2019/3/30 * Time: 16:19 */ //用于绘图的数据传值 require('../../conn/conn.php'); session_start(); $classno = $_SESSION['classno']; $chinese_sql = "select distinct score.studentno,score.score as chinese from score,student where courseno='2' and time=...
true
bd8e52df96424e4571902232f8df0dca7803fc96
PHP
DDDominio/event-sourcing
/src/EventSourcing/Snapshotting/Vendor/DoctrineDbalSnapshotStore.php
UTF-8
4,251
2.671875
3
[ "MIT" ]
permissive
<?php namespace DDDominio\EventSourcing\Snapshotting\Vendor; use DDDominio\EventSourcing\EventStore\InitializableInterface; use DDDominio\EventSourcing\Snapshotting\SnapshotInterface; use DDDominio\EventSourcing\Snapshotting\SnapshotStoreInterface; use DDDominio\EventSourcing\Serialization\SerializerInterface; use Do...
true
54126d977aa4bfa143091c114c21b418211c85f1
PHP
xuebingwang/member
/src/Handlers/Information/Group/CreateHandler.php
UTF-8
905
2.5625
3
[ "Apache-2.0" ]
permissive
<?php /** * This file is part of Notadd. * * @author TwilRoad <heshudong@ibenchu.com> * @copyright (c) 2017, notadd.com * @datetime 2017-05-04 19:02 */ namespace Notadd\Member\Handlers\Information\Group; use Notadd\Foundation\Routing\Abstracts\Handler; use Notadd\Member\Models\MemberInformationGroup; /** * Cla...
true
993b6c89d17a2ba8c34c53e6a4ea2a8d8fc7cebe
PHP
kaaterskil/laxstats_php
/includes/modules/results/schedule/schedule.php
UTF-8
9,737
2.640625
3
[]
no_license
<?php require('includes/modules/results/header.php'); ?> <!-- BOF BODY --> <div class="body_container"> <table border="0" cellspacing="0" cellpadding="0" width="750"> <?php //set up weeks $start_month = mktime(0, 0, 0, $month, 1, $season); $end_month = mktime(0, 0, 0, $month + 1, 0, $season); $days_to_sunda...
true
3d8a56146643d974bb013ad1222fdf7d37d0269b
PHP
Vladimir-jsn/SymfonyDevTestEx1
/src/Controller/UserAccountController.php
UTF-8
1,776
2.609375
3
[]
no_license
<?php namespace App\Controller; use App\Domain\BaseController; use App\Domain\UserAccount\Event\ChangePasswordEvent; use App\Domain\UserAccount\Request\ChangePasswordRequest; use App\Domain\UserAccount\Service\UserAccountService; use App\Domain\UserAccount\Validator\ChangePasswordRequestValidator; use Symfony\Compone...
true
b97a675e804d4603fc438904eca07815190e6762
PHP
detain/kayako-php-api-library
/kyConfig.php
UTF-8
7,655
2.84375
3
[ "BSD-2-Clause-Views" ]
permissive
<?php /** * Class holding library configuration. * * @author Tomasz Sawicki (https://github.com/Furgas) * @package Common */ class kyConfig { /** * Base URL of Kayako REST API. * @var string */ private $base_url = null; /** * Kayako REST API key. * @var string */ private $api_key = null; /** *...
true
336871832d618ca6ba73f22d0e21e213233e6397
PHP
oke11o/money-work-example
/src/Security/Authorizer.php
UTF-8
1,935
2.8125
3
[]
no_license
<?php namespace App\Security; use App\Entity\User; use App\Provider\UserProvider; use DI\Annotation\Injectable; /** * Class Authorizer * @package App\Security * @author Sergey Bevzenko <bevzenko.sergey@gmail.com> * * @Injectable(lazy=true) */ class Authorizer { const SESSION_USER_KEY = 'UserId'; priva...
true
4e019f1ba60c3284ad2d4a6f2ee66c003f8a97ed
PHP
brahma-dev/responsive-wordpress-theme
/framework/php/class-htmlhelper.php
UTF-8
45,869
3
3
[]
no_license
<?php if ( ! defined( 'ACE_FW' ) ) exit( 'No direct script access allowed' ); /** * This file holds the ace_htmlhelper class which renders html elements based on the options passed. * Basically all backend html output for the option pages is defined within this file * * @author Afzaal Ameer * @copyright Copyrig...
true
1a6d47e88250ac1a8461d106bd4806a699fce4f3
PHP
volktron/pearalized
/pearalized/routing/RouterFactory.php
UTF-8
290
2.578125
3
[]
no_license
<?php namespace pearalized\routing; class RouterFactory { public static function produce($params) { $classname = $params['resolver']; if(class_exists($classname)) $object = new $classname($pagedata); else $object = new \routing\NullRouter($params); return $object; } }
true
d9ae35323c43ebcbb6d050cdbf451d0d11a2eab2
PHP
flamingosoft/geekbrains_php
/level2/drivers/MySqlDriver.php
UTF-8
262
2.765625
3
[]
no_license
<?php namespace drivers; use PDO; class MySQLDriver extends DbDriver { public static function getPDO() { //var_dump("create PDO instance"); return new PDO("mysql:host=" . DB_HOST . ";dbname=" . DB_NAME, DB_USER, DB_PASSW ); } }
true
b4a9a0cf1ee67f1aae982d105251505cb2bf3ac5
PHP
Maize-Genetics-and-Genomics-Database/pedigreenet
/lib/libbau/SectionDirectives.php
UTF-8
3,028
3.140625
3
[ "Apache-2.0" ]
permissive
<?php include_once('Directives.php'); /* * Compile-time directives for Section types * * @author: Bremen Braun */ class SectionDirectives extends Directives { private $key; public function executeBody($key, $val) { $this->key = $key; switch($key) { case 'display': $this->display($val...
true
5ea6f83c3022914e1ea5ca9aba97fd5b2c71504e
PHP
stik/Custom-Select-Input-for-Contact-Form-7
/repositories/OptionsRepository.php
UTF-8
1,570
3
3
[]
no_license
<?php include DIR_CSI7 . '/models/TableModel.php'; class OptionRepository{ private $options; public $table; public $text; public $value; private $optionsAvailables; function __construct( $options ) { $this->options = $options; $this->table = null; $this->t...
true
4c6412340baf5b2ed5f8418d1d2eb419dbc3e89a
PHP
hi20160616/RightClickMenu
/src/Registry/RegistryItem.php
UTF-8
645
2.859375
3
[ "MIT" ]
permissive
<?php namespace src\Registry; use src\Generator; abstract class RegistryItem implements RegistryItemInterface, Generator { protected $operate = 'create'; protected $location; protected $attributes; public function setOperate($operate) { $this->operate = $operate; return $this; ...
true
34cef44144ed1661ba36238fd37918b1aa546285
PHP
huanggang1/info_bak
/app/Models/School.php
UTF-8
6,532
2.53125
3
[]
no_license
<?php namespace App\Models; use Zizaco\Entrust\EntrustPermission; use Illuminate\Database\Eloquent\Model; use DB; use PDO; use Validator; class School extends Model { protected $table = 'school'; protected $fields = [ 'name' ]; protected $rules = [ 'name' => 'required|unique:school,n...
true
61c408d59afb18882df8386f1fc10ade142e7401
PHP
sbrodin/12parfait
/application/models/Article_model.php
UTF-8
1,199
2.53125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Article_model extends MY_Model { public function __construct() { parent::__construct(); $this->table = $this->config->item('article', 'table'); } // cas où on retourne tous les articles public function get_articles() { $select = 'category, date, DATE_FORMAT...
true
dcca9cc033fa3d40cb7bf387ce6318ce52e86e7f
PHP
jandoant/Flagknights-Teamdatenbank
/php/func/personen.func.php
UTF-8
4,142
2.921875
3
[]
no_license
<?php /* Zeigt Übersicht aller eingetragenen Personen an */ function overview_personen() { //ANZEIGE der Personenübersicht include 'php/inc/personen_overview.inc.php'; } /* Fügt eine Person der DB hinzu */ function add_person($post) { if (isset($post['submit_addperson'])) { $aktiv = 0; if (isse...
true
7e53e6b3b6069dcd0ddcd57e3c4afdc63c08fcdd
PHP
memethief/wipcomix
/classes/Face.php
UTF-8
1,574
3.046875
3
[]
no_license
<?php /** * Class representing a character's drawn face */ class Face extends PanelObject { /* is the face facing away from the viewer? */ var $face_away = false; var $strokecolor = 'brown'; var $fillcolor = 'burlywood'; // #deb887 function __construct(Character &$character) ...
true
9dc2b70382da14a5caa526ba23a9975b4059e48d
PHP
Chromadream/FIT2104-A3
/Product_DAO.php
UTF-8
1,146
2.765625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Jonathan Nicholas * Date: 10/9/2017 * Time: 23:50 */ class Product_DAO { public $product_id; public $product_name; public $product_purchase_price; public $product_sale_price; public $product_country_of_origin; private $_conn; function __constru...
true
d0a70b840af97e7104988612ae97620e3dba964b
PHP
michal-kusy/cl-task
/app/Util/Assert.php
UTF-8
183
2.625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Util; class Assert { public static function isStringInteger($id): bool { return preg_match('/^\d+$/',$id) === 1; } }
true
25d586cc9c51227d01cd8134d7314d5a98813ac6
PHP
dmg2112/notasAlumnosPHPJaimeCasadoDavidMinguez
/MostrarAlumnos.php
UTF-8
995
2.8125
3
[]
no_license
<?php require 'vendor/autoload.php'; // incluir lo bueno de Composer $cliente = new MongoDB\client; $alumnos = $cliente->ADAT_UD3_A04->alumnos; $result = $alumnos->find(); foreach ($result as $entry) { $nombre = " ".$entry['nombre']." ".$entry['apellido']; $matricula = $entry['nMatricula']; ...
true
6283c09982912d3c4ed58c4a0f18877713ad9484
PHP
beibut22/dauren-site
/bus/factories/ProductFactory.php
UTF-8
1,624
2.78125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\bus\factories; use app\models\Product; class ProductFactory { /** * @param $userId * @param $address * @param $categoryId * @param $city * @param $country * @param $description * @param $lawType * @param $licensed * @param $name * @param $pers...
true
f0beebe564bd6c5df50cf766ba88044a5219dded
PHP
supersayent/coderstrust
/class10/src/Driver.php
UTF-8
107
2.75
3
[]
no_license
<?php class Driver{ public function __construct() { echo "I am from Driver.php<br>"; } } ?>
true
4e019ec888d0ed3b010734d5d89b6d7b119efd38
PHP
nerdsrescueme/Core
/classes/model/assumption/options.php
UTF-8
646
2.90625
3
[]
no_license
<?php namespace Nerd\Model\Assumption; use \Nerd\Model\Column; class Options extends \Nerd\Model\Assumption { public function check($value) { $options = explode(',', str_replace("'", '', $this->column->constraint)); return in_array($value, $options); } public function errorText() { // Reads the string ...
true
f6b3007cb61eb5417f9c11e148b66ebc2c7d53d6
PHP
mwin007/Magento-Newletter-Popup
/app/code/local/MartinNguyen/NewsletterPopup/Model/Subscriber.php
UTF-8
1,477
2.609375
3
[]
no_license
<?php /** * NewsletterPopup module subscriber model * * @category MartinNguyen * @package MartinNguyen_NewsletterPopup * @author Martin Nguyen */ class MartinNguyen_NewsletterPopup_Model_Subscriber extends Mage_Newsletter_Model_Subscriber { /** * Customer model * * @var Mage_Customer_...
true
2c34adf04da075f8a7d626f1d540bb54ec04d0f6
PHP
jajamoks/rent-a-car
/app/Models/PersonType.php
UTF-8
614
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * Class PersonType * @package App\Models * * @property int $id * @property string $name * @property string $created_at * @property string $updated_at */ class PersonType extends Model { const LEGAL_TYPE = 'Legal'; const PHYSICAL_...
true
2054202030cd47f095414079744c21d211e90845
PHP
josedefrias/too
/Excel_Informe_Reservas_Hotel.php
UTF-8
11,638
2.53125
3
[]
no_license
<?php //include 'funciones_php/conexiones.php'; require_once 'PHPExcel.php'; //include 'PHPExcel/IOFactory.php'; //include 'PHPExcel/Writer/Excel5.php'; $parametrosg = $_GET; $hotel = $parametrosg['hotel']; $fecha_desde = $parametrosg['fecha_desde']; $fecha_hasta = $parametrosg['fecha_hasta']; $c...
true
c639fc43057259a106f26d03ce50e5e8912e3466
PHP
aronduby/hwp
/database/migrations/2016_08_13_051522_create_sites.php
UTF-8
616
2.734375
3
[ "MIT" ]
permissive
<?php use App\Database\Schema\Blueprint; use App\Database\Migrations\Migration; class CreateSites extends Migration { /** * Run the migrations. * * @return void */ public function up() { $this->schema->create('sites', function (Blueprint $table) { $table->increments...
true
22b02806263b1f48f40b33b497dce22838f692ee
PHP
dylanmoretto/coaching
/src/Classes/Graph.php
UTF-8
2,806
2.8125
3
[]
no_license
<?php namespace App\Classes; use CMEN\GoogleChartsBundle\GoogleCharts\Charts\ComboChart; use CMEN\GoogleChartsBundle\GoogleCharts\Options\VAxis; use App\Entity\View; use Doctrine\ORM\Entity; use Doctrine\ORM\EntityRepository; use \Datetime; class Graph { const ANIMATION_STARTUP = true; const ANIMATION_DURATI...
true
cae49c879f9b4f549490cff4138186c1449e0398
PHP
ibrows/post_wedec_bundle
/Api/Delivery/WedecDeliveryManager.php
UTF-8
7,038
2.640625
3
[]
no_license
<?php namespace Ibrows\PostWedecBundle\Api\Delivery; use Ibrows\PostWedecBundle\Api\Delivery\Entity\WedecDeliverabilityResponse; use Ibrows\PostWedecBundle\Api\Delivery\Model\WedecAddressInterface; use Ibrows\PostWedecBundle\Api\Delivery\Model\WedecDeliveryAddressInterface; use Ibrows\PostWedecBundle\Api\Delivery\Mo...
true
9a9d2750fe6d15c2179b6d8cbbb1486193296e7e
PHP
AleksAbramovWEB/taskbook
/core/library/Validator.php
UTF-8
5,461
3.09375
3
[]
no_license
<?php /* * rules: * required - обязательное поле * email - проверка мыла регулярным выражением * emailDB - роверка мыла на существование в дб * pass - валидация паполя * identPass - роверка на совпадение паролей * strMin??? - минимальное количество символов ??? означает цифры * strMax??? - максимальное количест...
true
16efcfab10f5f6cf8d175d84925f79c2a3586226
PHP
karolornoch/BenefiaService
/src/BenefiaNew/StructType/ConsentResult.php
UTF-8
2,403
2.90625
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace BenefiaNew\StructType; use InvalidArgumentException; use WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for ConsentResult StructType * @subpackage Structs */ class ConsentResult extends AbstractStructBase { /** * The ConsentId * Meta infor...
true
f2943c42b70b2b7c18734f43b8d25b87bf1f848c
PHP
Wordovators/ESP-bots-vs-humans
/HTML experiment files/Documentation/scripts/wordSegmentation/parseFirebase.php
UTF-8
1,402
2.578125
3
[]
no_license
<?php //change the path in these two lines to point your input and output files $string = file_get_contents("../word-segmentation-2-export.json");//source - JSON file $output = fopen("../word-segmentation-2-export.csv", "w");//where you want to save output CSV file //list of keys that you wish to retrieve from th...
true
c0c796c0c87919cccebe57b05c268765cfb4814f
PHP
Abilandou/Student-Record-Management
/app/Http/Controllers/StudentClassController.php
UTF-8
4,105
2.703125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\StudentClass; use Illuminate\Http\Request; use App\Student; use App\Subject; class StudentClassController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { ...
true
effbe5607a04105244c8fb607e6a37d0897ae9fa
PHP
thanhduc270998/project
/BaiToanPHPcoban/BaiToanDonGian/array/min_max_mang_lien_hop.php
UTF-8
311
2.71875
3
[]
no_license
<?php $s = array("aayLaMangLienHop"=>"hihihi", "AuoiLenNao"=>"haha", "blogan"=>"Muaahaha"); $max_key = max(array_keys($s)); $min_key = min(array_keys($s)); echo "Phần tử dài nhất trong bảng mã ASCII là:".$max_key; echo "<br>"; echo "Phần tử ngắn nhất trong bảng mã ASCII là:".$min_key; ?>
true
7ddd5eae7598208381f95bb776e4edd503f9bf48
PHP
practice-code/m2-alexa-connector
/Helper/Data.php
UTF-8
3,709
2.515625
3
[]
no_license
<?php /** * Alexa API connector * * @author Fred Orosko Dias <fred@imaginemage.com> * @link https://imaginemaage.com/ */ namespace ImaginationMedia\Alexa\Helper; use Magento\Customer\Model\Customer; use Magento\Framework\App\Helper\AbstractHelper; use Magento\Framework\App\Helper\Context; use Magento\Sales\Model...
true
2630967828e15b8f3cf4a3303f8e0e858bbb9aca
PHP
kahi556/booksearch
/m/follow_y.php
UTF-8
2,707
2.609375
3
[]
no_license
<?php // // 「フォロー」リンククリック // session_start(); // ログイン状態のチェック if (!isset($_SESSION['login'])) { header("Location: login?"); exit; } // 変数初期化 $p_brno = ""; $p_f_user_id = ""; $time = date("Y-m-d H:i:s"); // 日時取得 //*********************************************** // 受信データをもとに変数の設定 POST //*********...
true
0e5e2f1c1643af0d388a7c33c7bc6b797d7d4eca
PHP
mostafizpantheon/drupal-8-solr-test
/vendor/drupal/drupal-extension/src/Drupal/DrupalExtension/MinkAwareTrait.php
UTF-8
4,357
2.578125
3
[ "GPL-2.0-only", "MIT" ]
permissive
<?php namespace Drupal\DrupalExtension; use Behat\Mink\Mink; /** * Provides helpful methods to interact with the Mink session. * * This is making the functionality from RawMinkContext available for reuse in * classes that do not extend it. * * @see \Behat\MinkExtension\Context\RawMinkContext */ trait MinkAwar...
true
821b69e83ca1586a48d8c222053787964ad9852e
PHP
php-elementary/json-api
/src/Traits/MetaTrait.php
UTF-8
864
2.84375
3
[ "MIT" ]
permissive
<?php namespace elementary\helpers\JsonApi\Traits; trait MetaTrait { /** * @var array */ protected $meta = []; /** * @return array */ public function getMeta() { return $this->meta; } /** * @param array $data * * @return $this */ public...
true
902112aac476e353cab8fc5d3916528562bd10dc
PHP
Grrompf/nakade_cloud
/src/Tools/DGoB/Model/ResultModel.php
UTF-8
2,691
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * @license MIT License <https://opensource.org/licenses/MIT> * * Copyright (c) 2019 Dr. Holger Maerz * * 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 ...
true
9d3e32f83d56dcf5fe98c804ac8444851278fad8
PHP
Eel2000/Credia
/application/Entities/Emprunt.php
UTF-8
1,548
3.015625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php require_once ('Equipement.php'); require_once ('UtilisateurEquipement.php'); class Emprunt { private $id; private $equipement; private $user_equipement; private $date_emprunt; /** * EmpruntModel constructor. * @param $id * @param $equipement * @param $user_equipement * @param $d...
true
41a151f2ea60cb87788e8f3dd224d1897ed689e9
PHP
micoli/qdmmmdb
/lib/3rd_php/speedallocine/index.php
UTF-8
3,061
2.5625
3
[]
no_license
<?php include "allocine.php"; if($_GET['search']) { $in['FIND'] = $_GET['allocine']; $data = allocine($in); } if($_GET['id']) { if (file_exists("stock/".$_GET['id'].".xml")) { $handle = fopen("stock/".$_GET['id'].".xml",'r'); $scrape...
true
1c41e5db68c25be517f160072f3db0bb7c4986af
PHP
azeller/Crosslinks
/core/components/crosslinks/model/crosslinks/events/crosslinksplugin.class.php
UTF-8
783
2.59375
3
[]
no_license
<?php /** * @package crosslinks * @subpackage plugin */ abstract class CrosslinksPlugin { /** @var modX $modx */ protected $modx; /** @var Crosslinks $crosslinks */ protected $crosslinks; /** @var array $scriptProperties */ protected $scriptProperties; public function __construct($modx,...
true
773c492cd5ccaff66614f8ba692127efeba6928f
PHP
dladonenko/scot
/application/lib/widget/myWidgetFormInputFileEditable.class.php
UTF-8
2,374
2.78125
3
[]
no_license
<?php /* * This file is part of the symfony package. * (c) Fabien Potencier <fabien.potencier@symfony-project.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * sfWidgetFormInputFileEditable represents an upload HTML inpu...
true
79180064c7a122eabda7ce9d2af2730e110e3d3e
PHP
norsem4n/PHPsite1
/Search.php
UTF-8
2,226
2.59375
3
[]
no_license
<?php declare(strict_types=1); /* Search page * Last Modified March 2021 * @author ckarnas, fresquez */ session_start(); require_once 'CCDisplay.php'; require_once 'ProjectMethods.php'; require_once 'CartClass.php'; // $userFName = (isset($_SESSION['userinfo']))? $_SESSION['userinfo']['...
true
b9cd5e0802cc3d8622b5f08d47c758fff423b4ed
PHP
ZHB/weather-gradient
/src/WeatherGradient/Exception/WeatherGradientException.php
UTF-8
734
2.609375
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Weather Gradient package. * * (c) Vincent Huck <vincent.huck.pro@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Zhb\WeatherGradient\Exception; use Throwable; class Weath...
true
9fae5f052f5e534c1e02a49bb1e8d1283e705ad6
PHP
Strategy11/formidable-forms
/tests/fields/test_FrmFieldsAjax.php
UTF-8
4,209
2.515625
3
[]
no_license
<?php /** * @group ajax * @group free */ class test_FrmFieldsAjax extends FrmAjaxUnitTest { protected $form_id = 0; protected $user_id = 0; public function setUp(): void { parent::setUp(); // Set a user so the $post has 'post_author' $this->user_id = $this->factory->user->create( array( 'role' => 'admi...
true
3d4ee19fa6598e0a39b6d106bbfe0c97965b5271
PHP
wisteriaflash/jdctest
/jdcsign/generateSign-pub.php
UTF-8
1,171
2.625
3
[]
no_license
<?php //generate html $file = "test txt"; $file = isset($_POST['content']) ? $_POST['content'] : $file; $fp = fopen("tpl-pub.html","r"); $content = fread($fp, filesize("tpl-pub.html")); $content = str_replace("{ content }",$file,$content); // echo $content; $filename = "result.html"; $handle ...
true
9b1a24f5345238da569f54763b74186d34e9a080
PHP
Dumbeldor/OneSheep
/connection.php
UTF-8
2,111
2.640625
3
[]
no_license
<?php if (isset($_POST['creer']) && isset($_POST['nom']) && isset($_POST['village'])) // Si il veut créer son perso { $perso = new Personnage(array( 'PA' => 30, 'heureStock' => time(), 'nom' => $_POST['nom'], 'argent' => 5, 'village' => $_POST['village'], 'forcePerso' => 4, 'defense' => 2, 'fuite' => ...
true
e3c8d76c1662daf71fa9f1529ddd6973e253d8ca
PHP
joaogbsi/chkList1
/model/bi/EmpresaBI.php
UTF-8
1,230
2.59375
3
[]
no_license
<?php require_once 'C:\xampp\htdocs\chkList_old\config.php'; require_once PATH_MODEL_BI .'GenericBI.php'; require_once PATH_MODEL_DAO.'EmpresaDAO.php'; class empresaBi extends GenericBI{ private $empresaDAO; public function __construct($connection) { parent::__construct($connection); } public function ad...
true
3979deea12cda9165653fe594e6d8c03430672f3
PHP
viacheslavoleshko/laravel-ecomerce_alpha
/database/factories/ProductFactory.php
UTF-8
1,079
2.625
3
[ "MIT" ]
permissive
<?php namespace Database\Factories; use App\Models\Product; use Illuminate\Database\Eloquent\Factories\Factory; class ProductFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Product::class; /** * Define the mode...
true
44e0acb932867266d83924764616d5dbc748f473
PHP
lunabeille/site_coaching
/views/addresult.php
UTF-8
1,503
2.75
3
[]
no_license
<div class="content"> <p> AJOUTER UN RESULTAT </p> <form method="POST" action="/sitecoaching/index.php/addResult"> <fieldset> <legend>Ma Performance</legend> <div class="champ"> Sélectionner une course : <select name="race"> <?php foreach($data as $race => $id) { // si le nom de la c...
true
2455629c650b4dbb4e504cc265e569e1898a90fb
PHP
itlopee/test
/php/connection.php
UTF-8
1,854
2.734375
3
[]
no_license
<!DOCTYPE html > <html> <head> <meta charset="utf-8" /> <title>Login</title> <link rel="stylesheet" href="cdds.css"/> </head> <body> <form class="post",method="get"><!--c'est le formulaire de connection--> <input type="text" class="form-control" name="Identifiant" placeholder="Identifiant"...
true
041cb83cb0426a7ecce7f14ec9b1a5d82446a761
PHP
zhangxinjsp/MyDemoPHP
/PHPInterfaceApp/AppInterface.php
UTF-8
1,183
2.625
3
[]
no_license
<?php $array = array("username" => "bohua", "password" => "123456"); if ($_SERVER["REQUEST_METHOD"] == "POST") { if (file_get_contents('php://input')) { $receiveStr = file_get_contents('php://input'); echo $receiveStr; // echo json_encode($array); // $json = json_decode($receiveStr, T...
true
7a8b1b2358a89774d39ee9f0171c3b42db5a71e0
PHP
Luhhii/Actividad-B6
/p6_hernandez_24_php/arrayR.php
UTF-8
201
3.1875
3
[]
no_license
<?php $aDias = array("Lunes", "Martes", "Miercoles", "Jueves", "Viernes"); // El array queda: "Viernes", "Jueves", "Miercoles", "Martes", "Lunes" print_r( array_reverse( $aDias ) ); ?>
true
6bef70308acbe642a8f2df46e04c8ae41ccc72b0
PHP
redcatphp/bowerphp
/src/Bowerphp/Installer/InstallerInterface.php
UTF-8
1,196
2.859375
3
[ "MIT" ]
permissive
<?php namespace Bowerphp\Installer; use Bowerphp\Package\PackageInterface; use Symfony\Component\Finder\Finder; /** * Interface for the package installation manager */ interface InstallerInterface { /** * Installs specific package * * @param PackageInterface $package package instance */ ...
true
b31336f37c59ecf2f2358a30d4359b01d2da241c
PHP
decanus/Ganked
/GankedPost/tests/unit/Backends/Wrappers/MailBackendTest.php
UTF-8
2,923
2.5625
3
[]
no_license
<?php /** * Copyright (c) Dean Eigenmann 2015 * All rights reserved. */ namespace Ganked\Post\Backends { use Ganked\Library\Helpers\DomHelper; use Ganked\Library\ValueObjects\Email; use PHPMailer; /** * @covers Ganked\Post\Backends\MailBackend * @uses Ganked\Library\ValueObjects\Email ...
true
53a79ff31e3fc30d5a7194edc443ee43a55e4984
PHP
JXZ8/pittclass
/website/internal/php/lib/Logger.php
UTF-8
5,982
3.0625
3
[]
no_license
<?php require_once (__DIR__."/FileManager.php"); require_once (__DIR__."/DirectoryManager.php"); require_once (__DIR__."/DatetimeManager.php"); class Logger { /** * Logger - Logging the output. * * * @author: Jingxuan Zhang <jiz176@pitt.edu> * */ /** * Log files directory. * * @var...
true
cd99c052acba5bf139ba559a9927d87738c9eb80
PHP
Articus/DataTransfer
/src/Articus/DataTransfer/PhpAttribute/Data.php
UTF-8
1,329
2.9375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Articus\DataTransfer\PhpAttribute; use Attribute; /** * PHP attribute for declaring class field that should be hydrated and extracted */ #[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)] class Data { public function __construct( /** * Name of the fie...
true
e480e5e459f2bb8c7bf101533905b9f5abd63fe0
PHP
yamadashy/phpstan-friendly-formatter
/src/CodeHighlighter.php
UTF-8
1,494
2.8125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Yamadashy\PhpStanFriendlyFormatter; use JakubOnderka\PhpConsoleColor\ConsoleColor as OldConsoleColor; use JakubOnderka\PhpConsoleHighlighter\Highlighter as OldHighlighter; use PHP_Parallel_Lint\PhpConsoleColor\ConsoleColor; use PHP_Parallel_Lint\PhpConsoleHighlighter\Highlight...
true
2fe8a4f3c8104800f37a867ff2c5a5e833acb02a
PHP
Andron07/MVC
/app/controllers/Pages.controller.php
UTF-8
661
2.59375
3
[]
no_license
<?php class Pages extends Controller { public function __construct() { $this->postModel = $this->model('Post'); } public function index() { if(isLoggedIn()){ redirect('posts'); } $data = [ 'title' => 'SharedPosts', 'descr...
true
fccd6ca647c52b166d71a424fb1853bed2e36150
PHP
mschop/findologic_php_client
/src/FilterItem.php
UTF-8
853
2.671875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: m.schophaus * Date: 10.03.2016 * Time: 22:31 */ namespace Visitmedia\FindologicClient; interface FilterItem { /** * @return string */ public function getName(); /** * @return float */ public function getWeight(); /** * @retu...
true
bb89515df084c3128c847fb13925e4c35daf985e
PHP
msteudel/swrunloggerparser
/index.php
UTF-8
11,183
2.828125
3
[]
no_license
<?php $tm = [ 'date' => 0, 'dungeon' => 1, 'result' => 2, 'time' => 3, ]; $validDungeons = [ 'Dragon\'s Lair B12', 'Giant\'s Keep B12', 'Necropolis B12', 'Punisher\'s Crypt B10', 'Steel Fortress B10', 'Hall of Magic B10', 'Hall of Dark B10', 'Hall of Water B10', 'Hal...
true
553c63954f30d33342aa31047b1b440e08d82f1d
PHP
TMPALEKS/BN-Dev
/plugins/BNMExtends/Classes/BNMExtendsWidgetChildrenPages.php
UTF-8
4,761
2.78125
3
[]
no_license
<?php /** * Visualizza un combo con i figli di una pagina * * @package BNMExtends * @subpackage BNMExtendsWidgetChildrenPages * @author =undo= <g.fazioli@undolog.com>, <g.fazioli@saidmade.com> * @copyright Copyright (c) 2012 Saidmade Srl. * @link http://www.s...
true
d34cfbe10fe154e04295ec362594fb1bd09078cb
PHP
akshitarora/TU_CMS
/application/views/admin/sendmail.php
UTF-8
2,035
2.59375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php include 'connection.php'; $salt = "thispasswordcannotbehacked"; $pass = hash('sha256', $salt . $_POST['pass']); $query = "select * from registration where roomno='" . $_POST['roomno'] . "'"; $res = mysqli_query($mysqli, $query); if (mysqli_num_rows($res) == 1) { echo "Record deleted"; $row = mysqli_fetch...
true
52a25d256602ef5babd13d7add101d638b39db4c
PHP
Programie/Capture2Net
/webinterface/source/rpc.php
UTF-8
989
2.703125
3
[ "MIT" ]
permissive
<?php require_once "includes/class/RPCHandler.class.php"; // Get input data and check it $input = file_get_contents("php://input"); if (!$input) { header("HTTP/1.1 400 Bad Request"); die("No data received!"); } // Get json data and check it $jsonData = json_decode($input); if (!$jsonData) { header("HTTP/1.1 400 Ba...
true
287ec46ccbd1db79610b19270f40f0170579206f
PHP
pgsill/graveyard
/00 - blogsys/dologin.php
UTF-8
1,161
2.8125
3
[]
no_license
<?php //start session session_start(); //connection stuff goes here: include("./db.php"); DB::connect(); if(isset($_SESSION['login_user'])){ // Checking whether the session is already there or not if header("Location: /blogsys/index.php"); // true then header redirect it to the home page directly } /...
true
422d6fe148e59c683b834ec7fe8f8dbee1ba75ea
PHP
mradhi/property-loader
/src/Context/ExecutionContextInterface.php
UTF-8
2,615
2.53125
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Property Loader package. * * (c) Radhi GUENNICHI <radhi@guennichi.com> (https://www.guennichi.com) * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Guennichi\PropertyLoader\Context; u...
true
3eea7d03e2085154b0eaf86fde11b7803cbdf5e7
PHP
fahmiffa/air-project
/app/Database/Migrations/2021-03-01-092101_tbl_harga.php
UTF-8
947
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Database\Migrations; use CodeIgniter\Database\Migration; class TblHarga extends Migration { public function up() { $this->forge->addField([ 'id' => [ 'type' => 'INT', 'constraint' => 11, 'auto_increment' => true, ], 'price_value' => [ 'type' => 'int', 'constr...
true
17d1a999bead0c658036a36f34851cf380d9d1fa
PHP
Galtavoz/Bodian-Galta
/admin/inserimento.php
UTF-8
4,726
2.546875
3
[]
no_license
<?php include("sopra.php"); $err = array(); $err['count'] = 0; ?> <div class="span9"> <div class="row-fluid center"> <?php switch ($_POST['tipo']) { case 'articolo': if(isset($_POST['immagine'])){ $immagine = $_POST['immagine']; } else { $err['count']++...
true
9e13d0be51b2f498ee5df2a871191bb7628305a4
PHP
buoncri/kimai2
/tests/Controller/Reporting/AbstractUserPeriodControllerTest.php
UTF-8
2,836
2.5625
3
[ "LicenseRef-scancode-free-unknown", "MIT" ]
permissive
<?php /* * This file is part of the Kimai time-tracking app. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace App\Tests\Controller\Reporting; use App\Entity\User; use App\Tests\Controller\ControllerBaseTest; use App\Tests...
true
7131241503f08327170e6ef36669af9157d9df8c
PHP
YUXIN-Z/BBM_database_web_app
/utilities.php
UTF-8
1,581
3.15625
3
[]
no_license
<?php use airmoi\FileMaker\FileMakerException; use airmoi\FileMaker\Object\Record; /** * Checks the value to see if its a valid database. * With wrong databases value a error.php page is shown. * @param string|null $databaseFieldValue * @param bool $includeAll should the 'all' value be included as valid */ funct...
true
9465565badd5ed090e2a9ef1a3ea05017c974a3d
PHP
mattsplat/laravel-table-queries
/src/TableQueryBuilder.php
UTF-8
7,425
2.703125
3
[]
no_license
<?php namespace MattSplat\TableQueries; use Exception; use Illuminate\Database\Eloquent\Builder; use Illuminate\Support\Facades\DB; /** * Class TableQueryBuilder. */ class TableQueryBuilder { /** * @var array */ protected $options; /** * @var array */ protected $relations; ...
true
75f715ec985116df5f4db4beca1a653e1547f8dd
PHP
npesa92/phppdowrapper
/addbuild.php
UTF-8
677
2.703125
3
[]
no_license
<?php include 'database.class.php'; $sch = $_POST["sch"]; $lat = $_POST["lat"]; $lon = $_POST["lon"]; $bldg = $_POST["bldg"]; $db = new Database(); $sql = 'INSERT INTO bldgs VALUES(:sch, :bldg, :lat, :lon)'; $checkbuild = 'SELECT * FROM bldgs WHERE sch = :sch && bldg = :bldg'; $db->beginTransaction(); $db->query(...
true
07d3cf08bbdc4d3402f93749544af239035527ad
PHP
bitweaver/debug
/plugins/debug-command_watch.php
UTF-8
4,170
3.078125
3
[]
no_license
<?php /** * @version $Header$ * * Watch command for debugger * * @author zaufi <zaufi@sendmail.ru> * @package debug * @subpackage plugins */ /** * Initialize */ require_once (DEBUG_PKG_PATH.'plugins/debugger-ext.php'); /** * Command 'watch' * @package debug */ class DbgCmd_Watch extends DebuggerCommand...
true
c1dd5b6605a14e4687c9db8871256a7563c8e4bf
PHP
Hoodieo/sisfo_smkn01
/partials/import.php
UTF-8
3,197
2.625
3
[]
no_license
<?php require_once '../includes/functions.php'; error_reporting(0); $berhasil = 0; $numrow = 0; if(isset($_POST['import'])){ // Jika user mengklik tombol Import $nama_file_baru = 'dataNilai.xlsx'; // Load librari PHPExcel nya require_once '../plugins/PHPExcel/PHPExcel.php'; $excelreader = new PHPExcel_Reader_Ex...
true
4a7a324e8ce41221a02cd8eb4154b43f46ccc2dd
PHP
lamfete/todoboard
/database/seeds/UsersTableSeeder.php
UTF-8
755
2.59375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\User as User; class UsersTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('users')->delete(); $users = array( ['name' => 'Agust Lofianto', 'email' => ...
true
0006cd1f30e24967a06b080979da19b16c79d30d
PHP
tjin34/PrimeTime
/InstagramScraper/examples/getMediaComments.php
UTF-8
2,669
2.59375
3
[]
no_license
<?php /** * @SWG\GET( * path="/getMediaComments.php", * tags={"Account"}, * summary="", * description="", * @SWG\Parameter( * name="username", * in="query", * description="username", * required=true, * type="string", * ), * @SWG\Parameter(...
true