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
a9947d956a65ec3a064eef001a2235502115b00a
PHP
aviatorhh/YaEP
/Attachement.class.php
UTF-8
1,591
2.921875
3
[]
no_license
<?php /* * Copyright 2015 Nicholas John Koch (njk@pilot.hamburg) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
true
98d7bfbf01a90b3a920da3f2d1e4f6b05e961944
PHP
joaocarloslima/maratona
/app/Http/Controllers/ProblemsController.php
UTF-8
1,817
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use App\Http\Requests\FormProblemRequest; use App\Problem; use App\Event; use Illuminate\Http\Request; class ProblemsController extends Controller { public function index(Request $request) { $problems = Problem::all(); ...
true
b78af2ddff4367618ef6c249a621e01c7d94f771
PHP
Nakade-PlayInside/nakade-web
/module/Season/src/Season/Form/LeagueForm.php
UTF-8
5,016
2.625
3
[ "BSD-2-Clause", "Apache-2.0" ]
permissive
<?php namespace Season\Form; use Season\Form\Hydrator\LeagueHydrator; use Season\Services\RepositoryService; use Season\Services\SeasonFieldsetService; use \Zend\InputFilter\InputFilter; class LeagueForm extends BaseForm { private $availablePlayerList = array(); private $assignedPlayerList = array(); /**...
true
cb075cb751285e4df4e96daa84898da0f6aae369
PHP
SamuelGasc/Captcha-Generator
/test/captchaVerification.php
UTF-8
507
2.8125
3
[ "MIT" ]
permissive
<?php session_start(); if ($_SERVER['REQUEST_METHOD'] !== 'POST') { header("Location: index.php"); exit; } // Basic server side verification (if the user writes the good captcha, then the form is validated) if (isset($_POST['myCaptchaFieldForExample']) && $_POST['myCaptchaFieldForExample'] === $_SESSION['capt...
true
85e60288b23dab57256fdb2a63166e6d05051bb7
PHP
franckmassa/spl6s
/controllers/userListCtrl.php
UTF-8
2,373
3.109375
3
[]
no_license
<?php /* * Si idRoles est différent de 2 (super utilisateur) * on redirige vers l'index */ if ($_SESSION['idRoles'] != 2) { header('location: index.php'); // Si la page est redirigée, exit permet de s'assurer que la suite du code ne soit pas exécuté exit; } /* * On include le fichier configuration qui ...
true
2cf6e3f5dcaa0f3f64139a2b9524db23ac504f60
PHP
dyegoalves/app-api-list
/api-lista-alunos/app/Http/Controllers/AlunosController.php
UTF-8
606
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Alunos; use Illuminate\Http\Request; use App\Models\Logs; use Faker\Factory as Faker; class AlunosController extends Controller { //Metodo responsavel para Salvar os LOGs e Retorna o JSON com Lista dos Alunos public function reponseUserList() { ...
true
1f1747606e51813e4f8cf29302ba6b0df59d21d2
PHP
cloudenergy/eduoa
/src/app/controllers/student_grow_files_controller.php
UTF-8
3,148
2.515625
3
[]
no_license
<?php class StudentGrowFilesController extends AppController { var $name = 'StudentGrowFiles'; var $helpers = array('Html', 'Form','Javascript' ); function index() { $this->StudentGrowFile->recursive = 0; $this->set('studentGrowFiles', $this->StudentGrowFile->findAll()); } function view($id = null,$type = n...
true
87dc165d49597cbae2b0c7ff5e0fe4909cde8d76
PHP
whilegit/php-study
/src/Math/Probility/Binomial.php
UTF-8
627
3.25
3
[]
no_license
<?php namespace Whilegit\Math\Probility; class Binomial{ /** * 计算二项分布的概率($from <= X <= $to) * @param n 次数 * @param p 单次的成功概率 * @param from 试验成功的起始次数 * @param to 结束次数(如不提供,则此值为与$from相同) * @return */ public static function prob($n, $p = 0.5, $from = 0, $to = null) {...
true
6e0ad7e12615a5295ccf726510db55bd39957b0a
PHP
tankhausd123/class_circle
/index.php
UTF-8
442
3.75
4
[]
no_license
<?php include_once "Circle.php"; include_once "Cylinder.php"; $circle = new Circle(5,"red"); echo "Circle Area: " .$circle->calculateArea()."<br>"; echo "Circle Perimeter: " .$circle->calculatePerimeter()."<br>"; echo $circle->toString(). "<br>"; $cylinder = new Cylinder(10, "black", 5); echo "Cylinder Area: " .$cyli...
true
15b232b9e42f589f1c9c1fdd6a38f9ee08c8763f
PHP
ttaevik/veebiprogrammeerimine
/tund8/photoupload.php
UTF-8
2,164
2.890625
3
[]
no_license
<?php require("functions.php"); $notice=""; //kui pole sisseloginud, siis sisselogimise lehele if(!isset($_SESSION["userId"])){ header("Location: login.php"); exit(); } //kui logib välja if (isset($_GET["logout"])){ //lõpetame sessiooni session_destroy(); header("Location: login.php"); } ...
true
cab92b0cf498a3af82893cbd77421eadf1b80431
PHP
mark-tasaka/PHP-Greenleaf-Adventures-DCC-Zero-Level-Character-Generator
/zeroLevelGen/php/notes.php
UTF-8
1,140
3
3
[]
no_license
<?php function getNotes($select) { if($select === 92) { $pushcart = array("Push Cart containing tomatoes", "Push Cart containing nothing", "Push Cart containing dirt", "Push Cart containing straw", "Push Cart containing rocks", "Push Cart containing YO...
true
f99d09f99c79a104014b04ae15611fe81994e087
PHP
josephjlee/Faker-1
/src/Faker/Parser/Parser/YAML.php
UTF-8
1,804
2.8125
3
[ "Apache-2.0" ]
permissive
<?php namespace Faker\Parser\Parser; use Faker\Parser\ParserInterface; use Faker\Parser\FileInterface; use Faker\Parser\ParseOptions; use Faker\Parser\Exception as ParserException; use Faker\Parser\VFile; use Faker\Parser\File; use Symfony\Component\Yaml\Exception\ParseException; use Symfony\Component\Yaml\Parser as Y...
true
ef298020c3a1bdc496767f4245df79befed79209
PHP
vicgarcia/divvystat
/source/DivvyStat/Tasks.php
UTF-8
933
2.640625
3
[]
no_license
<?php namespace DivvyStat; class Tasks { public static function updateStations(DB $db) { $api = new Api; foreach ($api->getLiveStationData() as $stationData) { $db->insertUpdateStation( $stationData->id, $stationData->name, $stationD...
true
347468670d3f71b9f60a92c1117ada324ce67c44
PHP
apra-courses/RestServerPhp
/wsrest/models/Post.php
UTF-8
4,073
3.078125
3
[]
no_license
<?php namespace App\models; use PDO; class Post { protected $conn; private $email; private $title; private $message; private $datecreated; private $id; public function __construct(\PDO $conn = null) { $this->conn = $conn; } public function all() { $result = arra...
true
fab6ce72c1db25928f77998e5a47fd745570ccca
PHP
phpDocumentor/ReflectionDocBlock
/src/DocBlock/Tags/TagWithType.php
UTF-8
1,448
2.953125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * This file is part of phpDocumentor. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @link http://phpdoc.org */ namespace phpDocumentor\Reflection\DocBlock\Tags; use phpDocumentor\Refle...
true
153b917f4e7a1d66ce232e52556f79c93e0481ec
PHP
sda0/php_async_daemon
/client.php
UTF-8
622
2.953125
3
[]
no_license
<?php include 'Queue/Queue.php'; $object = new stdclass; $object->name = 'имя'; $object->id = uniqid(); $client = Queue::getInstance(); if ( $client->msg_send(Queue::TYPE_REQUEST, $object, true, true) ) { echo "added object to queue - id:{$object->id}, name:{$object->name} <br/>\n"; }else { echo "could not a...
true
a2d25674ee0deebb3a3586287a0b3063893a4775
PHP
lunodrade/php-hotel
/auth/cadastro.php
UTF-8
3,441
2.734375
3
[]
no_license
<?php require_once '../database.php'; class Cadastro extends ConfigController { function __construct() { parent::__construct(); } public function salvar() { try { if(isset($_POST) && !empty($_POST)) { //Conectar no banco $pdo = $this->conn; ...
true
1038e3447451a1d718b943b52b71b89930040bfe
PHP
VisalTrano/PhpExam
/create.php
UTF-8
1,295
3.0625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Black * Date: 3/18/2019 * Time: 11:20 PM */ include "conn.php"; //check name and birthdate already exit if exit == true function checkName($name,$conn){ $sql = "SELECT *FROM student WHERE studentName='".$name."' and bithDate='".$_POST['birthDate']."'"; $result = mys...
true
9cfcfa02f580a7d1079602de6848b6604d21e2ef
PHP
benoitdavidfr/geom2d
/geometry.inc.php
UTF-8
2,565
3.25
3
[]
no_license
<?php /*PhpDoc: name: geometry.inc.php title: geometry.inc.php - définition abstraite d'une géométrie simple functions: classes: journal: | 25/12/2016: - première version - clone de ogr2php/geom2d.inc.php */ /*PhpDoc: classes name: Geometry title: abstract class Geometry - Sur-classe abstraite des 3 c...
true
16184c14d929dea670b3906764e23491ca32e7f5
PHP
anklimsk/internal-ldap-based-phonebook
/app/Plugin/Tools/Model/Behavior/BitmaskedBehavior.php
UTF-8
9,540
2.921875
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
<?php App::uses('ModelBehavior', 'Model'); /** * BitmaskedBehavior * * An implementation of bitwise masks for row-level operations. * You can submit/register flags in different ways. The easiest way is using a static model function. * It should contain the bits like so (starting with 1): * 1 => w, 2 => x, 4 =>...
true
f2252e9dc528a8a39b584df89627f895964a8e83
PHP
myroot593/codexam
/absen/Absenclass.php
UTF-8
2,548
2.734375
3
[]
no_license
<?php class Absensiswa extends Database { public function data_Absen($userid) { try { $sql = "SELECT * FROM absen_masuk WHERE userid=$userid"; $stmt = $this->koneksi->prepare($sql); $stmt->execute(); return $stmt; } catch(PDOException $e) { echo $e->getMessage(); } } public function ce...
true
0d6fb2979cba90921fe3df1cbfd7a91feecd24ab
PHP
Claudio-code/server-app-money-transfer
/tests/src/Unit/UserTest.php
UTF-8
888
2.71875
3
[]
no_license
<?php namespace App\Test\Unit; use App\MoneyTransfer\User\User; use DateTime; use PHPUnit\Framework\TestCase; class UserTest extends TestCase { private User $user; protected function setUp(): void { parent::setUp(); $this->user = new User(); } public function testUuid(): void ...
true
04ddaa7d6cec264c4c73617b24926c122d3200a7
PHP
wjonczyk/iss-locator
/Application/GeoCode/Client/GeoCodeClientInterface.php
UTF-8
289
2.75
3
[]
no_license
<?php namespace Application\GeoCode\Client; /** * Interface for GeoCode API */ interface GeoCodeClientInterface { /** * Returns location based on parameter with latitude and longitude * @param string $latlng */ public function getLocationByCoordinates($latlng); }
true
14311c792963e868b23b1c90d59cb91b494a25cd
PHP
kiamopackage/apps
/src/Exception/UnexpectedResponseException.php
UTF-8
1,265
2.859375
3
[ "MIT" ]
permissive
<?php namespace KiamoPackage\AppsBundle\Exception; use Throwable; // Exception utilisée lorsque l'API retourne une réponse avec un code HTTP 200 // mais que la réponse n'est pas celle attendue (JSON invalide, entrées absentes...) class UnexpectedResponseException extends KiamoAppsException { /** @var string */ ...
true
c90df5423a05386e469fbacb53fbf5718b5ca4cc
PHP
morronepablo/Farmacia-en-php-js-mysql
/modelo/Lote.php
UTF-8
6,033
2.625
3
[]
no_license
<?php include_once 'conexion.php'; class lote{ var $objetos; public function __construct(){ $db= new Conexion(); $this->acceso = $db->pdo; } function crear($id_producto,$proveedor,$stock,$vencimiento){ $sql="INSERT INTO lote(stock,vencimiento,lote_id_prod,lote_id_prov) values (:stock,:vencimiento,:id_producto...
true
55e70b72ca266b8662737d0846007597f7fae24f
PHP
rodrigopedra/record-processor
/src/Configurators/Serializers/HTMLTableSerializerConfigurator.php
UTF-8
1,034
2.53125
3
[ "MIT" ]
permissive
<?php namespace RodrigoPedra\RecordProcessor\Configurators\Serializers; use RodrigoPedra\RecordProcessor\Serializers\HTMLTableSerializer; /** * @property \RodrigoPedra\RecordProcessor\Serializers\HTMLTableSerializer $serializer */ class HTMLTableSerializerConfigurator extends SerializerConfigurator { public f...
true
a86113ce916875a4423b3bee6777a4f585a5ca92
PHP
SmooijAvans/bimcurriculum
/src/AppBundle/Entity/Leerdoel.php
UTF-8
3,427
2.65625
3
[]
no_license
<?php // src/AppBundle/Entity/Task.php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; /** * @ORM\Entity * @ORM\Table(name="leerdoel") */ class Leerdoel { /** * @ORM\Column(type="integer", name="ldid") * @ORM\Id * @ORM\GeneratedValue(...
true
80ed99aa316a527d2b1f05c743571532b214092e
PHP
KiselevDim/site
/App/DB.php
UTF-8
316
2.59375
3
[]
no_license
<?php namespace App; class DB { protected $dbh; public function __construct() { $this->dbh = new \PDO('mysql:127.0.0.1; dbname=test','root','507020'); } public function exec($sql) { $sth= $this->dbh->prepare($sql); $res=$sth->execute(); return $res; } }?>
true
5a955059754d82800969b159b0d5fc7c8111bd2e
PHP
mogria/void.php
/test/StringExpressionPlaceholderTest.php
UTF-8
2,694
2.671875
3
[ "MIT" ]
permissive
<?php namespace Void; require __DIR__ . DIRECTORY_SEPARATOR . 'test_bootstrap.php'; class StringExpressionPlaceholderTest extends \PHPUnit_Framework_TestCase { protected static $data = Array( // 0 1 2 3 4 5 // id offset name char_range numerically ...
true
0ac5e8d21d9ef9787ddb759598d60b44c98d06f4
PHP
edent/HyperThread
/js/monkey.js.php
UTF-8
10,791
2.640625
3
[]
no_license
<?php header("Content-type: text/javascript"); //Has a thread been sent? // Get the data require_once '../AppDotNetPHP/EZAppDotNet.php'; require_once '../config.php'; global $app_clientId, $app_clientSecret, $adn_accessToken; $app = new EZAppDotNet($app_clientId,$app_clientSecret); // Setting a static ac...
true
69e47b40b8a6da1188d620d4e887786afc022e06
PHP
changsongyang/rabbitmq-examples
/examples/pull/producer.php
UTF-8
1,031
2.640625
3
[]
no_license
<?php include(__DIR__.'/../config.php'); use PhpAmqpLib\Connection\AMQPStreamConnection; use PhpAmqpLib\Message\AMQPMessage; $queue = "pull"; $exchange = "exPull"; $exchangeType = "direct"; $connection = new AMQPStreamConnection(HOST, PORT, USER, PASS, VHOST); $channel = $connection->channel(); $channel->queue_decl...
true
5e8ce8be736eab732c8917b7b2b38c652653d70a
PHP
maduser64/facebook-groupper
/src/libs/groupper/FB/Login.php
UTF-8
4,385
2.578125
3
[]
no_license
<? /* * facebook-groupper * https://github.com/isaranin/facebook-groupper * * Worker with facebook groups * * repository git@github.com:isaranin/facebook-groupper.git * * author Ivan Saranin * company Saranin Co. * url http://saranin.co * copyright (c) 2016, Saranin Co. * * * created by I...
true
4e795515437ce4ce49f3701dc07ac5e3b6fa1ba3
PHP
fsaibene/TPlaboratorioIV2016
/classes/TipoBonificacionVO.php
UTF-8
3,248
2.515625
3
[ "MIT" ]
permissive
<?php require_once (dirname(__FILE__) . DIRECTORY_SEPARATOR . '../includes/Master2.php'); /** * @author fcsistemas - www.fcsistemas.com.ar * @version 2.1 * @created 23-ene-2015 */ class TipoBonificacionVO extends Master2 { public $idTipoBonificacion = ["valor" => "", "obligatorio" => FALSE, ...
true
4415cb5f660a0147cb12f6b17ef50649636d3902
PHP
johnwei417/thestandardsproject
/src/database/migrations/2019_03_21_050619_create_classes_table.php
UTF-8
1,460
2.78125
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateClassesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('classes', funct...
true
a09314d1210472d1dee2f17056ce4b54e0570b9d
PHP
asmaaabozied/AHM
/app/Model/Image.php
UTF-8
494
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class Image extends Model { protected $table = 'images'; public $timestamps = true; protected $fillable = array('imageable_id', 'imageable_type', 'image'); protected $appends = ['image_path']; public function imageable() {...
true
fcfc3a370cafe739b36d6e7ab2b4c5d92af4344d
PHP
baafuor/BkTracker
/Database/DAO/ProofOfPurchaseDAO.php
UTF-8
1,735
2.78125
3
[]
no_license
<?php include_once('DAO.php'); class ProofOfPurchaseDAO extends DAO { public $tablename = 'proof_of_purchase'; public function checkIfExists($book_request_id) { $sql = "SELECT * FROM proof_of_purchase WHERE book_request_id=$book_request_id"; $stmt = Database::prepare($sql); $...
true
8867ce16893912d16fbc32d104d6ab1a3062f7b7
PHP
kunalsntk/PHPLaravel
/app/Classes/gitClient.php
UTF-8
1,060
2.9375
3
[]
no_license
<?php namespace App\Classes; class gitClient { private $_base_url ; public function __construct() { $this->_base_url = "https://api.github.com/repos/torvalds/linux/commits"; } protected function getUrl() { return $this->_base_url; } //Curl function to inititalte the connection public fun...
true
def13a66a65843ae9216e134b9e9f6999c8f71b5
PHP
LeandroPerrotta/DarghosSitev3
/modules/tickets/super_list.php
ISO-8859-1
2,408
2.515625
3
[]
no_license
<? include("classes/tickets.php"); $core->extractPost(); $account = $core->loadClass("Account"); $account->load($_SESSION['login'][0]); if($account->getGroup() >= 4){ $string = $core->loadClass("Strings"); $get = $_GET["state"]; if($get == "closeds") { $query = $db->query("SE...
true
555a783640a0b4c07a3cfc29bbc553f47fe867b5
PHP
cherra/iffe
/application/models/calle.php
UTF-8
3,399
2.578125
3
[]
no_license
<?php class Calle extends CI_Model { private $tbl = 'Calles'; function __construct() { parent::__construct(); $this->load->database(); } /** * *********************************************************************** * Cantidad de registros * **************************...
true
8d1d6d494840859e8f0c2d5c1e10c26839545ff4
PHP
saloni29993/Study-Guide-Genie
/genie/scrape2sql.php
UTF-8
1,538
2.78125
3
[]
no_license
<?php $folder = "scraper\scraper-data"; $idcount = 0; if(is_dir($folder)) { //echo "exits!"; if($dh = opendir($folder)) { while(($file = readdir($dh)) !== false) { try { //echo "<br>" .$file .""; $handle = fopen(__DIR__ ."\\$folder\\" .$file, "r"); //echo "<br>" .$handle ."<b...
true
da618c2462443724dfed18d5e23613c1446f02e8
PHP
brunogasparetto/AdobeConnectClient
/tests/ClientTest.php
UTF-8
776
2.609375
3
[ "MIT" ]
permissive
<?php namespace AdobeConnectClient\Tests; use AdobeConnectClient\Client; use AdobeConnectClient\Tests\Connection\File\Connection; use PHPUnit\Framework\TestCase; class ClientTest extends TestCase { /** * @var Connection */ private $connection; protected function setUp() { $this->co...
true
180b1fbda1b5d2944f8089ff8eff4cd54beef0a4
PHP
maksymkulia/php8-practise
/src/nullsafe/Models/UserClass.php
UTF-8
401
3.03125
3
[ "Unlicense" ]
permissive
<?php namespace App\Nu\Models; class UserClass { public function __construct( public string $name, public string $sname, public ?int $age ) {} public function getName(): string { return $this->name; } public function getSName(): string { return $this->snam...
true
fa2961e164ad4a39c9dc581ee68f4422bf6cd06c
PHP
aldridche/ProyectosPHP
/MOD-2/cond-if.php
UTF-8
840
2.859375
3
[]
no_license
<?php $username = "Carlos"; $logged_in = false; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Condicional If</title> </head> <body> <nav> <ul> <li>Inicio</li> <li>Cursos</l...
true
f47f0a09ff2a04e2838f5e59ccf1c2c19480074f
PHP
waga/psfee
/tests/ErrorHandlingTest.php
UTF-8
1,850
2.625
3
[]
no_license
<?php namespace Tests; use PHPUnit\Framework\TestCase; use PSFee\Application\CLI; use PSFee\Config; class ErrorHandlingTest extends TestCase { public function testScriptFileName() { $this->expectOutputString('Error: Missing script file name!'. PHP_EOL); $application = (new CLI()) -...
true
8fd67756a89d5cab6072bfe46ebc449505a8d1bb
PHP
liebeSonne/adapi
/tests/Unit/Repository/AdsRepositoryTest.php
UTF-8
7,081
2.640625
3
[]
no_license
<?php namespace Tests\Unit\Repository; use App\Model\Ad; use App\Repository\AdsRepository; use App\Repository\Strategy\RelevantStrategyInterface; use App\Service\DBInterface; use PHPUnit\Framework\TestCase; class AdsRepositoryTest extends TestCase { /** * Проверка конструктора. * */ public fun...
true
57e0964b63233c1da7792e1a8ac137e67bb28701
PHP
TyperEJ/Crawler
/app/Models/Bot/BotService.php
UTF-8
599
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Models\Bot; use LINE\LINEBot; use LINE\LINEBot\HTTPClient\CurlHTTPClient; class BotService { public static function validate($channelToken,$channelSecret) { $httpClient = new CurlHTTPClient($channelToken); $bot = new LINEBot($httpClient, ['channelSecret' => $channelSecret...
true
bdf15bd8ff64c99ceeb8e0e7a484513fc8f26e6b
PHP
gcaufiel/SENG403-Group-5
/app/models/User.php
UTF-8
5,440
3
3
[]
no_license
<?php class User extends BaseModel { static protected $columns = array( "username" => "s", "password_sha1" => "s", "email" => "s", "name" => "s", "date_of_birth" => "s", "address_street" => "s", "address_city" ...
true
d5e4b46d23fd18bb16f0451cac007f2e1f30fc68
PHP
berlinonline/Dat0r
/src/Dat0r/Core/ValueHolder/TextCollectionValueHolder.php
UTF-8
3,771
2.875
3
[ "MIT" ]
permissive
<?php namespace Dat0r\Core\ValueHolder; use Dat0r\Core\Error; use Dat0r\Core\Field\IField; use Dat0r\Core\Field\TextCollectionField; /** * Default IValueHolder implementation used for text collection value containment. * * @copyright BerlinOnline Stadtportal GmbH & Co. KG * @author Thorsten Schmitt-Rink <tschmit...
true
b22291f661751770dc19a2707bb6a70ef4ee525d
PHP
silverstripe/silverstripe-framework
/tests/php/Forms/OptionsetFieldTest.php
UTF-8
3,956
2.625
3
[ "CC-BY-3.0", "BSD-3-Clause" ]
permissive
<?php namespace SilverStripe\Forms\Tests; use SilverStripe\Control\Controller; use SilverStripe\ORM\FieldType\DBField; use SilverStripe\Dev\CSSContentParser; use SilverStripe\Dev\SapphireTest; use SilverStripe\Forms\OptionsetField; use SilverStripe\Forms\RequiredFields; use SilverStripe\Forms\FieldList; use SilverStr...
true
fb6314acc372d2a28a36467f638f8f7c74e1f20f
PHP
AppleTim/WCS_Chat
/src/ShareBundle/Entity/Documents.php
UTF-8
2,926
2.546875
3
[]
no_license
<?php namespace ShareBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Documents */ class Documents { /** * @var int */ private $id; /** * @var string */ private $titre; /** * @var string */ private $description; /** * @var string */ pr...
true
2f837a7327254b2675becf33363a9f2391c6897a
PHP
sergeyfast/eazyphoto-web
/web/lib/EazyPhoto.Common/VtHelper.php
UTF-8
4,412
2.78125
3
[]
no_license
<?php use Eaze\Helpers\FormHelper; /** * VtHelper * @author sergeyfast */ class VtHelper { /** * Get Hint * @param string $hint * @param bool $translate * @return string */ public static function GetHint( $hint, $translate = t...
true
1b7cc8b3ebb61132ac7d00234511f2e6894ee883
PHP
radpol/php_application
/samples/book_2/Kapitola_08_Funkce/kap08_05.php
WINDOWS-1250
273
2.578125
3
[]
no_license
<?php $cislo = pi(); // Promnn $cislo bude obsahovat slo p echo $cislo; // Vpis sla p echo '<br />'; // Zad, aby se dal slo vypsalo na dal dek echo pi(); // slo p je mon vypsat pmo ?>
true
a79668ebbcadf93d7a7d0d8f08680c2464b584fa
PHP
rollxx/antlr-php-runtime
/test/Lexer011Test.php
UTF-8
1,047
2.765625
3
[]
no_license
<?php require_once 'PHPUnit/Framework.php'; require_once "antlr.php"; require_once "t011lexer.php"; class LexerTest011 extends PHPUnit_Framework_TestCase{ protected function setUp(){ } protected function tearDown(){ } public function test1(){ $id = t011lexer::$IDENTIFIER; $ws = t011lexer::$WS; $le...
true
b9c9b3ba12bd9e0a3a3178d2d64916d30cc636e4
PHP
ivancup/lestoma
/app/Http/Controllers/ProtocoloController.php
UTF-8
4,677
2.71875
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Protocolo; use DataTables; use App\Http\Requests\ProtocoloRequest; class ProtocoloController extends Controller { /** * Instantiate a new controller instance. * * @return void */ /** * Permisos asignados en el...
true
c5178bc82f229a563e2390165d31c1affb1f2599
PHP
kirstyburgoine/myechef
/themes/myechef/tribe-events/views/month.php
UTF-8
2,783
2.65625
3
[]
no_license
<?php /** * Month View Template * The wrapper template for month view. * * Override this template in your own theme by creating a file at [your-theme]/tribe-events/month.php * * @package TribeEventsCalendar * */ $protected = get_field('protected', 'option'); echo "default = " . $protected; global $blog_id;...
true
26d22857dcd48fba6d175464959ded970f97d385
PHP
comm644/temis.sql
/core/Sql/SQLFunction.php
UTF-8
2,697
3.046875
3
[ "Apache-2.0" ]
permissive
<?php require_once( dirname( __FILE__ ) ."/SQLGenerator.php" ); require_once( dirname( __FILE__ ) ."/../Database/DBValueType.php" ); class SQLFunction { var $name; var $args = array(); var $alias=null; var $type = 'string'; var $argsGlue = ', '; /** * Create function definition * * @param s...
true
504170feade84a77e392aa0cafadcef4af94ff15
PHP
OFFLINE-GmbH/oc-site-search-plugin
/classes/providers/FeeglewebOctoshopProductsResultsProvider.php
UTF-8
2,772
2.671875
3
[ "MIT" ]
permissive
<?php namespace OFFLINE\SiteSearch\Classes\Providers; use Feegleweb\Octoshop\Models\Product; use Illuminate\Database\Eloquent\Collection; use OFFLINE\SiteSearch\Classes\Result; use OFFLINE\SiteSearch\Models\Settings; /** * Searches the contents generated by the * Feegleweb.Octoshop plugin * * @package OFFLINE\Sit...
true
d8f1102e45bfdfa016d5885c4f6bdac6748426d3
PHP
jruncik/ProPhotoExport
/IRendererVisitor.php
UTF-8
640
2.71875
3
[ "MIT" ]
permissive
<?php interface IExportVisitor { public function IsGalleryVisible($galleryId); public function VisitGaleryBegin(); public function VisitGalery($galery); public function VisitGaleryEnd(); public function VisitCustomerBegin(); public function VisitCustomer($order); public function VisitCustomerEnd(); public f...
true
39ad19a88c870b32f0d1d1703743cac6254cf232
PHP
fokosasxp/dbz-viral
/includes/functions.php
WINDOWS-1252
11,075
2.703125
3
[]
no_license
<?PHP function parse_signed_request($signed_request,$secret) { list($encoded_sig,$payload) = explode('.',$signed_request,2); $sig = base64_url_decode($encoded_sig); $data = json_decode(base64_url_decode($payload),true); if (strtoupper($data['algorithm']) !== 'HMAC-SHA256') { error_log('Unknown algorithm. Expected HMAC...
true
cbe7f0e9db1ccaef2e9a27252b8ca64db9a0bf23
PHP
BLKTech/DataType
/HashTable.php
UTF-8
1,724
2.84375
3
[]
no_license
<?php /* * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the ...
true
f8adc5bdf845ca0fd5253c2786b62b61336e118d
PHP
DevProsper/LabPhp
/messages_flash/class/Session.php
UTF-8
608
2.8125
3
[]
no_license
<?php class Session{ public function __construct(){ session_start(); } public function setFlash($message,$color="white"){ $_SESSION['flash']['message'] = [ 'color' => $color, 'message' => $message ]; } public function showFlash(){ if (!empty($_SESSION['flash'])) { foreach ($_SESSION['flash'] a...
true
8a6e6e795624f9ffd0abcec263f009196890062f
PHP
abakano21/rover-and-math
/tests/Unit/RoverShouldTests.php
UTF-8
1,126
3.046875
3
[]
no_license
<?php namespace Tests\Unit; use App\Models\Rover; use PHPUnit\Framework\TestCase; class RoverShouldTests extends TestCase { /** @test */ public function spin_left() { // arrange $rover = new Rover("1 2 N"); // act $rover->SpinLeft(); // assert $this->asser...
true
d0b5f1cd8bfefbcbd87ba87559db2a66267cd2ae
PHP
NahuelStratico/webBlue
/envio.php
UTF-8
1,345
2.5625
3
[]
no_license
<?php function validar_campo($campo) { $campo = trim($campo); $campo = stripcslashes($campo); $campo = htmlspecialchars($campo); return $campo; } header('Content-Type: application/json'); if( isset($_POST['name']) && !empty($_POST['phone']) && !empty($_POST['email']) && !empty($_POST['medio']) && !e...
true
0dfe819f5cbca3f9582efc9279f79f677dd88e2e
PHP
fikrisuheri/dw-18
/2.php
UTF-8
1,007
3.09375
3
[]
no_license
<?php function hitung($voucher,$uang){ $resultDiskon; if($voucher == 'DumbWaysJos'){ if($uang >= 50000){ $diskon = (21.1 / 100) * $uang; if($diskon > 20000){ $resultDiskon = 20000; }else{ $resultDiskon = $diskon; } ...
true
819e5a541b66d3357de6e55216b2d094add41f2d
PHP
i5m/side
/makeit70/admin/record.php
UTF-8
1,538
2.859375
3
[]
no_license
<?php if(!isset($_COOKIE["loggedinasadmin"])){ header("location: index.php"); exit; } require_once('header.php'); $u = htmlspecialchars($_COOKIE["username"]); ?> <style> td, th { border: 1px solid #dddddd; text-align: left; padding: 8px; } tr:nth-child(even) { ...
true
1bdfd85dd4cd575f489d96456617b2be2af1c186
PHP
shyt3000/providers
/SiteController.php
UTF-8
9,266
2.53125
3
[]
no_license
<?php namespace frontend\controllers; use frontend\models\ResendVerificationEmailForm; use frontend\models\VerifyEmailForm; use Yii; use yii\base\InvalidArgumentException; use yii\web\BadRequestHttpException; use yii\web\Controller; use yii\filters\VerbFilter; use yii\filters\AccessControl; use common\models\LoginForm...
true
dcdcaae780341326920f9e252f182a15310d30d1
PHP
YanCastle/Tsy
/Tsy/Plugs/WebWechat/Curl.class.php
UTF-8
11,756
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace Tsy\Plugs\WebWechat; /** * Created by PhpStorm. * User: castle * Date: 2016/02/21 * Time: 17:57 */ class Curl { public $UserID=false; public $error; public $info; static $METHOD_GET='GET'; static $METHOD_POST='POST'; public $referer=""; public $cookie_id=1; protected...
true
b6aa6f98735a6e6df62721749280ee256485fad1
PHP
monkeyphp/mphp-flickr-photos-search
/src/MphpFlickrPhotosSearch/Adapter/Xml/Result/PhotoResultAdapter.php
UTF-8
51,260
2.640625
3
[]
no_license
<?php /** * PhotoResultAdapter.php * * PHP Version PHP 5.3.10 * * @category MphpFlickrPhotosSearch * @package MphpFlickrPhotosSearch * @subpackage MphpFlickrPhotosSearch\Adapter\Xml\Result * @author David White [monkeyphp] <git@monkeyphp.com> */ namespace MphpFlickrPhotosSearch\Adapter\Xml\Result;...
true
401ac9478dd6db35cf1ff544060ffb79278ebf26
PHP
DimaBoguzki/shelter_back
/App/db.php
UTF-8
488
3
3
[]
no_license
<?php class DB { private $_conn; public function __construct() { $this->_conn = new mysqli('localhost','root','','shelters_db'); if($this->_conn->connect_errno) die('Connected error!'); } public function __destruct(){ $this->_conn->close(); } public function getConnection() { return ...
true
5679cdb62128003921d5f71b0b19c80154569b0b
PHP
jkappel01/dunkomatic
/common/classes/form_classes/form_url_with_text_field.php
UTF-8
547
2.5625
3
[]
no_license
<?php include_once($APLICATION_ROOT.'common/classes/form_classes/form_field.php'); include_once($APLICATION_ROOT.'common/classes/form_classes/form_url_field.php'); /* text example ---------------- */ class form_url_with_text_field extends form_url_field{ /* */ var $text_field_name; function...
true
a7c254e0a57b1314cbe50eba4572b54846e83e69
PHP
mist-cloud/my_sample_projectA
/saishoniyomuPHP/Chapter4/STEP3-cookie-session/3-login/test-empty.php
UTF-8
160
2.890625
3
[]
no_license
<?php $a = array(); $a["apple"] = 300; if (isset($a["apple"])) { echo "set : apple <br/>"; } if (empty($a["orange"])) { echo "empty : orange <br/>"; }
true
5988b00ef4840d6aa48a9720a7aba4cba629cfb3
PHP
TheRatG/miao
/modules/Log/classes/Writer/Stream.class.php
UTF-8
2,985
2.984375
3
[]
no_license
<?php class Miao_Log_Writer_Stream extends Miao_Log_Writer_Abstract { /** * Holds the PHP stream to log to. * @var null|stream */ protected $_stream = null; protected $_mode = 'a'; /** * Class Constructor * * @param streamOrUrl Stream or URL to open as a stream * @param mode Mode, on...
true
db730b3b523d4a031dedd896ea5df00b61e5a4ad
PHP
ludovicjj/DesignPattern
/src/DependencyInjection/ContainerInterface.php
UTF-8
1,174
2.734375
3
[]
no_license
<?php namespace App\DependencyInjection; use Psr\Container\ContainerInterface as PsrContainerInterface; interface ContainerInterface extends PsrContainerInterface { /** * Return definition (singleton). * * @param string $id * @return Definition */ public function getDefinition(strin...
true
278c4faf5084ad9ce3d60a924965314c249f493d
PHP
jfleytas/jesmari
/clases/formularios/orden_pago.class.php
UTF-8
20,982
2.65625
3
[ "Apache-2.0" ]
permissive
<?php class Orden_pago { private static $instancia; private $db; private function __construct() { include ("../conexion/Conexion.php"); $this->db = Conexion::conexion(); //$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } public static functio...
true
1183d49547439a95e02467b4694bd5adf7d80e80
PHP
qthrones/web-code-editor
/application/libraries/Controls/SftpControl.php
UTF-8
10,957
2.734375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * connect reomte server's workspace by SFTP * @author Rannk Deng * */ require_once ("Control.php"); class SftpControl implements Control { var $username; var $workspace_host; var $password; var $port; var $workspace_dir; var $workspace_type; var $connection; var $tmp_dir; ...
true
d170c6c9c01fcad32077142a6101e5027bceba2f
PHP
martamae/LibraryDatabase
/addBookShelf.php
UTF-8
4,954
2.75
3
[]
no_license
<?php session_start(); include "secret.php"; //Connecting $mysqli = new mysqli("oniddb.cws.oregonstate.edu", "wegnerma-db", $password, "wegnerma-db"); if (!$mysqli|| $mysqli->connect_errno) { echo "Failed to connect:" . $mysqli->connect_errno . " " . $mysqli->connect_error; } if(...
true
ba83597da38080ae83e0d055bc727b18cfc1d81e
PHP
dronchik/Mev_testing_php
/task8/start.php
UTF-8
267
3.09375
3
[]
no_license
<?php namespace OlechkaBrajko\Task8; require 'vendor/autoload.php'; require 'MathExp.php'; $var1 = mt_rand(1, 20); $var2 = mt_rand(1, 20); $var3 = mt_rand(1, 20); $var4 = mt_rand(1, 20); $tmp = new MathExp(); echo $tmp->mathExp($var1, $var2, $var3, $var4) ."\n";
true
8d0d15e737283480c3349cae1813a184e35bae95
PHP
PauloVictorSS/CRUD-PHP_POO
/pages/add.php
UTF-8
952
2.9375
3
[ "MIT" ]
permissive
<?php if(isset($_POST["action"])){ $name = $_POST["name"]; $age = $_POST["age"]; $type = $_POST["type"]; $result = $mysql->addAnimal($pdo, $name, $type, $age); if($result == 1) echo "<div class='mensage green'><p>Animal adicionado com sucesso!<p></div>"; ...
true
bdfe2b6256b8fbb97b8464bf4aa751842df5f477
PHP
ReadYun/vixik
/app/Lib/Action/SearchAction.class.php
UTF-8
1,508
2.59375
3
[]
no_license
<?php /** * @Name : SearchAction.class.php * @Type : Class * @Description : 搜索模块:所有搜索相关功能实现 * * @Create-time : 2013-9-1 * @Author : ReadYun * @Copyright : VixiK * @Version : 1.0.00 */ header("Content-type:text/html;charset=utf-8"); class searchAction extends Action{ /* 问卷模块首页 ...
true
5d7166c8811c2eae140c331bc77df54cf88267a2
PHP
go-braver/lgb
/application/libraries/Index_Data.php
UTF-8
4,144
2.71875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class IndexData extends CI_Controller { protected $_user_items = array(); protected $_items = array(); /** * 最初に渡すデータをまとめる * @param int user_id * @return array */ public function get_index($user_id = 1) { $data = array(); // ユーザ情報 $this->load->model('user', 'user'); $user = $this->user->f...
true
d3d29b5857d92154dd00321cb38631262c0813bd
PHP
Diego-Brocanelli/report-collection
/tests/Libs/WriterAccessor.php
UTF-8
627
2.78125
3
[ "MIT" ]
permissive
<?php namespace ReportCollection\Tests\Libs; use ReportCollection\Libs\Reader; use ReportCollection\Libs\Styler; use ReportCollection\Libs\Writer; /** * Classe para permitir acesso aos metodos protegidos * dentro dos testes de unidade */ class WriterAccessor extends Writer { public function accessGetColumnVow...
true
511b13968f9dee5a29443caf2e5a1d1cd05e4e89
PHP
netassa/PHPExample
/pattern/SendFactory.php
UTF-8
555
3.171875
3
[ "MIT" ]
permissive
<?php require_once "MailSender.php"; require_once "SmsSender.php"; /* * 普通工厂方法 */ class SendFactory { static function getInstance($type = 'mail') { if($type == 'mail') { return new MailSender(); }else if($type == 'sms') { return new SmsSender(); }else { echo "请输入正确的类型\n"; retur...
true
23a51e8f946b42f7b4735d81ab1731b81b7f1e38
PHP
z4kn4fein/php-semver
/src/Constraints/Constraint.php
UTF-8
6,264
3
3
[ "MIT" ]
permissive
<?php namespace z4kn4fein\SemVer\Constraints; use z4kn4fein\SemVer\Patterns; use z4kn4fein\SemVer\SemverException; use z4kn4fein\SemVer\Traits\Iterator; use z4kn4fein\SemVer\Traits\Singles; use z4kn4fein\SemVer\Traits\Validator; use z4kn4fein\SemVer\Version; /** * This class describes a semantic version constraint....
true
3469074ea2a21514d065da0befa2c8a735e61585
PHP
ronaldopires/CursoPHP
/funcoes/exemplo1.php
UTF-8
298
3.09375
3
[]
no_license
<?php primeirafuncao(); function primeirafuncao(){ global $login; //Define que a variável login será de escopo global. return $login = false; } if($login){ bemVindo(); }else{ adeus(); } function bemVindo(){ echo "Bem Vindo!"; } function adeus(){ echo "Até logo!!"; }
true
aa1ba56510589d9b556815b9f3c9847d2f0efcbe
PHP
SuvroBiswas93/slim-php-mvc
/framework/View.php
UTF-8
524
2.796875
3
[]
no_license
<?php namespace RKO; class View{ private $viewBag=[]; public function __construct($viewBagParams=[]){ $this->viewBag = $viewBagParams; } public function getFlash($key){ $message = ""; if(isset($_SESSION[$key])){ $message = $_SESSION[$key]; unset($...
true
4ec36ba97152d5ea15b26e396645d201db9ad3fb
PHP
orchard-1/10_11_2020-Finanace-
/FINANCE(9_11_2020)/namespace/file1.php
UTF-8
256
2.71875
3
[]
no_license
<?php include "calc.php"; include "file2.php"; use namespace_1\A as A2; class A { function __construct() { echo "object created from class in file 1\n"; } } $obj=new A(); $obj2= new A2(); echo calc\emiCalculator(1,1,1);
true
82423ab408b6becc1275d965944ed9b86fbd135a
PHP
danog/user-management-bootstrap
/functions.php
UTF-8
4,534
2.78125
3
[]
no_license
<?php function sec_session_start() { $session_name = 'sec_session_id'; // Imposta un nome di sessione $secure = true; // Imposta il parametro a true se vuoi usare il protocollo 'https'. $httponly = true; // Questo impedirà ad un javascript di essere in grado di accedere all'id di sessione. ...
true
b370e5fee5892d4854a05bda8e0b53f4d0b39867
PHP
karayabin/universe-snapshot
/universe/Ling/ListParams/ListBundle/ListBundle.php
UTF-8
1,718
2.796875
3
[]
no_license
<?php namespace Ling\ListParams\ListBundle; use Ling\ListParams\Controller\InfoFrameInterface; use Ling\ListParams\Controller\PaginationFrameInterface; use Ling\ListParams\Controller\SortFrameInterface; use Ling\ListParams\ListParamsInterface; class ListBundle implements ListBundleInterface { private $items; ...
true
2c1cda3e3417029a77b671b112ccb23fc826ab2a
PHP
Sync1983/urTradeClient
/basic/migrations/m160112_083331_tbl_markup.php
UTF-8
733
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Schema; use yii\db\Migration; class m160112_083331_tbl_markup extends Migration { public function up() { $sql = <<<SQL CREATE TABLE IF NOT EXISTS Markup( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, uid INT NOT NULL, name VARCHAR(10) DEFAULT 'name...
true
b614e21c2d5a383b442ead24209f168d66cc9d65
PHP
jonathanbeltrao/desafio202001-fullstack
/challenge/src/v1/Model/Core/BaseModel.php
UTF-8
860
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: jonathan.beltrao */ namespace App\v1\Model\Core; use Illuminate\Database\Eloquent\Model; abstract class BaseModel extends Model { /** * @var bool */ private $isDetail = false; /** * @return int|null */ public function getId(): ?int ...
true
7b93ccadac54efd276ffe17d765b9054cdaa351e
PHP
t2421/backend
/public/login/classes/controller/LoginController.class.php
UTF-8
921
2.625
3
[]
no_license
<?php namespace MyApp\controller; use MyApp\model\UserModel; class LoginController{ static public function login(){ try{ if(filter_input_array(INPUT_POST)){ $email = filter_input(INPUT_POST,'email'); $password = filter_input(INPUT_POST,'password'); $objUserModle = new UserModel(); $...
true
644c4324243c5bc8998fc45f7a32b746f06f694f
PHP
media-store-net/oi-classes-package
/src/Classes/Foto/FotoAnonymousPHPType.php
UTF-8
1,536
2.8125
3
[]
no_license
<?php namespace MediaStoreNet\OpenImmo\Classes\Foto; /** * Class representing FotoAnonymousPHPType */ class FotoAnonymousPHPType { /** * @var string $location */ private $location = null; /** * @var string $format */ private $format = null; /** * @var \MediaStoreNet\O...
true
be260cd755d89895a9bcf6dd1620e038285dfcba
PHP
TheForceJueDiWuShi/subject
/shared/libraries/Coupon.php
UTF-8
4,124
3.34375
3
[]
no_license
<?php /** * 生成优惠券 * * @author huangjialin@global28.com * */ class Coupon{ /** * 生成一个优惠券 * * @param number $length 优惠券码长度 * @param string $prefix 优惠券码前缀 * @param string $suffix 优惠券码后缀 * @param boolean $numbers 是否含数字 * @param boolean $letters ...
true
0241a85b2947af8e22ade35ce1f81e6dd7c3d1e6
PHP
watchpoint-io/watchpoint-pickem
/src/BnetAuth.php
UTF-8
2,662
2.609375
3
[]
no_license
<?php class BnetAuth { public function __construct(array $options = []) { $this->key = $options['key']; $this->secret = $options['secret']; $this->redirect_uri = $options['redirect_uri']; $this->code = $options['code']; $this->state = $options['state']; $this->au...
true
96adad16920f7638f0b6cea96679716190c67747
PHP
MichaelsPlayground/cross_platform_crypto
/Argon2id/Argon2id.php
UTF-8
2,720
2.9375
3
[ "Unlicense" ]
permissive
<?php // ### the minimal parameter set is probably UNSECURE ### function generateArgon2idMinimal($password, $salt) { $opsLimit= 2; $memLimit = 8192 * 1024; $outputLength = 32; return sodium_crypto_pwhash ($outputLength, $password, $salt, $opsLimit, $memLimit, SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13...
true
69b67a1743835c8bd45e193415d4190c56e9c1bb
PHP
lemacedo/petshop
/cachorro.class.php
UTF-8
400
3.3125
3
[]
no_license
<?php class Cachorro extends Animal{ private $corPelo; public function __construct($nome, $idade, $raca, $dono, $corPelo){ parent::__construct($nome,$idade,$raca,$dono); $this->corPelo = $corPelo; } public function getSom(){ return 'Auauau'; } public function dadosAnimal(){ $dados = parent::dadosAnima...
true
991f7f8cf75f997a2268ba58d1cd69d8dba9e66e
PHP
OscarFreij/pictures.offthegridcg.me
/private_html/Functions.class.php
UTF-8
2,015
3.0625
3
[]
no_license
<?php class Functions { private $container; public function __construct(Container $container) { $this->container = $container; } public function GetAlbums() { # Open album directory and get handle if ($handle = opendir('albums')) { # Loop thrue all ent...
true
d496eb6f1508d44ced0aa07e677606274d2d0571
PHP
trongtgarson/5015Final
/php/model/user.php
UTF-8
3,660
2.765625
3
[]
no_license
<?php include_once '../config/core.php'; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; use PHPMailer\PHPMailer\SMTP; include_once('../vendor/phpmailer/phpmailer/src/Exception.php'); include_once('../vendor/phpmailer/phpmailer/src/PHPMailer.php'); include_once('../vendor/phpmailer/phpmailer/sr...
true
7158ca3ad9ea5011cb498a1fe86dbff899d1de21
PHP
upf/eis
/devices/eis.master/private/device.php
UTF-8
3,095
2.546875
3
[]
no_license
<?php // **** EIS **** // eis device implementation // upf, May2013 //////// required functions // device installation function // return true on success, false on failure function eis_device_install($calldata) { global $eis_conf,$eis_dev_conf,$eis_dev_status,$eis_mysqli; // create the required mysql table(s) $...
true
fb8447a76e8c8ad9de70b04094639afe0f6a9618
PHP
bytekj/devart-template
/project_code/index.php
UTF-8
1,456
2.671875
3
[ "Apache-2.0" ]
permissive
<?php require_once "include/common.inc.php"; require_once "db/DataHandler.php"; require_once "cms/User.php"; require_once "cms/Content.php"; session_start(); $do_login = false; $login_error = false; if(isset($_SESSION['user'])){ $currentUser = new User(); $userID = $_SESSION['user']; if($result == INVALID_USER){ ...
true