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
bf95577eb794612bae511e7e7ba379e859cb13bd
PHP
barneytran/bwidproject
/database/migrations/2017_09_01_063756_create_product_table.php
UTF-8
995
2.578125
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateProductTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('product', function (Blueprint $table) { $...
true
1ba0e857386ab8e73f35b0825c363695f6ba89d1
PHP
logsadi/PHPK181-1
/BAI7/connect.php
UTF-8
863
2.9375
3
[]
no_license
<?php //có 3 bước để lấy ra csdl //buowcs1: kết nối csdl $connect = mysqli_connect('localhost', 'root', '', 'hocphpk181'); if($connect){ mysqli_query($connect, "SET NAMES 'utf8'"); //print_r('Kết nối thành công'); }else{ echo 'Kết nối thất bại'; } //buowcs2: viết truy vấn và thực thi $sql = "SELECT * FROM thanh_vie...
true
935cd558479249d377dd50383895045161f4cefe
PHP
mirkocuidado/BNE-website
/php/vendor/simple-validator/simple-validator/unit-test/alpha.test.php
UTF-8
993
2.5625
3
[ "MIT" ]
permissive
<?php class AlphaTest extends PHPUnit_Framework_TestCase { public function setUp() { $this->rules = array( 'test' => array('alpha') ); } public function tearDown() { } public function testAlphaInput() { $inputs = array('test' => 'ABCDE'); $val...
true
59c34e2b51f389e4db6f91731880bac4636f9c7d
PHP
cryptoscan-one/cryptoscan-client-php
/src/command/InvoiceCreate.php
UTF-8
1,939
3.09375
3
[]
no_license
<?php namespace cryptoscan\command; use cryptoscan\entity\Amount; use cryptoscan\entity\Metadata; use cryptoscan\factory\EntityFactory; /** * Создание Инвойса * * Class InvoiceCreate * @package cryptoscan\command */ class InvoiceCreate { /** * Сумма к оплате * * @var Amount */ privat...
true
a3186fa35ea119ec003a719225f222318be3df22
PHP
nicoolasaraujo/ppi
/model/buscaEsp.php
UTF-8
859
2.59375
3
[]
no_license
<?php function getEspecialidades() { try { require "conection.php"; $conn = conectaAoMySQL(); $endereco = ""; $SQL = " SELECT DISTINCT ESP_MEDICA FROM FUNCIONARIO WHERE (CARGO = 'médico' || CARGO = 'medico'); "; if (! $result = $conn->query($SQL)) throw new Exception('Ocorreu uma falha ao b...
true
0c784e3fe2ea10427d1a6e1dea4ed4ac90d8ed8a
PHP
MyIntervals/emogrifier
/tests/Unit/HtmlProcessor/HtmlPrunerTest.php
UTF-8
22,390
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Pelago\Emogrifier\Tests\Unit\HtmlProcessor; use Pelago\Emogrifier\CssInliner; use Pelago\Emogrifier\HtmlProcessor\AbstractHtmlProcessor; use Pelago\Emogrifier\HtmlProcessor\HtmlPruner; use PHPUnit\Framework\ExpectationFailedException; use PHPUnit\Framework\TestCase; /** * @...
true
3ec153b61b87ed4893ad00d169eb8842aee1f7ad
PHP
juliataro/PHP_basics2
/Ul_3.php
UTF-8
1,174
3.359375
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>PHP - Vormid</title> </head> <body> <h3>Trapetsi pindala arvutamine</h3> <form method="post" action="?php echo $_SERVER['PHP_SELF'];"> alus_a <input type="text" name="t1"><br> alus_b <input type="text" name="t2"><br> trapets_h <input type=...
true
a18dd410905e63008a96e75d5fa639cb2a3ccf95
PHP
messi1983/leyris-tech-rest-api
/src/AppBundle/DTO/ResultatRechercheCpDto.php
UTF-8
2,566
2.78125
3
[ "MIT" ]
permissive
<?php namespace AppBundle\DTO; /** * Dto Resultat Recherche Cp */ class ResultatRechercheCpDto { private $dateTimesInterval; private $page; private $trajet; private $carpoolings; private $nbPages; /** * Constructor */ public function __construct($traje...
true
7343ddfe02a3f0ffa48f7b90304284d302b5628d
PHP
ojhaujjwal/fee-office-ddd
/src/ApartmentManagement/Domain/Model/Building/BuildingName.php
UTF-8
805
3
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\ApartmentManagement\Domain\Model\Building; use App\Core\Domain\ValueObjectInterface; use Assert\Assertion; final class BuildingName implements ValueObjectInterface { /** * @var string */ private $value; /** * BuildingName constructor. * ...
true
8432762eef0dfc90a1106da76219065b9d1be84f
PHP
carlmarx01/ServerFrame
/GatewayWorker/Lib/EventDispatcher.php
UTF-8
3,728
3.015625
3
[]
no_license
<?php namespace GatewayWorker\Lib; /** * 事件派发器 * * @author 不再迟疑 * */ class EventDispatcher { private $_eventListeners = array (); /** * Registers an event listener at a certain object. * * @param string $type * @param function $listener */ public functi...
true
d34521911057a803e579708187f5df92081d61d3
PHP
laramore/fields
/src/Fields/Constraint/FieldConstraintHandler.php
UTF-8
3,354
2.78125
3
[ "MIT" ]
permissive
<?php /** * Handle all observers for a specific class. * * @author Samy Nastuzzi <samy@nastuzzi.fr> * * @copyright Copyright (c) 2020 * @license MIT */ namespace Laramore\Fields\Constraint; use Laramore\Contracts\{ Owned, Configured }; use Laramore\Contracts\Field\{ Field, Constraint\Constraint }; use ...
true
a13b1912a4c7b2365e41c833c1db6d7db70d6d1b
PHP
abetterstory/abetter-wordpress
/plugins/sitepress-multilingual-cms/vendor/wpml/tm/classes/menu/translation-editor/fields/model/class-wpml-editor-ui-field-section.php
UTF-8
524
2.65625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "GPL-3.0-only" ]
permissive
<?php class WPML_Editor_UI_Field_Section extends WPML_Editor_UI_Fields { private $title; private $sub_title; function __construct( $title = '', $sub_title = '' ) { $this->title = $title; $this->sub_title = $sub_title; } public function get_layout() { $data = array( 'empty_message' => '', 'empty...
true
4358e9dcfd195ab15a498420c9ef32c11947d34e
PHP
Sina-Mahmoodmoradi/QueraPhpCourse
/objectOriented programming/area/Rectangle.php
UTF-8
332
3.828125
4
[]
no_license
<?php class Rectangle implements Shape { private $a; private $b; public function __construct($a, $b) { $this->a = $a; $this->b = $b; } public function getClassName() { return __CLASS__; } public function getArea(): float { return $this->a*$this-...
true
ad4db83f4e4f48c81c0e6e9bb9bb6da1bb4b7528
PHP
anandangalig/cuisines-and-restaurants
/tests/RestaurantTest.php
UTF-8
5,226
2.71875
3
[ "MIT" ]
permissive
<?php /** * @backupGlobals disabled * @backupStaticAttributes disabled */ require_once "src/Cuisine.php"; require_once "src/Restaurant.php"; $server = 'mysql:host=localhost:8889;dbname=restaurant_app_test'; $username = 'root'; $password = 'root'; $DB = new PDO($server, $userna...
true
3e69995b94b49b151801851e691e88fcc297ead6
PHP
dqthai/Secret-Santa
/process.php
UTF-8
1,040
3.109375
3
[]
no_license
<?php $name = $_POST['name']; $number = $_POST['number']; $people = array(); foreach(array_keys($_POST['name']) as $key) { echo "$name[$key]; $person = (object) array('name' => $name[$key], 'number' => $number[$key], 'giving_to' => Null); $people[] = $person; echo "$person->name \n"; echo "$name[$key]...
true
896b47abb934301d5d2559ca1c82dcf5b4a4e114
PHP
vahagnhov/cba
/app/Soap/Response/ExchangeRatesByDateByISOResponse.php
UTF-8
597
2.984375
3
[ "MIT" ]
permissive
<?php namespace App\Soap\Response; class ExchangeRatesByDateByISOResponse { /** * @var string */ protected $GetExchangeRatesByDateByISOResult; /** * GetExchangeRatesByDateByISOResult constructor. * * @param string */ public function __construct($GetExchangeRatesByDateByI...
true
4efe7861f29f03483f58f8dd88755c597739338b
PHP
ekinhbayar/async-password
/bin/password_hash.php
UTF-8
655
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); if (count($argv) !== 2) { exit(101); } $data = json_decode(base64_decode($argv[1]), true); if (json_last_error() !== JSON_ERROR_NONE) { exit(102); } if (!isset($data['password'], $data['algo'], $data['options'])) { exit(103); } set_error_handler(function($errno, $errstr, ...
true
f54cae12e524fdff00adf68e10b016f1c45cb2e8
PHP
analistadeperon/tariff-calculation
/tests/MockCurrentExchange.php
UTF-8
419
2.65625
3
[]
no_license
<?php namespace Tests; use SRC\TariffCalculation\Adapter\Gateways\GetCurrentExchangeUnit; class MockCurrentExchange implements GetCurrentExchangeUnit { public function getValue(string $currency): float { switch ($currency) { case 'USD': return 5.43; case 'EUR...
true
c690583d66efcc76ca07a0d29d9c9df2cc1200ef
PHP
x01000101x/tugas_pak_anggra_mvc
/Models/Model_spp.php
UTF-8
1,975
3.09375
3
[]
no_license
<?php // Class spp (CRUD spp) class Model_spp { // Property var $db; var $con; var $query; var $data; var $result; var $id_spp; var $tahun; var $nominal; // Method main variabel function __construct() { // Membuat Object dari Class database include '...
true
3dbfe97084c554307594ff29ba4dfdc45ef75e6a
PHP
pritam-git/VSOH
/library/L8M/Controller/Action/Var/Abstract.php
UTF-8
1,156
2.703125
3
[]
no_license
<?php /** * L8M * * * @filesource library/L8M/Controller/Action/Var/Abstract.php * @author Norbert Marks <nm@l8m.com> * @version $Id: Abstract.php 7 2014-03-11 16:18:40Z nm $ */ /** * * * L8M_Controller_Action_Var_Abstract * * */ abstract class L8M_Controller_Action_Var_Abstract { private $_reso...
true
493371d95592122898a91dc1144361a40ca83952
PHP
marx32006/tpv_bakery_daw_curso17-18
/classes/gestores/ManageTicket.php
UTF-8
5,949
2.671875
3
[]
no_license
<?php class ManageTicket { private $db; function __construct(DataBase $db) { $this->db = $db; } public function addTicketBD(Ticket $ticket) { $sql = 'insert into ticket (idmember, idclient) values (:idmember, :idclient)'; $params = array( 'idmemb...
true
fb3ddfb7d4f61733e294ae218f7c2e441dd6de2d
PHP
VWuyts/Lego_webshop
/classes/Address.php
UTF-8
9,719
3.328125
3
[]
no_license
<?php /* Lego Webshop * * Lab assignment for course PHP & MySQL 2017 * Thomas More campus De Nayer * Bachelor Elektronica-ICT -- Application Development * * Véronique Wuyts * * class Address */ require_once("../php/errorhandling.php"); require_once("../php/exceptionHandling.php"); class Address { // me...
true
40dd17eab7bcd4bd3cd208ad9bae83cde859ad25
PHP
Grecie/AppClientes
/modelo/categoria.php
UTF-8
1,463
3.03125
3
[]
no_license
<?php include_once("database.php"); class categoria{ private $pdo; public $nombre; public $id; public $row; public function __construct(){ $this->pdo=Database::Open(); } public function listar(){ try{ $sql="select * from categoria"; $stm=$this->pdo->prepare($sql); $stm->execute(); return $...
true
4c70496863768223cb309c6b3a04f1d869f309c9
PHP
devqx/med
/classes/DAOs/PatientProcedureNursingTaskDAO.php
UTF-8
2,840
2.8125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: robot * Date: 1/18/16 * Time: 1:57 PM */ class PatientProcedureNursingTaskDAO { private $conn = null; function __construct() { try { require_once $_SERVER ['DOCUMENT_ROOT'] . '/Connections/MyDBConnector.php'; require_once $_SERVER ['DOCUMENT_ROOT'] . '/classes/...
true
19df2808491b9813535a12ff4ad95dd626b8469c
PHP
helingfeng/TestComposer
/src/FactoryMethod/LineChart.php
UTF-8
263
2.78125
3
[]
no_license
<?php /** * User: helingfeng */ namespace FactoryMethod; class LineChart extends Chart { public function init($data = []) { echo 'line init data.'."\r\n"; } public function display() { echo 'line display.'."\r\n"; } }
true
6c1c7d203c4dac51d09ca46039fb4ae31d013dd1
PHP
druphliu/live
/common/models/Video.php
UTF-8
1,724
2.578125
3
[]
no_license
<?php namespace common\models; use Yii; /** * This is the model class for table "{{%video}}". * * @property integer $id * @property integer $v_cid * @property string $v_cname * @property string $title * @property integer $flag_headline * @property integer $flag_special_recommend * @property string $url * @...
true
71cd9113637bb5fe71ac9dc496faad626d9da1ff
PHP
rolian85/skeleton-api
/model/Repository/User.php
UTF-8
2,072
2.8125
3
[]
no_license
<?php namespace Repository; use Doctrine\ORM\EntityRepository; class User extends EntityRepository { public function findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null) { return parent::findBy($this->fixCriteria($criteria), $orderBy, $limit, $offset); } public functio...
true
dbab0af691de1f9073102801f93e1bd5e500f723
PHP
aristova/atlas-test-task
/src/CalendarBundle/Controller/EmployeeController.php
UTF-8
6,218
2.671875
3
[ "MIT" ]
permissive
<?php namespace CalendarBundle\Controller; use CalendarBundle\Entity\Employee; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Component\HttpFoundation\Request; use FOS\RestBu...
true
0fbd8508c0ae69e83c59e40b3601954a233e422f
PHP
dreamfactorysoftware/df-database
/database/migrations/2015_01_27_190909_create_db_extras_tables.php
UTF-8
3,725
2.734375
3
[ "Apache-2.0" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; use Symfony\Component\Console\Output\ConsoleOutput; class CreateDbExtrasTables extends Migration { /** * Run the migrations. * * @return void */ public function up() { $driver = Schema...
true
6dc1588b0a969d3f37c353f2ef19890810404570
PHP
utarsuno/quasar_source
/libraries/php/Doctrine/Entity/Field/Boolean/TraitBool1.php
UTF-8
660
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace QuasarSource\Doctrine\Entity\Field\Boolean; use Doctrine\ORM\Mapping\Column; /** * Trait TraitBool1 * @package QuasarSource\Doctrine\Entity\Field\Boolean */ trait TraitBool1 { use TraitBool0; /** * @var bool * @Column(name="bool1", type="boolean", nullab...
true
fc2f2789605be564ff925ece15e1d626fe032c41
PHP
MuneebUrRehman103/SuunnooWebsiteRepo
/Sunnoo-backend/app/Subscription.php
UTF-8
541
2.59375
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Subscription extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = array('title', 'description', 'plan' , 'amount', 'no_of_account'); /** * Save the unique ID * * ...
true
b4d36d76b6fd51c4bf5f7c3019d079e117c2d1ac
PHP
1060460048/jerry
/lib.php
UTF-8
1,632
2.9375
3
[]
no_license
<?php //基础函数库 /** * 微博项目key设计总结 * 用户相关的key * 自增型的key * Global:userid */ function P($key){ return $_POST[$key]; } function G($key){ return $_GET[$key]; } //报错函数 function error($msg){ echo '<div>'; echo $msg; echo '</div>'; include('./footer.php'); //如果直接退出,后边的footer.php引入的部分就执行不了了 ...
true
a84d781aefd888b12fb19a49e6848828cc011c93
PHP
sumanbasnet346/school_management
/app/Http/Controllers/studentcontroller.php
UTF-8
2,146
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use App\Models\student; class studentcontroller extends Controller { function index(){ $student = student::all(); return view('student',['student'=>$student,'layout'=>'index']); } function c...
true
122913dfdcbf677a36db22bcb138ebc666dc8152
PHP
sahilofficial671/twello
/app/Http/Controllers/TaskController.php
UTF-8
4,993
2.640625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Board; use App\Models\TaskUser; use App\Models\Task; use Illuminate\Database\Eloquent\ModelNotFoundException; class TaskController extends Controller { /** * Store task. * * @param \Illuminate\Http\Request $request ...
true
412c209b27857f53230e03cf8340fb566a1883c3
PHP
Tedsyr/php_primer
/Ifstatement.php
UTF-8
568
3.390625
3
[]
no_license
<?php $title = "If Statement"; include 'includes/header.php' ?> <h3 style="color: red"></h3> <?php echo '<h2> If Statement</h2>'; $grade = 30; if ($grade >= 50){ echo '<h3 style="color: green">YOU HAVE PASSED</h3>'; } else{ echo '<h3 style="color: red">YOU ...
true
94c9a73fa8c6a4e2495525dd010ac22fd07ffd7e
PHP
ahmedtahabelghith/Projet-e_learning-PHP-bootstrap
/projetqcm/TIME-AdminQCM/includes/gestionAdmin.php
UTF-8
2,194
2.578125
3
[]
no_license
<?php include("classes.php"); // connexion include("connexionBase.php"); $a=new ConnexionBase(); $courant=$_SERVER["PHP_SELF"]; function add(){ global $a; $login=$_POST['login']; $mdp=$_POST['mdp']; $nom=$_POST['nom']; $prenom=$_POST['prenom']; $msg=""; if(empty($login)) {$msg.="Le logi...
true
b133795be1b07b7b1a4ed171ea8c0faa25dea907
PHP
kaplan-michael/kissj
/src/Middleware/CheckPatrolLeaderParticipants.php
UTF-8
1,919
2.546875
3
[]
no_license
<?php namespace kissj\Middleware; use kissj\FlashMessages\FlashMessagesInterface; use kissj\Participant\Patrol\PatrolService; use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Server\RequestHandlerInterface as ResponseHandler; use Slim\Routing\Rou...
true
cff2e64445ea9c43776a41be070e25a74f9765d2
PHP
hauserm3/hospital
/api/delete_room.php
UTF-8
789
2.53125
3
[ "MIT" ]
permissive
<?php include 'settings.php'; $method = $_SERVER['REQUEST_METHOD']; if($method == 'POST'){ $out = new stdClass(); $arr = array(); $post = json_decode(file_get_contents('php://input'),true); $data = json_decode(file_get_contents(Settings::$ip_room_path)); foreach ($data -> rooms as $key => $value...
true
10231816f82d704abae52f16937f41fdd03d410e
PHP
devincowan/flight-tracker
/mentor/addMentor.php
UTF-8
5,283
2.546875
3
[ "MIT" ]
permissive
<?php use \Vanderbilt\CareerDevLibrary\REDCapManagement; use \Vanderbilt\CareerDevLibrary\Download; use \Vanderbilt\CareerDevLibrary\Upload; use \Vanderbilt\CareerDevLibrary\Application; require_once(dirname(__FILE__)."/../classes/Autoload.php"); require_once(dirname(__FILE__)."/../small_base.php"); require_once(dirn...
true
b3b3d669cd9dcc8ac23c62d390265fcb8ad57894
PHP
jalameta/jps-attachments
/src/Concerns/AttachmentCreator.php
UTF-8
2,572
2.890625
3
[ "MIT" ]
permissive
<?php namespace Jalameta\Attachments\Concerns; use Illuminate\Http\UploadedFile; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Str; use Jalameta\Attachments\Entities\Attachment; trait AttachmentCreator { /** * Create any attachment * * @param Uploade...
true
fe966c9874f9b12655183d1e451a8f101414b6dd
PHP
Adgoal/Saga
/src/AbstractSaga.php
UTF-8
882
2.78125
3
[]
no_license
<?php declare(strict_types=1); namespace AdgoalCommon\Saga; use Broadway\Domain\DomainMessage; use Broadway\Saga\Saga; use Broadway\Saga\State; /** * Class AbstractSaga. * * @category AdgoalCommon\Saga */ abstract class AbstractSaga extends Saga { /** * Saga last state. * * @var State|null ...
true
bd617c67e9ed5283b2896388904c7a034e2f00a1
PHP
mwidmann/Eishockey-Liveticker
/index.php
UTF-8
3,072
2.828125
3
[ "Apache-2.0" ]
permissive
<?php /* ============================================================================ main entry point for normal users. this page decides whether to fetch the data from the database or to display the contents of a prerendered file. ============================================================================ ...
true
691ca97a2130f43c452108c37e19d3079203e6dd
PHP
estebanovic/PHPCourse2020
/14_oop/index.php
UTF-8
534
3.890625
4
[]
no_license
<?php // What is class and instance require_once "./Person.php"; require_once "./Student.php"; // $p = new Person("Zura", 28, 15000); // // echo $p.getSalary(); // echo $p -> name . '<br>'; // echo $p -> age . '<br>'; // echo $p -> getSalary() . '<br>'; // $p -> setSalary(20000); // echo $p -> getSalary() . '<br>'...
true
9b6e8fba0dd1620251a6f82542d0fb339e55b933
PHP
josmamija/diw
/ende/instituto/Respuesta.php
UTF-8
443
3.34375
3
[]
no_license
<?php require_once 'Pregunta.php'; class Respuesta { private $_texto; private $_pregunta; public function __construct(Pregunta $pregunta,$texto){ $this->_pregunta = $pregunta; $this->_texto = $texto; } public function getPregunta(){ return $this->_pregunta; } public function __toString(){ return $th...
true
396981e44c2a8a57ef156635c3eb822fff1c8c41
PHP
hschletz/NADA
/src/Table/Mysql.php
UTF-8
6,552
2.515625
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
<?php /** * Table class for MySQL * * Copyright (C) 2011-2022 Holger Schletz <holger.schletz@web.de> * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must...
true
ceb0372d85e992bd5bd306d69b4440cd176e0b11
PHP
t1nkl/Telegram-Bot
/app/Http/Controllers/TelegramController.php
UTF-8
2,233
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers; use BotMan\BotMan\BotMan; use BotMan\BotMan\BotManFactory; use Illuminate\Support\Facades\Lang; use BotMan\BotMan\Cache\SymfonyCache; use BotMan\BotMan\Drivers\DriverManager; use App\Conversations\ExampleConversation; use App\Conversations\OnboardingConversation; use Symfony\Comp...
true
2a447d079c4f09c05d1190a8ecec134cb47ead17
PHP
renan-eng/php-basics
/10-form-response.php
UTF-8
1,409
3.15625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>PHP Crash Course - Variáveis</title> </head> <body> <h1>PHP: Como processar Formulários</h1> <form action="10...
true
4b5c44d06fb0d379863c7e75c068734d18a8b17d
PHP
tvrc4m/kfapi
/app/Exceptions/Handler.php
UTF-8
1,931
2.65625
3
[]
no_license
<?php namespace App\Exceptions; use Exception; use Illuminate\Validation\ValidationException; use Illuminate\Auth\Access\AuthorizationException; use Illuminate\Database\Eloquent\ModelNotFoundException; use Laravel\Lumen\Exceptions\Handler as ExceptionHandler; use Symfony\Component\HttpKernel\Exception\HttpException; ...
true
90262903b8da4dd934f7cce99e979ea249dd4f1e
PHP
patuaski/php-ddd-example
/src/Mooc/Courses/Application/Find/CourseFinder.php
UTF-8
610
2.6875
3
[]
no_license
<?php declare(strict_types=1); namespace CodelyTv\Mooc\Courses\Application\Find; use CodelyTv\Mooc\Courses\Domain\Course; use CodelyTv\Mooc\Courses\Domain\CourseRepository; use CodelyTv\Mooc\Shared\Domain\Courses\CourseId; use CodelyTv\Mooc\Courses\Domain\CourseFinder as DomainCourseFinder; final class CourseFinder...
true
556bb5ad2387d0ec8e48dfd3b35878483e5ea6cc
PHP
ipetrovbg/homeworks
/php-loops/task5.php
UTF-8
2,143
3.484375
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Задача 5 - php loops - Кодираща и декодираща програма</title> </head> <body> <?php $cript = array( 'a' => '<span style="font-weight: bold; color: red;">@</span>', 'e' => '<span style="font-wei...
true
8b852a781d4e509478c6caf8f5ea0f8f9977019b
PHP
Darciro/WP-Monitor-API
/wp-monitor-api.php
UTF-8
11,938
2.53125
3
[]
no_license
<?php /** * Plugin Name: Monitor WordPress API * Plugin URI: https://github.com/Darciro/WP-Monitor-API * Description: Expande a API padrão do WordPress permitindo um maior monitoramento e acompanhamento do site * Version: 1.1.0 * Author: Ricardo Carvalho * Author URI: ...
true
e59a234d5fcd21a8fdc81eef99e6af9b93b9f8dc
PHP
raulmedinacampos/conricyt_acceso_remoto
/authsni/db.connect.php
UTF-8
358
2.546875
3
[]
no_license
<?php $host = '127.0.0.1'; $username = 'root'; $password = ''; $dbname = 'conricyt_proxy'; try { $pdo = new PDO("mysql:host=$host;dbname=$dbname", $username, $password, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch(PDOException $e){ ...
true
6e120e3d477fb468f73c5d6748427e532124fd4f
PHP
kajasumanie/project
/edupkaja/table/school_cot_zws_tsns/class.crud.php
UTF-8
3,054
2.578125
3
[]
no_license
<?php class crud { private $db; function __construct($DB_con) { $this->db = $DB_con; } /* paging */ public function dataview($query) { $stmt = $this->db->prepare($query); $stmt->execute(); $number=1; if($stmt->rowCount()>0) { while($row=$stmt->fetch(PDO::FETCH_ASSOC)) { $sql1="...
true
9f04024684122614240467ae56ae37cfab77e63f
PHP
ShibbirAhmad/multi_purpose_portfolis_site_for_developers
/admin/classes/project.php
UTF-8
6,525
2.65625
3
[]
no_license
<?php class project { public $db; public $secure; public function __construct(){ $this->db=new database(); $this->secure=new helper(); } //admin information add public function addProject($data,$file) { $name = mysqli_real_escape_string($this->db->link,$da...
true
6951ecc07e9d59e09c300b7bdd8be0380d8c24b5
PHP
christophercaburog/e2016
/classes/admin/reports/report_main.class.php
UTF-8
4,652
2.59375
3
[]
no_license
<?php /** * Initial Declaration */ /** * Class Module * * @author Arnold P. Orbista * */ class clsReportMain{ var $conn; var $fieldMap; var $Data; /** * Class Constructor * * @param object $dbconn_ * @return clsReportMain object */ function clsReportMain($dbconn_ = null){ $this->conn =& $db...
true
29ffe2dab6850b2de485dbff857cf8bec40e23d9
PHP
wanggangtao/guolu
/boiler/lib/pipeline_attr.class.php
UTF-8
2,245
2.75
3
[]
no_license
<?php /** * pipeline_attr.class.php 管道泵类 * * @version v0.01 * @create time 2018/5/27 * @update time 2018/5/27 * @author dlk * @copyright Copyright (c) 芝麻开发 (http://www.zhimawork.com) */ class Pipeline_attr { public function __construct() { } /** * Pipeline_attr::add() ...
true
cacc6bb684dc536c8ee3938ee65ecb60a34618bd
PHP
eThemez/WP-OTF-Thumbnail-Generator
/class-ethemez-otf-thumbnail-generator.php
UTF-8
4,467
2.578125
3
[]
no_license
<?php if ( ! defined( 'ABSPATH' ) ) exit; if ( ! class_exists( 'eThemez_OTF_Thumbnail_Generator' ) ) : /** * eThemez OTF Thumbnail Generator Class * * This class handles all about images. * * @class eThemez_OTF_Thumbnail_Generator * @version 1.0.0 * @package eThemez_OTF_Thumbnail_Generator ...
true
0061b74f3e19c45000b9606a00da247252113e23
PHP
doitphp/doitphp_standard
/doitphp/library/Language.php
UTF-8
2,711
2.9375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * 多语言管理 * * @author tommy <tommy@doitphp.com> * @link http://www.doitphp.com * @copyright Copyright (C) 2015 www.doitphp.com All rights reserved. * @license New BSD License.{@link http://www.opensource.org/licenses/bsd-license.php} * @version $Id: Language.php 2.0 2012-12-22 19:41:54Z tommy <tommy@doit...
true
9798267e8ab7d20c7fc6afc3518b8dc3ce7dbada
PHP
PackageFactory/PackageFactory.Neos.CodeGenerator
/Tests/Unit/Domain/Code/Php/Type/TypeFactoryTest.php
UTF-8
10,234
2.703125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace PackageFactory\Neos\CodeGenerator\Tests\Unit\Domain\Code\Php\Type; use Neos\Flow\Tests\UnitTestCase; use PackageFactory\Neos\CodeGenerator\Domain\Code\Php\Type\TypeFactory; final class TypeFactoryTest extends UnitTestCase { /** * @var TypeFactory */ private $...
true
e8fbab76ea8b98e971ca78724404b720c0b23036
PHP
bitnova/quarkCMS
/ContentNode.php
UTF-8
7,085
2.6875
3
[]
no_license
<?php class TContentNode { var $type; var $name; var $id; var $attributes = array(); var $items = array(); var $parent = null; private $cms = null; // meta information var $meta_owner = ''; var $meta_mode = ''; ...
true
587725812c285b97d1f44555e0b3123fa1e988a5
PHP
kaspernj/knjphpfw
/gallery/class_knjgallery_picture.php
UTF-8
4,551
2.75
3
[ "Apache-2.0" ]
permissive
<?php class knj_gallery_picture extends knjdb_row{ private $knj_gallery_group; private $knj_gallery; public $dbconn; /** The constructor of the class. */ function __construct(knj_gallery_group $knj_gallery_group, $id, $data = null){ $this->knj_gallery_group = $knj_gallery_group; $this->knj_gallery =...
true
df8f61b5fefbd24546e3a0425e5f9420c95eb76f
PHP
sandergeldof22/Object-Oriented-Programming
/Lab - OOP - Superheroes/Superhero.php
UTF-8
1,567
3.328125
3
[]
no_license
<?php class Superhero { public $name; public $gender; public $team; public $oneliner; function __toString(){ return json_encode($this); } public function __construct($name, $gender, $team, $oneliner){ $this->name = $name; $this->gender = $gender; $this->team = $team; $this->oneliner = $oneliner; }...
true
07b58f7e7190d70ee6f10fae4629c39ba3844e0a
PHP
PeeTee12/workshop-testing
/tests/PostServiceTest.php
UTF-8
1,298
2.546875
3
[ "MIT" ]
permissive
<?php namespace IW\Tests\Workshop; use IW\Workshop\Client\Curl; use IW\Workshop\PostService; use PHPUnit\Framework\TestCase; use RuntimeException; class PostServiceTest extends TestCase { public function testCreatePost() { $mock = $this->createMock(Curl::class); $input = ['id' => 1]; $mock->method('po...
true
6fe8ce5580ffa77f8659e8ecc19c25856dfd4c8b
PHP
nvbach91/4IZ278-2020-2021-LS
/www/vitl03/sp_pilot/class/ProductsDB.php
UTF-8
5,788
2.796875
3
[ "MIT" ]
permissive
<?php require_once __DIR__ . '/../Database.php'; ?> <?php class ProductsDB extends Database { protected $tableName = 'products'; public function fetchAll(){ // fetch all } public function fetchAllPagination($nItemsPerPagination,$offset) { $statement = $this->pdo->prepare('SELECT * ...
true
2582923aee65177dba39f098cc1719be010188eb
PHP
zkrat/php-gpio
/src/PhpGpio/Utils/Pi.php
UTF-8
1,274
3.25
3
[ "MIT" ]
permissive
<?php namespace PhpGpio\Utils; /** * Get PI informations */ class Pi { /** * Get RaspberryPi version * * A list of Model and Pi Revision & Hardware Revision Code from '/proc/cpuinfo' is here: * @link http://www.raspberrypi-spy.co.uk/2012/09/checking-your-raspberry-pi-board-version/ * ...
true
aec1fa87316a015e7276f6879940577a5e98dc16
PHP
jiromm/transactional-file-management
/examples/remove.php
UTF-8
944
2.84375
3
[ "MIT" ]
permissive
<?php namespace Transactica; require "../vendor/autoload.php"; $storage = new Storage\Memory(); $transactica = new Transaction($storage); try { $transactica->beginTransaction(); echo 'let\'s game begins 1' . PHP_EOL; try { $transactica->beginTransaction(); echo 'let\'s game begins 2' . ...
true
8932a1e12b4da775b4a8bfb63f7b08f01b390db4
PHP
epavel/myengine
/vendor/MyEngine/View/PhpRendererListener.php
UTF-8
1,881
2.84375
3
[]
no_license
<?php namespace MyEngine\View; use MyEngine\Event\EventManager; use MyEngine\Event\AggregateInterface; use MyEngine\Mvc\Request; use MyEngine\Mvc\Response; class PhpRendererListener implements AggregateInterface { /** * @var PhpRenderer */ protected $renderer; /** * Constructor * ...
true
2b0fcef9e3cab2f5eac5a00ccc0d5e278bf8a7b6
PHP
marcoscodnet/pistas_core
/src/main/php/Pistas/Core/dao/DAOFactory.php
UTF-8
497
2.609375
3
[]
no_license
<?php namespace Pistas\Core\dao; /** * Factory de DAOs * * @author Marcos * */ use Pistas\Core\dao\impl\ArtistaDoctrineDAO; use Pistas\Core\dao\impl\PistaDoctrineDAO; class DAOFactory { /** * DAO para Artista. * * @return IArtista */ public static function getArtistaDAO(){ return ne...
true
c464f3c961bed1336009ae030b91758a296bf3aa
PHP
WorkOfStan/mycms
/dist/db/migrations/20200703213436_content_example.php
UTF-8
5,979
2.65625
3
[]
no_license
<?php //declare(strict_types=1); use Phinx\Migration\AbstractMigration; final class ContentExample extends AbstractMigration { /** * Contains initial template for content of the web. * Adapt it here * or delete this migration before running it * or adapt the content in the database after this...
true
a054d0f2c292662e99e37d125bf4b0f84c1ab1f7
PHP
nyolamike/PhpBees
/bee/db.php
UTF-8
5,818
2.796875
3
[ "MIT" ]
permissive
<?php function db_get_connection($username, $password,$servername="localhost",$databasename="",$is_test=false){ try { if($is_test){ $conn = new PDO("mysql:host=$servername", $username, $password); }else{ $conn = new PDO("mysql:host=$servername;dbname=$databasename", $usernam...
true
b8f61151451ce1159aaff1300f16d215f03b5a3f
PHP
sohmod/DesignManager
/_bka/editinPlacejQuery/js/gm_phpsql_2json_bk.php
UTF-8
1,545
2.671875
3
[]
no_license
<?php $server="localhost"; $username="ajaxuser"; $password="practical"; $database="ajax"; // Opens a connection to a MySQL server. $connection = mysql_connect ($server, $username, $password); if (!$connection) { die('Not connected : ' . mysql_error()); } // Sets the active MySQL database. $db_selected = mysql_sel...
true
787ad1f6fe7ceb4016e3bde95f187b42dc4169e7
PHP
Lern-Online/number-formatter
/src/Lang/Cs/SpelloutOrdinalMasculine.php
UTF-8
1,445
2.640625
3
[ "MIT" ]
permissive
<?php /** * This file is part of arius/number-formatter package * * @author Arkadiusz Ostrycharz <arkadiusz.ostrycharz@gmail.com> * @copyright Arius IT Arkadiusz Ostrycharz * @homepage http://arius.pl * * Czech Version: * @copyright Grigorij Kosba * @homepage http://www.lern-online.net * * For the full copy...
true
4baeb1ba6b12c49f1c0e827fdd6854c64f4b1501
PHP
franckysolo/good
/src/Good/Gd/Pattern/Arc.php
UTF-8
960
2.90625
3
[]
no_license
<?php /** * Good (Gif oriented object drawing) * * @version 1.0 * @author franckysolo <franckysolo@gmail.com> */ namespace Good\Gd\Pattern; use Good\Gd\Pattern\Line; /** * The arc pattern class * This class is used to draw an arc plot * * @version 1.0 * @author franckysolo <franckysolo@gma...
true
4dcbaa6ca57ffb13c9e2bcce784e43e35e7796c5
PHP
ScriptSB/Community_coyote
/app/Services/Grid/Rows.php
UTF-8
945
3.21875
3
[ "MIT" ]
permissive
<?php namespace Coyote\Services\Grid; class Rows implements \IteratorAggregate, \Countable { /** * @var Row[] */ protected $rows = []; /** * @param array $rows */ public function __construct(array $rows = []) { $this->rows = $rows; } /** * @see IteratorAg...
true
de2093c484e2a90a13ac9997a3febb3acdcc4d07
PHP
nsavicks/AuctionHouse
/Implementation/application/models/User_rank.php
UTF-8
1,011
2.828125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /** *@author Aleksandar * Class for user rank. */ class User_rank extends CI_Model{ /** * Constructor for this Model */ public function __construct(){ parent::__construct(); } /** * Gets all user ranks. * * @return array All user r...
true
04cbae18c29be9e7c30303f7168f2744f07810c0
PHP
fauntleroy18/sourcekettle
/app/Model/TaskComment.php
UTF-8
2,625
2.703125
3
[]
no_license
<?php /** * * TaskComment model for the DevTrack system * Stores the Comments for Tasks in the system * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright DevTrack Development Team 2012 * @link http://github.com/SourceKettle/devtrack ...
true
6e866491ba77781dfe0d601c0ebfad681b5f501c
PHP
Exoo81/BoysSchoolv3
/module/Application/src/Entity/SchoolEvent.php
UTF-8
4,004
2.71875
3
[]
permissive
<?php namespace Application\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="school_event") */ class SchoolEvent { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(name="id") */ protected $id; /** * @ORM\Column(name="title") */ pr...
true
0e87bab7ed2ca3b58cab94ffdca49e4e3e55d58f
PHP
luisbayona01/pruebacicoplans
/pruebaphpluisbayona/Controlador/Controladoractors.php
UTF-8
2,254
2.578125
3
[]
no_license
<?php namespace Controlador; use Modelo\Modeloactors; class Controladoractors { public static function save(){ $Modelo=new Modeloactors(); $nombre=$_POST['nombre']; $identificacion=$_POST['identificacion']; $telefono=$_POST['telefono']; $correo=$_POST['correo']; $Modelo->se...
true
1be0f741935e43cf2b76ecfb1dafc21edc7023c1
PHP
phuongnam581/restaurant
/models/TypeModel.php
UTF-8
800
2.609375
3
[]
no_license
<?php include_once 'models/DBConnect.php'; class TypeModel extends DBConnect{ function getAllType(){ $sql = "SELECT * FROM food_type ORDER BY id ASC"; return $this->loadMoreRows($sql); } function getFoodsFirstType(){ $sql = "SELECT f.*, p.url FROM foods f ...
true
5ac9ae3cef85097c4fe7a91a4bbcde9a4aeaac7b
PHP
astechdev/PitchPredict
/Services/register.php
UTF-8
1,662
2.53125
3
[]
no_license
<?php header('Access-Control-Allow-Origin: *'); header("content-type: application/json"); // // include_once $_SERVER['DOCUMENT_ROOT'].'/PitchPredict/DBProxies/UserDbProxy.php'; // // $aPitchPredictUserDbProxyObject = new UserDbProxy('pitchpre_jml4'); // // $userName = $_REQUEST['UserId']; // ...
true
21ae41154f0b4ea48e276ac3ba3363f94746f50d
PHP
santiagobonassin/Prueba
/Trabajo Practico I/mostrar.php
UTF-8
1,761
2.5625
3
[]
no_license
<?php session_start(); include "validarSesion.php"; include_once "Empleado.php"; include_once "Fabrica.php"; ?> <!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...
true
395c82c1031943a4fa40a50ce8c470978c207bd0
PHP
HimNahyeon/frontClassBackup
/php/Day2/7_login_ok.php
UTF-8
975
2.921875
3
[]
no_license
<?php $userid = $_POST["userid"]; $userpw = $_POST["userpw"]; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>로그인</title> </head> <body> <?php ...
true
8d4b8df6c6183ee5998c934a69ec5f51844c850f
PHP
koko9589/port
/PHP_study/15/01_math.php
UTF-8
1,870
3.6875
4
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>01_math</title> </head> <body> <h1>수학함수</h1> <? echo "number_format-----------------------<br>"; $no = 12345678.87654321; echo "$no<br>"; echo number_format($no) . "<br>"; echo number_format($no, 2, ".", ...
true
f0f3f813d778798382ac56aa4b70ebc10a4057ae
PHP
nikolai/na-gore
/scripts/FirsPageBuilder.php
UTF-8
1,067
2.921875
3
[]
no_license
<?php require_once 'Logger.php'; require_once 'Configurator.php'; /** * Description of FirsPageBuilder * Created on 08.03.2009 19:40:03 * @author nikolai */ class FirsPageBuilder { var $configurator; var $logger; function FirsPageBuilder($root) { $this->configurator = new Configurator($root); ...
true
013b8e55940b8739abc5b807701e39176a88c7cf
PHP
josafaverissimo/portfolio
/src/Core/Router/Uri.php
UTF-8
716
3.109375
3
[ "Apache-2.0" ]
permissive
<?php namespace Src\Core\Router; class Uri { private string $customUri; public function __construct(string $customUri = "") { $this->setCustomUri($customUri); } public function getCustomUri(): string { return $this->customUri; } public function setCustomUri(string $cu...
true
32beeffbb352c84cd85fc6ea0c9f3956d96991fb
PHP
calchen/easy-ocr
/src/Kernel/Base/Config.php
UTF-8
1,021
2.84375
3
[ "MIT" ]
permissive
<?php namespace Calchen\EasyOcr\Kernel\Base; use JsonSerializable; use ReflectionObject; use ReflectionProperty; abstract class Config implements JsonSerializable { /** * 输出成接口所需参数数组形式. * * @param callable|null $callback * * @return array */ public function toArray(callable $cal...
true
936788007a20ff914d55726c493c7bdaef98d7ba
PHP
hasithalakshan/florenze
/Modules/User/Entities/User.php
UTF-8
841
2.515625
3
[]
no_license
<?php namespace Modules\User\Entities; use Illuminate\Database\Eloquent\Model; class User extends Model { protected $fillable = ["fname","lname","gender","dob","street","city","role","state_id"]; public function state(){ return $this->belongsTo('Modules\General\Entities\State'); } public...
true
172dcfb90c65773cdee240292cadbc4a990f05cf
PHP
lucaspellegrinelli/ai-php
/geneticalgorithm/objects/GADebug.php
UTF-8
693
2.890625
3
[]
no_license
<?php class GADebug{ private $debug; private $showFittestGene; private $debugFrequency; public function __construct(){ // } public function isDebug() { return $this->debug; } public function setDebug($debug) { $this->debug = $debug; } public function getDebugFrequen...
true
304ed742cfbb50d64aa5ea41714da0b1a3ff913c
PHP
erwinschwartz/PHPoo
/09_namespace/appel.php
UTF-8
244
3.09375
3
[]
no_license
<?php namespace Appel; // je cree le namespace appel require('espace1.php'); require('espace2.php'); use Espace1; use Espace2; $objet = new Espace1\A; echo $objet -> test() . '<br>'; $objet = new Espace2\A; echo $objet -> test() . '<br>';
true
338438a97abc485f900d739b064ec32dcad5b711
PHP
RichardTrujilloTorres/almendra-psr7
/src/Psr/Messages/Message.php
UTF-8
7,619
3.125
3
[ "MIT" ]
permissive
<?php namespace Almendra\Http\Psr\Messages; use Psr\Http\Message\MessageInterface; use Psr\Http\Message\StreamInterface; class Message implements MessageInterface { protected $_protocolVersion = '1.1'; protected $_headers = []; protected $_body; /** * @var array The headers which are accepted...
true
e9483bfda79cb8fd05489347f8aabd46f81632ab
PHP
Josuke-Dev/Site-Dynamique
/article.php
UTF-8
902
2.90625
3
[]
no_license
<?php session_start(); $bdd = new PDO('mysql:host=localhost;dbname=zombiecod', 'root', ''); var_dump($_SESSION['pseudo']); if(isset($_GET['id']) AND !empty($_GET['id'])) { $get_id = htmlspecialchars($_GET['id']); $article = $bdd->prepare('SELECT * FROM articles WHERE id = ?'); $article->execute(array($ge...
true
edbc5c59063f9af2dc93f3841b202b2470e453fc
PHP
quangvuly/bdu_cntt
/database/seeds/NewsTableSeeder.php
UTF-8
1,516
2.578125
3
[]
no_license
<?php use Illuminate\Database\Seeder; class NewsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { for ($i=10; $i <= 15 ; $i++) { // DB::table('cnttNews')->insert([ // 'cnttNewsTitle' => 'Tiêu đề '...
true
13c18561adddaa202c5468691c9543e5b59ca995
PHP
svanderburg/php-sbpagemanager
/src/SBPageManager/Model/Page/Iterator/PageManagerNodeIterator.php
UTF-8
1,474
2.734375
3
[ "Apache-2.0" ]
permissive
<?php namespace SBPageManager\Model\Page\Iterator; use PDO; use PDOStatement; use Iterator; use SBPageManager\Model\Page\PageManagerNode; use SBPageManager\Model\Entity\PageEntity; class PageManagerNodeIterator implements Iterator { public PageManagerNode $parentPage; public PDO $dbh; public PDOStatement $stmt; ...
true
7e7393f3f4ef7a4ca26ef3f3f3301ed27dd74ea4
PHP
OpenMageModuleFostering/techinflo_socialmedia
/app/code/local/Techinflo/SocialMedia/Model/Observer.php
UTF-8
16,375
2.609375
3
[]
no_license
<?php require_once("lib/techinflo/facebook/facebook_sdk/src/facebook.php"); require_once("lib/techinflo/twitter/twitter_sdk/src/twitter.php"); class Techinflo_SocialMedia_Model_Observer { /*Event Observer that is called once the product is saved/ edited*/ public function catalog_product_save_after($observer) ...
true
fcf5528d52dedea549e2102eff310ff6794f629f
PHP
njcodemonster/7ctechcoa
/coa/dal/loginvalidity.php
UTF-8
2,917
2.734375
3
[]
no_license
<?php require (dirname(__DIR__).'/config/db.php'); class loginvalidity { public $TableName = "loginvalidity"; // GET specific loginvalidity or all loginvalidity // @Parameter $validity (Optional) for Selecting Specific loginvalidity public function Select($cond) { ...
true
9b0fe83e74fbd388997ed8c889f3eb7b3d5c2610
PHP
PasqualePaudice/php-snacks-blocco-1
/PHPsnack6/index.php
UTF-8
1,619
3.34375
3
[]
no_license
<!-- Stampiamo il nostro array mettendo gli insegnanti in un rettangolo grigio e i PM in un rettangolo verde. --> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" href="style.css"> </head> <body> <?php $db = [ ...
true
9e58013fe7ede1acbb7b15b3d5303a55134fad78
PHP
bekahsealey/pilgrimage-site
/includes/blog_session_timeout.php
UTF-8
894
2.71875
3
[ "Apache-2.0" ]
permissive
<?php session_start(); ob_start(); // set a time limit in seconds, multiply by 60 to get minutes $timelimit = 30 * 60; //get the current time $now = time(); // where to redirect if rejected $redirect = '/admin/login.php'; // if session variable not set, redirect to login page if (!isset($_SESSION['authenticated']) || $...
true
a07d4b0be2c62723e5e3e586dec5c5ef78d65e19
PHP
tapaheh/test-works
/MarketCall/parser.php
UTF-8
371
2.59375
3
[]
no_license
<?php require_once('parser' . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoloader.php'); use parser\models\HtmlData; use parser\models\HtmlParser; $url = 'https://habr.com/ru/'; $data = new HtmlData(); $data->loadByUrl($url); $parser = new HtmlParser($data); $collection = $parser->parseTags(); echo ...
true
f70983c9ae0d67cdd75a8b164d73c0bb7a01edbb
PHP
marscore/hhvm
/hphp/test/zend/good/ext/standard/tests/serialize/bug28325.php
UTF-8
185
2.78125
3
[ "Zend-2.0", "PHP-3.01", "MIT" ]
permissive
<?php class a { public $b; } class b { public $c; } class c { public $d; } $a = new a(); $a->b = new b(); $a->b->c = new c(); $a->b->c->d = $a; var_dump(unserialize(serialize($a)));
true
1a7199609e4c5bfa519f380864faf765620a3fa1
PHP
123wong/Capstone
/M5project/classes/data/UserManagerDB.php
UTF-8
4,606
2.8125
3
[]
no_license
<?php namespace classes\data; /** * */ use classes\entity\User; use classes\util\DBUtil; /** * * @author JingXuan * */ class UserManagerDB { public static function fillUser($row){ $user=new User(); $user->userId=$row["UserId"]; $user->userName=$row["UserName"]; ...
true