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
78511486ace1aa111fe8787f578cbdd06a92193e
PHP
perfectritone/earthroots-php
/index.php
UTF-8
1,084
3.03125
3
[ "MIT" ]
permissive
<?php require ("Page.php"); $page = new Page(); $db = new mysqli( $dbHost, $dbUser, $dbPassword, $dbName); if ($db->connect_error) { die($db->connect_error.' Error #'.$db->connect_errno); } $page->content = <<<HTMLSTRING <h1>Welcome!</h1> <form action="searchailment.php" method="get"> <select class="select...
true
ab4bbd02cc8f84471eca2d309a386d40c13db4c1
PHP
rolandinsh/phpscenario
/lib/Scenario/Identity/Provider/Session.php
UTF-8
2,119
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * phpScenario * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.phpscenario.org/license.php * If you did not receive a copy of the license and are ...
true
cf1a1b5a5b5ecf2b2a28a0e782d5f1eb0cefbf1f
PHP
MARKKzjEE/book-play
/database/migrations/2019_03_17_104605_create_users_table.php
UTF-8
2,060
2.578125
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUsersTable extends Migration { /** * Crea una tabla users con la información del usuario. * * @author ismaelsanchezf * * @return void */ ...
true
f778b68bfae8a898574663e9c51e9c110739d2f2
PHP
evanhsu/wildrivers
/classes/person_class.php
UTF-8
12,258
2.9375
3
[]
no_license
<?php require_once(__DIR__ . "/../classes/mydb_class.php"); class person { var $id; // An Integer, referring to the database id for this person (people.id) var $firstname; var $lastname; var $name; // Firstname, Lastname, and any 'bling' that has been earned - i.e. John Doe <img src="bling_filename"> var ...
true
8477949f444ae559885eaacfb07aea5cc0a9b9d9
PHP
alkaupp/dbutils
/tests/DBUtils/Connection/MySQLConnectionTest.php
UTF-8
912
2.609375
3
[]
no_license
<?php use DBUtils\Connection\ConnectionException; use PHPUnit\Framework\TestCase; use DBUtils\Connection\MySQLConnection; class MySQLConnectionTest extends TestCase { public function testGetConnectionExceptionNoHostnameSet(): void { $this->expectException(ConnectionException::class); $con = ne...
true
5eeeffeaf23b4f6027f0bc94bf57a6a5b3fbb30b
PHP
swiezaczynski/optegra
/form1.php
UTF-8
1,076
2.53125
3
[]
no_license
<?php session_start(); require_once "connect.php"; $polaczenie = new mysqli($host, $db_user, $db_password, $db_name); $email = $_POST['email1']; if (isset($_POST['potwierdzenie1'])) { $checkbox = $_POST['potwierdzenie1']; unset($_SESSION['e_checkbox']); } else { $_SESSION['e_checkbox']="1"; ...
true
f28afd56a007dbfab78a3018131a5089d754216a
PHP
zoek1/php-testing-tools
/tests/src/ContractTests/Ewallet/Accounts/MembersTest.php
UTF-8
2,033
2.671875
3
[ "MIT" ]
permissive
<?php /** * PHP version 5.6 * * This source file is subject to the license that is bundled with this package in the file LICENSE. */ namespace ContractTests\Ewallet\Accounts; use DataBuilders\A; use Ewallet\Accounts\Identifier; use Money\Money; use PHPUnit\Constraints\ProvidesMoneyConstraints; use PHPUnit_Framewor...
true
2ec61486d962337d924df7e703a13d9321fdac57
PHP
luzdelsol668/laravel-blog
/src/Events/BlogPostWillBeDeleted.php
UTF-8
640
2.546875
3
[ "MIT" ]
permissive
<?php namespace HessamCMS\Events; use Illuminate\Queue\SerializesModels; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Broadcasting\InteractsWithSockets; use HessamCMS\Models\HessamPost; /** * Class BlogPostWillBeDeleted * @package HessamCMS\Events */ class BlogPostWillBeDeleted { use Dispatch...
true
a3d75aabdda31f6b7d287a8ca6a23c5d20544d62
PHP
cookyii/cookyii
/dev/build/InstallTask.php
UTF-8
10,382
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * ExtractTask.php * @author Revin Roman * @link https://rmrevin.com */ namespace dev\build; use cookyii\build\tasks\CallableTask; /** * Class InstallTask * @package dev\build */ class InstallTask extends CallableTask { /** * @var string */ public $envDistFile = '.env.dist.php'; ...
true
f8ea38dc19ef83c2571247e5e1b34b90e66e4af2
PHP
Dinaria1997/PHPAcademy
/09.12.17/22.php
UTF-8
207
2.828125
3
[]
no_license
<?php $a = -20; var_dump(boolval($a)); /*Все целые числа и числа с плавающей точкой со знаком -/+ отображаются как 'True', а число 0 - False.*/
true
78d22f6c8176449345f6a2e885714d12a6cf37fc
PHP
zawszaws/gov-VacantDC
/application/views/helpers/IsoDate.php
UTF-8
634
2.78125
3
[]
no_license
<?php /** * * @author farrelley * @version */ require_once 'Zend/View/Interface.php'; /** * IsoDate helper * * @uses viewHelper Zend_View_Helper */ class Zend_View_Helper_IsoDate { /** * @var Zend_View_Interface */ public $view; /** * */ public function isoDate($date) { $zd = new Zend_Dat...
true
5a47f6ff002484edc3e80efbe8fa151375a03303
PHP
RegioneER/sirer
/html/html/xCDMProtocolloLib/Archiflow/soapClient/Card/Type/GetCardAttachmentInChunkResponse.php
UTF-8
937
2.609375
3
[]
no_license
<?php namespace ArchiflowWSCard\Type; use Phpro\SoapClient\Type\ResultInterface; class GetCardAttachmentInChunkResponse implements ResultInterface { /** * @var \ArchiflowWSCard\Type\GetCardAttachmentInChunkOutput */ private $GetCardAttachmentInChunkResult = null; /** * @re...
true
a40432c0daf7e3f6b0133afac7e52845c2aeee7d
PHP
issamahamat/Final-Year-Project
/database/migrations/2020_12_03_180714_create_profiles_table.php
UTF-8
1,583
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateProfilesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('profiles', fun...
true
a226e9ec31d1b5e3dfda73ac3af5f2dfad95ace3
PHP
Aminevsky/memo_app_laravel
/app/Services/MemoUpdateService.php
UTF-8
874
2.84375
3
[]
no_license
<?php namespace App\Services; use App\Repositories\MemoRepositoryInterface; /** * Class MemoUpdateService * @package App\Services */ class MemoUpdateService { use MemoHelperTrait; /** @var MemoRepositoryInterface */ private MemoRepositoryInterface $memoRepository; /** * コンストラクタ * ...
true
ff8a2f1d8d57007ad11ed72e9c3edcc90db28e2e
PHP
bruxr/Silver-API
/tests/Core/Datastore/IdentityMapTest.php
UTF-8
1,461
2.5625
3
[]
no_license
<?php use App\Core\Datastore\IdentityMap; class Food extends App\Core\Datastore\Model { } class IdentityMapTest extends TestCase { public function setUp() { $this->map = new IdentityMap(); } public function testHas() { $this->assertFalse($this->map->has('food', 'chicken-bbq')); ...
true
1af95a4ada584cab45834c62ac816dc20fec622b
PHP
phpsrbija/unfinished
/application/packages/Admin/src/Factory/SessionFactory.php
UTF-8
1,010
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Admin\Factory; use Interop\Container\ContainerInterface; use Zend\Session\Config\SessionConfig; use Zend\Session\SessionManager; /** * Class SessionFactory. */ class SessionFactory { const SESSION_CONF = [ 'remember_me_seconds' => 2592000, //2592000, // 30 * 24...
true
14cf38ce469ebed7bd58ccf243a4d1689f5384f5
PHP
fotografde/oauth-client
/src/Cache/CacherPrefixTrait.php
UTF-8
320
2.625
3
[]
no_license
<?php /** * Cacher prefix trait */ namespace GetPhoto\Oauth2\Client\Cache; trait CacherPrefixTrait { protected $prefix = ''; public function setPrefix($prefix) { if (substr($prefix, -1) != '_') { $prefix .= '_'; } $this->prefix = $prefix; } public function getPrefix() { return $this->prefix; } }
true
abe9747d991298088e295a456fc8effbd95e29ea
PHP
khaled87sy/depot-distant-tb-21132
/EXERCICES PHP/TESTPHPKHALED.php
UTF-8
1,281
3.515625
4
[]
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>Document</title> </head> <body> <?php $tableau = array("a" => "Lundi", "b" => "Mardi", "c" => "Mercredi", "d" ...
true
da1aace01f90e14aab30627ec60b0b0bb4fc6830
PHP
sebastianGR429/proyecto
/modelo/daos/DAOComisiones.php
UTF-8
2,280
2.65625
3
[]
no_license
<?php include_once($_SERVER['DOCUMENT_ROOT'] . '/proyecto/controlador/db.php'); include_once($_SERVER['DOCUMENT_ROOT'] . '/proyecto/modelo/entidades/Comisiones.php'); class DAOComisiones extends DB { private $con; public function __construct() { parent::__construct(); $this->con = $this->...
true
b0739befe1cea0a1e507718a31bdd83cfd467e45
PHP
nagybalinttr/sirius_html
/gyakorlo1/futar.php
UTF-8
2,409
2.90625
3
[]
no_license
<?php const servername = "127.0.0.1"; const username = "sirius"; const password = "sirius"; const dbname = "futar"; function keres($value = null) { if ($value) { $conn = new mysqli(servername, username, password, dbname); mysqli_set_charset($conn, "utf8"); if ($conn->connect_err...
true
256515bb6c9cbfd89b010f627c4c29fac819e73f
PHP
umitakkaya/sample-api-client
/src/DP/Model/Address.php
UTF-8
1,522
2.609375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: umitakkaya * Date: 22/09/15 * Time: 12:54 */ namespace DP\Model; use JMS\Serializer\Annotation\Type; class Address extends AbstractErrorResponse { /** * @Type("integer") */ private $id; /** * @Type("string") */ private $name; /** * @Type("string") */ ...
true
b6f93974c7ef445ba1f6039cd73998dcee83edec
PHP
itsDineth/EES
/template/!BK/undergraduate_fieldcamps.php
UTF-8
5,060
2.515625
3
[]
no_license
<script type="text/javascript" src="js/trip_slide.js"></script> <?php include "includes/db.php"; include "includes/functions.php"; $sql_years = "SELECT * FROM events WHERE (type='fieldcamp' && status='approved') ORDER BY date_from DESC"; $results_years=mysql_query($sql_years) or die("Unable to execute:...
true
df84c9b14a5ba28e66dd8f2d100309c7f39cc81b
PHP
yimengyisheng/easycharts
/tests/src/View/Axis/AxisTest.php
UTF-8
521
2.59375
3
[]
no_license
<?php use Wobeto\EasyChart\View\Axis\Axis; class AxisTest extends \PHPUnit_Framework_Testcase{ private $axis; public function __construct(){ $this->axis = new Axis(5, 8); $this->axis->computeBoundaries(); } public function testGetLowerBondary(){ $this->assertEquals(5, $this->axis->getLowerBoundary())...
true
ac2fc6dfa7f03b3b17cf3dd26cf5812db9441210
PHP
simonh88/DriveBDD2
/Model/P_lot.php
UTF-8
4,200
2.703125
3
[]
no_license
<?php class P_lot extends Promotion { private $nb_achetes; private $nb_gratuits; function __construct($row) { parent::__construct($row); $this->nb_achetes = $row['NB_ACHETES']; $this->nb_gratuits = $row['NB_GRATUITS']; } //GETTER function getNb_achetes...
true
dda5faafc324159bdb1ddd32f18e71096c44fb50
PHP
chan201/Tutor_Dashboard
/app/TDGateways/Implementations/UserGateway.php
UTF-8
1,542
2.625
3
[ "MIT" ]
permissive
<?php namespace Aham\TDGateways\Implementations; use Aham\TDGateways\UserGatewayInterface; use Aham\Models\SQL\User; use Aham\Jobs\SendActivationEmail; use Illuminate\Foundation\Bus\DispatchesJobs; use Aham\Managers\SuperMail; use Sentinel; use Activation; use Mail; class UserGateway extends AbstractGateway implem...
true
74e89097f2f24a4c51820edbcc67707a7f0ec7d6
PHP
wPaniagua/Compra-y-venta-de-toda-papada-Back
/administracion/reportes/denuncias.php
UTF-8
3,723
2.765625
3
[]
no_license
<?php $mysqli = new mysqli( 'localhost:3306', 'root', '', 'mydb' ); $dsn = "mysql:host=localhost:3306;dbname=mydb;charset=utf8mb4"; $options = [ PDO::ATTR_EMULATE_PREPARES => false, // turn off emulation mode for "real" prepared statements PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, //turn on error...
true
b9328772810ccebff96d04c4d2e3192e274771bc
PHP
jercoos19/marketfun
/member_system/activate.php
UTF-8
875
2.515625
3
[]
no_license
<?php session_start(); //require('member_system/dbh.php'); require_once 'dbh.php'; //collect values from the url $U_Id = trim($_GET['x']); $active = trim($_GET['y']); //if id is number and the active token is not empty carry on if(is_string($U_Id) && !empty($active)){ //update users record set the active column to Y...
true
8a0e463fa5dc42718e5d67d09f86583855ab21fe
PHP
AshokKashyapK/mobikar
/mobiKAR/archive/web/test-service.php
UTF-8
817
2.75
3
[]
no_license
<?php $postdata= file_get_contents("php://input"); if ($postdata != FALSE) { header("Content-type: text/plain"); echo "Otrzymane w zapytaniu POST[".$postdata."]"; } else { $host= $_SERVER["SERVER_NAME"]; $fp= fsockopen($host, 80, $errno, $errstr); $post= "Ala ma kota"; $out= ""; $out .= "POST ".$_SERV...
true
7cc52b7e89a357597b43d2f2cd3089d08fc037ae
PHP
chandrew25/kmall
/core/util/xml/UtilXmlDom.php
UTF-8
11,332
3.15625
3
[]
no_license
<?php /** +---------------------------------------<br/> * 采用Dom方式处理Xml<br/> * 可采用其处理Html格式的文档内容<br/> +---------------------------------------<br/> * @category betterlife * @package util.xml * @author skygreen */ class UtilXmlDom extends Util { private static $xml = null; private static $encoding = 'UTF...
true
972a4517aa41b07dccedc3045be17d6804e16a7a
PHP
ahmedhammad97/University-Database-System
/courses.php
UTF-8
704
2.640625
3
[]
no_license
<?php //Connection to DB $connection = new mysqli("localhost", "root", "", "DBCourse"); //Check connection if ($connection->connect_error){ die("Connection failed: " . $connection->connect_error); echo "1"; return; } $dept = $_POST["dept"]; $name = $_POST["name"]; ...
true
cba766bd200f06efb489e28fd90343801ab52b2c
PHP
codename-hub/core
/backend/class/frontend/buttonGroup.php
UTF-8
1,020
3.15625
3
[]
no_license
<?php namespace codename\core\frontend; /** * Button Group creation/link class * @package core * @author Kevin Dargel * @since 2017-01-05 */ class buttonGroup extends element { /** * array of menu elements * @var element[] */ public $items = array(); /** * @inheritDoc */ public function _...
true
32f03607e2b16dc33a7b4f1b170f3da704ff1250
PHP
obsnomad/quest
/app/Models/ScheduleException.php
UTF-8
952
2.703125
3
[]
no_license
<?php namespace App\Models; use App\Models\BaseModel as Eloquent; use Illuminate\Database\Query\Builder; /** * Class ScheduleException * * @property int $id * @property int $questId * @property Quest $quest * @property \Carbon\Carbon $date * @property int $treatAs * @method static Builder|ScheduleException w...
true
78680bbc3a3d764aae90312b3a26d0b7687be8dd
PHP
wilgai/WillBackend
/Controlador/Usuario/single.php
UTF-8
989
2.6875
3
[]
no_license
<?php //Headers header('Access-Control-Allow-Origin: *'); header('Content-Type: application/json'); include_once '../../config/Database.php'; include_once '../../Modelo/usuario.php'; //Instancaite DB & connect $database =new Database(); $db =$database->connect(); //Instanciate blog post object $usuario = new Usuar...
true
33b58a5bafc6f900cb0df4325bff5c1a9d89a283
PHP
devbin/ToObject
/src/traits/Iterator_t.php
UTF-8
1,415
3.125
3
[ "MIT" ]
permissive
<?php namespace Devbin\libs\ToObject; /** * Iterator_t * Implementation of the \Iterator Interface conforming the structure * of ToObject Classes. * * {@link http://php.net/manual/en/class.iterator.php} */ trait Iterator_t { /** * rewind * Sets (rewinds) the internal Iterator pointer to the first ...
true
b4d00e44c506f1977f8b20191351594bed42f2fd
PHP
khvalov/osm
/src/TagExpression.php
UTF-8
222
2.671875
3
[ "MIT" ]
permissive
<?php namespace KageNoNeko\OSM; class TagExpression { private $expression=null; public function setExpression($exp){ $this->expression=$exp; } public function getExpression(){ return $this->expression; } }
true
519a2a802c0e7a0c5e960059908e4d22f8c64391
PHP
ptica/mtm
/Model/Location.php
UTF-8
1,241
2.6875
3
[]
no_license
<?php App::uses('AppModel', 'Model'); class Location extends AppModel { public $displayField = 'name'; public $dateFields = array('deadline'); public $virtualFields = array( 'deadline' => "DATE_FORMAT(`Location`.`deadline`, '%e.%c.%Y %H:%i')", ); /** * various date to sql format */ public function date_...
true
80b0e9556da782916a738da1f3b228b1c7157b12
PHP
forwardblock-io/protocol-php
/src/Transactions/TransactionConstructor.php
UTF-8
1,027
2.515625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace ForwardBlock\Protocol\Transactions; use ForwardBlock\Protocol\AbstractProtocolChain; use ForwardBlock\Protocol\Transactions\Traits\CustomDataTrait; use ForwardBlock\Protocol\Transactions\Traits\RecipientTrait; use ForwardBlock\Protocol\Transactions\Traits\TransferObjectsTrait;...
true
e25029c7dd6030a96becdf5511a44cd98b40e9e0
PHP
AdemirRivera/sistema_acceso_php
/php/codlogin.php
UTF-8
2,190
2.75
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ session_start(); if(isset($_SESSION['loggedin']) && $_SESSION['loggedin'] === true){ header('location: principal/inicio.ph...
true
a4898290e7f20804065cd09b64b4573cc232539f
PHP
AlexKunitsky/Eng-Learning
/classes/Redirect.php
UTF-8
695
2.875
3
[]
no_license
<?php class Redirect { // replace 'header' function and some extra public static function to($location = null) { // check if location is been find if ($location) { // if location is number like 404 redirect to 404.php, all number errors (pages) will be here if (is_numeri...
true
c2d575ff4d3b1b2afa3d3054028bf933f405e715
PHP
iddqd/cms
/admin/includes/tree.inc
UTF-8
13,858
2.578125
3
[]
no_license
<?php class tree { public static $content, $title = 'Дерево разделов'; private static $_items = array('content' => '', 'parent' => '', 'name' => '', 'title' => '', 'description' => '', 'keywords' => '', 'url' => '', 'pattern_id' => '', 'visible' => '', 'directory' => ''); private static function move($id...
true
4876d6e93abb70ec325a6afeb928c32f18682e26
PHP
kneese/battleship
/src/Entity/Ships.php
UTF-8
1,994
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Entity; use App\Entity\Game; use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping\ManyToOne; use Doctrine\ORM\Mapping\JoinColumn; /** * Shots * * @ORM\Table(name="ships", indexes={@ORM\Index(name="game_id", columns={"game_id"})}) * @ORM\Entity * @ORM\Entity(repositoryClass="App\Reposit...
true
a1671d08122f03a274e0ca87b1874d92a7cca41f
PHP
rowan-m/12tdds
/features/bootstrap/CalcStatsContext.php
UTF-8
1,532
2.921875
3
[]
no_license
<?php use Behat\Behat\Context\BehatContext; use Kata\CalcStats\StatisticsCalculator; use Kata\CalcStats\IntegerListProvider; class CalcStatsContext extends BehatContext { private $elements; private $statistics; /** * @Given /^the list contains "([^"]*)"$/ */ public function theListContain...
true
33d55155295c286694651a967b71752ca75ef0f4
PHP
eirikref/Fiber
/tests/unit/Fiber/FlattenSetTest.php
UTF-8
2,139
2.953125
3
[ "MIT" ]
permissive
<?php /** * Fiber: Unit tests * Copyright (c) 2013 Eirik Refsdal <eirikref@gmail.com> */ namespace Fiber\Tests\Fiber; /** * Fiber: Unit tests for Fiber::flattenSet() * * @package Fiber * @subpackage Tests * @version 2013-08-20 * @author Eirik Refsdal <eirikref@gmail.com> */ class FlattenSetTest ex...
true
519668e90a73615fcd6045983d4977eb83a4b89a
PHP
huuhadev/wordpress-helpers
/src/class-str.php
UTF-8
10,581
3.359375
3
[]
no_license
<?php /** * The String helpers. * * @since 1.0.0 * @package HuuHaDev * @subpackage HuuHaDev\Helpers * @author HuuHaDev <admin@huuhadev.com> */ namespace HuuHaDev\Helpers; /** * Str class. */ class Str { /** encoding used for mb_*() string functions */ const MB_ENCODING = 'UTF-8'; /** * Ret...
true
01059ed72c4bb4425685aee58f203d37d30bd242
PHP
Odarnoc/powergolden
/matriz/src/MatrixManager.php
UTF-8
1,797
3.09375
3
[ "MIT" ]
permissive
<?php namespace Nepster\Matrix; /** * Class MatrixManager * * @package Nepster\Matrix */ class MatrixManager { /** * @var Matrix */ private $matrix; /** * MatrixManager constructor. * @param Matrix $matrix */ public function __construct(Matrix $matrix) { $this...
true
a548b53b3cbca3aa0539bc91cc70e4208f1e4bb7
PHP
shwrm/tracking
/src/Integrations/Adapters/AdapterResolver.php
UTF-8
789
2.921875
3
[]
no_license
<?php declare(strict_types=1); namespace Shwrm\Tracking\Integrations\Adapters; use Shwrm\Tracking\Exception\NotImplementedAdapterException; class AdapterResolver { /** @var IntegrationAdapterInterface[] */ private $adapters = []; public function __construct(iterable $adapters) { foreach ($ad...
true
281c7f51a3085e552b2e13e1a42b46c327a42f42
PHP
ivanceba/SieteyMedia
/src/classes/Controller.php
UTF-8
3,920
3.4375
3
[ "MIT" ]
permissive
<?php require_once 'Card.php'; require_once 'Player.php'; require_once 'Memory.php'; require_once 'MachinePlayer.php'; /** * Class Controller * * Hold communication between user and models. * * @author Ivan Ceballos Vega */ class Controller { private static $instance; private $memory; private $human...
true
b088715ffee89a5dc5b8fa7891250d45e50a40c7
PHP
mischka/riak-client
/src/Riak/Client/Converter/RiakObjectConverter.php
UTF-8
3,743
2.734375
3
[ "MIT" ]
permissive
<?php namespace Riak\Client\Converter; use Riak\Client\Core\Query\VClock; use Riak\Client\Core\Query\RiakObject; use Riak\Client\Core\Message\Kv\Content; use Riak\Client\Core\Query\Link\RiakLink; use Riak\Client\Core\Query\RiakObjectList; use Riak\Client\Core\Query\Index\RiakIndex; use Riak\Client\Core\Query\Meta\Ria...
true
63bb28f93a4860182b335dd2a4fcc69277dbb8af
PHP
spenserbaldwin/csog
/libs/classes/answers.class.php
UTF-8
6,135
2.96875
3
[]
no_license
<?php /** * Answers are the last element in the tree. They are used to prompt user for an input. Can be of the following types: - Checkbox (If checked, provides pdfOutput) - Radio (depending on which options is selected, may or may not display output) - Image upload (Image should be referenced in pdfOu...
true
1b3b077e20751664e8afa0128b378899cb22ddde
PHP
fraanaalonso/Padel_Web
/Views/CLASH_VIEWS/SHOWCONFIRM.php
UTF-8
725
2.59375
3
[]
no_license
<?php /** * */ class SHOWCONFIRM { function __construct($fila, $resultado) { $this->execute($fila, $resultado); } function execute($fila, $resultado){ include '../Views/HeaderPost.php'; ?> <table border ="1"> <tr> <th>Confirmaciones de Asistencia</th> </tr> <tr> <th>Enfrentamien...
true
1f780b7ce570922bcdb1b59aeff9110e8d98d590
PHP
zhanshenqian/test
/杂项/php/php/php10.php
UTF-8
352
3.8125
4
[]
no_license
<?php //数据类型: 数组 $arr1 = [1,2,3,4]; //数组的两种写法 $arr2 = array(1,2,3,4); // echo $arr1; // echo $arr2; // echo $arr1[0]; //1 // echo $arr2[1]; //2 $a = null; $b; echo gettype($a); //NULL echo gettype($b); //NULL $c = 123; unset($c); //清除一个变量的值,重置成默认的null值 echo gettype($c); //NULL ?>
true
edf741921dd5318bd436c8e458d01cfbda715e71
PHP
davidomelettes/tactile-git
/tests/formatters/TestOfPrettyTimestampFormatter.php
UTF-8
9,080
2.9375
3
[]
no_license
<?php Mock::generate('OmeletteClock','MockClock'); class TestOfPrettyTimestampFormatter extends UnitTestCase { function setup() { parent::setup(); date_default_timezone_set('Europe/London'); } function testWithDateOnly() { $formatter = new PrettyTimestampFormatter(); $clock = new MockClock(); $f...
true
85cd3c594fe78636e6ab0414a8f13e1df1733b30
PHP
dothanhtan/thanh-tan-php
/model/user.php
UTF-8
1,575
3.1875
3
[]
no_license
<?php class User{ var $userID; var $userName; var $email; var $passWord; function User($userName, $email, $passWord, $userID) { $this->userName = $userName; $this->passWord = $passWord; $this->email = $email; $this->userID = $userID; } static function con...
true
cd1ceff3287e19d33eaca3166eabdec8c477b09b
PHP
choi2812/PHP
/EX02/EX0202.PHP
UTF-8
822
3.140625
3
[]
no_license
<!DOCTYPE html> <html lang=ja> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>ex0201h.php</title> </head> <body> <form method="post" action="ex0202.php"> <?php // 配列に値をセットする $ary1 = array("Sun" => "日", "Mon" => "月", "Tue" => "火","Wed" => "水","Thu" => "木","Fri" => "金","Sat" => "土"); ...
true
daf2a1a6743957a812b31a2929540c6b2ba8757d
PHP
DarraghGeo/Lore
/lore/Library/cache.php
UTF-8
1,636
3.3125
3
[]
no_license
<?php /** * cache.php * * Provide caching functionality. * * @package Lore Web Publishing Software * @author Darragh Geoghegan <darragh.geo@gmail.com> */ namespace Lore\Library; class Cache { private $expiry; /** * @access public * @param expiry The number of minutes a cac...
true
3cc78e2426005280a55949b6b9874561e0cadcab
PHP
arbor-education/sis-sdk-php
/src/Arbor/Model/QualificationOffering.php
UTF-8
2,167
2.640625
3
[]
no_license
<?php namespace Arbor\Model; use Arbor\Resource\ResourceType; use Arbor\Query\Query; use Arbor\Model\ModelBase; class QualificationOffering extends ModelBase { public const QUALIFICATION_ELEMENT = 'qualificationElement'; public const ACADEMIC_YEAR = 'academicYear'; protected $_resourceType = ResourceTy...
true
103d802d86793bc1c7769e0091101ec04882bc3e
PHP
rivman/PHP-Router
/tests/Example.php
UTF-8
1,207
3.109375
3
[ "MIT" ]
permissive
<?php /** * Library for handling routes. * * @author Josantonius - <hello@josantonius.com> * @copyright 2016 - 2018 (c) Josantonius - PHP-Router * @license https://opensource.org/licenses/MIT - The MIT License (MIT) * @link https://github.com/Josantonius/PHP-Router * @since 1.0.7 */ namespace Jos...
true
83f309e9f7f71145726ad7dbc06c12cd3a4f03f1
PHP
samuelroland/ICT-133-SRD
/JFL/Exo-Liste-personnes/index.php
UTF-8
506
3.0625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <h1>SI-CMI2a</h1> <h2>Eleves de la classe</h2> <?php // TODO : Ecrire le php qui remplace le html dans la balise ul ci-dessous $tableau = array("kevin", "benoit", "Samuel", "Fabien", "David", "Miguel", "Marwan", "...
true
821c10ae6e341311d01b1abcf3e622d5524892d0
PHP
ZbyRih/ote-crm
/app/models/repositories/CiselnikyValuesRepository.php
UTF-8
2,622
2.8125
3
[]
no_license
<?php namespace App\Models\Repositories; use Cake\Collection\Collection; use App\Extensions\Interfaces\ICiselnikRepository; use App\Extensions\Utils\Arrays; use App\Models\Tables\CiselnikyValuesTable; use App\Models\Storages\CiselnikyCacheStorage; use App\Extensions\App\Ciselnik; class CiselnikValueAlread...
true
1a647b9950bf24d61837076d1189546f213da9b0
PHP
kl3sk/Fridge_App
/Stock.php
UTF-8
2,657
2.53125
3
[]
no_license
<?php session_start(); if(!isset($_SESSION['nom'])) { echo'pas de session'; header("Location: http://training.local/Index.php"); } ?> <html> <header> <title> App Frigo - PRODUIT_STOCK_REEL </title> <link rel="stylesheet" type="text/css" href="Style.css"> ...
true
8eb54e49ed718c9b891e29d84ed3882441e6c1fd
PHP
cpuc001/xoximilco
/app/library/funciones.php
UTF-8
4,138
3.28125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: frontend * Date: 01/11/16 * Time: 1:44 PM */ class funciones { //FUNCIONES GENERALES DEL SITIO function formatPrice($number) { $price = number_format($number, 2, '.', ',') . ""; $parts = explode('.', $price); return $parts[0] . "<sup>" . $pa...
true
0b29b17b2f1bdfef84d3e90876a0beb6fe25dba5
PHP
handred/yii
/migrations/m181211_171932_items.php
UTF-8
803
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Class m181211_171932_item */ class m181211_171932_items extends Migration { /** * {@inheritdoc} */ public function safeUp() { $this->createTable('item', [ 'id' => $this->primaryKey(), 'name' => $this->string(), 'descri...
true
cf8652491c518d8bbc8b4beda98c5647a382c578
PHP
Comp4711Lab-07/Actual-Lab
/application/models/Booking.php
UTF-8
1,808
2.875
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of Bookings * * @author Austin */ class Booking extends CI_Model { public $instructor = null; pub...
true
421bb5d7875578689d466eb8606b9c7f24264449
PHP
winky84/will-and-pete
/index.php
UTF-8
670
3.59375
4
[]
no_license
<!doctype html> <html> <head> <link rel="stylesheet" type="text/css" href="/css/style.css" /> <script src="/js/main.js"></script> <title>Balls</title> </head> <body> oi oi <?php // Variables $name = "hello"; $will = "Will"; echo $name . ' ' . $will; // functions function say_hello($...
true
78d053d2a91e967076e9c8f891ff5217df846c44
PHP
emillosanti/test-common-bundle
/Manager/SearchHitManager.php
UTF-8
1,047
2.703125
3
[]
no_license
<?php namespace SAM\CommonBundle\Manager; use Doctrine\Common\Persistence\ObjectManager; class SearchHitManager { /** * @var ObjectManager */ private $om; private $entities; /** * SearchManager constructor. * * @param ObjectManager $om */ public function __construc...
true
139cbdcce4ef3d147b58a7e946dc448dafc201f6
PHP
ivanmalyi/TelegramBot
/src/System/Entity/Repository/BillingData.php
UTF-8
3,677
2.96875
3
[]
no_license
<?php declare(strict_types=1); namespace System\Entity\Repository; class BillingData { /** * @var int */ private $billingStatus; /** * @var int */ private $billingChequeId; /** * @var int */ private $billingPaymentId; /** * @var int */ privat...
true
1a01b007949d6647141e65040154659090e71e7b
PHP
Jeroeny/gitlab-api
/src/Api/Users.php
UTF-8
8,564
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Gitlab\Api; use DateTimeInterface; use Symfony\Component\OptionsResolver\Options; final class Users extends ApiBase { /** * @param mixed[] $parameters ( * * @var string $search Search for user by email or username. * @var string ...
true
d2bce2b1e4c987418fb925b3cb9bb557a7b05e87
PHP
netain/concierge
/src/Notifications/ResetPasswordNotification.php
UTF-8
1,123
2.75
3
[]
no_license
<?php namespace MrTea\Concierge\Notifications; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; class ResetPasswordNotification extends Notification { public $token; public $email; public function __construct($token, $email) { $this->token = $token; ...
true
ff847a8e1bc0ee727aefd85ec5559b2a96dd64c2
PHP
dealroadshow/k8s-resources
/src/Data/Taint.php
UTF-8
2,033
2.90625
3
[]
no_license
<?php namespace Dealroadshow\K8S\Data; use JsonSerializable; /** * The node this Taint is attached to has the "effect" on any pod that does not * tolerate the Taint. */ class Taint implements JsonSerializable { /** * Required. The effect of the taint on pods that do not tolerate the taint. Valid * ...
true
8df21322d698342c62ebfdfd2f5990a69b110489
PHP
CodingButter/Utils
/updateClasses.php
UTF-8
1,567
2.71875
3
[]
no_license
<?php function dirToArray($dir) { $result = array(); $cdir = scandir($dir); foreach ($cdir as $key => $value) if (!in_array($value,array(".",".."))) if (is_dir($dir . DIRECTORY_SEPARATOR . $value)) $result[$value] = dirToArray($dir . DIRECTORY_SEPARATOR . $value); elseif(strpos(...
true
1dce279b8c89a8f0e8714283a32907c3fbca6b49
PHP
Fluxter/symfony-saas-provider-bundle
/src/Command/CreateClientCommand.php
UTF-8
1,841
2.53125
3
[ "MIT" ]
permissive
<?php /* * (c) Fluxter <http://fluxter.net/> */ namespace Fluxter\SaasProviderBundle\Command; use Doctrine\ORM\EntityManagerInterface; use Fluxter\SaasProviderBundle\Model\Event\ConsoleClientCreationEvent; use Fluxter\SaasProviderBundle\Model\TenantInterface; use Symfony\Component\Console\Command\Command; use Symf...
true
8dd84b84f83f9ac2496cade9bbacae3e859c716f
PHP
louisle/heloword
/services/listerningClientRequest.php
UTF-8
9,704
2.53125
3
[]
no_license
<?php require_once('../lib/config.php'); require_once('../lib/websockets.php'); require_once('../lib/database.php'); class listerner extends WebSocketServer { function log($msg){ } //protected $maxBufferSize = 1048576; //1MB... overkill for an echo server, but potentially plausible for other applications. publi...
true
090341f0ba12f3d019c0c712c163f111fd3a46b8
PHP
yamadaissaku/moldb
/moldb/pdo-create.php
UTF-8
639
2.84375
3
[]
no_license
<?php session_start(); // ログイン状態チェック if (!isset($_SESSION["NAME"])) { header("Location: Logout.php"); exit; } try { // DBへ接続 $dbh = new PDO("mysql:host=localhost:3306; dbname=testmol; charset=utf8", 'mol', 'mol'); // SQL作成 $sql = 'CREATE TABLE testmoltable ( id INT(11) AUTO_INCREMENT PRIMARY KEY, n...
true
8024519eae0fde9789b3a33cc514f2960cb5cfe8
PHP
diplexgroup/api
/app/Models/Currency.php
UTF-8
2,125
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Notifications\Notifiable; class Currency extends Base { protected $table = 'currency'; protected $currencyTypeMap = [ 1 => 'Фиат', 2 => 'Крипто' ]; /** * The attributes that are mass assignable. ...
true
e9c0d8189c7229c52157617078e835e9d8ed77f4
PHP
kevinb1989/topappninjadev
/app/TopAppNinja/ExternalData/AndroidMarketAPI/Request_RequestGroup.php
UTF-8
7,937
2.546875
3
[ "MIT" ]
permissive
<?php /** * @author Niklas Nilsson <splitfeed@gmail.com> * market.proto.php * */ namespace TopAppNinja\ExternalData\AndroidMarketAPI; // group Request.RequestGroup class Request_RequestGroup { private $_unknown; function __construct($in = NULL, &$limit = PHP_INT_MAX) { if($in !== NULL) { if (is...
true
30a024a2ebd236da32aeb3ea04018bcd7dc0b325
PHP
rocketeers/rocketeer
/src/Rocketeer/Traits/StepsRunnerTrait.php
UTF-8
1,212
2.96875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* * This file is part of Rocketeer * * (c) Maxime Fabre <ehtnam6@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ namespace Rocketeer\Traits; use Rocketeer\Services\StepsBuilder; /** * Gives a class the abi...
true
1493d11f18924c7822e94a7355120632bffa8437
PHP
ljhgg86/voteST8
/app/Models/Voterecord.php
UTF-8
13,280
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use App\Models\Voteitem; use DB; class Voterecord extends Model { protected $table= 'voterecord'; protected $fillable = [ 'id', 'tipid', 'localrecord', 'userip', 'userphone', 'votetime', ...
true
8189e22aa5533437dac15e4e8e67272e05375e7e
PHP
CrowdReactive/DatatablesBundle
/Datatable/Column/ActionColumn.php
UTF-8
4,979
2.671875
3
[ "MIT" ]
permissive
<?php /** * This file is part of the SgDatatablesBundle package. * * (c) stwe <https://github.com/stwe/DatatablesBundle> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author Tomáš Polívka <draczris@gmail.com> * @author stwe ...
true
7c72fcf51270fb13722a3db49fca2aa7c092de1a
PHP
systream/state-machine
/tests/Unit/StateMachine/DotFileGeneratorTest.php
UTF-8
2,639
2.640625
3
[ "MIT" ]
permissive
<?php namespace Tests\Systream\Unit\StateMachine; use Systream\EventDispatcher; use Systream\StateMachine; use Tests\Systream\Unit\AbstractStateMachineTest; class DotFileGeneratorTest extends AbstractStateMachineTest { /** * @return void */ protected function cleanTmpDirectory() { $fileDir = $this->getTmp...
true
a1518b9c8bedc6cd401a0c3fd5edeb6fc1781580
PHP
ben-ronda/pokedex
/src/Pokemon.php
UTF-8
6,310
3.15625
3
[ "MIT" ]
permissive
<?php class Pokemon{ private $name; private $dex_number; private $height_feet; private $height_inches; private $weight; private $id; private $img; private $description; function __construct($name, $dex_number, $height_feet, $height_inches, $we...
true
9829317db60e5ac09b8088e646e0fdf0ee90de7a
PHP
Nakade-PlayInside/nakade-web
/module/Season/src/Season/View/Helper/PlayerAccepted.php
UTF-8
758
2.71875
3
[ "Apache-2.0", "BSD-2-Clause" ]
permissive
<?php namespace Season\View\Helper; use User\Entity\User; use Zend\View\Helper\AbstractHelper; /** * Class PlayerAccepted * * @package Season\View\Helper */ class PlayerAccepted extends AbstractHelper { /** * @param User $user * @param array $userList * * @return string */ public...
true
821e50d7f58b41d864611cf61f61da5f2d594a16
PHP
juxta/juxta-php
/src/Connections.php
UTF-8
2,686
2.78125
3
[]
no_license
<?php namespace Juxta; use Juxta\Db\Connection; use Juxta\Db\Db; final class Connections { /** * @var Session */ private $session; /** * @var Config */ private $config; /** * @param Session $session * @param Config $config */ public function __construct(Se...
true
ced3aeeb4cf9716dbc7c9c7c0e71571c8bc3e3c6
PHP
EATGOCO/contenttrack
/webdata/models/Track.php
UTF-8
7,167
2.515625
3
[]
no_license
<?php class TrackRow extends Pix_Table_Row { public function isTrackBy($user) { return TrackUser::search(array( 'track_id' => $this->id, 'user_id' => intval($user->user_id), ))->count(); } public function needTrack() { // 最近修改過的話直接去抓不用管 tracked_at ...
true
1f9029adf050b8ccd8f46b613d289a2b517dabd5
PHP
u-mulder/yaml2btx
/src/Entity/AbstractEntity.php
UTF-8
4,013
2.953125
3
[]
no_license
<?php /** * Abstract Entity definition * * @author u_mulder <m264695502@gmail.com> */ namespace Yaml2Btx\Entity; use Philo\Blade\Blade; abstract class AbstractEntity { /** * @var int Default sort for SORT fields * * @author u_mulder <m264695502@gmail.com> */ const DEFAULT_SORT = 500;...
true
b40efeadc48c8bceb6ab46ffad2acd33e5670ae7
PHP
monavie1989/tracuu
/protected/components/Mail.php
UTF-8
1,438
2.828125
3
[]
no_license
<?php /* * Process send mail to users in system */ /** * Process send mail to users in system * * @author Khuyennv */ class Mail { static function sendMail($users, $template, $params = false) { $system = Yii::app()->params['system']; foreach ($users as $user) { $emailer = new Se...
true
1f234c7947bdb7ac895fce192d6a8d3f1b29b3ee
PHP
renwuxun/simplenet
/src/SimpleNet/CookieBag.php
UTF-8
1,368
2.984375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: wuxun.ren * Date: 5-22 00022 * Time: 13:57 */ class SimpleNet_CookieBag { /** * @var SimpleNet_Cookie[] */ protected $cookies = array(); /** * @param SimpleNet_Cookie $cookie * @return $this */ public function put(SimpleNet_Cookie...
true
3e1f3995e0d9794c50307d1477dba7f1f0cff17e
PHP
sueesmar/MyBudget
/MyBudgetServer/dbinterface.php
UTF-8
1,001
2.953125
3
[]
no_license
//Datenbankverbindung aufbauen $connection = mysqli_connect("Server","Benutzername","Passwort","Schema"); if (mysqli_connect_errno()) { echo mysql_errno($connection) . ": " . mysql_error($connection). "\n"; die(); } getAllPlants($connection); //Liefert alle deutschen Pflanzennamen zurück. function getAllPla...
true
5ee6f8b32981f548fae2efc81ad5ac08bbc7b774
PHP
PHPBoost/Modules
/smallads/services/SmalladsService.class.php
UTF-8
2,506
2.65625
3
[]
no_license
<?php /** * @copyright &copy; 2005-2023 PHPBoost * @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL-3.0 * @author Sebastien LARTIGUE <babsolune@phpboost.com> * @version PHPBoost 6.0 - last update: 2022 04 14 * @since PHPBoost 5.1 - 2018 03 15 * @contributor Julien BRISWALTER <j1.set...
true
b7f040856f23e6ff38284113db6611f7ede1b2cd
PHP
WHTGo/EXP-Training
/Jundat95/Training/Inte/LogToFile.php
UTF-8
241
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Jundat95 * Date: 12/25/2015 * Time: 4:45 PM */ namespace Inte; class LogToFile implements Logger { public function excute($message) { var_dump("THIS IS File :".$message); } }
true
d0d1077adb2834c9de9393d53d9f215d921b449a
PHP
mattwellss/named-params
/src/Mpw/NamedParamFunctionCall.php
UTF-8
1,666
3.03125
3
[ "MIT" ]
permissive
<?php namespace Mpw; class NamedParamFunctionCall { /** * @var array */ private $args = []; /** * @var \ReflectionFunction */ protected $reflection; /** * @param callable $subject * @param array $arguments */ public function __construct(callable $subject...
true
26da8a0e2475be8677a9cdb5841b9fb6b08f3de9
PHP
cynter/clase02
/ejercicio10.php
UTF-8
477
3
3
[]
no_license
<html> <head> <title>Ejercicio 10</title> </head> <body> <?php $lapicera = array("color"=>"negro", "marca"=>"bic", "trazo"=>"fino" , "precio"=>10); $lapicera = array("color"=>"negro", "marca"=>"bic", "trazo"=>"fino" , "precio"=>10); $lapicera = array("color"=>"negro", "marca"=>"bic", "trazo"=>"fino" , "precio"=>1...
true
4768bc43f8fbc2a58b579c2e1512c7a033b85fea
PHP
HF0/role-bot-telegram
/src/RolBot/Entities/Item.php
UTF-8
1,105
2.9375
3
[]
no_license
<?php namespace RolBot\Entities; use \RedBeanPHP\R as R; use \RedBeanPHP\OODBBean; use Slim\Exception\MethodNotAllowedException; class Item { protected $bean; public function __construct(OODBBean $bean) { if (!$bean) { throw new \InvalidArgumentException("Error creating item"); ...
true
95b7d0290a02ce6cafa28cc9b89b32aaa09f6b08
PHP
mmahato12/Employee-Management-System
/editp.php
UTF-8
3,159
2.515625
3
[]
no_license
<html> <head> <title>Add New Record in MySQL Database</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.css"/> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" integrity="sha384-XdYbMnZ/QjLh6i...
true
b74b4af4de445e8b0290600f94e7d99576042a1c
PHP
manishsingh10895/unversitygroup
/UniversityGroup/UserInteractivity/Signup.php
UTF-8
6,640
2.703125
3
[ "Apache-2.0" ]
permissive
<?php @session_start(); require_once '../Includes/database.php'; if(isset($_SESSION['username'])) {redirect('../');} require_once '../Includes/header.php'; require_once '../Includes/formvalidation.php'; ?> <script src="../Scripts/formHandling.js" type="text/javascript"></script> <?php if(isset($_POST['subm...
true
7e67b1b5252ba6f19765d1489229aa63d61857aa
PHP
scssphp/scssphp
/src/Ast/Sass/Statement/Stylesheet.php
UTF-8
3,226
3.03125
3
[ "MIT" ]
permissive
<?php /** * SCSSPHP * * @copyright 2012-2020 Leaf Corcoran * * @license http://opensource.org/licenses/MIT MIT * * @link http://scssphp.github.io/scssphp */ namespace ScssPhp\ScssPhp\Ast\Sass\Statement; use ScssPhp\ScssPhp\Ast\Sass\Statement; use ScssPhp\ScssPhp\Exception\SassFormatException; use ScssPhp\Scs...
true
535cb92994f7147105cd835fd45a4f121d9e381d
PHP
freepius/afrikapie-web-book
/src/Model/Factory/Contact.php
UTF-8
1,045
2.6875
3
[ "CC0-1.0" ]
permissive
<?php namespace App\Model\Factory; use Freepius\Model\EntityFactory; use Symfony\Component\Validator\Constraints as Assert; class Contact extends EntityFactory { /* @{inheritdoc} */ public function instantiate() { return [ 'name' => '', 'email' => '', 'sub...
true
cc03871e49f657b7b48cb1146e9288e242c7b648
PHP
Georgi5204/php_20_21
/02_PHP_MYSQL/16_Security_lab/DEMO/sanitize_input.php
UTF-8
402
3
3
[]
no_license
<?php $smaller = "not a tag < 5 pp p p p p"; $script_tags = "<script>alert(1)</script>"; //makes difference depending on context // echo strip_tags( $smaller ); // -> not a tag < 5 // echo strip_tags( $script_tags ); // //doesn`t make difference echo filter_var ( $smaller, FILTER_SANITIZE_STRING ); // -> not a tag...
true
1f96f23cd6ca14b0711fa07d3bfb1c27eeaaf8ee
PHP
vickyjr88/isinya
/application/classes/Model/SupplyPackageType.php
UTF-8
1,102
2.53125
3
[]
no_license
<?php defined('SYSPATH') or die('No direct script access.'); /** * Model representing supply package types table * * @version 01 - Joseph Bosire 2013-06-08 * * PHP version 5 */ class Model_SupplyPackageType extends Model_Base { /** * Model's table * @string */ protected $_table_name = 'fpro_supply_package...
true
3736566e0d9252cf41190d3adab18a29ac803c62
PHP
ronilaukkarinen/khonsu
/template-parts/block-random.php
UTF-8
2,651
2.515625
3
[]
no_license
<?php /** * Random posts. * * @package khonsu */ $args = array( 'post_type' => 'post', 'posts_per_page' => 6, 'orderby' => 'rand', 'post_status' => 'publish', 'no_found_rows' => true, // Ignore kuulumiset, elämä 'tag__not_in' => '79, 7', // Don't show too old posts 'date_query' => array( 'after'...
true
c9110807a958af0686b1c369d873987922e6c30d
PHP
olaysco/timetable-generator
/app/Services/Helpers.php
UTF-8
322
3.015625
3
[]
no_license
<?php namespace App\Services; class Helpers { /** * Generate a random string * * @param int $length Length of string * @return string Generated string */ public static function generateRandomString($length = 6) { return bin2hex(openssl_random_pseudo_bytes($length)); }...
true