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
5e82ca39969dc375ca1488545b3af9e2365d395c
PHP
mustafa1991/native-php-app
/app/Controllers/update.php
UTF-8
993
2.828125
3
[]
no_license
<?php require_once(__DIR__ . '/../Repository/UserRepository.php'); require_once(__DIR__ . '/../Models/User.php'); // 1- Catch inputs from request // 2- Sanitize all inputs before use // 3- Validate inputs // 4- process inputs $data = $_POST; //*** validate inputs ***// $hasErrors = false; // Validate email if (filt...
true
e1eeb6cb03c1052b235bb2ebd8c4126d2eaa1422
PHP
egm14/carousel_wp_plugin
/index.php
UTF-8
7,983
2.5625
3
[]
no_license
<?php /* Plugin Name: Carousel - MobileOneContainers Description: Display a carousel list of containers product Author: Edwin Marte | Ntono Digital Author URI: http://ntono.com Version: 1.0 */ /*---------------- Adding new metabox Image to post type ---------------------*/ //Meta Boxes function lis...
true
d3592c6ddb163df32b354d3d069f00fd58b785f6
PHP
flashy/flashy-laravel
/src/FlashyLaravel.php
UTF-8
656
2.765625
3
[ "MIT" ]
permissive
<?php namespace Flashy\FlashyLaravel; use Flashy\Exceptions\FlashyException; use Flashy\Flashy; class FlashyLaravel { /** * @var Flashy */ public $api; /** * FlashyLaravel constructor. * @throws FlashyException */ public function __construct() { $this->api = new...
true
04278dafdefe725ecdc429ef08261798cfd28980
PHP
emmanuelsxe/login
/registroUsuarios.php
UTF-8
1,400
2.9375
3
[]
no_license
<?php #Credenciales para la conexión a la Base de Datos en Php My Admin $servername = "localhost"; $username = "root"; $password = "root"; $dbname = "LOGIN_PRACTICA"; $conn = mysqli_connect($servername, $username, $password, $dbname); mysqli_set_charset($conn, 'utf8'); if (!$conn) { die("Conexión fallida...
true
03ec031875bf570c8a158cf7a5453c681c5ae843
PHP
php-bootcamp/odev4-Sevda-96
/SQL.php
UTF-8
288
2.515625
3
[]
no_license
<?php abstract class SQL{ public bool $connectionStatus; public function create(SQLQuery $query){} public function update(SQLQuery $query){} public function delete(SQLQuery $query){} protected function setParams(array $params){} public function Isconnect(){} }
true
926a1d953d7ca3551d8cd7b6b5dc2e1a6e3afe7c
PHP
nando55154/lojasbr
/controlador/carrinhoControlador.php
UTF-8
1,275
2.765625
3
[]
no_license
<?php require_once "modelo/produtoModelo.php"; function comprar($id) { $idProduto = $id; if (isset($_SESSION["carrinho"])) { $produto = $_SESSION["carrinho"]; } else { $produto = array(); } $produto[] = $idProduto; $_SESSION["carrinho"] = $produto; redirecionar("./"); } function listarCarrinho() { if(i...
true
ab7f1ea4eee15ee414122233817510959e7cac09
PHP
stbz1996/GeneradorTec
/application/models/DAO/GroupDAO_model.php
UTF-8
2,621
2.75
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class GroupDAO_model extends CI_Model { var $groupTable = 'ClassGroup'; function __construct() { parent::__construct(); $this->load->database(); } /**************************************** - Get all the groups from the database...
true
f5cee21b58469b030a0cd4aa6d02de67ed93bf25
PHP
zorgch/zorg-code
/www/models/core.model.php
UTF-8
4,617
2.765625
3
[]
no_license
<?php /** * MVC core model * * @author IneX * @package zorg\MVC\Model */ namespace MVC; /** * File includes * @include main.inc.php Required */ require_once __DIR__.'/../includes/config.inc.php'; require_once INCLUDES_DIR.'main.inc.php'; /** * Class representing the MVC Model */ class Model { /** * @var ...
true
884f2859148b6d1ea2eabd02772193532f4719ed
PHP
searchstudies/aapvl
/frontend_app/application/controller/index.php
UTF-8
1,915
2.515625
3
[ "MIT" ]
permissive
<?php /* Controller for Index page */ class Index extends Controller { // Method to render the start page of the app with login form public function home() { $hour = date('H'); if($hour > 22 OR $hour < 5) { header("Location:" . URL . "/service"); } $users = $this->users...
true
4f15f19cbdc52e989d65b83f7fdf4bf5fc2eaf6c
PHP
acidstout/spamprotect
/demo_complex.php
UTF-8
734
2.859375
3
[]
no_license
<?php /** * Demo of captcha class * * @author nrekow * */ require_once 'classes/spamprotect/captcha/complex.php'; use SpamProtect\Captcha\Complex; $captcha = new Complex(rand(5, 10)); $captcha->setSize(24); $captcha->setAngle(0); $captcha->addArcs = true; $captcha->addBlots = true; $captcha->ad...
true
8bbef01e64287332a2b84c4f109ee3822c8abb7b
PHP
Jyotsna1000/Employee-Management-Sheroes-
/searchlist.php
UTF-8
1,491
2.84375
3
[]
no_license
<?php //function getDetails(){ # An HTTP GET request example $data=$_GET['firstName']; $url = 'http://localhost:8080/search/'.$data; $ch = curl_init($url); curl_setopt($ch, CURLOPT_TIMEOUT, 5); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $data = curl_exec($ch); curl_clos...
true
369d59ef564c28b8d01fe26e0738a470788057da
PHP
mfern7/Webmaster
/clase27/clase02/test.php
UTF-8
139
2.515625
3
[]
no_license
<?php $nombre="Marcostet"; echo "Hola Mundo <br> <br>"; echo $nombre; ?> <h1>Titulo principal</h1> <?php echo "texto despues de HTML" ?>
true
8ab98e2d6a095250684e444fcec95341e18e75ed
PHP
mentaas/todomen---RESTful-Lumen-API-with-microservices
/todomenAPIGateway/app/Services/ListService.php
UTF-8
1,001
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Traits\ConsumeExternalService; class ListService { use ConsumeExternalService; public $baseUri; public $secret; public $userId; public function __construct() { $this->baseUri = config('services.lists.base_uri'); $this->secret = config...
true
0ec7bdf26d92525e60e8c30905e58a35ab11438e
PHP
lygfanye/crontab-manager
/src/CrontabManager/CrontabManagerInterface.php
UTF-8
323
2.65625
3
[]
no_license
<?php namespace troy\CrontabManager; /** * Created by PhpStorm. * User: fanyee * Date: 14-5-11 * Time: 下午4:39 */ interface CrontabManagerInterface { public function append(Crontab $crontab); public function remove($crontab); public function update(Crontab $oldCrontab,Crontab $newCrontab); }
true
7af564addc4de9257e18e39361f8f5d82042154b
PHP
RadoslavNikolov/SoftUni
/Semester_2 (Advanced Level - Back End)/Web_Development_Basic_PHP/TeamWork/ShoppingCart/Helpers/HelpFunctions.php
UTF-8
4,974
2.703125
3
[]
no_license
<?php namespace ShoppingCart\Helpers; use ShoppingCart\Config\UserConfig; class HelpFunctions { const LOCAL_HOST = 'localhost:6300'; /** * @return mixed * @see Return full path of the root directory */ public static function getFullBasePath(){ $entryPointPath = $_SERVER['SCRIPT_FI...
true
54cc609663651543b0a996e49e0d08a4a412939e
PHP
st-universe/core
/src/Component/Ship/Crew/ShipCrewCalculatorInterface.php
UTF-8
497
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Stu\Component\Ship\Crew; use Stu\Orm\Entity\ShipInterface; use Stu\Orm\Entity\ShipRumpCategoryRoleCrewInterface; use Stu\Orm\Entity\ShipRumpInterface; interface ShipCrewCalculatorInterface { public function getMaxCrewCountByRump(ShipRumpInterface $shipRump): int; pu...
true
4c374802bc9ba579231739414f318cb2c5e0d4f4
PHP
jas0nkim/cloudprint
/freecopy/tests/SampleControllerTest.php
UTF-8
1,551
2.78125
3
[]
no_license
<?php /** * Test class for controllers/sample.php * * @author Carlo Guli * * @since 18/04/2011 */ require_once 'CITestCaseExtension.php'; class SampleControllerTest extends CITestCaseExtension { protected static $sql = " DELETE FROM `shema`.`table` WHERE `ID` = 1; INSERT INTO `shema`.`table` ...
true
d3a1da747ee31cf4e93c053a3839bc9f6ca3a4a9
PHP
cmfirst/exty_old
/exty_old/Exty/ExtyGridColumnDate.php
UTF-8
962
3.0625
3
[]
no_license
<?php /** * Create a date column for the grid * * Parameters * @param string $text The title for the column * @param string $dataIndex The name of the field to display, as declared in ExtyStore * @param string $format [optional] The display format for the date. Default to 'd/m/Y' */ class ExtyGridColum...
true
16054593a3e742a196735d6bde21a3c2d808b15f
PHP
undefined-exception-coders/UECMediaVideoProviderBundle
/Http/HttpInterface.php
UTF-8
293
2.515625
3
[ "MIT" ]
permissive
<?php namespace UEC\MediaVideoProviderBundle\Http; interface HttpInterface { /** * Return the response of the provider * * @param string $provider * @param string $urlToParse * @return mixed|null */ public function getInfoUrl($provider, $urlToParse); }
true
bb1e1c3a59b5f4a00de497d6edd20306baee66a8
PHP
drokbers/Video-Listing-system
/include/functions.inc.php
UTF-8
3,567
2.796875
3
[]
no_license
<?php function emptyInputSignup($name, $pwd, $pwdrepeat) { $result; if (empty($name) || empty($pwd) || empty($pwdrepeat)){ $result = true; } else { $result = false; } return $result; } function pwdMatch($pwd, $pwdrepeat) { $result; if ($pwd !== $pwdrepeat...
true
6e5b5c18f39ee1be10d30e34ca251cb1c9dd2075
PHP
wookieb/EventDispatcher
/lib/Event/Dispatcher.php
UTF-8
2,528
3.078125
3
[]
no_license
<?php /** * @author wookieb * @package Events * @subpackage Dispatcher */ class Event_Dispatcher implements Event_Dispatcher_Interface { /** * @var array */ private $_listeners = array(); /** * @var object */ private $_target; /** * Add listener of event * @param string $eventName * @param call...
true
010fa9d987391bc791cf6f5a934a8b7e49ceb3b2
PHP
tarry2009/globalcharge
/index.php
UTF-8
238
2.578125
3
[]
no_license
<?php declare(strict_types=1); require 'functions.php'; for($i=1; $i<=20; $i++) { if(php_sapi_name() === 'cli') echo functions::returnCokeFanta($i)."\xA"; else echo nl2br(functions::returnCokeFanta($i)."\r\n"); }
true
30bf12b37b0dcd14289947fadc2ff92f013d0339
PHP
gustavonecore/leftaro
/src/Core/Middleware/RoutingInterface.php
UTF-8
692
2.71875
3
[]
no_license
<?php namespace Leftaro\Core\Middleware; use Psr\Http\Message\RequestInterface; use Psr\Http\Message\ResponseInterface; use Psr\Container\ContainerInterface; interface RoutingInterface { /** * Handle the middleware call for request and response approach * * @param \Psr\Http\Message\RequestInterface $reques...
true
1c0a53f26cfdfd253041460cb15d932a40f499da
PHP
GFhillip/wpanel
/app/widgets/wpanelmenu.php
UTF-8
3,463
3
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Wpanelmenu extends Widget { private $menu_id = ''; private $class_menu = ''; private $class_item = ''; function __construct($config = array()) { if (count($config) > 0) { $this->initialize($config); }...
true
398dd2c20b58fa4057e4c45e663dab22f7d5f0f7
PHP
ekiyanga/leanmedia
/leanmedia/includes/listen.php
UTF-8
930
2.609375
3
[]
no_license
<?php if (isset($_GET['id'])) { $id = $_GET['id']; $query = "SELECT * FROM audios WHERE audioID = '{$id}' "; if($result = $db->query($query)){ if($count=$result->num_rows){ //echo $count; $rows = $result->fetch_all(MYSQLI_ASSOC); foreach ($rows as $row) { $id = $row['audioID']; $url = $row['au...
true
0bbe44885769b41870f955ca45fd235cb71174d0
PHP
5am-code/laravel-notion-api
/tests/FilterTest.php
UTF-8
2,769
2.5625
3
[ "MIT" ]
permissive
<?php use FiveamCode\LaravelNotionApi\Exceptions\HandlingException; use FiveamCode\LaravelNotionApi\Query\Filters\Filter; use FiveamCode\LaravelNotionApi\Query\Filters\Operators; use Illuminate\Support\Collection; it('creates a text filter with the given data', function () { $filter = Filter::textFilter('Name', O...
true
84de7d5a72260f37921f905308ebbe29c8ae4629
PHP
hmp12/WoofWoofWeb
/admin/add_categories.php
UTF-8
2,266
3.046875
3
[]
no_license
<?php $label = $url = $type = $sort = $parent = ""; $labelErr = $urlErr = $typeErr = $sortErr = $parentErr = ""; $valid = False; if ($_SERVER['REQUEST_METHOD'] == 'POST') { $valid = True; if (!empty($_POST['label'])) { $label = $_POST['label']; } else { $valid = False; $labelErr = "Label is empty";...
true
ae95cf92ca45869d9cd08672b9d15deae4721a58
PHP
NitroXy/nvote
/model/user.php
UTF-8
916
2.625
3
[]
no_license
<?php class User extends BasicObject { protected static function table_name(){ return 'user'; } public static function from_nxuser($nxuser) { if($nxuser == null) return null; $user = static::one(array("user_id" => $nxuser->user_id)); if(!$user) { $user = new User(array( 'user_id' => $nxuser->user_i...
true
bfeae0f5d78d7dc394d1d88731ed8c9a2f29ba0e
PHP
AlexSuperStar/diadocProtoClass
/src/Diadoc/Api/Proto/Documents/RevocationStatus.php
UTF-8
983
2.6875
3
[ "MIT" ]
permissive
<?php /** * Auto generated from Document.proto * * Diadoc.Api.Proto.Documents package */ namespace Diadoc\Api\Proto\Documents { /** * RevocationStatus enum */ final class RevocationStatus { const UnknownRevocationStatus = 0; const RevocationStatusNone = 1; const RevocationIsRequestedByMe = 2; const...
true
0cbafccdac58735544fd8862bac33baffe1674f4
PHP
YevgenChop/Quitter
/app/Http/Controllers/MessageController.php
UTF-8
2,296
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Http\Requests\MessageRequest; use App\Services\ApiAuthService; use App\Services\MessageService; use Illuminate\Http\Request; use Response; use App\Models\Message; class MessageController extends Controller { /** * Get a Json listing of the messages. * ...
true
6383a869754fcaee621ed67b1a9e85dbcda1002e
PHP
dashifen/shadowlab-old
/src/Responses/Cheatsheets/Magic/MentorSpirits.php
UTF-8
1,166
2.859375
3
[ "MIT" ]
permissive
<?php namespace Shadowlab\Responses\Cheatsheets\Magic; use Shadowlab\Interfaces\Response\AbstractResponse; class MentorSpirits extends AbstractResponse { protected function handleFound() { // the search bar for this view needs a list of the books contained within the powers that // we've foun...
true
96c21c6f2a2b265fe89269099c0ea9a3fe1534e9
PHP
RamisL/ekino-api-platform-sandbox
/api/src/Entity/Creator.php
UTF-8
5,438
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * This is a dummy entity. Remove it! * * @ORM\HasLifecycleCallbacks * @ApiResource( * collectionOperation...
true
de22f10ad1a285fc193c8ab6dfc014445326ce73
PHP
activecollab/authentication
/src/Authorizer/RequestProcessor/RequestProcessingResult/RequestProcessingResult.php
UTF-8
1,103
2.59375
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Active Collab Authentication project. * * (c) A51 doo <info@activecollab.com>. All rights reserved. */ namespace ActiveCollab\Authentication\Authorizer\RequestProcessor\RequestProcessingResult; /** * @package ActiveCollab\Authentication\Authorizer\RequestProcessor\RequestProc...
true
cb05a54933d9a73747b4acab3256f0084026f3ae
PHP
AtanorPHP/atanor-http
/src/Atanor/Http/Message/Request/DefaultRequest.php
UTF-8
3,744
2.796875
3
[]
no_license
<?php declare(strict_types = 1); namespace Atanor\Http\Message\Request; use Atanor\Http\Message\Header\DefaultHeader; use Atanor\Http\Message\Header\Header; use Atanor\Http\Message\MutableMessage; use Atanor\Http\Uri\Uri; use Atanor\Http\Uri\Url\HttpUrl; use Atanor\Http\Uri\url\UrlPath; class DefaultRequest implement...
true
f2ceea654061a0326b73c3e70fb5bcc5b7031684
PHP
EntityFX/Tarakaning
/www/engine/kernel/URLException.php
UTF-8
285
2.78125
3
[]
no_license
<?php class URLException extends Exception { const URL_BASE="UrlBase class: "; public $nodeLink; public function __construct($nodeLink,$message, $code=0) { $message=self::URL_BASE.$message; $this->nodeLink=$nodeLink; parent::__construct($message, $code); } }
true
06c0fa422b051c8d4e93628b7709fb0444f523a0
PHP
AngelSlava/universal-laravel-docker-skeleton
/src/laravel/app/Console/Commands/TestingJobsCommand.php
UTF-8
1,031
2.609375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Illuminate\Support\Str; class TestingJobsCommand extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'testing:jobs'; /** * The console command d...
true
43db218c80790993428f122e32e1f62371ea3e72
PHP
rsanchez/Deep
/src/Repository/SiteRepositoryInterface.php
UTF-8
1,163
2.84375
3
[ "MIT" ]
permissive
<?php /** * Deep * * @package rsanchez\Deep * @author Rob Sanchez <info@robsanchez.com> */ namespace rsanchez\Deep\Repository; use rsanchez\Deep\Collection\SiteCollection; use rsanchez\Deep\Model\Site; /** * Repository of all Sites */ interface SiteRepositoryInterface { /** * Find an enti...
true
c86e1d056c8303b871311e691e8720d8b3791d81
PHP
emsifa/evo
/tests/Casters/ArrayCasterTest.php
UTF-8
4,755
2.59375
3
[ "MIT" ]
permissive
<?php namespace Emsifa\Evo\Tests; use Emsifa\Evo\Casters\ArrayCaster; use Emsifa\Evo\Exceptions\CastErrorException; use Emsifa\Evo\Tests\Samples\SampleArray; use Emsifa\Evo\Tests\Samples\SampleArrayChildObject; use ReflectionProperty; class ArrayCasterTest extends TestCase { public function testCastMixedArray() ...
true
9683de100179e31bf978d4ae4b4062c841ead56a
PHP
CommitNeckRope/TP1_V001
/src/Controller/admin/RoomtypeController.php
UTF-8
4,981
2.546875
3
[]
no_license
<?php namespace App\Controller; namespace App\Controller\Admin; use App\Controller\Admin\AppController; /** * Roomtype Controller * * @property \App\Model\Table\RoomtypeTable $Roomtype * * @method \App\Model\Entity\Roomtype[]|\Cake\Datasource\ResultSetInterface paginate($object = null, array $settings = []) */...
true
eb268bedf36d8243bbc5540e2753a9c5df4e83a0
PHP
goodrain-apps/ranzhi
/framework/control.class.php
UTF-8
4,369
2.859375
3
[ "DOC" ]
permissive
<?php /** * Control类从baseControl类继承而来,每个模块的control对象从control类集成。 * 您可以对baseControl类进行扩展,扩展的逻辑可以定义在这个文件中。 * * This control class extends from the baseControl class and extened by every module's control. * You can extend the baseControl class by change this file. * * @package framework * * The author disclaims ...
true
5bfa92767c7ced29b0b0dbfb2510b451f3ea9b2b
PHP
derecanor/cookies
/sql.php
UTF-8
670
2.96875
3
[]
no_license
//executing sql query// <?php /** * Created by PhpStorm. * User: 1809441 * Date: 11/03/2019 * Time: 19:48 */ //create sql query as a string// $sql_query = "SELECT * FROM superheros WHERE superpower LIKE '%lasers%'"; //execute the SQL query $result=$db->query($sql_query); //iterate over $result object one $row at ...
true
8f32133b23243ef3b9a0f5392461a34e23dcd25c
PHP
CyberSecutor/Preacher
/src/Template/TemplateLocatorInterface.php
UTF-8
345
2.53125
3
[]
no_license
<?php namespace ZeroConfig\Preacher\Template; use ZeroConfig\Preacher\Output\OutputInterface; interface TemplateLocatorInterface { /** * Get the template path for the given output. * * @param OutputInterface $output * * @return string */ public function locateTemplate(OutputInter...
true
66d4a5ef638f3e947ecbfa7653b12e972be0166f
PHP
ruyichangfeng/wq
/addons/cy163_checkwork/zsk_market/libs/wxpay/wxpay.class.php
UTF-8
7,316
2.609375
3
[]
no_license
<?php /* 1、实例化wxpay,设置conf参数 2、调用方法,传入指定格式; 3、具体调用时需要哪些参数参考微信支付api传入对于 */ class Wxpay{ function __construct($conf=array()){ $this->conf=$conf; } public $conf=array(//小程序及支付账号配置, "wxpay_mchid"=>" ", "wxpay_key"=>" ", "certpem"=>" ", "keypem"=>" ", ); public $xml=""; public ...
true
fd8468da234838eb0b405b564081f61288bc0674
PHP
wyehuongyan/kindling-core
/database/migrations/2015_08_15_191826_create_user_info_table.php
UTF-8
986
2.59375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUserInfoTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::rename("shopper_gender", "user_gender"); Schema::cre...
true
7de923ad0ce387f5a5724a7ba3f42ab57c35cd6b
PHP
deviffy/marbles
/app/Library/Algorithm.php
UTF-8
2,212
3.3125
3
[]
no_license
<?php namespace App\Library; class Algorithm { public static function run ($bag) { $N = count(array_keys($bag)); // Init the buckets $buckets = []; // Set the number of available colors, the number of marbles and the number of resulting buckets $marblesCount = $N * $N...
true
4336b526816c876c0c2a3d090ef5d63718f23332
PHP
AEJ-FORMATION-DATA-IA/Valentin-Amani-Stock
/fichiers_exercice_essentiel_php_mysql/Chapitre_03/08/index.php
UTF-8
326
3.203125
3
[]
no_license
<?php class Product { function __toString() { return "Class Product"; } } class User { function __toString() { return "Class User"; } } $product = new Product(); $user = new User(); $tmp = $product; $product = &$user; $user = $tmp; var_dump($product . "\n"); var_dump($user . "...
true
83600b57906b33f26b53506251cc2f5b4d78e695
PHP
pjg711/alerta-sondas-detenidas
/lib/class_log.php
UTF-8
4,539
2.921875
3
[]
no_license
<?php /** * Description of class_log * * @author pablo */ class Log { private $userid; // id usuario que hace la consulta private $ipAddress; // direccion ip del cliente private $action; // tipo de accion, por ejem private $url; // url del navegador private $info; // info contiene otra infor...
true
6152659d6d51fae7618c717f27a744e007457fcd
PHP
HryshchukBohdan/-shop
/controllers/UserController.php
UTF-8
5,870
2.546875
3
[]
no_license
<?php // Контролер пользователей namespace controllers; // подключаем модели //use models\CategoriesModel; use models\UsersModel; use models\OrdersModel; //include_once '/models/CategoriesModel.php'; include_once '/models/UsersModel.php'; //include_once '/models/OrdersModel.php'; include_once '/models/Pu...
true
a24abd22d080e30e08ed73f5db2bd48c9a9c7383
PHP
techdivision/import
/src/Repositories/EavAttributeGroupRepositoryInterface.php
UTF-8
2,037
2.828125
3
[ "MIT" ]
permissive
<?php /** * TechDivision\Import\Repositories\EavAttributeGroupRepositoryInterface * * PHP version 7 * * @author Tim Wagner <t.wagner@techdivision.com> * @copyright 2016 TechDivision GmbH <info@techdivision.com> * @license https://opensource.org/licenses/MIT * @link https://github.com/techdivision/imp...
true
c58d2c08d96499a31eaeeddd35fa452e5ad7302d
PHP
YaKem/Mon-blog
/controllers/Article.php
UTF-8
12,542
2.78125
3
[]
no_license
<?php namespace Controllers; use Models\Article as articleModel; use Models\Comment; class Article extends Controller { /** * @var string $modelName nom de la classe articleModel */ protected $modelName = articleModel::class; /** * Affiche un a...
true
e7522a5934274351a645cf33e0637d72d560ddf9
PHP
FreeUKGen/FreeUKGenealogy
/craft/app/migrations/m151127_000000_plugin_license_keys.php
UTF-8
1,157
2.546875
3
[ "Apache-2.0" ]
permissive
<?php namespace Craft; /** * The class name is the UTC timestamp in the format of mYYMMDD_HHMMSS_migrationName */ class m151127_000000_plugin_license_keys extends BaseMigration { /** * Any migration code in here is wrapped inside of a transaction. * * @return bool */ public function safeUp() { if (!craf...
true
8e1d56efcbfa7b0421ddef3e92d5496f863bf272
PHP
nicolas-grekas/Patchwork
/pieces/agent-controller/class/pipe/printf.php
UTF-8
3,139
2.921875
3
[]
no_license
<?php // vi: set fenc=utf-8 ts=4 sw=4 et: /* * Copyright (C) 2012 Nicolas Grekas - p@tchwork.com * * This library is free software; you can redistribute it and/or modify it * under the terms of the (at your option): * Apache License v2.0 (http://apache.org/licenses/LICENSE-2.0.txt), or * GNU General Public Licens...
true
0d4a1dfcdc7e85aa35f526213f5caccc6c0d8c41
PHP
wilo-ahadi/clusteer
/src/Actions/Wait.php
UTF-8
741
3.140625
3
[ "Apache-2.0" ]
permissive
<?php namespace RenokiCo\Clusteer\Actions; use RenokiCo\Clusteer\Contracts\Actionable; class Wait extends Action implements Actionable { /** * The amount of seconds to wait. * * @var int */ protected $seconds; /** * Initialize the action. * * @param int $seconds ...
true
303429a29544b8555fb410a337493c5ae7185761
PHP
hartl3y94/leetcode-php
/src/leetcode/util/ListNode.php
UTF-8
574
3.40625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace leetcode\util; class ListNode { public $val; public $next = null; public function __construct(int $val = 0, ?ListNode $next = null) { $this->val = $val; $this->next = $next; } public static function toArray(ListNode $node): array ...
true
252a886fe12c375a752a78b6b620b5d8993dd6e8
PHP
bvangraafeiland/RepositoryAnalyzer
/src/Commands/CheckRateLimitCommand.php
UTF-8
1,171
2.625
3
[]
no_license
<?php namespace App\Commands; use Carbon\Carbon; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; /** * Created by PhpStorm. * User: Bastiaan * Date: 19-02-2016 * Time: 22:33 */ class CheckRateLimitCommand extends ApiUsingCommand { protected function c...
true
3297b1ce76c8c5b39b51cd8bbb6181a77da0ff03
PHP
deaamartya/proyekpabrik
/app/Models/DetailSusut.php
UTF-8
933
2.515625
3
[ "MIT" ]
permissive
<?php /** * Created by Reliese Model. */ namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * Class DetailSusut * * @property int $id_detail_susut * @property string $nama * @property float $berat_susut_kg * @property float $berat_susut_persen * @property float $berat_kirim * @property str...
true
941423f54c3d9403b1e2d1fb79bde21ad49cbc87
PHP
etiennecotin/keinosity_api
/src/Command/InitAppCommand.php
UTF-8
4,051
2.625
3
[]
no_license
<?php namespace App\Command; use App\Entity\User; use Doctrine\ORM\EntityManagerInterface; use Psr\Log\LoggerInterface; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption;...
true
181e90d3e6ef573a6afe849d0c0b648d96ecddde
PHP
dnafactory/dna-internal-standards
/management-facade-mediator/esempio/DNAFactory/Example/Management/ProductManagement.php
UTF-8
306
2.53125
3
[]
no_license
<?php namespace DNAFactory\Example\Management; use DNAFactory\Example\Api\ProductManagementInterface; class ProductManagement implements ProductManagementInterface { public function importProducts(array $products) { foreach ($products as $product) { // ... } } }
true
9dd27be2b29c8b9d17f66e72a375a1b58cb216cd
PHP
lindn100/CPSC408-DBManagement
/Final Project/OCAdopt/catcsv.php
UTF-8
916
2.59375
3
[]
no_license
<?php include('conndb.php'); $result = $myDB->query("SELECT Pet.petID, Pet.name, Breed.breedName, PetInfo.age, PetInfo.color, PetInfo.gender, ROUND(PetInfo.weight, 2) AS weight, ROUND(PetInfo.price, 2) as price, Shelters.name as ShelterName FROM Pet, PetInfo, Breed, Shelters WHERE Pet.infoID = PetInfo.infoID AND...
true
81232671ac161aecc68eca347c39b3ecca2d5687
PHP
martinhagocreative/Clinica_Femme
/application/cms/mvc/user/view/UserView.php
UTF-8
3,189
3.078125
3
[]
no_license
<?php /** * Classes e objetos que representam a View da aplicação * @package cms.mvc.view */ require_once 'cms/mvc/view/crud/CrudView.php'; /** * Implementação da View de usuário * @author mauricio */ class UserView extends CrudView { /** * * @var string */ protected $contentPage = 'u...
true
2e8a7b8b89cff9e4cf233f06843b0a2f4e9ce43d
PHP
zzdjk6/Programming-Collective-Intelligence-Code-PHP
/Chapter2/old/WithoutDatabase/Classes/Person.php
UTF-8
3,278
3
3
[]
no_license
<?php require_once 'Critics.php'; require_once 'SimilarityCaculator.php'; class Person { protected $evaluateData; protected $name; public function __construct($name) { $this->name = $name; $this->evaluateData = Critics::getCritcsData($name); } public function getName() { ...
true
07b39d95ba62a3bd345e5ab73cec138e0507b430
PHP
jmauriciophd/SIGAV
/controller/filtros/AluguelFilter.class.php
UTF-8
3,604
2.734375
3
[]
no_license
<?php class AluguelFilter { private $dataCadastro; private $dataCadastroFinal; private $dataAtualizaoInicial; private $dataAtualizaoFinal; private $cnpjFornecedor; private $nomeFornecedor; private $categoria; private $valorVestuario; private $dataLocacaoInicial; private $dataLocacaoFinal; privat...
true
6ef2201dfaeceaa0e27b44fd45a41025cc4af044
PHP
hepicek/motion_tracker_io
/app/Http/Controllers/RatingsController.php
UTF-8
2,728
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Movie; use App\Rating; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class RatingsController extends Controller { public function index() { return Auth::id(); } public function getUserRatingOrAverageRating($imdb_id) { ...
true
012076512052ffca8ecece9aa263dfb6883ddff0
PHP
mzabolotnyi/garage
/src/Factory/VehicleFactory.php
UTF-8
913
3.125
3
[]
no_license
<?php namespace Factory; use Exception\UnknownVehicleTypeException; use Model\Boat; use Model\Car; use Model\Helicopter; use Model\Horse; use Model\Truck; class VehicleFactory { public function createVehicle($type, $name) { switch ($type) { case Car::class: $vehicle = new ...
true
a7cd907608170e3ca4ea7ae9b6aa023d623818b9
PHP
iamevans/php_basic
/book3/3-02/array-46.php
UTF-8
84
3.359375
3
[]
no_license
<?php $a = array(1, 2, 3, 4, 5); echo "배열의 곱 = " . array_product($a); ?>
true
8322da5813594f1d481950f0afe9c40f1eb85f2e
PHP
alexmanno/trucker
/tests/Support/SupportStrTest.php
UTF-8
5,538
2.828125
3
[ "MIT" ]
permissive
<?php namespace Trucker\Tests\Support; use PHPUnit\Framework\TestCase; use Trucker\Support\Str; class SupportStrTest extends TestCase { /** * Test the Str::words method. * * @group laravel */ public function testStringCanBeLimitedByWords() { $this->assertEquals('Taylor...', St...
true
793828a6507e28a7cb9489f660b2d836429d70a7
PHP
jandikn/nktis
/app/classes/MyHelpers.php
UTF-8
1,675
2.734375
3
[]
no_license
<?php class MyHelpers extends Nette\Object { private $context; private $basePath; public function __construct($context) { $this->context = $context; $this->basePath = Nette\Environment::getHttpRequest()->getUrl()->getBasePath(); } public function loader($helper) ...
true
b103a5718e090298a906d12f91c4921ca5d5aec6
PHP
fissible/MVCFAM
/app/src/Db/Migration.php
UTF-8
2,872
2.921875
3
[ "Artistic-2.0" ]
permissive
<?php namespace MVCFAM\App\Db; /** * A Database migration */ use MVCFAM\App\Object; use MVCFAM\App\Db\Schema; use MVCFAM\App\Helpers\ClassWriter; abstract class Migration extends Object { protected static $path; public function beforeDown() { return true; } public function beforeUp() { return true; } ...
true
c4b405474ba3a006b3dbe4e4d7fe8b5054dc6b56
PHP
HuguesGithub/zombicide
/core/domain/NodeZombiePath.class.php
UTF-8
1,814
2.96875
3
[]
no_license
<?php if (!defined('ABSPATH')) { die('Forbidden'); } /** * Classe NodeZombiePath * @author Hugues * @since 1.0.01 * @version 1.0.01 */ class NodeZombiePath extends LocalDomain { /** * Missionzone * @var $MissionZone */ protected $MissionZone; /** * Profondeur dans le chemin * @var $depth ...
true
ec8f512c3b2349392a2f440c350410c7a8e608a6
PHP
Noel3700/Redes
/1º Periodo/teste/ex3.php
UTF-8
288
3.8125
4
[]
no_license
<?php for ($i=1; $i < 15 ; $i++) { $numeros=rand(1,1000); $vetor1[$i] = $numeros; } for ($i=1; $i < 15 ; $i++) { echo "Posição do número:".$vetor1[$i]; if ($vetor1[$i] % 2 == 0 ) { echo " O número é par "."<br>"; } else { echo " O número é impar "."<br>"; } } ?>
true
7b212844dad269d5bf6962ecd28c53477fa26bbb
PHP
mediaconcept-gmbh/mc_2click_youtube_google
/Classes/Domain/Model/Cookie.php
UTF-8
4,876
2.53125
3
[]
no_license
<?php namespace MC\McCookie\Domain\Model; /*** * * This file is part of the "Cookie" Extension for TYPO3 CMS. * * For the full copyright and license information, please read the * LICENSE.txt file that was distributed with this source code. * * (c) 2021 Rafael Gonzalez Albes <albes@mediaconcept-ulm.de>, media...
true
fd9b1fd4feedd18c8dadacd7022bba85053435dd
PHP
RoadSigns/YewTree
/Website/Controllers/CategoryController.php
UTF-8
1,260
2.796875
3
[ "MIT" ]
permissive
<?php namespace YewTree\Website\Controllers; use YewTree\Core\Contracts\ICategoryRepository; use YewTree\Core\Contracts\IProductRepository; class CategoryController { private $productRepository; private $categoryRepository; /** * CategoryController c...
true
875a148f1b02d0a975c145c2d0f57a2e13077c39
PHP
xiaochouchou123/03Q_shiyanxin
/xiaoxin/fastphp/Model.php
UTF-8
1,421
2.75
3
[]
no_license
<?php class Model{ //查询所有数据 public function select(){ $sql = "select * from `user`"; $pdo = new PDO("mysql:host=127.0.0.1;dbname=xjy",'root','root'); $res = $pdo->query($sql)->fetchAll(); return $res; } //查询单条数据 public function find($id){ $sql = "select * from `user` where `id`='$id'"; $...
true
7e8a9ef850a1a8672d1d9afdf46e5a120e683736
PHP
baboutirera/Banque-du-peupleu
/add.php
UTF-8
8,512
2.609375
3
[]
no_license
<?php require 'database.php'; if($_SERVER["REQUEST_METHOD"]== "POST" && !empty($_POST)){ //on initialise nos messages d'erreurs; $nameError = ''; $firstnameError=''; $ageError=''; $telError =''; $emailError =''; $regionError=''; // on rec...
true
354672e9f2a191927731c4a00cf1b4eef2fe3e3e
PHP
Nadia78/smartfit
/index.php
UTF-8
10,164
2.734375
3
[]
no_license
<?php include 'header.php'; require_once(__DIR__.'/functions/functions.php'); require(__DIR__.'/fpdf/fpdf.php'); class AlphaPDF extends FPDF{ } if(isset($_POST['action'])){ // Déclaration des variables //var_dump($_POST); //echo "<br>"; $gender=trim(htmlentities($_POST['genre'])); $liste1=trim(htmlentities(...
true
d53be751bc02edc9496ff0653b1186c1ada3c8a6
PHP
sbecerikli/SAUSecureSoftwareDevelopment
/scripts/comment.php
UTF-8
1,669
2.671875
3
[]
no_license
<?php session_start(); include_once 'token.php'; if (isset($_POST['submit'], $_POST['token'])) { if (Token::check($_POST['token'])) { require 'config.php'; $user = !empty($_POST['user']) ? trim(strip_tags($_POST['user'])) : null; $ticketid = !empty($_POST['ticketid']) ? trim(strip_tags($_P...
true
9ff8f1fd03d90a6fe76b61ac11e4498defca9660
PHP
sreesdas/bootstrap-projects
/ewc/php/get_cpf.php
UTF-8
317
2.71875
3
[ "MIT" ]
permissive
<?php $conn = new mysqli('localhost', 'root', '', 'test'); $cpf = $_GET['cpf']; $name = ''; $sql = "SELECT * FROM employee WHERE CPF = '". $cpf ."'" ; $result = $conn->query($sql); if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { $name = $row['NAME']; break; } } echo $name; ?>
true
9efdf2af7765b34a096398b49bd052551b114b33
PHP
Kick-In/hungarian
/src/Algo/Hungarian.php
UTF-8
5,900
3
3
[]
no_license
<?php namespace Kickin\Hungarian\Algo; use Kickin\Hungarian\Matrix\Matrix; use Kickin\Hungarian\Result\ResultSet; class Hungarian extends AssignmentSolver { /** @var int[][] */ private $rowCache; private function getPrimeFromRow($row, $primed) { if (!array_key_exists($row, $primed)) { return false; } ...
true
98518f03132089a61a4e20967d18de08bdeea3e6
PHP
vsantosweb/mecanicashow
/app/model/Cliente_model.class.php
UTF-8
2,123
2.9375
3
[]
no_license
<?php namespace model; defined('BASE_PATH') OR exit('Acesso Negado!'); /** * Modelo de classe Cliente * * @category Funcionario * @author Vitor Santos * @link https://vsantosweb.com */ /** * Possui as regras de inserção do banco de dados * recebe @var $data como parametro em todos os methodos que vem ...
true
b10944cf5b0efa0d64f1be05f123fcf7ec12cff0
PHP
biscom/rEDUceRideshare
/profile_comments.php
UTF-8
1,117
2.765625
3
[]
no_license
<!-- <div class="HistoryOutput"> --> <!-- </div> --> <?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "rideshare"; ?> <!doctype html> <body> <?php // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { ...
true
ca3d12bcf7a465f09ba44febc15d0fe2b9d52277
PHP
dabigjoe6/crud_codeigniter
/application/models/Crud_model.php
UTF-8
1,304
2.671875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Crud_model extends CI_Model { public function __construct() { $this->load->database(); } public function createData() { $data = array( 'first_name' => $this->input->post('first_name'), 'last_name' => $this->input->post('last_name'), 'bio' =>...
true
08692856ce7512b3a73a38f01a800107d306ef75
PHP
fabio-aug/crud-php
/web2/Model/conta_dao.php
UTF-8
2,829
3.234375
3
[]
no_license
<?php require_once dirname(__FILE__)."/conta.php"; require_once dirname(__FILE__)."/banco.php"; class ContaDAO { /** * Recupera todos as Pessoas existentes no banco de dados */ public function buscarTodos() { global $conn; $qry = $conn->query(...
true
630560a96352e6373423d82853f268c4094d7f97
PHP
pablops/Codeup_Exercises
/contact-parser.php
UTF-8
672
3.15625
3
[]
no_license
<?php function parseContacts($filename) { $contacts = array(); $filename = 'contacts.txt'; $handle = fopen($filename, 'r'); $contacts = fread($handle, filesize($filename)); $contentsArray = explode("\n", $contacts); // $explodedContents = explode("|", $contacts); $otherArray = []; foreach($contentsArray ...
true
31868db9a4504e95a83ed634a6fc2d924db6190c
PHP
gam6itko/php-s-shot
/src/UrlBuilder.php
UTF-8
3,601
2.875
3
[]
no_license
<?php declare(strict_types=1); namespace Gam6itko\SShot; class UrlBuilder { private const HOST = 'https://api.s-shot.ru'; private const OPTIONS = [ 'resolution', 'size', 'format', //JPEG,PNG 'scale', 'timeout', 'delay', 'jsSupport', 'flashSuppo...
true
4af161bfb25ac9f9bb716f0e381c5791e52d018f
PHP
brandsafric-incorporated/ekklesion
/src/Core/Infrastructure/Filesystem/FilesystemException.php
UTF-8
1,151
2.96875
3
[ "MIT" ]
permissive
<?php namespace Ekklesion\Core\Infrastructure\Filesystem; /** * Class FilesystemException * @package Ekklesion\Core\Infrastructure\Filesystem * @author Matías Navarro Carter <mnavarro@option.cl> */ class FilesystemException extends \DomainException { /** * @param Filename $filename * * @return ...
true
f384d9bb4cc7d2c6678e0e66dff3c02b9f508039
PHP
MiguelGutierrez43/cursophp
/primeros pasos/codigo_html.php
UTF-8
501
3.078125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title> Insertar PHP en código HTML </title> <meta charset="utf-8"> </head> <body> <?php $norte = 5; $centro = 4; $sur = 6; $total_regiones = $norte + $centro + $sur; $texto = "Chile esta dividido en : "; echo "$t...
true
8499709c173371b5760af94b4b4a48c04e955a3e
PHP
Artemiris/rockart
/console/migrations/m190329_070913_create_petroglyph_three_d_table.php
UTF-8
1,661
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Handles the creation of table `{{%petroglyph_three_d}}`. */ class m190329_070913_create_petroglyph_three_d_table extends Migration { /** * {@inheritdoc} */ public function safeUp() { $this->createTable('petroglyph_three_d', [ 'id' => $this-...
true
d99e7a104a5634ece11f1a81ec01c309462423e5
PHP
brandonsavage/modusframework
/lib/modus/request/Web.php
UTF-8
1,103
2.765625
3
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
<?php class Request_Web extends Request { protected $addlData; protected function populateData(array $array=array()) { if(isset($_GET['module'])) { $this->module = $_GET['module']; } if(isset($_GET['action'])) { $this->action = $_GET['action']; } if(isset($_GET['record'])) { $this->reque...
true
6acf281eb48b90b2ee2668aa682ce667723e832f
PHP
PeterNdeke/array
/time_task1.php
UTF-8
1,228
3.234375
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title> Millitary Task </title> </head> <body> <?php define("X", 12); //interger X holding the limited time it will take to complete a task $A = array(7, 6, 5, 3, 4, 2, 1); // interger Array ...
true
f606164976af72377b63597701cdceb496bef15d
PHP
luckisoff/livequiz
/app/QuestionSet/Interfaces/QuestionSetInterface.php
UTF-8
236
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\QuestionSet\Interfaces; use App\QuestionSet\Models\QuestionSet; interface QuestionSetInterface { public function all(); public function create($data=[]); public function update($data=[],QuestionSet $set=null); }
true
f54177238145ccf8adb06bc9d4982cfcb45a1985
PHP
mjwybrow/MeLTS
/log_out.php
UTF-8
431
2.625
3
[]
no_license
<?php // Written by Shea Yuin Ng // Created 11 September 2012 // To logout // Resume session from previous session session_start(); // Destroy session when logging out session_unset(); // unset $_SESSION variable for the run-time (frees all session variables currently registered) session_destroy(); // destroy s...
true
2594401440fe6ea477f7d4f02723654371fc5c5f
PHP
nicnocquee/frontend
/src/configs/upgrade/db/mysql/mysql-3.0.5.php
UTF-8
669
2.625
3
[ "Apache-2.0" ]
permissive
<?php $status = true; /* add timestamp to the table credentials */ $sql = <<<SQL ALTER TABLE `{$this->mySqlTablePrefix}credential` ADD `dateCreated` INT(11) DEFAULT NULL SQL; $status = $status && mysql_3_0_5($sql); $sql = <<<SQL UPDATE `{$this->mySqlTablePrefix}admin` SET `value`=:version WHERE `key`=:key SQL; $s...
true
7d0ef451f36f45e63d736c56f019d5f11581e48a
PHP
vhoangbk/kimshop123
/app/Repositories/Customer/CustomerRespository.php
UTF-8
2,900
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Customer; use App\Repositories\EloquentRepository; use App\Models\Customer; class CustomerRespository extends EloquentRepository implements CustomerRespositoryInterface { /** * get model * @return string */ public function getModel() { return Custo...
true
c2e5ef47bcb3449dc7a8de562814b28d3ea2f94c
PHP
boxtar/reminders
/app/Domain/Dates/Entities/Months/April.php
UTF-8
241
2.703125
3
[]
no_license
<?php namespace App\Domain\Dates\Entities\Months; class April extends BaseMonth { /** * @var integer - Month number */ protected $day = 3; /** * @var string - Month name */ protected $name = "april"; }
true
6d481016d40f098a103c4377dbc7f6dfe4d58877
PHP
acm-mu/scratchcomp-frontend
/viewclarify.php
UTF-8
1,159
2.59375
3
[]
no_license
<?php include('header.php'); ?> <?php include('securityHeader.php'); ?> <?php include('returnLink.php'); ?> <h1>Clarifications</h1> <?php include('settings.php'); include('Parsedown.php'); showClarifications(); function showClarifications() { $Parsedown = new Parsedown(); $team = $_SESSION["teamNumber"]; $save_d...
true
81d909a7963923af8e5f820ace28e068e945e545
PHP
SimoHerningsholm/Portfolio
/ORM/Bruger.php
UTF-8
3,309
2.84375
3
[]
no_license
<?php Class Bruger { function __construct($conn) { $this->connection = $conn; } private $id; private $profilId; private $brugernavn; private $password; private $opretDato; private $connection; public function setId($val) { $this->id = $va...
true
084dc11b48dc313df92920e5b429a56673a53a30
PHP
mbretter/stk-pdo
/src/Stk/PDO/Select.php
UTF-8
11,111
2.984375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Stk\PDO; use Closure; class Select implements SqlInterface { protected $_from = []; protected $_columns = []; protected $_where = []; protected $_order = []; protected $_limit; protected $_join = []; protected $_group = []; protected $_having = []; protected $_dist...
true
f19075b700346d8ceec6f30d8a5b3e37f14ff53e
PHP
masonmao/Spider
/common/db.php
UTF-8
2,712
2.890625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: lins * Date: 19/04/2018 * Time: 9:36 AM */ namespace spider\common; class db { public static $db = ''; public static $dbname = ''; public static $table = ''; public function __construct($config) { self::$dbname = $config['dbname']; sel...
true
97e80e347547ea1c69b4875ae44dc895b9a7efb7
PHP
blancohugo/blog
/src/File/src/ResourceFile.php
UTF-8
1,884
3.125
3
[ "MIT" ]
permissive
<?php namespace BlancoHugo\Blog\File; /** * Class to extract the content and metadata from a resource file * * @package BlancoHugo\Blog\File */ class ResourceFile extends File { /** * Content metadata array * * @var array */ protected $metadata; /** * Class construtor * ...
true
1df2626fa1ac845519bf2a051ed7d16f1a2050d7
PHP
paul-blundell/Order-Some-Food
/application/controllers/tests/takeaways_library_test.php
UTF-8
1,440
2.578125
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php require_once(APPPATH . '/controllers/tests/Toast.php'); /** * Test the takeaway library * * This file is subject to the terms and conditions defined in * file 'LICENSE.txt', which is part of this source code package. * * @author Paul Blundell */ class Takeaways_library_test extends Toast { private $takea...
true