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
37e6d69a9a356ff1663e9a6e23f63f490f0fd1bc
PHP
ZeeCoder/deployer-v4-concept
/src/Deployer/Deployer.php
UTF-8
1,122
2.703125
3
[]
no_license
<?php namespace Deployer; use Server\Authentication as ServerAuth; use Server\Collection as ServerCollection; class Deployer { private $serverPrototype; public function __construct() { $this->serverCollection = new ServerCollection(); } public static function createServerAsPrototype() ...
true
37efbbaa1ef47a12e2c164203d0a51221720f7a5
PHP
luis-modesto/bolao
/Codigo_Fonte/Aposta.php
UTF-8
2,228
3.265625
3
[]
no_license
<?php require_once "./Placar.php"; require_once "./Jogo.php"; /** *Classe que representa uma aposta feita por um Apostador em um Jogo especifico de um Bolao especifico */ class Aposta { public $placarApostado; public $jogo; /** *Construtor que inicializa uma instancia de Aposta preenchendo os atributos placarApo...
true
d07c23b3a03a49efa7743dc1ba58c48020e99859
PHP
AntonTyutin/fpdf
/examples/star/star.php
UTF-8
688
2.8125
3
[ "LicenseRef-scancode-other-permissive" ]
permissive
<?php require('../../src/fpdf.php'); class PDF_Star extends FPDF { function Star($x, $y, $rin, $rout, $points, $style='D') { if($style=='F') $op = 'f'; elseif($style=='FD' || $style=='DF') $op = 'B'; else $op = 'S'; $dth = M_PI/$points; $th = 0; $k = $this->k; $h = $this->h; $points_st...
true
21bfb4c2b42f9e00d4a25c796a9c993db92d2571
PHP
zogs/Crytotrade
/src/AppBundle/Command/LimitCheckCommand.php
UTF-8
3,261
2.515625
3
[]
no_license
<?php namespace AppBundle\Command; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony...
true
ec8a35f566c83931758ce7fa3cd52ffc2f3507a4
PHP
spiralout/Tracks2
/Repository.php
UTF-8
1,604
2.578125
3
[]
no_license
<?php namespace Tracks2\Event; require_once 'Event.php'; require_once 'JSON.php'; use Tracks2\Domain\Update; use Phonads\ListM, Phonads\Match, Phonads\Success, Phonads\Some; class Repository { function __construct($type) { $this->eventStore = new EventStore(); $this->type = $typ...
true
b6ef9893a3fb372f18bdc59b73da865e86983798
PHP
iammashikur/TeenageFace
/system/classes/class_user.php
UTF-8
33,823
2.53125
3
[]
no_license
<?php class user { public $id; public $network; public $is_logged; public $is_admin; public $info; public $sess; public function __construct() { $this->id = FALSE; $this->network = &$GLOBALS['network']; $this->db1 = &$GLOBALS['db1']; $this->db2 = &$GL...
true
e688908a90c669b174d9a861e3fd16e1753e8250
PHP
Kleberstoff/TeamSpeak-Bots
/Auto_Channel_Creator/index.php
UTF-8
5,924
2.8125
3
[]
no_license
<?php require("libraries/config.php"); // Example: // Channel 1, 2 and 3 are occupied, we create a new Channel // // Channel 1 | Person 1, Person 2, Person 3 // Channel 2 | Person 1, Person 2 // Channel 3 | Person 1 // Channel 4 | Will be created after Channel 3 is being occupied by at least 1 User // If a User joins ...
true
1a418e1aa559a33be9d3f5d9e8a685092fb1f008
PHP
josephjlee/mvc_router
/core/Request.php
UTF-8
303
2.796875
3
[]
no_license
<?php namespace App\Core; class Request { public static function uri() { $uri = trim($_SERVER['REQUEST_URI'], '/'); echo 'from Request class - $uri: '.$uri.'<br>'; return $uri; } public static function method() { return $_SERVER['REQUEST_METHOD']; } }
true
5887655d6b9e596de56cd614a5fb48057d761bc8
PHP
kuchida10145/point-n_com
/include/maintenance/CouponPage.php
UTF-8
9,660
2.515625
3
[]
no_license
<?php /** * クーポン管理画面TOP * */ include_once dirname(__FILE__).'/../common/MaintenancePage.php'; class CouponPage extends MaintenancePage{ protected $id = 0;/* ID */ protected $use_table = 'coupon'; protected $session_key = 'coupon'; protected $use_confirm = true; protected $page_title = 'クーポン管理'; /** * 入...
true
7fd9d27c51954c24724b4ffba52acf8e2bb8e309
PHP
bcryderman/lllt
/application/models/CarrierDiscountMapper.php
UTF-8
4,796
2.59375
3
[]
no_license
<?php class LLLT_Model_CarrierDiscountMapper { protected $_dbTable; public function setDbTable($dbTable) { if (is_string($dbTable)) { $dbTable = new $dbTable(); } if (!$dbTable instanceof Zend_Db_Table_Abstract) { throw new Exc...
true
9b0bc2a60e2d3234eed2ce70e583f8d956cfca57
PHP
SayenkoDesign/chugach-corp
/wp-content/themes/chugach-corp/template-parts/contact/businesses.php
UTF-8
2,763
2.71875
3
[]
no_license
<?php if( ! class_exists( 'Contact_Businesses_Section' ) ) { class Contact_Businesses_Section extends Element_Section { public function __construct() { parent::__construct(); $fields['heading'] = get_field( 'business_heading' ); $fields['logos'] = get_field( 'log...
true
a95b5a678779cbdf3b4e97c3465b05f6059a2263
PHP
robertrico/api-platform-2.5.7
/api/src/Entity/Organization.php
UTF-8
1,897
2.75
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Entity; use ApiPlatform\Core\Annotation\ApiProperty; use ApiPlatform\Core\Annotation\ApiResource; use Doctrine\ORM\Mapping as ORM; /** * An organization such as a school, NGO, corporation, club, etc. * * @see http://schema.org/Organization Documentation on Schema.org ...
true
279b300d4a41cafba5905c9eeecc77809c580a12
PHP
sumonst21/IBConnects
/framework/admin/class-meta-box.php
UTF-8
4,462
2.6875
3
[]
no_license
<?php /** * Extended version of scbPostMetabox class that creates metaboxes on the post editing page. * * @package Framework\Metaboxes */ class APP_Meta_Box extends scbPostMetabox { /** * The cache of the field names used in `is_protected_meta`. * @var array */ protected $field_names; /** * Protected v...
true
81d713bbb3ff9b7715b3a8ce27060caa9bcbd8ce
PHP
Around25/mood-board
/module/Application/src/Application/Db/Entity/Image.php
UTF-8
903
2.703125
3
[]
no_license
<?php namespace Application\Db\Entity; use Doctrine\ORM\Mapping as ORM; use Doctrine\Common\Collections\ArrayCollection; class Image { private $id; private $name; private $user; private $likes; public function __construct() { $this->likes = new ArrayCollection(); } ...
true
cdd37df6f9378f123496e5545b54e789f3f4cf37
PHP
Nyholm/dadata
/src/Model/Response/Version/BaseVersion.php
UTF-8
389
2.703125
3
[ "MIT" ]
permissive
<?php namespace Gietos\Dadata\Model\Response\Version; use Gietos\Dadata\Model\AbstractModel; abstract class BaseVersion extends AbstractModel { /** * @var string */ protected $version; public function getVersion(): string { return $this->version; } public function setVersi...
true
ebae181f96cafdaa2c59a924781ff5fce82d7907
PHP
leorojas86/PHPServer
/api/utils/SessionManager.php
UTF-8
742
2.953125
3
[]
no_license
<?php /*require_once "utils/ServiceResult.php"; class SessionManager { private static $USER_DATA = "USER_DATA"; public static $sessionId = null; public static function StartSession($sessionId = null) { if($sessionId != null) session_id($sessionId); session_start(); SessionManager::$session...
true
cf82b01f1bf4e81b4d965b7b70536ced5a5f727a
PHP
Jbaumeff/DatabaseProject
/lib/cls/ProfileView.php
UTF-8
11,307
2.84375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: JeffBaum * Date: 3/17/15 * Time: 12:53 AM */ class ProfileView { /** * Constructor * @param $site The site we are a member of * @param $request The $_REQUEST array */ public function __construct(Site $site, User $user=null, $request) { $...
true
751723e5b5239f528973375c6372fbe78cea91a1
PHP
mtrunkat/php-libphutil-composer
/src/Facebook/Libphutil/ConduitClient.php
UTF-8
2,982
2.65625
3
[ "Apache-2.0" ]
permissive
<?php namespace Facebook\Libphutil; /** * @group conduit */ class ConduitClient { private $uri; private $connectionID; private $sessionKey; private $timeout = 300.0; private $username; private $password; public function getConnectionID() { return $this->connectionID; } public function __con...
true
4499f86aee93574e225125163cf7498b6a590eba
PHP
hohuuvinh/php-mvc-core
/pos-mvc/mvc/models/tbl_payment.php
UTF-8
700
2.640625
3
[]
no_license
<?php class tbl_payment extends DB{ public function AddPayment($content){ $qr3 = "INSERT INTO tbl_payment (content,idadmin) VALUES ('$content','1')"; mysqli_query($this->con, $qr3); } public function GetAnalitics($type){ if($type == 'day'){ $qr = "SELECT * FROM tbl_payment WHERE created_at BETWEEN DATE_S...
true
5c8f8898c14dc24c526eb8b8ab3a7ffd0d90a802
PHP
iamsabhoho/SQLProg
/Q1-3/LoginRegistrationForm/login.php
UTF-8
872
2.546875
3
[]
no_license
<?php // --- secure connection to the database require ("config.php"); $connection = pg_connect ("host=$DB_HOST dbname=$DB_DATABASE user=$DB_USER password=$DB_PASSWORD"); //check the connection if(!$connection) { echo 'Connection Failed'; } $name = $_POST['username']; $pass = $_POST['password']; $email = $_POST['...
true
629a000c90e2c576160c5bf14be4df36c1549907
PHP
turft-group/turft-api
/app/Group.php
UTF-8
2,076
2.5625
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Support\Facades\Auth; class Group extends Model { protected $hidden = array('created_at', 'updated_at'); protected $fillable = ['name']; /** * @return BelongsToMany ...
true
f1b09162973d37eca6e4370ddbd12c55f5c2e9b7
PHP
MartinaSp/php-lekce-4
/ukol-5.php
UTF-8
356
3.40625
3
[]
no_license
<?php function minimum ($cislo1= 0, $cislo2= 0) { if (is_numeric($cislo1) && is_numeric($cislo2)){ if ($cislo1 < $cislo2) { return $cislo1; } else { return $cislo2; } } else { return false; } } $minimum = minimum (56,'xy'); if ($minimum == false) { echo 'Chy...
true
ca2a324ff9bcc36be3922945a1374d9df32f0066
PHP
michalper/salesforce_rest_api
/lib/SalesForceClient/Model/AuthorizationModel.php
UTF-8
2,549
3.125
3
[]
no_license
<?php namespace SalesForceClient\Model; /** * Class AuthorizationModel * @package SalesForceClient\Model */ class AuthorizationModel { /** * @var string */ private $consumerKey; /** * @var string */ private $consumerSecret; /** * @var string */ private $acce...
true
e85fa74e981cc6b7e63e788f4269cddd2f438249
PHP
MinamiSora/tasks
/task_2/email.php
UTF-8
1,446
2.796875
3
[]
no_license
<?php $to = "zate@mail.ru"; $subject = "Тема сообщения"; $message = ""; $headers = "Content-type: text/html; charset=utf-8 \r\n"; if($_SERVER["REQUEST_METHOD"] == "POST") { $name = trim(strip_tags($_POST["username"])); $tel = trim(strip_tags($_POST["tel"])); $mail = trim(strip_tags($_POST["mail"])); $a...
true
22ad1d45a4c729936056d91e489f8e1ad7eb84dc
PHP
RRoek/EntityManagerBundle
/src/RRoek/EntityManagerBundle/Model/Manager/AbstractBaseEntityManager.php
UTF-8
7,816
2.6875
3
[]
no_license
<?php namespace RRoek\EntityManagerBundle\Model\Manager; use Doctrine\Common\Persistence\ObjectRepository; use Doctrine\ORM\EntityManager; use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\EntityNotFoundException; use Symfony\Component\Validator\Validator\ValidatorInterface; use RRoek\EntityManagerBundle\Mode...
true
f28386ec5680e4fd0024bb6b04275a3daa059073
PHP
smartdevci/message_project
/_class/DAO.php
UTF-8
13,114
2.78125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Melaine * Date: 19/08/2017 * Time: 14:55 */ require_once 'Server.php'; class DAO { public static $connexion; private static $host=Server::host; private static $database_name=Server::database_name; private static $user=Server::user; private stati...
true
01a4729f7bbbd9a3c471b1960fc8967510b79413
PHP
WahWahWynnShweHlaing/pure_login_form
/login.php
UTF-8
1,888
2.609375
3
[]
no_license
<?php session_start(); $email = $_POST['email']; $password = $_POST['password']; if($email == "admin@admin.com" && $password == "secret") { header("location: home.php"); $_SESSION['auth'] = true; $_SESSION['id'] = "Admin"; } else { $error = "Your Login Name or Password is invalid"; } ?> <html> <he...
true
bafe05ca064834aebfc98b8ba37e3169738f7bcb
PHP
Liuxingwei/PHP-DI
/src/Definition/ObjectDefinition/ClassScope.php
UTF-8
557
3.0625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace DI\Definition\ObjectDefinition; /** * Descripe an class's inject scope * * @author liu Xingwei <matchless@163.com> */ class ClassScope { /** * Scope's value * * @var string */ private $value; /** * @param string $value */ pub...
true
7a3e9c17be9d835a9c9ad0045f99b356c3262f16
PHP
re123re/resume-pdf-builder
/UserInfoLogger.php
UTF-8
7,124
3
3
[]
no_license
<?php class UserInfoLogger { public function Log($user) { $config = parse_ini_file('config.ini'); $db = new mysqli($config['host'], $config['username'], $config['password'], $config['database']); error_log($db->connect_error); if (!$db) { throw new Exception('Ошибка ...
true
2f00aadf5f77a19560ebf6b1b96d8b8b8b4e9fd4
PHP
Fenozo/gestion_vente_lunette
/src/AppBundle/Entity/UserInfos.php
UTF-8
4,610
2.546875
3
[]
no_license
<?php namespace AppBundle\Entity; use AppBundle\Entity\User; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; /** * UserInfos * * @ORM\Table(name="user_infos") * @ORM\Entity(repositoryClass="AppBundle\Repository...
true
0ffd785866397259260fad6b733ec27f91f383a6
PHP
JacobSmith1020/CSCE-315-PHP-Project
/proc_csv.php
UTF-8
2,277
3.15625
3
[]
no_license
<?php function proc_csv($filename, $delimiter, $quote, $columns_to_show) { $handle = fopen($filename,"r") or die("Cannot open"); $newdelimiter = "/"; $newdelimiter .= $delimiter; $newdelimiter .= "/";//delimiter to input into the preg_split on the csv data ...
true
794ee3964c8157050457ea3e26d3046c035dc859
PHP
MalronWall/chocapic
/src/UI/Actions/AddAccountAction.php
UTF-8
1,219
2.59375
3
[]
no_license
<?php declare(strict_types=1); /** * (c) Thibaut Tourte <thibaut.tourte17@gmail.com> */ namespace App\UI\Actions; use App\UI\Actions\Interfaces\AddAccountActionInterface; use App\UI\Forms\AddAccountType; use App\UI\Responders\Interfaces\AddAccountResponderInterface; use Symfony\Component\Form\FormFactoryInterface...
true
1c0a0537d8999ecfb9ee9175c0af0d6d380ac9d3
PHP
Winardo/api-key-value-store
/http/Api10/Controllers/ObjectController.php
UTF-8
1,795
2.84375
3
[ "MIT" ]
permissive
<?php namespace Api10\Controllers; use App\Http\Controllers\BaseController; use Illuminate\Http\Request; use Api10\Models\ObjectModel; class ObjectController extends BaseController { /** * Get Value from key * * @param string key * @param Request $request */ public function getValue...
true
13a459332032db445f6d1a57a27ef2031a6de879
PHP
DeepRootDigital/sdar
/sdarapi/onboardinformatics/auth.php
UTF-8
1,087
2.640625
3
[]
no_license
<?php // This script is to authenticate the user and return a unique access token for that user // Requires 'uid' to work // Returns accesstoken as a string if ($_POST['uid']) { // Generate string for uid $url="http://api.obiwebservices.com/Security/AccessToken/Standard?Aid=1049-2320b2f0978&Uid=" . $_POST['uid'] . ...
true
8051969b89c41b6e82b72521f4130d7062a9abf5
PHP
zhangjiquan1/phpsourcecode
/pader/vgotfaster-modern/system/core/Router.php
GB18030
5,712
2.796875
3
[ "BSD-2-Clause" ]
permissive
<?php /** * VgotFaster PHP Framework * * @package VgotFaster * @author pader * @copyright Copyright (c) 2009-2010, VGOT.NET * @link http://www.vgot.net/ http://vgotfaster.googlecode.com * @filesource */ namespace VF\Core; /** * VgotFaster ϵͳ· * * URI÷ַ·ɷӦĿ URI еIJ * ע: ·ʵʱͿʼ! * * @package VgotFaster * ...
true
d5d937c1475b92e69c1178826000dabd961d289d
PHP
acravenho/poaexplorer.com
/assets/files/php/internalAddresses.php
UTF-8
1,524
2.515625
3
[ "MIT" ]
permissive
<?php require 'includes/database.php'; require 'includes/functions.php'; $scriptname = 'check internal addresses'; if(checkscript($scriptname) == true) { die(); } $poa = new Ethereum('https://core.poa.network', ''); $random = rand(0,2); $array = array('to', 'from', 'address'); $rgroup = $array[$rando...
true
96c205dc967976e54357bd3e2c740aae7a1c838c
PHP
playonlinux5683/test
/deezer/api/Router.class.php
UTF-8
1,707
3.09375
3
[]
no_license
<?php class Router { private $uriPatterns = array(); private $uriCallbacks = array(); /** * @var string $_trim Class-wide items to clean */ private $_trim = '/\^$'; /** * add - Adds a URI and Function to the two lists * * @param string $uri A path such as about/system * @param object $callback An anonymo...
true
984eb1376fdfa1b4c02e58d2044569aeac5564e7
PHP
joaofazolo/api-cidade-estado
/src/Persistence/CidadeRepository.php
UTF-8
3,172
2.65625
3
[]
no_license
<?php namespace App\Persistence; use App\Domain\Cidade; use App\Exception\CidadeNotFoundException; class CidadeRepository extends Repository { public function findAll($search, $limit, $offset, $sortField, $sortType) { $collection = $this->client->cidades; $searchArray = []; if ($sea...
true
2f114320019a99c8c4985480a9e13c10426572e4
PHP
ultranaut/recipe4living.com
/shared/objects/DailydealObject.php
UTF-8
445
2.875
3
[]
no_license
<? /** * Articles of type articleType = 'dailydeal' */ class DailydealObject extends ItemObject{ public function __construct($id) { parent::__construct((int) $id, 'dailydeal'); // There ain't no author for daily deals $this->author = null; } public function getType($format) { switch(...
true
06402a4a17a5228c5b7b73233c0dc07b1b4b7312
PHP
codenitive/fuel-hybrid
/classes/uri.php
UTF-8
1,497
2.78125
3
[ "MIT" ]
permissive
<?php /** * Fuel is a fast, lightweight, community driven PHP5 framework. * * @package Fuel * @version 1.0 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2011 Fuel Development Team * @link http://fuelphp.com */ namespace Hybrid; /** * Hybrid * * A set of ...
true
21353603c2fe75e443b56d5beb279113eac8cfa7
PHP
fi1a/filesystem
/src/Adapters/FilesystemAdapterInterface.php
UTF-8
3,401
2.90625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Fi1a\Filesystem\Adapters; /** * Адаптер файловой системы */ interface FilesystemAdapterInterface { /** * Возвращает название */ public function getName(string $path): string; /** * Возвращает расширение */ public function getExtension(st...
true
d461b73c5db93fc6072973f43015916f92a7dc34
PHP
openclassify/connect-module
/src/Resource/Component/Formatter/Formatter.php
UTF-8
3,012
2.859375
3
[]
no_license
<?php namespace Visiosoft\ConnectModule\Resource\Component\Formatter; use Visiosoft\ConnectModule\Resource\Component\Formatter\Contract\FormatterInterface; /** * Class Formatter * * @package Visiosoft\ConnectModule\Resource\Component\Formatter */ class Formatter implements FormatterInterface { /** ...
true
15e8d6f885843b61815005d638648a503e493bc9
PHP
dimawal/webservices-soaps
/server5/pages/listar.php
UTF-8
961
2.625
3
[]
no_license
<?php //cliente include "cliente.php"; //chamada do metodo SOAP $result = $client->call('listaAlunos'); //var_dump($result); ?> <!DOCTYPE html> <html> <head> <title>Data List</title> </head> <body> <div style="width: 500px; margin: 20px auto;"> <a href="criar.php">Criar Novo Usuário</a> <table width="...
true
906a06ed9f1586f1647629771f77c361d8034075
PHP
PReimers/ict-scouts-2
/src/AppBundle/Entity/School.php
UTF-8
3,864
2.578125
3
[]
no_license
<?php namespace AppBundle\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * School * * @ORM\Table(name="schools") * @ORM\Entity(repositoryClass="AppBundle\Repository\SchoolRepository") */ class School { /** * @var...
true
c8f9c188d3a226d3521d0f4e15afcf2c5245d65e
PHP
stephenscaff/wp-helpers
/inc/body-class.php
UTF-8
2,594
2.625
3
[]
no_license
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Bail if accessed directly /** * jumpoff_body_class * Cleans up body classes, then adds custom, based on page or cpt names * @return: $classes (string) */ add_filter('body_class', 'jumpoff_body_class'); function jumpoff_body_class($classes) { global $post, $page...
true
c734dddec0a11e1a7fb40e4ff1965241c77c1cce
PHP
nass3k/binarySearch
/index.php
UTF-8
1,323
3.296875
3
[]
no_license
<?php function binarySearch($file, $key_value){ $file = fopen($file, "r"); while (!feof($file)){ //чтение данных по 4000байт $string = fgets($file, 4000); //mb_convert_encoding($string, "UTF-8"); $explode_string = explode('\x0A', $string); foreach ($explode_string as $k...
true
4f7b0769138553a3988014ca8c258db7dd719036
PHP
mhwest13/saigon
/modules/HostInterfaces/zsb/include/ZSBQueryWrapper.class.php
UTF-8
1,422
2.625
3
[ "BSD-2-Clause" ]
permissive
<?php // // Copyright (c) 2013, Zynga Inc. // https://github.com/zynga/saigon // Author: Matt West (https://github.com/mhwest13) // License: BSD 2-Clause // class ZSBQueryWrapperException extends Exception {} /** * ZSBQueryWrapper * Creates a ZSBQueryObj before passing it off to * a Class for further pr...
true
7885332b36688ae7f5faba3f589b882ce476497f
PHP
MaryusPeltier/VeloCity
/api/checkSignup.php
UTF-8
720
2.78125
3
[]
no_license
<?php header('Access-Control-Allow-Origin: *'); require "config.php"; // Create database in phpMy admin with user table (id, username, password) // Connect to database // fetch user in database with SQL request $q = $db->prepare("INSERT INTO users (name, lastname, email, username, password) VALUES (:name, :lastname...
true
cd778bf4dde570d3edf329f494f49a166ed3a0b6
PHP
CahetelCode/blizzard-api-proxy
/app/Api/Blizzard/Proxies/Talents.php
UTF-8
1,706
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Api\Blizzard\Proxies; use App\Api\Blizzard\AbstractBlizzardProxy; use App\Api\Exceptions\ApiError; use GuzzleHttp\Exception\GuzzleException; use stdClass; /** * Class Talents * * @package App\Api\Blizzard\Proxies */ class Talents extends AbstractBlizzardProxy { /** * Get the talents...
true
89eb4c3402d4c51ea89b8c9bd18547d20078cb7e
PHP
lolodigitalvalley/sim-hotel-ska
/config/geocode_lib.php
UTF-8
2,003
2.578125
3
[]
no_license
<?php function carintd($lat1, $lng1, $ntx) { $radlat1 = deg2rad($lat1); $radlng1 = deg2rad($lng1); //$data_term = $this->m_terminal->data_tabel(); $query = mysql_query('SELECT * FROM hotel') or die(mysql_error()); while ($row = mysql_fetch_object($query)) { $ind = $row->id_hotel; ...
true
18f39e2438351f5e69ca203a4ad3ba41735a266d
PHP
harrydet/FY_SERVER_DB
/phpTagResponse/pushNotification.php
UTF-8
1,133
2.65625
3
[]
no_license
<?php if (get_magic_quotes_runtime()) set_magic_quotes_runtime(0); class PUSH { private $appId = 'g53i1BHiKF9rTuMqZk0ctwtU0QPnpYIPCMspbCv8'; private $restKey = '66Gy3Smr3lnvrbHCIlKf3goqtk6qok5IHVBWgpgY'; private $masterKey = '4bqI9adXfW7S8WVksgO5OLxzLqFvRlIjFhR341OZ'; private $url = "https://api.parse.com/1/...
true
9f42cefeb038363a5f8540c6954c74bda29896a1
PHP
devd9925/testpackage
/src/Models/MwsConfigModel.php
UTF-8
1,999
2.859375
3
[]
no_license
<?php namespace Twinsen\AmazonMwsRepricing\Models; class MwsConfigModel implements MwsConfigInterface { /** * @var string */ protected $serviceUrl; /** * @var string */ protected $keyId; /** * @var string */ protected $accessKey; /** * @var string */ ...
true
64baaadda59bebab2abab141ff5c0de0e593c766
PHP
aljshal/laravel-for-facebook-ads
/app/Http/Controllers/UsersController.php
UTF-8
1,121
2.796875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\User; use Illuminate\Http\Request; class UsersController extends Controller { /** * User 값 얻기 * @param $id * @return user */ public function show($id) { $user = User::find($id); return $user; } /** * User 생성 ...
true
75ecbadcf143f2d90a538685f24bca04531a0e43
PHP
Bloggoblok/serverv2
/public/admin/dashboard_api/add_season.php
UTF-8
1,213
2.609375
3
[]
no_license
<?php require '../../db/config.php'; if ($_SERVER['REQUEST_METHOD'] === 'POST') { $Body_Json = file_get_contents('php://input'); $Json_data = $obj = json_decode($Body_Json); $conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password); // set the PDO error mode to exceptio...
true
422f869fef1cc6a8b1b78584379baec7c782f439
PHP
jamesRUS52/tinkoff-invest
/src/TIOperation.php
UTF-8
2,163
2.875
3
[ "MIT" ]
permissive
<?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 jamesRUS52\TinkoffInvest; /** * Description of TIOperation * * @author james */ class TIOperation { //put yo...
true
c1abb1472ed1fbb889c1a05e5aec9d9b20b0813d
PHP
hecktorvn/API-creator
/controller/system/database/Where.class.php
UTF-8
3,074
2.9375
3
[]
no_license
<?php class Where { public $cond = '='; public $separator = ' AND '; public static $addEmpty = true; public $where = []; public $name = null; function __construct(array $where, $name=null) { $this->where = $where; $this->name = $name; } public function orWhere($where){ ...
true
73226a4dbc7d815f8e0233b2d9a9ab162407e692
PHP
cnahuina/isagen_php
/BEAN/ProyectoBean.php
UTF-8
2,048
2.640625
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. */ /** * Description of ProyectoBean * * @author Home */ class ProyectoBean { public $numero; public $titulo; publ...
true
aa7e0fbb66edfc09eacac7c3b68fc3de17709b4a
PHP
userlab-cesarsalazar/events-kemok
/class/guardar.php
UTF-8
14,170
2.703125
3
[]
no_license
<?php /** * * Clase creada para las Transacciones del BD * */ class Save extends BD{ private $htmlOut01; private $htmlOut02; private $query; private $select; private $where; private $tabla; private $tablaPrimara; private $result01; private $result02; private $result03; private $rs01; private $rs02; pr...
true
a1a81860e976be3600c0026b51c4f3ed9512ec04
PHP
luigif/WsdlToPhp
/samples/paypal/Reference/Type/PayPalTypeReferenceCreditCardDetailsType.php
UTF-8
5,368
2.828125
3
[]
no_license
<?php /** * Class file for PayPalTypeReferenceCreditCardDetailsType * @date 14/07/2012 */ /** * Class PayPalTypeReferenceCreditCardDetailsType * Documentation : CreditCardDetailsType for DCC Reference Transaction Information about a Credit Card. * @date 14/07/2012 */ class PayPalTypeReferenceCreditCardDetailsTyp...
true
9d19e8c917e63fe2b00deeab66ce1d0b07b93d2a
PHP
kakospyros/unipi.doulk
/srv/scheme/SchemeQueries.class.php
UTF-8
10,853
2.65625
3
[]
no_license
<?php /***************************************************************************************************** * Namespace alias area * *****************************************************************************************************/ namespace project\Exceptions; /** * @final SchemeQ...
true
49edae4b4e111d994c20378883257465db62025b
PHP
EwanValentine/Rhodium-Two
/app/Rhodium/Http/Controller/Controller.php
UTF-8
1,877
2.84375
3
[]
no_license
<?php namespace Rhodium\Http\Controller; use Symfony\Component\Routing\Route; class Controller { private $route; private $routeName; private $isFrozen = false; public $method; public $arguments; /** * Constructor. * * @param Route $route */ public function __const...
true
ea81440ceb47ad917440e42f1fd8ab7c11363c31
PHP
babangain/GCETTB-Activity-Portal
/view.php
UTF-8
3,341
2.78125
3
[]
no_license
<?php $dept=$_GET['dept']; $slno=$_GET['slno']; require "conn.php"; $sql = "SELECT * FROM $dept where slno=$slno"; $result = mysqli_query($conn, $sql); if (mysqli_num_rows($result) > 0) { // output data of each row while($row = mysqli_fetch_assoc($result)) { $id=$row["id"]; $title=$row["title"]; $...
true
c80e447fb8215a07ceeea6ad5b3f82f11725c587
PHP
Pursuit-Health/Pursuit-Backend-MVP
/app/Models/EmailLink.php
UTF-8
2,334
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Mark * Date: 2017-08-31 * Time: 14:08 */ namespace App\Models; use App\Models\Contracts\EmailLinkContract; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; /** * App\Models\EmailLink * * @mixin Builder * @method static self query() ...
true
c3a4e6d823007ba8d30d91777e07f419ebd8f0eb
PHP
jeanbarcellos/estudo.php.laravel-console
/app/Console/Commands/Test3.php
UTF-8
2,755
2.953125
3
[]
no_license
<?php namespace App\Console\Commands; use Illuminate\Console\Command; /* Argumentos {name} : Obrigatório {name?} : Opcional {name=Jean} : Opcional com valor default Opções {--isvalid} : Flag/boolean (false por padrão, se não informado) {--port=} : Defina uma valor para opção {----secury=ssl} ...
true
0db6abc33f81273f503249e674eda9e466f00737
PHP
lubo13/extra-questionnaire-bundle
/Utills/Questionnaire.php
UTF-8
3,041
2.609375
3
[]
no_license
<?php /** * @package Extra_QuestionnaireBundle * @author Lubo Grozdanov <grozdanov.lubo@gmail.com> */ namespace Extra\QuestionnaireBundle\Utills; use Doctrine\ORM\EntityManagerInterface; use Extra\QuestionnaireBundle\Entity\CompletedQuestionnaireInterface; use ThirdPartyBundle\SettingsBundle\Manager\SettingsManag...
true
8cf79fa1cec9cee6dac1510098bc7b5e2fb7d4de
PHP
miraaj/Lecture
/php/array and functions/arrayiterator.php
UTF-8
308
3.15625
3
[]
no_license
<?php $cities = array('UK' =>'London' ,'US'=>'washington','Nepal'=>'Kathmandu' ); //create array iterator object $iterator = new ArrayIterator($cities); $iterator->rewind(); while ($iterator->valid()) { print($iterator->current()." is in ". $iterator->key()."<br>"); $iterator->next(); } ?>
true
8da20dc3b1a3a81904ccb0c082dd2baa3ba9fb67
PHP
Tory2002/form_hubspot
/contact/contact.php
UTF-8
2,205
2.65625
3
[]
no_license
<?php //обрабатываем отправку новой формы в HubSpot для создания нового контакта $hubspotutk=$_COOKIE['hubspotutk']; $ip_addr=$_SERVER['REMOTE_ADDR']; $hs_context=array( 'hutk'=>$hubspotutk, 'ipAddress'=>$ip_addr, 'pageUrl'=>'http://contact/index.php', 'pageName'=>'Contact US' ); //возвращае...
true
a5b6f70059cfa707ca0f554148cbdf0e09046de6
PHP
daviswwang/coffee
/vendor/services/db.php
UTF-8
1,224
2.765625
3
[]
no_license
<?php namespace services; use coffee\exception\mysqlError; class db { private static $db_pool = []; public static function connect($conf = 'default') { if(isset(self::$db_pool[$conf])) return self::$db_pool[$conf]; //得到对应数据库配置 $set = config::get($conf,'database'); if(...
true
96f81ee2071b8e7039feaca078af1a44f8537143
PHP
php-java/php-java
/src/Compiler/Builder/Attributes/Architects/Operation.php
UTF-8
3,880
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace PHPJava\Compiler\Builder\Attributes\Architects; use PHPJava\Compiler\Builder\Finder\Result\ConstantPoolFinderResult; use PHPJava\Compiler\Builder\Generator\Operation\Operand; use PHPJava\Compiler\Builder\Types\Int16; use PHPJava\Compiler\Builder\Types\Int32; use PHPJava\Compile...
true
2446d6ccd088076dbf118ec78725bc1f7cf6aaca
PHP
borisguery/CoreTracker
/lib/Bgy/CoreTracker/Storage/FilesystemStorage.php
UTF-8
1,598
2.875
3
[]
no_license
<?php namespace Bgy\CoreTracker\Storage; use Bgy\CoreTracker\CoreDump; class FilesystemStorage implements StorageInterface { protected $path; public function __construct($path) { $this->path = $path; } /** * @return \Bgy\CoreTracker\CoreDump * @throws \RuntimeException ...
true
d0953f22c68b2ea6a80e4ceaec907935087e994e
PHP
ingpetrsvoboda/projektor2
/Projektor2/View/HTML/LeftMenu.php
UTF-8
543
2.546875
3
[]
no_license
<?php /** * Description of LeftMenu * * @author pes2704 */ class Projektor2_View_HTML_LeftMenu extends Framework_View_Abstract { public function render() { $this->parts[] = '<div class="left">'; $this->parts[] = '<ul id="menu">'; foreach($this->context['menuArray'] as $menuItem)...
true
bf2eec590c478cdb4c2b1023fab9722566470863
PHP
SweetSunnyFlower/yaf_validator
/test/rule/DateRangeRuleTest.php
UTF-8
3,584
2.71875
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; /** * class Test_Gring_Validator_Rule_DateRangeRuleTest */ class Test_Gring_Validator_Rule_DateRangeRuleTest extends TestCase { /** * @desc 验证参数值必须在某个日期范围之内(可以等于临界日期),支持 字符串时间戳、格式化日期字符串(只支持 Y-m-d H:i:s)、整型时间戳。 * @expectedException Gring_Validator_Exception_Validat...
true
03bf81105e48b05be4ab9f6f9528ca797319c3ff
PHP
evinlort/drive_students
/app/Http/Controllers/HomeController.php
UTF-8
7,061
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Carbon\Carbon; use Illuminate\Support\Facades\Auth; use App\Models\Lesson; use Illuminate\Support\Facades\Response; use App\Http\Requests\LessonRequest; use Exception; class HomeController extends Controller { /** * Create a new controll...
true
72ed5cec8684fd09d9f4488c7cae3b4d0e4841bb
PHP
NathanDJohnson/classipress-featured-broker
/classipress-featured-broker.php
UTF-8
14,423
2.828125
3
[]
no_license
<?php /* Plugin Name: Classipress Featured Broker Plugin URI: http://atmoz.org/classipress-featured-broker/ Description: Adds a couple shortcodes to search user membership packs and adds a widget to display one random user. Version: 0.1.0 Author: Nathan Johnson Author URI: http://atmoz.org/ */ /** * Adds Broker_Widge...
true
18d0c32ae9dc02483c57b255236050098b591e60
PHP
hbrawnak/network
/app/Contracts/UserRepositoryInterface.php
UTF-8
276
2.65625
3
[]
no_license
<?php namespace App\Contracts; use Illuminate\Http\Request; interface UserRepositoryInterface { public function create(Request $request); public function find(string $id); public function findByEmail(string $email); public function exist(string $id); }
true
05a1b1ad3e79498cc66df60b098182af247e1bcf
PHP
kazunori0909/cedec_schedule
/cgi/test.php
UTF-8
1,604
2.609375
3
[]
no_license
<?php $tag = "740"; //$_GET['tag']; $year = "2021"; $result["list"] = []; $result["update_date"] = date("c"); echo "tag : " . $tag . "<br/>"; echo "<hr/>"; require_once("./phpQuery-onefile.php"); readPage(1); echo "<br/><h2>Result</h2>"; echo print_r($result,true); // 書き込み $write_json = fo...
true
03f0eefff3b850c22078a4f95cf53840c42c5add
PHP
u7aro/blackjack
/src/Blackjack/AiPlayer.php
UTF-8
255
2.671875
3
[ "MIT" ]
permissive
<?php namespace Blackjack; /** * Aiのプレイヤークラス. */ class AiPlayer extends Player { /** * {@inheritdoc} */ public function needsOneMoreCard() { $points = Game::getPoints($this->getCards()); return $points < 17; } }
true
cf0e138bc69996d8e25931a326580dba33274d7c
PHP
Ittikorn-c/webtech
/home/php/showevent.php
UTF-8
3,057
2.53125
3
[]
no_license
<?php $q = $_GET['q']; include("connect.php"); // Create connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "select * from event_detail where event_category='$q' order by event_date ASC, event_start ASC"; $result = $conn->query($sql); $count = 0; $is_outofdate =...
true
018891bba9ecf1eb7eacaa919996d7227f3bb763
PHP
alenilsonsouza/dasboard_orbita
/models/Config.php
UTF-8
1,184
2.875
3
[]
no_license
<?php class Config extends model{ private $id; private $mostrar_banner; private $array; public function __construct(){ parent::__construct(); $this->array = array(); $sql = "SELECT * FROM config WHERE id = :id"; $sql = $this->db->prepare($sql); $sql->bindValue(":id", 1); $sql->execute(); if($sql->r...
true
8837d34d97be65e4588b51792ce003db9c7de677
PHP
meowlnir/recaudar
/app/Factories/ChargeFactory.php
UTF-8
1,175
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Factories; use App\Charges\PagaloGTCharge; use App\Models\Charge; use App\Models\Team; use ReflectionClass; class ChargeFactory { /** * @var mixed|string */ private $typeOfAmount; const DOLLARS_AMOUNT = 'amount_in_dollars'; const LOCAL_CURRENCY_AMOUNT = 'amount_in_lo...
true
53d4ec0ef6f7665dd6a6e7c645dc4fb6ba9368df
PHP
angay9/playground
/app/Network/Security/Auth.php
UTF-8
1,896
2.953125
3
[]
no_license
<?php namespace Network\Security; use Phalcon\Mvc\User\Plugin as Plugin; use Network\Users\User as User; /** * Auth class * Provides functionality connected to user authentication */ class Auth extends Plugin { /** * User model * @var Network\Users\User */ private static $_user; /** * Constructor */...
true
3e4206ce227770a32feed785300beef0e11dd276
PHP
yo-l1982/carpooling
/views/login.php
UTF-8
1,721
2.671875
3
[]
no_license
<?php require_once('lib/Template.class.php'); include_once('conf/config.inc.php'); require_once('lib/Database.class.php'); require_once('views/userinfo.php'); class login { function render($cmd) { if (isset($_SESSION['user_id'])) { // get template $userinfo = new useri...
true
74402553e33eaeefab2e44e318ed9bcc940fba4b
PHP
ChapResearch/CROMA
/croma_modules-release/hourLogging/oldHoursForm.php
UTF-8
8,447
2.671875
3
[]
no_license
<?php /* ---- hours/oldHoursForm.php ---- used to allow users to add old hours (aka pre-CROMA) - Contents - addOldHourRow() - helper function for adding rows through AJAX removeOldHourRow() - helper function for removing rows through AJAX oldHoursForm() - form to allow entering/editing of old, pre-CROMA h...
true
423122ecd03387aa6c7e22c0fe5e0c67e76fd669
PHP
rankarpan/laravel-user-timezone
/app/Listeners/EmailBanNotification.php
UTF-8
706
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Listeners; use App\Events\UserWasBanned; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Queue\ShouldQueue; use App\Laravel\Mailer\UserBanMailer as Mailer; class EmailBanNotification implements ShouldQueue { use InteractsWithQueue; protected $mailer; /** ...
true
79d74db5ca304a09b3f81901aa47614bc5c99f0a
PHP
sgtlambda/fieldwork
/src/fieldwork/validators/IbanFieldValidator.php
UTF-8
717
2.75
3
[ "MIT" ]
permissive
<?php namespace fieldwork\validators; class IbanFieldValidator extends RegexFieldValidator { const PATT = "/^[A-Z]{2}[0-9]{2} [A-Z0-9]{4} [0-9]{4} [0-9]{4}( [0-9]{4})?( [0-9]{2})?$/"; const PATT_BBAN = "/^([A-Z]{2}[0-9]{2} [A-Z0-9]{4} [0-9]{4} [0-9]{4}( [0-9]{4})?( [0-9]{2})?|[0-9]{1,10})$/"; const ...
true
4add247d432a0475f1559aed0fc1e20abd787379
PHP
hyutar/Projetsf3
/src/OC/TableauBundle/Entity/Article.php
UTF-8
557
2.65625
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: julie * Date: 14/12/2016 * Time: 11:07 */ namespace OC\TableauBundle\Entity; class Article { protected $id; protected $content; protected $title; protected $tableau; function __construct() { $this->tableau = array( array('titr...
true
1391163782cc49db298392e6cc2138c9b365b707
PHP
renxiaotu/database
/src/RedisServer.php
UTF-8
428
2.640625
3
[ "MIT" ]
permissive
<?php /** * User: www.renxiaotu.com * Date: 2020/05/01 * Time: 16:55 */ namespace Renxiaotu\database; use Redis; class RedisServer extends Redis{ private static function redis(){ static $redis; if(!$redis)$redis=new RedisServer(); return $redis; } public static function __ca...
true
38844051cb6b4d8ebcda3810e9adf9a381512c94
PHP
div-antk/ariake_search
/game_detail.php
UTF-8
1,025
2.78125
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>有明亭ゲーム検索</title> </head> <body> <?php try { $gamecode = $_GET['gamecode']; $dsn = 'mysql:dbname=gamelist; host=localhost; charset=utf8'; $user = 'root'; $password = ''; $dbh = new PDO($dsn, $user, $password); $db...
true
b582c49e7fc6ad5d6ac7721b0260f8df6ebc9ca5
PHP
Logi-CE/fmup
/src/Controller/Error.php
UTF-8
1,151
3.046875
3
[ "MIT" ]
permissive
<?php namespace FMUP\Controller; use FMUP\Controller; use FMUP\Response\Header\Status; /** * Class Error * @package FMUP\Controller */ abstract class Error extends Controller { /** * @var \Exception */ private $exception; /** * Define exception * @param \Exception $exception *...
true
e323c94c9d64917b617830462168eeccf74d7272
PHP
anarzone/clouds-ecommerce
/app/Http/Requests/V1/StoreBrandRequest.php
UTF-8
1,414
2.53125
3
[]
no_license
<?php namespace App\Http\Requests\V1; use Illuminate\Contracts\Validation\Validator; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Http\JsonResponse; use Illuminate\Validation\ValidationException; use Symfony\Component\HttpFoundation\Response; class StoreBrandRequest extends FormRequest { /** *...
true
84628d7140d37fdf22aaab0dd802e27fe5162b94
PHP
tubin/test
/dice.php
UTF-8
1,562
3.25
3
[]
no_license
<?php function out($message) { print $message.PHP_EOL; } function generateHand() { return str_split(substr(str_shuffle(str_repeat('123456', mt_rand(1,50))),1,5)); } function analyzeHand(array $hand) { $shifted = array_map(function($dice) { return ($dice+1)%13; }, $hand); ...
true
9d9e602f11bfffe95847db896a39831b5c562469
PHP
houssemamri/twitter_application
/src/Core/Service/Mail/SwiftMailMessages.php
UTF-8
498
2.765625
3
[]
no_license
<?php /** * Service for generating Swift_Messages * * @author ajorjik */ namespace Core\Service\Mail; use Swift_Message; class SwiftMailMessages { /** * Create Swift_Message * * @param null|array $params * @return Swift_Message */ public function create($params = null) { ...
true
40158f51e7fc00cc0a1964079e4e7ade398e212e
PHP
renatoagomes/mnc
/public_html/t2/index.php
UTF-8
1,953
2.71875
3
[]
no_license
<?php require "t2.php"; $limInf = -2; $limSup = 2; $precisao = 0.0001; ?> <html> <?php require "../head.html" ?> <body> <h1>Metodos numericos computacionais</h1> <div class="row"> <div class="col-sm-2 float-left"> <ul class="list list-group"> <l...
true
77865f3a55cfde78044d6fd1455f0f9cbe58dc45
PHP
cr4ck3r123/SisRoms
/controller/usuario.php
UTF-8
841
2.859375
3
[]
no_license
<?php include '../dao/UsuarioDAO.php'; extract($_POST); switch ($action) { case 'verifica': $DAO = new UsuarioDAO(); if ($usuario == null || $senha == null) { echo 0; } else { $rs = $DAO->logar($usuario, $senha); $_SESSION['usuario'] = $DAO->pegaLogin...
true
aa576b6438621d04a57a6efcfc0b846e94a55e6f
PHP
OpenInstituteCambodia/KhmerOCR_Website
/app/Console/Commands/tesseractCMD.php
UTF-8
1,294
2.953125
3
[]
no_license
<?php namespace App\Console\Commands; use Illuminate\Console\Command; class tesseractCMD extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'command:tesseract { inputFile } ...
true
a27d9b0e27238e8a1f5634a329fcc3430d9dd378
PHP
abdulrazaq/EduProjPHP
/checkUserName.php
UTF-8
1,283
2.5625
3
[]
no_license
<?php // Connect to server and select databse. mysql_connect('abdulrazaqasrcom.ipagemysql.com', 'abdulrazaq', 'QWERtyui1234@$DB')or die("cannot connect"); mysql_select_db('eduprojdb')or die("cannot select DB"); mysql_query("SET NAMES 'UTF8'"); mysql_query('SET CHARACTER SET UTF8'); // username and password se...
true
ec6080f9bb98c6581467ccf9f1537e5a667af34b
PHP
Ifaldzi/swm-web-app
/app/Charts/SampleChart2.php
UTF-8
3,539
2.8125
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace App\Charts; use Chartisan\PHP\Chartisan; use ConsoleTVs\Charts\BaseChart; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use App\Models\LogPengambilanSampah; class SampleChart2 extends BaseChart { public ?string $name = 'my_2ndchart'; public ?stri...
true
1da54096173e53c8cd1d5e0a28e8a11b9f4631ed
PHP
beniepedia/kas-utama
/app/Helpers/datetime_helper.php
UTF-8
5,403
3.015625
3
[ "MIT" ]
permissive
<?php if (!function_exists('indo_fulldate')) { function indo_fulldate($date) { $hr_arr = ['Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jum\'at', 'Sabtu']; $bulan_arr = [1 => 'Januari', 2 => 'Februari', 3 => 'Maret', 4 => 'April', 5 => 'Mei', 6 => 'Juni', 7 => 'Juli', 8 => 'Agustus', 9 => 'Sep...
true
54c7cff66735a249aebbfc3ad28bbb463b0256ff
PHP
cocoders/beer-menu-api
/src/BeerMenu/Command/RemoveBeerCommand.php
UTF-8
992
2.796875
3
[]
no_license
<?php declare(strict_types=1); namespace App\BeerMenu\Command; use App\BeerMenu\Model\Beers; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class RemoveBeerCom...
true
050d4d7b6ed3cfa8f6fdffecb2289b0106e2a5b0
PHP
BourgeoisThibault/Php_project_Sorbonne
/add.php
UTF-8
843
2.75
3
[]
no_license
<?php session_start(); if(!isset($_GET['num'])) { header('Location: error.php?motif=Aucun ID trouvé'); exit(); } if(!isset($_SESSION['connected'])) { header('Location: error.php?motif=Veuillez vous connecter'); exit(); } try { $bdd = new PDO('mysql:host=localhost;dbname=pokedek;charset=utf8', 'root', ''...
true