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
491879eba4e0f2a47dc86419c44880dd3addfd1f
PHP
EmberGrep/eg-api
/app/Http/Middleware/Exceptions/ValidationHandler.php
UTF-8
601
2.546875
3
[ "MIT" ]
permissive
<?php namespace EmberGrep\Http\Middleware\Exceptions; use Closure; use Illuminate\Contracts\Validation\ValidationException; use Illuminate\Http\JsonResponse; class ValidationHandler { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next ...
true
14a68c9a0dbd82900a6cf2a051bac08aa1bcb5e1
PHP
irawanw/ci-crm
/application/models/M_articles.php
UTF-8
3,614
2.609375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') or exit('No direct script access allowed'); /** * Created by PhpStorm. * User: bernardtrevisan_imac * Date: * Time: */ class M_articles extends MY_Model { public function __construct() { parent::__construct(); } public function get_champs($type) { $champs = ...
true
5e55c99ee3e8d76739bf8db5f630e9e7141dc50e
PHP
luigif/WsdlToPhp
/samples/paypal/Payer/Type/PayPalTypePayerInfoType.php
UTF-8
7,086
2.6875
3
[]
no_license
<?php /** * Class file for PayPalTypePayerInfoType * @date 14/07/2012 */ /** * Class PayPalTypePayerInfoType * Documentation : PayerInfoType Payer information * @date 14/07/2012 */ class PayPalTypePayerInfoType extends PayPalWsdlClass { /** * The Payer * Meta informations : * - minOccurs : 0 * - docum...
true
6b67bad00bf479fa2adead290adef46956724381
PHP
CamileGhastine/leaddev01
/02_SOLID/Part1_relation/Exercices/Circle/Circle.php
UTF-8
505
3.765625
4
[]
no_license
<?php class Circle{ // On type la variable avec le type de l'objet que l'on souhaite garder private Color $color; public function perimeter():float{ return 100.; } /** * Get the value of color */ public function getColor():Color { return $this->color; } ...
true
e2da0f53d5671b2433607b66ca17ea4cdefe7e2b
PHP
GermaniaKG/Salesmen
/src/IteratorApplySalesman.php
UTF-8
1,645
3.203125
3
[ "MIT" ]
permissive
<?php namespace Germania\Salesmen; /** * IteratorApplySalesman * * Usage: * * <?php * $salesman_name_factory = function( $retailer ) { return "First name" }; * * $retailers = new \ArrayIterator([ instance1, instance2 ]); * iterator_apply($retailers, new IteratorApplySalesman( $salesman_name_fa...
true
a0d56519a7f50de03c310e9830ad12489a773f8d
PHP
nestauk/DSI4EU
/src/Controllers/API/ClusterApiController.php
UTF-8
2,823
2.59375
3
[]
no_license
<?php namespace Controllers\API; use DSI\Entity\Image; use DSI\Entity\User; use DSI\Service\Auth; use DSI\Service\Translate; use Models\Relationship\ClusterImg; use Services\URL; use Models\Relationship\ClusterLang; use Services\Request; use Services\Response; use Services\JsonResponse; class ClusterApiController { ...
true
9400f89cdec6b0f1eef2a41264e7e1a3c000308f
PHP
thePHPcc/bgphp-2019
/tests/unit/FlightBookedEventTest.php
UTF-8
850
2.9375
3
[]
no_license
<?php declare(strict_types=1); namespace bgphp; use PHPUnit\Framework\TestCase; class FlightBookedEventTest extends TestCase { /** * @var FlightNumber */ private $flightNumber; /** * @var Passenger */ private $passenger; /** * @var FlightBookedEvent */ private ...
true
600e9840907241223799bcedf6bb6a1cbc367efc
PHP
VT1-InterfaceDeSaisieWeb/ProjetR-D
/Developpement/Code/path/src/VTCalendar/CalendarBundle/Controller/LoginController.php
UTF-8
7,626
2.53125
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace VTCalendar\CalendarBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Session\Session; use Symfony\Component\HttpFoundation\RedirectResponse; class LoginController extends Controller { pub...
true
2dbe75a74ace7c1637e5a6d62a0eb85998460899
PHP
hwebz/pluralsight
/php-5-power/database/sqlite/aggregate_udf.php
UTF-8
658
2.828125
3
[]
no_license
<?php $db = new SQLiteDatabase("./aggregate.db", 0666, &$error) or die("Failed: $error"); function average_length_step(&$ctxt, $string) { if (!isset($ctxt['count'])) { $ctxt['count'] = 0; } if (!isset($ctxt['length'])) { $ctxt['length'] = 0; } $ctxt['count']++; $ctxt['length'] += strlen($string...
true
497ccca744930b742d21bde2521f32ef29dcdb26
PHP
innamhunzai/order-management
/console/migrations/m191022_212933_add_indexes.php
UTF-8
1,020
2.546875
3
[]
permissive
<?php use yii\db\Migration; /** * Class m191022_212933_add_indexes */ class m191022_212933_add_indexes extends Migration { /** * {@inheritdoc} */ public function safeUp() { // creates index for column `created_at` $this->createIndex( 'idx-order-created_at', ...
true
b292b89f4df033610507fab17a0fc01cab03e80a
PHP
Catfeeds/ebh_server
/models/PlaylogModel.php
UTF-8
3,409
2.65625
3
[]
no_license
<?php /** * 学习记录model对应的ebh_playlog表 * 学生每次播放课件完成后都会添加学习时间记录 */ class PlaylogModel extends CModel{ /** * 根据参数获取对应的学习记录列表 * @param array $param * @return array */ public function getList($param=array()){ $sql = 'select p.cwid,p.ctime,c.cwurl,p.ltime,p.startdate,p.lastdate,c.title from ebh_playlo...
true
5b1cbc8fcf7a5a5a587f875a39e0d6448bd7d8a5
PHP
isc30/noneim-framework
/Solution/Core/Helpers/CacheHelper.php
UTF-8
3,492
2.921875
3
[]
no_license
<?php /** * Cache Helper */ class CacheHelper extends StaticClass { /** * Return if loading cache is success * If $object is ICacheable, call setCache() method. If not, leave the value in $object * @param string $area * @param string $name * @param object|array &$value ...
true
868c6286c346b7d1f6a160a0a6c75f7a631a3b36
PHP
vanchelo/Ajax-Response
/src/Response.php
UTF-8
2,722
2.953125
3
[ "MIT" ]
permissive
<?php namespace Vanchelo\AjaxResponse; use Illuminate\Support\Contracts\ArrayableInterface; use Illuminate\Support\Contracts\JsonableInterface; use Illuminate\Support\MessageBag; use JsonSerializable; class Response implements JsonSerializable, ArrayableInterface, JsonableInterface { /** * @var bool */...
true
1e93cd27410e5f3e76b3a873316f77497ff3de30
PHP
swanand09/betteaser
/racebook/utility/ClassRace.php
UTF-8
11,949
2.65625
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ include 'const.php'; class Race { //put your code here private $_id_race; private $_rnum; private $_rname; private $_rdist; private $_rating; private $_rtime; private $_ref_...
true
97ff745bd38a4e7a023505c707172c8ebe57d123
PHP
10deyon/userSystem
/existing/register.inc.php
UTF-8
3,280
3.09375
3
[]
no_license
<?php session_start(); include_once("db_conn.php"); if(!isset($_SESSION["alreadyLogged"]) || $_SESSION["alreadyLogged"] !== true){ header("location: login.php"); } $error = false; if(isset($_POST['submit'])){ $username = mysqli_real_escape_string($conn,$_POST['username']); $email = mysqli_real_escape_str...
true
4d4b2f9da2f16add5dadeb390461f0763090875d
PHP
brustcoopama/php_base
/m/bd/tables/BdTablesCreate.php
UTF-8
10,544
2.53125
3
[]
no_license
<?php /** * Classe que cuida da criação das tabelas. * Ao final um modelo de como criar uma tabela. */ class BdTablesCreate extends Bd { /** * Chama a criação de cada tabela. * * @return void */ public static function start() { Self::createlogin(); Self::createStatus(); Self::createUsu...
true
b139a445d290a7c1d683126e47ed7d34cfea6d29
PHP
bryanblas/remittance-api
/app/Repositories/Permission/PermissionInterface.php
UTF-8
276
2.578125
3
[]
no_license
<?php namespace App\Repositories\Permission; interface PermissionInterface { public function getAll(); public function find($id); public function create($request); public function update($id, $request); public function delete($id); }
true
2f4dd072b73d286acc5a7fdbcf3fad82ca570349
PHP
silvercrow26/introPHP
/18.json.php
UTF-8
893
2.921875
3
[]
no_license
<?php include 'includes/header.php'; #Comunicar mi app con otra plataforma por ej js, bluejj tiene que hacerce la conexion por el json. $productos = [ [ 'nombre' => 'Samsung S8', 'precio' => 450000, 'disponible' => true ], [ 'nombre' => 'Tablet', 'precio' => ...
true
67f2c3e11957c324b9e2a7fa2ea708472bd98a40
PHP
GwangG/Capstone_project
/login.php
UTF-8
1,250
2.515625
3
[]
no_license
<?php $db_host = "localhost"; $db_user = "root"; $db_password = "root"; $db_name = "capstone"; $conn = mysqli_connect($db_host,$db_user,$db_password,$db_name); $userID = $_POST["userID"]; // $userID = "hwasu"; // $userPassword = "1234"; $userPassword = $_POST["userPassword"]...
true
411b70da1f2875ee87f1ad3c58353682bb6c0ed2
PHP
Chris-Anthem/EPITECH-PHP-Pool
/pool_php_d07/ex_04/Character.php
UTF-8
2,653
3.53125
4
[]
no_license
<?php /*EXERCICE 4 (1 PT) **_____ **Hand in: pool_php_d07/ex_03/Character.php **pool_php_d07/ex_04/Warrior.php **pool_php_d07/ex_04/Mage.php **pool_php_d07/ex_04/IMovable.php **Paralysis is over! Our characters can now move but, being so proud, they want more! Our friend Warrior **refuses to be compared to a small and...
true
a8c0f7edd02ed6ef670fee1dfd169bdff260daeb
PHP
lbel/bndchat
/lib/Client/Packet/NamePacket.php
UTF-8
1,370
2.71875
3
[ "MIT" ]
permissive
<?php namespace Client\Packet; use Log\LogFactory; use Client\PacketHandler; use Client\Packet\Packet; class NamePacket extends AbstractPacket { private static $logger; private $init; private $name; private $out; public static function init() { self::$logger = LogFactory::get("NamePacket"); } pu...
true
792bab60097930be9015ec0e2fac44b3b9aa043b
PHP
Massfice/action-manager
/src/ActionManagerFactory.php
UTF-8
469
2.640625
3
[ "MIT" ]
permissive
<?php namespace Massfice\ActionManager; class ActionManagerFactory { public static function create(string $name, string $namespace) : ActionManager { switch($name) { case "html": return new HtmlManager($namespace); break; case "json": ret...
true
2c92cee156a2adc278d8f06911484dc488b40838
PHP
emilemarkus/php
/variables/time of the day.php
UTF-8
1,183
3.53125
4
[]
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 /* If the time is between 05h00 and 09h00, display "Go...
true
bf6d9b93b7f6e189ba5fd5b2016a1fc30e9d03bd
PHP
TraianAlex/symfony-multi-image-gallery-blog
/src/Event/GalleryCreatedEvent.php
UTF-8
359
2.765625
3
[]
no_license
<?php namespace App\Event; use Symfony\Component\EventDispatcher\Event; class GalleryCreatedEvent extends Event { /** @var string */ private $galleryId; public function __construct(string $galleryId) { $this->galleryId = $galleryId; } public function getGalleryId(): string { ...
true
e4b1c879c5aac2c109159d1993a68c7e9f0e846e
PHP
hhhhhhhhhh16564/11111chuanphp
/18/10.运行时间计算.php
UTF-8
826
3.3125
3
[]
no_license
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Document</title> </head> <body> <?php // 计算七天之后的时间 $now = time(); // 现在秒数 $next = $now + (60*60*24*7); echo da...
true
5dba91189c95fabdca68a0a101f0db43e4d0118e
PHP
Stolz/php-stubs
/res/php/ming/swfmorph.php
UTF-8
446
2.921875
3
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
<?php /** @phpstub */ class SWFMorph { /** * Creates a new SWFMorph object */ public function __construct() { } /** * Gets a handle to the starting shape * * @return SWFShape Returns a object. */ public function getShape1() { } /** * Gets a hand...
true
aa0668d05b4c9767091b89dcd8960eaa1f0668e7
PHP
davrivas/Sena2018
/Fase IV B/PHP/actividad-correo/ejercicio-6.php
UTF-8
898
3.65625
4
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Ejercicio 6</title> </head> <body> <h1>Ejercicio 6</h1> <form action="ejercicio-6.php" method="post"> <div> <label for="numero">Numero</label> <input type="number" name="numero" autofocus required> </div> <div> <input type="submit...
true
2d091969a7f729d4c22821b9b5c226af81338653
PHP
robertblackwell/litetest
/tests/TestTestCase.php
UTF-8
4,016
2.71875
3
[]
no_license
<?php class TestTestCase extends LiteTest\TestCase { function assert_pass_fail($test_case, bool $pass_fail) { $dummy = end($test_case->temporal_result->assertion_frames); $d = $dummy->passed; assert($d === $pass_fail); } function test_pass() { $test_case = new TestingTestCase(); $test_case->temporal_r...
true
49fed7209008dfc017d818d423f7eb81fff16002
PHP
dongnanyanhai/fnx103
/extensions/LaneWeChat/core/popularize.lib.php
UTF-8
4,026
2.65625
3
[ "Apache-2.0", "WTFPL" ]
permissive
<?php /** * 推广支持 * User: lane * Date: 14-10-31 * Time: 下午4:15 * E-mail: lixuan868686@163.com * WebSite: http://www.lanecn.com */ class Popularize{ /** * 生成带参数的二维码 - 第一步 创建二维码ticket * * 获取带参数的二维码的过程包括两步,首先创建二维码ticket,然后凭借ticket到指定URL换取二维码。 * * 目前有2种类型的二维码,分别是临时二维码和永久二维码, * 前者有过期时...
true
dd3cb3e9df2b7e77cafd5f1030b3c26dd5de0483
PHP
DonMed00/HLCWorks
/HLC/EjerciciosFormulario/ejercicioPHP_formulario.php
UTF-8
6,313
2.515625
3
[]
no_license
<?php $arrayPersonas = array( array('id'=> "0AB239", 'country' => 1, 'firstname' => "Ernest" , 'surname' => "Austin", 'age' => 30), array('id'=> "12A179", 'country' => 1, 'firstname' => "Ernest", 'surname' => "Poole", 'age' => 23), array('id'=> "1A90B9", 'country' => 1, 'firstname' => "Jacob", 'surname' => "Ma...
true
d7931eec357a82529fd4b51ae4f28acef380c611
PHP
greg0ire/wcb
/demo.php
UTF-8
588
2.71875
3
[]
no_license
<?php set_time_limit(0); require_once '/home/pi/.composer/vendor/autoload.php'; use lepiaf\SerialPort\SerialPort; use lepiaf\SerialPort\Parser\SeparatorParser; use lepiaf\SerialPort\Configure\TTYConfigure; use lepiaf\SerialPort\Exception\LogicException; try { $serialPort = new SerialPort(new SeparatorParser(";"), n...
true
e242333d6d254dbe86ce7d88f9fac0931126aeb1
PHP
coleHafner/quizbot
/models/base/baseQuiz.php
UTF-8
20,400
3.03125
3
[ "MIT" ]
permissive
<?php /** * Created by Dan Blaisdell's DABL * Do not alter base files, as they will be overwritten. * To alter the objects, alter the extended classes in * the 'models' folder. * */ abstract class baseQuiz extends ApplicationModel { const ID = 'quiz.id'; const SESSION_ID = 'quiz.session_id'; const CLASSRO...
true
cbfda602796d34020d0454c94eb1432d47bee0d0
PHP
virtuagora/creating-networks-api
/src/Auth/Service/AuthorizationService.php
UTF-8
1,663
2.578125
3
[]
no_license
<?php namespace App\Auth\Service; use App\Util\Exception\UnauthorizedException; use App\Auth\SubjectInterface as Subject; use App\Auth\ObjectInterface; class AuthorizationService { protected $db; protected $logger; public function __construct($db, $logger) { $this->db = $db; $this->l...
true
6e63ddbc9ff17acef0e254c62b784e0e3beb6da1
PHP
Gurlox/demo
/api/src/Entity/Item.php
UTF-8
2,793
2.609375
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\ItemRepository") */ class Item { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type=...
true
b9ecc7375b2ed406230ca8bb69b43ce0e6f038db
PHP
biletnam/events-manager-seats
/classes/SimpleOrm.class.php
UTF-8
3,292
3.234375
3
[ "MIT" ]
permissive
<?php /** * Class SimpleOrm * Not really an ORM, but is very useful for "unjoining" data. So if you have rows of join data, use this to create structured arrays. */ class SimpleOrm { /** * @param $collection mixed * @param $keepers array properties to keep in the collection * * @return array */ s...
true
cd143c392dbecd0f64656129e4305aa0a67cbfe7
PHP
andrewtheone/BlockyCMS
/src/Blocky/Router/Route.php
UTF-8
1,318
2.859375
3
[]
no_license
<?php namespace Blocky\Router; /** * undocumented class * * @package default * @author **/ class Route implements \ArrayAccess { private $values = array(); /** * undocumented function * * @return void * @author **/ public function __construct($initial) { $this->v...
true
3efab81fc57c305393f90e47b875ee3d4c03ba0a
PHP
fracz/refactor-extractor
/results/phpDocumentor--phpDocumentor2/5aa4e40e476587f38e5000193d8cddd252562994/before/UnknownTypeDescriptor.php
UTF-8
848
3.09375
3
[]
no_license
<?php namespace phpDocumentor\Descriptor\Type; use phpDocumentor\Descriptor\Interfaces\TypeInterface; /** * This class represents any Type that could not be identified. * * Sometimes DocBlocks refer to types, such as classes, that are outside the generated project's scope; in these * cases we want to identify th...
true
8799eb19a01b0321ffed362ddfb4e9b9e492de45
PHP
Amber-Core-Software-Ltd/helpers
/src/FileWorkTrait.php
UTF-8
228
2.546875
3
[]
no_license
<?php namespace AmberCore\Helper; trait FileWorkTrait { protected function checkDir(string $path) { if (!file_exists(dirname($path))) { mkdir(dirname($path), 0644, true); } } }
true
15bcc60268c05d3042e2d291ce8830c3e566f542
PHP
blasshak/uri
/Behaviors/GeneratePath/GeneratePathToInmuebleDetails.php
UTF-8
682
2.671875
3
[]
no_license
<?php namespace Jht\CoreBundle\Lib\Uri\Behaviors\GeneratePath; /** * Class GeneratePathToInmuebleDetails * @package Jht\CoreBundle\Lib\Uri\Behaviors\GeneratePath */ class GeneratePathToInmuebleDetails implements GeneratePathInterface { /** * @access public * @param array $parameters * @return a...
true
98e251c0a098719e693fca118cd662b64efe1d23
PHP
Abir-Ayed/GestionInondationLaravel5
/database/migrations/2019_03_24_230109_create_Observations_table.php
UTF-8
512
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateObservationsTable extends Migration { public function up() { Schema::create('Observations', function(Blueprint $table) { $table->increments('id_observ'); $table->String('etat'); $table->String('phot...
true
0fdfb98a48ce5ded0178d7ef07784b3bc927651f
PHP
melt/eventapp
/core/core/classes/localization_engine.php
UTF-8
29,207
2.796875
3
[]
no_license
<?php namespace melt\core; class LocalizationEngine { /** * Translation lookup array. * "aa" = Locale lowercase ISO 639-1 code * "msgid" = Original string. * * /translation entry/ = array( * "fuzzy => boolean, * "translations" => array( * 0 => /translation...
true
68cba697a34a9b324a4b2335f09757b9daf2329f
PHP
phomea/Echidna
/app/applications/anagraficaimmobili/entities/LayoutProspettoMillesimale.php
UTF-8
3,330
2.53125
3
[ "MIT" ]
permissive
<?php namespace applications\anagraficaimmobili\entities; use core\db\Field; use core\Model; use core\services\Db; use applications\anagraficaimmobili\entities\Fornitore; class LayoutProspettoMillesimale extends Model{ static function schema() { return [ "id" => Field::primaryInde...
true
3c833fd2bb53eb02d19c805c100c2b007f7b9979
PHP
szypi1989/moto_git
/src/AppBundle/Service/ValidRequest.php
UTF-8
6,614
2.5625
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Service; use Symfony\Component\Validator\Constraints\Regex; use Symfony\Component\Validator\Validator\ValidatorInterface as Validator; class ValidRequest { protected $validator; public function __construct(Validator $validator) { $this->validator = $validator; } p...
true
fce168db22742bd3086e5a874012b6603585b9de
PHP
AdithiyaSuresh/Php-programs
/OOPrograms/Person.php
UTF-8
688
2.578125
3
[]
no_license
<?php /** * class person containing properties of person for address book */ class Person { //var fname to store first name of the person public $fname; //var lname to store the last name of the person public $lname; //var address to store the address o...
true
ee41369a75a959c7b8f5ca179d9effeaa0a19e5c
PHP
tbajorek/doctrine-file-fixtures
/src/Model/Entity/Hydrator.php
UTF-8
2,083
2.578125
3
[ "MIT" ]
permissive
<?php namespace Tbajorek\DoctrineFileFixturesBundle\Model\Entity; use Tbajorek\DoctrineFileFixturesBundle\Model\Config\Metadata\Entity; use Tbajorek\DoctrineFileFixturesBundle\Model\Data\Fixture; use Tbajorek\DoctrineFileFixturesBundle\Model\Entity\Hydrator\FieldSetter; use Tbajorek\DoctrineFileFixturesBundle\Model\F...
true
f276c95e31c39b5cf4232fe5351f935c4d3b9a4e
PHP
duyquang19981/UDPT-Project
/api/data_api/user_account/ranking-5-in-month.php
UTF-8
1,929
2.609375
3
[]
no_license
<?php // required headers header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); header("Access-Control-Allow-Methods: GET"); header("Access-Control-Max-Age: 3600"); header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-W...
true
c3b3b2998c659fef78e0e31677cefd67c3d09c9f
PHP
julien-boudry/Condorcet
/Tests/src/Algo/Methods/Dodgson/DodgsonTest.php
UTF-8
15,437
2.65625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace CondorcetPHP\Condorcet\Tests\Algo\Methods\Dodgson; use CondorcetPHP\Condorcet\Election; use PHPUnit\Framework\TestCase; class DodgsonTest extends TestCase { private readonly Election $election; protected function setUp(): void { $this->election = new Ele...
true
fbfc5aa515a9529cdfac35d8e10fc93e6d0783c5
PHP
vicente-cruz/modulo_php7
/modulo_plataforma_ead/intranet/models/Alunos.php
UTF-8
2,843
2.859375
3
[]
no_license
<?php class Alunos extends Model { public function buscarAlunos() { $alunos = array(); $sql = " SELECT" . " alu.* " . ", (" . " SELECT COUNT(*) " . " FROM alunos_cursos AS ac " . " WHERE ac.id_al...
true
efe3e20bd22b253b8a100269bebe905f4ba042c9
PHP
icevisual/open
/app/Extensions/Common/ConstTrait.php
UTF-8
2,828
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Extensions\Common; trait ConstTrait { /** * 获取方法注释 * * @param unknown $methodName * @return multitype: */ public static function getMethodAnnotation($methodName) { $export = \ReflectionMethod::export(__CLASS__, $methodName, 1); $e...
true
bfe1c32285a33687211a79d73165fad2b30a50e2
PHP
VadimRublev/myfile
/index6.php
UTF-8
382
2.515625
3
[]
no_license
<?php $file = fopen('ips.json'); if( file_exists($file)){ $jsonData = file_get_contents($file); $data = json_decode($jsonData, true); $ip = $_SERVER['REMOTE_ADDR'] ; if(array_key_exists($ip, $data)){ $data[$ip]++; } else { $data[$ip] =1; } } else $data[$ip] = 1; $jsonData = json_encode($data, ...
true
4284c72229129ecbaadb58fb8f1d668a1acfbd7b
PHP
vgr2/comp3161project
/group_table/viewGroup_table.php
UTF-8
4,742
2.546875
3
[]
no_license
<?php include_once("../common/dbConnection.php"); include_once '../common/setup.php'; include_once("../common/header.php"); ?> <?php $thisG_id = $_REQUEST['g_idField'] ?> <?php $groupPosts = $db->get_results("select * from group_post where userId = '".$user->userId."' and g_id = '".$thisG_id."' order by date_created");...
true
0c293f45aa5d52a343f67a8dbc9e66f993c6f14e
PHP
farboloff/PVKS3-1
/PR1.php
UTF-8
1,945
3.734375
4
[]
no_license
<!DOCTYPE html> <html> <head> <title>Задание 1</title> </head> <body> <form method="post"> <input type="text" name="inputMas"> <input type="submit" name="go" value="Отправить"> </form> <?php $firstArray =[1,2,3,4,5,6,7,8,9,10]; $ArrayB = [1,2,3,4,5,6,7,8,9,10]; $ArrayC = [1,2,3,4,5,6,7,8,9,10]; $secondArray=ar...
true
912bf64ff1c7ef2e0fe1bb7fbb48abb41afbc4db
PHP
PetreIonutAndrei/PHP-Scripts
/class/mostenire/inheritance.php
UTF-8
2,158
3.59375
4
[]
no_license
<?php class Vehicle { public $is_started = false; //incapsulare - e false pt ca initial vehiculul este oprit public $gas = 0; //incapsulare function start(){ if($this->gas = 0); // nu inteleg de ce gas = 0 $this->is_started = true; } function __construct($gas){ //construct...
true
05ca4a51dfba7c20c434b0be86d860422768d1b3
PHP
pipic1/RssFeader
/model/Reader.php
UTF-8
1,262
3.046875
3
[]
no_license
<?php class Reader { public static function parseurXML($fichier) { global $rep, $vues; $balises = ["title", "description", "link", "guid", "pubDate", "category"]; $chaine = file_get_contents($fichier, true); if($chaine!=NULL){ $fluxrss1 = preg_split("/<\/?" . "item" . "...
true
022849bf30a8837853192ed90353e72688cc9490
PHP
ksenzee/views3ui
/theme/views-ui-list-views.tpl.php
UTF-8
1,329
2.609375
3
[]
no_license
<?php /** * @file * * Displays the list of views on the administration screen. */ ?> <p><?php print $help; ?></p> <?php print $widgets; ?> <?php foreach ($views as $view): ?> <table class="views-entry <?php print $view->classes; ?>"> <tbody> <tr> <td class="view-name"> <?php print $hel...
true
072e0d161d78af555527ea2dfb22c0904bb07e42
PHP
anoriar/ishop
/components/QueryManager.php
UTF-8
200
2.75
3
[]
no_license
<?php class QueryManager{ public static function getQueryResult($queryString) { $con = Db::getConnection(); $result = $con->query($queryString); return $result; } }
true
7664077bcc4a3de92a1e4f31b7c024f53aee876f
PHP
maloknsi/car-wash
/helpers/OrderHelper.php
UTF-8
2,186
2.78125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\helpers; use app\models\Order; use app\models\Review; /** * @package backend\helpers */ class OrderHelper { public static $statuses = [ Order::STATUS_BUSY => 'Забронировано', Order::STATUS_CANCEL => 'Отменен', Order::STATUS_SUCCESS => 'Выполнено', ]; /** * @param $status * @return s...
true
4ba9631a6e40526b4cfaf42288b302ba8f40b869
PHP
Raguvaran1307/Machine-task
/laravel-task/app/Models/Roles.php
UTF-8
432
2.5625
3
[]
no_license
<?php namespace App\Models\Order; use Illuminate\Database\Eloquent\Model; class Roles extends Model { /** * The attributes that are mass assignable. * * @var string[] */ protected $fillable = [ 'id', 'guard_name', 'name', ]; // ELOQUENT ORM RELATIONSHIPS F...
true
44adf3546ea5feec444dd2f9092b0a73e38f7d51
PHP
vantt/ory-hydra-php-login-provider
/code/src/Hydra/HydraClientInterface.php
UTF-8
2,634
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Hydra; use App\Hydra\DTO\CompletedRequest; use App\Hydra\DTO\ConsentRequest; use App\Hydra\DTO\LoginRequest; interface HydraClientInterface { /** * @param string $challenge * * @return LoginRequest * * @throws HydraException * * @see https://www.ory.sh/docs...
true
ff9befe70c1f4622d92d4c5f5d912dade31f9576
PHP
kfriedman/Refinery
/src/Helpers/UrlHelper.php
UTF-8
2,096
2.625
3
[]
no_license
<?php namespace NYPL\Refinery\Helpers; /** * Class UrlHelper * * @package NYPL\Refinery\Helpers */ class UrlHelper { protected static $rewriteUrls = array( 'https://d140u095r09w96.cloudfront.net/' => 'http://cdn-prod.www.aws.nypl.org/', 'https://contentcafe2.btol.com/' => 'http://contentcafe2.b...
true
8c72b2844d2f7f4882888583360f2cdf854b5585
PHP
pritam-git/VSOH
/library/L8M/Sql/Object.php
UTF-8
2,732
2.9375
3
[]
no_license
<?php /** * L8M * * * @filesource /library/L8M/Object/Object.php * @author Norbert Marks <nm@l8m.com> * @version $Id: Object.php 424 2015-09-21 14:24:22Z nm $ */ /** * * * L8M_Sql_Object * * */ class L8M_Sql_Object extends L8M_Sql_ObjectAbstract { /** * * * Class Constants * * */ /...
true
27165b46c001d4f0692d71bd0a298fa4325d4539
PHP
thaochan5197/symfony_test
/src/Entity/OrganizationType.php
UTF-8
1,835
2.65625
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\OrganizationTypeRepository") */ class OrganizationType { /** * @ORM\Id() * @ORM\GeneratedValue(st...
true
e0f1b53e5e415b9df166e8c6393cf51d88e192cf
PHP
BienvenunGnaha/funerairefrance
/src/Entity/Faq.php
UTF-8
2,190
2.59375
3
[]
no_license
<?php namespace App\Entity; use App\Repository\FaqRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=FaqRepository::class) */ class Faq { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="s...
true
e8b4b57d9dffc67b1dc3f06a337e9d864aa36865
PHP
lkchoi/imgup-demo
/app/Image.php
UTF-8
620
2.640625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Http\UploadedFile; class Image extends Model { protected $fillable = [ 'title', 'description', 'offset', 'url', 'tn_url' ]; public $dates = [ 'deleted_at' ]; public static...
true
61dd31cfd21ea3a44ee3c5c3b110a20cc1d4eac0
PHP
lucykang/CMS-website
/save-admin.php
UTF-8
4,087
2.90625
3
[]
no_license
<?php ob_start(); require_once('auth.php'); //set the page title $title = 'User Information Updated'; //show header on the page require_once('header.php'); //store the form inputs in the variables $username = $_POST['username']; $password = $_POST['password']; $confirm = $_POST['confirm']; $first_name = $_POST['firs...
true
c7d38cf8175c8bf09df82a7f4f557094f6516882
PHP
necipallef/Dependency-Injection-for-PHP
/examples/MathService.php
UTF-8
348
2.828125
3
[]
no_license
<?php use Fabs\DI\Injectable; /** * Created by PhpStorm. * User: ahmetturk * Date: 21/03/2017 * Time: 09:11 */ class MathService extends Injectable { public function add($number1, $number2) { return $number1 + $number2; } public function multiply($number1, $number2) { return $...
true
eb2fd8dd2162d584d3e4ca3b63700692f53f61a5
PHP
maciulex/Ulanopoli
/gameBoard/scripts/getFildsFromFilds.php
UTF-8
819
2.59375
3
[]
no_license
<?php session_start(); if (!isset($_SESSION["id"]) || !isset($_SESSION["gameId"])) { echo "Error"; exit(); } if (!(include_once "../../base.php")) { echo "Error"; exit(); } $connection = new mysqli ($host, $db_user, $db_passcode, $db_name); if ($connection ->...
true
a25dbc4c791f569055f5eb1fde0c2fcb414c27bb
PHP
denismitr/etag
/src/ETagMiddleware.php
UTF-8
2,508
2.84375
3
[ "MIT" ]
permissive
<?php namespace Denismitr\ETag; use Closure; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\Http\Response; class ETagMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed ...
true
a0c0b2d20afbdf6d7ab7dcbdf0c2c211a7295ce7
PHP
Shop2market/Magento2
/Api/CartProductAddInterface.php
UTF-8
308
2.5625
3
[]
no_license
<?php namespace Adcurve\Adcurve\Api; interface CartProductAddInterface { /** * Return bool. * * @api * @param string $quoteId. * @param mixed $productsData * @param int $store. * @return bool. */ public function addProduct($quoteId, $productsData, $store = null); }
true
e8e84ea9ac59bee7054d9e9607e0cbd941dd9b81
PHP
yuhsin7676/js-games
/Морской бой/creategame.php
UTF-8
933
2.515625
3
[]
no_license
<?php $a=file_get_contents('control.php'); $arr=unserialize($a); $player=$_POST["player"]; $choose=$_POST["choose"]; if ($player==1){ $arr[0]=1; if ($choose==1){ for($i=0; $i<15; $i++){ for($j=0; $j<15; $j++){ $arr1[$i][$j]=0; }; }; } else{ for($i=0; $i<15; $i++){ for(...
true
998a855c917c6d6dff427e515117b21758c14831
PHP
Donnicias/school
/mvc/models/studentexamanalysis_m.php
UTF-8
2,651
2.640625
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Studentexamanalysis_m extends MY_Model { protected $_table_name = 'mark'; protected $_primary_key = 'markID'; protected $_primary_filter = 'intval'; protected $_order_by = "subject asc"; function __construct() { parent::__constru...
true
ee119535a674a9c9065782790030b753c05ec8ac
PHP
securia/api
/src/ApplicationBase/RemoveOldFiles.php
UTF-8
1,501
2.765625
3
[]
no_license
<?php namespace ApplicationBase; /** * For making Email Queue * * Class RemoveOldFiles * @package ApplicationBase */ class RemoveOldFiles { //function is remove old file from s3 public function fire($job, $arrOldFiles) { try { //Reattempt failed job at-most 1 times if...
true
209c473aa3e6c208b183d746cc83fcc471a3202b
PHP
dapobelieve/college-of-nursing-management-system
/app/Http/Controllers/CourseController.php
UTF-8
4,071
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use DB; use Auth; use Session; use App\Alert; use App\User; use App\Models\Course; use App\Models\Student; use App\Models\Payment; use App\Models\Department; use Illuminate\Http\Request; class CourseController extends Controller { /** * Display a listing of the resource...
true
43505d12d1eb3306623c44f03edc0984fbb5074e
PHP
simonceddy/aflcrawler
/src/Util/PlayerName.php
UTF-8
285
2.984375
3
[]
no_license
<?php namespace AflCrawler\Util; final class PlayerName { public static function make(string $value) { [$surname, $givenNames] = explode(', ', $value, 2); return [ 'surname' => $surname, 'givenNames' => $givenNames, ]; } }
true
fd4e52c0ba7c9e55d3e3c12a26d466cdaff77442
PHP
guillat/APINews
/database/factories/NewsFactory.php
UTF-8
1,056
2.515625
3
[ "MIT" ]
permissive
<?php namespace Database\Factories; use App\Models\News; use App\Models\Authors; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\database\factories\AuthorsFactory; class NewsFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ ...
true
e1a978d2e7d303e29f20b5c9133602effc6c42d4
PHP
kayn0601/mvcDemo
/application/index/index.class.php
UTF-8
1,699
2.671875
3
[]
no_license
<?php if(!defined("MVC")) { die("非法侵入"); } class index{ function int(){ echo "前台页面"; } } //class index{ // function int(){ //// $en=new engine(); //// $en->setTemplaterDir(TPL_PATH); //// $en->setCompileDir(COMPILE_PATH); // // $smarty=new Smarty(); // $smart...
true
652c2eda977d3047c593359422df77deed7e9eca
PHP
Sergey-Web/oxgaming
/src/Command/ArchiveLogsCommand.php
UTF-8
1,712
2.828125
3
[]
no_license
<?php declare(strict_types=1); namespace App\Command; use App\Service\LogService; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Throwable; class ArchiveLogsCommand ...
true
4327ff668d1b61e26028164a38e5b3ba8241e29d
PHP
tvisentin/Camagru
/initdata.php
UTF-8
2,401
2.65625
3
[]
no_license
<?php session_start(); function initdata($login, $email) { $tab = array(); if (file_exists("./private/user")) { $fp = fopen("./private/user", "r+"); flock($fp, LOCK_EX | LOCK_SH); $contents = file_get_contents("./private/user"); $tab = unserialize($contents); } array_push($tab, inituser($login, $email));...
true
28a6e5d0cf0909fc30284e809cf34fdb75cffb94
PHP
voidptr/imedlife2
/server/lib/iphone/logout.php
UTF-8
1,752
3.328125
3
[]
no_license
<?php //logout.php - Just destroys the user's session and logs the user out. //expects a reference to the sessionID that wants to logout include_once("lib/connect.php"); //Connects to the database so the user can be authenticated header("Content-Type:text/xml"); //Print out the xml header information from the...
true
751c31e08a9a5c087a24c09dfa01d21b403796ce
PHP
cngotom/365store
/yii/protected/models/Category.php
UTF-8
4,587
2.515625
3
[]
no_license
<?php /** * This is the model class for table "green_category". * * The followings are the available columns in table 'green_category': * @property integer $cat_id * @property string $cat_name * @property string $keywords * @property string $cat_desc * @property integer $parent_id * @property integer $sort_or...
true
9eff10b3fc972d36714f785ff5223b44502c4be9
PHP
olhkrk/musicome
/application/Model/MediaAttributeVarchar.php
UTF-8
1,748
2.734375
3
[]
no_license
<?php /** * Class MediaAttributeVarchar * * @author Kriukova Olha <olhkrk@gmail.com> * @copyright 2021 KO */ namespace Musicome\Model; use Musicome\Core\Model as MusicomeModel; /** * Class MediaAttributeVarchar * * @package Musicome\Model */ class MediaAttributeVarchar extends MusicomeModel { const ID_F...
true
a15066a01d8ee8d35fb2bbc2a9c34704c0d8ad50
PHP
laravelartisan/svcom
/app/Image.php
UTF-8
402
2.546875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Image extends Model { protected $fillable = ['path','imageable_id','imageable_type']; /** * both product and profile might have image * Polymorphic Relationship between product and image * Polymorphic Relationship between profile and image *...
true
2ae9c7936fe9c06a811e3cfe05e8d88d63b5c6f6
PHP
JuanArton/Web-Programming
/Practice8/loop.php
UTF-8
801
3.921875
4
[]
no_license
<?php echo "While : <br>"; $x = 1; while($x <= 5) { echo "The number is: $x <br>"; $x++; } echo "<br>"; echo "<br>"; echo "Do While : <br>"; $x = 2; do { echo "The number is: $x <br>"; $x++; } while ($x <= 5); echo "<br>"; echo "<br>"; echo "For : <br>"; for ($x = 0; $x <= 10; $x++) { echo "The number...
true
cb479c3f92735e343ac4e568cbb596cf661c5789
PHP
bueltge/TwentyTenJump
/functions.php
UTF-8
3,709
2.546875
3
[]
no_license
<?php function twentytenjump_setup() { // define constants for textdomain define( 'TWENTYTENJUMP', 'twentyten' ); // load textdomain with path load_child_theme_textdomain( TWENTYTENJUMP, STYLESHEETPATH . '/languages' ); remove_filter( 'excerpt_length', 'twentyten_excerpt_length' ); add_filter( 'ex...
true
b0d62afe99ec8b90f2a9444f03c84e30b4042c62
PHP
daniilpanov/my_project
/admin/app/classes/MLogin.php
UTF-8
514
2.84375
3
[]
no_license
<?php namespace app\classes; class MLogin { //Метод, проверяющий, правильно ли введён пароль и логин, или нет protected function getUser($login) { //SQL-запрос $sql = "SELECT `password` FROM `users` WHERE login='{$login}'"; //если запрос - истина, то возвращаем результат if...
true
9f65b0a502191962f8f36f014a80283108063624
PHP
Samcro77/Factory
/mail.php
UTF-8
4,687
2.796875
3
[]
no_license
<?php require_once "phpmailer/PHPMailerAutoload.php"; require_once "Database.php"; $mail = new PHPMailer(); //$mail->isSMTP(); // //$mail->Host = "smtp.mail.ru"; //$mail->SMTPAuth = true; //$mail->Username = "p_opalev"; //$mail->Password = "p4815162342"; //$mail->SMTPSecure = "ssl"; //$mail->Port = "465"; // //$mail->...
true
6f808b93ad5ab3e8903a77f16a1b979c5653e56c
PHP
niit-php34/php-basis
/lab8/curd.php
UTF-8
3,503
2.75
3
[]
no_license
<?php $conn = mysqli_connect('localhost', 'root', 'koodinh'); if (!$conn) { die('Ket noi loi cmnr '.mysqli_connect_error()); }; mysqli_query($conn, 'use learning'); if (isset($_GET['action'])) { //neu nhu ton tai thao tac $action = $_GET['action']; switch ($action) { case 'delete': //delete ...
true
39d6e0c6c7ce2e27478e146a1d136fdec4efc55b
PHP
egorshubin/modelsfilter_module_prestashop
/classes/FeaturesVars.php
UTF-8
2,507
2.875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: egors * Date: 20.04.2018 * Time: 11:33 */ class FeaturesVars { private static $instance; private static $fMarkaId; private static $fModelId; private static $fModifId; public static $fUnivId; private static $fMarkaName; private static $fModelNa...
true
f49cdfc2a467ece53ebd819b9bcc4222e28a8102
PHP
DavidDeville/Tweet_Academie
/controller/FormController.class.php
UTF-8
6,367
3.390625
3
[]
no_license
<?php require_once 'Controller.class.php'; /* ** Form-validation base controller */ abstract class FormController extends Controller { /* ** The message to display in AJAX response when fields are valid */ protected $valid_message; /* ** The status of the form, an associative array where keys...
true
b4a87fab76879e8cea319cdc12157b4f69732721
PHP
DevMicTal/colocation
/Vue/Accueil/index.php
UTF-8
1,367
2.515625
3
[]
no_license
<?php // Contiendra l'accueil des annonces de logement $titre_de_page = "Accueil"; include(__DIR__.'/../Core/header.php'); ?> <br> <?php $annonces = recuperer_toutes_les_annonces_logements(); if($annonces == "Erreur: Aucune annonce disponible." || $annonces == "") { ...
true
cc77356c32464478b09316ca44d35a2d3beb5005
PHP
sinan4yildiz/zexacore
/app/Console/Commands/Database/Restore.php
UTF-8
2,205
2.84375
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands\Database; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Schema; use Symfony\Component\Process\Process; class Restore extends Command { /** * The name and signature of the console com...
true
d18fe804217b0af902bf5881058844476eddad8d
PHP
ricardomga/nep-um-web
/api/objects/Multimedia.php
UTF-8
5,956
2.71875
3
[]
no_license
<?php require_once dirname(__FILE__) . '/../db/DbConn.php'; function addDirectory($params) { $name = $params['name']; $connection = dbConnect(); $response = array(); $query = "Select * From Directory Where name='$name'"; $resul = mysql_query($query, $connection); if (mysql_num_...
true
fbe04afcf7efcc2fd9fde9ed901f340ff83a6b06
PHP
manialib/formatting
/src/Manialib/Formatting/Color.php
UTF-8
5,499
3.125
3
[ "MIT" ]
permissive
<?php namespace Manialib\Formatting; abstract class Color { const CONTRAST_DARKER = -1; const CONTRAST_AUTO = 0; const CONTRAST_LIGHTER = 1; public static function contrast($colorRgb, $backgroundRgb, $contrast = self::CONTRAST_AUTO) { $backgroundHsv = self::rgb24ToHsv($backgroundRgb);...
true
7a1ef56166c470b12cf3d15760c7299dbfb2b7fb
PHP
unocha-co/monitor-ushahidi-plugins
/state/controllers/state.php
UTF-8
1,954
2.5625
3
[]
no_license
<?php defined('SYSPATH') or die('No direct script access.'); /** * Av Controller. * This controller will take care of adding and synchronize repors with sidih in the Admin section. * * PHP version 5 * LICENSE: This source file is subject to LGPL license * that is available through the world-wide-web at the follo...
true
8b10d78a4ef9d96edcd11f249da032ca1e5be5f7
PHP
creamylooks/AzureTest
/roadToSuperHero/Showsuperheros.php
UTF-8
531
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: 1509184 * Date: 24/04/2016 * Time: 17:05 */ include("connection.php"); $sql="SELECT * FROM superheros"; $execute=mysqli_query($sercon,$sql); $row=mysqli_num_rows($execute); echo "<table><tr><th>First Name</th><th>Last Name</th><th>Super Power</th></tr>"; while($row>0){ ...
true
299019eba6b656cacfce619e18ea8dfd1db98f05
PHP
Aldin-SXR/bchdb
/src/Models/Transaction.php
UTF-8
493
2.703125
3
[ "MIT" ]
permissive
<?php namespace BCHDB\Models; class Transaction { public $_id; public $in; public $out; public $blk; public function hash($_id) { $this->_id = $_id; return $this; } public function input($input) { $this->in = $input; return $this; } public functio...
true
eced67dd1a3ffa307799f933fcd6f64bb820c600
PHP
Attirobert/SzF5
/2021.05.08/iktat/iktat.php
UTF-8
3,381
2.765625
3
[]
no_license
<?php /* Session indítása */ session_start(); require "classes/db.php"; // Osztály importálása // Üzenet változója $uzen = ""; /* Megnézem, hogy az index.php-ban bejelentkezett-e */ if (isset($_SESSION["user"])) { $user = $_SESSION["user"]; } else { header("location: index.php"); } /* Kapcsolódás az adatbáz...
true
0441652f81d2ba6b1fc6d0eb93dc73f0ccb118b8
PHP
daubac402/regex-go
/include/locale/lang_en.php
UTF-8
10,674
2.921875
3
[]
no_license
<?php class CurrentLanguage { const LANG = [ 'Regular Expression' => 'Regular Expression' ,'Test String' => 'Test String' ,'Expression Flags' => 'Expression Flags' ,', ' => ', ' ,'ignore case' => 'ignore case' ,'global' => 'global' ,'multiline' => 'multiline' ,'ERROR: ' => 'ERROR: ' ,'flags' => 'flag...
true
63a76ac2f9ffb0567138b3b2cd9e145c64bb35b6
PHP
yheihei/wp-overseas
/functions.php
UTF-8
22,238
2.53125
3
[]
no_license
<?php //子テーマ用関数 // define('WP_DEBUG', false); // E_NOTICE 以外の全てのエラーを表示する error_reporting(E_ALL & ~E_NOTICE); //テーマ名 define('THEME_NAME', 'cocoon'); //親skins の取得有無の設定 function include_parent_skins(){ return true; //親skinsを含める場合はtrue、含めない場合はfalse } //子テーマ用のビジュアルエディタースタイルを適用 add_editor_style(); //以下にSimplicity子テーマ用...
true
85b17e8791aac09f093245007d55ad9b57c89c85
PHP
pakuyuya/name-manager
/src/main/curry/html/html_table.php
UTF-8
6,348
3.15625
3
[ "MIT" ]
permissive
<?php /** * @see HtmlTableRow */ require_once 'html/html_table_row.php'; /** * HtmlTable * * Copyright (c) 2011 Curry PHP Framework developers. * This software is released under the MIT License. * * @category Curry * @package html * @copyright Copyright (c) 2011 Curry PHP Framework developers * @link...
true