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
4b4e1015c4f3b208af4ea51a3c6fc889ede3ceab
PHP
mfarrasyid/test
/application/modules/Categorys/models/Categorys_model.php
UTF-8
578
2.578125
3
[]
no_license
<?php class Categorys_model extends CI_Model { public function getCategory($nama_category = null) { //search by nama if ($nama_category === null) { //findall return $this->db->get('category')->result_array(); } else { //get_where id by nama ...
true
4797752c5bae0e635219c05a318bcd6347d91a19
PHP
thanhtuyen/old_project
/fine3/app/application/helpers/string_helper.php
UTF-8
353
2.84375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php function shortenString($str, $length = 60, $more='...'){ $str = strip_tags($str); $str = str_replace("\n", '', $str); $words = preg_split('/(?<!^)(?!$)/u', $str); if(count($words) > $length ){ $words = array_slice($words,0, $length); return implode('', $words) . $more; }el...
true
59fdfdf162044b9691ddc81821ad78b334a5abea
PHP
ascertain/NGshop
/plugins/RatingsComments/lib/RatingsComments/Plugin.php
UTF-8
7,972
2.59375
3
[]
no_license
<?php class RatingsComments_Plugin extends Pimcore_API_Plugin_Abstract implements Pimcore_API_Plugin_Interface { public static function install() { Pimcore_API_Plugin_Abstract::getDb()->query("CREATE TABLE IF NOT EXISTS `plugin_ratingscomments_ratings` ( `id` INT NOT NULL AUTO_INCREMENT, ...
true
3a870e8319b28f392a14b309086c78db14fbd5eb
PHP
elxdigital/amazon-service
/src/Services/S3/Bucket.php
UTF-8
1,555
2.875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace ElxDigital\AmazonService\Services\S3; use ElxDigital\AmazonService\AmazonService; use Exception; class Bucket { /** * @throws Exception */ public function __construct() { if(!AmazonService::getHost()) { throw new Exception("AmazonService instance not found");...
true
f694ef2fb2647b18a9a83ee2fec5798fd37d30d9
PHP
WDD-Social/wddsocial.com
/framework5/wddsocial/lang/view/global/fr/TemplateLang.php
UTF-8
1,779
2.671875
3
[]
no_license
<?php /* * WDD Social: Template Language Pack */ class TemplateLang implements \Framework5\ILanguagePack { public static function content($id, $var) { switch ($id) { # navigation elements case 'people': return 'Membres'; case 'projects': return 'Projets'; case 'articles': return 'Articles...
true
a7a819fd922a7e416c773d8ae132e14bcb6032c3
PHP
karomoon/Movies-2-
/api/single_read.php
UTF-8
643
2.734375
3
[]
no_license
<?php include('../api/base.php'); $item = new Movie($db); $item->title = isset($_GET['title']) ? $_GET['title'] : die(); $item->getSingleMovie(); if($item->title != null){ // create array $movie_arr = array( "Movieid" => $item->Movieid, "title" => $...
true
16f5bd436656c4296f4e6b1e310f2f49428e5dac
PHP
leafpoda/topsdk
/src/dingtalk/request/OapiCardIntelligentEmpgroupSendRequest.php
UTF-8
1,707
2.546875
3
[]
no_license
<?php /** * dingtalk API: dingtalk.oapi.card.intelligent.empgroup.send request * * @author auto create * @since 1.0, 2020.08.17 */ class OapiCardIntelligentEmpgroupSendRequest { /** * 模版卡片注册的key **/ private $msgKey; /** * 卡片中需要填充的参数 **/ private $paramJson; /** * 卡片接收成员列表,不填写为全部接收 **/ priv...
true
87cd75878ac30ac0f3d4a32a08862802a5fd9e4f
PHP
xiaolang098/zim-php
/Zim/Container/Container.php
UTF-8
10,479
2.9375
3
[ "MIT" ]
permissive
<?php namespace Zim\Container; use Closure; use Exception; use LogicException; class Container { use MagicInjection; /** * The current globally available container (if any). * * @var static */ protected static $instance; /** * The container's bindings. * * @var ar...
true
b5e66bea7a6f50c22cb212faf453faec92002e6a
PHP
OllieJohnsson/weather
/src/DarkSky/DarkSky.php
UTF-8
3,052
2.84375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Oliver\DarkSky; use Anax\Commons\ContainerInjectableInterface; use Anax\Commons\ContainerInjectableTrait; use Oliver\Weather\WeatherServiceInterface; use Oliver\DarkSky\Exception\InvalidLocationException; use Oliver\Curl\CurlInterface; /** * */ class DarkSky implements ContainerInjectableInterfac...
true
b6c4c79f1613fdddb6d9b4188a9cd6161ee91fac
PHP
teknasyon-bootcamp/homework2-shnbetul
/posts.php
UTF-8
1,504
2.953125
3
[]
no_license
<?php /** * posts.php * * Bu betik direk olarak erişilebilir. functions.php'de yaptığınız gibi bir * kontrol eklemenize gerek yok. * * Bu betik dosyası içerisinde functions.php'de yer alan fonksiyonları da kullanarak * aşağıdaki işlemleri gerçekleştirmenizi bekliyoruz. * * - functions.php içerisinde oluşturac...
true
d7a15b342f78717a630d083a34c2bcb9e81018a6
PHP
crees/sis-sdk-php
/src/Arbor/Model/StaffContractPostAllowance.php
UTF-8
5,317
2.578125
3
[]
no_license
<?php namespace Arbor\Model; use Arbor\Resource\ResourceType; use Arbor\Query\Query; class StaffContractPostAllowance extends ModelBase { const STAFF_CONTRACT_POST = 'staffContractPost'; const LINKED_ALLOWANCE = 'linkedAllowance'; const EFFECTIVE_DATE = 'effectiveDate'; const END_DATE = 'endDate'; ...
true
4a5e4a817c188eadf263ace96195ace94bb3c67d
PHP
DavidCalderon1/camaleonV2_d
/app/Models/Sucursal.php
UTF-8
2,288
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Eloquent as Model; use Illuminate\Database\Eloquent\SoftDeletes; use App\Models\City; /** * @SWG\Definition( * definition="Sucursal", * required={}, * @SWG\Property( * property="id", * description="id", * type="integer", * fo...
true
e86c0d49973d401106352c3e90e60361369769a2
PHP
Andrey-hash-star/laravel-blog
/app/Http/Controllers/Admin/UserController.php
UTF-8
4,525
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers\Admin; use App\User; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Validator; class UserController extends Controller { /** * Display a listing of the resource. * * @return ...
true
98fdb9bd4b79bc57f439cb99414a7e3f27cc5502
PHP
intraface/Ilib_Payment_Html
/src/Ilib/Payment/Html/Input.php
UTF-8
1,759
2.859375
3
[]
no_license
<?php /** * To control input page for online payments * * @author sune jensen <sj@sunet.dk> * @version 0.0.1 * @package Payment_Html_Provider * @category Payment * @license http://www.gnu.org/licenses/lgpl.html LGPL */ class Ilib_Payment_Html_Input { /** * @var string merchant number */ protec...
true
9b84a4d17906ee74c6f25b8520060c35db1d4705
PHP
mikenorthorp/CaptchaStudy
/nucaptcha/php/leapclusterpicker.php
UTF-8
7,071
2.640625
3
[]
no_license
<?php /** * @package NuCaptcha PHP clientlib * @author <support@nucaptcha.com> Leap Marketing Technologies Inc * @license LGPL License 2.1 (see included license.txt) * @link http://www.nucaptcha.com/api/php */ /** * Pick a cluster to use. * * @see http://intra.leapmarketing.com/confluence/display/T...
true
34686c9fdca3d3c6d6b67258e5b14466f1776552
PHP
dominikzogg-legacy/energycalculator
/src/Dominikzogg/EnergyCalculator/Repository/DayRepository.php
UTF-8
1,908
2.671875
3
[]
no_license
<?php namespace Dominikzogg\EnergyCalculator\Repository; use Doctrine\ORM\QueryBuilder; use Dominikzogg\EnergyCalculator\Entity\Day; use Dominikzogg\EnergyCalculator\Entity\User; class DayRepository extends AbstractRepository { /** * @param array $filterData * @return QueryBuilder */ p...
true
b0e0709cfbbe612a7015e8a559c6c91e35255dc7
PHP
bsvetlici/SustavInformacijskePotpore-1
/modules/v1/controllers/AuthController.php
UTF-8
2,065
2.578125
3
[]
no_license
<?php namespace app\modules\v1\controllers; use app\models\Korisnik; use app\models\Uloga; use app\modules\v1\models\LoginForm; use app\modules\v1\models\SignupForm; use Yii; use yii\filters\VerbFilter; use yii\rest\Controller; class AuthController extends Controller { public function behaviors() { return ...
true
a334d86f15c9fbda7be4be82cf7e134f421b5ccf
PHP
LaurentiuZorila/comd
/web/common/classes/Tokens.php
UTF-8
2,948
2.765625
3
[]
no_license
<?php /** * Class Tokens */ class Tokens { private static $_inputName = 'Token'; private static $_submit = 'Submit'; /** * @return string */ private static function setInputName() { return self::$_submit . uniqid(); } /** * Input Name */ public static f...
true
a07143b171bf3c9d72fc8eded9d080318a0af8eb
PHP
unil-lettres/dilps-tiresias
/tests/ApplicationTest/Service/DatingRuleTest.php
UTF-8
3,333
2.515625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace ApplicationTest\Service; use Application\Model\Dating; use Application\Service\DatingRule; use PHPUnit\Framework\TestCase; class DatingRuleTest extends TestCase { public function providerCompute(): iterable { yield 'empty' => ['', []]; yield 'simple' ...
true
4aa642dc29af319a0ef9f72e82b8dcc7dbe7b2c6
PHP
GreyInori/vote
/application/custom/controller/Custom.php
UTF-8
1,962
2.515625
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: Grey * Date: 2019/6/18 * Time: 11:04 */ namespace app\custom\controller; use think\Controller; use \app\custom\controller\api\CustomMain; use \app\api\controller\Send; class Custom extends Controller { use Send; /** * 相关方法对象 * @var Object */ p...
true
3d7d870853aaa8be2f03a3b28e9930ccd02c35f3
PHP
ikharlampenkov/selpo
/application/models/SM/Module/News.php
UTF-8
10,866
2.6875
3
[]
no_license
<?php /** * Created by JetBrains PhpStorm. * User: Moris * Date: 27.05.12 * Time: 14:27 * To change this template use File | Settings | File Templates. */ /* * CREATE TABLE IF NOT EXISTS `news` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `link_id` int(10) unsigned NOT NULL, `date_public` datetime ...
true
565ba2c8d64cf9ae052ad7ae847a02319ae672d3
PHP
ciaranmaher95/WebProgrammingCA4
/webprogca4/includes/loginvalidation.php
UTF-8
1,357
2.921875
3
[]
no_license
<?php include 'database.php'; session_start(); //gets username and password from log in form and searches for them in the database $memberUsername = filter_input(INPUT_POST, 'memberUsername'); $memberPassword = filter_input(INPUT_POST, 'memberPassword'); $memberPassword_hash = md5($memberPassword); ...
true
7c75421317f46aacbfd4d033cae333608d0f69e8
PHP
Ches1er/PHP_5_MVC_BLOG
/app/views/profile.php
UTF-8
3,252
2.515625
3
[]
no_license
<!-- Navigation --> <nav> <ul class="main_menu"> <li><a href="/">Main</a></li> <?php if (!empty($user_roles)):?> <?php if (in_array("admin", $user_roles)):?> <li><a href="/admin">Admin</a></li> <li><a href="/profile">User Profile</a></li> ...
true
2f07e106dc525fb8aadb375eaf134e9eea64c8e7
PHP
GeekGianca/aguablue-prempacadora
/app/controllers/Employees.php
UTF-8
1,331
2.734375
3
[]
no_license
<?php class Employees extends Controller { public function __construct() { $this->modelEmployee = $this->model('EmployeeModel'); } public function index() { $employees = $this->modelEmployee->getAll(); $data = [ 'title' => 'Empleados', 'employees' => ...
true
24b4aa568374c35363e1ac1e8ed852bdaab3d0c8
PHP
TranBaKhoa1999/OS-System-Backend-BanQuanAo
/src/routes/billing.php
UTF-8
4,366
2.59375
3
[]
no_license
<?php use \Psr\Http\Message\ServerRequestInterface as Request; use \Psr\Http\Message\ResponseInterface as Response; // require '../vendor/autoload.php'; require '../src/services/billingService.php'; // $app = new \Slim\App; //Get All brand $app->get('/api/bills', function ($request, $response, $args) { $service ...
true
a7c89ccbea3bacbe9ce273c474cbd76cba73d3a1
PHP
jerryjappinen/unitest
/tests/extending/extender/bar.php
UTF-8
420
2.75
3
[]
no_license
<?php class UnitestExtenderBar extends UnitestExtender { protected function oneTwoThree () { return array(1, 2, 3); } function testOwnHelper () { return $this->should(count($this->oneTwoThree()) === 3); } function testInheritedHelper () { return $this->should($this->ownClass() === 'UnitestExtenderBar'); ...
true
988628ef1605fcd722949cd0965f6617858378e5
PHP
Rafsan25/CSE311.9L_Summer20_RAH1_-M-
/function.inc.php
UTF-8
7,136
2.71875
3
[ "MIT" ]
permissive
<?php function pr($arr){ echo '<pre>'; print_r($arr); } function prx($arr){ echo '<pre>'; print_r($arr); die(); } function get_safe_value($str){ global $con; $str=mysqli_real_escape_string($con,$str); return $str; } function redirect($link){ ?> <script> window.location...
true
43c62fe7c281bdfed360da7d1d98271d0fb52c72
PHP
Qihoo360/HTTPSLayer
/web/models/Context.php
UTF-8
1,107
2.859375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: zhangshuang * Date: 17/10/26 * Time: 15:27 */ namespace app\models; class Context { public static $_instance; public static $global_message; private $biz_user; private $auth_method; /** * Context constructor. * @param $biz_user */ ...
true
eb4ba159ba0203c833795e37a29feec5cb68c315
PHP
steffengy/zephir
/Library/Operators/Other/ConcatOperator.php
UTF-8
9,425
2.625
3
[ "MIT" ]
permissive
<?php /* +--------------------------------------------------------------------------+ | Zephir Language | +--------------------------------------------------------------------------+ | Copyright (c) 2013-2016 Zephir Team and contributors ...
true
4a39832164ecaaab7068a4594dd6bc1fda57a3a5
PHP
yodelboy/webcode
/companyManage/php/upload_file.php
UTF-8
1,534
2.625
3
[]
no_license
<?php session_start(); //判断文件的类型 $bool=( $_FILES['file']['type']=='image/png'|| $_FILES['file']['type']=='image/jpg'|| $_FILES['file']['type']=='image/jpeg'); if(!$bool){ die("类型不对<a href='javascript:window.history.back();'>返回</a>"); } $bool=$_FILES['file']['size'] <100000000; ...
true
965257783e9031709dd121718413abdff0c36d54
PHP
renq/ML-Lib
/learning/forms/test02.php
UTF-8
5,628
2.59375
3
[]
no_license
<?php date_default_timezone_set('Europe/Warsaw'); error_reporting( E_ALL | E_STRICT ); include('../Form.php'); /* * Klasa z naszym formularzem. Dziedziczymy po Form i dodajemy do niego pola. */ class PokemonRegisterForm extends AF_Form { public function __construct() { parent::__construc...
true
ce9d118ce42fe50d7289ad4586ef2a382b57b1fd
PHP
Rwilkins1/laravel_blog
/app/controllers/UsersController.php
UTF-8
9,534
2.75
3
[ "MIT" ]
permissive
<?php class UsersController extends BaseController { // Profile display // Shows your profile or tells you you're unauthorized public function index() { if(Auth::check()) { $user = Auth::user(); $posts = DB::table('posts')->where('user_id', Auth::user()->id)->orderBy('created_at', 'desc')->paginate(4);...
true
7bb9246541db33e7c09585e538a6f3a313d90f09
PHP
XxnaruponxX/seed_sns
/func_practice.php
UTF-8
1,331
3.859375
4
[]
no_license
<!DOCTYPE html> <html> <head> <title>aaa</title> </head> <body> <?php //NGな関数 // 数字が最初 hello(); // 引数がないとき function hello(){ echo "hello"; } // 引数があるとき function huga($hogehoge){ echo $hogehoge; } // function aisatsu($name){ // echo 'はじめまして、ぼく'.$name.'!<br>'; // echo '元気?<br>'; // } function nexseed($greetin...
true
d97562b11b4efa6d4b43c6d2eb61e83cef40801a
PHP
BCedric/ProjetSitePhotos
/pages/admin/ajouter/galerie.php
UTF-8
2,573
2.546875
3
[]
no_license
<?php if(isset($_POST['quoi'])){ $bdd=ouverture(); $galerie = $bdd->query('SELECT nom FROM albums'); echo '<form method="post" action="admin.php?page=admin&amp;faire='.$_GET['faire'].'&amp;quoi='.$_POST['quoi'].'"> <p> <label for="ou">Où ça ?</label><br/> <select name="ou" id="ou">'; ...
true
cfc7826802f9ef1f762025ae47feffaad6689243
PHP
sonfit/5
/backend/models/OrderDetail.php
UTF-8
1,256
2.609375
3
[]
no_license
<?php namespace backend\models; use Yii; /** * This is the model class for table "tbl_order_detail". * * @property int $order_detail_id * @property int $order_id * @property int $pro_id * @property int $pro_price * @property int $pro_qty * @property int|null $status * @property int $created_at * @property ...
true
67f888da0ee5c59231208f4fdf1aefd99a65cd9d
PHP
mikegeek95/TECMED
/sisadmin/ventas/pdf/recibo_entrega.php
UTF-8
2,608
2.578125
3
[]
no_license
<?php require_once("../../clases/conexcion.php"); require_once("../../clases/class.Entregas.php"); require_once("../../clases/fpdf/fpdf.php"); require_once("../../clases/class.Fechas.php"); $db = new MySQL (); $entrega = new Entregas (); $fecha = new Fechas (); $entrega->db = $db; $entrega->idnota_rem...
true
a1fa548dfa593f114efa31a8d9a2377da843dd40
PHP
artemkuchma/nads_site
/Controller/MenuController.php
UTF-8
8,665
2.6875
3
[]
no_license
<?php class MenuController extends Controller { private static $main_menu_array; private static $admin_menu_array; private static $main_menu_part; private static $idArray; public static function getIdArray() { return self::$idArray; } public static function getMainMenuPart()...
true
76d4fff52a83409d920634e834a5f88a780fe665
PHP
phpzm/http
/src/Kernel/Delegate.php
UTF-8
1,557
2.546875
3
[ "MIT" ]
permissive
<?php namespace Simples\Http\Kernel; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Simples\Error\NotFoundExceptionInterface; use Simples\Http\Contract\Delegate as Contract; use Simples\Http\Contract\Middleware; use Simples\Http\Response; use Throwable; /** * Class Delegate...
true
11a0b33da46b03000670a25cf204ecadd7142e05
PHP
ErickRosalesUnah/IS-410-
/Proyecto/backend/class/class-tipoCuentas.php
UTF-8
3,482
3.125
3
[]
no_license
<?php class TipoCuentas{ private $tipo; private $foto; private $descripcion; public function __construct( $tipo, $foto, $descripcion ){ $this->tipo = $tipo; $this->foto = $foto; $this->descripcion = $descripcion; } public static functio...
true
00d08e5d0ac23408d2e00d4c67ada4578d99f06a
PHP
elsiehowarth/Final-Year-Project
/dogProject/mpa-dogProject/buyingConfirmation.php
UTF-8
1,669
2.609375
3
[]
no_license
<!--open php tag--> <?php //set the title $title = 'Dog Project'; //include the header require_once("../Includes/header.php"); //end php tag ?> <!--open main tag--> <main id="content"> <!--open wrapper --> <div class="wrapper"> <?php // create a link to the class definition file require_once ...
true
384559e29b809c3c0168e122c210ba127ee4716d
PHP
jqhph/dcat-admin
/tests/Browser/Components/Component.php
UTF-8
1,022
2.703125
3
[ "MIT" ]
permissive
<?php namespace Tests\Browser\Components; use Laravel\Dusk\Browser; use Laravel\Dusk\Component as BaseComponent; abstract class Component extends BaseComponent { /** * 解析css选择器别名. * * @param Browser $browser * @param string $selector * @return string */ public function forma...
true
dd1c37444fa852577347a8866005e811abf08c5b
PHP
kennent/PHP-Study
/Chapter11-1/write_file.php
UTF-8
958
3.140625
3
[]
no_license
<?php require_once("lib/util.php"); $date = date("Y/n/j G:i:s", time_kr()); $writedata = <<< "EOD" 히어 다큐먼트라면 중간에 개행하거나 변수를 사용한 문장을 만들 수 있습니다 갱신일 : $date EOD; ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Chapter11</title> <link href="style/index.css" rel="stylesheet"> </head> <body> <div> <...
true
496ae9ead9fdf448d115c49f7a1063465456c354
PHP
adikarimadhav21/muskaan
/application/models/Mdl_certificates.php
UTF-8
1,894
2.5625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Mdl_certificates extends CI_Model { public function __construct() { parent::__construct(); $this->load->library('encryption'); } public function submitCertificate($photo) { $certificateTitle = $this->input->post('certificate_titl...
true
bdd5d93bfbec3d81efee97aa9c0c2d19f3d67d71
PHP
Jonathan-Aparicio/CADAVentures
/CIApp.php
UTF-8
2,398
2.71875
3
[ "CC-BY-3.0" ]
permissive
<?php session_start(); require_once "Dao.php"; $dao = new Dao(); // $info = array(); $type = $_GET["type"]; $id = $_GET["id"]; $info = $dao->getAllHouseInfo($id, $type); $address = $info[0]['StreetAddress']; $city = $info[0]['City']; $state = $info[0]['State']; $first = ""; $last = ""; $phone; if(is...
true
76f230a10a6403c361d1400e51efb36f25cc78a7
PHP
nulldevelopmenthr/generator
/src/Broadway/Definition/PHP/Methods/Model/CreateMethod.php
UTF-8
983
2.84375
3
[]
no_license
<?php declare(strict_types=1); namespace NullDev\Skeleton\Broadway\Definition\PHP\Methods\Model; use NullDev\Skeleton\Definition\PHP\Methods\Method; use NullDev\Skeleton\Definition\PHP\Types\ClassType; class CreateMethod implements Method { private $classToBuild; private $params; public function __cons...
true
9478b18e29d8be795dfed31e76094fa9ad6d2c80
PHP
moubz/demo-app-rails
/test.php
UTF-8
632
2.9375
3
[]
no_license
<?php require 'vendor/autoload.php'; use Acme\{Person, Team, League}; new Song; echo random_number(); $ho = new Person('Honore'); $ko = new Person('Komoe'); echo $ho->getName(). PHP_EOL; echo $ko->getName(). PHP_EOL; $barcelone = new Team('Barcelona'); $real = new Team('Real Madrid'); $ho->addFavori($barcelone);...
true
12044a9189fad0fee2f41fe7a449df8a54b9095f
PHP
fagnersutel/busca-php
/arquivos/procinfo.php
UTF-8
3,217
2.5625
3
[]
no_license
<?php $date = date("d/m/Y h:i"); $nome = $_POST['name']; $email = $_POST['email']; $telefone = $_POST['phone']; $assunto_digitado_pelo_usuario = "Serviço de Informação ao Cidadão"; $textodamensagem = $_POST['textarea']; echo '<br>data: ' . $date; echo '<br>nome: ' . $nome; echo '<br>email: ' . $email; echo '<br>telef...
true
20b62ded0254ed1210ee1143b49a41447e7e2190
PHP
oliveiramiguel/ASPTest
/src/Command/Input/UserCreateInput.php
UTF-8
2,005
3.109375
3
[]
no_license
<?php declare(strict_types=1); namespace ASPTest\Command\Input; use ASPTest\Entity\User; use Symfony\Component\Console\Input\InputInterface; class UserCreateInput { public function __construct( private $name, private $lastName, private $email, private $age ) {} public fu...
true
1b8d48faf77bf6097af05ae0a5df77ea61b3c24c
PHP
bedezign/dchelper
/src/DCHelper/Commands/Hosts.php
UTF-8
2,030
2.921875
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php namespace DCHelper\Commands; use DCHelper\Tools\External\Exec; class Hosts extends Command { public function shouldRun(...$arguments): bool { return true; } public function run(...$arguments) { di('env'); // Global defined hostname with $hostname = getenv('...
true
24f293f5a500b84af2c9c5cd31b0666d50eec7cd
PHP
cedtanghe/elixir-routing
/src/Route.php
UTF-8
14,702
2.609375
3
[]
no_license
<?php namespace Elixir\Routing; /** * @author Cédric Tanghe <ced.tanghe@gmail.com> */ class Route { /** * @var string */ const NAME = 'name'; /** * @var string */ const NAME_ALIAS = 'as'; /** * @var string */ const PRIORITY = 'priority'; /** ...
true
8262d0875c71a6028bbf4ee69b5600398331b128
PHP
mfjrsptr/PHP-project
/view_bimbingan.php
UTF-8
2,644
2.5625
3
[]
no_license
<?php include_once 'top.php'; require_once 'db/class_bimbingan.php'; //panggil file untuk operasi db //buat variabel utk menyimpan id //buat variabel untuk mengambil id $objKegiatan = new bimbingan_akademik(); $_id = $_GET['id']; $data = $objKegiatan->findByID($_id); /* +----+---...
true
710d72139d0a43050bac576259bbefe0d51b487f
PHP
IQcoder/DesignerPatterns
/Creational/Builder/BuilderInterface.php
UTF-8
542
2.78125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: chenchangqin * Date: 2018/12/19 * Time: 15:24 */ namespace Creational\Builder; /** * 建造者接口 */ interface BuilderInterface { /** * @return mixed */ public function createVehicle(); /** * @return mixed */ public function addWheel(); ...
true
57aa26f347594141bb49876c6ff30133a93e66b9
PHP
ngocsang1599/mypham
/controllers/backend/newsController.php
UTF-8
2,400
2.6875
3
[]
no_license
<?php //include file newsModel de su dung class newsModel include "models/backend/newsModel.php"; class newsController extends Controller{ //su dung class newsModel use newsModel; public function __construct(){ //xac thuc dang nhap $this->authentication(); } public function list_news(){ //quy din...
true
74c843bf01b895bb9afa16cc513b478aadf2888f
PHP
Markaos/BakAPI_PHP
/Web/InputContentBuilder.php
UTF-8
1,342
2.734375
3
[]
no_license
<?php namespace Markaos\BakAPI\Web { class InputContentBuilder extends ContentBuilder { public function __construct() { $this->content["element"] = "div"; $this->content["type"] = "container"; $this->content["classes"] = "input-field"; $this->content["id"] = ""; ...
true
790a198a72a43b15ac163bfd6a27e664c889b3c4
PHP
TMachon/PST_3A
/development/sites/model/suggestion_tutoriel.php
UTF-8
927
2.5625
3
[]
no_license
<?php class Suggestion_Tutoriel{ private $connexion; // connexion à la BD MySQL du serveur private $contents; private $surfer; private $id_tutoriel; public function __construct(){ include('bd.php'); $this->connexion = $co; $this->contents = func_get_arg...
true
6a3cd2b9aa5094628879d29abe86a4e2a486ded8
PHP
Michal-lab/Laravel-Forum
/app/Http/Controllers/QuestionKindController.php
UTF-8
690
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\QuestionKind; use Illuminate\Http\Request; class QuestionKindController extends Controller { public function __construct() { // zabezpeceni // mohou sem pouze prihlaseni uzivatele $this->middleware('auth'); } /** ...
true
22aade2f803470c28f63d660a67285f795ba2a83
PHP
ElaineBalgos/LRG_winter2021_pitch
/includes/admin/scripts/functions.php
UTF-8
870
2.890625
3
[ "MIT" ]
permissive
<?php function redirect_to($location=null) { if($location!=null) { header("Location: ".$location); exit; } } function getAllClasses(){ $pdo = Database::getInstance()->getConnection(); $queryAll = "SELECT * FROM tbl_class"; $runAll = $pdo->query($queryAll); ...
true
9c09f131cef9452c8e28f1781eb3ba739ef9e1e4
PHP
kernelman/logs
/tests/BackApiLogsTest.php
UTF-8
1,952
2.625
3
[ "MIT" ]
permissive
<?php /** * Class BackApiLogsTest * * Author: Kernel Huang * Mail: kernelman79@gmail.com * Date: 11/29/18 * Time: 2:09 PM */ namespace Tests; use Logs\Services\Logs; class BackApiLogsTest extends TestCase { public function testLogDebug() { $log = [ 'schema' => 'BackApi',...
true
d366d96ccf991c655ef9a9c8178d2e9995f18488
PHP
silascaxias/Cravo-Canela
/functions/global.php
UTF-8
883
2.8125
3
[]
no_license
<?php // Coloque as funções globais aqui amigos. function chk_array ( $array, $key ) { if ( isset( $array[ $key ] ) && ! empty( $array[ $key ] ) ) { return $array[ $key ]; } return null; } spl_autoload_register(function($class) { $path = ABSPATH . '/classes...
true
81cc6f7d7576539d130fe32c347de0c4a115b66f
PHP
PEMinecraftSoftWare/PEMinecraftSoftWare
/src/pocketmine/resourcepacks/ZippedResourcePack.php
UTF-8
3,843
2.640625
3
[]
no_license
<?php /* * * ____ _ _ __ __ _ __ __ ____ * | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \ * | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) | * | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/ * |_| \___/ \___...
true
6a1e5ea0f858d55289f7141523349f0adc0fa091
PHP
bamiz-ir/bamiz
/app/Http/Requests/CenterRequest.php
UTF-8
1,448
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class CenterRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the...
true
fd8a977f8af4da9655d365e411297db604b4aa19
PHP
ayushdatt/AContent
/include/classes/DAO/CoursesDAO.class.php
UTF-8
17,596
2.625
3
[]
no_license
<?php /************************************************************************/ /* AContent */ /************************************************************************/ /* Copyright (c) 2013 */ /* Inclusive D...
true
006070aafb80c7a699b1087087a1baa7cb566866
PHP
altrntv/altrntv.ru
/libs/uploadFile.php
UTF-8
5,775
2.515625
3
[]
no_license
<?php require 'db.php'; if ($_SESSION['lang'] == 'ru') { $lang=true; } $filePath = $_FILES['upload']['tmp_name']; $errorCode = $_FILES['upload']['error']; function transform2($str) { $str = mb_strtolower(str_replace(' ', '_', trim(preg_replace('/[^ a-zа-яё\d]/ui', '',$str )))); ...
true
3447fe2079d82f1fe5e63894a90d5af80e66f9c3
PHP
chris-at-github/qinx-typo3-go
/Classes/ViewHelpers/SpriteViewHelper.php
UTF-8
2,803
2.53125
3
[]
no_license
<?php namespace Qinx\Qxgo\ViewHelpers; /*************************************************************** * Copyright notice * * (c) 2016 Christian Pschorr <hello@qinx.me>, Qinx * * All rights reserved * * This script is part of the TYPO3 project. The TYPO3 project is * free software; you can redistribute i...
true
563ba3e455807bede1da31336d28cde0f1588a3c
PHP
hadipsy27/kamarpondok
/tambah_ustadz.php
UTF-8
1,682
2.578125
3
[]
no_license
<?php include "header.php"; ?> <form method="post" action="" class="col-md-4"> <h3>Tambah Data ustadz <?=$gen?></h3> <table class="table table-responsive table-striped"> <tr> <td>Nama ustadz</td> <td><input type="text" name="namaustadz" class="form-control" /></td> </tr> <tr> <td>Bidang</td> <td><in...
true
e2110d90afb1574e035b4d320a4c037d4e377868
PHP
alstendsouza/FashionyteInc
/admin-hotlist-list.php
UTF-8
2,398
2.59375
3
[]
no_license
<?php require 'db.php'; require "session-checks.php"; user_restricted(); admin_restricted(); $server = $_SERVER['HTTP_HOST']; $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); /* if( isset($_SESSION['authenticated']) == false || $_SESSION['authenticated']!=true ) { header("Location: http://$server$uri/login.php...
true
aedec846a78995c4edf86f2f4e5d9b8230d7100e
PHP
devisley/homework
/lesson2.local/good/DigitalGood.php
UTF-8
400
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Ruslan * Date: 30.08.2018 * Time: 20:09 */ namespace app\good; class DigitalGood extends OrdinaryGood { public function __construct($value, $id, $title, $manufacturer) { parent::__construct($value, $id, $title, $manufacturer); } protected functi...
true
1428022e437dac18051e00b9800f5ced7fd9c4ca
PHP
RanaFaizan/Huungry
/admin/edit_brand.php
UTF-8
2,808
2.5625
3
[]
no_license
<?php //if(!isset($_SESSION['user_email'])){ // header('location: login.php?not_admin=You are not Admin!'); //} $con = mysqli_connect("localhost","root","","huungry"); if(isset($_POST['update_brand'])){ //getting text data from the fields $brand_id = $_POST['brand_id']; $brand_title = $_POST['brand_title...
true
87c98c3e44189320eab0afc95e4f108794b94cca
PHP
wpugph/wordcamp-talks
/includes/talks/widgets.php
UTF-8
8,811
2.75
3
[]
no_license
<?php /** * WordCamp Talks Widgets. * * @package WordCamp Talks * @subpackage talks/widgets * * @since 1.0.0 */ // Exit if accessed directly defined( 'ABSPATH' ) || exit; if ( ! class_exists( 'WordCamp_Talk_Widget_Categories' ) ) : /** * Talks Categories Widget * * "Extends".. It's more limit WP_Widget_Cate...
true
42d1cba65939e81650a9314f3aececf5b0930392
PHP
damianociarla/DCSOpauthFOSUBBundle
/Model/Oauth.php
UTF-8
1,734
2.640625
3
[ "MIT" ]
permissive
<?php namespace DCS\OpauthFOSUBBundle\Model; use FOS\UserBundle\Model\UserInterface; class Oauth implements OauthInterface { /** * @var int */ protected $id; /** * @var UserInterface */ protected $user; /** * @var string */ protected $provider; /** * ...
true
6a5860649b0ed1a03d6878cf0c590dee498e5fc4
PHP
samankassou/deedsregister
/app/Actions/DeleteDeedAction.php
UTF-8
1,342
2.703125
3
[]
no_license
<?php namespace App\Actions; use App\Models\Deed; use LaravelViews\Views\View; use LaravelViews\Actions\Action; use LaravelViews\Actions\Confirmable; class DeleteDeedAction extends Action { use Confirmable; /** * Any title you want to be displayed * @var String * */ public $title = "Suppri...
true
3279cbf762d13fc7305717ade6add5ab3abb964e
PHP
bhudaya/remittance_service_prod
/application/class/Iapps/RemittanceService/Common/GeneralDescription.php
UTF-8
783
2.734375
3
[]
no_license
<?php namespace Iapps\RemittanceService\Common; class GeneralDescription{ protected $data = array(); public function add($title, $value) { $field['title'] = $title; $field['value'] = $value; $this->data[] = $field; return $this; } public function setArray(array ...
true
5b8eb47a9306d2b0bdc267a64c83adddc63dda42
PHP
josh04/quest
/code/common/core_error.php
UTF-8
2,324
2.703125
3
[]
no_license
<?php /** * error handling time! * * @author josh04 */ class core_error { private $common; /** * sets up custom error handling * * @param code_common $common calling page * @return core_error */ public function load_core(&$common) { set_error_handler(array($this, "error_hand...
true
f12428811312546d70943f4eb524921d3b9eb40a
PHP
LeoBessa403/atacadaobessa
/library/Validador/PlanoAssinanteAssinaturaValidador.class.php
UTF-8
1,439
2.5625
3
[]
no_license
<?php /** * PlanoAssinanteAssinaturaValidador [ VALIDATOR ] * @copyright (c) 2018, Leo Bessa */ class PlanoAssinanteAssinaturaValidador extends AbstractValidador { private $retorno = [ SUCESSO => true, MSG => [], DADOS => [] ]; public function validarPlanoAssinanteAssinatura($d...
true
e969bdf098b829aa066069fa2cf19c3bd19b6a29
PHP
Pvtw124/ecommerce-website
/html/admin/add-admin.php
UTF-8
3,556
2.609375
3
[]
no_license
<html> <head> <title>Add Admin</title> <link rel="stylesheet" href="../css/admin.css"> </head> <body> <?php include("partials/menu.php"); ?> <div class="main-content"> <div class="wrapper"> <h1>Add Admin</h1> <br/> <...
true
3e8106e3e8adeae3af1d5d3dbea2f628d3487b14
PHP
hughybarra/dr_music_ap
/AssistRx-Test/models/song_model.php
UTF-8
4,435
3.3125
3
[]
no_license
<?php // include 'my_model.php'; class song_model extends my_model { public function __construct() { // constructing the parent gives us // access to the db through $this->db // which is a native php mysqli interface parent::__construct(); } public function list_all() ...
true
4be98ff34d6dc720a65adc83b09e4074d766de1c
PHP
cocobennett/KittyRoleplay
/kittywork/upload.php
UTF-8
1,148
2.5625
3
[]
no_license
<html> <head> <title>Upload Profile Picture</title> <link rel="stylesheet" type="text/css" href="stylesheet.css" /> <style> body { background-image:url('background/3kittens.jpg'); height:500px; opacity:1; filter:alpha(opacity=100); /* For IE8 and earlier */ } </style> </head> <body> <?php include("connect.php"); ...
true
bcf6c1f8e41387068dbf6c873a3da8bb326b0e02
PHP
marscore/hhvm
/hphp/test/slow/traits/2078.php
UTF-8
243
2.546875
3
[ "Zend-2.0", "PHP-3.01", "MIT" ]
permissive
<?php trait T { public static function m() { echo "original "; } } class A { use T; } class B { use T; } <<__EntryPoint>> function main_2078() { A::m(); fb_intercept("A::m", function() { echo "new "; } ); A::m(); B::m(); T::m(); }
true
013b96a733d55dbed1a052e1827ee6286490771b
PHP
seggewiss/hash-code-base
/Loader/DataLoaderInterface.php
UTF-8
225
2.75
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); interface DataLoaderInterface { public function load(string $file): InputData; public function getFilesToProcess(): array; public function printFilesToProcess(array $files): void; }
true
b4e55460371509055bbd2e9529244edc5fdd9bb3
PHP
orzy/p2
/src/Service/Hatena.php
UTF-8
1,324
2.828125
3
[ "MIT" ]
permissive
<?php /** * P2_Service_Hatena * * require * * P2_Service_Feed * * @version 2.2.0a * @see https://github.com/orzy/p2 * @license The MIT license (http://www.opensource.org/licenses/mit-license.php) */ class P2_Service_Hatena extends P2_Service_Feed { /** * タグによるブックマーク検索 * @param string $tag ...
true
13f4a6e0f2cf0355fd2730617454af4956a7c4d4
PHP
nghia23d/emaarland
/packages/nghia23d/cms/src/Http/Requests/Admin/BlogRequest.php
UTF-8
2,281
2.609375
3
[ "MIT" ]
permissive
<?php namespace nghia23d\cms\Http\Requests\Admin; use Illuminate\Foundation\Http\FormRequest; class BlogRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ private $table = 'blog'; public function authorize() { ...
true
1d1c8694d6279bf7519f10b7fc76f24b1e55d3c5
PHP
hunslater/dutchphp2012-php-in-the-dark
/4-ipc/04-msgqueue-master.php
UTF-8
595
2.71875
3
[]
no_license
#!/usr/bin/php <?php define('MSG_WORK', 1); define('MSG_STATUS', 2); // First we get the message queue $key = ftok(__FILE__, 'a'); $queueId = msg_get_queue($key); // We add some IDs to be processed on it for ($i = 0; $i < 1000; $i++) { $id = rand(10000, 20000); msg_send($queueId, MSG_WORK, $id, false); } //...
true
4cf3b32ba1568b2ec6120aff4fa7284bb3cf1c4d
PHP
willbertdev/invoice-exam
/invoicing/application/helpers/Static_helper.php
UTF-8
610
2.90625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php function dd($arr) { if ($arr) { echo '<pre>'; print_r($arr); echo '</pre>'; } } function now() { return date('Y-m-d H:i:s'); } function dateFormat($date, $format = "Y-m-d H:i:s") { return date($format, strtotime($date)); } function checkSession() { $CI = & get_insta...
true
309a713d22e0ce05e776df2a2e8da3f63bf08f3c
PHP
Kantnathan/mhm2
/application/models/Host_model.php
UTF-8
6,355
3.109375
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * News_model * * ajouter_news($auteur, $titre, $contenu) * editer_news($id, $titre = null, $contenu = null) * supprimer_news($id) * count($where = array()) * liste_news($nb = 10, $debut = 0) */ class Host_model extends CI_Mod...
true
18cc994a4c19121e88054a8df987db7f8237cf78
PHP
luyuting/Scholarship-Yaf
/application/models/Scholarship/Practice.php
UTF-8
4,557
2.921875
3
[]
no_license
<?php class Scholarship_PracticeModel { use Trait_Scholarship; private static $_type = Scholarship_BaseModel::SCHOLAR_PRACTICE; /** * 社会实践单项:社会实践申请 * @param string $title 实践活动名称 * @param string $name 实践类型 * @param string $student 申请学...
true
e7d4454abb88d5e98d2ab923ab18a19572633dec
PHP
calcinai/siri
/gen/siri/src/Datex/RoadConditionsType.php
UTF-8
1,136
2.59375
3
[]
no_license
<?php namespace Calcinai\Siri\Objects\Datex; /** * Class representing RoadConditionsType * * Conditions of the road surface which may affect driving conditions. These may be related to the weather (e.g. ice, snow etc.) or to other conditions (e.g. oil, mud, leaves etc. on the road) * XSD Type: RoadConditions */ ...
true
3ec4f601645b999ffd60deff2f0d6893b083c457
PHP
Greengo86/xml
/module/Application/src/Service/CurrencyManager.php
UTF-8
853
2.859375
3
[]
no_license
<?php namespace Application\Service; use Application\Entity\Currency; use Doctrine\ORM\EntityManager; use Doctrine\ORM\Mapping\Entity; use Zend\Filter\StaticFilter; class CurrencyManager { /** * Entity manager. * @var Entity */ private $entityManager; // Конструктор, используемый для вн...
true
ae8786e4951e266ec69a06332d0908f965ad09de
PHP
jornwildenbeest/cinemaAPI
/assets/classes/customer.php
UTF-8
570
2.75
3
[]
no_license
<?php require_once 'database_object.php'; class customer extends database_object { private $pdo; public static $table_name = "Customer"; public static $id = "Id"; public static $db_fields = array("Id", "Firstname", "Lastname", "Adress", "Zipcode", "Town"); public $customer_id;...
true
9bd5f1edd0f073933c6acd1703e33efaf8e02b88
PHP
imanghafoori1/laravel-microscope
/src/ListModels/ListModelsArtisanCommand.php
UTF-8
3,027
2.6875
3
[ "MIT" ]
permissive
<?php namespace Imanghafoori\LaravelMicroscope\ListModels; use Illuminate\Console\Command; use Illuminate\Database\Eloquent\Model; use Imanghafoori\LaravelMicroscope\Analyzers\ComposerJson; use Imanghafoori\LaravelMicroscope\ErrorReporters\ErrorPrinter; use ReflectionClass; use Symfony\Component\Console\Terminal; use...
true
7ece9f40ab28886dcfb4fec35bb52b74fdb03d29
PHP
Nogrod/ebay-sdk-php
/src/MerchantData/StoreCustomListingHeaderLinkCodeType.php
UTF-8
1,658
2.734375
3
[ "MIT" ]
permissive
<?php namespace Nogrod\eBaySDK\MerchantData; /** * Class representing StoreCustomListingHeaderLinkCodeType * * Specifies the type of link in the custom listing header. * XSD Type: StoreCustomListingHeaderLinkCodeType */ class StoreCustomListingHeaderLinkCodeType { /** * Constant for 'None' value. *...
true
bf78555dbba1b4443f5398be2614e83409e4bcef
PHP
kix/php-open-tag-fixer
/src/Kix/OpenTagFixer/Command/FixTagsCommand.php
UTF-8
3,128
2.890625
3
[]
no_license
<?php /** * @author Stepan Anchugov <kixxx1@gmail.com> */ namespace Kix\OpenTagFixer\Command; use \Symfony\Component\Console\Command\Command; use \Symfony\Component\Console\Input\InputInterface; use \Symfony\Component\Console\Output\OutputInterface; use \Symfony\Component\Console\Input\InputOption; use \Symfony\Com...
true
a6ba25155186e6bd52e7a17d60499abac177d307
PHP
denis-faller/challenge
/number division.php
UTF-8
718
3.765625
4
[]
no_license
<?php // Дано целое число. Разбейте его на случайное количество целых чисел так, чтобы в сумме они давали это число. // Пример: 100 можно разбить на 50+50, или 51+49, или 20+30+50. Количество фрагментов должно быть любым, случайным, сами фрагменты тоже должны быть случайными. function numberDivision($num){ $sumRnd =...
true
2063cb364cb68ae157d20d7578e72adf46abc112
PHP
Mr-szh/electronic-shop
/app/Http/Requests/PasswordRequest.php
UTF-8
1,268
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Validator; class PasswordRequest extends Request { public function authorize() { return true; } public function rules() { $this->newValidato...
true
03932e6a7802f82db2256120a546771a60808000
PHP
cncgen18/College_Development_and_papers
/Web/mySQL/Bug/DeleteBug.php
UTF-8
1,052
2.65625
3
[]
no_license
<?php echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Bug Report</title> <link rel="stylesheet" type="text/css" href="php_styles.css"> </head>...
true
b7fdd7f3df56ea25db366800ffcc543b2d478a65
PHP
Cmandapat/ace-website
/php/view-points.php
UTF-8
1,581
2.890625
3
[]
no_license
<?php // -------------------------------------------------------------------------------------------- // Connect to database // -------------------------------------------------------------------------------------------- // Set up connection variables $hostname="localhost"; $username="acesan7_max"; $password="dbpw26...
true
b69d2afc9b8ca6086d8c5edd38ca7e19c1e5a051
PHP
AbdulhadiDOGAN/69-projet
/dev/dev_Warcri91/PagesProjet/1.21/Utilisateur.php
UTF-8
1,240
2.625
3
[]
no_license
<?php header('Content-Type: text/html; charset=utf-8'); try { $pdo_options[PDO::ATTR_ERRMODE] = PDO::ERRMODE_EXCEPTION; $DB = new PDO('mysql:host=localhost;port=3308;dbname=wikicomp;charset=utf8mb4', 'root', '', $pdo_options); } catch(Exception $e) { die('Erreur : '.$e->getMessage()); } try { $nom = $_POST['nom']; ...
true
d4035def54dbd7f68227214507d8be7db3708351
PHP
Insolita/php-acme-client
/src/AcmeClient/Infrastructure/Auth/Jose/JwsDirector.php
UTF-8
794
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace AcmeClient\Infrastructure\Auth\Jose; use AcmeClient\Domain\Shared\Model\Key; class JwsDirector { /** * @var JwsBuilderInterface */ private $builder; /** * @param JwsBuilderInterface $builder */ public function __construct(JwsBuilderInterfa...
true
ee1cf78679ef7afab130b3aef56698e3c9df0d5d
PHP
MikeUpjohn/Mikeofmacc-Weather
/includes/validateDeleteSnowIceWarning.php
UTF-8
593
2.53125
3
[]
no_license
<?php if(isset($_POST['buttonUpdate_severeWeatherForecasts_snowIceWeatherWarnings_Delete'])) { $errorMessage = ""; $submitForm = true; if($_POST['warningID'] == "") { $errorMessage .= "Please enter a forecast to delete.<br/>"; $submitForm = false; } else if(preg_match('/[^0-9]/', $_POST['warningID'])) { $...
true
3e2d80d0df55c18c071fb566c14bc5626f6fd5ac
PHP
singhania1408/bloodbanksys
/bloodbank/blood.php
UTF-8
1,155
2.640625
3
[]
no_license
<?php $username=$_POST['username']; $bloodgroup=$_POST['bloodgroup']; $dbc = mysqli_connect('mysql.hostinger.in', 'u684030433_root', 'fastrack', 'u684030433_blood'); // Retrieve the score data from MySQL $query = "SELECT lat,lng FROM user_info WHERE username='$username'"; $data = mysqli_query($dbc, $query); ...
true
be66e9952b727e7de59012a0f98495f788df2b53
PHP
Wixel/GUMP
/tests/StaticAddFilterTest.php
UTF-8
624
2.640625
3
[ "MIT" ]
permissive
<?php namespace Tests; use GUMP; use Exception; /** * Class StaticAddFilterTest * * @package Tests */ class StaticAddFilterTest extends BaseTestCase { public function testItThrowsExceptionWhenFilterWithSameNameIsAdded() { GUMP::add_filter("custom", function($value, array $params = []) { ...
true