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
d4cb4017105a38189001ba4e695cf7867ff22637
PHP
zhouzhouxs/mymff
/Alxg/Library/DB/Driver/PdoDriver.php
UTF-8
3,090
3
3
[]
no_license
<?php namespace Alxg\Library\DB\Driver; use PDO; class PdoDriver { /** * 所有配置的实例 * @var array */ private static $Instances = []; /** * 当前配置的连接实例 * @var */ private $conn; /** * 当前Pdostatement实例 * @var */ private $stmt; /** * PdoDriver con...
true
81febcc2e14a57c43c0dc50c1bd4afbabe324c9f
PHP
Symfomany/laracinema
/app/Model/Cinemas.php
UTF-8
479
2.609375
3
[]
no_license
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; /** * Class Cinemas représentant la table cinemas * @package app\Model */ class Cinemas extends Model { protected $table = 'cinema'; /* RELATIONS */ public function movies() { return $t...
true
e25c43631f703bbbc7cf43beb922a33ca85854c2
PHP
Cheezily/PaperTracker
/model/papersDB.php
UTF-8
4,487
2.71875
3
[]
no_license
<?php require_once 'database.php'; function getPaperInfo($paperID) { global $db; $query = "SELECT * FROM papers WHERE paperID=:paperID"; $statement=$db->prepare($query); $statement->bindValue('paperID', $paperID); $statement->execute(); $results = $statement->fetch(); return $results;...
true
35da6bf4bed0b62bf255a99f45a9faa1bfc8860c
PHP
ferdinandfrank/spoferan_prototype
/database/migrations/2017_04_05_000180_create_admin_roles_table.php
UTF-8
1,196
2.71875
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; /** * CreateAdminRolesTable * ----------------------- * Migration to create the table 'admin_roles'. * * @author Ferdinand Frank * @version 1.0 */ class CreateAdminRolesTable ex...
true
8f28d1ec1d5c7140fdc20d77de59e431ed7d93f0
PHP
SergioGeeK7/tienda
/php/poncarrito.php
UTF-8
1,181
3.078125
3
[]
no_license
<?php // echo $_GET["p"] // @p idProducto session_start(); if(isset($_GET["p"])){ $_SESSION["producto"][$_SESSION["contador"]] = $_GET["p"]; // guardo los productos en un array $_SESSION["cantidad"][$_SESSION["contador"]] = $_GET["cantidad"]; // guardo las cantidades en otro array $_SESSION["contador"]...
true
95cd908b4c66c762b3848783f04e34ca3f7e155c
PHP
KaseyBou/SE266
/week5/login.php
UTF-8
3,093
2.609375
3
[]
no_license
<!DOCTYPE html> <?php session_start(); ?> <html lang="en"> <head> <title>login page</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> </head> <body...
true
205a4d075813c19d883e9a2fdaed20d4e85dd740
PHP
topphp/topphp-client
/src/Client.php
UTF-8
4,587
2.6875
3
[ "MIT" ]
permissive
<?php /** * 凯拓软件 [临渊羡鱼不如退而结网,凯拓与你一同成长] * Project: topphp-client * Date: 2020/2/17 18:30 * Author: bai <sleep@kaituocn.com> */ declare(strict_types=1); namespace Topphp\TopphpClient; use Topphp\TopphpClient\guzzle\GuzzleClient; use Topphp\TopphpClient\redis\RedisClient; use Topphp\TopphpClient\socket\SocketClient...
true
49a4421265c41350690308442c2dc338bc6a099f
PHP
illectronic/Console
/adldap.php
UTF-8
499
2.515625
3
[]
no_license
<?php require_once("adldap/adLDAP.php"); echo "testing adlap..."; try { $adldap = new adLDAP(); } catch (adLDAPException $e) { echo $e; exit(); } $username="ocohen"; $password="R3dcr3s89"; $authUser = $adldap->authenticate($username,$password); if ($authUser == true) { echo "User authenticated succ...
true
c4dc9c212f44a8ca73ec130617bacaed349149e7
PHP
rahulyhg/coupon-city
/app/Couponcity/Coupon/LogCouponSaleCommand.php
UTF-8
909
2.625
3
[]
no_license
<?php namespace Couponcity\Coupon; use Auth; use Carbon\Carbon; class LogCouponSaleCommand { const SALES_TYPE_PRODUCT_PURCHASE = 'product_purchase'; const SALES_TYPE_PRODUCT_RESERVATION = 'product_reservation'; public $user_id; public $coupon_id; public $sales_price; public $sales_commissio...
true
1699cb480a58e5b3a0ab893a6be0559bff296940
PHP
qacheck/wp-remove-accents-upload-media-filename
/wp-remove-accents-upload-media-filename.php
UTF-8
771
2.53125
3
[]
no_license
<?php /* Plugin Name: WP Remove Accents Upload Filename Plugin URI: https://sps.vn/ Description: Remove accents media filename when uploading media file on wordpress. Version: 1.0 Author: Quách Quang Ngọc Author URI: https://sps.vn/ License: GPL2 */ if ( ! function_exists( 'add_filter' ) ) { header( 'Status: 403 Forb...
true
610ca7ad74431ff79878ad23378e5c83011fcdd0
PHP
imsuyashtripathi/PHP-Project
/PhpProject/regexg.php
UTF-8
187
2.5625
3
[]
no_license
<?php $regex="/[a-zA-z]+\d+/"; if(preg_match($regex,"june24")) { echo "found a match!<br>"; } else { echo "the regex does'nt match"; }
true
ac7f8a4e90db43fc5cf0ab5ba1e738cc6f2c67ae
PHP
20uf/symfony-api-platform-ddd-cqrs-boilerplate
/src/Infrastructure/User/Auth/AuthProvider.php
UTF-8
1,867
2.546875
3
[]
no_license
<?php declare(strict_types=1); namespace Acme\Infrastructure\User\Auth; use Acme\Domain\Shared\Query\Exception\NotFoundException; use Acme\Domain\User\ValueObject\Email; use Acme\Infrastructure\User\Query\Mysql\MysqlReadModelUserRepository; use ApiPlatform\Core\Bridge\Symfony\Validator\Exception\ValidationException;...
true
d8b08e87049c7af10fe74351dfdeb4cea97a4f43
PHP
dbulll/Final-Year-Project
/php/taskList.php
UTF-8
1,487
2.703125
3
[]
no_license
<!-- PHP Code - 1.Grab list of Tasks from the database. --> <?php if(isset($_GET['story_id'])) { $sql = mysqli_query($conn, 'SELECT a.*, b.story_name FROM task_table a, story_table b WHERE a.story_table_id = b.id AND story_table_id = '.$_GET['story_id']); } else { $sql = mysqli_query($conn, 'SELE...
true
6c6f744ed7402f73089129d5bd70035a1b087b6b
PHP
zoltanec/optmgn
/dcms/modules/core/models/ipc/stream.obj.php
UTF-8
1,095
3.15625
3
[]
no_license
<?php /** * Allow sites to communicate with CLI daemon via database */ class Core_Ipc_Stream { private $stream = ''; public function __construct($stream) { $this->stream = $stream; } /** * Read one IPC message from stream */ public function readone() { $msg = Core_Ipc_Messages::find(['stream' => md5($t...
true
c77ebf5ec05fa830c8083b80064f7bed1aa71950
PHP
ramymibrahim/sport-management
/database/migrations/2019_01_09_190939_judge.php
UTF-8
1,117
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class Judge extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('judges',function(Blueprint $...
true
d9b55b345b7c8c31e36aac72cf752a95bac710d9
PHP
locomotivemtl/charcoal-core
/tests/Charcoal/Mock/OrderCollectionClass.php
UTF-8
748
2.625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Charcoal\Tests\Mock; // From 'charcoal-core' use Charcoal\Source\Order; use Charcoal\Source\OrderInterface; use Charcoal\Source\OrderCollectionTrait; use Charcoal\Source\OrderCollectionInterface; /** * Mock Order Collection. */ class OrderCollectionClass implements OrderCollectionInterface { ...
true
a2e6c4cf4b3aa9f5d75274844aaf51236ca1ab21
PHP
Jozaguts/SiGTE
/public/views/Components/LogoInputsLoginComponent.php
UTF-8
1,892
2.625
3
[]
no_license
<?php namespace Components; /* Este Componente tendra pinta en patalla del login lo siguiente 1.- Icon con respectivo color (Maestro, Lider o Miembro de equipo) 2.- Subtituloo o Etiqueta Small con el tipo de usuario (Maestro, Lider o Miembro de equipo) 3.- Inputs y boton para realizar el login Variables: #Tipo o Ni...
true
b77a590a667fa5798217c5f7c0783fb34bb15f80
PHP
MosaicPHP/Mosaic
/src/Http/Server.php
UTF-8
3,242
2.703125
3
[ "MIT" ]
permissive
<?php namespace Mosaic\Http; use Mosaic\Contracts\Application; use Mosaic\Contracts\Http\Emitter; use Mosaic\Contracts\Http\Request; use Mosaic\Contracts\Http\Server as ServerContract; use Mosaic\Exceptions\Formatters\SmartFormatter; use Mosaic\Exceptions\Handlers\LogHandler; use Mosaic\Exceptions\Runner; use Mosaic\...
true
97d9bfe7bc0b9f516e1ecf2d80a66ed2b735e111
PHP
Thinlt/simi-magento
/magento/app/code/Vnecoms/VendorsApi/Model/Data/Sale/Memo.php
UTF-8
13,037
2.515625
3
[]
no_license
<?php namespace Vnecoms\VendorsApi\Model\Data\Sale; use Magento\Framework\Model\AbstractModel; /** * Class vendor * @SuppressWarnings(PHPMD.ExcessivePublicCount) */ class Memo extends AbstractModel implements \Vnecoms\VendorsApi\Api\Data\Sale\MemoInterface { /** * Gets the Entity ID for the memo. * ...
true
56cd58d4f3871abd027e492d3d75faf87d2fb0a5
PHP
Viktor988/laravel-project
/app/Http/Requests/ubaciProizvodAdmin.php
UTF-8
1,156
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class ubaciProizvodAdmin extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Ge...
true
56846254b03c568cf6f5fe548a45d9f40ea25ced
PHP
tombrookson/truck-router
/Lib/Services/ShortestPath.php
UTF-8
653
3.015625
3
[]
no_license
<?php namespace TruckRouter\Services; use TruckRouter\DataModels\Link; class ShortestPath { public static function bfs_path($start, $end) { $queue = new \SplQueue(); $queue->enqueue([$start]); $visited = [$start]; while ($queue->count() > 0) { $path = $queue->dequeue(); $node = $path[sizeof($path) -...
true
7963a506abc11480a6e32afa0e26f5ffbaf6dfd9
PHP
StevenGabule/JobListerPHP
/search.php
UTF-8
2,095
2.65625
3
[]
no_license
<?php include 'include/init.php'; ?> <?php $db = mysqli_connect("localhost", "root", "paranormalLove@@**", "dbjoblister"); if (isset($_GET['search']) && $_GET['search'] != "") { $search = preg_replace('#[^a-z 0-9?!]#i', '', $_GET['search']); $sqlCommand = "SELECT * FROM tbljobs WHERE job_title ...
true
2b38061e0d7bde38add25c34638a0db11df749f3
PHP
italolelis/EasyFramework
/src/Easy/Security/Authentication/Token/AbstractToken.php
UTF-8
2,636
2.84375
3
[ "MIT" ]
permissive
<?php // Copyright (c) Lellys Informática. All rights reserved. See License.txt in the project root for license information. namespace Easy\Security\Authentication\Token; use InvalidArgumentException; /** * Base class for Token instances. * * @author Fabien Potencier <fabien@symfony.com> * @author Johannes M. S...
true
14a8f742f377f243546bfd6f8a2f389c9435167f
PHP
deregenboog/ecd
/src/AppBundle/Export/AbstractExport.php
UTF-8
1,692
2.71875
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Export; use PhpOffice\PhpSpreadsheet\IOFactory; use PhpOffice\PhpSpreadsheet\Spreadsheet; use Symfony\Component\HttpFoundation\Response; abstract class AbstractExport implements ExportInterface { /** * @var Spreadsheet */ protected $excel; public function send($filena...
true
d14daafa4f12afc0d45714aec16f75350616aec3
PHP
mwinnona/Pruebalogin
/login.php
UTF-8
1,323
2.765625
3
[]
no_license
<?php session_start(); if(isset($_SESSION['user_id'])){ header('Location: /login'); } require 'database.php'; if(!empty($_POST['usuario'])&& !empty($_POST['contraseña'])){ $records = $conn->prepare('SELECT id, usuario, contraseña FROM Usuario WHERE usuario=:usuario'); $reco...
true
b52a947e8314dcc5718538cae649cc5938dad75c
PHP
chendongqin/myt_pay
/application/library/Ku/Thumb/Gif/Std/Frame.php
UTF-8
3,021
2.5625
3
[]
no_license
<?php namespace Ku\Thumb\Gif\Std; class Frame { public $offestX = null; public $offestY = null; public $imageW = null; public $imageH = null; public $localCt = null; public $tbiData = null; protected $_data = null; /** * pow(2, n), 0 < n < 12 * @var array */ p...
true
67520c50cf13df5d54f578d0da18749a99f6ca56
PHP
laravel-restive/restive-sdk
/src/PipelineActions/JoinClauseBuilder.php
UTF-8
739
2.609375
3
[]
no_license
<?php namespace RestiveSDk\PipelineActions; use League\Pipeline\PipelineBuilder; use League\Pipeline\StageInterface; class JoinClauseBuilder implements StageInterface { public function __invoke($payload) { $orderFragments = $payload->getOrderedFragments(); if (!isset($orderFragments['joins'])...
true
02a0c4cac80dc42820261e21992dc7cfb6166a74
PHP
sanuim/php-ze-szkoly
/sprawdzenie_dlugosci_linii.php
UTF-8
191
2.5625
3
[]
no_license
<?php $tekst1="Klasy technikum maja najwiecej zajęć w szkole"; echo "Wypisanie zdania: " .$tekst1."<br><br>"; $dlugosc=strlen($tekst1); echo "Długość ciągu znaków wynosi ".$dlugosc; ?>
true
96114d78e855fa317874e9d5c5fe9fef5f314b46
PHP
zdewd93/asgn08
/step09-conditionals/index.view.php
UTF-8
851
2.703125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> li { list-style-type: none; } </style> </head> <body> <h1>Task Of The Day</h1> <ul> <li><strong>Name: </strong> <?= $task['title']; ?></li> <li><strong>Due: </strong> <?= $task['due']; ?></...
true
6df1d98cdb11e7e688c042fa2197d44a6e6b8e3b
PHP
mazux/Slim-ETL
/tests/Loaders/LoaderJsonTest.php
UTF-8
1,743
2.671875
3
[]
no_license
<?php namespace Tests\Loaders; use ETL\Models\Loader; use Tests\TestCase; class LoaderJsonTest extends TestCase { protected $data = []; protected $headingFields = []; protected $Loader; public function setUp() { // Removing all outputed files foreach (glob(__DIR__.'/../data/*.js...
true
de1352da9dd5f16e4229117795df60aa25320a58
PHP
calmhandtitan/Resume-Ranker
/resumeranker/login.php
UTF-8
1,994
2.546875
3
[ "MIT" ]
permissive
<?php session_start(); include 'connect.inc.php'; if(!isset($_SESSION['SID'])) { $_SESSION['SID'] = 1; } else { $_SESSION['SID'] += 1; } if($_SESSION['sender_page'] == 'NULL') { ?> <script type="text/javascript"> alert('Wrong username or password! Please Try Again!!'); </scri...
true
872b46206f07640e2ed12986ba8a3209b037ff10
PHP
Itiho/OpenDojo
/app/application/models/Turma_model.php
UTF-8
1,578
2.65625
3
[]
no_license
<?php /* * * ------------------------------------------------------- * CLASSNAME: Turma_Model * FOR MYSQL TABLE: Turma * FOR MYSQL DB: OpenDojo * ------------------------------------------------------- */ class Turma_Model extends MY_Model { var $idTurma; // KEY ATTR. WITH AUTOINCREMENT v...
true
8cf5cffc03a94711c38b92ff4827364a71ff127c
PHP
ndegwamartin/onachallenge
/test.php
UTF-8
3,429
3.140625
3
[]
no_license
<?php require_once("WaterPointsDataProcessor.php"); //Testing the class $wp = new WaterPointsDataProcessor(); //testing echo "Testing Output <br/><br/>"; assertNull($wp->dataUrl,"Data URL is unset/null before Calling Calculate");echo "<br/>"; assertTrue($wp->totalFunctionalWaterPointsAll == 0,"Total functional water...
true
889beddd49ce6544e3d9ae1626d60f870462d51d
PHP
dayelu/phpstudy
/else/sendValue.php
UTF-8
965
3.8125
4
[]
no_license
<?php function test(&$arg){ $arg = 200; //在函数中改变参数$a的值为200 } // $var = 100; // test($var); // var_dump($var); function more_args() { for ($i=0; $i < func_num_args() ; $i++) { echo "第".$i."个参数是".func_get_arg($i)."\n"; } } // more_args(1,"eq","wo","zhencahao","hhehh"); function filter($fun){ ...
true
fa1a69df652a06cc512ecb0c4946b604c2fb9ae7
PHP
alimslimani/IRIS_M2_DEV
/src/main/TP1-Intro Jquery&PHP/PHP/indexV2.php
UTF-8
1,492
2.6875
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>M2INFO_DEV_TP1_V2_PHP</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" media="screen"/> <script src="../JS/functi...
true
3238d4175a6f5d56424f086d2765a04ac28186d0
PHP
allanbzr/SmPlaces
/app/Http/Resources/OrderProductResource.php
UTF-8
1,100
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class OrderProductResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArray($request) {...
true
503d2d25e9ad2f58246cea76c4a9c239b0c441ba
PHP
Astraller/test2
/App/Model/EntityModel.php
UTF-8
887
2.890625
3
[]
no_license
<?php namespace App\Model; use App\Interfaces\EntityModelInterface; use App\System\BaseModel; /** * Class EntityModel * @package App\Model */ abstract class EntityModel extends BaseModel implements EntityModelInterface { /** * @return array */ public function getAllRecords(): array { ...
true
050c65c222ad643ebba82aa21e9a14cb8d8227da
PHP
waleedhalaby/BONDA_ADMIN
/Pages/PagesPHP/ProductFeaturesPHP/GetProductFeatures.php
UTF-8
705
2.515625
3
[]
no_license
<?php require('../../../Handlers/DBCONNECT.php'); session_start(); $sql = "SELECT PC.ID, PC.FEATURE, DT.TYPE, PC.IS_ACTIVE FROM PRODUCT_FEATURES PC INNER JOIN DATA_TYPES DT ON PC.DATA_TYPE_ID = DT.ID WHERE PC.IS_ACTIVE = 1"; $result = mysqli_query($con,$sql); $rows = mysqli_num_rows($re...
true
4a38c88ae271657d63e46f9f757ceb3ef1d741b7
PHP
mpilleux/solicitud_oc
/application/models/Orden_compra_model.php
UTF-8
1,130
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Orden_compra_model extends CI_Model { function __construct(){ // Call the Model constructor parent::__construct(); $this->load->database(); } private function convertDate($date) { // EN-Date to GE-Date if (strstr($date, "-") || strstr($date, "/")) { $date = preg_split("/[\/]|[-...
true
30e821284f5c552044d4b851a6768381d7cc251b
PHP
hnesk/Org.Gucken.Events
/Classes/Org/Gucken/Events/Domain/Model/ExternalLocationIdentifierFactory.php
UTF-8
3,198
2.703125
3
[]
no_license
<?php namespace Org\Gucken\Events\Domain\Model; /* * * This script belongs to the Flow package "Org.Gucken.Events". * * * * It is free software; you can redistribute it and/or modify it under * * the terms of the GNU General Publi...
true
f3466588286a67bc6778bbed0ad1e18dc555798e
PHP
francescotrucchia/broadway-extensions
/src/BroadwayExtensions/CommandHandling/CommandBuilder.php
UTF-8
1,845
2.796875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the francescotrucchia/broadway-extensions package. * * (c) Francesco Trucchia <francesco@trucchia.it> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace BroadwayExtensions\CommandHandling; ...
true
b7a2e0cbcf2d750b31d720ed587a4853291a6b26
PHP
openstate/HNS.dev
/fo/formgen/formgen/core/ErrorMsg.class.php
UTF-8
2,694
2.78125
3
[]
no_license
<?php class ErrorMsg { protected $start, $length; protected $name = false; protected $uniqueName = ''; protected $checks = array(); protected $tplVariation = ''; protected $subId = 0; protected static $autoName = 0; public function __construct($start, $length, $name = null) { $this->start = ...
true
ab51f6c2852f384b2784b4d2c30124d40bf41012
PHP
calvintam236/dancedio
/application/models/Instructions.php
UTF-8
2,427
2.515625
3
[ "MIT" ]
permissive
<?php /** * CodeIgniter * * An open source application development framework for PHP 5.2.4 or newer * * NOTICE OF LICENSE * * Licensed under the Academic Free License version 3.0 * * This source file is subject to the Academic Free License (AFL 3.0) that is * bundled with this package in the files license_afl...
true
0c197ac1783fb21d22df70888334b03e95f80288
PHP
amanat-juwel/leetcode-problem-solving
/Robot Return to Origin.php
UTF-8
883
3.640625
4
[]
no_license
<?php //https://leetcode.com/problems/two-sum/submissions/ class Solution { /** * @param String $moves * @return Boolean */ function judgeCircle($moves) { $strLen = strLen($moves); $flag = 0; $R = [1,0]; $U = [0,1]; $L = [-1,0]; $D = [0,-1]; $x = 0...
true
6887a927d1123e3499ce11e87d10f661bc3f4e4f
PHP
O-NETHOSTING/ips-community-suite-4.4.3
/system/Content/Reactable.php
UTF-8
17,882
2.65625
3
[]
no_license
<?php /** * @brief Reaction Trait * @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a> * @copyright (c) Invision Power Services, Inc. * @license https://www.invisioncommunity.com/legal/standards/ * @package Invision Community * @since 10 Nov 2016 */ namespace IPS\Content;...
true
631416d6efcdf4dda9d5018e1b405ba1141a32d8
PHP
00ffffcoder/002-Studying_Notes
/003-Ajax_Learning/001-PHP-BASE.php
UTF-8
1,717
4.03125
4
[]
no_license
<?php // 1.JS中有两种注释, 【php 注释跟其一样】 // 1.1 单行注释:// // 1.2 多行注释:/**/ // 2.JS中如何定义变量? //var num = 10; //-----【php中定义变量】-----: $num = 10; // 3.JS中如何打印内容? //console.log(); // 注意点: 后端编写的代码不能直接运行, 只能放到服务器对应的文件夹下, 通过服务器运行 // 如何通过服务器运行: 通过ip地址找到服务器对应的文件夹, 然后再找到对应的文件运行 //-----【php中打印】-----: //打印普通类型: echo $num; //打印数组、对象:prin...
true
ef0cbc7277698dffb0fc4c5dd97acb1d3d342297
PHP
markhenry29/SiteInternet1
/connexion.php
UTF-8
1,937
2.6875
3
[]
no_license
<?php session_start(); include('inc/functions.inc.php'); $bdd = bdd_connexion(); if(isset($_POST['formconnect'])) { $mail = htmlspecialchars($_POST['mailconnect']); $mdp = sha1($_POST['mdpconnect']); if(!empty($mail) AND !empty($mdp)) { $requser = $bdd->prepare("SELECT * FROM membre ...
true
5b827af76cb74669fab3f3cb70afe19ded711bb1
PHP
sobekbr/pyrocms
/system/pyrocms/modules/users/controllers/users.php
UTF-8
20,264
2.9375
3
[ "Apache-2.0" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * User controller for the users module (frontend) * * @author Phil Sturgeon - PyroCMS Dev Team * @package PyroCMS * @subpackage Users module * @category Modules */ class Users extends Public_Controller { /** * The ID of the user ...
true
99d045f7903a97e4cca3c04d400f4a841ba40441
PHP
ArtiomL/f5-app-sec
/artifacts/_h5ai/private/php/core/class-session.php
UTF-8
485
3.015625
3
[ "MIT", "CC-BY-4.0" ]
permissive
<?php class Session { private static $KEY_PREFIX = '__H5AI__'; private $store; public function __construct(&$store) { $this->store = &$store; } public function set($key, $value) { $key = Session::$KEY_PREFIX . $key; $this->store[$key] = $value; } public function g...
true
07f44feb9dd52e2efead0aa78f179eb67a432205
PHP
CPNV-ES/Joutes-2020
/app/Models/Event.php
UTF-8
3,793
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Models; use App\Enums\EventState; use App\Models\User; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; use App\Models\IntranetConnection; class Event extends Model { public $timestamps = false; public $percentageParticipation = 0; //Get event tournaments ...
true
d6b548cf82470cd13f2dd416b6a33c0c3bf56f12
PHP
bobanum/aliste
/phpdb/example/Database.php
UTF-8
535
2.8125
3
[]
no_license
<?php namespace Example; class Database extends \Database\Database { static public $dbPath = "../data"; static public $dbFileName = "example.sqlite"; /** * Constructor * @param string $dbfile The (sub)path to the database file. */ function __construct() { parent::__construct("example.sqlite"); } function...
true
f84018dc9914e2ec838f2be0dd56b9cab9e0f02b
PHP
kr85/mpp
/app/MPP/Repository/AbstractEloquentRepository.php
UTF-8
4,701
3.015625
3
[]
no_license
<?php namespace MPP\Repository; use Illuminate\Database\Eloquent\Model; use StdClass; /** * Class AbstractEloquentRepository * * @package MPP\Repository */ abstract class AbstractEloquentRepository implements Repository, Crudable, Panigable { /** * Model. * * @var \Illuminate\Database\Eloquent\Mode...
true
e4b6bae73ebf3ed780b827dc689a24b3f8d4110f
PHP
mgaare/tourney-signup
/admin/maps.php
UTF-8
1,381
2.5625
3
[]
no_license
<?php require_once('../lib/base.php'); function maps() { if (isset($_POST['mode']) && !(empty($_POST['mode']))) { maps_process(); } else { maps_form(); } } function maps_form($message = false) { $mode = new Mode(); $map = new Map(); $template = new AdminTemplate(); $templateSnippet = new TemplateSnippet(); ...
true
83dd38ac3ca571569242ca67b6df01256028bdf9
PHP
AyrtonPereira1996/php-exercices
/_exercicio18/script.php
UTF-8
143
3.53125
4
[]
no_license
<?php function somaVarios($x, $y, $z) { return ($x + $y + $z); } $somaResultado = somaVarios(10, 20, 20); echo $somaResultado; ?>
true
ae86955c3e94dbf390978bc6a67260abbdc2e2de
PHP
RainyRuRu/slackHookManager
/src/Job/Plugin/Message/Plugin.php
UTF-8
1,620
2.671875
3
[]
no_license
<?php namespace LittleBot\Job\Plugin\Message; use LittleBot\Job\Plugin\AbstractPlugin; use LittleBot\Job\SlackHook; use LittleBot\Data\DataManager; use LittleBot\Config; class Plugin extends AbstractPlugin { protected $bot; public function __construct() { parent::__construct(); } public ...
true
c3eafa3133381825d0a1f2c1e28b86bf63ea2f37
PHP
KartikeyaMalimath/parking
/function/register.php
UTF-8
2,636
2.625
3
[]
no_license
<?php //function to register new users session_start(); include ('../include/db.php'); //echo "test"; if(isset($_POST['submit'])) { //echo "submit"; if(empty($_POST["username"]) || empty($_POST["password"])) { echo '<script>alert("Both Fields are required")</script>'; ...
true
10c600654d0829c1aab24d682d13c6a431e231ae
PHP
kanishkaa24/GalleryTube
/Config/Functions.php
UTF-8
4,653
2.78125
3
[]
no_license
<?php class Functions{ private $DBHOST = 'localhost'; private $DBUSER = 'root'; private $DBPASS = ''; private $DBNAME = 'gallery2'; public $conn; public function __construct(){ try{ $this->conn = mysqli_connect($this->DBHOST, $this->DBUSER, $this->DBPASS, $this->DBNAME); ...
true
b677914f50fad6d5baceb89e614e6fca9f334d33
PHP
javiergarval/wordpress-lms
/connection.php
UTF-8
958
3.03125
3
[]
no_license
<?php $servername = "localhost"; $username = "_"; $password = "_"; $dbname = "_"; try { $conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password); // set the PDO error mode to exception $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // prepare sql and bind paramet...
true
e53093125d20e11d6ad5e893e9ce364a2db8e219
PHP
Siqi-Shan/303_Workspace
/Assignments/Assignment_10/details.php
UTF-8
3,979
2.59375
3
[]
no_license
<?php if (!isset($_GET["dvd_id"]) || empty($_GET["dvd_id"])) { $error = "Invalid DVD"; } else { $host = "303.itpwebdev.com"; $username = "kshan_db_user"; $password = "uscitp2021!"; $db = "kshan_dvd_db"; $mysqli = new mysqli($host, $username, $password, $db); if ($mysqli->connect_errno) { echo $mys...
true
885a0b32acf4f2ac14ba2ee20c741fee62ceece3
PHP
Hachitus/saastonorsu
/libraries/errorHandling/showSource.php
UTF-8
2,413
3
3
[ "MIT" ]
permissive
<?php /** * @project mygosuLib * @package ErrorHandler * @version 2.0.0 * @license BSD * @copyright (c) 2003,2004 Cezary Tomczak * @link http://gosu.pl/software/mygosulib.html */ $file = @$_GET['file']; $line = @$_GET['line']; $prev = @$_GET['prev'] ? $_GET['prev'] : 10; $next = @$_GET['next'] ? $_GET['next'] : 10; ...
true
0a7f80f6b5a2683ec03bf9c1e28fdec69bd8fe05
PHP
aymmuazu/phpprocedual
/Associative Arrays.php
UTF-8
250
3.625
4
[]
no_license
<?php //associative arrays allows you to change keys $food = array('Pasta'=>300, 'Pizza'=>1000, 'Salad'=>150); print_r($food);// output = Array ( [Pasta] => 300 [Pizza] => 1000 [Salad] => 150 ) echo '<br/>'; echo $food['Pasta']; // output = 300 ?>
true
d275f3b67c0c6ab1e910ac9c15d6b2d2032212f5
PHP
CelClare/facetagram2
/src/Entity/Product.php
UTF-8
3,019
2.875
3
[]
no_license
<?php //src/Entity/Article.php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; //ORM vaut Doctrine\ORM\Mapping use Doctrine\Common\Collections\ArrayCollection; /** * @ORM\Entity() * @ORM\Table(name="product") * */ class Product { /** * @ORM\Id() * @ORM\GeneratedValue(strategy="AUTO") * @ORM\Col...
true
ec39ddfa7b279a7e1849db1e327af6675f9c2893
PHP
radim-hossain94/Cars-Buying-and-Selling-Web-Applicatin
/tests/app/Http/Controllers/carController.php
UTF-8
1,034
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Cars; use Illuminate\Support\Facades\DB; class carController extends Controller { // public function sell(Request $request){ return view('userhome.sell'); } public function sellPost(Request $request){ ...
true
906fca14c3cd1ef9c514a82a95805562121ce7c4
PHP
roulendz/myfinanc
/database/migrations/2015_06_05_215202_create_wallets_table.php
UTF-8
707
2.640625
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateWalletsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('wallets', function(Blueprint $table) { $ta...
true
796d537a24423935c883159242c246393218fda3
PHP
exprezzo/marinamvc
/database.php
UTF-8
743
2.890625
3
[]
no_license
<?php class Database{ private static $instancia; private function __construct(){ global $DB_CONFIG; try { $db = @new PDO('mysql:host='.$DB_CONFIG['DB_SERVER'].';dbname='.$DB_CONFIG{'DB_NAME'}.';charset=UTF8', $DB_CONFIG['DB_USER'], $DB_CONFIG['DB_PASS'],array( PDO::ATTR_PERSISTENT => false )); ...
true
c1197ed9d5270759a905e41501090a9b7d19bd03
PHP
ilamkar/Ecommerce
/functions/functions.php
UTF-8
1,754
2.5625
3
[]
no_license
<?php include ('includes/database.php'); // getting the categories function getCategories(){ global $connect; $run_categories=mysqli_query($connect,"SELECT * FROM categories"); while($row_categories=mysqli_fetch_array($run_categories)){ $category_id=$row_categories['category_id']; $category_ti...
true
4bdd2a61f56334fb0b40c1ceeb3d56c6e37f836d
PHP
lqdung1992/ebook
/app/Http/Controllers/LoginController.php
UTF-8
4,549
2.828125
3
[ "MIT" ]
permissive
<?php /** * Class cho login và dk api */ namespace App\Http\Controllers; use App\User; use Carbon\Carbon; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Validator; use Lcobucci\JWT\Parser; /** * Undocumented class */ class LoginController extends Controller { ...
true
a77557ad1891bcd7fa52aecb27ccc5fe5524df4d
PHP
PorteroGCooper/zoop-helios
/pdf/PdfTextBox.php
UTF-8
8,104
2.953125
3
[ "ZPL-2.1" ]
permissive
<?php /** * @package pdf */ /** * @package pdf */ class PdfTextBox extends PdfObject { // most of these functions are just placeholders, waiting to be overriden in the classes that inherit from this object // this is mostly a template/interface so we know what to implement.... var $textSize; var $textAngle = 0; va...
true
6967948432be42c6fcfa392bb649deff5a0d606d
PHP
BackupTheBerlios/oos-svn
/tags/myoos_2.1.4/shop/includes/lib/oembed/YouTubeProvider.class.php
UTF-8
4,025
2.625
3
[]
no_license
<?php /* * PHP OEmbed provider/proxy - for details, visit * * http://code.google.com/p/php-oembed/ * * Copyright(C) by Adam Nemeth. Licensed under New BSD license. * * I would love to hear every feedback on aadaam at googlesmailservice * */ class YouTubeProvider extends EmbedProvider { public function match...
true
0879119f08b0cd8a9a98e37bdafb1ba76a104b54
PHP
abdrod/Avances-del-Proyecto
/app/Http/Controllers/rolesController.php
UTF-8
2,655
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Session; Use Redirect; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use App\Models\roles; class rolesController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public funct...
true
13ac686e99852872f09534578321f4191a803974
PHP
GruppoMeta/Movio
/src/core/classes/org/glizycms/speakingUrl/AbstractUrlResolver.php
UTF-8
1,162
2.65625
3
[ "BSD-3-Clause", "LGPL-2.1-or-later", "GPL-1.0-or-later", "LGPL-2.0-or-later", "LGPL-2.1-only", "MIT" ]
permissive
<?php class org_glizycms_speakingUrl_AbstractUrlResolver { protected $application; protected $languageId; protected $editLanguageId; protected $type; protected $protocol; public function __construct() { $this->application = org_glizy_ObjectValues::get('org.glizy', 'application'); ...
true
e7a3826a0f677a867ad564e235e7eb638a0d8a0a
PHP
harjot4995/Practice
/continue.php
UTF-8
581
2.65625
3
[]
no_license
<?php session_start(); if(isset($_SESSION['username'])) { $username=$_SESSION['username']; $password=$_SESSION['password']; $forename=$_SESSION['forename']; $surname=$_SESSION['surname']; destroy_session_and_data(); echo "Welcome back $forename.<br> Your full name is $forename$surname.<br>your username is...
true
d7f5407cf9eebe63c40f83d5c9c292f6c01cf3fb
PHP
Annalytics/OpenSourceSoup
/www/index.php
UTF-8
1,112
2.5625
3
[]
no_license
<?php require '../vendor/autoload.php'; use Illuminate\Database\Capsule\Manager as Capsule; use Soup\Soup as Soup; $twigView = new \Slim\Views\Twig(); $app = new \Slim\Slim(array( 'view' => $twigView, 'templates.path' => '../templates/', 'mode' => 'production' )); $capsule = new Capsule; $app->config(array( ...
true
a5ca149862c09e693004cb764b5055709cbf641e
PHP
helloalpaca/Dodeok
/server/studentdelete.php
UTF-8
1,173
2.78125
3
[]
no_license
<?php $mysql_hostname = 'localhost'; $mysql_username = 'root'; $mysql_password = '123456'; $mysql_database = 'dodeok'; $connect = mysqli_connect($mysql_hostname,$mysql_username,$mysql_password,$mysql_database); mysqli_select_db($connect,$mysql_database) or die('DB선택 실패'); $nick= isset($_POST['nick']) ...
true
478461e655d81ca7dc0c27f0125cb4dddbe4cd53
PHP
Cvalmy1/mindbody-bundle
/Service/Soap/Response/ResponseHelper.php
UTF-8
3,655
2.671875
3
[]
no_license
<?php namespace Despark\MindbodyBundle\Service\Soap\Response; use Despark\MindbodyBundle\Exceptions\ResponseException; use Despark\MindbodyBundle\Model\StaffInterface; /** * Class ResponseHelper */ class ResponseHelper { /** * @var array */ protected $availableDateTimeFormats = [ 'Y-m-d\T...
true
8ac3555b906f81ef055a50c00a652d062fcdaae7
PHP
whymaster/GoodweUdpReader
/GoodWeInfo.php
UTF-8
1,096
3.078125
3
[]
no_license
<?php namespace GoodWe; class GoodWeInfo { protected $serialNumber; protected $inverterType; protected $dsp1version; protected $dsp2version; protected $armVersion; public function __construct($serialReply) { GoodWeValidator::validate($serialReply); $this->serialReply = $s...
true
7e2ffde3ee86246fddc3b184929d5df7f55c56de
PHP
lamzin-andrey/mh.loc
/www/test/PdfCreator/flashemu/Sprite.php
UTF-8
1,037
3.1875
3
[]
no_license
<?php require_once dirname(__FILE__) . '/Graphics.php'; class Sprite { /** @property Graphics */ public $graphics;//TODO it /** @property int x */ public $x; /** @property int y */ public $y; /** @property int width */ public $width; /** @property int height */ public $height; ...
true
eadb374b10342e46c27c940992bbbc5012489f67
PHP
TanZng/patrones-combinados
/4-Patron/php/GestorDeSkin.php
UTF-8
591
2.765625
3
[ "MIT" ]
permissive
<?php class GestorDeSkin { private $skinJugador; function __construct() { $this->skinJugador = NULL; } function getSkinJugador() { return $skinJugador; } function setSkinJugador($nSkin) { $this->skinJugador = $nSkin; } function mostrarSkin() { $this->skinJugador->mostrarSkin(...
true
c73267bec69dd581faed2566d43c373f07db50a3
PHP
crossan007/SwitchBot
/src/api/polldata.php
UTF-8
997
2.671875
3
[]
no_license
<?php include "configfile.php" $conn = new mysqli($MySQLServername, $MySQLUsername, $MySQLPassword, $MySQLDBname); $id = intval($_GET['id']); $highestID=0; $JSON="{"; if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "SELECT * FROM NotifyQueue where id >= ".$id." ORDE...
true
1c6fdb86bc5dd599eaeff1c5adb577e37ed0886e
PHP
AojiaoZero/ThinkSNS-4
/install/install_function.php
UTF-8
4,608
2.671875
3
[ "BSD-3-Clause" ]
permissive
<?php if (!defined('THINKSNS_INSTALL')) { exit ('Access Denied'); } function str_parcate($cate, &$str_parcate, $startID = 0) { if (!$cate[$startID]['cup']) return; foreach ($cate as $key => $value) { if ($value['cup'] == $startID) { $str_parcate .= $value['cid'].','; str_parcate($cate, $str_parcate, $valu...
true
7630e6d3c680243aafa8e7552cde04fc37645f06
PHP
willian95/wikiFront
/app/Http/Requests/UserRegisterInstitutionRequest.php
UTF-8
1,628
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class UserRegisterInstitutionRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /...
true
65bdec6f20807c12f39fd643466ae83b2fd74686
PHP
beberlei/hdrhistogram-php
/tests/hdrhistogram_001.phpt
UTF-8
833
2.828125
3
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
--TEST-- hdrhistogram: Basic Functionality --FILE-- <?php $hdr = hdr_init(1, 360000, 3); var_dump($hdr); echo "Memory: " . hdr_get_memory_size($hdr) . "\n"; // Record Values if (hdr_record_value($hdr, 1)) { echo "Recorded\n"; } echo "StdDev: " . number_format(hdr_stddev($hdr), 2) . "\n"; hdr_record_value($hdr, 2)...
true
a8812377f157f83e7487c8f53231ed841ae5b8e8
PHP
fixfoxi90/lemonado
/core/Lemonado/Application.php
UTF-8
1,231
2.65625
3
[ "Apache-2.0" ]
permissive
<?php namespace Lemonado; use Lemonado\Server\Dispatcher; use Lemonado\Server\Request; use Lemonado\Server\Router; use Lemonado\Services\Config\ConfigService; use Lemonado\Services\Manager; use Lemonado\Session\Session; /** * Class Application * * @author Felix Steidler * @copyright felix-steidler.de * @package...
true
af946c242653989f953e44d4db64106dc1ee59b7
PHP
nateobray/IPP
/src/types/Boolean.php
UTF-8
432
2.5625
3
[ "MIT" ]
permissive
<?php namespace obray\ipp\types; class Boolean extends \obray\ipp\types\basic\SignedByte { protected $valueTag = 0x22; public function getValue() { return ($this->value==0)?false:true; } public function __toString() { return ($this->value==0)?'false':'true'; } #[\Retu...
true
39e6970735492868ad48dee64ae74ecf9f9d1124
PHP
educmedia/elis.base
/core/elis/core/lib/filtering/lib.php
UTF-8
12,265
2.625
3
[]
no_license
<?php //$Id$ require_once($CFG->libdir.'/formslib.php'); /** * User filtering wrapper class. */ class generalized_filtering { var $_fields; var $_addform; var $_activeform; var $_id; /** * Contructor * @param array array of visible user fields * @param string base url used for su...
true
f41daac1b370ba692e1af8b2983492c250f2cc21
PHP
DizzyMissLizzy/be.dizzymisslizzy.pdfletterevents
/CRM/Pdfletterevents/SelectValuesParticipantTokenSet.php
UTF-8
1,148
2.609375
3
[]
no_license
<?php /** * This class retrieves participant related tokens from CRM_Core_SelectValues. * * I don't like the static classes in CiviCRM, I want interfaces and implementations that can nicely be mocked * in unit tests. (Which I don't do yet, but hey, maybe sometimes :-)) * * I ended up with these ugly long class n...
true
39e9eb86ac4065628b0fbd22d702d64ae6990f78
PHP
xiayiyongphper/pintuan
/cms/common/tools/Weixin.php
UTF-8
2,352
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * 微信小程序的公用方法 * Created by PhpStorm. * User: Administrator * Date: 2018/6/26 * Time: 14:44 */ namespace common\tools; use common\tools\WeChatBaseApi; use common\tools\Ftp; class Weixin { /** * 生成二维码(小程序码), 返回二维码图片link * * 1.调起微信api获取小程序码(返回图片数据流) * 2.保存小程序码为本地图片 * 3.小程序码本地...
true
2624fb86411de49f1f3263476eacd22e03031aaa
PHP
iirivero/APP-Facturacion
/TFG_Rest/model/Datos.php
UTF-8
1,972
2.984375
3
[]
no_license
<?php require_once(__DIR__."/../core/ValidationException.php"); // Modelo de la entidad datos de la BD class Datos_Model implements JsonSerializable{ private $id; private $nombre; private $direccion; private $ciudad; private $codigo_postal; private $telefono; private $nif; private $email; // Constructor de d...
true
c6910d06a34d062a5ba34946bb53759992852b4c
PHP
kunjabijukchhe/PHP
/Individual Project/indexOne.php
UTF-8
1,938
2.828125
3
[]
no_license
<!doctype html> <html> <title>Individual Project</title> <head></head> <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/> <body> <?php $lang=isset($_GET['lang'])?$_GET['lang']:"e"; function lang($key) { $translation= array( "Name" => "नाम", "Email"...
true
2af3894c1b536317d5a500223b08c6b237207269
PHP
zobair11/E-commerce
/admin/add_sub_category.php
UTF-8
4,225
2.671875
3
[ "MIT" ]
permissive
<?php require_once('includes/header.php'); ?> <div id="wrapper"> <!-- Navigation --> <?php require_once('includes/nav.php'); ?> <div id="page-wrapper"> <div class="row"> <div class="col-lg-12"> <h1 class="page-header">Add a new Sub subegory</h1...
true
89108d294db2a07b6ee32d4897d29b2ce58f8dcf
PHP
rahulyhg/gadis.my
/web plugins/mobiconnector/includes/function/addposttypetorest/class-mobiconnector-posttype-core.php
UTF-8
5,798
2.546875
3
[]
no_license
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * MobiConnector Post Type Core * * Add data post type to Rest Api * * @class MobiConnector_PostType_Core */ class BAMobile_PostType_Core{ /** * MobiConnector Post Type Core construct */ public funct...
true
11115b2d7d9fcec1645e2027bf4315a9786e1935
PHP
lhechris/assotstd
/core/PicoFeed-old/Logging.php
UTF-8
205
2.78125
3
[]
no_license
<?php namespace PicoFeed; class Logging { public static $messages = array(); public static function log($message) { self::$messages[] = '['.date('Y-m-d H:i:s').'] '.$message; } }
true
e8730bbff9807528356bfde5dfff3c8aff89f0b6
PHP
kas-test/framework
/library/lib/SmartyMachine.php
UTF-8
1,186
2.78125
3
[]
no_license
<?php /** * This class starts the Smary machine to be able in every class * * @copyright KASalgado 2010 - 2012 * @author Kleber Salgado * @version 1.1 */ class SmartyMachine { /** * Execute the Smarty Framework * @return var $smartyInst */ public function loadSmarty() ...
true
a0a16138708cffe5a4421c6deced92caa4d6a1c9
PHP
Ocramius/php-analyzer
/src/Scrutinizer/PhpAnalyzer/DataFlow/VariableReachability/DefinitionLattice.php
UTF-8
3,551
2.75
3
[ "Apache-2.0" ]
permissive
<?php /* * Copyright 2013 Johannes M. Schmitt <johannes@scrutinizer-ci.com> * * 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 * *...
true
175a2e7e49827555e9b8144676b33c43e48ddf8d
PHP
carlosedcr/mercado-php
/App/Model/Shopping/CartItem.php
UTF-8
713
3.171875
3
[]
no_license
<?php namespace App\Model\Shopping; use App\Model\Product\Product; class CartItem{ private $product; private $quantity; public function __construct(Product $product, $quantity){ $this->product = $product; $this->quantity = (int)$quantity; } public function getProduct(){ ...
true
4c16cf28dd3f09c9d54edcc824c2b29b40baac1b
PHP
jbroadway/analog
/lib/Analog/Handler/WPMail.php
UTF-8
1,275
3.0625
3
[ "MIT" ]
permissive
<?php namespace Analog\Handler; /** * Send the log message to the specified email address using WordPress wp_mail. * * You can also specify a template in your theme to style how the email looks like. * * Usage: * * Analog::handler (Analog\Handler\WPMail::init ( * 'you@example.com', // to * ...
true
2a2c5a53a952fb8d6b41d6549665c7114fec69f6
PHP
joshuajlai/appfuel
/package/Appfuel/Http/HttpHeaderListInterface.php
UTF-8
964
2.890625
3
[ "Apache-2.0" ]
permissive
<?php /** * Appfuel * PHP 5.3+ object oriented MVC framework supporting domain driven design. * * @package Appfuel * @author Robert Scott-Buccleuch <rsb.code@gmail.com.com> * @copyright 2009-2010 Robert Scott-Buccleuch <rsb.code@gmail.com> * @license http://www.apache.org/licenses/LICENSE-2.0 */ na...
true
48f40cadfb95764dbaa75a7a9171399715dfda33
PHP
pramodydv/SumanNursery
/submit.php
UTF-8
1,957
2.546875
3
[]
no_license
<?php require 'phpmailer/PHPMailerAutoload.php'; if(isset($_POST['submit'])) { $email = 'xcellencebpo@gmail.com'; $password = 'New!prazal2016'; $to_id = 'yadav.pramod@jesuisweb.solutions'; $name = $_POST['name']; $email_add = $_POST['email']; $cont_no...
true
e1b6a1f8ea7fa6c7b28982c2c7b9727eea90be25
PHP
doctrine/rst-parser
/lib/Parser/TableSeparatorLineConfig.php
UTF-8
2,054
3.140625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Doctrine\RST\Parser; use Doctrine\RST\Nodes\TableNode; use InvalidArgumentException; use function in_array; use function sprintf; final class TableSeparatorLineConfig { /** @var bool */ private $isHeader; /** @var string */ private $tableType; /** @var...
true
d980d8203a284ce3b8895d9e6a28b07d2c57e998
PHP
Sematre/test
/src/ExampleCode.php
UTF-8
169
2.53125
3
[]
no_license
<html> <head></head> <body> <?php echo("Hello"); // echo("Hello World"); echo("New Line"); // Written/Commited/Pushed in Eclipse ?> </body> </html>
true