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
5d39c884b0d78091a04c6e3605c1d78a8db4c9a2
PHP
Pasi-D/Opportunity-Portal
/Opportunity-Portal/user_data/user/user_login_stat.php
UTF-8
860
2.578125
3
[]
no_license
<?php session_start(); include_once '../DB/connector.php'; //Get values passed from User_Login.html $usrname = $_POST['Username']; $pwd = $_POST['password']; /*To prevent mysql injection $usrname = stripcslashes($usrname); $pwd = stripcslashes($pwd); $usrname = mysql_real_escape_string($usrname); ...
true
2534447a63f1c07f85a99cee928878e282514b8d
PHP
j6k1/alternative-library-of-mbstring
/mbString.php
UTF-8
5,717
2.921875
3
[]
no_license
<?php /** * mbString * * @package mbString - multibyte-string-library * @version 0.0.1-alpha * @author jinpu <http://will-co21.net> * @lisence The LGPL License * @copyright Copyright 2012 jinpu. All rights reserved. */ /** * The mbString Class. */ class mbString { private function __construct() { } pu...
true
647c6cc808c02a3bd7160ce667cca9b761c10539
PHP
qitaoyii/thinkphp-mall
/application/index/tool/Optional.php
UTF-8
483
2.71875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Charles * Date: 2019/03/25 * Time: 17:32 */ namespace app\index\tool; class Optional { private $obj = null; private $default = null; public function __construct($obj, $default = null) { $this->obj = $obj; $this->default = $default; } ...
true
bc68be8c2b932b9b26b80507c90c12eaa41cb810
PHP
silinternational/idp-pw-api
/application/common/components/auth/SamlContainer.php
UTF-8
806
2.640625
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace common\components\auth; use SAML2\Compat\AbstractContainer; class SamlContainer extends AbstractContainer { public function getLogger() { return new \Monolog\Logger('log'); } public function generateId() { return microtime(); } public function debugMessage...
true
e413829e060bd3a78023858ef0dff95634bddf77
PHP
duylive/PHP
/OOP_PHP/stop_watch.php
UTF-8
1,330
3.515625
4
[]
no_license
<?php class StopWatch { private $startTime; private $endTime; function getStartTime() { return $this -> startTime; } function getEndTime() { return $this -> endTime; } function setStartTime() { $this -> startTime = date('H:i:s'); } function setEndTime() { ...
true
4a0206f33f4ca12dd1786b80d04480f78e61cc70
PHP
bparks/pails-auth
/providers/GoogleAuthenticationProvider.php
UTF-8
2,144
2.6875
3
[]
no_license
<?php namespace Pails\Authentication; /* In order to use this method, you need to put the following in your <head>: <script src="https://apis.google.com/js/platform.js" async defer></script> <meta name="google-signin-client_id" content="YOUR_CLIENT_ID.apps.googleusercontent.com"> And optionally: <meta name="googl...
true
f486bb4b401d54b43f487063bd592a3595d03df2
PHP
ice-php/frame
/System/Frame/Redis/RedisBit.php
UTF-8
4,627
3.296875
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace icePHP\Frame\Redis; /** * 位类型,String类型的子类型 */ class RedisBit extends RedisElement { /** * 获取当前存储对象的类型(字符串格式) * @return string */ public function getType(): string { return 'Bit'; } /** * 对当前对象的存储值的二进制,设置或清除指定偏移量上的位(bit)。 ...
true
69b405f062e5e83f561f0fbe89b138a710cd6bef
PHP
hadenting/laravel-easy-dispatch
/src/EasyDispatch.php
UTF-8
1,283
2.828125
3
[]
no_license
<?php namespace EasyDispatch; use EasyDispatch\Interfaces\JobTaskInterface; use EasyDispatch\Jobs\EasyJob; class EasyDispatch { /** * 队列名称 * @var string */ protected $queueName; /** * 是否启用队列 * @var $dispatchNow bool */ protected $dispatchNow; public function __co...
true
a3913f13ab0e954711605ab5ddd83316cdd95250
PHP
Ingenieria2/proyecto
/src/AppBundle/Controller/APIController.php
UTF-8
2,071
2.546875
3
[]
no_license
<?php namespace AppBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; class APIController extends Controller { public function getTipos($url) { $array = array(); $encabezados = @get_headers($url); if (preg_match("|200|", $e...
true
5dcb7acb40adae6cd00671c1845576dbaaaa26d3
PHP
TomTheBomb/Flickr-Search
/app/View/Helper/flickr.php
UTF-8
2,124
2.9375
3
[]
no_license
<?php /** * The purpose of this helper is to assist with the display of images * and functionality. * Using the phpFlicker class pager or Pagination component isn't suitable at this stage. */ class FlickrHelper extends AppHelper { /** * Builds photos into a nice structured format based off * d...
true
45feb00242f21c5a473e0c5d9b77f2d0a3eca66c
PHP
vaibhavpandeyvpz/sandesh
/tests/ResponseSenderTest.php
UTF-8
2,080
2.75
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /* * This file is part of vaibhavpandeyvpz/sandesh package. * * (c) Vaibhav Pandey <contact@vaibhavpandey.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE.md. */ namespace Sandesh; /** * @return bool */ function headers_sent() { gl...
true
40dd59e83f802e0afb59f289ffbf6ecbeed07fd3
PHP
anwerj/rifleman
/src/Services/Connection.php
UTF-8
5,788
2.84375
3
[]
no_license
<?php namespace Rifle\Services; use Rifle\Db; use Rifle\DbRow; use Rifle\Services\Connections; abstract class Connection { const HTTP = 'http'; const FILE = 'file'; /** * @var string file/http/ftp/ssh */ protected $type; /** * @var string */ protected $path; /** ...
true
88e2ae2745a8c661effd1f0b231c847da2b09154
PHP
serhii-sv/trengo-challenge
/app/Containers/View/Tasks/CreateViewTask.php
UTF-8
747
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Containers\View\Tasks; use App\Containers\Article\Jobs\RecalculatePopularityJob; use App\Containers\Article\Models\Article; use App\Containers\View\Data\Repositories\ViewRepository; use App\Ship\Exceptions\CreateResourceFailedException; use App\Ship\Parents\Tasks\Task; use Exception; class Create...
true
47b889a7fe394b8c144d0441ed06bc583403a5d0
PHP
rudestan/broadlink-gui
/www/src/Service/DeviceStorageWriter.php
UTF-8
1,360
2.859375
3
[]
no_license
<?php namespace BRMControl\Service; use BRMControl\Exception\FileExistsException; use BRMControl\Device\DeviceStorage; class DeviceStorageWriter extends AbstractDeviceStorage { public function saveNewDeviceStorage(DeviceStorage $deviceStorage): bool { $fileName = $this->getFileName($deviceStorage); ...
true
8dfa8bcff94e7d47ef567609fd0a854d10f5df8e
PHP
guillaumemonet/Rad
/src/Rad/Model/ModelDatabase.php
UTF-8
28,499
2.890625
3
[ "MIT" ]
permissive
<?php /** * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file) * @author Guillaume Monet * @link https://github.com/guillaumemonet/Rad * @package Rad */ namespace Rad\Model; use Exception; use Nette\PhpGenerator\PhpNamespace; use PDO; use Rad\Database\Database; use Rad\Utils\...
true
d1c4f80340c6af1be3913374073906e43f3a2498
PHP
ChristopherIto/techbase
/mission_5-1.php
UTF-8
5,105
3.0625
3
[]
no_license
<?php $time = date("Y/m/d H:i:s"); //日付変数 //データベース接続 $dsn = 'database-name'; $user = 'user-name'; $pass = 'password'; $pdo = new PDO($dsn, $user, $pass, array(PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING)); //テーブル作成のSQL作成 $sql = "CREATE TABLE IF NOT EXISTS mission_5" ." (" . "id INT AUTO_INCREMENT...
true
682759fa690402b5c62dd5cb6da875bf452c3f26
PHP
Prafful-p/php
/php/oops/assignment_2_oops/student.php
UTF-8
3,151
2.953125
3
[]
no_license
<?php /* * required files */ require_once('include/database.php'); /** * Student class to interfare between controller and database * User: nl * Date: 15/1/16 * Time: 10:39 AM */ class student { /* * get list data from database and * return to controller ...
true
6d96047debe4419149665e52829c1ad117dbf477
PHP
eleanorz/php_teaching
/basic_session/process.php
UTF-8
3,104
2.96875
3
[]
no_license
<?php session_start(); require_once('connection.php'); $_SESSION['errors'] = array(); if (isset($_POST['action']) and $_POST['action'] == 'register') { $_SESSION['function'] = 'registering'; $_SESSION['current_email'] = $_POST['email']; $_SESSION['new_password'] = $_POST['password']; $_SESSION['confirm_...
true
4282ee22f62d821c37bcd5a0a6ea7030f6b20a3d
PHP
binbin0915/php_heima
/03_php2/9-面向对象_3/OOP3/03接口实例.php
UTF-8
895
3.59375
4
[]
no_license
<?php //定义小灵通的接口 interface XiaoLingTong { //定义打电话的抽象方法 public function tel(); } //定义Mp3接口 interface Mp3 { //定义听音乐的抽象方法 public function music(); } //定义Mp4接口,并继承Mp3接口 interface Mp4 extends Mp3 { //定义看电影的抽象方法 public function video(); } //定义手机类,并实现以上所有接口功能 class Mobile implements XiaoLingTong,Mp4 { //重写tel()抽象方法 p...
true
b799b104cdd1d722bab42d3a4c5aa50dbd691eb5
PHP
matveu/Notification-Service-SDK
/src/Service.php
UTF-8
1,318
2.734375
3
[]
no_license
<?php namespace matviichuk\NsSdk; use matviichuk\NsSdk\Auth\AuthInterface; use matviichuk\NsSdk\Authentication\AuthenticationInterface; use matviichuk\NsSdk\Requests\RequestInterface; use matviichuk\NsSdk\Resources\ResourceInterface; /** * Class Service * * @package matviichuk\NsSdk */ class Service { /** ...
true
1fce1aec2ecd2ca8f0b6143a0d24a7d7e05a8439
PHP
SergM2014/learnings
/app/core/database.php
UTF-8
1,506
3.03125
3
[]
no_license
<?php namespace App\Core; /** * * establish DB connection * * Class DataBase * @package App\Core */ class DataBase { private static $connection; public static function conn() { if(is_object(self::$connection)) return self::$connection; try{ self::$connection = new \...
true
db4a8e2c5721d2fd2ea1adc3dee6cae93395306f
PHP
nlenepveu/Skip32
/src/Skip32.php
UTF-8
3,263
3.484375
3
[]
no_license
<?php /** * A Simple Skip32 php implementation * 32-bit block cipher based on Skipjack * * @example * * $key = '0123456789abcdef0123'; // 10 bytes key * $int = 4294967295; // 4 bytes integer * * $encrypted = Skip32::encrypt($key, $int); * $decrypted = Skip32::decrypt($key, $encrypted); * * printf(...
true
9421bad2a2acc3d9aa08c081e55df408d6fdab67
PHP
king6310/test
/php/基础语法/1变量和常量/09.php
UTF-8
701
3.4375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: kennyking * Date: 2016/5/23 * Time: 22:56 */ //传值赋值,引用赋值 //1.传值赋值 $a = 3; $b = 5; //如果是新手,可能会对这个=号,误会,这个等于号,是赋值用的 $a = $b; //$a = $b; //发生的是:把$b的值,读出来,再把值放到$a的空间里,即赋给$a //就是把$b的值,传递给$a,叫做传值赋值 echo $a.'<br />'; //5; //在这个过程中,仅仅是参考了一个$b的值,然后把$b的值复制一份到a的空间去, //之后,$a,$b两者...
true
22a67b8acb21d67e4a5be6d8139bbf0a434a534e
PHP
Restia-Ashdoll/codes
/insert_data.php
UTF-8
1,493
2.78125
3
[]
no_license
<html> <body> <link rel = "stylesheet" type = "text/css" href = "login.css"> <?php $con = mysqli_connect("localhost","root","","login"); //connect to database if (!$con){ die('Could not connect: ' . mysqli_connect_errno()); //return error is connect fail } $query= $con->prepare("INSERT INTO `user` (`U...
true
8062889a5260c0143418f74fed53f82d22143177
PHP
nuzulfikrie/canvas
/src/Commands/Console.php
UTF-8
1,876
2.625
3
[ "MIT" ]
permissive
<?php namespace Orchestra\Canvas\Commands; use Orchestra\Canvas\Core\GeneratesCommandCode; use Symfony\Component\Console\Input\InputOption; class Console extends Generator { /** * The console command name. * * @var string */ protected $name = 'make:command'; /** * The console co...
true
07697c3cd07d09e8e2b2cf3ac0900d5c86803378
PHP
rakibhasansabbir/PHP-RestAPI
/objects/Student.php
UTF-8
2,313
3.28125
3
[]
no_license
<?php class Student { // database connection and table name private $conn; private $table_name = "students"; private $table_name2 = "fees_collections"; // object properties public $id; public $name; public $address; // constructor with $db as database connection public funct...
true
0ef23472e260ff0e5b5f63aa002db42addac4297
PHP
VincentZhechen/SuperMatt-ECommerceWebApp
/project1/ReadFile.php
UTF-8
792
3.046875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: 于哲晨 * Date: 2017/4/23 * Time: 19:19 */ //$array = explode("\n",file_get_contents('lib/CommonWord.txt') ); //$array = file('lib/CommonWord.txt'); //$total = count($array); //for($n=0;$n < $total;$n = $n +1) { // $array[$n] = trim($array[$n]); //} //foreach ($array as $w...
true
63d6d4423cba810597c9f7997c638a06c68de750
PHP
bassterror/SoftUni
/PHP Basics/Homeworks/PHP-Arrays-Strings-Objects/TextColorer.php
UTF-8
695
3.203125
3
[]
no_license
<form method="get"> <input type="text" name="textbox" /> <br> <input type="submit" value="Color text"/> </form> <?php if (isset($_GET["textbox"])) { $input = $_GET['textbox']; for($i = 0;$i < strlen($input);$i++) { $letter = mb_substr($input,$i,1); if($letter != " ") ...
true
cb01e01c09f2bf33cefc84aed4aced2f1c555e93
PHP
waglero/pipeline-configurator
/src/Traits/GitInformationTrait.php
UTF-8
633
2.8125
3
[]
no_license
<?php namespace Waglero\Traits; trait GitInformationTrait { protected $reservedBranchNames = [ 'stage', 'master', 'develop', 'production' ]; /** * @return array|string|null */ private function getBranchName() { $branchName = $this->argument('branc...
true
17b25bea5e1486725310096ae25e4caa65b4a208
PHP
jeffsocal/proxy-sci
/src/functions/math/tables/distance_to_line.php
UTF-8
382
3.109375
3
[ "MIT" ]
permissive
<?php /* * Written by Jeff Jones (jeff@socalbioinformatics.com) * Copyright (2016) SoCal Bioinformatics Inc. * * See LICENSE.txt for the license. */ /* * returns the distance from a point to a continous line */ function distance_to_line($x, $y, $m, $b) { $a = '-1' * $m; $b *= '-1'; ...
true
bfa670a85ed5e9b47240ba27376b360b7615a517
PHP
manureyesi/Chat_PHP
/php/colocarMensajeNuevos.php
UTF-8
554
2.53125
3
[]
no_license
<?php session_start(); include "conexionDb.php"; $conexion = conectate(); $sql = $conexion->prepare("SELECT * FROM mensajes where visto = 0"); $sql -> execute(); $resultado = $sql->fetchAll(); foreach ($resultado as $row){ if($row["emisor"] == $_GET["usuario"] && $row["receptor"] == $_SESSION["usuario"...
true
5c9884a7bbd5bda28bc04e5ca24fe069ba1505a2
PHP
hiqdev/hipanel-core
/src/helpers/Url.php
UTF-8
1,197
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * HiPanel core package * * @link https://hipanel.com/ * @package hipanel-core * @license BSD-3-Clause * @copyright Copyright (c) 2014-2019, HiQDev (http://hiqdev.com/) */ namespace hipanel\helpers; use yii\helpers\Inflector; class Url extends \yii\helpers\Url { /** * @param string|...
true
646de79b4738d350b168aea7e245e000060fad2d
PHP
genghisshyy/cusd-stories
/getTags.php
UTF-8
979
2.75
3
[]
no_license
<?php // Used in the AJAX search (in index.js) grabs the specific cards by input_type (video // or article) and by catgory include "card-model.php"; require "connection.php"; // receive inputs from get request $input_type = $_REQUEST["input_type"]; $tag = $_REQUEST["tag"]; // display all on default of articles or vi...
true
dd791c43d517ba34f4e805f9253cac5de78d587a
PHP
jordiromancastells/HeadFirstDesignPatternsInPHP
/headfirst/observer/weather/WeatherData.php
UTF-8
1,241
3.46875
3
[ "LicenseRef-scancode-public-domain" ]
permissive
<?php require_once "java/ArrayList.php"; class WeatherData implements MySubject { /** * @var ArrayList */ private $observers; private $temperature; private $humidity; private $pressure; public function __construct() { $this->observers = new ArrayList(); } public function registerObserver(MyObserver $...
true
3324d44ac4abdbc17cd4ce68961d55e15b17fb9c
PHP
tarsupin/hashtag
/plugins/TrendingWidgetAPI/TrendingWidgetAPI.php
UTF-8
1,472
2.953125
3
[]
no_license
<?php if(!defined("CONF_PATH")) { die("No direct script access allowed."); } /* ---------------------------- ------ About this API ------ ---------------------------- This API allows other sites to connect and pull the current "Trending Tags". ------------------------------ ------ Calling this API ------ ----------...
true
f4e98040d400c1aead68a899d3fa6a3d4f7e09a9
PHP
Trickst6r/WADP-PHP
/d03/Lab03_Login.php
UTF-8
2,062
2.875
3
[]
no_license
<?php //Kiểm tra xem trang Lab02_login.html đã được chạy chưa? if(isset($_POST["btnOK"])==FALSE){ //Chưa chạy trang html -> chuyển hướng về trang html header("location:Lab03_Login.html"); exit(); } /* Lấy dữ liệu đăng nhập trên form của trang lab03_login.html */...
true
0872357b96fc78f626b26c223bcc73d27ed737be
PHP
rayedgard/Drogueria_fardisur
/drogueria_old/protected/models/Compra.php
UTF-8
6,369
2.515625
3
[]
no_license
<?php /** * This is the model class for table "compra". * * The followings are the available columns in table 'compra': * @property integer $id * @property string $fecha_compra * @property integer $id_proveedor * @property string $nro_factura * @property integer $cantidad_cuotas * @property integer $almacen ...
true
e7ab2ec7c94fcd56a898f6a8cfc142dd0e52e03b
PHP
Rawshan008/LWHHPHP7
/class-3.13.php
UTF-8
312
3.1875
3
[]
no_license
<?php $number = array(1,3,2,4,5,6,8,8); print_r($number); if(in_array(6,$number)){ echo "Array 2 here"; } echo PHP_EOL; $search_array = array_search(4, $number); //search aray value echo $search_array; // 3 index nuber echo PHP_EOL; if(key_exists(22, $number)){ echo "Array key exit"; // no key exit }
true
3cb8a7f52e1cb536820dd1c674b7c610f76fead1
PHP
aulicksah/tourpedia-it
/update/libraries/eu/maxschuster/sevenzip/cmd/AddFile.php
UTF-8
2,386
2.75
3
[ "Apache-2.0" ]
permissive
<?php /** * Contains class AddFile * @package SevenZipArchive */ /* * Copyright 2012 Max Schuster * * 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/l...
true
d551a82f725d7562f88f377ede81d8c0525f7a42
PHP
thomaspaulson/parishmanager
/survey/code/controller/ParishController.php
UTF-8
1,691
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: thomas * Date: 1/12/2016 * Time: 2:08 PM */ class ParishController extends Controller { public static $allowed_actions = array( 'search', 'myparish' ); public function init(){ parent::init(); } public function search(){ $term...
true
a497afacad769d5bcd7ff4710f936e70659b79cb
PHP
nick-jones/php-ucd
/spec/UCD/Infrastructure/Repository/CharacterRepository/XMLRepository/ElementParser/CodepointCountParserSpec.php
UTF-8
1,339
2.65625
3
[ "MIT" ]
permissive
<?php namespace spec\UCD\Infrastructure\Repository\CharacterRepository\XMLRepository\ElementParser; use PhpSpec\ObjectBehavior; use UCD\Infrastructure\Repository\CharacterRepository\XMLRepository\ElementParser\CodepointCountParser; /** * @mixin CodepointCountParser */ class CodepointCountParserSpec extends ObjectB...
true
6d5d8aa0e492f0cf891b307b2bb5e215db67ef0e
PHP
nfqakademija/streetwise-sophisticated-hackers
/src/AppBundle/DataFixtures/ORM/LoadLectureData.php
UTF-8
1,278
2.53125
3
[ "MIT" ]
permissive
<?php namespace AppBundle\DataFixtures\ORM; use Doctrine\Common\DataFixtures\AbstractFixture; use AppBundle\Entity\Lecture; use Doctrine\Common\DataFixtures\FixtureInterface; use Doctrine\Common\Persistence\ObjectManager; use Faker; use Doctrine\Common\DataFixtures\OrderedFixtureInterface; class LoadLectureData exte...
true
853bd94ad35b742e7df20c391455b4f33121830f
PHP
rollxx/antlr-php-runtime
/test/Parser026Test.php
UTF-8
1,559
2.734375
3
[]
no_license
<?php require_once 'PHPUnit/Framework.php'; require_once "antlr.php"; require_once "t026actionsLexer.php"; require_once "t026actionsParser.php"; class Parser extends t026actionsParser{ public $_errors = array(); public $_output = ""; function capture($t){ $this->_output .= $t; } function emitErro...
true
39be1c76d46b7548b21969e1de3a5d67bf556fbe
PHP
ishunko/hubzero-cms
/core/plugins/captcha/math/math.php
UTF-8
2,942
2.75
3
[ "MIT" ]
permissive
<?php /** * @package hubzero-cms * @copyright Copyright 2005-2019 HUBzero Foundation, LLC. * @license http://opensource.org/licenses/MIT MIT */ // No direct access defined('_HZEXEC_') or die(); /** * Plugin class for displaying math CAPTCHAs */ class plgCaptchaMath extends \Hubzero\Plugin\Plugin { /** ...
true
6cde2244ce13a611611798161b3d033b1ada6b9d
PHP
dlin-me/very_old_projects
/unimarket/classes/Image.class.php
UTF-8
2,789
2.859375
3
[]
no_license
<?php /** * Class Image * This class contains Image specific implementation * * @version $Id$ * @copyright 2007 */ class Image extends Row{ private static $tblObj = null; private $file = null;//uploaded file to store /** * Image::getTblObj() * Implement the required method...
true
f1a9e70e63b51adfa895c1d5673c4470e6a54041
PHP
acekyd/Jollof
/system/base/providers/Tools/Hasher.php
UTF-8
1,405
3.046875
3
[ "MIT" ]
permissive
<?php namespace Providers\Tools; class Hasher { protected $algorithms; protected $canHash; public function __construct(array $config = array()){ $this->algorithms = array('bcrypt'=>"$2y$", 'bcrypt_blowfish'=>"$2a$"); $this->workLoadFactors = array('high...
true
83cd860739e22c167420936bf3ae91b3f6e2c9c6
PHP
mediahost/pilot
/app/components/forms/GetInTouchForm.php
UTF-8
1,816
2.71875
3
[]
no_license
<?php namespace AppForms; use \Nette\Application\UI\Form, Nette\Application\UI\Presenter, Model\Service\MailService; use Nette\Diagnostics\Debugger; /** * GetInTouch Form * * @author Petr Poupě */ class GetInTouchForm extends AppForms { /** @var MailService */ private $mail; public function __construct(Pr...
true
d182f9489c7ccab9b95ee90115cff866ededf48e
PHP
wata727/pahout
/src/Config.php
UTF-8
11,540
3
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Pahout; use Pahout\Exception\InvalidConfigFilePathException; use Pahout\Exception\InvalidConfigOptionException; use Pahout\Exception\InvalidConfigOptionValueException; use Symfony\Component\Yaml\Yaml; /** * Pahout Config * * Merge the configuration file and argument setting i...
true
6bd8e415b7c50feaf58562bd9b2d452d33f45385
PHP
crishenrique/cms-codeigniter
/application/models/LogsModel.php
UTF-8
939
2.625
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class LogsModel extends CI_Model { /* FUNÇÃO CONSTRUTORA */ function __construct() { parent::__construct(); } /* MÉTODO DE GET */ public function get() { # SEL...
true
c14b248f509a49ad8b1ab0c9237f3f1a209a1aaa
PHP
laraeast/localed-app-scaffolding
/app/Models/Helpers/UserHelpers.php
UTF-8
669
2.65625
3
[]
no_license
<?php namespace App\Models\Helpers; use App\Models\User; trait UserHelpers { /** * Determine whether the user is admin. * * @return bool */ public function isAdmin() { return $this->getAttribute('type') === User::ADMIN_TYPE; } /** * Determine whether the user has...
true
94b07e44ec9c0268a3e346345ca6cb2faeb5969d
PHP
forbiddenv2/BD
/editar_comentario.php
UTF-8
1,559
2.65625
3
[]
no_license
<?php include_once('Conexion.php'); session_start(); if(isset($_SESSION['ID_Cuenta'])) { $id = $_REQUEST['id_comentario']; $query = $pdo->query("SELECT * FROM comentarios WHERE id_comentario = '$id'")->fetch(); $video = $query['id_video']; if ($_POST) { $comentario_nuevo = $_POST['texto']; ...
true
23cfeec6fa39aae9c85da61982cf8cda2fdf3146
PHP
peternijssen/ses-configuration
/tests/Model/DnsTest.php
UTF-8
749
2.703125
3
[ "MIT" ]
permissive
<?php namespace PeterNijssen\Ses\Tests\Model; use PeterNijssen\Ses\Model\Dns; class DnsTest extends \PHPUnit_Framework_TestCase { public function testCreateInstance() { $this->assertInstanceOf("PeterNijssen\Ses\Model\Dns", new Dns("TXT", "test.com", "1234")); } public function testGetType()...
true
bf3a9020c7c11a6563a77cb7bbc46b2fa438f554
PHP
weglot/translate-laravel
/src/helpers.php
UTF-8
2,089
2.515625
3
[ "MIT" ]
permissive
<?php use Weglot\Client\Client; use Weglot\Client\Endpoint\Languages; use Weglot\Client\Api\LanguageEntry; use Weglot\Util\Url; use Illuminate\Support\Facades\Request; if (! function_exists('weglotLanguage')) { /** * Used to get language name from ISO 639-1 code * @param string $iso639 * @param boo...
true
9d6bd5161270aaa59117b6efc7bebc711e80b0f8
PHP
joscraw/crm
/src/Model/Filter.php
UTF-8
1,980
2.640625
3
[]
no_license
<?php namespace App\Model; use App\Entity\Property; use Symfony\Component\Serializer\Annotation\Groups; /** * Class Filter * @package App\Model */ class Filter extends Property { /** * @Groups({"TRIGGER"}) * @var string */ protected $operator; /** * @Groups({"TRIGGER"}) * @va...
true
e1604900372f4fa084abf02e374c5688623e79c2
PHP
MichalisTripolitsiotis/Communities-of-Learning
/modifytext.php
UTF-8
1,059
2.5625
3
[]
no_license
<?php session_start(); include_once('connect.php'); if (isset($_SESSION['username'])) { //username to be found $var_username = $_SESSION['username']; //print($var_username); } $sql="SELECT role FROM staff WHERE username='$var_username'"; $result=mysqli_query($con, $sql); $row=mysqli_fetch_row(...
true
e9b57083df0c5c40fa67dc84a99fc72d273b2219
PHP
KadonWills/MTrace
/database/migrations/2021_07_10_194721_create_mining_productions_table.php
UTF-8
1,317
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateMiningProductionsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('minin...
true
3f9920129a761795e1f971787a561035914ec83e
PHP
TrinataBhayanaka/simbadoetz
/module/penghapusanv2/hapus_aset_penetapan_pmd_helper_all.php
UTF-8
2,021
2.859375
3
[]
no_license
<?php ///include "../../../config/config.php"; include "../../config/database.php"; $link = mysqli_connect($CONFIG['default']['db_host'],$CONFIG['default']['db_user'],$CONFIG['default']['db_pass'],$CONFIG['default']['db_name']) or die("Error " . mysqli_error($link)); $idPenghapusan = $argv[1]; echo "Id Penghapusan :...
true
68e62193826e8e062653bbbe86feeffa844d6a17
PHP
shayanadc/DesignPatterns
/DIP.php
UTF-8
1,033
3.078125
3
[]
no_license
<?php namespace Tests\Feature; use Tests\TestCase; class DesignPatternTest extends TestCase { /** * @test */ public function it_ship_or_queuing_product() { $cat = new CatProduct(); $dog = new DogProduct(); $order = new OrderProcessor(); $order->addDetails($cat);...
true
2fb9cb9a8e55689a540653f415d12ceddb8a66df
PHP
Pointer666/OOReq
/tests/IntegrationTest.php
UTF-8
9,560
2.671875
3
[ "MIT" ]
permissive
<?php use OOReq\Data\DataAsGET; use OOReq\Data\DataAsPOST; use OOReq\Data\DataAsRawBodyPOST; use OOReq\Data\FileAsPOST; use OOReq\Header\Header; use OOReq\Header\Headerlist; use OOReq\HTTPMethod\POST; use OOReq\HTTPMethod\PUT; use OOReq\HTTPMethod\GET; use OOReq\HTTPStatusCode; use OOReq\MIMEType; use OOReq\Response\A...
true
1a997c9525fd7efbab08bf744ea9f405e8f91f17
PHP
xedinaska/XedinaskaBackupsManagerBundle
/Xedinaska/BackupsManagerBundle/Model/Backup.php
UTF-8
1,902
2.8125
3
[]
no_license
<?php namespace Xedinaska\BackupsManagerBundle\Model; /** * Class Backup * Contains backups info * * @package Xedinaska\BackupsManagerBundle\Model */ abstract class Backup implements BackupInterface { const AUTO_BACKUP_TYPE = 'auto'; const MANUAL_BACKUP_TYPE = 'manual'; /** * @var int */ ...
true
781a272b8fd134290a99db2bf42aba73051f2f6c
PHP
acodispo/dice-roller
/src/MemoryTracerTest.php
UTF-8
3,562
2.828125
3
[ "MIT" ]
permissive
<?php /** * PHP Dice Roller (https://github.com/bakame-php/dice-roller/) * * (c) Ignace Nyamagana Butera <nyamsprod@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Bakame\DiceRoller;...
true
73b8e4ad72c5ab0b8d3132568fb2faef6354e84c
PHP
ejaymejr/snapps-sg
/web/isoforms/survey_orig/lib/classes/utils/ImageUtils.php
UTF-8
896
2.5625
3
[]
no_license
<?php /* * Created on Jun 5, 2007 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */ class ImageUtils { function ImageUtils() { } function IconPDF($enabled = true) { $str = ''; $src = PATH_TEMPL...
true
4d33c452c36caf3b49a37b0fb92d0e780fec0856
PHP
Max1mum4444/brandbank-soap-api-client
/src/Request/SupplyCoverageReport/Message.php
UTF-8
1,171
2.71875
3
[ "MIT" ]
permissive
<?php namespace BrandbankSOAPAPIClient\Request\SupplyCoverageReport; use BrandbankSOAPAPIClient\Interfaces\XmlableInterface; use SimpleXMLElement; class Message implements XmlableInterface { private $dateTime; private $domain; public const DOMAIN = 'LST'; public function __construct(\DateTime $date...
true
1c1e3f01089f91423893c5525985f0cd50511176
PHP
mell421/UDEMY_DEPOT
/PHP/PHP_EXOS/1-facile/exo8/index.php
UTF-8
580
2.921875
3
[]
no_license
<?php ob_start(); //NE PAS MODIFIER $titre = "Exo 8 : La boucle while"; //Mettre le nom du titre de la page que vous voulez ?> <!-- mettre ici le code --> <?php $random = rand(1,20); $compteur = 1 ; while ($random <= 15) { echo "Essaie $compteur : $random est trop petit (<15) <br>"; $compteur+=1; $random = ...
true
ff24d645e0e0c7720c160e76e8bb253e24da3ae3
PHP
alexandreo/NfeLoteRPS
/src/NfLoteRPS/Nf.php
UTF-8
919
2.546875
3
[]
no_license
<?php namespace MatheusHack\NfLoteRPS; use MatheusHack\NfLoteRPS\Entities\Config; use MatheusHack\NfLoteRPS\Constants\NfType; use MatheusHack\NfLoteRPS\Entities\DataFile; use MatheusHack\NfLoteRPS\Factories\NfeFactory; use MatheusHack\NfLoteRPS\Constants\LayoutType; use MatheusHack\NfLoteRPS\Requests\LayoutRequest; ...
true
083ac8432930be8c8a2f65faeef7071f31d0d592
PHP
umiljavac/OCP8_ToDoList
/src/Entity/User.php
UTF-8
2,923
2.6875
3
[ "MIT" ]
permissive
<?php /** * This file is a part of the ToDoList project of Openclassrooms PHP/Symfony * development course. * * (c) Sarah Khalil * (c) Ulrich Miljavac * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace App\Entity; use Do...
true
7342263ccdeed6d6fce57fca7627c295c1b6f50c
PHP
alkislardeniz/hiring_system
/code/Frontend/view_service_requests_pro.php
UTF-8
5,485
2.515625
3
[]
no_license
<?php include('config.php'); session_start(); $error = ""; //global $user_ID; $user_ID= $_SESSION["user_ID"]; if($db->connect_error){ die("Connection failed: " . $db->connect_error); } $sql = "SELECT sos.order_ID, sos.service_type_ID, sos.order_details, sos.requester_ID FROM regular_users rus JOIN service_...
true
3103d6434589e9a91a2f99aaef10ae7c0721250a
PHP
fracz/git-exercises
/backend/services/ExerciseUtils.php
UTF-8
1,469
2.90625
3
[ "MIT" ]
permissive
<?php namespace GitExercises\services; class ExerciseUtils { public static function getAvailableExercises() { return file(__DIR__ . '/../hook/exercise-order.txt', FILE_IGNORE_NEW_LINES); } public static function getExerciseReadme($id) { $readme = self::getExerciseReadmeContent($id)...
true
137c1a1bde809968d3dadd7920a85499537ec66a
PHP
finify/urlshortner
/Createurl.php
UTF-8
649
2.984375
3
[]
no_license
<?php include "../include/config.php"; include "../include/ShortUrl.php"; try { $pdo = new PDO(DB_PDODRIVER . ":host=" . DB_HOST . ";dbname=" . DB_DATABASE, DB_USERNAME, DB_PASSWORD); } catch (PDOException $e) { trigger_error("Error: Failed to establish connection to database."); exit; } $...
true
023aa07bc9453e178ba740a439b607dcbc48d792
PHP
smaloron/m2i-php-framework-06-2020
/controllers/test-user-dao.php
UTF-8
296
2.75
3
[]
no_license
<?php // récupération d'une instance de PDO $pdo = DatabaseConnection::getInstance(); // Instanciation du DAO $userDAO = new UserDAO($pdo); $user = new UserModel(); $user->setName("Paul")->setEmail("paul@mail.com")->setPassword("123"); var_dump($userDAO->find( ["user_password" => "123"] ));
true
3cc091ce128a532b9c2d470f4c8de3e58b2e7d10
PHP
JulienLabonte/MVC
/controllers/enseignantController.class.php
UTF-8
2,358
2.78125
3
[]
no_license
<?php class enseignantController extends Controller{ public function listerAction(){ $tab = $this->modele->getManager()->lister("enseignant"); //afficher la vue accueil $this->view->afficherListeEnseignant($tab); } public function insererAction(){ if(!empty($_POST)){ //récupérer les inform...
true
e6fb102e6679dc51f836de711007c8b980b94be8
PHP
Tristan-clemenceau/Gallery
/Model/Image.php
UTF-8
907
3.859375
4
[]
no_license
<?php /** * */ class Image { private $id; private $link; function __construct()//1:id , 2 : link { $numArgs = func_num_args(); //Number arguments $args = func_get_args(); //Array arguments switch ($numArgs) { case 0: $this->id = "UNDEFINED"; $this->link = "UNDEFINED"; break; case 1: ...
true
112d126342d4c101dbe3714258e5ccfc8bc8e4d8
PHP
treejames/adminLTE-1
/php1/csv.php
UTF-8
1,827
3.171875
3
[]
no_license
<?php /** * csv_get_lines 读取CSV文件中的某几行数据 * @param $csvfile csv文件路径 * @param $lines 读取行数 * @param $offset 起始行数 * @return array * */ function csv_get_lines($csvfile, $lines, $offset = 0) { if(!$fp = fopen($csvfile, 'r')) { return false; } $i = $j = 0; while (false !== ($line = fgets($fp))) { if(...
true
3954789598df07762d34cfe4be8673a70307ad9f
PHP
Johvenly/awd-platform
/web_server/data/modules/albums/functions.php
UTF-8
7,456
2.765625
3
[]
no_license
<?php //Make sure the file isn't accessed directly. defined('IN_CMS') or exit('Access denied!'); define('ALBUMS_DIR', 'data/settings/modules/albums'); //Two constants we use in imageup.php and imagedown.php. define('TEMP', '_temp'); define('NAME', 'image'); /** * Loads albums in an array. Will return FALSE if no alb...
true
5620244f32bf60f68b3cd5a291d2522ac2bd12be
PHP
Iemnur/talestra
/misc/pswad2048/extract.php
UTF-8
2,114
2.53125
3
[]
no_license
<?php function fread4($f) { return array_pop(unpack('V', fread($f, 4)));; } function ExtractFile($pname) { $f = fopen($pname, 'rb'); fseek($f, 0x0c); $last = fread4($f); fseek($f, 0x20); $files = array(); while (ftell($f) < $last) { list($name) = explode("\0", fread($f, 0xC)); $start = fread4($f)...
true
6e5838dcc28502733a55133afaa91dbbebacea67
PHP
Appsco/component-jwt-api
/src/BWC/Component/JwtApiBundle/Client/BearerClient.php
UTF-8
2,688
2.765625
3
[]
no_license
<?php namespace BWC\Component\JwtApiBundle\Client; use BWC\Component\Jwe\EncoderInterface; use BWC\Component\JwtApiBundle\Context\JwtBindingTypes; use BWC\Component\JwtApiBundle\Method\MethodJwt; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Response; class BearerClient...
true
50c55ebc6f5b4020a7e51c15122a6290e7820f01
PHP
WPPlugins/ecstatic
/ecstatic_whois.php
UTF-8
12,542
2.734375
3
[]
no_license
<?php /***********************************************************************************/ class ipranges { private $ip; private $possibles; private $iporcidr; /***********************************************************************************/ public static function countSetbits($int){ //this set from jdub7 a...
true
672eee61413c494c46c5b2c5c096f247dfcf47ca
PHP
AdamKyle/helpscout-parachute
/app/Console/Commands/Backup.php
UTF-8
1,829
2.703125
3
[]
no_license
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use App\Helpscout\Domain\Entities\Collection; use App\Models\Category; use App\Models\Article; class Backup extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature ...
true
fc5e89a2c4277dd877a0c53a52fc54995620d815
PHP
hopechurchkyle/website
/wp-content/plugins/wpfc-manager/product_example.php
UTF-8
14,021
2.578125
3
[]
no_license
<?php /** * This file serves as an example product registration code. * * Change `PREFIX_` to something unique and place it in main plugin file (i.e. * `~/wp-content/plugins/my_plugin/my_plugin.php`) if it's a plugin or in theme's `functions.php` if it's a theme. * * Product will be registered on two events: * ...
true
07d491012ce1fa0db6fb5ca910ae48c085fac2cc
PHP
IAMBocata/Backend
/BackEndIamBocataProject/bbdd/ParametersDao.php
UTF-8
1,641
3.125
3
[ "Apache-2.0" ]
permissive
<?php /** * Classe per accedir a les dades dels paràmetres a la BBDD. * * User: Josep * Date: 24/05/2018 * Time: 22:39 */ include_once (dirname(__FILE__) . '/Dao.php'); class ParametersDao extends Dao { /** * ParametersDao constructor. */ public function __construct() { ...
true
c9f575c209b2894a3f28659d084b28b1c98a2214
PHP
inunosinsi/soycms
/cms/common/site_include/plugin/tag_cloud/util/TagCloudUtil.class.php
UTF-8
4,478
2.640625
3
[]
no_license
<?php class TagCloudUtil { public static function getConfig(){ return self::_config(); } private static function _config(){ SOY2::import("domain.cms.DataSets"); return DataSets::get("tag_cloud.config", array( "divide" => 10, "tags" => "" )); } public static function saveConfig(array $values){ i...
true
f73da37328614ee71f7def364031ffdb1f425408
PHP
rmit-s3293780-aleksandar-vujatovic/ticketfast
/register.php
UTF-8
8,276
2.625
3
[ "MIT" ]
permissive
<?php session_start(); $_SESSION['message'] = ''; $servername = getenv('IP'); $dbusername = getenv('C9_USER'); $dbpassword = ""; $database = "id2769518_testdb"; $dbport = 3306; // Create connection $mysqli = new mysqli($servername, $dbusername, $dbpassword, $database, $dbport); ...
true
dc5a3727c826e16c1df76edacefbe22d0bdf99e5
PHP
fadlisaad/epandangan
/pskl/model/PandanganItem.php
UTF-8
662
2.75
3
[]
no_license
<?php class PandanganItem { private $dbh; private $dbPrefix = 'pskl_'; public function __construct($host,$user,$pass,$db) { $this->dbh = new PDO("mysql:host=".$host.";dbname=".$db,$user,$pass); } public function getPandanganItem($id){ $sql = "SELECT * FROM ".$this->dbPrefix."borang_matlamat WHERE id...
true
5021762cbf2e5b2778ad096f1b11cd0cf3054984
PHP
olk-k/waimai
/Application/Manager/Common/function.php
UTF-8
2,750
2.578125
3
[]
no_license
<?php /** * 检测用户是否登录 * @return integer 0-未登录,大于0-当前登录用户ID */ function is_login(){ $user = session('user_auth'); if (empty($user)) { return 0; } else { return session('user_auth_sign') == data_auth_sign($user) ? $user['uid'] : 0; } } /** * 根据用户ID获取用户昵称 * @p...
true
5c659b9070f957d70bbdc8ab3e44592790487af2
PHP
DenisTsenov/Notebook
/app/Http/Controllers/Slugs/SlugController.php
UTF-8
1,455
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers\Slugs; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Auth; use App\Models\Note; class SlugController extends Controller { public function __construct() { $this->middleware('auth'); } const STATUS_OK = 200; public functi...
true
319af9f36e88b41c3d5f0f6ed1894f20e147df07
PHP
kayosilva/test_slim
/app/src/Entity/Foca.php
UTF-8
3,952
2.703125
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * Entity de Focas * @author Kayo Oliveira <kayo.oliveiras2@gmail.com> * @ORM\Entity * @ORM\Table(name="foca") */ class Foca { /** * @var integer * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(strategy="AUTO"...
true
d402b6730bfb45083750752d7fdc16b20a725fb2
PHP
NixonMaung/PHP-code
/users.php
UTF-8
5,864
2.53125
3
[]
no_license
<?php function accommodation_user($accommodation_data){ array_walk($accommodation_data,'array_sanitize'); $fields = '`' . implode('`, `',array_keys($accommodation_data)) . '`'; $data = '\'' . implode ('\', \'',($accommodation_data)). '\''; $con = mysqli_connect('localhost', 'ma9892p', 'ma9892p' , 'ma9892p')o...
true
22fe8cd505805b140d8d33ea3809f0a143ea03c1
PHP
gehan-Jayakody/MIT-Project-2019
/objects/message.php
UTF-8
622
3.046875
3
[ "MIT" ]
permissive
<?php // 'Message' object class Message{ // database connection and table name private $table_name = "cse_messages"; //Message Status Get Function function messageInfo(){ include 'config/dbconfig.php'; // query to Get Message details $mquery = "SELECT * FROM cse_messages "; // prepare th...
true
bae9f72e8d50b151f54dec933d755cb7cf7d8fe5
PHP
OpenMageModuleFostering/veinteractive_veplatform
/app/code/community/VeInteractive/VePlatform/Block/ConfigFieldset.php
UTF-8
3,914
2.515625
3
[]
no_license
<?php class VeInteractive_VePlatform_Block_ConfigFieldset extends Mage_Adminhtml_Block_System_Config_Form_Fieldset { const MY_SECTION = "veplatform_options"; const MY_PACKAGE = "veplatform"; const MY_THEME = "default"; const PUBLIC_DESIGN_AREA = "skin"; const IMAGES_DIR = "images"; const F...
true
caa157832ebafa4852dd5adc285c59aa8c3fa59b
PHP
cleansemysoul/architecture
/admin/menus.php
UTF-8
6,951
2.5625
3
[]
no_license
<?php if(isset($_SESSION['id_compte'])) { if(isset($_GET['action'])) { switch($_GET['action']) { case "afficher_menus": $entete="<h1>Gestion des menus</h1>"; $action_form="afficher_menus"; //2. on insert les champs dans la table comptes (modele : front.php) if(isset($_POST['submit'])) { ...
true
9433820c4d7446d69b05a5e993c62653219a9724
PHP
rhealynprincess/OpenLGU
/Employee/protected/views/employee/_childForm.php
UTF-8
1,769
2.578125
3
[]
no_license
<?php /** * Employee Child information form. * * @package EmployeeInformationSystem * @subpackage Employee * @version 1.0 * @since 1.0 * @author Ferdinand C. Pendon <fcpendon@gmail.com> */ /* @var $this EmployeeController */ /* @var $model Employee */ /* @var $form CActiveForm */ ?> <div class="...
true
906c43fc88061453b4c9e66af1e275523a805d36
PHP
skipter/Tech-Module
/Software Technologies/PHP - Syntax and Basic Web/test.php
UTF-8
278
3.1875
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Test Pieces of Code Here</title> </head> <body> <?php $str = "Hello Wolrd, how are you"; print_r(explode(" ",$str)); echo "<br />\n"; echo "<br />\n"; echo $str; ?> </body> </html>
true
c33cee791f997db3a148c06f1c18cff403cee97e
PHP
FrazaAdityaWiguna/Belajar-PHP-Dasar
/latihan15 - Session/ubah.php
UTF-8
3,487
2.78125
3
[]
no_license
<?php session_start(); if( !isset($_SESSION["login"]) ) { header("Location: login.php"); exit; } require 'functions.php'; // ambil data di url $id = $_GET["id"]; // query data mahasiswa berdasarkan data id $mhs = query("SELECT * FROM mahasiswa WHERE id = $id")[0]; // cek tombol subm...
true
edcbd970592adb23c514203138f69b301894de26
PHP
kris-kuiper/Validator
/tests/unit/Blueprint/Rules/EqualsTest.php
UTF-8
3,592
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace tests\unit\Blueprint\Rules; use KrisKuiper\Validator\Validator; use KrisKuiper\Validator\Exceptions\ValidatorException; use PHPUnit\Framework\TestCase; final class EqualsTest extends TestCase { /** * @throws ValidatorException */ public function testIfValid...
true
072c6bc1d31c696e1c1586d0e0e9693d1c750c87
PHP
UnicodeSystems-PrivateLimited/appbuilder
/api/app/Http/Controllers/TabFunctions/VoiceRecordingController.php
UTF-8
3,556
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers\TabFunctions; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; use Exception; use App\Models\TabFunctions\VoiceRecording; use App\Models\TpAppsTabEntity; class VoiceRecordingController extends Controller { private s...
true
3d00fd1bf3a4ecd7fbf23ce140dba71ceed6e93b
PHP
frode81/Laravel-boilerplate_juni2021
/database/seeders/UserSeeder.php
UTF-8
570
2.71875
3
[]
no_license
<?php namespace Database\Seeders; use App\Models\User; use Illuminate\Database\Seeder; class UserSeeder extends Seeder { /** * The administrators to be seeded. * * @var array */ protected $administrators = [ ['first_name' => 'Admin', 'last_name' => 'Boilerplate', 'email' => 'admin...
true
45e7a5aa75cd1b6f38f8c87f196118bd12021014
PHP
fergo125/proyecto_SOAP
/Server/gato.class.php
UTF-8
6,333
2.75
3
[]
no_license
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); /** * * Copyright (c) 2005-2015, Braulio José Solano Rojas * All rights reserved. * * Redistribution && use in source && binary forms, with or without modification, are * permitted provided that the following conditi...
true
5e7eda2158f6335c461ca7c0b0dc7d6a71e5f159
PHP
cloak-php/coveralls-kit
/src/exception/NotSupportFileTypeException.php
UTF-8
780
2.609375
3
[ "MIT" ]
permissive
<?php /** * This file is part of CoverallsKit. * * (c) Noritaka Horio <holy.shared.design@gmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace coverallskit\exception; use Exception; use UnexpectedValueException; /** * Class No...
true
6350fc36169a6d358cdd8072581458ca5cffd6be
PHP
NewDelion/myplugin
/no_title1/src/delion/no_title1/Main.php
UTF-8
1,881
2.578125
3
[]
no_license
<?php namespace delion\no_title; use pocketmine\plugin\PluginBase; use pocketmine\event\Listener; use pocketmine\event\player\PlayerInteractEvent; use pocketmine\scheduler\PluginTask; use pocketmine\level\particle\DustParticle; class Main extends PluginBase implements Listener{ function onEnable(){ $this-...
true
9566702718bfba4783d268ea75e62d1f53b39ff0
PHP
OldRobot/mvcapp
/app/models/Skill.php
UTF-8
381
2.828125
3
[]
no_license
<?php class Skill{ private $db; private $jsonData; public function __construct(){ $this->db = new Database; } public function loadJSON($filename){ $jsonData =file_get_contents(APPROOT . "/" . "assessments/" . $filename .'.json'); $json = json_decode($jsonData,true...
true