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
1448a76e6624f84698460f79a75c4617e8ebd274
PHP
chenBiyi/STOCK-TRANSACTIONS
/createdatabase.php
UTF-8
1,300
3.046875
3
[]
no_license
<?php ini_set('display_errors',1); $servername = "localhost"; $username = "root"; $password = "3wmV4iVKvdF9"; $Databasename = "myDBbiyi"; // Create connection $conn = new mysqli($servername, $username, $password, $Databasename); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn...
true
728e061bfee81863492ba64a0b1f6ef0551404a1
PHP
il-yes/pimp
/src/UserBundle/Entity/Client.php
UTF-8
1,245
2.5625
3
[]
no_license
<?php namespace UserBundle\Entity; use Doctrine\ORM\Mapping as ORM; use UserBundle\Model\UserTrait; /** * Client * * @ORM\Table(name="user_client") * @ORM\Entity(repositoryClass="UserBundle\Repository\ClientRepository") */ class Client extends User { use UserTrait; public function __construct() { ...
true
b40aabf875b8954ac6bd3b00a51120e53457d05b
PHP
AyushWebDev/Batman-Shopping-Site
/product.php
UTF-8
2,456
2.578125
3
[ "MIT" ]
permissive
<?php session_start(); include "helper.php"; if(!isset($_SESSION['_login'])) { flash("danger","please login"); header("location:login.php"); die(); } ?> <?php include "header2.php"; include "connect.php"; try{ $conn=connect(); $sql="select * from category;"; $stmt=$conn->prepar...
true
7dd1d0a351532fc91df30ed6931c3146ff92c150
PHP
eru123/NoEngine
/src/ListType.php
UTF-8
5,907
3.109375
3
[ "MIT" ]
permissive
<?php namespace eru123\NoEngine; use \Iterator; class ListType implements Iterator { private $index = 0; private $position = null; private $array = []; public function __construct($arr = []) { $this->rewind(); $this->array = $arr; } public function rewind(): void { ...
true
7f6a05efd9ad1fb18e5aab19601a0456f58a7818
PHP
navdeepsingh/object-oriented-bootcamp
/Inheritance/Animal2.php
UTF-8
522
3.6875
4
[]
no_license
<?php // If I dont want you to instantiate the Parent class Animal then i will make it abstract abstract class Animal{ abstract protected function getCategory(); } class Tiger extends Animal{ public function getCategory() { return 'Wild'; } } class Lizard extends Animal{ public function getCategory() { ...
true
77f79a2397a0055c0e8020ec116de2b6ae4ca47f
PHP
goran-olbina/personalLibrary
/models/RoomModel.php
UTF-8
850
2.546875
3
[]
no_license
<?php namespace App\Models; use App\Core\Field; use App\Validators\NumberValidator; use App\Validators\StringValidator; use App\Validators\BitValidator; class RoomModel extends \App\Core\Model { protected function getFields(): array { return [ 'room_id' ...
true
ec22ab4bd8b9c4719c4d6848438851a0a562c504
PHP
bartbart2003/LibreAnswer
/next.php
UTF-8
13,784
2.65625
3
[ "MIT" ]
permissive
<?php session_start(); // Main require_once 'private/main.php'; // Translations require_once 'lang.php'; (isset($_SESSION['gameStarted']) && $_SESSION['gameStarted']) or die("Error: Game not started!<br><a href='index.php'>Return</a>"); ?> <!DOCTYPE html> <html> <head> <title>LibreAnswer</title> <link rel="shortcut ico...
true
997ec9a802e1cca5ec695a3525f2bbfc1a55b6ef
PHP
flixbeat/cubictalk
/_paging handler - dave/sample_with_search.php
UTF-8
2,128
2.515625
3
[]
no_license
<?php function x($pageNumber=null){ $pageNumber = $pageNumber==null ? 1:$pageNumber; if( isset($this->data) ){ $this->Session->write('searchInfo',$this->data); } $searchInfo = $this->Session->read('searchInfo'); # SEARCH if( isset($searchInfo) ) { $teaName = $searchInfo['GroupLesson']['tea_nam...
true
e5476b65657f78a2fece41bd3fd18c18cd314728
PHP
romandots/dc-core
/app/Repository/Exceptions/ScheduleSlotIsOccupied.php
UTF-8
761
2.640625
3
[]
no_license
<?php /** * File: ScheduleExists.php * Author: Roman Dots <romandots@brainex.co> * Date: 2020-2-21 * Copyright (c) 2020 */ declare(strict_types=1); namespace App\Repository\Exceptions; use App\Exceptions\BaseException; use App\Models\Schedule; class ScheduleSlotIsOccupied extends BaseException { /** *...
true
cf9e6d42e193e9c6de85234c8ab30f1f22a71ea0
PHP
cavalcanti22/mantosdofutebol
/application/models/Cupons_model.php
UTF-8
1,651
2.609375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Cupons_model extends CI_Model { public $title; public $value; public $code; public $button; public $link; public $text1; public $text2; public $text3; public $text4; public function __construct(){ parent::__construct(); } pu...
true
93a267d365b89fbb4ec7f0662e45c66bfa814a49
PHP
anhnguyen1996/php-basic
/mvc/models/ProductModel.php
UTF-8
441
2.6875
3
[]
no_license
<?php require_once('./mvc/core/Database.php'); use Core\Database; class ProductModel extends Database { public function __construct() { $this->table = 'products'; parent::__construct(); } public function getProducts() { $sql = "SELECT * FROM $this->table"; re...
true
39a31cd4ba759dc3e571d5d9159f0f28a6c64b46
PHP
ChenTsu/GB_Practice
/PHP/PHP1/DZ4_Vaidakovich/sumForm2.php
UTF-8
2,729
2.921875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: chentsu * Date: 21.05.2016 * Time: 16:03 */ error_reporting(E_ALL); $firstTime = true; $result =''; require 'sum.php'; $requestMethod = "_{$_SERVER['REQUEST_METHOD']}"; if (isset(${$requestMethod}['x']) && isset(${$requestMethod}['y']) && isset(${$reques...
true
0680ff2cb8181d07999b43953dcf4d589275b267
PHP
ApprecieOpenSource/Apprecie
/app/library/Adapters/BaseGetSetAdapter.php
UTF-8
1,955
3.09375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Gavin * Date: 01/07/15 * Time: 11:24 */ namespace Apprecie\Library\Adapters; abstract class BaseGetSetAdapter { protected $_object = null; protected $_excludes = array(); function __construct($object, $excludes = null) { if(! is_object($object)) ...
true
3cf522f24721d702f1b5c28a46396127949a6663
PHP
DeveloperTheExplorer/SelfBased
/feed.php
UTF-8
12,911
2.546875
3
[]
no_license
<?php include_once("php_includes/check_login_status.php"); include_once("classes/develop_php_library.php"); // If user is logged in, header them away if(!isset($_SESSION['username'])) { header('location: /'); } ?><?php // Initialize any variables that the page might echo $u = ""; $userlevel = ""; $avatar = ""; $count...
true
380025524150b7b844cb6f55f3c6874ca30b174f
PHP
senasistencia/prototipo
/clases/notificacion.php
UTF-8
524
2.703125
3
[]
no_license
<?php //clase inicializada class Notificacion{ //atributos de la tabla private $id_notificacion; private $mensaje; private $fecha; #las siguientes variables corresponden #a llaves foraneas de la tabla private $id_formato; private $id_cliente; private $documento_cliente; private $id_aprendiz; priva...
true
124f7b2e9b822c4b377d0bfc6c47280a163afddd
PHP
hank7618/ERP
/epsquad.php
UTF-8
4,927
2.578125
3
[]
no_license
<?php require_once(dirname(__FILE__)."/Connections/DB_config.php"); require_once(dirname(__FILE__)."/Connections/DB_class.php"); $command=$_POST["command"]; if ($command=="小組代碼資料" || $command=="返回") { display_first_page($db); } elseif ($command=="查詢") { display_search_page($db); ...
true
880740d7a34cf6e31bd306e597deb556ae421d05
PHP
wsuwebteam/wsuwp-plugin-blocks
/classes/class-query-rest.php
UTF-8
2,101
2.75
3
[]
no_license
<?php namespace WSUWP\Plugin\Blocks; class Query_Rest { protected static $rest_base = 'wp-json/wp/v2/'; public static function get_posts( $remote_site_url, $args = array() ) { $post_query = array( 'posts' => array(), ); if ( ! empty( $remote_site_url ) && ( false !== strpos( $remote_site_url, 'wsu.edu'...
true
5c29f334ba699366c6a0bb3600ba8ae618f1081b
PHP
surnin/frontpad.ru-sdk
/src/Frontpad.php
UTF-8
4,830
2.71875
3
[ "MIT" ]
permissive
<?php namespace Kolirt\Frontpad; use GuzzleHttp\Client; use GuzzleHttp\Psr7\Response; class Frontpad { private $client; private $api_endpoint = 'https://app.frontpad.ru/api/index.php'; private $secret; public function __construct($secret) { $this->secret = $secret; ...
true
6149e810240198f90f5bfa412cd52e40e05b958b
PHP
NullCodeXx/project-chat
/controler/chat.php
UTF-8
571
3.109375
3
[ "MIT" ]
permissive
<?php //Si erreur applique ce qu'il y a dans !empty sinon continue if(empty($_POST["text"])) { http_response_code(400); //change le header que l'on renvoie au client donc du text. header("content-type: text/plain"); //test page. echo "Erreur pas de contenue récupérer"; //Quitte ici / sort de ...
true
f80ca3aa7d66fd9dcfa9ea59c7204420f796d763
PHP
joan-arteaga/proyecto-ceven
/Ceven1/vistas/vistasEventos/vistaActualizarEventos.php
UTF-8
8,234
2.578125
3
[]
no_license
<?php //@session_start(); if (isset($_SESSION['mensaje'])) { $mensaje = $_SESSION['mensaje']; echo "<script languaje='javascript'>alert('$mensaje')</script>"; unset($_SESSION['mensaje']); } if (isset($_SESSION['actualizarDatosEventos'])) { $actualizarDatosEventos = $_SESSION['actualizarDatosEventos']; ...
true
e158e9f2cdc95ee8f6a578d2758163a133da3260
PHP
jonathansadler/mechedit
/1.0 Release/editManager.php
UTF-8
5,453
2.765625
3
[]
no_license
<?php /******************************************************************************* Mech Edit Copyright 2009 Robert W. Mech ($Rev: 0 $) Website: http://www.mechedit.com/ Author: Robert W. Mech Mech Edit is available for use in all personal or commercial projects under both MIT and GPL licenses. This means...
true
c06fcb92b1c5176c5c0c946812e45bb5493e2bd7
PHP
JunIkeda-AIM/nishiHP
/need_pass_to_enter/database/search_db_pass.php
UTF-8
5,577
2.71875
3
[]
no_license
<?php $gobackURL = "../data/team_member_pass.php"; $dsn = 'mysql:dbname=nishi_swimming_club;charset=utf8;host=localhost'; $user = 'nishi'; $password = 'Onepiece2015'; ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="vi...
true
56d8832da3fb1c07a507f25bb253730d637d223a
PHP
VenoVX/php-pro
/annonce_delete.php
UTF-8
1,506
2.703125
3
[]
no_license
<?php require("class/database.php"); session_start(); $db = new database(); $stmtgetAnnoncen = $db->getConnection()->prepare("select titel from annonce;"); $stmtgetAnnoncen->execute(); $annoncen = $stmtgetAnnoncen->fetchall(); ?> <html> <head> <meta charset="UTF-8"> <title>Annoncen löschen</title> <link rel...
true
75d6fda43f8df449b3efb675d2450584705556af
PHP
zed0rb/crypto-api
/database/seeds/CurrenciesSeeder.php
UTF-8
479
2.65625
3
[ "MIT" ]
permissive
<?php use App\Currency; use Illuminate\Database\Seeder; class CurrenciesSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { if (Currency::count()) { return; } $currenciesToCreate = ['BTC', 'ETH', 'IOTA']...
true
96fc9eb6fbd306a47a9433cf58ef3feea4bb37db
PHP
AMNP76/php-gaming-website
/src/Chat/Application/Command/InitiateChatCommand.php
UTF-8
607
3.09375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Gaming\Chat\Application\Command; final class InitiateChatCommand { private string $ownerId; /** * @var string[] */ private array $authors; /** * @param string[] $authors */ public function __construct(string $ownerId, array $authors) ...
true
bbd2bb59f7efe36f6667f385c9f09dc31c7e4937
PHP
guolei0601/php-test
/testTime.php
UTF-8
164
2.78125
3
[]
no_license
<?php $t = '2015-06-25'; $t= date('Y-m-d H:i:s',strtotime($t) - 60*15); echo $t; echo '<br/>'; $ctime = date ( 'Y-m-d', strtotime ( "-1 month" ) ); echo $ctime;
true
20b42951beec9ac3bfc2e88cb9ea23668ac06161
PHP
mops1k/benchmarks
/benchmarks/ArrayUnique.php
UTF-8
880
3.015625
3
[]
no_license
<?php declare(strict_types=1); use PhpBench\Benchmark\Metadata\Annotations\Iterations; use PhpBench\Benchmark\Metadata\Annotations\Revs; /** * Class ArrayUnique */ class ArrayUnique { private $array = ['a', 'b', 'c', 'b', 'd', 'a']; /** * @Revs(1000) * @Iterations(100) */ public function ...
true
a16e29a9a34292130faa4fd3267c12e297268589
PHP
WasserEsser/Cachet
/app/Composers/StatusComposer.php
UTF-8
1,230
2.828125
3
[ "BSD-3-Clause" ]
permissive
<?php /* * This file is part of Cachet. * * (c) Alt Three Services Limited * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace CachetHQ\Cachet\Composers; use CachetHQ\Cachet\Integrations\Contracts\System; use Illuminate\Co...
true
677f0f926521890480dd274d813932fceed84ed9
PHP
doDomoGu/yun.songtang.net
/components/FileFunc.php
UTF-8
11,822
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\components; use app\models\Dir; use app\models\File; use yii\base\Component; use yii\helpers\ArrayHelper; use yii\helpers\BaseArrayHelper; use yii; class FileFunc extends Component { Const ORDER_TYPE_1 = 'ord Desc,id Desc'; /* * 函数getDropDownList ,实现根据is_leaf(Position表 is_leaf字段) 判断是部...
true
c85aefbea0b7830da55e06f6e65e9a7c59dfe0f6
PHP
roshansourav/CPIS
/functionality/removedoctordb.php
UTF-8
1,156
2.640625
3
[ "MIT" ]
permissive
<?php session_start(); $serverName = "localhost"; $userName = "root"; $password = ""; $dbname = "CPIS"; $conn = new mysqli($serverName, $userName, $password, $dbname); if($conn->connect_error) { die("Connection Failed :" .$conn->connect_error); } $doctorid = $_POST['doctorid']; $hpassword = $_POST['hpasswor...
true
96509e3642f6b09489e198711d2dcbf3fe9a60e1
PHP
avinash2115/zentry
/zentry-api/app/Components/CRM/SyncLog/Mutators/DTO/Mutator.php
UTF-8
705
2.703125
3
[]
no_license
<?php namespace App\Components\CRM\SyncLog\Mutators\DTO; use App\Components\CRM\SyncLog\SyncLogDTO; use App\Components\CRM\SyncLog\SyncLogReadonlyContract; /** * Class Mutator * * @package App\Components\CRM\SyncLog\Mutators\DTO */ final class Mutator { public const TYPE = 'crms_sync_logs'; /** * @...
true
849d521b0acc10ba7669d83cf63820eb2ce36117
PHP
adoy/php-src
/ext/standard/tests/serialize/typed_property_ref_overwrite.phpt
UTF-8
253
2.625
3
[ "PHP-3.01", "IJG", "Zlib", "OLDAP-2.8", "BSD-4-Clause-UC", "ISC", "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-public-domain", "TCL", "BSD-2-Clause", "GD" ]
permissive
--TEST-- Overwriting a typed property reference --FILE-- <?php class Test { public ?object $prop; } $s = <<<'STR' O:4:"Test":2:{s:4:"prop";R:1;s:4:"prop";N;} STR; var_dump(unserialize($s)); ?> --EXPECT-- object(Test)#1 (1) { ["prop"]=> NULL }
true
392900e91dcbd8d43789e5c74cad46c8d5160a70
PHP
AlvarezKevin/QuickCover
/server_php/update_field.php
UTF-8
1,307
2.90625
3
[]
no_license
<?php /* * Following code will update a user information * A user is identified by user id (pid) */ // array for JSON response $response = array(); // check for required fields if (isset($_POST['db_name']) && isset($_POST['db_field_ref']) && isset($_POST['val_ref']) && isset($_POST['db_field_rep']) && isset($_POS...
true
d85e23f8c7a0e7f4d92768ba69e6c1c503848d3f
PHP
jrmontoya/birdmash
/plugin.php
UTF-8
4,966
2.8125
3
[]
no_license
<?php /* Plugin Name: Birdmash Version: 1.0 Author: Haxor */ class Birdmash_Widget extends WP_Widget { /** * Sets up the widgets name etc */ public function __construct() { $widget_ops = array( 'classname' => 'birdmash_widget', 'description' => 'Multiuser Twitter Mashup', ); parent::__construct...
true
a3643c54597a0110a7b97835ec50503cc0c8e45f
PHP
milanezlucas/move-it
/dashboard/class/MI_Form.php
UTF-8
6,189
2.859375
3
[]
no_license
<?php // Form Fiedls for dashboard class MI_Forms { protected $id; protected $field; protected $value; protected $slug; public function field( $form_id, $form_field, $form_value=null, $form_widget_id=null ) { $this->id = $form_id; $this->value = $form_value ? $form_value : ''; $this->slug = $form_w...
true
ff6722e61a0502910087b45070af59534d96808a
PHP
armandojanssen1993/pdoTest
/check.php
UTF-8
937
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: armandojanssen * Date: 3/16/18 * Time: 10:00 AM */ session_start(); $user = "root"; $pass = "root"; try { $conn = new PDO("mysql:host=localhost;dbname=test", $user, $pass); } catch (PDOException $e) { echo $e->getMessage(); } $username = $_POST['username']; $pa...
true
7de10c75d64e628f2094da9970258ba9fce11afd
PHP
ajpadilla/rigorTalks
/src/Testing/CreationMethods/ProductCategory/Product.php
UTF-8
1,172
3.109375
3
[]
no_license
<?php namespace RigorTalks\Testing\CreationMethods\ProductCategory; use RigorTalks\Testing\CreationMethods\ObjectMothers\CategoryMother; use RigorTalks\Testing\CreationMethods\ObjectMothers\TaxMother; class Product { /** * @var string */ private $name; /** * @var string */ private...
true
ad667ee0b4ddd2c714e85619ee985dc69b65768a
PHP
kimkj2017/ScreenDisplay
/sign3-final/views/addDisplayItems.php
UTF-8
6,875
2.921875
3
[]
no_license
<?php require_once('./cse383-f16-screen/models/displayItems.php'); // Upload file function is from W3Schools, // http://www.w3schools.com/php/php_file_upload.asp function uploadFile($id) { //var_dump($_FILES); $target_dir = "uploads/"; $target_file = $target_dir . basename($_FILES[$id]["name"]); $uploadOk =...
true
8a9bd75572b74640f45f0b24ed04931ccff5f80d
PHP
vanilla/garden-daemon
/src/ErrorException.php
UTF-8
544
2.796875
3
[ "MIT" ]
permissive
<?php /** * @license MIT * @copyright 2016 Tim Gunter */ namespace Garden\Daemon; /** * Daemon error exception * * @author Tim Gunter <tim@vanillaforums.com> * @package garden-daemon */ class ErrorException extends \ErrorException { protected $_context; public function __construct($message, $errorN...
true
66dfbc2c435ef6a0d7c157452dd1b7d7d82b5a53
PHP
phpbenchmarks/benchmark-kit
/src/Command/Validate/Configuration/Composer/ValidateConfigurationComposerJsonCommand.php
UTF-8
3,369
2.578125
3
[]
no_license
<?php declare(strict_types=1); namespace App\Command\Validate\Configuration\Composer; use App\{ Command\AbstractCommand, Command\Behavior\GetComposerConfigurationTrait, Command\Configure\Composer\ConfigureComposerJsonCommand, Benchmark\Benchmark }; final class ValidateConfigurationComposerJsonComman...
true
79ddf9a716cc33a2fcdef2fd1d3541adb9880ab3
PHP
KevinGT/edCalc
/checkContent.php
UTF-8
3,381
2.640625
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Elite Dangerous Market Data Entry and Profit Calculating System</title> <meta lang="en" charset="UTF-8"> <link rel="stylesheet" type="text/css" href="style.css" /> <script></script> </head> <body> <header> <h2>Clive Rambo's Basic Elite Dangerous Market Calculation T...
true
b69654108567299b8c0e5c3cd92fe690edae6d63
PHP
ysbaddaden/misago
/test/unit/active_record/test_errors.php
UTF-8
7,146
2.53125
3
[ "MIT" ]
permissive
<?php require_once __DIR__.'/../../unit.php'; use Misago\ActiveRecord; class Test_ActiveRecord_Errors extends Misago\Unit\TestCase { function test_add() { $errors = new ActiveRecord\Errors(); $errors->add('id'); $this->assert_equal($errors->messages, array('id' => array(':invalid'))); $er...
true
9c8a48c54741b8997e4cc57d817cfadf2b6bf4db
PHP
RafaelSSilveira/Event-Sourcing
/src/Controllers/Entry/NewEntry.php
UTF-8
1,132
2.8125
3
[]
no_license
<?php namespace Controllers; require_once './src/Events/Event.php'; require_once './src/Controllers/AbstractSubject.php'; use Events\Event; class NewEntry extends AbstractSubject { private $observers = array(); public function __construct() { } public function attach(Event $observer_in) { ...
true
bcb1e73774883a69e20eec0e1b4cdb4ff45c6495
PHP
ivankuzma911/yii2
/models/RegistrationForm.php
UTF-8
1,111
2.78125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use yii\base\Model; use Yii; /** * LoginForm is the model behind the login form. */ class RegistrationForm extends Model { public $username; public $password; private $_user = false; public function rules() { return [ [['us...
true
25bdc395dd5051cc38b47897f8093e87ad3268d1
PHP
weslyFei2018/learning_php
/day02/mysql.php
UTF-8
617
2.921875
3
[]
no_license
<?php try{ //解析config.ini文件 $config = parse_ini_file(realpath(dirname(__FILE__) . '/config.ini')); //对mysqli类进行实例化 $mysqli = new mysqli($config['host'], $config['username'], $config['password'], $config['dbname']); if(mysqli_connect_errno()){ //判断是否成功连接上MySQL数据库 throw new Exception('数据库连接...
true
67f2d98c0291b833d465ee8b1448585e829d4b47
PHP
getpoirot/Module-Content
/src/Content/Interfaces/Model/Repo/iRepoComments.php
UTF-8
1,143
2.75
3
[ "MIT" ]
permissive
<?php namespace Module\Content\Interfaces\Model\Repo; use Module\Content\Interfaces\Model\Entity\iEntityComment; interface iRepoComments { /** * Insert Comment Entity * * @param iEntityComment $entity * * @return iEntityComment Include persistence insert identifier */ function i...
true
55d2f893933837683c7a129aa2ebc9a089b15ca8
PHP
Lankron/La_Biolangerie
/application/controllers/signup/SignupController.class.php
UTF-8
1,404
3.09375
3
[]
no_license
<?php class SignupController { public function httpGetMethod(Http $http, array $queryFields) { session_start(); // j'appelle ma fonction ou j'ai mis toute mes catégories /* * Méthode appelée en cas de requête HTTP GET * * L'argument $http est un o...
true
7b23a9871f11b12842aa19249019988e57163606
PHP
RazaChohan/Experimentation-Repo
/Ready2Serve/code/controllers/OrderController.php
UTF-8
1,363
2.984375
3
[]
no_license
<?php /** * Contains definition of Order Controller class namely OrderController * * This file contains one class implementation * named Order Controller class. * * @category Training/Learning PHP * @package Ready2Serve * @version v 1.0 */ /** * Contains Order Controller class * * This Class gets a specif...
true
81e388c545c43cd23ec8550f94be66b02e6a50af
PHP
madchops1/meetup-facebook-sync
/facebook-redirect.php
UTF-8
13,479
2.640625
3
[]
no_license
<?php session_start(); include 'config.php'; //die($_REQUEST['code']); // -- Step 2, Get access token from user $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/oauth/access_token?'. 'client_id=588715921194851'. '&redirect_uri=htt...
true
b8c36921140e0da0a4b27e59cec6c1d005738767
PHP
MenonVishnu/phpmysqlworkshopiitb
/Assignment-3/q1.php
UTF-8
1,278
2.90625
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = ""; $database = "result"; //connecting to database: $conn = mysqli_connect($servername, $username, $password,$database); if (!$conn){ mysqli_connect_error(); }else{ echo "Connected To Database!"; } ?> <form action="q1.php" method...
true
03c0ab0e52aad95ac820d619c0a8c0481bc96527
PHP
lhorente/php-messaging-test
/publisher.php
UTF-8
1,327
2.625
3
[]
no_license
<?php include(__DIR__ . '/config.php'); use PhpAmqpLib\Connection\AMQPStreamConnection; use PhpAmqpLib\Exchange\AMQPExchangeType; use PhpAmqpLib\Message\AMQPMessage; $exchange = 'router'; $queue = 'msgs_queue'; $connection = new AMQPStreamConnection(HOST, PORT, USER, PASS, VHOST); $channel = $connection->channel();...
true
0be5a7f8f514dabed6b09f182e68846751148fa3
PHP
Fahrenheit451Tecnologia/tmjsonapibundle
/Model/UuidInterface.php
UTF-8
333
2.875
3
[]
no_license
<?php declare(strict_types=1); namespace TM\JsonApiBundle\Model; interface UuidInterface { /** * @param string $uuid * @return bool */ public static function isValid(string $uuid); /** * @param string $uuid * @return UuidInterface */ public static function fromString(str...
true
19445c2076c7aed73b74c9c2f34ffda534b3e69e
PHP
webeweb/core-library
/src/quadratus/Model/Proprete/DevisDescriptifLocaux.php
UTF-8
6,047
2.71875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the core-library package. * * (c) 2018 WEBEWEB * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace WBW\Library\Quadratus\Model\Proprete; /** * Devis descriptif locaux. * * @author webeweb...
true
fd710aa7354d702db567eb6743e8196e97d0aca4
PHP
proger150/RealForceTest
/tests/Calculator/SalaryCalculatorTest.php
UTF-8
1,647
2.578125
3
[]
no_license
<?php namespace App\Tests\Calculator; use App\Calculator\DeductionsCalculator; use App\Calculator\ExtraChargeCalculator; use App\Calculator\SalaryCalculator; use App\Calculator\TaxesCalculator; use App\Tests\BaseTestCase; class SalaryCalculatorTest extends BaseTestCase { public function testForAlice() { ...
true
0146ba1467852f6d229ae32adfe0ad938b2ea669
PHP
QuantiCZ/MailQ-PHP-Library
/src/MailQ/MailQ.php
UTF-8
1,286
2.515625
3
[ "MIT" ]
permissive
<?php namespace MailQ; use MailQ\Resources\CampaignResource; use MailQ\Resources\CompanyResource; use MailQ\Resources\LogMessageResource; use MailQ\Resources\NewsletterResource; use MailQ\Resources\NotificationResource; use MailQ\Resources\RecipientListResource; use MailQ\Resources\SenderEmailResource; use MailQ\Reso...
true
193525bfcea236c8b1980af63e50761125410a54
PHP
sendz/jelajah
/application/models/Getfrontpage.php
UTF-8
1,399
2.640625
3
[]
no_license
<?php /** * Model for frontpage */ class Getfrontpage extends CI_Model { /* Declaration of Variables */ public $id; public $title; public $content; public $section; public $date; public $author; public $custom; public $show; public function __construct() { /* CI Model constructor */ p...
true
d5fd07c93257c8ed22e0904d18713bb945031c30
PHP
SelrahcD/fizzbuzz
/src/DivisibleSayer.php
UTF-8
524
3.5
4
[]
no_license
<?php namespace SelrahcD\FizzBuzz; final class DivisibleSayer implements Sayer { private $toSay; private $divisor; /** * DivisibleSayer constructor. * @param $divisor * @param $toSay */ public function __construct($divisor, $toSay) { $this->divisor = $divisor; ...
true
9d6abeff3988199dd694f3dadb5e380f74388253
PHP
Pod-Point/reviews-php
/src/Providers/ReviewsIo/Request/Merchant/GetMerchantReviews.php
UTF-8
1,058
2.640625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace PodPoint\Reviews\Providers\ReviewsIo\Request\Merchant; use GuzzleHttp\Psr7\Request; use PodPoint\Reviews\Request\BaseRequestWrapper; /** * Class GetMerchantReviews. */ class GetMerchantReviews extends BaseRequestWrapper { /** * List of required fields. * * @return array */ ...
true
92e97073df59622cb64bc77fcbf42b2ffb5e8dd1
PHP
idezdigital/laravel-bankly-sdk
/src/Data/Account.php
UTF-8
1,181
2.65625
3
[ "MIT" ]
permissive
<?php namespace Idez\Bankly\Data; use Idez\Bankly\Enums\AccountType; use Illuminate\Database\Eloquent\Factories\HasFactory; class Account extends Data { use HasFactory; public string $branch = '0001'; public string $number; public ?string $document = null; public ?AccountType $type = AccountType...
true
eb7a03188f54e5715eb4beeda29ba803467e4aed
PHP
paslandau/data-filtering
/src/Transformation/ArrayFlipTransformer.php
UTF-8
709
2.75
3
[ "MIT" ]
permissive
<?php namespace paslandau\DataFiltering\Transformation; class ArrayFlipTransformer extends AbstractBaseTransformer implements ArrayTransformerInterface { /** * @param ArrayTransformerInterface $predecessor . Default: null. * @param boolean $dataCanBeNull . Default: null (false). */ public funct...
true
dcd42c25a017feec9080f413a75591ef1a6f2b07
PHP
jamesdube/mps-server
/app/Http/Middleware/JsonMiddleware.php
UTF-8
644
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Response; use Intersect\Api\Response\Json; class JsonMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function h...
true
b9d3b4db1d7f218316def7fe192740853786a873
PHP
aykilic/baver
/database/migrations/2018_04_08_212314_sablonii.php
UTF-8
711
2.546875
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class sablonii extends Migration { public function up() { Schema::create('sablon', function (Blueprint $table) { $table->increments('sblid'); $table->integer('sblturuid'); ...
true
edb1095fee7ab8c02373f3faa525e617af0fa955
PHP
octalmage/wib
/php-7.3.0/ext/spl/tests/recursive_tree_iterator_005.phpt
UTF-8
1,973
2.828125
3
[ "BSD-4-Clause-UC", "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "TCL", "ISC", "Zlib", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "blessing", "MIT" ]
permissive
--TEST-- SPL: RecursiveTreeIterator and binary vs unicode (PHP 6.0+) --INI-- error_reporting=E_ALL&~E_NOTICE --FILE-- <?php $ary = array( 0 => array( (binary) "binary", "abc2", 1, ), (binary) "binary" => array( 2, "b", 3 => array( 4, "c", ), "4abc" => array( 4, "c", ), ), ); $it = ne...
true
59a06c8bfa99519694ba636817b6c89865d963d0
PHP
rodesta2212/app-when
/includes/ujian.inc.php
UTF-8
2,479
2.90625
3
[ "MIT" ]
permissive
<?php class Ujian { private $conn; private $table_ujian = 'ujian'; public $id_ujian; public $nama; public $nilai_lulus; public function __construct($db) { $this->conn = $db; } function insert() { $query = "INSERT INTO {$this->table_ujian} VALUES(?, ?, ?)"; $stmt = $this->conn->prepare($que...
true
0c89b610f7493361ae0431c3303b33373342ff02
PHP
thecomputermanonline/discussionapi
/src/GraphQL/Schema/Mutation/AddMetadataField.php
UTF-8
1,137
2.515625
3
[]
no_license
<?php namespace App\GraphQL\Schema\Mutation; use App\Entity\Message; use App\Entity\Thread; use App\Entity\User; use App\GraphQL\DataProvider; use App\GraphQL\Schema\Type\MessageType; use App\GraphQL\Schema\Type\MessageInputType; use App\GraphQL\Schema\Type\MetadataInputType; use App\GraphQL\Schema\Type\MetadataTy...
true
9fddb994689030ad2b86c741579d83796e791774
PHP
joysingh123/SAFTL
/app/Http/Controllers/WebHookController.php
UTF-8
746
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Webhook; class WebHookController extends Controller { public function handle(Request $request){ $data = json_decode($request->getContent(), true); if(count($data) > 0){ foreach ($data AS $d){ $e...
true
5a0fa6831783bd4688b1e8f4f238ea0a64ec2c21
PHP
mlocati/concrete5-since-tagger
/src/Console/Command.php
UTF-8
848
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace MLocati\C5SinceTagger\Console; use MLocati\C5SinceTagger\Application; use Symfony\Component\Console\Command\Command as SymfonyCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; /** * @method \MLocati\C5SinceTag...
true
bb1d31f5e434bac34873d25e20cf966e1ba9fb79
PHP
ko-ko-ko/php-assert
/src/exceptions/LengthNotGreaterException.php
UTF-8
1,180
3.046875
3
[ "MIT" ]
permissive
<?php /** * @link https://github.com/ko-ko-ko/php-assert * @copyright Copyright (c) 2015 Roman Levishchenko <index.0h@gmail.com> * @license https://raw.github.com/ko-ko-ko/php-assert/master/LICENSE */ namespace KoKoKo\assert\exceptions; class LengthNotGreaterException extends ArgumentException { /** ...
true
d632f6e164a81c07f1a757ce53ebe25be9c8bf41
PHP
ambu550/php_course
/34_.php
UTF-8
778
3.4375
3
[]
no_license
<?php /* * 34) Назовите пары ключ\значение в массиве $array. * Добавьте значение 'Jeanne d'Arc' в массив NULL. * Используйте теги "<pre>" для структурированного отображения. * Выведите массив 3-мя различными способами. */ $array = array(FALSE => TRUE, TRUE => FALSE, NULL => array(PHP_OS, "PHP_VERSION")); $array2 = ...
true
4af80f5f5e176b3bf51f1ddaca13dbe37f1bafee
PHP
reinvdv/Gastenboek
/process.php
UTF-8
1,398
2.6875
3
[]
no_license
<?php error_reporting(); //$dbc = mysqli_connect('localhost', 'root', 'root', 'jaar2') or die ('ERROR!'); $dbc = mysqli_connect('localhost', '22810_wall', '22810', 'rein_db') or die ('ERROR!'); if(isset($_POST['submit'])){ $voornaam = mysqli_real_escape_string($dbc, trim($_POST['voornaam'])); $review ...
true
e1c5a5110650d6d0c712fc58aff7a4d6203f5c3e
PHP
zhengkai/soulogic.com-legacy
/inc/pageheader.php
UTF-8
3,894
2.59375
3
[]
no_license
<?php settype($_SERVER["HTTP_HOST"], "string"); settype($_SERVER["REQUEST_URI"], "string"); class PageHeader { protected static $_aAlias = array( "wiki" => "knowlege", "passport" => "platform", "forum" => "group", ); protected static $_aControl = array( /* "wiki" => array( "css" => array("abc.c...
true
440cb8594c662332de7b659a709fde623f230f36
PHP
SamuGS/Proyecto---Sistema-Planilla
/Proyecto - Sistema/action/horario.php
UTF-8
2,081
2.578125
3
[]
no_license
<?php include 'config.php'; ?> <?php if(isset($_POST['agregar'])){ $entrada = $_POST['entrada']; $salida = $_POST['salida']; if(empty($entrada) || empty($salida)){ echo '<div class="alert alert-danger" data-dismiss="alert">Campos vacios!</div>'; }else{...
true
0b225917e116dc1fffafbb282bef57c7f160326d
PHP
ouabel/OCP5
/src/AppBundle/Repository/ProfileRepository.php
UTF-8
1,719
2.609375
3
[]
no_license
<?php namespace AppBundle\Repository; use AppBundle\Entity\Profile; use AppBundle\Entity\Tag; use AppBundle\Entity\Specialty; use AppBundle\Entity\District; use AppBundle\Entity\Province; use Doctrine\ORM\Query; use Pagerfanta\Adapter\DoctrineORMAdapter; use Pagerfanta\Pagerfanta; /** * ProfileRepository * * This...
true
105ace73349c9441067e8c27909abdd51e40ffdf
PHP
KJIACCUK/rep-test
/protected/models/PointUser.php
UTF-8
2,280
2.671875
3
[]
no_license
<?php /** * This is the model class for table "point_user". * * The followings are the available columns in table 'point_user': * @property integer $pointUserId * @property integer $pointId * @property integer $userId * @property integer $pointsCount * @property string $para...
true
b033f2d2cdd9fa11dc2252c4e8c20e2f2e393b80
PHP
donzepedro/laive-cam
/models/Account.php
UTF-8
894
2.71875
3
[]
no_license
<?php namespace app\models; use Yii; use yii\base\Model; /** * ContactForm is the model behind the contact form. */ class Account extends Model { public $first_name; public $phone; public $surname; public $country; public $city; /** * @return array the validation rules. */ p...
true
95499a0ecd423d8799d9887414d8ad613fade0ea
PHP
ondraczsk/MCPELANDCore
/src/legionpe/games/spleef/SpleefArenaConfig.php
UTF-8
1,506
2.578125
3
[]
no_license
<?php namespace legionpe\games\spleef; use pocketmine\block\Block; use pocketmine\level\Location; use pocketmine\math\Vector3; class SpleefArenaConfig{ public $name; /** @var Location */ public $spectatorSpawnLoc; // ssl? xD /** @var Location */ public $playerPrepLoc; /** @var Location[] */ public $playerStar...
true
f0638a70fe6e60fc216e7d7c8fd80db794d89e65
PHP
cedtanghe/elixir
/src/framework/Elixir/Form/Field/Input.php
UTF-8
3,428
2.671875
3
[]
no_license
<?php namespace Elixir\Form\Field; use Elixir\Form\Field\FieldAbstract; /** * @author Cédric Tanghe <ced.tanghe@gmail.com> */ class Input extends FieldAbstract { /** * @var string */ const BUTTON = 'button'; /** * @var string */ const CHECKBOX = 'checkbox'; /** ...
true
74a9a9c843ac60be6a049300729648862a7b6c18
PHP
pucene/old
/src/Component/QueryBuilder/Query/Specialized/MoreLikeThis/DocumentLike.php
UTF-8
690
2.75
3
[ "MIT" ]
permissive
<?php namespace Pucene\Component\QueryBuilder\Query\Specialized\MoreLikeThis; class DocumentLike { /** * @var string */ private $id; /** * @var string */ private $type; /** * @var string */ private $index; public function __construct(string $id, ?string $ty...
true
a5ade82cebe4fe95d8de26766607b71a2dbe4465
PHP
nickimnick/crawler
/setMovieData.php
UTF-8
7,760
2.59375
3
[]
no_license
<?php header('Content-type: text/html; charset=utf-8'); ini_set('max_execution_time', 0); // //function logger($data){ // // $dt = new DateTime(); // $now = $dt->format('d-m-Y H:i:s'); // $data = strip_tags($data); // $logFile = fopen("logs/logs.txt", "a+") or die("Unable to open file!"); // // fwrite($l...
true
a8fd9f5656d4097ca65edb61038bcfbb5260f857
PHP
alex070609/Veville
/choix_vehicule.php
UTF-8
4,123
2.59375
3
[ "MIT" ]
permissive
<?php require_once('inc/init.php'); if( !isConnected() ){ $_SESSION['message'] = '<div class="alert alert-danger">Vous devez être connecté pour consulter cette page ! <a href="" data-toggle="modal" data-target="#inscription">cliquez ici</a> pour vous en créer un</div>'; header('location:'.URL.'index.php'); ...
true
27b5932b6339eb9678f56e5389f44d8cf008646a
PHP
naoyama88/Laravel-Scraping-LineApi
/app/Libs/Util.php
UTF-8
1,567
2.859375
3
[]
no_license
<?php namespace App\Libs; use Illuminate\Support\Facades\Log; class Util { /** * judge current time whether it's between 23:20 and 8:00 * * @param string $now made by function date('xx:xx:xx') * @return bool */ public static function isMidnight(string $now) { $nowTimestam...
true
b2e6cdb546ac61f86420fda872192fee406ba9d3
PHP
Smashkat12/Camagru_Playground
/classes/image.inc.php
UTF-8
1,094
2.796875
3
[]
no_license
<?php class Image { public static function uploadImage($formname, $query, $params) { //return encoded image as string $image = base64_encode(file_get_contents($_FILES[$formname]['tmp_name'])); //create stream $options = array('http'=>array( 'method'=>"POST", 'header'=>"Authorization: Bearer 8f071a0c68940eb804...
true
65d90c817ae3f564b8ba0087f014c4252aa4659f
PHP
Mbuelo/zendesk
/Model/CustomerOrderRepository.php
UTF-8
5,521
2.5625
3
[]
no_license
<?php /** * Copyright Wagento Creative LLC ©, All rights reserved. * See COPYING.txt for license details. */ namespace Wagento\Zendesk\Model; use Magento\Customer\Api\GroupRepositoryInterface; use Magento\Customer\Model\CustomerFactory; use Magento\Framework\Api\DataObjectHelper; use Magento\Framework\Exception\Inp...
true
b8d12cae6d347f0586121ff9ff283d30c9c569eb
PHP
DanielTorres31/miaudote-api
/utils/routeUtils.php
UTF-8
371
2.515625
3
[]
no_license
<?php function getIdNaRequisicao() { $path = $_SERVER['REQUEST_URI']; $path = removeParametrosPath($path); $paths = explode("/", $path); return $paths[count($paths) - 1]; } function removeParametrosPath($path) { return explode("?", $path)[0]; } function getBody() { $body = file_get_contents("...
true
6e95922a984415f733ebe92a7058e14ba129a1cb
PHP
kamaslau/doc4apis
/src/application/controllers/User.php
UTF-8
11,917
2.609375
3
[]
no_license
<?php defined('BASEPATH') or exit('此文件不可被直接访问'); /** * User 类 * * 用户相关功能 * * @version 1.0.0 * @author Kamas 'Iceberg' Lau <kamaslau@dingtalk.com> * @copyright ICBG <www.bingshankeji.com> */ class User extends CI_Controller { /* 类名称小写,应用于多处动态生成内容 */ public $class_name; /* 类名称中文,应用于多处动态生成内容 */ public $class...
true
78ccd23bc840c87ef92f2c82c79153818d7fb64f
PHP
joelk123/SuiviTR
/data.php
UTF-8
1,766
2.9375
3
[]
no_license
<?php $hostname="localhost"; $database="suivitr"; $login = "root"; $password =""; try{ $db=new \PDO("mysql:host=$hostname;dbname=$database",$login, $password); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch(PDOException $ex) { t...
true
d55692a70de59e3901db9100de5ee4f0722046c3
PHP
abaumer/php-login
/4-full-mvc-framework/controllers/user.php
UTF-8
2,850
2.875
3
[ "MIT" ]
permissive
<?php class User extends Controller { public function __construct() { // a little note on that (seen on StackOverflow): // "As long as myChild has no constructor, the parent constructor will be called / inherited." // This means wenn a class thats extends another class has a __construct, ...
true
e85bf581eb48ae5df22923c4a46a724d8ff6bca2
PHP
PasDeBras/openclassrooms_p4
/model/CommentManager.php
UTF-8
1,939
2.75
3
[]
no_license
<?php namespace OpenClassrooms\P4\Model; require_once('model/Manager.php'); class CommentManager extends Manager { public function getComments($postId) { $db = $this->dbConnect(); $comments = $db->prepare('SELECT id, author, comment, DATE_FORMAT(comment_date, \'%d/%m/%Y à %Hh%imin%ss\') AS com...
true
05ee7beff3f4bb760531298a0c4ebddb68c60942
PHP
CityNexus/CNMultiTenant
/packages/CityNexus/DataStore/src/helpers/AWS.php
UTF-8
2,677
2.765625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: sean * Date: 10/25/16 * Time: 5:02 PM */ namespace CityNexus\DataStore; class AWS { public function getS3Details($s3Bucket, $region, $acl = 'private') { // Options and Settings $awsKey = (!empty(config('datastore.S3_key')) ? config('datastore.S3_key...
true
625736c0ee30822863c3ae677d757770e18f7382
PHP
yangp6/laravel_blog
/app/Model/Config.php
UTF-8
480
2.53125
3
[]
no_license
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; /** * Class Config 网站配置模型 * @package App\Model */ class Config extends Model { protected $table = "configs"; protected $primaryKey = "id"; public $timestamps = false; protected $guarded = []; //修改排序 public function change...
true
cf1b9c050b9ce1db67d196b72793732e5dbf2661
PHP
MKelm/papaya-cms
/papaya-lib/system/Papaya/Ui/Dialog/Errors.php
UTF-8
2,134
2.734375
3
[]
no_license
<?php /** * Simple error collector for dialogs * * @copyright 2010 by papaya Software GmbH - All rights reserved. * @link http://www.papaya-cms.com/ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, version 2 * * You can redistribute and/or modify this script under the terms o...
true
2b94b90567f17043c8b5493895e91149ce49c113
PHP
jucarozu/fiscal
/app/Http/Controllers/PropietarioController.php
UTF-8
7,280
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Http\Requests; use Illuminate\Http\Request; use App\Http\Requests\PropietarioAddForm; use App\Http\Requests\PropietarioEditForm; use App\Models\Propietario; use App\Models\VTPropietario; use App\Services\GeneralService; class PropietarioController extends Controller { ...
true
bb0eabfb06c28f1481f521068d57d4d68d5dfd11
PHP
vicpril/idea-lv-vue
/app/Models/Issue.php
UTF-8
1,742
2.53125
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Issue extends Model { protected $fillable = [ 'year', 'tom', 'no', 'part', 'full_no', 'file_title_ru', 'file_title_en', ]; protected $appends = [ 'editLink', ]; ...
true
e101e9293cfaeb0282210c0356ffee8fbf36136b
PHP
hashshura/line-bot-tutorial
/handler/memeid.php
UTF-8
950
2.640625
3
[]
no_license
<?php use \LINE\LINEBot\MessageBuilder\TextMessageBuilder as TextMessageBuilder; function memeid($query, $userId){ $URL = 'http://version1.api.memegenerator.net/Generators_Search'; $apiKey = 'YOUR_MEMEGENERATOR_API_KEY'; if ($query == null){ $result = new TextMessageBuilder("Meme Generator\n\nUsage...
true
07d41b994ce33ea952251faa6bcc92e4c8fe1ea0
PHP
lanmediaservice/lms-video-2.x
/src/app/libs/lib/Lms/Ufs/Index.php
UTF-8
1,064
2.59375
3
[]
no_license
<?php class Lms_Ufs_Index { static $shemaList = array( ':\\' => array('pos' => 1, 'name' => 'local'), ':/' => array('pos' => 1, 'name' => 'local'), "/" => array('pos' => 0, 'name' => 'local'), "smb://" => array('pos' => 0, 'na...
true
888b4e529019a74132864a61f3de0bab439b5299
PHP
felipecarioca/ForumPHP
/model/Login.php
UTF-8
1,435
2.84375
3
[]
no_license
<? class Login extends DB { private $usuario; public function Logar($usuario, $senha) { if(empty($usuario) || empty($senha)) return $this->DadosNaoPreenchidos(); $sql = "SELECT * FROM usuario WHERE usuario = :usuario AND senha = :senha"; $query = $this->db()->prepare($sql); $query->execute(arra...
true
236e3a9db9a0f6901d38783c93f22a39a71043d8
PHP
LinioPay/idle
/src/Job/Jobs/MessageJob.php
UTF-8
2,547
2.515625
3
[]
permissive
<?php declare(strict_types=1); namespace LinioPay\Idle\Job\Jobs; use LinioPay\Idle\Config\IdleConfig; use LinioPay\Idle\Job\Exception\InvalidJobParameterException; use LinioPay\Idle\Job\Worker as WorkerInterface; use LinioPay\Idle\Job\WorkerFactory as WorkerFactoryInterface; use LinioPay\Idle\Message\Message as Mess...
true
80a8bbabb2793f87251b45932e7eac42b6a87354
PHP
jjbc93/EntornoServidor
/privada/CurriculumVitae/Validaciones.php
UTF-8
1,616
3.171875
3
[]
no_license
<?php class Validaciones{ public static function validarUsuario($usuario){ $errores=false; $min=5; $max=12; if(empty($usuario)){ $errores="Debe introducir un usuario"; }else if(strlen(trim($usuario))<min || strlen(trim($usuario))>$max){ $errores="Debe ...
true
ab3fa7401b12af45b597ba840207ea10381a2f7d
PHP
zhujiangtao123/script
/php/www/product/Taomee/Lib/Util/Page.class.php
UTF-8
10,505
3
3
[]
no_license
<?php // +---------------------------------------------------------------------- // | ThinkPHP // +---------------------------------------------------------------------- // | Copyright (c) 2008 http://thinkphp.cn All rights reserved. // +---------------------------------------------------------------------- // | Licens...
true
f8560fa4f93c1799301fd75a10571de180af5325
PHP
ARCANEDEV/LaravelMetrics
/src/Metrics/Concerns/HasExpressions.php
UTF-8
1,004
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Arcanedev\LaravelMetrics\Metrics\Concerns; use Arcanedev\LaravelMetrics\Expressions\{Expression, Factory}; /** * Trait HasExpressions * * @author ARCANEDEV <arcanedev.maroc@gmail.com> */ trait HasExpressions { /* ------------------------------------------------...
true