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
f22f68fe134795d0ffafc38b2461bae03830e706
PHP
linkorb/org-sync
/src/Services/Camunda/CamundaGroupProvider.php
UTF-8
855
2.765625
3
[]
no_license
<?php declare(strict_types=1); namespace LinkORB\OrgSync\Services\Camunda; use GuzzleHttp\Client; use LinkORB\OrgSync\DTO\Group; class CamundaGroupProvider { /** * @var Client */ private $httpClient; /** * @var CamundaGroupMapper */ private $mapper; public function __constru...
true
2663e0111224feb1c64c4e78e2eb3e90f2456916
PHP
whiletrue/php-util
/inc/Util/Shorturl.php
UTF-8
1,378
3.03125
3
[]
no_license
<?php Class Util_Shorturl { const SYMBOLS_62 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz"; public static function fromUuid($uuid, $base=62) { $ints = preg_replace("#[A-Z-]#","", $uuid); return self::toBase($ints, $base); } public static function ...
true
2012b12d35121c050f8b535f665386abfca08a12
PHP
ankurdewedi/pdfit
/class.pdfit.php
UTF-8
2,651
2.90625
3
[ "MIT" ]
permissive
<?php /** * Loads library for pdf generation. */ require 'vendor/autoload.php'; use Dompdf\Dompdf; class PdfIt { private static $initiated = false; /** * Initiation function of the plugin that will add a shortcode and add action for pdf download. * @static */ public static function init() { if ( ! self...
true
18fb9b14b718640accacbc91ee310d0713ee23d5
PHP
ibrows/post_wedec_bundle
/Api/Delivery/Util/WedecOAuthUriBuilder.php
UTF-8
2,618
2.78125
3
[]
no_license
<?php namespace Ibrows\PostWedecBundle\Api\Delivery\Util; use Ibrows\PostWedecBundle\Api\Delivery\Model\WedecOAuthClientInterface; class WedecOAuthUriBuilder { const OAUTH_TYPE_CREDENTIALS = 'client_credentials'; // Parameter keys const PARAMS_GRANT_TYPE_KEY = 'grant_type'; const PARAMS_CLI...
true
90d8973a297a2ff1f33c2a872a199af767557788
PHP
maduhu/bank
/spec/basic/SendCoinSpec.php
UTF-8
2,507
2.546875
3
[]
no_license
<?php namespace spec\groupcash\bank\basic; use spec\groupcash\bank\scenario\Scenario; /** * Coins can be sent from one account to another. */ class SendCoinSpec extends Scenario { function before() { parent::before(); $this->given->_HasReceivedACoin_Worth('bart', 'foo', 3, 'coin'); } f...
true
9c8ad9f9fdcf4750d1b9ef2285aa08ce28a0d212
PHP
MAJA-Lin/practicing
/src/Scott/PassbookBundle/Controller/CustomerController.php
UTF-8
4,476
2.546875
3
[]
no_license
<?php namespace Scott\PassbookBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\JsonRes...
true
4ef0ba0b9015900f5920e052c089051c9dc86b1e
PHP
keto214/Quiz-1.10
/module/Application/src/Model/Table/TalliesTable.php
UTF-8
1,004
2.59375
3
[]
no_license
<?php declare(strict_types=1); namespace Application\Model\Table; use Laminas\Db\Adapter\Adapter; use Laminas\Db\TableGateway\AbstractTableGateway; class TalliesTable extends AbstractTableGateway { protected $adapter; protected $table = 'tallies'; public function __construct(Adapter $adapter) { $this->adapte...
true
e46a369487c3a805e58e47aa5cc6ed28f5fee366
PHP
AudithSoftworks/Basis
/app/Listeners/Files/ValidateUploadRealMimeAgainstAllowedTypes.php
UTF-8
937
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Listeners\Files; use App\Events\Files\Uploaded; use App\Exceptions\FileStream as FileStreamExceptions; use Symfony\Component\HttpFoundation\File\File as SymfonyFile; class ValidateUploadRealMimeAgainstAllowedTypes { /** * @param \App\Events\Files\Uploaded $event * * @return bool...
true
bab29192b5c4e5940d7864aa0d6f6db7292b97c3
PHP
lalitkumar-786/Hackathon
/HACKATHON-Code/app/Http/Controllers/ranjeetController.php
UTF-8
1,388
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use App\login; use Illuminate\Support\Facades\Input; session_start(); class ranjeetController extends Controller { public function register(Request $request) { $user=new login; $user->email=Input...
true
d654f28195debbd3fc30c2e3244b3524961e784e
PHP
todokku/streams-2
/public/themes/locker/custom.php
UTF-8
15,771
2.78125
3
[ "MIT" ]
permissive
<?php /** * @author Jason F. Irwin * * Class contains the rules and methods called for the Locker site template */ require_once(LIB_DIR . '/functions.php'); require_once(LIB_DIR . '/markdown.php'); use \Michelf\Markdown; class Locker { var $settings; var $strings; function __construct( $settings, $st...
true
4ec2049794a55893716d3fd862f9b5573eb67793
PHP
StanY098/projects
/ShoppingListOrganizer/forgot_password.php
UTF-8
3,393
2.703125
3
[]
no_license
<?php require_once('function.php'); require_once('header.php'); require_once('footer.php'); connectDB(); $valid = true; /*need a token to authorize user to come in*/ $token = $_GET['token']; $token_query = "SELECT * FROM reset_token WHERE token='$token'"; $token_result = mysql_query(...
true
92b22772353f28c119d7ccfffaa4c9b7cdf29005
PHP
pablomatheusmm/php-frameworkless-skeleton
/App/Core/Router/Kernel/SimpleRoute.php
UTF-8
1,890
2.578125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: pablo * Date: 22/11/2019 * Time: 01:47 */ namespace App\Core\Router\Kernel; use App\Core\Exceptions\ActionNotFoundException; use App\Core\Exceptions\ClassNotFoundException; use App\Core\Exceptions\MethodNotAllowedException; use App\Core\Request; use ReflectionException; ...
true
62b4a53a525155e2e3f3b64f5a3429edc45d4f7c
PHP
np-wauxhall/laravel-apm
/src/Rendering/CommandSummaryRenderer.php
UTF-8
1,673
3.015625
3
[ "MIT" ]
permissive
<?php namespace Napopravku\LaravelAPM\Rendering; use Napopravku\LaravelAPM\Formatting\MemoryFormatter; use Napopravku\LaravelAPM\Formatting\TimeFormatter; use Napopravku\LaravelAPM\Statistics\Data\SummaryStatisticsData; use Symfony\Component\Console\Output\ConsoleOutput; class CommandSummaryRenderer { private co...
true
e99b2b7f00fe79dc84598d97f064f3a4d43d4355
PHP
Elfydia/movie-land
/src/model/CategoryModel.php
UTF-8
1,921
3.0625
3
[]
no_license
<?php class CategoryModel{ private $bdd; public function __construct() { $config = json_decode( file_get_contents(__DIR__."/../../config/" . ENV . "/db.json") ); try { $this->bdd = new PDO($config->dsn, $config->user, $config->pswrd, array(PD...
true
f9e6879eb1f5506cc6f00cd8db5687b9fddbda7e
PHP
FanleyHB/scrum
/src/Lib/Router.php
UTF-8
761
2.734375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: HB * Date: 03/12/2018 * Time: 11:06 */ namespace App\Lib; use App\Application; class Router { private $routes = []; public function __construct(){ include (__DIR__ . '/../../config/routes.php'); $this->routes = $routes; } public function ...
true
3fd2ca492aa8116d8b289404f6aa45ebf08b69c3
PHP
nnvrmnd/bucte-adminside
/assets/hndlr/Events.php
UTF-8
9,709
2.71875
3
[]
no_license
<?php /* Fetch for render */ if (isset($_POST['fetchevents'])) { require './db.hndlr.php'; $stmnt = 'SELECT * FROM events ORDER BY created_at ASC;'; $query = $db->prepare($stmnt); // $param = [$who]; $query->execute(); $count = $query->rowCount(); if ($count <= 0) { echo 'err:fetch'; exit(); } elseif ($c...
true
56c878333c2f061ede59197aabd6361875a8132b
PHP
TheBigBrainsCompany/rest-util
/src/Tbbc/RestUtil/Error/Mapping/ExceptionMappingInterface.php
UTF-8
1,285
2.515625
3
[ "MIT" ]
permissive
<?php /** * This file is part of tbbc/rest-util * * (c) The Big Brains Company <contact@thebigbrainscompany.org> * */ namespace Tbbc\RestUtil\Error\Mapping; /** * @author Benjamin Dulau <benjamin.dulau@gmail.com> */ interface ExceptionMappingInterface { /** * Exception full qualified class name that ...
true
723f0e45ab419329287eca64a236bbbe35d2d548
PHP
olegbukatchuk/book-php7-for-beginners
/11/create_forum.php
UTF-8
623
2.78125
3
[]
no_license
<?php require ('./require.php'); $create = 'CREATE DATABASE IF NOT EXISTS forum;'. $sql = 'CREATE TABLE IF NOT EXISTS forum ('. 'post_id INT UNSIGNED NOT NULL AUTO_INCREMENT,'. 'first_name VARCHAR(20) NOT NULL,'. 'last_name VARCHAR(40) NOT NULL,'. 'subject VARCHAR(60) NOT NULL,'. ...
true
29017575133d595625733e3088fc502603464e67
PHP
workforme/womi_backup
/womitest/common/models/Invest.php
UTF-8
2,342
2.765625
3
[]
no_license
<?php namespace common\models; use yii; use components\base\BaseActiveRecord; use yii\base\NotSupportedException; use yii\db\ActiveRecord; use yii\base\Model; use yii\web\IdentityInterface; use yii\helpers\VarDumper; use yii\db\Expression; use yii\behaviors\TimestampBehavior; /** * Loan model * * @property integ...
true
f7a8031da46f9ba7b33ee7b021c5d249a802c446
PHP
luisugueto/CPC
/admin/models/ArticlesPhotos.php
UTF-8
1,721
3.03125
3
[]
no_license
<?php include_once('Connection.php'); Class ArticlesPhotos extends Connection { private $ArticlePhotoId; private $ArticleId; private $Photo; //SET public function setArticlePhotoId($value) { $this->ArticlePhotoId = $value; } public function setArticleId($value) { $this->ArticleId = $value;...
true
a55f9a097c6a8fe31aed01271025695fb7afd5ee
PHP
Stephan-Pe/PHP-OOP
/aufgabe1/aufgabe1.php
UTF-8
171
2.5625
3
[]
no_license
<?php require 'tasks.php'; foreach ($tasks as $index => $task) { echo ("Name " . $task['user'] . "status: " . $task['status'] . "Dauer:" . $task['description']); }
true
a1f68a01e646de8a3105557fba0bf8e702d3caeb
PHP
NiclasV/todo
/db.php
UTF-8
374
2.953125
3
[]
no_license
<?php //Koppling till lokal "localhost" databas "todo" med inlogg och password $username = "admin"; $password = "admin123"; $dbname="todo"; $servername = "localhost"; try { $pdo = new PDO ("mysql:host=$servername;dbname=$dbname",$username,$password); } catch(PDOException $e){...
true
bef0747a5b5538058097b0780af41e74788a5ce7
PHP
tomroof/stagsource
/includes/class.settings.php
UTF-8
2,030
3.21875
3
[]
no_license
<?php /********************************************************************************************* Author : V V VIJESH Date : 04-Nov-2010 Purpose : settings class *********************************************************************************************/ class settings { protected $_properties; public...
true
58f645fd4f05634e3a58e65d671d8e722fab9703
PHP
abhishekpareek29/phpproject
/query-portal/replies.php
UTF-8
2,328
2.71875
3
[]
no_license
<?php //session started //connection is established to database //file containing neccessary functions is included session_start(); include('db_tango.php'); include('mentee_funct.php'); //restoring session variables $e = $_SESSION["email_id"]; $role_id = $_SESSION["role_id"]; $user_id = $_SESSION["user_id"]; $u_name...
true
44467b55e64b7a8237f44d0160c0c23f2d40d1e1
PHP
hw233/xiangjingchuangshuo_server-c-
/trade/vendor/myqee/server/src/WorkerCustom.php
UTF-8
5,942
2.71875
3
[ "Apache-2.0" ]
permissive
<?php namespace MyQEE\Server; /** * 自定义子进程工作对象 * * 注意:在自定义子进程里 `$this->server->worker_id` 是 null * * @package MyQEE\Server */ class WorkerCustom { use Traits\Worker; public $name = ''; /** * 自定义进程序号, 从0开始 * * @var int */ public $customId; /** * 当前子进程的对象 * ...
true
675a00816d6c4f814a3d2b943ecbdec34500839e
PHP
MangiringJosua/restoran
/application/helpers/misc_helper.php
UTF-8
4,949
2.671875
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); function __set_error_msg($arr) { $CI =& get_instance(); return $CI -> memcachedlib -> set('__msg', $arr, '60'); } function __get_error_msg() { $CI =& get_instance(); $css = (isset($CI -> memcachedlib -> get('__msg')['error']) == '' ? 'suc...
true
f1a8339934b43644a6462f015b00f8bb5e246059
PHP
zoushuai518/php
/PhpCodeTest/php_array_max_min.php
UTF-8
231
3.171875
3
[]
no_license
<?php //还有什么会比PHP的方法高效? //最大的 $a=array('1','3','55','99'); $pos = array_search(max($a), $a); echo $a[$pos]; //最小的 $a=array('1','3','55','99'); $pos = array_search(min($a), $a); echo $a[$pos]; ?>
true
636d77f67916c4837b6aa1c85de04b78f517c126
PHP
intohole/service-beauty
/yaf_library/Service/Soap/Server.php
UTF-8
4,392
2.59375
3
[]
no_license
<?php /** * SOAP服务端,需要project.ini文件,格式见yaf_sample项目 Yaf_Registry::get('server_project') 服务端的name和code Yaf_Registry::get('client_project') sdk传过来的对应的project的name和code * @author xiepeng@joyport.com */ class Service_Soap_Server { private $authResult; /** * 启动soap服务端 * * @throws ErrorException */ public ...
true
0d4327c622c9852c040d12a79b6700772f42b5d2
PHP
azlabsphp/drewlabs-contracts
/src/Auth/UserAccountProvider.php
UTF-8
1,405
2.71875
3
[]
no_license
<?php declare(strict_types=1); /* * This file is part of the drewlabs namespace. * * (c) Sidoine Azandrew <azandrewdevelopper@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Drewlabs\Contracts\Auth; interfa...
true
ee269df70d87c171a98adbf49fd803fe5b1277c4
PHP
escuccim/LaravelBlog
/tests/BlogTest.php
UTF-8
5,562
2.515625
3
[]
no_license
<?php use Illuminate\Foundation\Testing\WithoutMiddleware; use Illuminate\Foundation\Testing\DatabaseMigrations; use Illuminate\Foundation\Testing\DatabaseTransactions; use Illuminate\Support\Facades\Redis; class BlogTest extends TestCase { use DatabaseTransactions; /** * Test blog pages * * @return void *...
true
6e713ef454ccd7b8bf585b38d61682638c95a7f5
PHP
csrdelft/csrdelft.nl
/lib/common/Security/Voter/Entity/PeilingVoter.php
UTF-8
3,594
2.609375
3
[]
no_license
<?php namespace CsrDelft\common\Security\Voter\Entity; use CsrDelft\common\CsrException; use CsrDelft\common\Security\Voter\CacheableVoterSupportsTrait; use CsrDelft\entity\peilingen\Peiling; use CsrDelft\repository\peilingen\PeilingOptiesRepository; use Symfony\Component\Security\Core\Authentication\Token\TokenInter...
true
e4c29ff4cacefd6e78e55c2c243c0e12f6ec219d
PHP
sonixtwo/dgbin
/admin/save-file/preview-file.php
UTF-8
2,852
2.875
3
[]
no_license
<?php include "../../shared/settings.php"; include "../../shared/functions.php"; session_start() or die("Could not start session."); $link = mysql_connect(DATABASE_SERVER_NAME, DATABASE_USERNAME, DATABASE_PASSWORD) or die("Could not connect: " . mysql_error()); mysql_select_db(DATABASE_NAME, $link) or...
true
c43d46ee7b4af6e914f7990c6e30bf9fcc56228d
PHP
Mistralys/mailcode
/tests/testsuites/Factory/Commands/ElseIfVariable.php
UTF-8
1,320
2.703125
3
[ "MIT" ]
permissive
<?php use Mailcode\Mailcode_Factory; use Mailcode\Mailcode_Commands_Command_ElseIf_Variable; final class Factory_ElseIfVariableTests extends FactoryTestCase { protected function getExpectedClass() : string { return Mailcode_Commands_Command_ElseIf_Variable::class; } public function test_e...
true
d71119f487b18f38864ea575ecb61b9390b07dc4
PHP
adamquaile/repo-watch
/src/AdamQuaile/RepoWatch/Events/TagEvent.php
UTF-8
477
2.765625
3
[]
no_license
<?php namespace AdamQuaile\RepoWatch\Events; use AdamQuaile\RepoWatch\Objects\GitRepo; use AdamQuaile\RepoWatch\Events\BranchBasedEventInterface; class TagEvent extends BaseEvent { private $tag; public function __construct(GitRepo $gitRepo, $tag) { parent::__construct($gitRepo); $this...
true
b59fb38ecb7f0642a041c71d33acb8965634df95
PHP
SocioProphet/SIVeL
/bcrypt.php
UTF-8
2,721
3
3
[]
no_license
<?php // vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker fileencoding=utf-8: /** * Funciones para uso de bcrypt. * * PHP version 5 * * @category SIVeL * @package SIVeL * @author Vladimir Támara <vtamara@pasosdeJesus.org> * @copyright 2014 Dominio público. Sin garantías. * @license https://w...
true
0fe04ea5771866c095f56bf56426fe41be1d1ee1
PHP
wsppt/lnmpcheck
/checkitems/phpHang.php
UTF-8
1,242
2.59375
3
[]
no_license
<?php /** * @file phpHang.php * @author zhonghuali241@163.com * @date 2015-1-28 * @desc php进程是否hang住的检查 */ //需要root权限运行 class phpHang extends LnmpCheck { public $priority = 4; public function check(){ $c_user = Utils::get_current_uname(); if($c_user != 'roo...
true
a424940f659676d9212bd9025977a797ca1197da
PHP
karonte691/DataSmoke
/src/Lib/Generator/RandomBoolean.php
UTF-8
325
2.828125
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
<?php declare(strict_types=1); namespace DataSmoke\Lib\Generator; /** * Class RandomBoolean */ final class RandomBoolean { /** * Generate random bool(true/false) * * @return bool * @throws \Exception */ public function value(): bool { return (bool)\random_int(0, 1); ...
true
c8b367dee719af50a8d01486a2340afd7aee3a71
PHP
ludik1/transport_company
/app/AdminModule/Datagrids/OrdersGrid.php
UTF-8
1,443
2.609375
3
[]
no_license
<?php namespace AdminModule\Datagrids; use Models\OrdersModel, Nette\Utils\Html; class OrdersGrid extends \Hyp\Application\UI\Controls\BaseGrid { /** * @var OrdersModel */ private $ordersModel; private $user; /** * @param OrdersModel $ordersModel */ public function __construct(Orders...
true
57b4fb6c6e992e46fbd2f9b8f2aab80c6c3c95fc
PHP
nguyentd92/Codegym
/Module2/findmaxvalue/index.php
UTF-8
2,306
3.453125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <?php function maxOfArray($matrix) { $max = $matrix[...
true
085c6f9da46ac3b82b1daa7939c9b0922a3ad570
PHP
dghyse/sweelix-yii1-admin-core
/components/BaseModule.php
UTF-8
3,017
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * File BaseModule.php * * PHP version 5.4+ * * @author Philippe Gaultier <pgaultier@sweelix.net> * @copyright 2010-2014 Sweelix * @license http://www.sweelix.net/license license * @version 3.1.0 * @link http://www.sweelix.net * @category components * @package sweelix.yii1.admin.core....
true
85487d28a59a70a0d66e0e933e9449b97f01b623
PHP
LaurynasK/CodeIgniter-Fusion-CMS
/application/helpers/date_converter_helper.php
UTF-8
274
2.734375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); if (!function_exists('convert_date')) { function date_format_converter($date, $format = 'Y-m-d') { $new_Date = new DateTime($date); return $new_Date->format($format); } }
true
b18f0a761afa14da57be4f365d40339050a0db41
PHP
pierodc/TempBuddy
/Views/list_workers.php
UTF-8
650
2.65625
3
[]
no_license
<? $Workers = new worker(); if($List = $Workers->view_all()){ ?><h1>Workers</h1> <table border="1" cellpadding="4"> <tbody> <tr> <td><h3>userID</h3></td> <td><h3>name</h3></td> <td><h3>action</h3></td> </tr> <?php foreach($List as $individual) { ?> <tr <? if(isset($_GET['userID'...
true
94c0cc76e55dff72ad078efe7bc7a80905ce0812
PHP
AndriusAlimas/OnlineNoteApp
/updatenote.php
UTF-8
627
2.6875
3
[]
no_license
<?php session_start(); include("connection.php"); // get the id of the note sent through Ajax $id = $_POST['id']; // see post method part of data // get the content of the note $note = $_POST['note']; // get the time $time = time(); // run a query to update the note $sql = "UPDATE `n...
true
0572d27f0b1d8d7b957a305bc15afd05e8398dd8
PHP
jesus1061/mateo
/application/models/banner_model.php
UTF-8
2,028
2.84375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php include_once "conexion.php"; class Banner_model{ public function crear_banner($banner_nombre , $banner_imagen , $tipo_banner){ $instancia_conexion = new Conexion(); $pdo = $instancia_conexion -> obtener_conexion(); $banner_nombre."<br>".$banner_imagen; $sql = $pdo->prepare('INSERT INTO banners (banne...
true
02f45a69185581fd35203443bf591ae49e591f2b
PHP
johann-chan/php-collections
/src/Collections/Implementations/CountableImplementation.php
UTF-8
237
2.765625
3
[]
no_license
<?php namespace Collections\Implementations; trait CountableImplementation { /** * @see http://php.net/manual/fr/class.countable.php */ public final function count() { return count($this->array); } }
true
5477f6a65cdbfb108136d56ef0a6473e072dbe0c
PHP
Tetsudei/htmlparser
/html_parser.php
UTF-8
5,573
3.375
3
[]
no_license
<?php // Validate Short-Tags (Selbsschließende HTML Tags); $valid_short_tags = array('br', 'img', 'hr'); $text = 'tr<p><p><span>fugz</span> vbhjo</p>est<div id="blahblah" class="xy">TECHNISCHE DATEN<br>USB Spezifikation 1.1<br></div>RS232 serieller Anschluss mit DB9 Stecker.<br>TECHNISCHE DATEN<br>USB Spezifikatio...
true
94c0c7d8d80fb4facede9196e35832921cf76271
PHP
self-destruction/2HACKATHON
/src/Service/AbstractConnector.php
UTF-8
954
3.046875
3
[]
no_license
<?php namespace App\Service; use Doctrine\DBAL\Connection; abstract class AbstractConnector { protected $dbConnection; private $dbName; public function __construct(Connection $dbConnection, $dbName) { $this->dbConnection = $dbConnection; $this->dbName = $dbName; } //Get names of columns...
true
c1511e4d3f9faa40674709b6595e50d249ca20e8
PHP
brunoibarbosa/petgram
/petgram/App/Models/PetUser.php
UTF-8
11,913
3.078125
3
[]
no_license
<?php namespace App\Models; use MF\Model\Model; class PetUser extends Model { private $id; private $username; private $petname; private $bio; private $email; private $petword; private $id_animal; private $active; public function __get($attr) { return $this->$attr; } public function __set(...
true
a03f076bdb888bbda2fce59f125dd789c6b8f3e7
PHP
nafasameri/admin-panel-api-gate
/System/Database/Model/Base.class.php
UTF-8
9,331
2.875
3
[ "MIT" ]
permissive
<?php namespace System\Database\Model; use System\Communicate\Debug\Console; use System\Database\Gate; /** * handle the models to connect to database and run commands on tables * * @property string $tableName * @property string $instance * @property string $server * @property array $columns * @property stri...
true
90776d5b08b067154f7549dba568df0e460571a1
PHP
dkaruturi/TicketSystem
/Temp/CS_4501/assignment2/generate.php
UTF-8
395
2.8125
3
[ "MIT" ]
permissive
<html> <body> <?php //annoying notices error_reporting(E_ERROR | E_WARNING | E_PARSE); $filename = 'quizzes.txt'; //clear current //build default and remove taken quiz for ($x = 0; $x < $size; $x++) { $x=$x*2; $new_string = "{$x} {$x}"; file_put_contents($filename,$new_string,FILE_APPEND| LOCK_EX); file_put_...
true
3bcde9dd9def2b453a6a968d16ae64a64f42c919
PHP
vishu3278/wowitsol
/wowadmin/include/edit_culture_post.php
UTF-8
25,369
2.515625
3
[]
no_license
<?php include_once ('../../config.php'); if($_POST['save'] == TRUE){ $c_id = $_POST['c_id']; $c_title = $_POST['c_title']; $a = $_FILES["fileToUpload"]["name"]; if($a!='') { $i...
true
eb552dbb0b92ae1ef0490e8c3630bd0497c17be8
PHP
EonConsulting/develop
/app/Http/Controllers/Courses/CourseStorylineController.php
UTF-8
3,840
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Peace-N | vamoose * Date: 7/22/2017 * Time: 12:26 PM */ namespace App\Http\Controllers\Courses; use App\Models\Course; use App\Models\Storyline; use App\Models\StorylineItem; use EONConsulting\Storyline\Core\Flow\DBTaxonomy\DBCourseStorylineBase; use Illuminate\Http\Reques...
true
ad71e5ca36e186298ac2b4e297d75bfe929e3df5
PHP
aru2-star/mvc
/cybercom/Controller/Core/Abstracts.php
UTF-8
1,703
2.8125
3
[]
no_license
<?php namespace Controller\Core; class Abstracts { protected $layout = null; protected $request = null; protected $session = null; protected $message = null; public function __construct() { $this->setRequest(); $this->setLayout(); } function setRequest() { $this->request = \Mage:...
true
ba04a7cfb87a24e017623bb2b4bbf78d9c96b15b
PHP
lds2129/cs313php
/web/results.php
UTF-8
966
2.953125
3
[]
no_license
<!DOCTYPE html> <html> <head> </head> <body> <?php $name = $_POST["name"]; $gender = $_POST["gender"]; $ageGroup = $_POST["ageGroup"]; $expectation = $_POST["expectation"]; $comment = $_POST["comment"]; if (empty($name) || empty($gender) || empty($ageGroup) || empty($comment)) { ...
true
9b4397428fcba42ffb73f156b925aedc990c6aed
PHP
afernandezro7/pos_inventory_sys
/ajax/clients.ajax.php
UTF-8
1,189
2.609375
3
[]
no_license
<?php require_once "../models/connection.php"; require_once "../models/client.model.php"; class AjaxClients{ private $idClient; public function setIdClient($idClient){ $this -> idClient = $idClient; } public function ajaxEditClient(){ $idClient = $this -> idClient; $res = Cl...
true
f6569ea6398469cca67c5294aeb09b4ae9a60015
PHP
abdullah-bd/Web
/crud/classes/info.php
UTF-8
1,989
3.078125
3
[]
no_license
<?php class info { public $name; public $id; private $conn; private $host = 'localhost'; private $user = 'root'; private $password = ''; private $database = 'person_info'; function __construct() { echo 'Crud Started.<br/>'; $this->conn = mysqli_connect($t...
true
da3dddce8d211501f96d418fd50346010e3e8993
PHP
asmezequiel/gestionfarmaceutica
/database/seeds/MovimientosSeeder.php
UTF-8
1,059
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class MovimientosSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { //$tipo_movimiento = array( 'alta' , 'baja' ) for ($i = 0; $i <= 50; $i ++) { $movimiento = new App\Movimiento...
true
0d3a9cc14f5ecad1f68723283e4b93b73f3e84a5
PHP
kanawanzx/selene
/includes/admin/inc/extensions/wbc_importer/function.php
UTF-8
4,030
2.515625
3
[]
no_license
<?php /* * ********************************************************************** * Extended Example: * Way to set menu, import revolution slider, and set home page. * *********************************************************************** */ $demo_active_import = array( 'directory' => 'current demo data ...
true
5562f0e5da20defaa61fb159385ae57282998212
PHP
xavier-rodet/php-tests-helpers
/src/TestIteratorTrait.php
UTF-8
2,575
2.78125
3
[]
no_license
<?php declare(strict_types=1); namespace Snailweb\Helpers\Tests; trait TestIteratorTrait { use AccessProtectedTrait; private $iteratorObject; private $keyName; private $arrayName; public function setUpIterator(string $iteratorClass, string $keyName = 'key', string $arrayName = 'array') { ...
true
0bd36326d90200f5183722383a172a713a631e61
PHP
JesusValera/yatzy-kata
/src/Dice.php
UTF-8
372
3.390625
3
[]
no_license
<?php declare(strict_types=1); namespace Yatzy; final class Dice { private int $number; private function __construct(int $number) { $this->number = $number; } public static function createFromInt(int $number): self { return new self($number); } public function value...
true
d585a0e4f8c0844d1aad0ebf651775839a18b062
PHP
ArmandoJunior/php-mvc
/app/Controllers/UsersController.php
UTF-8
510
2.640625
3
[]
no_license
<?php namespace App\Controllers; use App\Models\User; use JRN\Controller; class UsersController extends Controller { /** * UsersController constructor. * @param User $model */ public function __construct(User $model) { var_dump(get_class($model)); $this->model = $model; ...
true
1ec01eb23627dda433460188e01a0147b469283e
PHP
Daniel-Tshragyan/PHP-Exercises
/exercises_mvc/models/OrderProducts.php
UTF-8
1,240
3.140625
3
[]
no_license
<?php namespace models; use db\DB; class OrderProducts { private $tablename = 'order_products'; private $conn; function __construct(){ $db = DB::getInstance(); $this->conn = $db::getConnection(); } public function getAll()...
true
45ec8f71f0d92d248affeec9ea2fb6be6579ffc0
PHP
thuraaung2493/laravel_7_features_and_livewire_crud
/app/Services/NewsService.php
UTF-8
1,044
2.609375
3
[]
no_license
<?php namespace App\Services; use Carbon\Carbon; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Http; class NewsService { public function headlines(): Collection { $response = Http::get(config('news.top_headlines_url')); if ($response->serverError() || $response->clientErr...
true
9c066862bea4607d2119450b9e1dc189df69d2d3
PHP
cXLGD/future_ci
/application/controllers/admin/Login.php
UTF-8
3,608
2.53125
3
[]
no_license
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Login extends MY_Controller { public function __construct() { parent::__construct(); } function index() { $this->load->helper('form'); $this->load->library('form_validation'); $this->form_...
true
5e2678b27e19b8830b839784d5341efab0135bf6
PHP
ulff/phpcon-demo
/blog/src/Domain/FixturesEngine/ReferenceRepository.php
UTF-8
553
2.953125
3
[]
no_license
<?php namespace Domain\FixturesEngine; class ReferenceRepository { /** * @var array */ private $repo; public function __construct() { $this->repo = []; } /** * @param string $identifier * @param mixed $value */ public function addReference($identifier, $v...
true
7cb36698c6a9dffe8d30e55684a4c41b09a56c0d
PHP
mpashkovskiy/yii-fields-api
/models/FieldsObject.php
UTF-8
2,297
2.9375
3
[]
no_license
<?php class FieldsObject { private $errors; private $data; private $values; public $object_id; function __construct() { $this->data = array(); $this->errors = array(); $this->values = array(); } function addField($data) { $this->data[$data[Field::NAME]] = $data; } functio...
true
a818f337daf6f140e900298481945d3f58e81222
PHP
ebsp/resting
/src/Parsing/ParseContext.php
UTF-8
288
2.671875
3
[]
no_license
<?php namespace Seier\Resting\Parsing; interface ParseContext { public function isStringBased(): bool; public function getValue(): mixed; public function isNull(): bool; public function isNotNull(): bool; public function inherit(mixed $value): ParseContext; }
true
31aaa852f0cb86417c11d16501e5efd7dd435e29
PHP
tsoffereins/wikitext-query
/tests/QueryTest.php
UTF-8
853
2.703125
3
[]
no_license
<?php declare(strict_types=1); use PHPUnit\Framework\TestCase; use Wikitext\Matcher; abstract class QueryTest extends TestCase { /** * Get a mock for a Matcher. * * @param string $selector * @param string $pattern * @param int $matchIndex * @param bool $groupConsecutive ...
true
8708b6cd82a2de760712960f028eb2b2cfa3e112
PHP
lucascranach/importer
/src/Modules/Archivals/Entities/Archival.php
UTF-8
5,210
2.609375
3
[ "MIT" ]
permissive
<?php namespace CranachDigitalArchive\Importer\Modules\Archivals\Entities; use CranachDigitalArchive\Importer\Modules\Main\Entities\AbstractImagesItem; use CranachDigitalArchive\Importer\Modules\Main\Entities\Metadata; use CranachDigitalArchive\Importer\Modules\Main\Entities\Publication; use CranachDigitalArchive\Imp...
true
f33894ec84d504f2192d0533a05dcaabc0bbdf8b
PHP
ScottLync/PRISM
/modules/prism_telnet_plugins.php
UTF-8
1,988
2.6875
3
[ "MIT" ]
permissive
<?php /** * PHPInSimMod - Telnet Module * @package PRISM * @subpackage Telnet */ class TSPluginSection extends TSSection { public function __construct(ScreenContainer $parentSection, $width, $height, $ttype = 0) { parent::__construct($parentSection); $this->setLocation(1, 3); $this-...
true
d86dfa2208a31fe3406a34e613d267e783542be3
PHP
Certas-web/fuelcardsapi
/src/AppBundle/Entity/WpRgFormMeta.php
UTF-8
2,193
2.6875
3
[]
no_license
<?php namespace AppBundle\Entity; /** * WpRgFormMeta */ class WpRgFormMeta { /** * @var string */ private $displayMeta; /** * @var string */ private $entriesGridMeta; /** * @var string */ private $confirmations; /** * @var string */ private ...
true
5d79a68664b78d91c4de01cf681aace7fa4628d6
PHP
deepdubey/alumni-management
/php/ad61681e19fd47485158fb949705c218/getStudents.php
UTF-8
1,806
2.765625
3
[]
no_license
<?php // error_reporting(0); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style> body{ background-image: url("../../img/books...
true
ac1ab0007f5e26db1936befc52f0a5c8e7192d31
PHP
labelexe/PHP-Challenges
/List Of Challenges/25. Number of characters.php
UTF-8
989
4.21875
4
[]
no_license
<?php /* 25. Number of characters >Create a function called strCount that accepts 2 string arguments and returns an integer of the count of occurrences the 2nd argument is found in the first one. If no occurrences can be found, a count of 0 should be returned. EXAMPLE: strCount('Hello', ...
true
8d80dd771db99c1b1c4d03fbfc2c2232b2ca8ec4
PHP
karmeljuk/cakes
/pagination.php
UTF-8
978
2.765625
3
[]
no_license
<?php /** * Pagination template part. * @package cakes */ ?> <nav class="page-navigation" role="navigation"> <?php if($wp_query->max_num_pages>1) : ?> <?php ($paged == 0) ? $paged = 1:"" ?> <?php if ($paged > 1) : ?> <a href="<?php echo '?paged=' . ($paged -1); ?>" class="previous-page">previous pa...
true
601bb3a0f20980d5c27446cbeff2625801f93840
PHP
fivesqrd/fluent-frontier-php
/src/Event/Fetch.php
UTF-8
291
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Fluent\Event; class Fetch { protected $_api; protected $_id; public function __construct($api, $id) { $this->_api = $api; } public function fetch() { return $this->_api->call('event', 'get', array('id' => $this->_id)); } }
true
71d240547072e61ed5e0e19548992c6efbeaa96c
PHP
Vivekbhardwaj17/PhpAssignment.github.io
/server.php
UTF-8
3,829
3.046875
3
[]
no_license
<?php session_start(); // initializing variables $username = ""; $email = ""; $dl =""; $errors = array(); // connect to the database $db = mysqli_connect('localhost', 'root', '', 'assignment'); // REGISTER USER if (isset($_POST['reg_user'])) { // receive all input values from the form $usernam...
true
e812fc20eee4725bfaf04d476372c03e59aa8ad3
PHP
irbowen/weight_app
/src/api/WorkoutController.php
UTF-8
3,155
2.8125
3
[]
no_license
<?php declare(strict_types = 1); require_once __DIR__ . '/../../vendor/autoload.php'; /* * This is the translater class - it receives incoming request objects, * and translate the HTTP request into a nice, clean, friendly for the * underlying storage system * * @authoer Isaac Bowen bowen.isaac@gmail.com */ c...
true
0ae2c7f77287f910459e6008184bb92aeb73d5c4
PHP
kbrintle/sme-wotcart
/common/models/store/StoreFavoriteListItem.php
UTF-8
1,580
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models\store; use Yii; /** * This is the model class for table "store_favorite_list_item". * * @property integer $item_id * @property integer $list_id * @property integer $product_id * @property integer $qty * @property string $description * @property string $sku * @property string $b...
true
2d8e2fda2453ded88f365249af9f269192b6e088
PHP
maestrowebdeveloper/taro_simpeg
/simpeg/views/report/penerimaHukumanExcel.php
UTF-8
1,248
2.640625
3
[]
no_license
<h2>DATA PEGAWAI YANG MENERIMA HUKUMAN KABUPATEN SAMPANG</h2> <h4>Tanggal : <?php echo date('d F Y');?></h4> <?php if ($model !== null):?> <table border="1"> <tr> <th width="80px">HUKUMAN</th> <th width="80px">NOMOR REGISTER</th> <th width="80px">NIP</th> ...
true
7708e55d620f61c6c595505c244dba2664f28678
PHP
yar3333/meta-serializer
/src/MetaSerializer/MetaDeserializer.php
UTF-8
9,645
2.84375
3
[]
no_license
<?php namespace MetaSerializer; class MetaDeserializer { protected const STD_TYPES = ['string', 'int', 'float', 'array', 'bool', 'object']; protected $methodSuffix; protected $phpDocMetaPrefix; public function __construct(string $methodSuffix = "_deserialize", string $phpDocMetaPrefix = "") { ...
true
00926acd3cc97725f4de4f505639868773f97ab9
PHP
Werdffelynir/Qm
/system/Library/Singleton.php
UTF-8
395
3.078125
3
[ "MIT" ]
permissive
<?php namespace Classes; class Singleton { protected static $instance; private function __construct(){ } private function __clone(){ } private function __wakeup(){ } public static function getInstance() { if ( !isset(self::$instance) ) { self::$instance = new self(); ...
true
b5ba39f478d86cabba91c252ea7c504e6abbd12b
PHP
augusto642/farmacia
/editar-cliente.php
UTF-8
3,639
2.515625
3
[ "MIT" ]
permissive
<?php include ('classes/Mysql.php'); if(isset($_GET['id'])){ $id= $_GET['id']; $sql= MySql::conectar()->prepare("SELECT * FROM `tb_clientes` where id=$id"); $sql->execute(); $cliente= $sql->fetch(); } ?> <div class="cadastro-cliente"> <h3 class="page-header">Editar Cliente</h3> <form ...
true
c26ff26bf73c28820109c1ee474e40007b9a0ab2
PHP
MuhammadRifan/Pemrograman-Web
/Tugas_jQuery_Ajax/data.php
UTF-8
1,639
2.671875
3
[]
no_license
<?php require 'config.php'; $data = [ 'nama' => "MUHAMMAD RIF'AN", 'desc' => "A boy from a small family yet has a big dream. Even though I'm a lazy person, I always do something with full effort. I study computer science to learn how to make a game but after 3 years or something, I still didn't...
true
96c47d00ed2d60035bf8cc0807b7838ffc0fa78b
PHP
guillaumegalzy/PHP_CDA
/php/EX4.1.php
UTF-8
3,540
2.6875
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+N...
true
c908757eb9f37c4eb2cdd8a4d6a4c396ba0802c2
PHP
SMillerDev/lunr
/src/Lunr/Gravity/Database/MySQL/Tests/MySQLCanonicalQueryBaseTest.php
UTF-8
11,929
2.6875
3
[ "MIT" ]
permissive
<?php /** * This file contains the MySQLConnectionEscapeTest class. * * @package Lunr\Gravity\Database\MySQL * @author Heinz Wiesinger <heinz@m2mobi.com> * @copyright 2012-2018, M2Mobi BV, Amsterdam, The Netherlands * @license http://lunr.nl/LICENSE MIT License */ namespace Lunr\Gravity\Database\MyS...
true
dda942a100f458c1b5f289961e91dc0bc5cd22ac
PHP
icepoke/swooleyaf
/libs_frame/SyCloud/Tencent/Util.php
UTF-8
3,145
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: 姜伟 * Date: 2020/9/2 0002 * Time: 10:39 */ namespace SyCloud\Tencent; use SyTool\Tool; use SyTrait\SimpleTrait; /** * Class Util * * @package SyCloud\Tencent */ abstract class Util { use SimpleTrait; /** * 生成TC3签名 * * @param string $secretId ...
true
fce85e6d0f2ee18e24990dc869eb72c165d1aaa0
PHP
hellowitsme/sharebook
/post.php
UTF-8
7,851
2.6875
3
[]
no_license
<?php //共通ファイル require('function.php'); debug('----------------------------------------------------------------------------'); debug('「投稿ページ」'); debug('----------------------------------------------------------------------------'); debugLogStart(); //ログイン認証 require('auth.php'); //================================ //...
true
cdaf49d9044d580eff390ff74f36d74c2570aa0f
PHP
ioncode/yii2k18_app
/yii2-app-basic/models/Trip.php
UTF-8
2,817
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "trip". * * @property int $id * @property int $corporate_id * @property int $number * @property int $user_id * @property int $created_at Дата и время создания * @property int $updated_at Дата и время последнего обновления * @proper...
true
14ebb2d90b602ac654116ffd1260226c947a3abf
PHP
foomo/Foomo.Services
/lib/Foomo/Services/Reflection/ServiceOperation.php
UTF-8
3,901
2.90625
3
[]
no_license
<?php /* * This file is part of the foomo Opensource Framework. * * The foomo Opensource Framework is free software: you can redistribute it * and/or modify it under the terms of the GNU Lesser General Public License as * published  by the Free Software Foundation, either version 3 of the * License, or (at your ...
true
e5fef51aa3609315858d24f6c7a3f525b871531c
PHP
minhtrungduong/itas255_f20_minhtrung.duong
/lab1/Bulbasaur.php
UTF-8
361
3.1875
3
[]
no_license
<?php require_once 'Pokemon.php'; class Bulbasaur extends Pokemon { public function __construct($weight, $hp, $latitude, $longtitude) { parent::__construct('Bulbasaur', 'bulbasaur.png',$weight, $hp, $latitude, $longtitude, 'grass'); } public function getDamage() { r...
true
27fee14308724fd42a8200cf7f1cb15982af799a
PHP
shouc/corbfuzz
/php/ext/pdo_firebird/tests/bug_77863.phpt
UTF-8
3,140
2.609375
3
[ "GD", "BSD-3-Clause", "BSD-4-Clause-UC", "ISC", "IJG", "Zlib", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-other-permissive", "TCL", "BSD-2-Clause", "OLDAP-2.8", "PHP-3.01", "MIT" ]
permissive
--TEST-- PDO_Firebird: Bug #76488 PDO Firebird does not support boolean datatype in input parameters --SKIPIF-- <?php require('skipif.inc'); ?> --FILE-- <?php require 'testdb.inc'; $sql = <<<SQL with t(b, s) as ( select true, 'true' from rdb\$database union all select false, 'false' from rdb\$database union a...
true
6a39f37f10c03f6923cb996c4350d75549a0887b
PHP
suliang20/trhui
/src/data/ItemList.php
UTF-8
3,298
2.796875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: su * Date: 2017/12/29 * Time: 18:21 */ namespace trhui\data; use trhui\TpamException; /** * 商品列表(不校验金额,仅校验数据格式,用于以后数据挖掘) * Class ItemList * @package trhui\data */ class ItemList extends DataBase { /** * 商品编号 * @param $value */...
true
05ab9aa8b082a2b24dbebadd39e886db0279a31d
PHP
Ferronata/senapa
/application/models/PessoaJuridica.php
ISO-8859-1
2,967
2.90625
3
[]
no_license
<?php /** * Modelo da classe PessoaJuridica * Data de Cricao - 17/05/2010 * @author Leonardo Popik e Joo Marcos => Classgen 1.0 * @package senapa * @subpackage senapa.application.models * @version 1.0 */ require_once("Pessoa.php"); class PessoaJuridica extends Pessoa { protected $_name = 'pessoa_juridica'; pr...
true
2c1af3e23680e4b9288aab2ed642a8850ca7c7f3
PHP
karunakarg/ykweb
/kart/addcity.php
UTF-8
1,886
2.546875
3
[]
no_license
<? include('sqlcon.php'); include('kartlib.php'); $step=$_GET['step']; if($step==2) { $sid=$_POST['state']; if($_POST['save']) { $cities=$_POST['cities']; $cities=explode(',',$cities); foreach($cities as $val) { $q="INSERT INTO `city` ( `cid` , `sid` , `name` ) VALUES ( NULL , '$sid', '$val' )"; mysql_query($q) or d...
true
f53ee8a7fa40eb8ebf38f90a23feb87e8ef57d5f
PHP
onglo/edutixticketingsystem
/public_html/scripts/fetchSavedEvents.php
UTF-8
4,980
2.9375
3
[]
no_license
<?php require_once "/home/sites/edutix.co.uk/config/config.php"; // start a session if there isn't one already if (session_id() == "") { session_start(); } // connect to our database $link = mysqli_connect($dbServer, $dbUsername, $dbPassword, $dbUsername); // check if the connection was succesful if(mysqli_conn...
true
bf40605998562496825695c046ef572282770ca3
PHP
im4aLL/design-pattern
/adapter-pattern.php
UTF-8
1,814
3.265625
3
[]
no_license
<?php interface NotificationInterface { public function send(); } class Notification implements NotificationInterface { public function send() { return 'Default notification service!'; } } class SMS { public function differentSendMethod() { return 'SMS notification service'; ...
true
0879364a2655a75768883bc6d3192caff9fa9e34
PHP
assasin0308/saga
/src/Saga/SimpleSaga.php
UTF-8
712
3.046875
3
[ "MIT" ]
permissive
<?php namespace Zack\Saga; use Zack\Saga\Exception\SagaException; class SimpleSaga implements SagaInterface { /** * @var callable */ private $callback; /** * SimpleSaga constructor. * @param callable $callback */ public function __construct(callable $callback) { ...
true
9a84da9e4ecc8703faeb7081b3fa748b8243e665
PHP
usoni2210/Blood-Donate
/Backend/getDonor.php
UTF-8
1,953
2.546875
3
[]
no_license
<?php require 'connection.php'; require 'function/getCity.php'; require 'function/getDirectDistance.php'; $response = array(); $donor = array(); if($_SERVER['REQUEST_METHOD'] == 'POST'){ if(isset($_POST['user_name']) && isset($_POST['contact_no']) && isset($_POST['bloodgrp']) && isset($_POST['latlag...
true
420bb6dd5d93bf595c7255a4fe71dc704eb2499a
PHP
asbamboo/security
/user/login/BaseLogout.php
UTF-8
1,070
2.765625
3
[]
permissive
<?php namespace asbamboo\security\user\login; use asbamboo\http\ServerRequestInterface; use asbamboo\security\user\token\UserTokenInterface; use asbamboo\security\user\AnonymousUser; use asbamboo\event\EventScheduler; use asbamboo\security\Event; /** * 注销登录 * * @author 李春寅 <licy2013@aliyun.com> * @since 2018年8月28...
true
93605e28cd112ee6c42e3aca5da8e2abe11dd6aa
PHP
Dewdrops/ues_game_auth
/app/Services/RankService.php
UTF-8
641
2.65625
3
[]
no_license
<?php namespace App\Services; use App\User; use Illuminate\Support\Str; class RankService { public function updateRank(string $app, int $id, int $score, ?string $rankType = null) { if (!Str::endsWith($app, '_oppo')) { throw new \Exception("app ${app} not support updateRank operation", -...
true