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
a379209e710012bf86173a06600610df0dd462ec
PHP
ruffen/Pixcel-CMS
/classes/modulelist.class.php
UTF-8
2,924
2.53125
3
[]
no_license
<?php class ModuleList extends Listmaker{ private $modules; private $controller; public function __construct($modules, $controller, $vars=array(), $listVars = array(), $parent = 0, $multi = true, $xml = false){ $this->modules = $modules; $this->controller = $controller; parent::__construct($vars, $listVars, $p...
true
d9a329e8c2ed38568d5cc4607a022d1cdceac634
PHP
gav26512/testapi
/sed/models/StatusCode.php
UTF-8
702
2.75
3
[]
no_license
<?php namespace api\modules\sed\models; use yii\web\HttpException; /** * Коды статусов */ class StatusCode { public const INVALIDATE_PARAMETERS = 10; /** * @param $message * * @return HttpException */ public static function invalidateParameters($message): HttpException { ...
true
065a8959da9f74ad20a4bf0c33583efa1d9d462d
PHP
guil95/Occupation
/src/Occupations/OccupationsFactory.php
UTF-8
649
2.828125
3
[]
no_license
<?php namespace App\Occupations; use App\SalaryCalculation\FifteenOrTwentyFivePercent; use App\SalaryCalculation\TenOrTwentyPercent; use App\SalaryCalculation\TwentyOrTwentyFivePercent; class OccupationsFactory { public static function getOccupation(string $occupation): Occupation { switch ($occupation...
true
078088b45d86ad3b0f0f60c58853edf31a5ea363
PHP
JavaMoose/School_Projects
/Web Prog - Final Project/register/process_registration.php
UTF-8
1,243
2.59375
3
[]
no_license
<?php require_once("../_includes/config.php"); $firstname = $_POST["firstname"]; $lastname = $_POST["lastname"]; $email = $_POST["email"]; $username = $_POST["username"]; $password = $_POST["password"]; $crypted_password = crypt($password, "21500"); $dsn = DB_SOURCE; $DBusername = DB_USER; $DBpa...
true
2946ff3aa390bc42433708792d6b61e520c3e583
PHP
svetl111/PandaLove
/Onyx/Fortnite/Objects/Stats.php
UTF-8
3,409
2.5625
3
[ "MIT" ]
permissive
<?php namespace Onyx\Fortnite\Objects; use Carbon\Carbon; use Illuminate\Database\Eloquent\Model; use Onyx\Account; use Onyx\User; /** * Class Stats. * * @property int $id * @property string $epic_id * @property int $account_id * @property int $user_id * @property int $solo_kills * @property int $solo_matche...
true
c63d726f196814c39c7b43230b05aec1aa171f5e
PHP
TimTimTstuff/RoundBasedPHPRpg
/lib/user/Context.php
UTF-8
4,016
2.59375
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of Context * * @author omitk */ class Context { /** @var User */ public $userData; /** @var Sess...
true
8f0cf7fe0d71c22c5e77f0536ce8c525ffe24dd1
PHP
jkapuscik2/design-patterns-php
/src/Creational/Prototype/demo.php
UTF-8
374
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Creational\Prototype; require(__DIR__ . '/../../../vendor/autoload.php'); $greenGroup = new DeviceGroup("Green", "Warsaw"); $computer = new Computer($greenGroup); $uuids = [ "aaa", "bbb", "ccc", "ddd", "eee", "fff", "ggg" ]; foreach ($uuids as $uid) { $device = c...
true
521a4c8b6f0102c5e488b21ff5b9516d543ba262
PHP
fil-blue/avcms
/src/AVCMS/Bundles/FacebookConnect/Facebook/SymfonySession.php
UTF-8
1,016
2.6875
3
[ "MIT" ]
permissive
<?php /** * User: Andy * Date: 20/09/15 * Time: 14:35 */ namespace AVCMS\Bundles\FacebookConnect\Facebook; use Facebook\PersistentData\PersistentDataInterface; use Symfony\Component\HttpFoundation\Session\Session; use Symfony\Component\HttpFoundation\Session\SessionInterface; class SymfonySession implements Pers...
true
c418d9945bd66a02e6f0a8f52106b2ee1e9107fa
PHP
gbuckingham89/forest
/src/AdminBarManager.php
UTF-8
1,947
2.921875
3
[ "MIT" ]
permissive
<?php namespace Gbuckingham89\Forest; /** * Class AdminBarManager * @package Gbuckingham89\Forest */ class AdminBarManager { /** * @var array */ protected $nodes_to_remove = []; /** * AdminBarManager constructor. */ public function __construct() { // Register action to setup the admin bar add_acti...
true
0be757f822054d1890f92417ac0de1871d3e61b8
PHP
stepanm/www
/WURFL/examples/show_capabilities.php
UTF-8
1,091
2.984375
3
[]
no_license
<?php /** * WURFL Cloud Client - Simple example using MyWurfl * @package WurflCloud_Client * @subpackage Examples * * This example uses the included MyWurfl class to get device capabilities. * If you prefer to use the WURFL Cloud Client directly, see show_capabilities.php * * For this example to work properly...
true
50de2a8a1ebaf4585743b8f005ec079b2b11b855
PHP
royopa/sicin
/src/Royopa/SicinBundle/Entity/InstituicaoFinanceira.php
UTF-8
2,981
2.578125
3
[]
no_license
<?php namespace Royopa\SicinBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * InstituicaoFinanceira * * @ORM\Table(name="IF") * @ORM\Entity */ class InstituicaoFinanceira { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AU...
true
9c27b21ac91ed3f797a3f1cc943bccb9c75ab739
PHP
sechiro/php-helpers
/src/sample/helper-sample.php
UTF-8
3,640
2.796875
3
[ "Apache-2.0" ]
permissive
<?php require_once '../helper/validation_helper.php'; //指定されている場合は、必ず半角英数字に変換する define('DEFAULT_CONVERT_ALNUM', false); $whitelists = [ ['id', ['required', 'not_null', 'is_number', '/.*/'] ], ['code', ['required', 'not_null', 'is_alnum', '/.*/'] ], ['tel', ['not_null', 'is_telnum'], 'convert_alnum'], ]; ...
true
0f838f62abe0f681e193465ab2f51a20916e1bb5
PHP
craw-daddy/TweetParade
/Collector/db.php
UTF-8
4,455
2.765625
3
[]
no_license
<?php class db { public $dbh; // Create a database connection for use by all functions in this class function __construct($project_name) { require_once('/var/www/html/tweetParade/config2.php'); if($this->dbh = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, $project_name)) { // ...
true
10175246ae2867c24f8336e34177de06fe4609be
PHP
lismansihotang/hrms-yii2
/views/log-absensi/view-absensi.php
UTF-8
1,519
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\helpers\Html; ?> <div class="panel panel-info"> <div class="panel-heading"> <?php echo Html::a( 'Print', '#', ['class' => 'btn btn-primary', 'encodeLabels' => false] ); ?> </div> <div class="panel-body"> <table class="table ta...
true
20d947bdf245a6ce2695290af82a9873e4617f0c
PHP
lakshmaji/exceptions
/src/GenericException.php
UTF-8
1,524
3.046875
3
[ "MIT" ]
permissive
<?php namespace Lakshmaji\Exceptions; use Exception; use Illuminate\Support\Facades\Lang; // interface MyPackageThrowable extends \Throwable {} /** * ----------------------------------------------------------------------------- * GenericException for handling exceptions * --------------------------------------...
true
3c3efe6e8684cb41c10d23807580899e13e9412f
PHP
ircmaxell/PHPTest
/src/PHPTest/TestClass.php
UTF-8
1,739
2.578125
3
[]
no_license
<?php namespace PHPTest; class TestClass extends TestBase implements Core\Test { public function __construct() { $reflector = new \ReflectionObject($this); foreach ($reflector->getMethods(\ReflectionMethod::IS_PUBLIC) as $method) { if (stripos($method->getName(), 'test') === 0) { ...
true
d49190ea5a366258aa2a8e56ea8f2a54e6cef3e1
PHP
Akhtan81/rhci-web
/admin/tests/Classes/CategoryCreator.php
UTF-8
933
2.59375
3
[]
no_license
<?php namespace App\Tests\Classes; use App\Entity\CategoryType; use App\Service\CategoryService; use Symfony\Component\DependencyInjection\ContainerInterface; trait CategoryCreator { /** * @param ContainerInterface $container * @param null $type * @return \App\Entity\Category * @throws \Exce...
true
6c0a6d488a65405af7b6d4acdfd5008b7980ef24
PHP
pacethemes/quest
/inc/customizer/custom-controls/multiple-checkbox-control.php
UTF-8
1,550
2.9375
3
[ "CC0-1.0" ]
permissive
<?php /** * @package Quest */ /** * Multiple checkbox customize control class. * Original code by Justin Tadlock - http://justintadlock.com/archives/2015/05/26/multiple-checkbox-customizer-control * * @since 1.1.7 * @access public */ class Quest_Customize_Control_Checkbox_Multiple extends WP_Customize_Control...
true
2910ae85e6f3f9fde71ecdcad42251a6bcd1b195
PHP
RemiAndre44/MoonJack_easy_admin
/src/Entity/Article.php
UTF-8
4,217
2.515625
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\HttpFoundation\File\File; use Vich\UploaderBundle\Mapping\Annotation as Vich; /** * @O...
true
2b11c5a9a798ec72b5bbab47f299ef59fb6e8471
PHP
akritibhat/PHP-Testing-Starter
/src/DependsMock/Products.php
UTF-8
1,394
3.265625
3
[ "MIT", "LicenseRef-scancode-dco-1.1" ]
permissive
<?php namespace Examples\DependsMock; /** * Class Products * @package Examples\DependsMock * * <code> * $productFactory = new ProductFactory(); * $products = new Products($productFactory); * $products->addProducts(array()); * </code> */ class Products { private $productFactory; /** * @var...
true
5efac5fd2d02075861e392bc76873155e7686d4a
PHP
CCcyril/PtutProject
/src/CGG/ConferenceBundle/Entity/CommentImage.php
UTF-8
683
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: user01 * Date: 03/04/15 * Time: 18:21 */ namespace CGG\ConferenceBundle\Entity; class CommentImage { private $id; private $comment; private $image_id; public function getId() { return $this->id; } public function setId($id) { ...
true
cf9bdbe9141448735c292a04c1a8759ef4600f4c
PHP
bhavykhatri/Software-Development-Projects
/hospital-management-system/admin/delete_user.php
UTF-8
1,509
2.59375
3
[]
no_license
<?php //all error showing error_reporting(E_ALL); ini_set('display_startup_errors', 1); ini_set('display_errors', 1); //adding configuration file require_once(__DIR__.'/../admin_config.php'); require_once(__DIR__.'/../utils.php'); //connecting to mysql $conn = new mysqli($hn, $un, $pw, $db); if (...
true
8c2bd8ac6be449c6aace89711faa0c014ebd7d92
PHP
ShadKobimbo/the-races
/app/Http/Controllers/OddsController.php
UTF-8
2,763
2.84375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Arr; use Illuminate\Support\Collection; use App\Models\Race; use App\Models\Horse; class OddsController extends Controller { public function index() { return view('pages.odds'); } public function check...
true
63577b74928a27d9848e1f649eaefe955631b2a4
PHP
babak-sabri/cload-monitoring
/database/migrations/2020_08_03_060402_create_user_inventories_table.php
UTF-8
867
2.59375
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateUserInventoriesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('user_in...
true
8a00cbaa9c96a8effe8e60ccc33bdd494b6f6433
PHP
istheweb/iscorporate
/formwidgets/IssueToolbar.php
UTF-8
1,018
2.546875
3
[]
no_license
<?php namespace Istheweb\IsCorporate\FormWidgets; use Backend\Classes\FormWidgetBase; use Istheweb\IsCorporate\Models\IssueStatus; /** * IssueToolbar Form Widget */ class IssueToolbar extends FormWidgetBase { /** * {@inheritDoc} */ protected $defaultAlias = 'istheweb_iscorporate_issue_toolbar'; ...
true
e80542301e9720d48fb06ea82d8235eb55f591e1
PHP
tweichart/ScaleManager
/src/Query.php
UTF-8
1,560
2.984375
3
[ "MIT" ]
permissive
<?php /** * Part of the InterNetX ScaleManager * * @copyright Copyright (C) 2017 InterNetX GmbH. All rights reserved. * @license MIT license; see LICENSE */ namespace IX\ScaleManager; /** * Class Query */ class Query { /** * The instance ID * * @var string */ private $instance; /** * The metr...
true
4b7949162bf4f1ea7852bf98871f682d06f22a2d
PHP
blendisnl/translationio
/src/SourcePOGenerator.php
UTF-8
976
2.640625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Tio\Laravel; use Gettext\Generators\Po; use Gettext\Translation; use Gettext\Translations; use Illuminate\Contracts\Foundation\Application; use Illuminate\Support\Collection; class SourcePOGenerator { /** * @var Application */ private $application; /** * @var TranslationExt...
true
fbe2f9ff0f744823b9a06e02fe6fa0ebb5713390
PHP
ekyna/SettingBundle
/Manager/SettingsManagerInterface.php
UTF-8
1,293
2.546875
3
[ "MIT" ]
permissive
<?php namespace Ekyna\Bundle\SettingBundle\Manager; use Ekyna\Bundle\SettingBundle\Model\Settings; /** * SettingsManagerInterface * * @author Paweł Jędrzejewski <pjedrzejewski@diweb.pl> * @see https://github.com/Sylius/SyliusSettingsBundle/blob/master/Manager/SettingsManagerInterface.php */ interface SettingsMa...
true
327dbf9435fcf80bb2e27627d08a0759d8baa296
PHP
rpangz/hris2_new
/includes/calender/admin/bca.php
UTF-8
855
2.53125
3
[]
no_license
<?php function bacaHTML($url){ // inisialisasi CURL $data = curl_init(); // setting CURL curl_setopt($data, CURLOPT_RETURNTRANSFER, 1); curl_setopt($data, CURLOPT_URL, $url); // menjalankan CURL untuk membaca isi file $hasil = curl_exec($data); curl_close($data); return $ha...
true
d9dd584fd872c228da8a500a4f76f83a5e9f6974
PHP
dybaoqee/jobster
/src/backend/rpc/student/messgeUpdate.php
UTF-8
1,613
2.765625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: hp * Date: 2018/4/15 * Time: 16:54 */ //the parameters that used for connecting to database. $servername = "localhost"; $dbusername = "root"; $password = "root"; $dbname = "jobster"; //create new connection and check if it is connected successfully. $conn = new mysqli($se...
true
919d8ac17d3db54aa760d346ec3a2e4b6931cdfb
PHP
Christoffer2019/ramverk
/src/Model/RandomIPModel.php
UTF-8
1,607
3.71875
4
[]
no_license
<?php namespace chly19\Model; /** * Model for creating random ipv4 and ipv6. */ class RandomIPModel { /** * Get random IP as an array. * * @return array Random IP */ public function getRandomIP() { return [ $this->getRandomIPv4(), $this->getRandomIPv6...
true
5ac14776ffd37507f3d3fa256ef9529e74a9baf3
PHP
phalcon/ide-stubs
/src/Html/Helper/Input/AbstractInput.php
UTF-8
1,215
2.90625
3
[ "BSD-3-Clause" ]
permissive
<?php /* This file is part of the Phalcon Framework. * * (c) Phalcon Team <team@phalcon.io> * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ namespace Phalcon\Html\Helper\Input; use Phalcon\Html\Helper\AbstractHelper; /** * C...
true
8a6a5a3657014bef7034018be14a4afbd9560578
PHP
banksbestrates/BankFx
/news/wp-content/plugins/wordpress-seo/src/deprecated/admin/google-search-console/class-gsc-issue.php
UTF-8
918
2.65625
3
[ "GPL-3.0-only", "GPL-1.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-other-copyleft", "GPL-2.0-or-later", "GPL-2.0-only", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /** * WPSEO plugin file. * * @package WPSEO\Admin\Google_Search_Console */ /** * Class WPSEO_GSC_Issue. * * @deprecated 12.5 * * @codeCoverageIgnore */ class WPSEO_GSC_Issue { /** * Search Console issue class constructor. * * @deprecated 12.5 * * @codeCoverageIgnore * * @param string ...
true
6486726d23e117d06624a4ac7b6f0c97267546af
PHP
meadsteve/DiceApi
/spec/UrlDiceGeneratorSpec.php
UTF-8
1,888
2.828125
3
[ "MIT" ]
permissive
<?php namespace spec\MeadSteve\DiceApi; use MeadSteve\DiceApi\Dice\BasicDice; use MeadSteve\DiceApi\Dice; use MeadSteve\DiceApi\Dice\Factories\DiceFactory; use PhpSpec\ObjectBehavior; use Prophecy\Argument; class UrlDiceGeneratorSpec extends ObjectBehavior { function let(DiceFactory $diceFactory) { $...
true
6893c21f38ed9269d8c9484ae3259161d140b5fe
PHP
GiovanniTorres/Cielo
/models/ArticuloModel.php
UTF-8
434
2.65625
3
[]
no_license
<?php require ("Connection.php") ; class ArticuloModel extends Connection { public function get ($articulo = "") { $this->query = ($articulo != "") ? "SELECT * FROM articulos WHERE ar_nombre = '$articulo'" : "SELECT * FROM articulos" ; $this->get_query () ; foreach ($this->rows as $key => $v...
true
ef338717309850439c938499055e1303cf80d895
PHP
drupalprojects/xautoload
/tests/Drupal/xautoload/Tests/StreamWrapper.php
UTF-8
2,779
2.953125
3
[]
no_license
<?php namespace Drupal\xautoload\Tests; /** * Intercept calls to the filesystem, so we don't have to create fixture files. */ class StreamWrapper { // Static / Constructor // --------------------------------------------------------------------------- ...
true
5f3f9de75326e3e9d53a8d01c27b71a70400710a
PHP
VladimirDronik/valute
/library/ValuteClass.php
UTF-8
2,067
3.046875
3
[]
no_license
<?php /** * Класс содержит функции получения курса валют с ресурсов, содержащихся в valute_resources.txt */ class ValuteClass { public $valute=''; /* Читаем файл с ресурсами построчно */ static private function read_str(){ $handle = @fopen(Config::get('projectconf.options.file_of_valute_res...
true
45a4b2b1118b2435111ceaf5cb5f426455cacc40
PHP
FrenchMajesty/Rate-my-Professor-Vue
/app/Traits/Filters/ProfessorQueryFilters.php
UTF-8
706
2.9375
3
[]
no_license
<?php namespace App\Traits\Filters; use Illuminate\Database\Eloquent\Builder; trait ProfessorQueryFilters { /** * Filter out the query professor by school * @param Builder $query Query Builder * @param string $method Sorting method to use (where, whereIn) * @param string $clauseOper...
true
4c5ce713929238d4f28127cf8560a5b038c7abc3
PHP
ahsan90/hospital_management
/app/models/Nurse.php
UTF-8
1,775
2.765625
3
[]
no_license
<?php use Illuminate\Database\Eloquent\Model; class Nurse extends Model { protected $table = 'nurses'; protected $guarded = []; // public function user(){ // return $this->hasOne(User::class); // } private function saveNurseInfo($role_id, $user_id, $name, $gender, $phone, $email, $address){ ...
true
cce84e721fc72352aafc5307983518017672c053
PHP
devbackend/authgram
/app/Console/Commands/Telegram/AddApplicationCommand.php
UTF-8
1,041
2.84375
3
[]
no_license
<?php namespace App\Console\Commands\Telegram; use App\Entities\Application; /** * Добавление приложения. * * @author Кривонос Иван <devbackend@yandex.ru> */ class AddApplicationCommand extends TelegramCommand { /** @var string Название команды */ protected $name = 'add'; /** @var string Описание команды */ ...
true
11bf27bc819ecfd0a4d0466b40b6e1ddaa712541
PHP
abdul8395/spacetech_laravel
/public/map/services/shpgjson.php
UTF-8
1,799
2.5625
3
[ "MIT" ]
permissive
<?php include("connection1.php"); // Reading shape file // Register autoloader require_once('./lib/php-shapefile/src/Shapefile/ShapefileAutoloader.php'); Shapefile\ShapefileAutoloader::register(); // Import classes use Shapefile\Shapefile; use Shapefil...
true
8521d26e92fdd9364aaccabf859b6d7e32de256d
PHP
gegavat/yii2-test
/backend/controllers/AppleController.php
UTF-8
2,448
2.59375
3
[]
no_license
<?php namespace backend\controllers; use Yii; use yii\web\Controller; use app\models\Apple; class AppleController extends Controller { public function actionGenerate($color) { if ( !Yii::$app->request->isAjax ) exit; $apple = new Apple(); $apple->color = $color; $apple->save(); ...
true
afcf9446ff870255aab09504feb05264584d7b48
PHP
Nanok09/tousseAntiCovid
/Tests/testMedecin/testDeroulant.php
UTF-8
2,403
2.9375
3
[]
no_license
<?php if(isset($_POST['search'])) { $valueToSearch = $_POST['valueToSearch']; // search in all table columns // using concat mysql function $query = "SELECT * FROM `users` WHERE CONCAT(`id`, `nom`, `prenom`, `age`) LIKE '%".$valueToSearch."%'"; $search_result = filterTable($query); } else { ...
true
40dab50d8afd134743f8ab803f031cc3d31128d7
PHP
NSC-AD-BAS/Prism_V2
/php/students/delete_confirmation.php
UTF-8
1,005
2.671875
3
[]
no_license
<?php // require statements require "../login/validate_session.php"; require '../db/query_db.php'; require "../render/page_builder.php"; // get data from query to identify the proper record $studentId = $_GET["id"]; $student = get_single_student($studentId); $isDeleted = $student["isDeleted"]; $stud...
true
28281de73567011b1ed08e72f830081ac27c092a
PHP
huseynceferov/golf
/app/Modules/panadmin/Models/ClubsModel.php
UTF-8
1,140
2.546875
3
[]
no_license
<?php namespace Modules\panadmin\Models; use Core\Model; use Models\LanguagesModel; class ClubsModel extends Model{ public static $tableName = 'clubs'; public static $fields = [ [ "field_name" => "title", "field_type" => "VARCHAR (255)" ],[ "field_name"...
true
adf751bc0ce29356847932c11dcf370c09c1be9a
PHP
COUNTERKILL/zone
/www/models/model_zone.php
WINDOWS-1251
6,690
2.78125
3
[]
no_license
<?php // Class Model_zone{ public function GetLocations($Player) { global $SQLobj; $loc=$Player->GetParam('location'); $q = $SQLobj->Query('SELECT * FROM `ways` WHERE `loc_from`='.$loc.' or `loc_to`='.$loc); if(mysql_num_rows($q)==0) return 0; $i = 0; while($a = mysql_fetch_assoc($q)) { $loc_to = ...
true
6da8c7e8b6c0029cd12cb6ffa6ab42ce1f03b567
PHP
clowthsnow/CunaUnsa
/buscar.php
UTF-8
1,756
2.546875
3
[]
no_license
<?php include 'conexion.php'; $salida = ""; $query = "SELECT * FROM contabilidad WHERE ContabilidadAlumno NOT LIKE '' ORDER By ContabilidadId LIMIT 25"; if (isset($_POST['consulta'])) { $q = $conexion->real_escape_string($_POST['consulta']); $query = "SELECT * FROM contabilidad WHERE ...
true
b2bbaaaa1c9020117bee650811fbc5605e3df792
PHP
knnthcrtl1/project-monitoring
/admin/tables/partial_engineer_tables.php
UTF-8
1,314
2.734375
3
[]
no_license
<?php include('../connection.php'); $sql = "SELECT * FROM tbl_engineers"; $result = mysqli_query($conn, $sql); if (mysqli_num_rows($result) != 0){ while($row = mysqli_fetch_assoc($result)) { ?> <tr> <td><?php echo $row['engineer_id'] ?></td> <td><?p...
true
443da057b2ca0cb078067b64acbda002459d393d
PHP
raminv80/SignalTraiangulation-codeChallenge
/App/Coordinate.php
UTF-8
1,022
3.5
4
[]
no_license
<?php namespace App; require_once 'App/Geometry.php'; class Coordinate extends Geometry{ public $x, $y; public function __construct($x, $y) { $this->x = round($x, PRECISION); $this->y = round($y, PRECISION); } /** * Returns true if two coordinates are the same * @param Coor...
true
5cf9c693c9028af715e1c0470654ab43b1d6c407
PHP
chumby07/angularProductosBackend
/empleados.php
UTF-8
2,470
2.640625
3
[]
no_license
<?php require_once 'Config.php'; require_once 'conexion.php'; header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Headers: *'); if(isset($_GET['empleados'])){ listarEmpleados(); }elseif(isset($_GET['regEmpleados']) and $_SERVER['REQUEST_METHOD'] != 'OPTIONS'){ $datos = file_get_contents('p...
true
657fd1bb3fc7d74ecdb30eb8f68604cfd8b18a54
PHP
CloCkWeRX/google-books-php-lib
/src/CGM/Books/Metadata/AbstractClient.php
UTF-8
1,257
3.078125
3
[ "MIT" ]
permissive
<?php namespace CGM\Books\Metadata; /** * Implements common client functionality */ abstract class AbstractClient implements Client { /** * @var Service */ private $service; /** * @var Parser */ private $parser; /** * Creates a new instance of this class *...
true
d52cf301a2a9842f39e0bb4f416ed42f3a6e34d8
PHP
joaovpedroso/lancheSistema
/admin/excluirProduto.php
UTF-8
1,235
2.625
3
[]
no_license
<?php include "menu.php"; $id = ""; if (isset($_GET['id'])) { $id = trim($_GET['id']); } $sqlProduto = "SELECT * FROM produto WHERE id = ? LIMIT 1"; $consultaProduto = $pdo->prepare($sqlProduto); $consultaProduto->bindParam(1, $id); $consultaProduto->execute(); if (!empty($dados = $consultaProduto->fetch(PDO::F...
true
895d4fd6980f41d6ab8928f0f160d1313603971f
PHP
mikhailsmelik/Book-Management-System
/show_students.php
UTF-8
4,177
2.53125
3
[]
no_license
<?php session_save_path('/webpages/msmelik/sessions'); ini_set('session.gc_probability',1); session_start(); #Checks if you're logged in, if so, displays webpage if (isset($_SESSION['user']) && (strcmp($_SESSION['type'], 'Admin')==0 || strcmp($_SESSION['type'], 'Teacher')==0)) { echo ' <html> ...
true
204bf5e7f34d8ce4d47d5a8563639e6176632845
PHP
OpenTransfr/Core
/Implementations/Services/Root/private/Pages/v1/commodity/update/index.php
UTF-8
2,455
2.671875
3
[ "MIT" ]
permissive
<?php // Commodity update API. Must be signed by the current issuer. // Receives a JWS: postedTo(); // Get the tag: $tag=safe('tag',VALID_DOMAIN); // Get the commodity: $commodity=$dz->get_row('select ID,Issuer from `Root.Commodities` where Tag="'.$tag.'"'); // Does it exist? if(!$commodity){ // Commodity was n...
true
d7434c1a28ee6c55ea114834b084e0c4883c5d18
PHP
ttungbmt/YII_NEW
/projects/drought/models/ActivityLog.php
UTF-8
1,604
2.625
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "activity_log". * * @property int $id * @property string|null $log_name * @property string $description * @property int|null $subject_id * @property string|null $subject_type * @property int|null $causer_id * @property string|null ...
true
eeb37552c6557d833772fc25aa79fd0c134f7798
PHP
itmaster921/FBChatBot-Laravel
/common/Services/AuthService.php
UTF-8
2,857
2.90625
3
[]
no_license
<?php namespace Common\Services; use Common\Models\User; use GuzzleHttp\Exception\ClientException; use Common\Services\Facebook\Auth as FacebookAuthService; use Symfony\Component\HttpKernel\Exception\BadRequestHttpException; class AuthService { /** * @type FacebookAuthService */ private $FacebookAu...
true
17a36b7faac67a645abe60442b996cd5ddbf819e
PHP
gandro/yafu4
/includes/string.php
UTF-8
2,579
2.78125
3
[]
no_license
<?php function string_to_unicode($string) { if(string_is_utf8($string)) { $string = utf8_encode($string); } return $string; } function string_to_html($string) { return htmlspecialchars($string, ENT_QUOTES, 'UTF-8', false); } function string_is_utf8($string) { /* see http://www.php.net/man...
true
5dc8a4f2fd342d819767712407a10ebf230b1f1c
PHP
CualquieraEquisDe/ProyectoWeb
/Plataforma/puntajes.php
UTF-8
2,080
2.671875
3
[]
no_license
<?php //session_start(); if(isset($_SESSION["session_username"])) {?> <p><a href="cerrarsesion.php">Finalice</a> sesión aquí!</p> <?php } ?> <?php include("includes/encabezado.php"); ?> <?php include("includes/conexion.php"); ?> <br><br><br> <center> <img src="imagenes/trophy.png" alt = "trophy"> ...
true
51c932820af01884863bfceadd6770e65a569d43
PHP
Fendercaster/demo-api
/src/Entity/User.php
UTF-8
1,216
2.59375
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\UserRepository") */ class User { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=50) ...
true
14265f33238799be3c99381f65e204723b80a0e7
PHP
MonsieurGourmand/chronopost
/src/Request/Shipping/Customer.php
UTF-8
1,976
2.875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: remi * Date: 3/20/17 * Time: 10:01 AM */ namespace Chronopost\Request\Shipping; use Chronopost\Request\Contact; class Customer { /** * @var Contact */ protected $contact; protected $customerCivility = null; protected $customerContactName = nul...
true
b387b60a723241ea8c93cdbdfac0009b86a76e52
PHP
Josiel-Faleiros/blog-laravel
/app/Http/Controllers/ArticlesController.php
UTF-8
4,382
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Articles; use App\ArticlesComments; use App\Categories; use App\Tags; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\App; use Illuminate\Support\Facades\Auth; class ArticlesController extends Contr...
true
c7d5dafcee3fe535bebbf88ea48a050ebed1894b
PHP
tatarko/presto
/source/Template.php
UTF-8
6,996
2.796875
3
[ "MIT" ]
permissive
<?php namespace tatarko\presto; /** * Presto Template engine * @author Tomas Tatarko <tomas@tatarko.sk> * @link https://github.com/tatarko/OpinerCMS * @license http://choosealicense.com/licenses/mit/ The MIT License * @copyright Copyright &copy; 2012-2013 Tomas Tatarko * @since 1.7 * @property-read string $tit...
true
12a107904c891f803a44857966d76b0d6c308cc5
PHP
t1raven/art1
/lib/class/bookmark/bookmark.class.php
UTF-8
3,957
2.859375
3
[]
no_license
<?php class BookMark { var $attr; function __construct() { $this->attr = array(); } function __destruct() { $this->attr = null; unset($this->attr); if (gc_enabled()) gc_collect_cycles(); } function setAttr($key, $value){ $this->attr[$key] = $value; //echo "<br>set:$key:".gettype($value); //echo "...
true
10f8876487c7ca1f76922cca131881e66ecaa697
PHP
FTM-group/API
/Model/Email.php
UTF-8
1,794
2.53125
3
[]
no_license
<?php class Email{ function sendEmail($email, $type){ //serveur ovh tout a revoir $to = $email; $from = "contact@book-kevin-guillier.com"; // adresse MAIL OVH liée à l'hébergement. $Subject = "Support FindTeamMates"; $mail_Data = '<p>Bonjour</p>'; $headers...
true
8c3509fb7f1d36b6f1fb84b24de10f76d2a58e31
PHP
mr-madjarov/students-manager
/application/controllers/activitycontroller.php
UTF-8
1,037
2.734375
3
[]
no_license
<?php /** * Project: students-manager * User: mrmad * Date: 10.1.2016 г. * Time: 22:30 */ class ActivityController extends Controller { function beforeAction() { } function add() { $model = new Activity(); if (isset($_POST['activity']) and $_POST['activity']['name'] != '' an...
true
ac0304fed298e150b109833e62e7dec7748d66c7
PHP
2250918808/intelfight
/components/battle/action/Manager.php
UTF-8
2,953
2.875
3
[]
no_license
<?php namespace app\components\battle\action; use app\components\battle\ParticipantState; use yii\base\Component; use app\components\battle\action\Action; use yii\base\Exception; /** * Battle actions manager. * * @package app\components\battle\action */ class Manager extends Component { /** * @var string defa...
true
4ddfe9c3b741ed88e637412ac870331c66e3148f
PHP
Brenda-Ramos99/sis16Sem8
/Ej7/index.php
UTF-8
873
2.953125
3
[]
no_license
<html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <form action="#" method="POST"> <label>¿El aumento de cuantos empleados desea calcular? </label><br> <input type="text" name="n"><br><br> <input type="submit" name="b1"><br><br> </form...
true
e403f0459ce7ac1fb33136e85543664082e79147
PHP
Rima96/RecSystem
/search.php
UTF-8
1,387
2.765625
3
[]
no_license
<?php session_start(); $servername = "localhost"; $username = "root"; $password = ""; $dbname = "test"; $conn = new PDO('mysql:host=127.0.0.1;dbname=test','root',''); // Check connection if (!$conn) { die("Connection failed: " . $conn->connect_error); } else { $search = $_GET['q']; $searche = explode(" ", $search...
true
e60d8288da101be40dd36cb27505574ef04ba96e
PHP
Nightfall1988/currency-converter
/app/Services/Currencies/Show/ShowCurrencyRequest.php
UTF-8
282
2.859375
3
[ "MIT" ]
permissive
<?php namespace App\Services\Currencies\Show; class ShowCurrencyRequest { private string $symbol; public function __construct(string $symbol) { $this->symbol = $symbol; } public function symbol() { return $this->symbol; } } ?>
true
fa14dea1494e55c80fb95a379387595350871572
PHP
Sue0115/honto
/default/models/suppliers/suppliers_model.php
UTF-8
2,809
2.515625
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * * 用户组管理模型类 */ class Suppliers_model extends MY_Model { /** * 构造函数 * * @access public * @return void */ public function __construct() { parent::__construct(); } public...
true
04b9641975b1bd1b544de4827bf9435c24702df3
PHP
godedok/workWithDatabase
/public/classes/musician.php
UTF-8
5,386
3.296875
3
[]
no_license
<?php require_once "connect.php"; /** * Class for working with the database */ class Musician extends Connect { public $id; public $firstName; public $lastName; public $gender; public $yearOfBirth; public $genre; public $group; public function __construct($POST) { /** ...
true
20652b45c08dd43707149c022e25221e22ede1c8
PHP
Yoggy52/YetAnotherBrowserGame
/apps/frontend/modules/index/actions/actions.class.php
UTF-8
5,357
2.75
3
[ "MIT" ]
permissive
<?php /** * index actions. * * @package alpha * @subpackage index * @author Your name here * @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ class indexActions extends sfActions { /** * Executes index action * * @param sfRequest $request A request object */...
true
2d31f399ec17b54fe521d6e9f47035bb81ba8b52
PHP
DaniloTerra/wallet
/src/Adapter/AuthorizerAdapter.php
UTF-8
959
2.53125
3
[]
no_license
<?php declare(strict_types=1); namespace Wallet\Adapter; use GuzzleHttp\Client as HttpClient; use Wallet\Model\Authorizer; use Wallet\Model\TransferNotAuthorizedException; final class AuthorizerAdapter implements Authorizer { private const AUTHORIZER_URL = 'https://run.mocky.io/v3/8fafdd68-a090-496f-8c9a-3442cf...
true
22d34f02c03b10b8176656abbcfcf0e85517f33d
PHP
LogentriesCommunity/logentries-monolog-handler
/src/Logentries/Socket.php
UTF-8
2,234
3.125
3
[]
no_license
<?php namespace Logentries; class Socket { private $url; private $port; private $connectionTimeout; private $resource; private $errno; private $errstr; public function __construct($url, $port) { $this->url = $url; $this->port = $port; $this->connectionTimeout = (float) ini_get('default_socket_timeout');...
true
1e4e620783a17f11f34aaf60957c65aa159ac2c3
PHP
IBVPD/Nuvi
/src/NS/ImportBundle/Converter/DateTimeValueConverter.php
UTF-8
1,717
2.765625
3
[ "MIT" ]
permissive
<?php namespace NS\ImportBundle\Converter; use DateTime; use Ddeboer\DataImport\ValueConverter\DateTimeValueConverter as BaseDateTimeValueConverter; /** * Description of DataeTimeValueConverter * * @author gnat */ class DateTimeValueConverter extends BaseDateTimeValueConverter implements NamedValueConverterInter...
true
5eed8e0ba421604f5850a3886684f7c5e515c495
PHP
shuff1e/devguide-examples
/php/counter.php
UTF-8
592
2.78125
3
[ "Apache-2.0" ]
permissive
<?php $cluster = new CouchbaseCluster('couchbase://localhost'); $bucket = $cluster->openBucket('default'); // Remove the document first so we can have predictable behavior try { $bucket->remove('docid'); } catch (CouchbaseException $ex) { } $result = $bucket->counter('docid', 20, array('initial' => 100)); echo 'D...
true
f0a049016253412abe3bf8a997f1262808ad815b
PHP
minextu/et.tc
/tests/EttcApi/Project/ProjectListTest.php
UTF-8
1,807
2.8125
3
[]
no_license
<?php namespace Minextu\EttcApi\Project; use Minextu\Ettc\AbstractEttcDatabaseTest; use Minextu\Ettc\Project\Project; class ProjectListTest extends AbstractEttcDatabaseTest { public static function setUpBeforeClass() { // set http host to be empty (Api will try to use this variable) $_SERVER['...
true
c0452b59d3080b30b4062c08973a0c14e128b9bc
PHP
jonhwa/cloudcourt
/php/getreservations.php
UTF-8
1,715
2.875
3
[]
no_license
<?php require("connect.php"); require("functions.php"); $user = $_SESSION['user_id']; //Get date as passed in from AJAX function $month = $_GET['month']; $day = $_GET['day']; $year = $_GET['year']; //Construct postgresql timestamp and interval $timestamp = $year.'-'.$month.'-'.$day.' 00:00:00'; $interval ...
true
1d706f5390cf5302ef2a1de8a2c9c7313d963976
PHP
Cvetanski/store
/app/Product.php
UTF-8
1,629
2.53125
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Product extends Model { protected $table = 'products'; protected $fillable = [ 'name', 'description', 'price' ]; public function orders() { return $this->belongsToMany( Order::class, ...
true
6ed0c289b79317a1778d93bb330f17a1559c6ce9
PHP
Lukasz93P/video-entitlements
/Modules/Entitlements/Domain/BroadcastersPlans/BroadcastersPlansSet/Children/Children.php
UTF-8
1,179
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Modules\Entitlements\Domain\BroadcastersPlans\BroadcastersPlansSet\Children; use Modules\Entitlements\Domain\BroadcastersPlans\BroadcastersPlansSet\DirectChildAlreadyAttached; use Modules\Entitlements\Domain\BroadcastersPlans\BroadcastersPlansSet\Plan\Plan; use Modules\Entitl...
true
27981da9d8575663452456c2ea835ed36a41dc10
PHP
Solire/lib
/tests/units/Loader/RequireJs.php
UTF-8
8,194
2.625
3
[]
no_license
<?php namespace Solire\Lib\tests\unit\Loader; use mageekguy\atoum as Atoum; /** * Test class for RequireJs loader. * * @author thansen <thansen@solire.fr> * @license CC by-nc http://creativecommons.org/licenses/by-nc/3.0/fr/ */ class RequireJs extends Atoum { private $dirRoot = TEST_TMP_DIR; private $...
true
be3fccdf09c816b5805fe2e09de9d7e4173eb058
PHP
ontoligent-design/corpus_topic_browser
/models/Word_model.php
UTF-8
5,250
2.796875
3
[]
no_license
<?php class Word_model extends CI_Model { function __construct() { parent::__construct(); } function get_list($limit=1000) { $q = $this->db->query("SELECT word_id,word_str,word_freq FROM word ORDER BY word_freq DESC LIMIT $limit"); return $q->result_array(); } function get_score($w...
true
48e3ece98a8b219699f6ae8b1dbe5b38ecc82063
PHP
Gauzz/project-ave
/user/apis/_create_media.php
UTF-8
4,672
2.640625
3
[]
no_license
<?php // ini_set('display_errors', 1); // ini_set('display_startup_errors', 1); // error_reporting(E_ALL); header('Content-Type: application/json'); header("Access-Control-Allow-Origin: *"); include('../../includes/functions.php'); if (isset($_REQUEST["create"])) { $projectName = (isset($_REQUEST["name"])) ? $_REQUES...
true
4be6c1395d885f454f5a8031b9c67d6c79e0a447
PHP
KeerthanaHK/Grocery-store-management-
/Grocery/edit.php
UTF-8
1,543
2.546875
3
[ "MIT" ]
permissive
<?php include ("db.php"); $getcustomer_id = $_GET['edit']; $seledittwo = "SELECT * FROM `customer` WHERE `customer_id` = '$getcustomer_id'"; $qry = mysqli_query($db, $seledittwo); $selassoc = mysqli_fetch_assoc($qry); $customer_id = $selassoc['customer_id']; $Name = $selassoc['N...
true
d975dbc94f450ea3ac2f42b04eb61ed2cbbd86a5
PHP
functino/Ekpenso
/app/controllers/selenium_controller.php
UTF-8
3,155
2.625
3
[]
no_license
<?php /** * Controller for executing selenium tests. * * Requires Selenium Core 0.8.1 (http://www.openqa.org/selenium-core/) * * Copyright: Daniel Hofstetter (http://cakebaker.42dh.com) * License: MIT * * For installation instructions, see http://cakebaker.42dh.com/tags/selenium/ * Selenium docume...
true
d2d00cc63f4d2de5ee15d8effb8224bc69923ada
PHP
missmay4/MessengerServices
/src/entities/messages.php
UTF-8
4,700
3.328125
3
[]
no_license
<?php /** * Class Messages */ class Messages implements JsonSerializable{ /** * @var $ID */ private $ID; /** * @var $IDSender */ private $IDsender; /** * @var $sender */ private $sender; /** * @var $photoSender */ private $photoSender; /** ...
true
a77d6e4de1933c802a62683cff6292f305cec5c4
PHP
renanpigato/sorteio-amigo-secreto
/database/sql/migrations/PropelMigration_1575591264.php
UTF-8
1,576
2.546875
3
[]
no_license
<?php use Propel\Generator\Manager\MigrationManager; /** * Data object containing the SQL and PHP code to migrate the database * up to version 1575591264. * Generated on 2019-12-06 00:14:24 by root */ class PropelMigration_1575591264 { public $comment = ''; public function preUp(MigrationManager $manager...
true
2c620259ec9558e01d97fa3055f9cf5a15968860
PHP
IvanStevanovic/twitter
/Twitter.php
UTF-8
6,727
2.71875
3
[]
no_license
<?php require "twitteroauth/autoload.php"; use Abraham\TwitterOAuth\TwitterOAuth; class Twitter{ private function connectdb(){ $servername = "localhost"; $username = "root"; $password = ""; $dbname = "tweetsdb"; $conn = mysqli_connect($servername,$username,$password,$d...
true
c743f6d6407de73b18ad43883a21df54e882f511
PHP
Ewelina92/proj-mvc
/app/Http/Controllers/UserController.php
UTF-8
2,527
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\User; use Illuminate\Http\Request; class UserController extends Controller { /** * Function to access the homepage /welcome. * * @var Request * @return \Illuminate\Contracts\View\Factory|\Illuminate\Contracts\View\View */ public f...
true
b725e29f0795c8b774ebdae5b81c0e9c57d65b04
PHP
dieulot/instantclick-website
/generate_static_files.php
UTF-8
669
2.640625
3
[ "MIT" ]
permissive
<? function generate($dir) { $handle = opendir($dir); while ($file = readdir($handle)) { if ($file[0] == '.') { continue; } if (is_dir($dir . '/' . $file)) { generate($dir . '/' . $file); continue; } $path = $dir . '/' . $file; $path_exploded = explode('/', $path); $st...
true
6069e3eaf72938fec2551eb1777187be5163a96a
PHP
laurenoncoffee/TalentCloud
/public_html/tc/dao/DashboardDAO.php
UTF-8
2,704
2.53125
3
[ "MIT" ]
permissive
<?php require_once __DIR__ . '/../config/php.config.inc'; /*set api path*/ set_include_path(get_include_path() . PATH_SEPARATOR); /** Model Classes */ require_once __DIR__ . '/../dao/BaseDAO.php'; require_once __DIR__ . '/../model/JobPosterApplication.php'; /** * Summary: Data Access Object for Resou...
true
16fe6828a27e51830c820ecae6c0d5e04726b872
PHP
ppavels/infinite-scroll-wp-theme
/classes/Navigation.php
UTF-8
2,193
2.671875
3
[]
no_license
<?php /** * @name Navigation * @since 09/08/2012 * @author Constantine Alexeyev * @copyright adjump media * @version 2.0 * This is the question : would it work in the same cat, if it is in the several categoties, should I exclude all but not mentioned in the function, not it ('Expired'), means exclude, b...
true
dcb79d3b5cbd481c20e02c85ce85a902746ed95d
PHP
AngelArteWeb/Proyecto_tiendaonline
/conexion.php
UTF-8
1,354
2.515625
3
[]
no_license
<?php $dbhost = "localhost"; $dbuser = "root"; $dbpass = ""; $dbname = "micromercado_mariela"; $conn = mysqli_connect ( "localhost","root","","micromercado_mariela" ); if (!$conn){ die("No hay conexion: ".mysqli_connect_error()); } $Nombre =$_POST ['fn']; $Contraseña=$_POST['ln']; $Parroquia =$_POS...
true
70106885ca89825912d4a49baa489f47d77c2d2f
PHP
joeb37/p4
/app/Http/Controllers/MachineController.php
UTF-8
525
2.65625
3
[]
no_license
<?php namespace p4\Http\Controllers; use p4\Http\Controllers\Controller; class MachineController extends Controller { /** * Responds to requests to GET /machine */ public function getShow($id = null) { $machine = \p4\Machine::find($id); // Make sure we can find this machine ...
true
18b0147e7f0befe3cc9b0d573b3d8173a06fddc5
PHP
joyeya8714/insert-csv
/insert-csv/Repository/AppelRepository.php
UTF-8
4,746
2.828125
3
[]
no_license
<?php require_once(ROOT . 'Repository/Repository.php'); class AppelRepository extends Repository { /** * @param AppelEntity $appel * @return bool */ public function insert(AppelEntity $appel): bool { try { $this->dbh->beginTransaction(); $ob...
true
8694049554326decd8f46ae8c06a7636c25e0bf6
PHP
dsphinx/libapi
/classes/OPSIN.php
UTF-8
409
2.515625
3
[]
no_license
<?php class OPSIN extends API { public $doc = 'http://opsin.ch.cam.ac.uk/instructions.html'; public $cache = TRUE; function url($name, $format){ return sprintf('http://opsin.ch.cam.ac.uk/opsin/%s.%s', urlencode($name), urlencode($format)); } function get($name, $format){ $url ...
true
dec7e02c9a458da5c8266334b28ea8b4043e798d
PHP
melikhov-dev/babkoplat
/src/Flint/Security/SecurityInterface.php
UTF-8
3,225
2.53125
3
[]
no_license
<?php namespace Flint\Security; use Symfony\Component\HttpFoundation\Cookie; use Symfony\Component\HttpFoundation\ParameterBag; /** * Security interface */ interface SecurityInterface { const LOGIN_EVENT = 'user_login_event'; const REGISTRATION_EVENT = 'user_registration_event'; con...
true
909cbf08d5ac80fe400f063fbcc925e7e999ef34
PHP
duanjp8617/hku-course
/2016_fall_assignment2/handleListDisplay.php
UTF-8
3,477
3.375
3
[ "MIT" ]
permissive
<?php // The function takes 3 parameters: // $content: the input string. // $delimiter: the character that is used to separate different words, which is usually space character. // $length: the number of the words that we want to extract. function extract_simplified_contents($content, $delimiter, $length){ ...
true
ab9e88f8fa306fc648a1e266db2ad4dd09510a2a
PHP
banyucenter/nodemcu_mysql_php
/index.php
UTF-8
933
2.953125
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>NodeMCU + Mysql + Php</title> </head> <body> <form action="" method="post"> <input type="date" name="form_data"> <input type="submit" name="submit" value="Pesquisar"> </form> <?php include "conexao.php"; if($_SERVER['REQUEST_METHOD'] == "POST"){ $...
true
bee02cf28c2960031d4b108954113d390739b97c
PHP
square/square-php-sdk
/src/Models/Builders/BulkUpsertBookingCustomAttributesRequestBuilder.php
UTF-8
1,041
2.890625
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace Square\Models\Builders; use Core\Utils\CoreHelper; use Square\Models\BulkUpsertBookingCustomAttributesRequest; /** * Builder for model BulkUpsertBookingCustomAttributesRequest * * @see BulkUpsertBookingCustomAttributesRequest */ class BulkUpsertBookingCustomAttributesReq...
true