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
182404ed6520c59febe0f6d594479c7702e21a4b
PHP
dauminhquan/zend
/module/Admin/src/Model/Authentication.php
UTF-8
969
2.578125
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace Admin\Model; /** * Description of Authentication * * @author Quan * */ use Zend\Authentication\AuthenticationS...
true
aae02fb6e97dd09e9524eb925585adbb0ba2808e
PHP
changyuyun/swoole_study
/demo/client/tcp_client.php
UTF-8
372
2.71875
3
[]
no_license
<?php //连接swoole tcp 服务 $client = new swoole_client(SWOOLE_SOCK_TCP); if(!$client->connect("127.0.0.1", 9501)) { echo "连接失败"; exit; } // php cli 常量 fwrite(STDOUT, "请输入:"); $msg = trim(fgetc(STDIN)); //发送消息给tcp server服务器 $client->send($msg); //接收来自server的数据 $result = $client->recv(); echo $result;
true
91a251cc544827ea00f4fd5ee4729f947d42c844
PHP
Maurogch/GoToEvent
/dao/Interfaces/IPurchaseLineDao.php
UTF-8
452
2.578125
3
[]
no_license
<?php namespace Dao\Interfaces; use Models\PurchaseLine as PurchaseLine; interface IPurchaseLineDao { public function Add(PurchaseLine $purchaseLine, $idPurchase); public function getById($idPurchaseLine); public function getAll($load); public function getAllByIdPurchase($idPurchase); public funct...
true
0154219801924196a096ae00a94dbc9fd40218d2
PHP
tetsuo78/opcache
/src/OpcacheBundle/Entity/Opcachesav.php
UTF-8
7,013
2.65625
3
[]
no_license
<?php namespace OpcacheBundle\Entity; /** * Opcache */ class Opcache { /** * @var int */ private $id; /** * @var string */ private $pageTitle; /** * @var string */ private $statusDataRows; /** * @var string */ private $configDataRows; /...
true
77e8ef073967212d5923cf2c448fc08961bd406b
PHP
tarikmanoar/xenforo
/src/XF/Legacy/Link.php
UTF-8
528
2.53125
3
[]
no_license
<?php namespace XF\Legacy; class Link { public static function buildPublicLink($type, $data = null, array $extraParams = []) { $app = \XF::app(); /** @var \XF\Mvc\Router $router */ $router = $app['router.public']; return $router->buildLink($type, $data, $extraParams); } public static function buildAdmin...
true
c33c773f24fffb28e4aab8e85b54bcee4f831f58
PHP
qbolec/ants
/server/php/framework/Strings.php
UTF-8
299
3.15625
3
[]
no_license
<?php class Strings { public static function is_prefix_of($short,$long){ return substr($long,0,strlen($short)) === $short; } public static function to_html($str){ return htmlspecialchars($str,ENT_QUOTES); } public static function to_uri($str){ return urlencode($str); } } ?>
true
ed9798c1f91cb58f3aebc82b0359afb81ed648ea
PHP
wesleyholiveira/Agenda
/src/controllers/Site/Site/CommandSite.php
UTF-8
12,630
2.515625
3
[ "MIT" ]
permissive
<?php namespace Site\Site; require ('ExeCommand.php'); use Exception; use Silex\Application; use Symfony\Component\HttpFoundation\Request; use Command\Command; use Command\CommandContext; use Site\View\View; use Site\SiteDao; class CommandSite implements Command { public function __construct(View $view, SiteDao $dao...
true
ea39a2a2647d686f282fb26210802638f5a654ec
PHP
geomagas/yagphplib
/nodes/minime/minime.class.php
UTF-8
2,945
2.78125
3
[]
no_license
<?php abstract class MiniME extends NodeBase { private $modules=array(); final function modules() { return $this->modules; } function __construct(MiniME $parent=NULL) { parent::__construct($parent); // $this->do_event('node_create'); } function get_my_modules() { return array(); } // by default, no mo...
true
29034f40b4e6a3aa6faeca75bfdc375042d0f4dd
PHP
enoatu/ArroganciA2
/app/controllers/Member/RegisterController.php
UTF-8
2,629
2.515625
3
[]
no_license
<?php use ArroganciA\Controller\ControllerBase; use Phalcon\Security\Random; class RegisterController extends ControllerBase { public function initialize(){ $this->authenticate(); $this->view->setVar('title', 'メンバー登録'); $this->assets->addCss('css/index.css'); } public function inde...
true
66f58f9c9d0d7b6bef7d6675b1f830a3fee12e23
PHP
pilot/eventator
/src/Event/EventBundle/Entity/Translation/Translation.php
UTF-8
1,399
2.515625
3
[ "MIT" ]
permissive
<?php namespace Event\EventBundle\Entity\Translation; use Doctrine\Common\Collections\Criteria; trait Translation { /** * Get translations * * @return \Doctrine\Common\Collections\Collection */ public function getTranslations() { return $this->translations; } /** ...
true
c60bca92b0f4afcfd7b9b0c3fee16bd6bc153a70
PHP
michipote/Progetto-P.C.T.O.
/server-side/listaSedi.php
UTF-8
296
2.546875
3
[ "MIT" ]
permissive
<?php include_once "./config.php"; $stmt = $pdo->query("SELECT * FROM sede ORDER BY nome"); $result = array(); while($row = $stmt->fetch(PDO::FETCH_ASSOC)){ $result[$row['nome']][] = ['id' => $row['id'], 'value'=> $row['indirizzo'], 'label'=> $row['indirizzo']]; } echo json_encode($result);
true
6ee76e9b10391a54a9e75e6ea7d2861e9ecc198d
PHP
klinec/vudpap-testy
/src/Vudpap/TestBundle/Provider/Test/TestProviderInterface.php
UTF-8
1,320
2.6875
3
[]
no_license
<?php namespace Vudpap\TestBundle\Provider\Test; use Vudpap\TestBundle\Entity\Progress; interface TestProviderInterface { /** * Save current state * * @return string */ public function save(); /** * Load serialized state * * @param $identifier * @return $this ...
true
695d0282395db601e7cfa302dc04fd056e10aa58
PHP
nblaskar/Core-PHP-Complete-Course-With-Codes-By-NBL
/59.For Loop With Multidimentional Associative Array in PHP.php
UTF-8
952
3.28125
3
[]
no_license
<?php //Multidimentional Associative Array //-->Short Structured Array /* $fees=array( "Rahul"=>array("php"=>10,"Java"=>20,"CSS"=>30), "Sonam"=>array("php"=>30,"Java"=>40,"CSS"=>10), "Sumit"=>array("php"=>50,"Java"=>60,"CSS"=>40) ); */ //-->Descriptive Structured Array $fees["Rahul"][...
true
42f4bc961366a12a85b9d2af2c77a8c5ab7a5048
PHP
swaty007/trade-kolya
/components/Bittrex/tests/unit/Clients/ClientTest.php
UTF-8
1,160
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php declare(strict_types=1); namespace codenixsv\Bittrex\tests\unit\Clients; use codenixsv\Bittrex\Clients\Client; use codenixsv\Bittrex\Requests\BittrexRequest; use PHPUnit\Framework\TestCase; use codenixsv\Bittrex\Http\CurlHttpClient; /** * Class ClientTest * @package codenixsv\Bittrex\tests\unit\Clients */ f...
true
01ce7aea68536748d211dbd0dbd2ec1af1eaca9d
PHP
Bukarinov/gelato_coding_exercise_checkout
/tests/Unit/Catalog/Application/CheckOutTest.php
UTF-8
5,438
2.71875
3
[]
no_license
<?php namespace Unit\Catalog\Application; use Catalog\Application\CheckOut; use Catalog\Application\DuplicateRulesException; use Catalog\Domain\Item; use Catalog\Domain\PricingRule; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; class CheckOutTest extends TestCase { public function ...
true
8c16c192b2a191b76a51d67fdc17697c73b215b2
PHP
lenelhicksoncftc/boutique
/PHP/purchaseSoftware.php
WINDOWS-1252
4,951
2.59375
3
[]
no_license
<?php // purchaseSoftware.php // // Copyright 2009 Sweeter Rhythm LLC/No Thirst Software LLC/Atomic Bird LLC // All rights reserved. // BSD License http://www.opensource.org/licenses/bsd-license.php if (!isset($_POST['firstName']) OR !isset($_POST['lastName']) OR !isset($_POST['creditCardType']) OR !isset($...
true
3e391f1d5f7077f96218f874353ff8d46127e8c2
PHP
moliverrobles/employee-management-symfony2.8
/src/AppBundle/Controller/EmployeeController.php
UTF-8
9,775
2.59375
3
[]
no_license
<?php namespace AppBundle\Controller; use AppBundle\Entity\Employee; use AppBundle\Entity\User; use AppBundle\Entity\AttendanceRecords; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use...
true
43fddd97c83798c29cca7b3563512f4b28116c25
PHP
Vlad2111/polls
/model/MAnswerUser.php
UTF-8
1,351
2.515625
3
[]
no_license
<?php class MAnswerUser { private $id_answer_users; private $id_testing; private $id_question; private $id_answer_option='null'; private $answer_user='null'; private $skip_answer; public function getIdAnswerUsers(){ return $this->id_answer_users; } public fun...
true
1a4dedc8b179d3c86abcb0f5d61653e96694944a
PHP
phug-php/phug
/src/Phug/Parser/Parser/Node.php
UTF-8
2,166
3.171875
3
[ "MIT" ]
permissive
<?php namespace Phug\Parser; use Phug\Ast\Node as AstNode; use Phug\Lexer\TokenInterface; use Phug\Util\Partial\LevelGetTrait; use Phug\Util\SourceLocationInterface; /** * Represents a node in the AST the parser generates. * * A node has children and always tries to reference its parents * * It also has some ut...
true
01e984fce486574a4719e3862247391d44402f9f
PHP
StichtingL3D/tools.l3d.nl
/backend/models/cronjobs.php
UTF-8
2,416
2.734375
3
[ "MIT" ]
permissive
<?php /*------------------------------------------------------------------------------ cronjobs ------------------------------------------------------------------------------*/ class cronjobs_model extends models { protected $table = 'cronjobs'; private $max_concurrent_jobs = 5; /*----------------------------------...
true
b295be2bf27b29e7282e9f5ba7c4aa01a24eb9d9
PHP
service-boiler/prf
/Site/Exports/Excel/MissionExcel.php
UTF-8
12,872
2.625
3
[ "Unlicense" ]
permissive
<?php namespace ServiceBoiler\Prf\Site\Exports\Excel; use Carbon\Carbon; use ServiceBoiler\Prf\Site\Models\Mission; use ServiceBoiler\Prf\Site\Models\User; use ServiceBoiler\Prf\Site\Support\Excel; class MissionExcel extends Excel { /** @var \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet Sheet */ private $_sh...
true
816adb7ff8c90b83ee7a213360bd9f535a0bff20
PHP
dexit/teams-connector
/src/Actions/ActionCard.php
UTF-8
1,858
2.9375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Skrepr\TeamsConnector\Actions; use Skrepr\TeamsConnector\Inputs\InputInterface; /** * @author Evert Jan Hakvoort <evertjan@hakvoort.io> */ final class ActionCard implements ActionInterface { private string $name; /** * @var InputInterface[] */ privat...
true
15b358cd762a1d7c802cc914ab14e3054bdb0c65
PHP
brainfoolong/nreeda
/modules/Form/class/Validator/Length.class.php
UTF-8
1,597
2.75
3
[ "MIT" ]
permissive
<?php /** * This file is part of Choqled PHP Framework and/or part of a BFLDEV Software Product. * This file is licensed under "GNU General Public License" Version 3 (GPL v3). * If you find a bug or you want to contribute some code snippets, let me know at http://bfldev.com/nreeda * Suggestions and ideas are also a...
true
a6bf42cd365c45ed15ad75727175a22880bf377b
PHP
Cyberbyte-Studios/Life-Control
/views/action/edit-actionW.php
UTF-8
1,256
2.75
3
[]
no_license
<?php // create a database connection, using the constants from config/db.php (which we loaded in index.php) $db_connection = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME); if (isset($_POST["wantedID"])) { //vehOwner vehClass vehSide vehType vehPlate vehAlive vehAct vehCol vehInv $wantedID = $_POST["wantedI...
true
c36b7156387288340d36c5a65e4e3799a482376c
PHP
Ambarishpk/dotcc
/admin/register.php
UTF-8
8,410
2.578125
3
[]
no_license
<?php session_start(); $msg=""; if (isset($_POST["sub"])) { require_once "dbregister.php"; require_once "phpmailer/class.phpmailer.php"; $roleid= 1; //***1-admin***2-user *** $name = trim($_POST["uname"]); $password = trim($_POST["pass1"]); $email = trim($_POST["email"]); $sql = "SEL...
true
81f56801244866e4b72a196f9521ad2a9d5674bd
PHP
devqx/med
/classes/FluidChart.php
UTF-8
3,666
2.859375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: robot * Date: 5/19/16 * Time: 4:25 PM */ class FluidChart implements JsonSerializable { private $id; private $patient; private $route; private $volume; private $type; private $user; private $timeEntered; private $inPatient; /** * FluidChart constructor. * @pa...
true
460403cde49980e1ee167983870e15cfa24f972e
PHP
nmjbhoffmann/localhost
/functions.php
UTF-8
8,350
2.734375
3
[]
no_license
<?php function localhost_redirect($url){ if (($_SERVER['SERVER_NAME'] == 'localhost') && $url !="") { header('Location: '.$url); } } /** * Sitelister * * This is a self contained class designed to do site listing with default or saved * parameters. */ class Sitelister { public $defaults; ...
true
749b47974a43d342cd1275743b63e2d32c083efc
PHP
johnfelipe/open-genghis
/app/models/Exercise.php
UTF-8
243
2.515625
3
[ "MIT" ]
permissive
<?php class Exercise extends Eloquent { protected $table = 'exercises'; protected $guarded = array(); public static $rules = array(); public function variables() { return $this->hasMany('Variable', 'exercise_id'); } }
true
a6a76363f2f21e1fd3d831076842fe8f58dd3369
PHP
alishahidi/image-rend-php
/src/ImageRend.php
UTF-8
2,849
2.71875
3
[]
no_license
<?php namespace Alishahidi\ImageRendPhp; use Intervention\Image\Gd\Font; use Intervention\Image\ImageManager as Manager; use Ramsey\Uuid\Uuid; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Filesystem\Path; class ImageRend { private $driver; private $directory; private $dateFormat =...
true
bac3755547d96c2f551f182c2a6dbe7082dca3c3
PHP
JohannesBeranek/steroid
/util/class.Match.php
UTF-8
1,004
3.21875
3
[]
no_license
<?php class Match { final public static function multiFN( $str, array $arr, $flags = 0 ) { foreach ($arr as $entry) { if (fnmatch($entry, $str, $flags)) { return true; } } return false; } final public static function DNparts( array $patternParts, array $strParts ) { if (count($patternParts) !== ...
true
e73db42375d67bbed31e9401268aa33c850d6b81
PHP
NamelessCoder/numerolog
/tests/Unit/CalculatorTest.php
UTF-8
2,170
2.859375
3
[ "MIT" ]
permissive
<?php namespace NamelessCoder\Numerolog\Tests\Unit; use NamelessCoder\Numerolog\Calculator; /** * Class CalculatorTest */ class CalculatorTest extends \PHPUnit_Framework_TestCase { /** * @param float $value * @param boolean $expected * @dataProvider getIsSignedTestValues */ public function testIsSigned($v...
true
31dc715a0fca4e4769175d411518a067243b1468
PHP
fauxcompany/escreve_numero
/tests/DecimoTest.php
UTF-8
6,908
2.8125
3
[ "Apache-2.0" ]
permissive
<?php namespace fauxcompany\EscreveNumero\Test; use PHPUnit\Framework\TestCase; use fauxcompany\EscreveNumero\Numero; final class DecimoTest extends TestCase { public function testDecimo() { $this->assertEquals( "um décimo", Numero::extenso("0.1", Numero::DECIMAL) ); } public function testCentesimo() ...
true
28710bcfdc07d738f5fa188d569f4f9a4e89983f
PHP
lucasdamianjohnson/databaseclassfinalproject
/display_test.php
UTF-8
2,844
3.03125
3
[]
no_license
<!--This page is exactly like display_answer.php but it is for the past exams so it does not submit the student's answers to the database--> <?php if(isset($_POST["submit"])){ session_start(); $uid = $_SESSION["uid"]; $ename = $_POST["ename"]; echo " <head> <style> body{ background-color: grey; } p,h2,h4,strong { col...
true
79fe47048904e9b16f3517570490391dbb76a5f7
PHP
public0/emagame
/src/Domain/Models/AbstractClasses/AbstractCharacter.php
UTF-8
1,883
3.546875
4
[]
no_license
<?php namespace Game\Domain\Models\AbstractClasses; use Game\Domain\Models\Interfaces\CharacterInterface; class AbstractCharacter implements CharacterInterface { private $_name = ''; /* * type: 0 the hero * type: 1 not the hero */ private $_type = 0; private $_health = 0; private $...
true
b3b51c65c8dc35ef3c5d1e9932249d85a57a3035
PHP
lbattaglioli2000/cspy
/app/Http/Controllers/ChallengeController.php
UTF-8
1,407
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Unit; use App\Lesson; use App\Challenge; class ChallengeController extends Controller { public function __construct() { $this->middleware('auth:admin'); } public function index(Request $request) { $units = Unit::a...
true
8dcb682b409b5156a8b148b9af6311925aaaa07b
PHP
adrianbanu/Camagru
/config/database_functions.php
UTF-8
2,750
2.53125
3
[]
no_license
<?php /*Here we create the tables and put in them some initial information: users photos likes comments filters */ function create_users_table($conn) { $conn->query("CREATE TABLE IF NOT EXISTS users ( id INT PRIMARY KEY AUTO_INCREMENT, login VARCHAR(255) UNIQUE, mail VARCHAR(255) UNIQUE, groupe V...
true
c22a3fd66dfcb30392fa427283560d08b588aa20
PHP
DoocaCommerce/Integrator-PHP-SDK
/src/Providers/Requests/Stock/StockUpdateRequest.php
UTF-8
750
2.546875
3
[ "MIT" ]
permissive
<?php namespace DoocaCommerce\Integrator\Providers\Requests\Stock; use DoocaCommerce\Integrator\Providers\Requests\Request; class StockUpdateRequest implements Request { protected int $variation_id; protected int $balance; public function __construct( int $variation_id, int $balance ...
true
1a1808163a295b07e58485069246061a6157f063
PHP
DongNguyenTien/RecommendationSystem
/app/Console/Commands/CreateRecommendationListOfUser.php
UTF-8
1,212
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use App\CV; use App\Job; use App\Members; use App\User; use Illuminate\Console\Command; class CreateRecommendationListOfUser extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'user:recomme...
true
018fa5478fc2c70f18e8199e1517ee27dcc686c1
PHP
fyradigital/laravel-toolkit
/src/Traits/Strings.php
UTF-8
1,430
2.859375
3
[]
no_license
<?php namespace FyraDigital\LaravelToolkit\Traits; trait Strings { public function formatDate($strDate, $format='n/d/y') { if ($strDate === NULL) { return '&ndash;'; } else { return \Carbon\Carbon::parse($strDate)->format($format); } } public function truncW...
true
f2b7ba0b134dc0f6123733a4c1a42e9805de093e
PHP
Bettelheiman/wsb-1
/pracownia_aplikacji_internetowych/zIinz_4_7s_19_20_Inf_Sp1/3_wiele_obiektow.php
UTF-8
1,131
3.03125
3
[]
no_license
<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <link rel="stylesheet" href="./css/style.css"> <title></title> </head> <body> <?php require_once('./class/Samochod.php'); $auta = array(); for ($i=0; $i < 5 ; $i++) { $auta[$i] = new Car('Polska'); ...
true
ab1dbfe55b5d63b8a0cbcb421396c2db85e77c7f
PHP
ucf-nstc/sudipta-seal.ucf.edu
/includes/functions.php
UTF-8
644
2.640625
3
[]
no_license
<?php function getPageTitle() { if (!$_GET['page']) { return 'Home'; } else { return $_GET['page']; } } function displayGallery($dir) { $images = scandir($dir); foreach ($images as $image) { if (isValidFile($image)) { $path = $dir . $image; include('./views/partials/gallery-image.php'); } } } fu...
true
80b6d15ede42159b3f0f4bc68e095f5e3d48eae6
PHP
martinborek/information-system-web-application
/include/ui/Postmen.php
ISO-8859-2
12,446
2.6875
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ require_once 'include/Security.php'; require_once 'include/BackendInterface.php'; require_once 'include/ui/Message.php'; requir...
true
0c12f1b694f911e72a4c6306f3ad5e7efa8ef03e
PHP
LordlyCat/zhiHu
/ZhiHu/myPHP/login.php
UTF-8
637
2.546875
3
[]
no_license
<?php $username = $_POST["username"]; $password = $_POST["password"]; //echo $username; //echo $password; //$captcha = $_POST["captcha"]; $db = new mysqli('127.0.0.1','root','123','zhiHu'); /*$db->select_db("cat");*/ $result = mysqli_query($db,"SELECT * FROM users "); $num_results = mysqli_num_rows($result); fo...
true
905c4170230d2a16d36ea63140e6ffc4d32d7073
PHP
adamdrewherbst/php-websocket
/server/lib/WebSocket/Application/Player.php
UTF-8
1,371
3.1875
3
[ "WTFPL" ]
permissive
<?php namespace WebSocket\Application; include_once 'Misc.php'; class Player { private $_pos = array(); private $_vel = array(); private $_id; public function __construct($num) { $this->_id = $num; $poslen = func_num_args() - 1; for($i = 0; $i < DIM; $i++) { if($i < $poslen) $this->_pos[$i] = func_ge...
true
5992fec9083836c05283bc966e4947ced511c195
PHP
ax14m/evaluacionWEB1
/Punto_1.php
UTF-8
2,364
2.703125
3
[]
no_license
<!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+Vmm...
true
b7550c4bbc960a68d8dac8aa25c79c68c622a91a
PHP
tadashii1417/Gallery-Web-Back-End
/api/collection/my_collections.php
UTF-8
1,606
2.578125
3
[]
no_license
<?php ##################################################### #Date: 21:00 3/12/2019 #Author: Dang Bao #In: jwt from client #Out: Return all image in database with their owner info. ##################################################### // required headers include_once '../../config/header.php'; // required to encode js...
true
633edd8ef8083dfb83f61e30f5dedaf5603a1c45
PHP
wellfer123/sispad
/protected/models/ProducaoConsolidadaModel.php
UTF-8
2,316
2.515625
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of ProducaoConsolidadaModel * * @author César Albuquerque */ class ProducaoConsolidadaModel extends CFormModel{ //put your code here public $grupo; public $t...
true
35453441261d6c2e433daa81d0cb665e6c54e693
PHP
power19942/laravel-test
/routes/api.php
UTF-8
1,230
2.65625
3
[]
no_license
<?php use Illuminate\Http\Request; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register API routes for your application. These | routes are loaded by the RouteServicePr...
true
afe049fb73484d1c156b5d7de865e699429a49f1
PHP
Digital-Odyssey/Luxor-Real-Estate-WordPress-Theme
/includes/widget-propertysearch.php
UTF-8
5,510
2.546875
3
[]
no_license
<?php /* Plugin Name: Property Search Widget Plugin URI: http://www.pulsarmedia.ca Description: A widget that displays a property search module Version: 1.0 Author: Pulsar Media Author URI: http://www.pulsarmedia.ca License: GPLv2 */ // use widgets_init action hook to execute custom function add_action('widgets_init...
true
4389ed054aad238b6a8c4b4f56d2203309ea05bd
PHP
1giba/laravel-newrelic
/database/seeds/CustomerTableSeeder.php
UTF-8
1,146
2.6875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use Faker\Factory; class CustomerTableSeeder extends Seeder { const MAX = 100000; /** * Run the database seeds. * * @return void */ public function run() { $faker = Factory::create('pt_BR'); for ($i = 0; $i < self::MAX; $i++) { ...
true
e61405fadea40f32550371b805419b357afa1e22
PHP
kalehrishi/notes
/app/Model/Model.php
UTF-8
659
2.890625
3
[]
no_license
<?php namespace Notes\Model; class Model { /** * @return array */ public function toArray() { $object_array = get_object_vars($this); foreach ($object_array as $key => $value) { if (is_array($value)) { foreach ($value as $index => $object) { ...
true
12c430729bf5040ea16d7b008dbd1b966a7f3d57
PHP
OmegaVersion/shadow
/Hello/Hello.class.php
UTF-8
486
3.59375
4
[]
no_license
<?php /** * 这是一个欢迎的类包 * * 欢迎你开始学习这门课程 * * @author monkee * @date 2013-03-20 */ class Hello { private $name = ''; /** * 使用你的名字来初始化 * * @param string $name 你的名字 */ public function __construct($name = "stranger"){ $this->name = $name; } /** * 说出来,交流一下 * * 1. 会输出一段话 */ public functi...
true
988ea87fe3baa788acf2ba2f24c0d0b110070325
PHP
rieschl/techtalks_data
/validate/Video/Event/EventExists.php
UTF-8
1,324
2.6875
3
[ "MIT" ]
permissive
<?php namespace Lighwand\Validate\Video\Event; use Lighwand\Validate\Loader\EventLoader; use Zend\Validator\AbstractValidator; use Zend\Validator\Exception; class EventExists extends AbstractValidator { const DOES_NOT_EXIST = 'doesNotExist'; protected $messageTemplates = [ self::DOES_NOT_EXIST => 'Th...
true
06c3c17b502b6ec54af375f8f4db5ef5d4f63cdc
PHP
SimonBayol/dev-repo
/entity/Production.php
UTF-8
639
3.265625
3
[]
no_license
<?php namespace entity; /** * Description of Production * * @author Simon */ class Production { private $id; private $nom; private $contenu; private $date; function __construct($id, $nom, $contenu, $date) { $this->id = $id; $this->nom = $nom; $this->contenu = $conten...
true
e82d735ca2d52e869461ce0c20d0d9e5e4f3ee97
PHP
marcelofelipes/Clinica-Veterinaria
/app/Http/Middleware/AutorizaSEC.php
UTF-8
614
2.734375
3
[]
no_license
<?php namespace ClinicaVeterinaria\Http\Middleware; use Closure; use Auth; use Session; class AutorizaSEC { /** * Verifica se o usuário logado é uma secretária. Caso não for, ou seja, for um veterinário ou não está logado, é redirecionado */ public function handle($request, Closure $next) { if(Auth::guest())...
true
51366bf47c14b88a6c8c4071a0fdeb61a2d8c014
PHP
bryyce/PHP-GIT
/Lib/ORM/MyEnregistrement.class.inc
UTF-8
17,944
2.59375
3
[]
no_license
<?php /** * MyEnregistrement.class file * @filesource ./ORM/MyEnregistrement.class * @package ORM */ namespace Lib\ORM; use Config; /** * * Description of MyEnregistrement * * @todo gerer le set pour hbtm * @todo unset poour les relations * @abstract * @category Class * @package ORM ...
true
2882698de834b803f700fef42f96b184005a8808
PHP
davidkyalo/TeaPress
/src/Auth/UserTokens.php
UTF-8
7,723
2.53125
3
[]
no_license
<?php namespace TeaPress\Auth; use WP_User; use Exception; use WP_Session_Tokens; use WP_User_Meta_Session_Tokens; use TeaPress\Http\Request; use Illuminate\Support\Traits\Macroable; class UserTokens extends WP_User_Meta_Session_Tokens { use Macroable; protected static $_session_hook_prefix = 'build_user_session_...
true
3eacb6ad6c9fdbd383588ae860e10dcabe869f6a
PHP
xervice/github-oauth
/src/Xervice/GithubAuth/Business/Model/User/GithubAuth.php
UTF-8
6,017
2.53125
3
[]
no_license
<?php namespace Xervice\GithubAuth\Business\Model\User; use DataProvider\GithubAccessTokenRequestDataProvider; use DataProvider\GithubAccessTokenResponseDataProvider; use DataProvider\GithubRequestDataProvider; use DataProvider\UserAuthDataProvider; use DataProvider\UserCredentialDataProvider; use DataProvider\User...
true
8cbe15c98415f3e8b5a154d1e2e03dacd17c9c5a
PHP
wongyuxuan/PatternMode
/builder/Phone.php
UTF-8
1,432
3.34375
3
[]
no_license
<?php namespace builder; /** * 手机类 * * Class Phone * @package builder */ class Phone implements ProductInterface { /** * 名称 * @var */ private $_name = ''; /** * cpu */ private $_cpu = ''; /** * 储存 */ private $_storage = ''; /** * 内存 */ ...
true
5fe38a158ebd7f66c9e73d752c53584003138e26
PHP
s0utakada/designPattern
/AbstractFactory/DbOrderDao.php
UTF-8
1,529
2.953125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: s_takada * Date: 14/05/14 * Time: 13:13 */ namespace AbstractFactory; require_once 'OrderDao.php'; require_once 'Order.php'; /** * Class DbOrderDao * * @package AbstractFactory */ class DbOrderDao impleme...
true
54f1d151d130c36fbe76dc2bc83adbd90dad4314
PHP
Esperozzz/tasks_for_beginner
/lesson20/task4.php
UTF-8
1,074
3.25
3
[]
no_license
<?php include_once '../header.php'; $formsSend = isset($_POST['submit']); $age = $_POST['age'] ?? ''; switch ($age) { case ('20'): ; $age = 'Менее 20 лет'; break; case ('10-25'): ; $age = 'от 10 до 25 лет'; break; case ('26-30'): ; $age = 'от 26 до 30 лет'; ...
true
b5397aca7691f426adb59f7f7260d740a2e3c288
PHP
sjasthi/tandana
/report.php
UTF-8
11,735
2.84375
3
[ "MIT", "LicenseRef-scancode-other-permissive" ]
permissive
<?php include 'navigation.php'; require_once('db_configuration.php'); if(!isset($_SESSION)) { session_start(); } // Establishing Connection with Server $servername = DATABASE_HOST; $db_username = DATABASE_USER; $db_password = DATABASE_PASSWORD; $database = DATABASE_DATABASE; // Create connection ...
true
f9ea766b2f00dd5a7f2a0b29f412b488eca91273
PHP
diegorafaelvieira/Curso-PHP-Basico
/21-superglobais.php
UTF-8
654
3.28125
3
[ "MIT" ]
permissive
<?php //Superglobais /* $GLOBALS usada para acessar variaveis de qualquer lugar do script php $_SERVER contêm informações sobre cabeçalhos, caminhos e locais de script $_POST $_GET $_FILES $_ENV $_REQUEST $_COOKIE $_SESSION */ $x = 10; $y = 15; function soma() {...
true
a186df9cb1277e3f7e74ff61ad90442ea2e6f78f
PHP
alexfura/Symfony-blog
/website/src/Security/UserVoter.php
UTF-8
1,212
2.59375
3
[]
no_license
<?php namespace App\Security; use App\Entity\User; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\Authorization\Voter\Voter; class UserVoter extends Voter { // access attributes for user const EDIT ...
true
ac87b67d26b46998a82f24f0fb3464dd21e64490
PHP
jtlai0921/AEL008400
/chap05/Chap05-09.php
WINDOWS-1252
271
3.4375
3
[]
no_license
<html> <title> LȻPj </title> <body> <?php echo "While loop: <br>"; $go_on=true; $a=1; while ($go_on) { echo "$a <br>"; $a++; if ($a>5) $go_on=false; } ?> </body> </html>
true
46fd9d7aefb3ddcaeae1e777e7016d3450b83da1
PHP
abamakbar07/dumbwaysB20C4
/soal4/login.php
UTF-8
2,305
2.734375
3
[]
no_license
<?php session_start(); include 'function.php'; if ( isset($_POST['submit']) ) { $email = $_POST['email']; $pw = $_POST['pw']; $result = mysqli_query($conn, "SELECT * FROM users_tb WHERE email = '$email'"); // $_SESSION['user'] = mysqli_query($conn, "SELECT * FROM users_tb...
true
9bd8286e1edf3bd29cf60d73173f9184719ec27e
PHP
ushannimanka/test
/sms.php
UTF-8
1,908
2.703125
3
[]
no_license
<?php class sms { try{ $smsReceiver = json_decode(file_get_contents('php://input'), true); $address = $smsReceiver['sourceAddress']; $requestId = $smsReceiver['requestId']; $applicationId = $smsReceiver['applicationId']; $message = $smsReceiver['message']...
true
3c021c07b1307a592909fb36325f6b5f847a755a
PHP
dheeraj135/foomatic-db-webapp
/inc/db/driver_printer_association.php
UTF-8
12,094
2.609375
3
[]
no_license
<?php include_once("opdb.php"); include_once("translation.php"); include_once("margin.php"); class DriverPrinterAssociation { // Boolean flag to determine if data is present private $loaded; public $data; public $margins = null; public $translation = null; public function __construct($id, $data, $is_prin...
true
bf6f0dfd383149457a8dec1fd14d77d3e3b486ee
PHP
macielbombonato/docker-chamilo
/1.11.2/chamilo-lms-1.11.2/vendor/toin0u/digitalocean/src/DigitalOcean/CLI/Domains/ShowRecordCommand.php
UTF-8
2,116
2.6875
3
[ "GPL-3.0-or-later", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /** * This file is part of the DigitalOcean library. * * (c) Antoine Corcy <contact@sbin.dk> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace DigitalOcean\CLI\Domains; use Symfony\Component\Console\Input\InputArgu...
true
c4f1bb86a16a4f2e6e66476adff2a490cdbf3ac2
PHP
denischiciudean/exercitiu_axway
/database/seeds/SkillsSeeder.php
UTF-8
535
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class SkillsSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('skills')->insert([ [ 'name' => 'PHP', ], [ 'name' => 'UNIX', ...
true
b7a72f920ab5192aff8a51d6127d02284dfc0ff7
PHP
azhai/CuteLib
/src/Cute/Memory/Memcache.php
UTF-8
1,916
2.875
3
[ "MIT" ]
permissive
<?php /** * Project CuteLib * Author Ryan Liu <azhai@126.com> * Copyright (c) 2013 MIT License */ namespace Cute\Memory; /** * Memcache基于memcache扩展 */ class Memcache extends \Memcache implements IMemory { const MEMCACHE_WEIGHT_UNIT = 12; protected $host = ''; protected $port = 0; p...
true
8e876edb58195ba3aad42cc98e214b2988112564
PHP
leandrocostalti/sistema-admin
/paginas/editar.php
UTF-8
4,558
2.59375
3
[]
no_license
<section class="cadastro"> <div class="container"> <div class="row"> <?php include_once('config/conexao.php'); if(!isset($_GET['editar'])){ /*header é uma função de redirecionamento*/ header("Location: index.php"); /*Oculta todos os dados da página depois da linha do erro*/ ...
true
fafc5736b52680ee044a35e69defd677174356c5
PHP
hiravesonali/php-learning
/01-Basic/06-if-else.php
UTF-8
356
3.859375
4
[]
no_license
<?php // if...else statement $x = "I am Hero"; $y = "I am Heroine"; if ($x ==$y){ echo "I am good!"; } else{ echo "I am Bad!"; } // if...elseif..else statement $t = date('H'); echo "<br>"; if ($t <=12) { echo "Good Morning!"; } elseif ($t <=16) { echo "Good Afternoon"; } el...
true
9a24f81005a2accc3109ef31eab80f3e900dbe97
PHP
ErikHaSu/estanciasAct
/graficas/genero.php
UTF-8
1,362
2.671875
3
[]
no_license
<?php include('pconexionp/abrir_conexion.php'); /**masculino y femenino son variables que guardan los query de las consultas hacia los puntajes del sexo correspondiente*/ $masculino = mysqli_query($link, "SELECT actividad1, actividad2, actividad3 FROM punpar WHERE sexo = 'M'"); $femenino = mysqli_qu...
true
dbea913d155a0db23e173f146653a59bb8cfc9d1
PHP
tankist/vkplay
/library/Ras/Logger.php
UTF-8
3,967
2.671875
3
[ "MIT" ]
permissive
<?php namespace Library\Ras; use Phalcon\Logger\AdapterInterface; use Phalcon\Logger\Formatter\Json; class Logger { /** * @var array */ protected $_data = []; /** * @var AdapterInterface */ protected $_adapter; /** * @var string */ protected $_logId; /** ...
true
97f05f28adf6b732be843648a576a02024aee3ec
PHP
WildReindeer/project-lvl1-s470
/src/Games/Gcd.php
UTF-8
728
3.53125
4
[]
no_license
<?php namespace BrainGames\Games\Gcd; use function BrainGames\Play\run; use const BrainGames\Play\QUESTIONS_COUNT; const DESCRIPTION_GAME = 'Find the greatest common divisor of given numbers.'; function getGcd($num1, $num2) { if ($num1 < $num2) { return getGcd($num2, $num1); } return $num1 % $num...
true
ac73605852361e921674f9079e153682af5907af
PHP
levidsmith/WordpressExtensions
/wp-content/themes/twentyseventeen-child/page-leaderboard-management.php
UTF-8
3,090
2.625
3
[]
no_license
<?php /** * The template for displaying all pages * * This is the template that displays all pages by default. * Please note that this is the WordPress construct of pages * and that other 'pages' on your WordPress site may use a * different template. * * @link https://developer.wordpress.org/themes/basics/templ...
true
f00ee1dfcd759010014aa495a50747346157fb4a
PHP
jptanph/utilDb
/lib/util/.svn/text-base/utilCurl.php.svn-base
UTF-8
5,047
3.03125
3
[]
no_license
<?php /** * 유틸리티 - CUrl Request * * <code> * * $utilCurl = utilCurl::getInstance(); * $utilCurl->init(array('url' => 'http://xe2015test.cafe24.com')); * $utilCurl->exec(); * * </code> * * @package util * * @author ul jung * @version 1.0 */ class utilCurl { // /** // * CUrl 인스턴스 반환 // ...
true
f3d402a65551d22be4b51f83faa9ec0ae2bfd872
PHP
AreusDZ/Projets
/travaux/exemple/4_2.php
UTF-8
277
3.09375
3
[]
no_license
<?php $heure=readline("saisir les heures "); $minute=readline("saisir les minutes "); $minute++; if($minute==60){ $minute=0; $heure++; if($heure==24){ $heure=0; } } echo"Dans une minute il sera $heure heure(s), $minute minute(s)";
true
5a690e4bdb97d5a4c57d2d2af3904d5db4640990
PHP
IBMS-Network/IBMS-Network
/classes/clsEvent.php
UTF-8
3,604
2.78125
3
[]
no_license
<?php namespace classes; use classes\core\clsDB; class clsEvent { static private $instance = NULL; private $__tablename__ = 'events'; private $db = ""; public static function getInstance() { if (self::$instance == NULL) { self::$instance = new clsEvent(); ...
true
6a660d3e91da4100653519983999985c8f782193
PHP
nawarajsubedi25/g2-poc
/MarkerQuery.php
UTF-8
438
2.640625
3
[ "MIT" ]
permissive
<?php include 'DatabaseConnection.php'; getZipcode("home"); if(isset($_POST['zip_code'])) { getZipcode($_POST['zip_code']); } function getZipcode($geocoder) { $raj= new DatabaseConnection(); $query = "SELECT Zipcode FROM VISITOR"; $result= $raj->returnQuery($query); if ($result->num_rows > 0) ...
true
42fa9f9ed1bda4cf8797598bcce3b7111dc86435
PHP
giovandrea/AMM_Project_2014
/MusicAMM/php/controller/AmministratoreController.php
UTF-8
9,462
2.578125
3
[]
no_license
<?php include_once 'BaseController.php'; include_once basename(__DIR__) . '/../model/CD.php'; include_once basename(__DIR__) . '/../model/CDFactory.php'; include_once basename(__DIR__) . '/../model/UserFactory.php'; /** * Controller che gestisce la modifica dei dati dell'applicazione relativa agli * amministratori ...
true
7ac3e5e58db1b081ce86c8bb899fa584fe1e58c3
PHP
Moutarde/apiadmin
/deactivate.php
UTF-8
1,087
2.515625
3
[]
no_license
<?php function apiadmin_deltree($dirname) { // Sanity check if ( !file_exists($dirname) ) { return false; } // Simple delete if it is an ordinary file or link if ( is_file($dirname) || is_link($dirname) ) { return unlink($dirname); } // Loop through each entry in the folder $dir = di...
true
896f531eb0af9ab2c07de4f80a6a47746f94f5c1
PHP
siestaatnoon/abstract-cms
/api/App/Database/Driver/Result.php
UTF-8
1,935
2.921875
3
[]
no_license
<?php namespace App\Database\Driver; /** * Result class * * Provides the method definitions for the query result set corresponding with a database driver. * * @author Johnny Spence <info@projectabstractcms.com> * @copyright 2014 Johnny Spence * @link http://www.projectabstractcms.com * @versio...
true
ac4801e9519cfb71a22ab5a1c8964792e76f3b99
PHP
taibuiqn/TTTN
/4_Source Code/Service/JewelryShop/index.php
UTF-8
731
2.546875
3
[]
no_license
<?php include('connect/connect.php'); $products = $mysqli->query('SELECT p.id_product, p.name as name ,p.id_type as idType, t.name as nameType, p.price, p.description, GROUP_CONCAT(i.link) AS image FROM product p LEFT JOIN image i ON p.id_product = i.id_product inner join product_type t ON t.id_type = p.id_type...
true
0beb27d1f8b6d81794239f418863fffb59e91047
PHP
Reached/text-widget
/src/View/Components/TextWidget.php
UTF-8
1,342
2.625
3
[ "MIT" ]
permissive
<?php namespace Reached\TextWidget\View\Components; use Reached\TextWidget\TextWidgetModel; use Illuminate\View\Component; use Illuminate\View\View; class TextWidget extends Component { public $name; public $widgetFound = false; /** * Create a new component instance. * * @param $name ...
true
5ad1a509e3ebaa183cb96a70145d3c8f5819a367
PHP
guikubivan/Public-Media-Wordpress-Plugins
/wp-content/plugins/wfiu_playlist/parser/myfunctions.inc
UTF-8
9,503
2.890625
3
[]
no_license
<?php //Needed functions for PHP < 5 //======================================== if(!function_exists('str_ireplace')) { function str_ireplace($search,$replace,$subject) { $search = preg_quote($search, "/"); return preg_replace("/".$search."/i", $replace, $subject); } } if(!function_exists('get_headers')) { func...
true
6e0abc0f01429ec12cd46f5c65763488c822c946
PHP
AdamKyle/helpscout-api
/src/Api/Delete/Collection.php
UTF-8
1,554
2.609375
3
[]
no_license
<?php namespace HelpscoutApi\Api\Delete; use App\HelpScout\lib\HelpScout\Api\ApiClient; use HelpscoutApi\Contracts\ApiKey; use HelpscoutApi\Contracts\Collection as CollectionContract; use GuzzleHttp\Client; use GuzzleHttp\Psr7\Response; use GuzzleHttp\Exception\BadResponseException; /** * Deals with Deleteing Colle...
true
788d0ad047be9341433e9d6fdfe53db586762211
PHP
pkotgire/Blog
/searchResults.php
UTF-8
2,305
2.671875
3
[]
no_license
<?php require_once("support.php"); session_start(); // check if user has logged in if(!$_SESSION["loggedin"]) { header("Location: login.php"); } // connect to database and get info on user $db = new DBConnection(); $username = $_SESSION["username"]; $searchTerm = trim($_GET['q']); $results = $...
true
0c18e398f93cfe9d205afa365fa285a07448b053
PHP
breeze-php/breeze-graphql
/src/Schema/Factory/Schema.php
UTF-8
1,779
2.5625
3
[ "MIT" ]
permissive
<?php namespace Breeze\GraphQL\Schema\Factory; use Interop\Container\ContainerInterface; use Zend\ServiceManager\Factory\FactoryInterface; use Breeze\GraphQL\Schema\Schema as GraphQLSchema; /** * Class Schema */ class Schema implements FactoryInterface { /** * @param ContainerInterface $container * @...
true
556df9eff0634e5bfc1875cc2b60b5e49b40b6bb
PHP
Ermek-Assylhozhanov/it-blog
/media/includes/sidebar.php
UTF-8
2,706
2.59375
3
[]
no_license
<?php /** * @var string $connection * @var string $config * @var string $categories */ ?> <div class="block"> <h3>Топ читаемых статей</h3> <div class="block__content"> <div class="articles articles__vertical"> <?php $articles = mysqli_query($connection, "SELECT * FROM...
true
35cd4ec5a0dd5d7fec1bec2d7eea841b69e3587b
PHP
parovozov/sceleton-for-work-amo-bitrix-crm
/redirect.php
UTF-8
2,938
2.546875
3
[]
no_license
<?php ini_set( 'error_reporting', E_ALL ); ini_set( 'display_errors', 1 ); ini_set( 'display_startup_errors', 1 ); include_once( __DIR__ . '/crm_base.php' ); include_once(__DIR__ .'/externalclass/vendor/autoload.php'); include_once __DIR__ . '/externalclass/vendor/amocrm/oauth2-amocrm/src/AmoCRM.php'; use Am...
true
35c8e27678a8591426de32604004b063e22b5801
PHP
appino/blockchain
/src/Objects/AddressBalance.php
UTF-8
735
2.875
3
[ "MIT" ]
permissive
<?php namespace Appino\Blockchain\Objects; class AddressBalance{ public $address; public $final_balance; public $n_tx; public $total_received; public function __construct($address, $params){ $this->address = $address; $this->final_balance = data_get($params, 'final_balance'); ...
true
533bae69642a0c4415b648a7f2ba8ea411593d04
PHP
flatcap/craggy-site
/libs/climb_type.php
UTF-8
1,119
2.515625
3
[]
no_license
<?php set_include_path ('../libs'); include_once 'utils.php'; function climb_type_get($db) { static $climb_type = null; if ($climb_type === null) { include_once 'db.php'; include 'db_names.php'; $climb_type = db_select ($db, $DB_CLIMB_TYPE); } return $climb_type; } function climb_type_match ($db, $test)...
true
05315d83f48142c61be92afef4c25cb835c4ef9d
PHP
SabrineMihni/devinweb-backend
/database/seeds/CitySeeder.php
UTF-8
438
2.59375
3
[]
no_license
<?php use Illuminate\Database\Seeder; class CitySeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $cities = ['Rabat', 'Casa', 'Tangier']; foreach ($cities as $city) { \Illuminate\Support\Facades\DB::table('ci...
true
66fdb7c055dd965fce6de11fb408cbf10a53b533
PHP
Richar793/infraero-php-mysql-wsdl-daemon
/site/flight_daemon.php
UTF-8
12,545
2.875
3
[]
no_license
<?php require_once('lib/nusoap.php'); error_reporting(E_ALL ^E_NOTICE); ini_set('display_errors', 1); date_default_timezone_set("America/Sao_Paulo"); set_time_limit(0); // dados conexao bd $host = "localhost"; $username = "root"; $password = "vertrigo"; $database = "infraero"; $mtime = microtime(); $mtime = expl...
true
32190e93a8877fc1f21a1aa18ff0000f10f0c080
PHP
Titil364/jreadsfirstproject
/model/ModelInformation.php
UTF-8
1,994
3
3
[]
no_license
<?php require_once File::build_path(array('model', 'ModelAssoc.php')); class ModelInformation extends ModelAssoc{ private $personnalInformationName; private $informationName; private $visitorId; protected static $object = "Information"; protected static $primary1 = "personnalInformationName"; protected ...
true
12e4a6f9566f4036c41906e1f1285b736ebc0871
PHP
adosiak/onlinestore
/user/delete.php
UTF-8
439
2.5625
3
[]
no_license
<?php //session_start(); $login = $_POST["login"]; $passwd = $_POST["passwd"]; $out = unserialize(file_get_contents("../db/passwd")); $i = 0; foreach($out as $val) { if ($val["login"] == $login && $val["password"] == hash("whirlpool", $passwd)) { unset($out[$i]); file_put_contents("../db/passwd", s...
true
d7cee487b02c10a70e7e47282be1b03bf45a6648
PHP
p5ych0/laracrypt
/tests/UUIDTest.php
UTF-8
4,065
2.71875
3
[ "MIT" ]
permissive
<?php namespace P5ych0\Laracrypt\Tests; use P5ych0\Laracrypt\UUID; use Illuminate\Contracts\Encryption\EncryptException; use Illuminate\Contracts\Encryption\DecryptException; /** * Class UUIDTest */ class UUIDTest extends TestCase { /* -----------------------------------------------------------------------...
true
5118cdf125a8821b982c09a32791ead6ace85276
PHP
julien-c/twitter-cli
/src/commands/FollowersCommand.php
UTF-8
1,051
2.6875
3
[]
no_license
<?php use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class FollowersCommand extends BaseCommand { protected function configure() { $this ->setName('fol...
true