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
e91398b1a7548be60bb927c20860fd6a846fa678
PHP
sahilanand14/Sprout
/functions/functions.php
UTF-8
11,167
2.609375
3
[]
no_license
<?php // establishing database connection $db=mysqli_connect("localhost","root","","myshop"); // function for getting ip address function getRealIpAddr() { if (!empty($_SERVER["HTTP_CLIENT_IP"])) { //check for ip from share internet $ip = $_SERVER["HTTP_CLIENT_IP"]; } elseif (!empty($_SERVER["HTTP_X_...
true
6cfd1de142bd80bd9197e771fee96ecff40fb200
PHP
wolganens/Computer-Science
/Web-Programming/Exercises/5.3 oo/Models/Cpf.php
UTF-8
769
3.296875
3
[ "MIT" ]
permissive
<?php Class Cpf { public static function validate($cpf) { $cpf = preg_replace('/[.-]/', '', $cpf); $i = 0; $j = 10; $aux = 0; if (strlen($cpf) != 11) { throw new Exception("Cpf deve ter 11 caracteres", 1); } for ($i = 0 ; $i < 9 ; $i++) { $aux += $cpf[$i] * $j; --$j; } $aux ...
true
432b2ccda589bc7b27bd775079315aab58e4d161
PHP
hikarisolve/Internet_Forum_Fix
/main.php
UTF-8
633
2.640625
3
[]
no_license
<?php session_start(); ?> <html> <head> <title>Internet Forum</title> </head> <body> <a href="post.php">Post</a> <a href="passchange.php">Change password</a> <a href="logout.php">Logout</a><br><br> <?php $db = new PDO("mysql:host=localhost;dbname=Internet_Forum","name","passw...
true
8e945a3167a6ab669b348f70465565880ee0236c
PHP
crudbooster/superframework
/system/App/UtilFirebase/FCM.php
UTF-8
2,580
2.765625
3
[ "MIT" ]
permissive
<?php namespace System\App\UtilFirebase; class FCM { private $ios_reg_id = []; private $android_reg_id = []; private $data = []; private $title; private $message; /** * @param $title */ public function title($title) { $this->title = $title; } /** * @p...
true
339402b5276a0b624e6ed6fac5b19f75d8eafe46
PHP
AndrewX192/localbot
/library/LocalCoast/LocalBot/EventHandler/ConditionInterface.php
UTF-8
581
2.703125
3
[]
no_license
<?php /** * LocalCoast LocalBot * * @category LocalCoast * @package LocalCoast * @author Andrew Sorensen <andrew@localcoast.net> * @license */ namespace LocalCoast\LocalBot\EventHandler; /** * LocalCoast LocalBot Condition Inteface * * @category LocalCoast * @package LocalCoast * @...
true
a398b60ddd7d928bde1323a615efd8b1e515697e
PHP
laravel/slack-notification-channel
/src/Slack/BlockKit/Blocks/ImageBlock.php
UTF-8
3,004
3.015625
3
[ "MIT" ]
permissive
<?php namespace Illuminate\Notifications\Slack\BlockKit\Blocks; use Illuminate\Notifications\Slack\BlockKit\Composites\PlainTextOnlyTextObject; use Illuminate\Notifications\Slack\Contracts\BlockContract; use InvalidArgumentException; use LogicException; class ImageBlock implements BlockContract { /** * A st...
true
a4509f47185829440daf787d0c201a7288e608ac
PHP
rnaga/PHP-TLS
/src/Handshake/HandshakeAbstract.php
UTF-8
2,128
2.8125
3
[ "MIT" ]
permissive
<?php namespace PTLS\Handshake; use PTLS\Core; use PTLS\ProtocolAbstract; use PTLS\Exceptions\TLSAlertException; use PTLS\Content\Alert; abstract class HandshakeAbstract extends ProtocolAbstract { protected $msgType; protected $core; function __construct(Core $core) { $this->core = $core...
true
208d2876d7a2ebafe3a76e57ee6fd3c4e2656cf0
PHP
Zaglov/affilipus
/inc/Admin/Taxonomy/imbafproperties.php
UTF-8
7,506
2.578125
3
[]
no_license
<?php namespace imbaa\Affilipus\Admin\Taxonomy; class imbafproperties{ var $property_types = null; function __construct(){ add_action( 'edited_imbafproperties', array($this,'imbaf_properties_save'), 10, 1 ); add_action( 'create_imbafproperties', array($this,'imbaf_properties_save'), 10,...
true
987e16db7c8ed9b7b4208d12e8655c32876377c3
PHP
mcwareham/TestRepos1
/phpHTML_2/checkAmbiguity.php
UTF-8
6,413
2.5625
3
[]
no_license
<html> <body> <?php // //DEFINE FUNCTIONS FIRST // function setDefaultAmbiguityMPLSessionVars() { $_SESSION['numMainQuestions'] =10; $_SESSION['numIter'] =10; $_SESSION['a1Start'] = $_GET['a1Initial']; if (isset($_GET['a1Increment'])){//increment mode for a1 $_SESSION['a1Segs']=$_GE...
true
692baae369aeac10a36f83a39b84cf2c0903277b
PHP
ColorRabbit/ColorGallery
/src/CalculateTime.php
UTF-8
1,270
3.125
3
[ "MIT" ]
permissive
<?php namespace ColorGallery; /** * Class CalculateTime * http://www.ab126.com/clock/2290.html 在线时间转换器 * * @package ColorRabbitHome\ColorClass */ class CalculateTime { /** * @var int */ private $startTime = 0; /** * @var int */ private $endTime = 0; /** * set star...
true
44cdb5fab38158d93c4abc74a0a211187051d131
PHP
ProjectUn1c0rn/Code
/src/Un1c0rn/BaseExploit.php
UTF-8
793
2.734375
3
[ "Unlicense" ]
permissive
<?php namespace Un1c0rn; class BaseExploit { var $ip = null; var $port = null; var $outputs = '\\Un1c0rn\\Workers\\Output\\Stdout'; public function __construct(Array $properties=array()){ foreach($properties as $key => $value){ $this->{$key} = $value; } } public function exploit() { if(is_null($this...
true
0c78f7ec4628d1cc9a7a998ff537a04a93558054
PHP
MarkoSebalj/Pets-app
/app/Http/Controllers/PetController.php
UTF-8
3,406
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Pet; use App\Models\Medical_Condition; use App\Models\User; use App\Models\Pet_Type; class PetController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ ...
true
b05773a1ba0fd998f1fb4d820e7b2b2d01a072db
PHP
thenickname/dev-guide-transform
/FileSystemUtil.php
UTF-8
1,281
3.25
3
[]
no_license
<?php class FileSystemUtil { const READ_ONLY = 'r'; const READ_WRITE = 'r+'; const WRITE_ONLY = 'w'; private function __construct() {} public static function isDir( $directoryPath ) { return is_dir( $directoryPath ); } public static function isDirEmpty( $directoryPath ) { $iterator = new Recu...
true
0359e6c706c1cad4ac68b403b6606b492c52ba41
PHP
tux-php/LivroPHPOO_DesignPattern
/classes/TCriteria.php
UTF-8
1,482
3.109375
3
[]
no_license
<?php class TCriteria extends TExpression { private $expresions; private $operators; private $properties; function __construct() { $this->expresions = array(); $this->properties = array(); } public function add(TExpression $expression, $operator = self::AND_OPERATOR) ...
true
9ee78a2f4486d2d6f2df7bd23b136ceebcdcd014
PHP
theruledemon/Omis
/Lesson4/DuringLesson/index.php
UTF-8
2,774
3.875
4
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>PHP_1</title> </head> <body> <h1>My first PHP page.</h1> <!-- comment --> <p>Comment</p> <?php // comment # comment /* Multi comment */ echo "lowercase"; // String EcHO " notlower"; echo "<h3>Heading 3</h3>"; echo -5...
true
62ae388f82d7402a8a88585210ee12196517e865
PHP
cha63506/rychecky
/models/Portfolio.class.php
UTF-8
6,209
2.8125
3
[]
no_license
<?php /** * @author Jakub Rychecký <jakub@rychecky.cz> * * @class Portfolio * @brief Objekt portfolia na webu. */ class Portfolio { /** * @brief ID záznamu * @var integer $row_id */ public $row_id; /** * @brief ID portfolia * @var integer $portfolio_id */ public $portfolio_id; ...
true
33e1be938cafaee61a8e7163257723979b6a4cf6
PHP
peerhyw/LeetCodeTest
/ces/maxSubstr.php
UTF-8
5,267
3.078125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: peer * Date: 18-11-12 * Time: 上午12:13 */ class Lrs{ function comlen($str,$i,$j){ $len = 0; while($i < strlen($str) && $j < strlen($str) && $str[$i] == $str[$j]){ $len++; $i++; $j++; } return $len; }...
true
8839c737e0f50f2ae1baf28d96e09507a12801b4
PHP
stagerightlabs/flashcards
/app/Concerns/UlidAttribute.php
UTF-8
1,131
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Concerns; use App\Facades\Ulid; use Illuminate\Database\Eloquent\Model; /** * Based on Rorecek\Ulid\HasUlid * https://github.com/rorecek/laravel-ulid/blob/master/src/HasUlid.php. */ trait UlidAttribute { protected static function boot() { parent::boot(); static::creati...
true
c6d54485d79e8b5cf97c9b139d2f91692de134bc
PHP
habib2013/Comsci_website
/app/Http/Controllers/CoursesController.php
UTF-8
5,595
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use \App\Course; use Auth; use \App\User; class CoursesController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // } ...
true
42c9b30a8db1b3488f930d857b790c63eb3142f9
PHP
BreizhMahjong/bmjc_MahjongRecorder
/models/game.php
UTF-8
523
2.96875
3
[ "Apache-2.0" ]
permissive
<?php class Game { var $id; var $turnamentId; var $gameDate; var $senderId; var $initialStack; var $demiHanChan; var $scores; function __construct($id, $gameDate, $senderId, $initialStack, $demiHanChan, $scores, $turnamentId = null) { $this->id = $id; $this->turnamentId = $turnam...
true
cd1f90ae4a9801eaeb29142239cd0de28ca0c9dc
PHP
dfosantos/STradeL
/website/database/user.php
UTF-8
1,515
3.046875
3
[]
no_license
<?php function isValidUser($username, $password) { global $conn; $stmt = $conn->prepare('SELECT * FROM users WHERE username = ?'); $stmt->execute(array($username)); $user = $stmt->fetch(); return $user !== false && password_verify($password, $user['password']); } function createUser($username, ...
true
30771d9dcf56e9af437bbb945e8a8a11c45c12da
PHP
sumonst21/acronis-cyber-cloud-whmcs
/src/includes/acroniscloud/lib/Service/MetaInfo/EditionMeta.php
UTF-8
853
2.609375
3
[ "MIT" ]
permissive
<?php /** * @Copyright © 2003-2019 Acronis International GmbH. This source code is distributed under MIT software license. */ namespace AcronisCloud\Service\MetaInfo; use AcronisCloud\Util\Arr; class EditionMeta extends AbstractMeta { const PROPERTY_EDITION_NAME = 'edition_name'; const PROPERTY_TITLE = 'ti...
true
669868e80b2451f98792d723bfbf3bc70cf26480
PHP
quarkmarino/multinomina
/multinomina/get_empresa_data.php
UTF-8
849
2.640625
3
[]
no_license
<?php include_once('connection.php'); if(!isset($_SESSION)) session_start(); $conn = new Connection(); $val = $_POST['val']; $result = $conn->query("SELECT RFC FROM Empresa WHERE Nombre = '$val' AND Cuenta = '{$_SESSION['cuenta']}'"); $rfcs = array(); $i = 0; //empresa rfc $txt = '<select class = "empresa_...
true
c3c46af68d906d8128ddf35504199c616f07f52c
PHP
h4r5h4/oauth2-server-laravel
/src/Storage/FluentScope.php
UTF-8
3,877
2.765625
3
[ "MIT" ]
permissive
<?php /* * This file is part of OAuth 2.0 Laravel. * * (c) Luca Degasperi <packages@lucadegasperi.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Harsha\OAuth2Server\Storage; use Illuminate\Database\ConnectionReso...
true
66d22539207724db5e2752c2a1e4df333b7c3ceb
PHP
silverstripe/silverstripe-graphql
/src/Schema/Interfaces/InputTypeProvider.php
UTF-8
485
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace SilverStripe\GraphQL\Schema\Interfaces; use SilverStripe\GraphQL\Schema\Type\InputType; use SilverStripe\GraphQL\Schema\Type\ModelType; /** * Implementors of this interface provide input types back to the schema */ interface InputTypeProvider { /** * @param ModelType $modelType * @pa...
true
68b9bac1d273658577d610511fdcfb0b17cb0809
PHP
hyorek/IMIESHPERE
/application/controleurs/connectionControler.php
UTF-8
353
2.625
3
[ "MIT" ]
permissive
<?php class connectionController{ public function connection(){ require_once("/application/models/connectionModel.php"); require_once("/application/views/IMIE/connection.php"); $connection = new connectionModel(); if (isset($_POST['connectionEmail']) && isset($_POST['connectionPassword'])) { $connecti...
true
c410b1137d6c347a6d6b1858e7a86c70309a35fb
PHP
stuartjing/backend
/protected/modules/attr/controllers/RadioAttr.php
UTF-8
289
2.609375
3
[]
no_license
<?php #单选框 class RadioAttr extends IAttr{ /** * 展示 */ public function view($vo=array()){ $def = isset($vo['val'])?$vo['val']:''; $options = $this->makeOption(isset($vo['option'])?$vo['option']:''); $def = isset($options[$def])?$options[$def]:''; return $def; } }
true
146387fd24cf4f76ffac6bdb032ab9573474639d
PHP
aaiche/42-piscine_php
/00-exos-videos/day07.video/3.ExempleHeritageProtected.class.php
UTF-8
4,396
3.09375
3
[]
no_license
<?php /* ************************************************************************** */ /* Example.class.php */ /* ************************************************************************** */ /* * Visibilite VERTICALE * heritage: on introduit une relation vert...
true
5f352fdba1d2783f4a6542c64bd9597ab8fa5f98
PHP
HarshaRamayan/PHP-Components
/Array Table Loops/Program.php
UTF-8
301
3.375
3
[]
no_license
<?php $nameArray = array ("Sriharsha", "Sudheer", "Leela", "Anish", "Srikar","Twinkle"); echo "<table>"; $i=0; while($i<count($nameArray)){ echo "<tr><td>".$nameArray[$i]." ". $nameArray[$i+1]. " ". $nameArray[$i+2]. "</tr></td>"; $i = $i+3; } echo "</table>"; ?>
true
20724d50830dabfdce8569ccc353790adcfc91f3
PHP
Knightzanga/opay-sdk-php
/src/Result/ValidateOpayUserResponse.php
UTF-8
393
2.578125
3
[]
no_license
<?php namespace Opay\Result; class ValidateOpayUserResponse extends Response { static function parseData(?\stdClass $s) { return ValidateOpayUserResponseData::cast(new ValidateOpayUserResponseData(), $s); } /** * @return ValidateOpayUserResponseData */ public function getData(...
true
570ad9595780b1cf9ac065128826800e48218ba4
PHP
Neerholt/Valutaomregner
/PHP/curl_fetch_api_data.php
UTF-8
427
2.671875
3
[ "MIT" ]
permissive
<?php $apiWorker = curl_init();//Start curl_setopt_array( $apiWorker, array( CURLOPT_URL => 'https://api.exchangeratesapi.io/latest', //API Url CURLOPT_RETURNTRANSFER => true, //true to return the transfer as a string of the return value of curl_exec() instead of outputting it directly. ) ...
true
f861c0020ec54a8ff1da18bad8f864a353df12b0
PHP
Nyuhnyash/lab
/web/sem1/lab3/task1l.php
UTF-8
1,672
3.25
3
[]
no_license
<html> <head> <meta charset="utf-8"> <title>Тестовый пример</title> </head> <body> <p> <?php $date = date("N"); switch ($date) { case 1: echo "Доброго понедельника! "; break; case 2: echo "Доброго вторника! "; break; case 3: ...
true
6daa9f6c7179717c8e26d48f9ef4f9510fb79570
PHP
Melanie2010/Star
/validation_star.php
UTF-8
1,765
3.21875
3
[]
no_license
<?php session_start(); //ouvrir la base de donnée $bdd = new PDO('mysql:host=localhost;dbname=star','root',''); $bdd->exec("SET CHARACTER SET utf8"); //requete d insertion $pdoStat = $bdd->prepare('INSERT INTO data_star (id, size) VALUES(null, :size)'); //chaque marqueur a une valeur $pdoStat->bindVa...
true
653f535b8a668cf85ee6f4a624dc45cc01dafbd7
PHP
stein13-web/tp-perso
/classes.php
UTF-8
2,365
3.28125
3
[]
no_license
<?php class Arme{ public $nom; public $degats; public function __construct(string $nom, int $degats){ $this->nom=$nom; $this->degats=$degats; } } class Perso{ public $image; public $force; public $pvmax; public $pv; public $arme; public $armure; public $nbPo...
true
323df3380740bdfb3d58386dff75af7b964301d8
PHP
tzurbaev/laravel-forge-api
/tests/RateLimitTest.php
UTF-8
1,868
2.609375
3
[ "MIT" ]
permissive
<?php namespace Laravel\Tests\Forge; use Laravel\Forge\Forge; use PHPUnit\Framework\TestCase; use Laravel\Tests\Forge\Helpers\Api; use Laravel\Tests\Forge\Helpers\FakeResponse; use Laravel\Tests\Forge\Helpers\FakeRateLimiter; class RateLimitTest extends TestCase { /** * @dataProvider rateLimitingProvider ...
true
8f01dc9abf886439ad009fc33d55253a13b5e217
PHP
RomaniukVadim/automatic-movies-website
/wp-content/plugins/wpgrabber/core/WPGErrorHandler.php
UTF-8
6,828
2.625
3
[ "WTFPL" ]
permissive
<?php /** * WPGErrorHandler * * @version 1.0.1 * @author Top-Bit <info@top-bit.ru> * @copyright 2009-2016 Top-Bit * @link http://top-bit.ru */ class WPGErrorHandler { // Критическое кол-во ошибок для отправки private static $MAX_ERRORS_COUNT_TO_SEND = 10; // Критическое кол-во ошибок для очис...
true
7ad55d737e0e23666a9dfc3c92d76ee3326069f2
PHP
summerblue/generator
/src/Migrations/SyntaxBuilder.php
UTF-8
12,572
3.078125
3
[ "MIT" ]
permissive
<?php namespace Summerblue\Generator\Migrations; use Summerblue\Generator\GeneratorException; /** * Class SyntaxBuilder with modifications by Fernando * @package Summerblue\Generator\Migrations * @author Jeffrey Way <jeffrey@jeffrey-way.com> */ class SyntaxBuilder { /** * A template to be inserted. ...
true
83349b285942bcb394b7378667c49f00723bb938
PHP
MCN-Healthcare/dynamodb-odm
/src/Query/QueryExprFactory.php
UTF-8
1,627
3.03125
3
[ "MIT" ]
permissive
<?php namespace McnHealthcare\ODM\Dynamodb\Query; /** * Class QueryExprFactory * Query experssion factory. */ class QueryExprFactory implements QueryExprFactoryInterface { /** * Map of method names to expression classes. * * @var array */ protected static $expressionMap = [ 'and'...
true
4d129986f33a80d92c2099887a381c9cc35dc0ff
PHP
MichalStrzelczyk/sudoku
/tests/Sudoku/BufferTest.php
UTF-8
9,605
2.65625
3
[ "MIT" ]
permissive
<?php use PHPUnit\Framework\TestCase; class BufferTest extends TestCase { /** * Create Buffer * * @return \Arrow\Sudoku\Buffer */ public function getNewEmptyBuffer(){ return \Arrow\Sudoku\Buffer::create(); } /** * Test buffer factory */ public function testB...
true
5f9960f185e99256fc098a2df7e89feb24dd6b6e
PHP
digitalpixelco/userforms-autoresponder
/code/SubmittedFormExtension.php
UTF-8
1,378
2.734375
3
[ "MIT" ]
permissive
<?php /** * Extends SubmittedForm */ class DPC_SubmittedForm_Extension extends DataExtension{ /** * Autoresponder */ public function updateAfterProcess(){ // get userforms page $page = $this->owner->Parent(); // send email if( $page->exists() && $page->EnableA...
true
73617422c480e670b83de21c83c1c788faf66795
PHP
JuniorCai/Nbscw-PHP
/app/Code/IService/IUserService.php
UTF-8
445
2.578125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: 钧球 * Date: 2017-05-24 * Time: 11:21 */ namespace App\Code\IService; use App\Models\Member\User; interface IUserService { function Login($accountName,$password); function GetUserInfoById($id); function CreateUser(User $userModel); function LoginWithCreden...
true
f48eebb684d56b70ede84e4e21e9e20244f9739d
PHP
dannyalxndr/Exercises
/exercises/guess_game.php
UTF-8
89
2.765625
3
[]
no_license
<? $number = 44; fwrite(STDOUT, 'What is your guess? '); $guess = fgets(STDIN); if ()
true
67684b0c1d57f8c9f134bc89690686ac04f63992
PHP
cwinchell2883/winchelldesign.com
/projects/phpwebsite/mod/elections/class/ELEC_Candidate.php
UTF-8
15,858
2.734375
3
[]
no_license
<?php /** * elections - phpwebsite module * * See docs/AUTHORS and docs/COPYRIGHT for relevant info. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or ...
true
20ae39c090653dff432c1a9190d7eec6f5359710
PHP
Superlokkus/IT1_Beleg
/php/vokabel_stats.php
UTF-8
1,508
2.75
3
[]
no_license
<?php ini_set('display_errors', 'On'); error_reporting(E_ALL); $http_method = $_SERVER['REQUEST_METHOD']; $body = file_get_contents('php://input'); class stat { public $lesson_name = ''; public $correct_count = 0; public $answered_count = 0; } function put_stats($stat) { $stat = json_decode($stat); ...
true
5a94134e8aa78c74bca4d5b487e8ed764497c9f3
PHP
serversidesquid/laravel-notion-api
/src/Entities/Properties/Text.php
UTF-8
1,362
3.09375
3
[ "MIT" ]
permissive
<?php namespace FiveamCode\LaravelNotionApi\Entities\Properties; use FiveamCode\LaravelNotionApi\Exceptions\HandlingException; use FiveamCode\LaravelNotionApi\Entities\PropertyItems\RichText; /** * Class Text * @package FiveamCode\LaravelNotionApi\Entities\Properties */ class Text extends Property { /** ...
true
0fe42189c40f50a40d2c10751219896731322d05
PHP
developersharif/phpMvcExample
/system/libs/Database.php
UTF-8
248
2.90625
3
[]
no_license
<?php class Database { protected $db=array(); public function __construct() { $host="localhost"; $user="root"; $pass=""; $db="MVC"; $this->db=new mysqli($host,$user,$pass,$db); } }
true
d8b5983d8dc127a640e0d864f28093b6feb88c9a
PHP
SKIIII/zm-1
/zyfx/Extend/modelFactory.php
UTF-8
912
2.765625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: 徐强 * Date: 2019/4/25 * Time: 14:12 */ //工厂模式取model文件 interface model_List { static function getModel($modelName); } class modelList implements model_List { public function __construct() { } static function getModel($modelName) { switch ($mode...
true
dbeb177b5c5f3e42434e62c0f2fd1c8e5e76ef26
PHP
Pukles/500-PHP
/aula02/escopo-func.php
UTF-8
144
2.515625
3
[]
no_license
<?php $pessoa = ['nome' => 'Arthur', 'idade' => 23]; function exibeNome() { global $pessoa; return $pessoa['nome']; } echo exibeNome();
true
ab60c46ff705308d6b1c16b2c9fa2b65f46f407f
PHP
AlfredGreene/Homepage
/src/Service/FeedService.php
UTF-8
3,130
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Service; use App\Entity\Feed; use App\Entity\FeedListFilter; use App\Entity\User; use App\Entity\UserFeed; use App\Entity\UserFeedItem; use App\Repository\FeedRepository; use App\Repository\UserFeedItemRepository; use App\Repository\UserFeedRepository; class FeedService { /** * @var User...
true
b5cb32c5dd30a831c914e465da8fdfac1d58a891
PHP
JMB-Technology-Limited/MeetYourNextMP-Web-Core
/core/php/repositories/UserNotificationPreferenceRepository.php
UTF-8
4,320
2.546875
3
[]
no_license
<?php namespace repositories; use models\UserNotificationPreferenceModel; use models\UserAccountModel; /** * * @package Core * @link http://ican.openacalendar.org/ OpenACalendar Open Source Software * @license http://ican.openacalendar.org/license.html 3-clause BSD * @copyright (c) 2013-2014, JMB Technology Li...
true
2a397afd275c1457c32b9f6c3c2451357ea90a81
PHP
ForceCry/iem
/htdocs/plotting/feature/freq_below_freeze.php
UTF-8
2,734
2.609375
3
[]
no_license
<?php include("../../../config/settings.inc.php"); include("$rootpath/include/database.inc.php"); $dbconn = iemdb('coop'); $sql = "SELECT sday, SUM( case when low < 29 THEN 1 ELSE 0 END) as hcount, SUM( case when low < 32 THEN 1 ELSE 0 END) as lcount, count(*) as all from alldata WHERE month in (4,5) and st...
true
0d4bea48e3cee869ef551a0091e283ddbead9d7e
PHP
mozikun/project
/library/sms.php
UTF-8
5,981
2.765625
3
[]
no_license
<?php /** *发送短信 */ class SMS{ //运营商1移动2联通3电信9其它 private $phone_token=1; //应用程序号 private $sms_application_id=__SMS_APPLICATIONID; //发送状态 private $send_status=0; /** * 设置应用程序号 * * @param String $sms_application_id */ public function setSMSApplicationID($sms_application_id){ $this->sms_application_id=$sms_appl...
true
1518a24f33e1f10c9d8c480d6a175001013043a8
PHP
borodulin/Container
/tests/Samples/CircleReference/Egg.php
UTF-8
241
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Borodulin\Container\Tests\Samples\CircleReference; class Egg { /** * @var Hen */ private $hen; public function __construct(Hen $hen) { $this->hen = $hen; } }
true
18a9c18d36ef291d1e25063ffe565a0eca93d203
PHP
phyxerian/Site_enchere
/controller/connexion.php
UTF-8
14,163
2.703125
3
[]
no_license
<?php session_start(); require '../modele/class/Autoloader.php'; Autoloader::register(); //PARTIE CONNEXION if(isset($_POST['formconnexion'])) { if (!empty($_POST['login']) && !empty($_POST['mdpco'])) { if(is_string($_POST['login'])&&is_string($_POST['mdpco'])) { $pass_hache = sha1($_POST['mdpco']); ...
true
35969be05e2f7dfbe528bfd42f78b8e2d0e1a129
PHP
shlvam/Restaurant-Automation
/tab changes.php
UTF-8
5,510
3.234375
3
[]
no_license
<!--php for deleting new row --> <?php $dele = false; //Primary key should be there if(isset($_POST['tab_id']) and !(isset($_POST['nchair']))){ // Set connection variables $server = "localhost"; $username = "root"; $password = ""; // Create a database connection $con = mysqli_connect($server, $...
true
ff796e5497732efd398b2ca02eb50a276c314c10
PHP
rafidulislam19/CSE311L_Section_1_Summer2020_NSU
/Homework Submission/Quiz 2/insert_table_jobs.php
UTF-8
975
2.53125
3
[ "CC-BY-NC-SA-4.0", "CC-BY-NC-ND-4.0", "MIT" ]
permissive
<?php $link = mysqli_connect('localhost','root','','Quiz2'); if($link == false) { die("Error: Could not Connect." .mysqli_connect_error()); } $sql = "INSERT INTO Jobs VALUES ('AD_PRES','President',20000 , 40000), ('AD_VP','Administration Vice President',15000 , 30000), ('AD_ASST','Admini...
true
34e9ec14f70aae4628a0334a4b51dd4704f8a602
PHP
pstruggle/lucky_shop
/app/common/model/Logistics.php
UTF-8
1,109
2.515625
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2017/9/28 * Time: 15:27 */ namespace app\common\model; class Logistics extends Base { protected function initialize(){ parent::initialize(); // TODO: Change the autogenerated stub $this->_base = $this; } public function s...
true
6118556c7812cdfaff7a5289545a9ea656bac079
PHP
h136799711/itboye_sunsun_tcp
/sunsun/src/pet_feeder/req/PetFeederCtrlDeviceReq.php
UTF-8
4,362
2.75
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: 1 * Date: 2017-03-13 * Time: 18:04 */ namespace sunsun\pet_feeder\req; use sunsun\server\req\BaseControlDeviceServerReq; /** * ClassPetFeederCtrlDeviceReq * 设置设备 * @package sunsun\pet_feeder\req */ class PetFeederCtrlDeviceReq extends BaseControlDeviceServerReq { ...
true
4edefd8853f0f9df1e25704e3ee8b88c370cfbe3
PHP
carlosboni/biciterraneo.com
/administrator/components/com_jmap/tables/catspriorities.php
UTF-8
2,040
2.6875
3
[]
no_license
<?php // namespace administrator\components\com_jmap\tables; /** * * @package JMAP::SOURCES::administrator::components::com_jmap * @subpackage tables * @author Joomla! Extensions Store * @copyright (C) 2021 - Joomla! Extensions Store * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html */ // no direct a...
true
1889a160d1fc4c5219302739d92b75140dbdf8ac
PHP
zkmaster/blogService
/app/Http/Controllers/V1/Common/AccountController.php
UTF-8
1,508
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers\V1\Common; use App\Http\Controllers\V1\BaseController; use App\Http\Process\V1\Common\AccountProcess; use App\Rules\PlainText; use Illuminate\Http\Request; class AccountController extends BaseController { protected $process; public function __construct() { $t...
true
425d25b61c62e3ae30c8efa4ac0513e6607aa86b
PHP
tobias74/cached-image-service
/src/fly-video/fly-video-mongo-mapper.php
UTF-8
1,164
2.515625
3
[]
no_license
<?php abstract class FlyVideoMongoMapper extends \BrokenPottery\AbstractMongoMapper { protected function declareDataMap() { $dataMap = new DataMap(); $dataMap->addColumn('id', 'id'); $dataMap->addColumn('user_id', 'userId'); $dataMap->addColumn('requested_file_id', 'requestedFi...
true
99bbdfedeaab38d3eb39befeb15f60b2d46c8d6a
PHP
bbbbbbbk/php-demos
/design_pattern_demos/decorator/index.php
UTF-8
275
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: bbbbbbbk * Date: 2018-05-21 * Time: 16:18 */ $tile = new Plains(); print $tile->getWealthFactor(); //2 print (new DiamondDecorator($tile))->getWealthFactor(); //4 print (new PollutionDecorator($tile))->getWealthFactor(); //0
true
5a051b160ff4701229293cb1b18d2300b1ed2d0c
PHP
blockchainofthings/CatenisAPIClientPHP
/tests/PHPClientVer3.0.0Test.php
UTF-8
8,712
2.890625
3
[ "MIT" ]
permissive
<?php /** * Created by claudio on 2019-08-20 */ namespace Catenis\Tests; use Exception; use DateTime; use PHPUnit\Framework\TestCase; use React\EventLoop; use Catenis\ApiClient; if (empty($GLOBALS['__testEnv'])) { // Load default (development) test environment include_once __DIR__ . '/inc/DevTestEnv.php'; ...
true
aa4d05aacd350f3f644cd6b8cddae79904e9a783
PHP
webtoucher/geometeo-libs
/src/Coordinate.php
UTF-8
2,987
3.21875
3
[]
no_license
<?php namespace webtoucher\geometeo\libs; class Coordinate { const NORTH = 1 << 0; // 000001 const SOUTH = 1 << 1; // 000010 const WEST = 1 << 2; // 000100 const EAST = 1 << 3; // 001000 const LATITUDE = 1 << 4; // 010000 const LONGITUDE = 1 << 5; // 100000 /** ...
true
07f0156811ff1fea7e8579c0d5d050dbcb4927bf
PHP
VictorKaryaka/Urlminimizer-PHP-
/src/Application/DatabaseManager.class.php
UTF-8
3,691
3.109375
3
[]
no_license
<?php namespace Application; use PDO; /** * DatabaseManager to database */ class DatabaseManager { private $connection; /** * @return PDO */ public function getConnection() { return $this->connection; } /** * DatabaseManager constructor. */ public function ...
true
179ad50e5879c578bb59b0be04b37c0139c21a07
PHP
Wittner/irelandathome-admin
/iah_crons/Email.php
UTF-8
1,415
2.859375
3
[]
no_license
<?php /* Email library for Exchange server using PEAR */ require_once "Mail.php"; require_once "Mail/mime.php"; function send_exchange_email($toAddress, $subject, $message, $key) { if($key === '3389871987418974889798:!}Oii') { // Set recipient info $from = "Sales <sales@irelandathome.com>"; $to = $to...
true
42f025bdd66ef6612b9feca88a99a79847f356fd
PHP
BookStackApp/BookStack
/app/Entities/Models/BookChild.php
UTF-8
2,223
2.765625
3
[ "LGPL-2.1-only", "BSD-3-Clause", "LGPL-3.0-only", "LGPL-2.0-or-later", "Apache-2.0", "BSD-2-Clause", "MIT" ]
permissive
<?php namespace BookStack\Entities\Models; use BookStack\References\ReferenceUpdater; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Relations\BelongsTo; /** * Class BookChild. * * @property int $book_id * @property int $priority * @property string $book_slug * @property Book ...
true
b1589d32311e8fe2500f944ea1400dec7b12bc75
PHP
chandu-simha/simple-socket-chat
/client.php
UTF-8
1,480
3.125
3
[]
no_license
<?php if (!extension_loaded('sockets')) { die('The sockets extension is not loaded.'); } if (isset($_REQUEST['btn_submit'])) { $msg = $_REQUEST['message']; $host = '127.0.0.1'; $port = 20205; $socket = socket_create(AF_INET, SOCK_STREAM, 0); if (!$socket) { echo 'Unable to create socket: '. s...
true
a822a05d1087fe001dbbb2677789bb68a1b68c23
PHP
tayrosby/GetHired
/app/Http/Controllers/AdminController.php
UTF-8
4,018
3.078125
3
[ "MIT" ]
permissive
<?php /* * Authors: Taylor Rosby * Date: February 24, 2019 * Description: AdminController is responsible for linking the AdminPage to * the business side of the program. */ namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Routing\Controller; use App\Services\Business\UserBusinessService;...
true
76424a3c1d4baedce3b2602729c9d06a7187dd32
PHP
cixwarearun/database
/todo/editpost.php
UTF-8
2,432
2.8125
3
[]
no_license
<?php require ('config/config.php'); require ('config/database.php'); if(isset($_POST['submit'])) { $update_id=mysqli_real_escape_string($conn,$_POST['update_id']); $subject=mysqli_real_escape_string($conn,$_POST['subject']); $description=mysqli_real_escape_string($conn,$_POST['description']); $date=...
true
715f3cee3609c20bc0fc48977dfccc6675941c5b
PHP
YixianChen/biodata
/db.php
UTF-8
2,426
3.03125
3
[]
no_license
<?php require_once('config.php'); mysql_connect($db_url, $db_user, $db_passwd); @mysql_select_db($database) or die("could not select database"); function fetch_rows($query) { $r = mysql_query($query); echo mysql_error(); if (!$r) return array(); ...
true
e09e72b1fc5b93bed5a04cb0aec1cb66d9d2bcef
PHP
angel1521ramos/actividades
/database/factories/AlumnoFactory.php
UTF-8
988
2.53125
3
[ "MIT" ]
permissive
<?php namespace Database\Factories; use App\Models\Alumno; use Illuminate\Database\Eloquent\Factories\Factory; class AlumnoFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Alumno::class; /** * Define the model's...
true
269a21fdc3276fe487e62d738b5f183684d58e3b
PHP
SbWereWolf/activeprofi
/src/backend/Environment/Site/Controller.php
UTF-8
928
2.65625
3
[]
no_license
<?php namespace Environment\Site; use Slim\Http\Response; use Slim\Views\PhpRenderer; class Controller extends \Environment\Basis\Controller { private $viewer = null; public function process(): Response { $request = $this->getRequest(); $response = $this->getResponse(); $isGet ...
true
d5592cfaf57f00c6be15a24a3af1204bfcf1527f
PHP
corneltek/LazyRecord
/tests/TableParser/SqliteTableDefinitionParserTest.php
UTF-8
1,292
2.5625
3
[ "BSD-2-Clause" ]
permissive
<?php use LazyRecord\TableParser\SqliteTableDefinitionParser; class SqliteTableDefinitionParserTest extends PHPUnit_Framework_TestCase { public function testUnsignedInt() { $parser = new SqliteTableDefinitionParser('CREATE TABLE foo (`a` INT UNSIGNED DEFAULT 123)'); $def = $parser->parse(); ...
true
768bc816a66b6866e1640e63b20a48e42e617d78
PHP
theiconic/synopsis
/tests/Object/IteratorSynopsisTest.php
UTF-8
1,290
2.796875
3
[ "MIT" ]
permissive
<?php namespace TheIconic\Synopsis\Object; use PHPUnit\Framework\TestCase; use TheIconic\Synopsis\Factory; use ArrayIterator; class IteratorSynopsisTest extends TestCase { /** * */ public function testProcess() { $synopsis = new IteratorSynopsis(); $synopsis->setFactory($this->g...
true
7b61c99efb23b8ecbd063540e012456c9b2080e7
PHP
mvestil/wallet
/app/Models/Transaction.php
UTF-8
918
2.78125
3
[]
no_license
<?php /** * Class Transaction */ namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * Class Transaction * * Model class for wallet transaction */ class Transaction extends Model { const TYPE_CREDIT = 'CREDIT'; const TYPE_DEBIT = 'DEBIT'; /** * @var array */ protected...
true
7e379b6e0f06765ca523c1453f0fd9e21bfe4c3c
PHP
jorgemcga/mnmit
/app/Controller/AgendadorController.php
UTF-8
2,267
2.796875
3
[]
no_license
<?php /** * Description of AgendadorController * * @author jorge m abdalla */ namespace App\Controller; use App\Model\Agendador; use Core\Controller; use Core\Redirect; use Core\Validator; class AgendadorController extends Controller { private $agendador; private $url; public function __construct() ...
true
b8938d267702a661cf55a3ee10cc395a4eb1f2c7
PHP
fletchto99/SEG2105-Final
/web/cgi-bin/lib/Database.php
UTF-8
1,405
3.375
3
[ "MIT" ]
permissive
<?php /** * Details : Database Singleton used to connect an retrieve a connection to the database using PDO * Author(s) : Matt Langlois * */ require_once "bootstrap.php"; class Database extends PDO { /* * The instance of the connection to the database */ private static $instance; ...
true
bc0825f6af676859c40e601112ee0d3700a9845d
PHP
iarrieta90/PHP-server-environment
/session_exercise/panel.php
UTF-8
294
2.671875
3
[]
no_license
<?php session_start(); if (!isset($_SESSION['username'])) { header ('Location: index.php'); echo "<p>You need to log in!</p>"; exit(); } $username = $_SESSION['username']; $url = "close_session.php"; echo "<p>Hello $username </p>"; echo "<a href='$url'>Close session</a>"; ?>
true
b132e81bf075ab2c8cac732d171223297b3c8e60
PHP
janephp/janephp
/src/Component/OpenApi3/Tests/fixtures/issue-672/expected/Model/SubLevel1.php
UTF-8
807
2.640625
3
[ "MIT" ]
permissive
<?php namespace Jane\Component\OpenApi3\Tests\Expected\Model; class SubLevel1 extends \ArrayObject { /** * @var array */ protected $initialized = array(); public function isInitialized($property) : bool { return array_key_exists($property, $this->initialized); } /** * ...
true
8e1bc7d665b6207149ba35119bf51899b09bed69
PHP
samall/zoo.local
/www/application/classes/Resize.php
UTF-8
3,707
3.015625
3
[ "BSD-3-Clause" ]
permissive
<?php class Resize { protected $image; protected $image_type; public function __construct($filename = '') { $this->load($filename); } public function load($filename) { $image_info = getimagesize($filename); $this->image_type = $image_info[2]; switch($this->image_type){ c...
true
285733ead18e38fe873c44a75aec84d0cd0457a7
PHP
GaelCANS/cava
/app/Question.php
UTF-8
2,871
2.625
3
[ "MIT" ]
permissive
<?php namespace App; use App\Libraries\Traits\Keyable; use Illuminate\Database\Eloquent\Model; class Question extends Model { use Keyable; protected $guarded = array('id'); /** * CUSTOM */ /** * Return key from the previous question * * @param $current : current question ...
true
9191d7c57460babd16fa3fab8e0af28b47651549
PHP
jeffreyvr/wp-settings
/src/Tab.php
UTF-8
2,000
2.953125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Jeffreyvr\WPSettings; use Jeffreyvr\WPSettings\Traits\HasOptionLevel; class Tab { use HasOptionLevel; public $settings; public $title; public $slug; public $sections = []; public function __construct($settings, $title, $slug = null) { $this->title = $title; ...
true
3076bba90b7530c44967ee71a756ee0869cef74e
PHP
xdeenist/home-work
/19/php.php
UTF-8
352
3.5625
4
[]
no_license
<?php abstract class writing_device { abstract public function write(); function test(){ echo "Test"; } } class Marker extends writing_device{ public $color; public $type; function write() { echo "This is writen with color" . $this->color . "\n"; } } $blue_marker = new Marker(); $blue_marker->color =...
true
75078206df06f4dfb50b51d928fc2d041ac964ae
PHP
kanateko/pukiwiki-plugin
/plugin-ac/ac.inc.php
UTF-8
10,456
2.53125
3
[]
no_license
<?php /** * 折りたたみ可能な見出しを作成するプラグイン * * @version 1.6 * @author kanateko * @link https://jpngamerswiki.com/?f51cd63681 * @license https://www.gnu.org/licenses/gpl-3.0.html GPLv3 * -- Updates -- * 2021-07-26 プラグインの呼び出し毎に挿入されていたスクリプトを大幅に削減 * h使用時に元々ある疑似要素と開閉アイコンが干渉しないよう、アイコン表示用の要素を追加 * 2021-0...
true
c158e600a76587f99133ac8eb3394cb24549778d
PHP
WildCodeSchool/orleans-202103-php-project-interim
/src/Entity/Student.php
UTF-8
5,252
2.5625
3
[]
no_license
<?php namespace App\Entity; use DateTimeImmutable; use DateTimeInterface; use Doctrine\ORM\Mapping as ORM; use App\Repository\StudentRepository; use DateTime; use Symfony\Component\HttpFoundation\File\File; use Symfony\Component\Validator\Constraints as Assert; use Vich\UploaderBundle\Mapping\Annotation as Vich; /**...
true
0862a42dec6a0277877d23bf5a89cea3043a6615
PHP
orbiteo/config_tarifs
/modeles/Prospects.class.php
UTF-8
4,158
2.8125
3
[]
no_license
<?php if (!defined('PROSPECTS')) { define('PROSPECTS', 'prospects'); } class Prospects { private $prospect_id; private $nom; private $societe; private $email; private $telephone; private $details_dde_id; public function setprospect_id($pArg = "0") { $this->prospect_id = $pArg;} public function setnom($pArg...
true
a91fc93954be150f9f7050dc0044b187f1d0db83
PHP
mson0129/xFacility2012
/XFAPI/XFString.class.php
UTF-8
5,138
3.46875
3
[]
no_license
<?php //XFString Class //Michael Son(michaelson@nate.com) //2013APR02 //2013MAY18 - Renamed methods shortly & Added correct method. //2013JUL17 - replace method added. //2013AUG01 - addTab method added. //Require_once //Class class XFString extends XFObject { var $string; var $length; function XFString($string) ...
true
ec82dc9fb78d8d209992aadc4dbead7c1d790fe4
PHP
yegobox/misscareerafrica
/app/Repositories/DonationApplicantsRepository.php
UTF-8
946
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Models\DonationApplicants; use App\Repositories\BaseRepository; /** * Class DonationApplicantsRepository * @package App\Repositories * @version May 11, 2020, 11:40 am UTC */ class DonationApplicantsRepository extends BaseRepository { /** * @var array */ ...
true
682db131283e972f223c5238d0037ea013a1c16d
PHP
kinganeng/Myfox-load-module
/build/parse_object_list.php
UTF-8
186
2.78125
3
[]
no_license
<?php foreach (explode(',', $argv[1]) AS $item) { list($key, $val) = explode(':', $item, 2); if (is_numeric($val)) { echo "$key = $val\n"; } else { echo "$key = \"$val\"\n"; } }
true
44f8fe28ef251d66e4723b899cce89127d568202
PHP
ke222pf/1dv610lab3
/startup (3)/model/GameSession.php
UTF-8
2,182
3.203125
3
[]
no_license
<?php namespace model; class GameSession { private $lastGuessedLetter; public function startSession () { if(!isset($_SESSION)) { session_start(); } } // initialize the game session and set wrong guesses to zero. public function startGameSession() { if(!isset(...
true
5619ad18b7fdeaa5adc200098405b447b2381b98
PHP
AmirJavaidSwe/movie-reviews
/app/Helpers/Utility.php
UTF-8
3,021
2.84375
3
[]
no_license
<?php namespace App\Helpers; class Utility { public static function redir($url) { header('location: ' . URL_ROOT . $url); exit(); } public static function generateConfCode():string { $code = str_shuffle(substr(time(), 0, 10)); return str_shuffle(substr($...
true
95342bd4b892e2731599356ccfaf6364033fec02
PHP
kincade71/betawatch
/application/models/read.php
UTF-8
5,149
2.59375
3
[]
no_license
<?php class Read extends CI_Model { public function __construct() { parent::__construct(); // Load the rest client spark $this->load->spark('restclient-2'); // Load the library $this->load->library('rest'); // Set config options (only 'server' is required to work)http://localhost:8080/ $config = array...
true
ea0f9e5514d95eb002e8a7846ffcf6ccd4093c04
PHP
hucharal/hackerrank
/algorithms/easy/between-two-sets.php
UTF-8
1,495
3.5
4
[]
no_license
<?php /* * Complete the 'getTotalX' function below. * * The function is expected to return an INTEGER. * The function accepts following parameters: * 1. INTEGER_ARRAY a * 2. INTEGER_ARRAY b */ function getTotalX($a, $b) { sort($a); sort($b); $minInA = $a[0]; $maxInB = $b[count($b) - 1]; ...
true
6fd2c8790e91ca0b6651a8b02b4f18bcfb912803
PHP
fclopezjurado/php-example-codes
/chapter_3/str_functs/html_entity_decode.php
UTF-8
1,343
3.0625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: fljurado * Date: 8/11/18 * Time: 16:17 * * string html_entity_decode ( string $string [, int $flags = ENT_COMPAT | ENT_HTML401 * [, string $encoding = ini_get("default_charset") ]] ) * * Convert HTML entities to their corresponding characters. Decodes all the entities ...
true
1c4e99d0d35a4f64213d77a45da4772d84111992
PHP
Brylimo/OURS
/api/faculty/search.php
UTF-8
976
2.828125
3
[]
no_license
<?php // required headers header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); // include database and object files include_once '../config/db.php'; include_once '../objects/faculty.php'; // instantiate database and product object $database = new Database(); $db = $datab...
true
24283cf30022356502eac04e96dfb560cda33b8e
PHP
thachln/word-of-the-day
/source/Final Project/Profile.php
UTF-8
2,268
2.609375
3
[ "MIT" ]
permissive
<?php $page = 'Profile'; session_start(); if(($_SESSION['SignedIn'])== FALSE){ header('location:SignIn.php'); } ?> <?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "Dictionary"; $conn = new mysqli($servername, $username, $password,$dbname); // Check connecti...
true
e8578db3f5b92035a94640664b801e50082b29a3
PHP
mobarrios/aclav
/app/views/models/Supervisor.php
UTF-8
1,573
2.546875
3
[ "MIT" ]
permissive
<?php class Supervisor extends Eloquent { protected $table = 'supervisor'; protected $guarded = array(''); public function PartidoCostoItem() { return $this->hasMany('PartidoCostoItem'); } public function Designaciones() { return $this->belongsTo('Designaciones'); } public function Designacion($idP...
true
3d2438fc9a26c756cd10c48d9646ad5004708f3f
PHP
DevZeng/secure
/app/Modules/users/Userinfo.php
UTF-8
1,845
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Modules\users; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; class Userinfo extends Model { public static function check($openid){ if(!$openid){ return false; } $id=DB::table('sh_userinfo') ->where('openid',$openid) ...
true
c6f06f311af29326f544e8ea1df8941e0c1466a0
PHP
benrgreene/Post-Type-Template-Builder
/setup.php
UTF-8
1,896
2.609375
3
[]
no_license
<?php /** Plugin Name: Post Type Template Builder Plugin URI: Description: Add custom templates to set as you single view for post types Author: Ben Greene Version: 1 License: MIT */ require( 'core/class-admin-controller.php' ); require( 'core/class-content-template-loader.php' ); class BRG_...
true