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
6cbef55dc07edcfaaf2d3f294e1cbff97a5f33ce
PHP
alexrae11/Grade-Calculator
/index.php
UTF-8
1,070
2.515625
3
[]
no_license
<?php require "header.php"; // includes the header on the main page ?> <main> <div class="main-wrapper"> <section class="section-default"> <h1>Welcome To The University Grading Calculator</h1> <?php if (!isse...
true
5413c14787f0eeb59cbec49fe16bb7eb81556d52
PHP
schpill/ezframework
/library/FTV/Auth.php
UTF-8
1,548
2.78125
3
[]
no_license
<?php /** * Auth class * * @package FTV * @author Gerald Plusquellec */ class FTV_Auth { /** * The user currently being managed by the driver. * * @var mixed */ public $user; /** * The current value of th...
true
b4d65fb20e2ee0ce5f2fd22fffa27e7fc423241d
PHP
jack775544/3202-login-demo
/backend/login.php
UTF-8
964
2.96875
3
[ "MIT" ]
permissive
<?php /* * Takes the following post args: * token: if the token is valid with regards to a username then will return true * username: the username to check login status * password: the password to check the login status, not needed if sending what is thought to be a valid token * * This page has the following ret...
true
c24226193ce7e677c45386abbb664eb265942498
PHP
callcocam/base-api-phpflexe
/api/v1/src/Http/Factory/StreamFactory.php
UTF-8
1,095
2.828125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: caltj * Date: 29/10/2018 * Time: 16:28 */ namespace Flexe\Http\Factory; use Slim\Http\Stream as SlimStream; use Psr\Http\Message\StreamInterface; class StreamFactory implements StreamFactoryInterface { /** * {@inheritdoc} */ public function createStream...
true
741aba010a3765b88d474cff046a7835f11bb3a0
PHP
ROBAOSO/curso_php-Niderauer
/prog8.php
UTF-8
157
3.453125
3
[]
no_license
<?php $vetor = array(10, 50, 100, 150, 200); echo $vetor[2] . "<br>"; $vet = array(1, 2, 3, "nome" => "Joaquim"); echo $vet[0] . "<br>"; echo $vet["nome"];
true
1cfa9d796b77ef02e60da0d287aedda417c669cb
PHP
LordGee/VirtualUniversity
/vu_rpg/Assets/Scripts/WebServer/db/db_conn.php
UTF-8
840
2.75
3
[]
no_license
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); class DBConnection { private $db_host = "localhost"; private $db_name = "mychaosc_uni_rpg"; private $db_user = "mychaosc_unirpg"; private $db_pass = "yvJB2z8IUZQD"; prot...
true
a28f2a00f0fa6f6eb15a983fac032a3f1716533d
PHP
melnikvlad/SocialMediaApp
/server/scruji_insert.php
UTF-8
1,109
2.78125
3
[]
no_license
<?php class DBOperations{ private $host = 'localhost'; private $user = 'melnik'; private $db = 'scruj'; private $pass = '123'; public $conn; $user_id = $_POST['user_id']; $name = $_POST['name']; $surname = $_POST['surname']; $age = $_POST['age']; $country = $_POST['country']; $...
true
94c2e1b288e505d77986075797fb8149e6d823d7
PHP
shanslang/tp5.1
/public/hh.php
UTF-8
1,725
2.859375
3
[ "PHP-3.0", "Apache-2.0" ]
permissive
<?php /** * User: liuxian * Date: 2018/10/25 * Time: 19:20 */ require '../vendor/autoload.php'; use PhpOffice\PhpSpreadsheet\IOFactory; use PhpOffice\PhpSpreadsheet\Spreadsheet; $data = array(0 => array(0 => 1, 1 => 'alex1', 2 => 1,), 1 => array(0 => 2, 1 => 'alex2', 2 => 2,), 2 => array(0 => 3, 1 => 'alex3', 2 ...
true
e821d65d0a82ad9b2f7876e8b625d091bc2337ef
PHP
bpaolo/content
/classes/class.CadUsuario.php
UTF-8
1,714
2.90625
3
[]
no_license
<?php include_once dirname(__FILE__).'/class.CadUsuarioBD.php'; include_once dirname(__FILE__).'/class.Usuario.php'; class CadUsuario{ var $cadUsuarioBD; function CadUsuario($conexao = ''){ $this->cadUsuarioBD = new CadUsuarioBD($conexao); } function inserirUsuario($usuario) { return $this->cadUs...
true
3908e5a0fc07e9a203b53176049e65dcbfd3dcf3
PHP
mingyoung/dingtalk
/src/Kernel/Encryption/Encryptor.php
UTF-8
3,523
2.890625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the mingyoung/dingtalk. * * (c) 张铭阳 <mingyoungcheung@gmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace EasyDingTalk\Kernel\Encryption; use function EasyDingTalk\str_random; class Encryptor { ...
true
6c0c51c2ac8c62b71217c8eceb42440035074139
PHP
Afaq25/Doctor-online-appointment
/mailer.php
UTF-8
519
2.578125
3
[]
no_license
<?php if(isset($_POST['submit'])){ $name=$_POST['name']; $email=$_POST['email']; $phone=$_POST['phone']; $msg=$_POST['message']; $to='afaqzai@gmail.com'; $subject='Form submission'; $massage="Name:".$name."\n"."phone:".$phone."\n"."wrote the following:"."\n\n".$msg; $from="From:".$...
true
28d39d0725773aa2208ab0be41543f9ad6766c8e
PHP
faseneo/tomadehoras
/modelo/formaatencion/entidadformaatencion.php
UTF-8
378
2.671875
3
[]
no_license
<?php //Formas de atención class FormaAtencion{ private $formaatencion_id; private $formaatencion_texto; private $formaatencion_estado; public function __GET($k){ return $this->$k; } public function __SET($k, $v){ return $this->$k = $v; } public function returnArr...
true
80228c61c8f40acbd4309278cd6a13cb7ac19cfd
PHP
CristianaCampos/ParkAtHome-Back_end-Tests
/Users/SavePlace.php
UTF-8
1,958
2.8125
3
[]
no_license
<?php $servername = "localhost"; $dbUsername = "root"; $dbPassword = ""; $dbName = "parkathome_mobile"; // Cria a ligação à BD $conn = mysqli_connect($servername, $dbUsername, $dbPassword, $dbName); // Verifica se a ligação falhou (ou teve sucesso) if (!$conn) { die("Connection failed: " . mysqli_connect_error());...
true
1831f2707931a57c560287a24d368368dfcca096
PHP
ferjaniSami/formation-zf
/application/services/Validator/PostalCode.php
UTF-8
903
2.671875
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. */ class Application_Service_Validator_PostalCode extends Zend_Validate_Abstract { const POSTAL_CODE = 'postal_code'; con...
true
6a94df22a3d7f43ace18c2215f0ca5e6ec33f925
PHP
Xavier-Frank/Php_Practicals
/php/phpClass/php/39_RequiredField.php
UTF-8
2,333
3.234375
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Hello PhP</title> </head> <body> <form method="POST" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" > <?php // TextFields ?> Name: <input type="text" name="name"> <span class="error"> * <?php echo $nameErr ...
true
2bf8616b0aaec418e1f3ce710438f528f63727b2
PHP
tmajne/php8
/src/Union.php
UTF-8
1,009
3.40625
3
[]
no_license
<?php declare(strict_types=1); namespace Php8; use stdClass; /* TypeScript - union */ class Union { private int|string|stdClass $foo; private int|null $bar = null; //private ?int $bar; public float|string $zet; public object $object; public function __construct(int|string|stdClass $foo)...
true
c3fe1927b100b7b8edef9c4744ea414c7ee29293
PHP
wadefelix/RWCCWakka
/libs/HTML/QuickForm/Renderer/QuickHtml.php
UTF-8
7,390
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php /* vim: set expandtab tabstop=4 shiftwidth=4: */ // +----------------------------------------------------------------------+ // | PHP version 4.0 | // +----------------------------------------------------------------------+ // | Copyright (c) 1997-2003 The PHP ...
true
eb70032ce51450d07a40ec2bd33a86e1862b2cef
PHP
marious/tvmates
/src/Domain/HosterLocation.php
UTF-8
1,089
2.90625
3
[]
no_license
<?php namespace TVMates\Domain; class HosterLocation { protected $location_type; protected $area; protected $air_condition; protected $seats_type; protected $seats_number; protected $ambient_light; protected $host_id; /** * @return mixed */ public function getLocationTy...
true
f926a96f7addb3bb6626fb325ea398865b055c87
PHP
google-code/ayde-grupo2
/functions/getNextClosureDate.php
UTF-8
835
2.640625
3
[]
no_license
<?php function getNextClosureDate($currentDate) { $connection = mysqli_connect("localhost", "root"); $dataBase = mysqli_select_db($connection, "projectcosts"); $nextClosure = NULL; $currentDateDivision = explode ("-", $currentDate); $currentDay = $currentDateDivision[0]; $currentMonth = $currentDateDiv...
true
cb6c2da126efa91e242845624b3f403c10acf54e
PHP
YaangVu/Laravel-Base
/src/Base/Operator/SqlsrvOperator.php
UTF-8
647
2.765625
3
[]
no_license
<?php /** * @Author yaangvu * @Date Feb 23, 2023 */ namespace YaangVu\LaravelBase\Base\Operator; use YaangVu\LaravelBase\Base\Contract\Operator; use YaangVu\LaravelBase\Base\Enum\OperatorPatternEnum; class SqlsrvOperator implements Operator { public function make(OperatorPatternEnum $pattern): string {...
true
5d6bc91de539bcc316c60e9f7f4bbe692d35cd83
PHP
random25umezawa/athena_dataset
/init.php
UTF-8
915
2.5625
3
[]
no_license
<?php require 'def.php'; $info = ['date' => '2018-12-30', 'id' => 1]; $character_log = []; $sell_log = []; // masterテーブル作成 $master_characters = []; for ($i = 1; $i <= array_sum($master_rarity_amounts); $i++) $master_characters[$i] = ['id'=>$i, 'rarity'=>$master_rarity_map[$i], 'price'=>pow(10,$master_rarity_m...
true
3ec32274354c342a773cf8b1e37159458f4cf96a
PHP
alifahfathonah/e-pharm
/hr/insertgaji.php
UTF-8
1,416
2.703125
3
[ "MIT" ]
permissive
<?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="e-pharm"; // Database name $tbl_name="penggajian"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db...
true
c5b05fdbfe755c99792a5e22941a9abf26758d75
PHP
pierregaimard/climb
/src/Annotation/Parser/OptionData.php
UTF-8
4,009
3.4375
3
[ "MIT" ]
permissive
<?php /** * used to store one parsed annotation data with the correct type of value. */ namespace Climb\Annotation\Parser; class OptionData { public const VAL_TYPE_INT = 'int'; public const VAL_TYPE_STRING = 'string'; public const VAL_TYPE_BOOL = 'bool'; public const VAL_TYPE_ARRAY = 'array';...
true
ff3240e4ac4616a31f22c1419c621fee90a0f049
PHP
ccmorenosa/artemisa
/serviciosacademicos/funciones/clases/fpdf/ean128.php
UTF-8
4,756
3.0625
3
[]
no_license
<?php class ean128 { function ean128($cadena) { $this->cadena="Ê".$cadena; } function codificar() { $checksum=0; if(strlen($this->cadena)>0) { //valida los caracteres for($this->i=0;$this->i <= strlen($this->cadena);$this->i++) { $ascii=ord(substr($this->cadena,$this->i,1)); //echo $ascii...
true
8d11973b49859920e65523be378d5b293efb36c9
PHP
racai-ai/RELATE
/src/components/translate/data/stts.php
UTF-8
1,789
2.53125
3
[ "MIT" ]
permissive
<?php $options=["text","lang"]; $data=[]; foreach($options as $o){ if(isset($_REQUEST[$o]))$data[$o]=trim($_REQUEST[$o]); } if(!isset($data['text']) || !isset($data['lang']) || strlen($data['text'])<2) die("Invalid usage"); $endpoint=false; if(isset($_REQUEST['endpoint'])){ $endpoint=$_REQUEST['endpoint']...
true
1d5ec825f549014a23d8b7a39a30d094b1acd2a3
PHP
mpalmier/PrestaChope-4
/page/Admin/ControllerAdmin.php
UTF-8
2,870
2.546875
3
[]
no_license
<?php include_once('DAO/UserDAO.php'); include_once('DTO/UserDTO.php'); include_once('DAO/CategorieDAO.php'); include_once('DTO/CategorieDTO.php'); include_once('DAO/AdresseDAO.php'); include_once('DTO/AdresseDTO.php'); include_once('DAO/FactureDAO.php'); include_once('DTO/FactureDTO.php'); include_once('DAO/C...
true
ac5ba0fd2276e31f5a890a64e6275a73632c28b5
PHP
jhennieprado/WebtekFinals
/PHP Module (Service Provider)/Service Provider/appointments.php
UTF-8
1,583
2.703125
3
[]
no_license
<?php include('connection.php'); $query = "SELECT *from appointments a join clients c on a.clientno = c.clientno join services s on a.serviceid = s.serviceid where status = 'accepted' order by a.daterequest asc"; $result = mysqli_query($conn, $query); ?> <!DOCTYPE html> <html> <head> <title>Clien...
true
49d843431c6737eac50c6a11ba37f75fe41ebd4c
PHP
Enalean/simpletest2mockery
/src/ST2Mockery.php
UTF-8
4,705
2.5625
3
[]
no_license
<?php declare(strict_types=1); /** * Copyright (c) Enalean, 2018. All Rights Reserved. * * This file is a part of Tuleap. * * Tuleap is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of t...
true
45e718c8656f012b1e2a3d007d0f70094aa7d9de
PHP
awesomebitrix/bitrix-base-project
/local/classes/NS/Resizer.php
UTF-8
680
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Local\NS; use Gregwar\Image\Image; class Resizer { public static function resize($path, $width, $height, $params = []) { $path = $path ? $path : ''; $path = $_SERVER['DOCUMENT_ROOT'] . $path; $cacheDir = '/upload/cache-image'; $image ...
true
0bf681c9e69fa94fd135317e4c086fd477056b96
PHP
jlai403/COMP4511-OpenAirportsData_WebServices
/api/v1/Model/AirportRepository.php
UTF-8
3,395
2.9375
3
[]
no_license
<?php require_once($_SERVER["DOCUMENT_ROOT"]."/DataAccess/PdoWrapper.php"); class AirportRepository { public function findByCountry($country, $limit){ $limitQuery = $limit === "" ? "" : " limit $limit"; $query = "SELECT * FROM assignment4.airports WHERE Country LIKE '%$country%' $limitQuery;"; ...
true
94213c30c0b55bfd2fa6b67354c5d06f84bbf087
PHP
exwanthojr/UAS
/1b_SwitchCase.php
UTF-8
1,119
3.484375
3
[]
no_license
<?php class Segitiga{ public function __construct($SETENGAH = 0.5){ $this->SETENGAH = $SETENGAH; } public function luasSegitiga($alas, $tinggi){ echo "Luas Segitiga adalah : ". $this->SETENGAH * $alas * $tinggi; } public function kelilingSegitiga($alas, $sisimiringA, $sisimir...
true
2b56d4a018267bbad11690982d5ee8b98dd75e47
PHP
MohamedAnwerEida/Doctors-Appointments-API
/app/Models/Appointment.php
UTF-8
1,693
2.640625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Appointment extends Model { use HasFactory; const Status_Pending = 'Pending'; const Status_Completed = 'Completed'; const Status_Canceled = 'Canceled'; protected...
true
20f2ff9c44f5c60c58ce069c0bbec49e356a127e
PHP
DorneaRebeca/art-exhibition
/src/Model/Persistence/Mapper/UserMapper.php
UTF-8
1,499
3.03125
3
[]
no_license
<?php namespace Art\Model\Persistence\Mapper; use Art\Model\DomainObject\User; class UserMapper extends AbstractMapper { public function insert(User $user) { $row = $this->mapToArray($user); $sql = "INSERT into user (name, email, password) VALUES (:name,:email, :password) "; $statem...
true
467d1c6736286c2cee0552a9a0ebce87df9a7f2e
PHP
youssefrahou/Laravel---Brave-Fitness
/app/Http/Requests/ValidarArticuloRequest.php
UTF-8
1,216
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class ValidarArticuloRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** ...
true
a8b5166198e5b00bf9719213f4b86f51e4a7fe03
PHP
aftaa/a
/strategy/LinkPrivateStrategy.php
UTF-8
363
2.578125
3
[]
no_license
<?php namespace strategy; use helper\Visitor; /** * Class LinkPrivateStrategy * * @package strategy */ class LinkPrivateStrategy { /** * @param bool $private * * @return bool */ public function isPrivate(bool $private) { if (Visitor::isAftaa()) { return false;...
true
dd87f6b8e107f335646f0ff1acc828db1a1d0d41
PHP
yasar/aptNgApp001
/backend/app001/couponInspector/CouponProcessor.php
UTF-8
10,613
2.5625
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: unal * Date: 22.10.2015 * Time: 12:11 */ namespace BYRWEB\app001\couponInspector; use BYRWEB\app001\couponReward\CouponRewardRecord; class CouponProcessor { public static $newTotal = array( 'price' => 0, 'tax' => 0, 'grand' => 0, ...
true
dd3b9f60a76cf527c9c6f5c76df78695aa147520
PHP
jesssewovon/Pi-project
/src/Controller/NewsletterController.php
UTF-8
1,132
2.5625
3
[]
no_license
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\JsonResponse; use App\Repository\NewsletterRepository; use App\Entity\Newsletter; cl...
true
7484ad6ab34ef8b95377247a177096ee52daa642
PHP
abmuiz/StaffCommunicator
/AddGroupMessage.php
UTF-8
11,100
2.5625
3
[]
no_license
<?php session_start(); ?> <?php if (!isset($_SESSION['user_id'])) { header("Location: index.php"); } include('config.php'); $conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $chat_creator = ...
true
9387f0dab46f479b16d4c7e9c7c868324b760467
PHP
chandrashekharshaw/Panchang
/src/pear/DB/DataObject.php
UTF-8
167,982
2.65625
3
[ "Apache-2.0" ]
permissive
<?php /** * Object Based Database Query Builder and data store * * For PHP versions 4,5 and 6 * * LICENSE: This source file is subject to version 3.01 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_01.txt. If you did not receive a copy of ...
true
0f88ce08aa24c6770e0d267cf89e020829baa815
PHP
voitto/openmicroblogger_classic
/db/library/facebook_stream/Services/Facebook/Notifications.php
UTF-8
4,950
2.875
3
[ "Apache-2.0", "MIT" ]
permissive
<?php /** * PHP5 interface for Facebook's REST API * * PHP version 5.1.0+ * * LICENSE: This source file is subject to the New BSD license that is * available through the world-wide-web at the following URI: * http://www.opensource.org/licenses/bsd-license.php. If you did not receive * a copy of the New BSD ...
true
372d0ee1d9a6497d84428966ac63f9e568f90729
PHP
questocat/socialite-manager
/src/AbstractProvider.php
UTF-8
10,800
2.734375
3
[ "MIT" ]
permissive
<?php namespace Socialite\SocialiteManager; use GuzzleHttp\Client; use Socialite\SocialiteManager\Contracts\ProviderInterface; use Socialite\SocialiteManager\Exceptions\InvalidCallableException; use Socialite\SocialiteManager\Exceptions\InvalidStateException; use Symfony\Component\HttpFoundation\RedirectResponse; use...
true
72c9f91a521b0828f9876364c798897f29fa60af
PHP
stefanos1316/Rosetta_Code_Data_Set
/tasks/exponentiation-operator/php/exponentiation-operator.php
UTF-8
161
3.09375
3
[ "CC0-1.0" ]
permissive
<?php $r = 1; function executeTask($i) { return pow(2017+$i, 12) + pow(19.88+$i, 12); } for ( $i = 0; $i < 2000000000; $i++) { $r = executeTask($i); } ?>
true
1d2af2619e90de66104a5edfdb3f3c24c1a60e24
PHP
tomcat99999/dochazka
/src/Controller/DisplayUserController.php
WINDOWS-1250
3,946
2.578125
3
[]
no_license
<?php namespace App\Controller; use App\Controller\AppController; use Cake\ORM\TableRegistry; use Cake\Datasource\ConnectionManager; use Cake\Auth\DefaultPasswordHasher; class DisplayUserController extends AppController { public function index($id) { //zobrazen dochzek pro jednotlivho uivatele /*...
true
f71a12464c83de501c957f51bad44b644e7a8723
PHP
dooglz/MOSP15G8
/editUser.php
UTF-8
2,589
2.65625
3
[]
no_license
<?php require("preContent.php"); require("secureAdmin.php"); if(!isset($_GET['userID']) || empty($_GET['userID'])) { echo "<a href='users.php'>Go Back</a><br>"; die("userID get request invalid"); } if($db === null){ echo $dbmsg; include('postContent.php'); ...
true
c4d5063cbe46a132b902cb10ad4ffaa7d081dc7c
PHP
TehYongXian/Software-Development-Project
/SDP/dbConn.php
UTF-8
419
2.640625
3
[]
no_license
<?php /* Database credentials. Assuming you are running MySQL server with default setting (user 'root' with no password) */ $DB_SERVER ='localhost: 3308'; $DB_USERNAME = 'root'; $DB_PASSWORD=''; $DB_NAME ='assignment100'; $db =mysqli_connect ($DB_SERVER, $DB_USERNAME, $DB_PASSWORD, $DB_NAME); // Check conne...
true
8a371df46542b201789d038a9f605305a0c7a9a3
PHP
nqc11/KLTN-Laravel
/app/Http/Requests/UserRequest.php
UTF-8
1,347
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class UserRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the va...
true
9f0ee32e8a7fe635f6844718ad354c9802b1f2e3
PHP
jendo/rest-api
/src/App/Validation/Validator.php
UTF-8
817
2.78125
3
[]
no_license
<?php namespace MyApp\Validation; use MyApp\Error\ErrorDTO; use Symfony\Component\Validator\Constraints\Collection; use Symfony\Component\Validator\ConstraintViolationInterface; use Symfony\Component\Validator\Validation; class Validator { /** * @param array $inputData * @param array $rules * @ret...
true
0d108b12e2fb0b98702126eac197dc84974fa98b
PHP
nanbu123/manage_ip
/breaker_edit.php
UTF-8
6,280
2.796875
3
[]
no_license
<?php include_once('./lib/config.php'); include_once('./lib/function.php'); include_once('./lib/db_access.php'); // ログインチェック if (!check_session_login()) { exit; } // DB接続 $db = new db_access(); $err_flag = false; $result_flag = false; $err_msg = ''; $result_msg = ''; if (isset($_GET['id']) && is_numeric($_GET['id'...
true
e6be52e08c481ebc916c3e01eaaab59c79cb842f
PHP
minhliem86/duhoche2018
/database/seeds/DatabaseSeeder.php
UTF-8
1,103
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; class DatabaseSeeder extends Seeder { /** * Run the database seeds. * * @return void */ protected $tables = [ // 'users', // 'clients', 'countries', 'media', ...
true
988c37c807284b143ae03c0aba2dfe7a1651c723
PHP
malikmudassar/pathways
/dbconnect.php
UTF-8
44,795
2.6875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* SQLyog Copyright 2003-2011, Webyog http://www.webyog.com HTTP Tunneling Page This page exposes the MySQL API as a set of web-services which is consumed by SQLyog - the most popular GUI to MySQL. This page allows SQLyog to manage MySQL even if the MySQL port is blocke...
true
43bf42aa426118a4db9cf7f03e94e5085c1c802a
PHP
OwenTo/Projet_insset_Jdr_Game
/src/Entity/Metier.php
UTF-8
2,222
2.515625
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\MetierRepository") */ class Metier { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(t...
true
a84de13d80f16b34d541def1a7e34debcd5b4401
PHP
davemee/joind.in
/src/system/application/models/event_blog_posts_model.php
UTF-8
962
2.53125
3
[ "DOC", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Event_blog_posts_model extends Model { function Event_blog_posts_model(){ parent::Model(); } //------------------- function getPosts($eid,$first=false){ $this->db->from('event_blog_posts') ->join('user','user.ID=event_blog_posts.author_id') ->where(array('event_id'=>$eid)) ->order_by('dat...
true
8060748da5e65aae0cd78fcce6d0c542d21ea55a
PHP
luzdelsol668/laravel-blog
/src/Events/CategoryWillBeDeleted.php
UTF-8
676
2.515625
3
[ "MIT" ]
permissive
<?php namespace HessamCMS\Events; use Illuminate\Queue\SerializesModels; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Broadcasting\InteractsWithSockets; use HessamCMS\Models\HessamCategory; /** * Class CategoryWillBeDeleted * @package HessamCMS\Events */ class CategoryWillBeDeleted { use Disp...
true
e8d1a53e28a9a0e78b44e2c444e892d0816555ee
PHP
Kyuwu/plugin-opencart
/Trustpilot/Opencart-2.X/upload/system/library/trustpilot/trustpilot_http_client.php
UTF-8
1,777
2.78125
3
[ "MIT" ]
permissive
<?php class TrustpilotHttpClient { private $apiUrl, $origin, $httpClient, $pluginStatus; public function __construct($apiUrl, $registry, $origin) { include_once 'http_client.php'; include_once 'trustpilot_plugin_status.php'; $this->apiUrl = $apiUrl; $this->origin = $origin;...
true
781bfcc79fc95924a3356ebf8600ba5be9787e6a
PHP
thiduzz/Cloody
/app/Http/Repositories/SocialUserRepository.php
UTF-8
1,820
2.625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Thiago * Date: 1/2/2015 * Time: 12:19 AM */ namespace App\Repositories; use Laravel\Passport\Bridge\User; use Laravel\Socialite\Facades\Socialite; use RuntimeException; use Illuminate\Contracts\Hashing\Hasher; use League\OAuth2\Server\Entities\ClientEntityInterface; use L...
true
4288fde1da200a74e3a6bc7b8b1454aa80545859
PHP
el-godo/antecedendes-interno
/antecedentes-interno/paginas/entrada/verificado.php
ISO-8859-1
19,924
2.546875
3
[]
no_license
<?php require_once('../../Connections/antecedentes.php'); ?> <?php if (!isset($_SESSION)) { session_start(); } $MM_authorizedUsers = "admin,entrada"; $MM_donotCheckaccess = "false"; // *** Restrict Access To Page: Grant or deny access to this page function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {...
true
24ec73351f02e2393d287bff4630b5494f9d7b16
PHP
PriymakVl/specialist
/modules/order_product/traits/OrderProductDateReady.php
UTF-8
1,433
2.875
3
[]
no_license
<?php trait OrderProductDateReady { private function setDateReady($products) { $time_manufacturing_total = 0; $time_start = time(); foreach ($products as $product) { $time_manufacturing_total += $this->calculateTimePlan($product); $date_ready = Date::calculateDateReady($time_manufacturing_total, $time_s...
true
ce979285b3ef521bb627ed4ef7f0ec74813af1a4
PHP
byancode/congruent
/src/Traits/Roleable.php
UTF-8
780
2.5625
3
[]
no_license
<?php namespace Byancode\Congruent\Traits; use Byancode\Congruent\Role; trait Roleable { public function roleableClass() { return (new ReflectionClass(static::roleable ?? Role::class))->getName(); } public function roles() { return $this->morphToMany($this->roleableClass(), 'roleab...
true
44fd8cc9969937268d2c08d72e53490db4e50635
PHP
andrzuk/FineCMS
/application/lib/message.php
UTF-8
986
2.9375
3
[ "MIT" ]
permissive
<?php /* * Klasa odpowiedzialna za generowanie komunikatów */ class Message { function __construct($type, $content) { if (!$type || !$content) return; $_SESSION['message']['type'] = $type; $_SESSION['message']['text'] = $content; } public function show_message_box() { $main_message_body = NULL; ...
true
0d0ba8197b709d30ea7890bd074e9a2ad6cf8f81
PHP
byn9826/canada-parks
/lib/profile/Footprints.php
UTF-8
21,761
3.109375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: M. Irfaan Auhammad * Date: 15-Mar-17 * Time: 9:33 AM */ class Footprints { // -- Variable Declarations // -- --------------------- private $_objConnection; private $_footprintId; private $_userId; private $_parkId; private $_dateVisited; pri...
true
9156f1445b59dd7a79ce7a1318fa67705e8194e7
PHP
erictam96/E-commercePHP
/staff_info.php
UTF-8
927
2.875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: erict * Date: 5/28/2018 * Time: 3:36 PM */ class staff_info { private $conn; // constructor function __construct() { require_once 'connect_db.php'; require_once('phpCrypto.php5'); // connecting to database $db = new connect_db(...
true
2744ef1b82ee0173a453f0f0b8d25127f87965b9
PHP
BestSmart/bs-cms
/cms/rest/Model/Sessao.php
UTF-8
840
2.734375
3
[]
no_license
<?php use Model\DefaultModel; namespace Model; /** * @Entity @Table(name="sessoes") * */ class Sessao extends DefaultModel { /** @Id @Column(type="integer") @GeneratedValue * */ protected $id; /** @Column(type="string") * */ protected $codigo; /** @Column(type="text") * */ protected $con...
true
35f7b01ef7df8837b474ff2abeccd7a7482a6520
PHP
githubqt/zzh
/qdds/application/library/Validate/Purchase.php
UTF-8
1,151
2.578125
3
[]
no_license
<?php // +---------------------------------------------------------------------- // | PhpStorm // +---------------------------------------------------------------------- // | Copyright (c) 2018 http://zhahehe.com All rights reserved. // +---------------------------------------------------------------------- // | 版权所有:昌...
true
c75a264a1ed26c84cecbc6074979c01739a77cd7
PHP
lijiahao555/WWW
/3yue/thinkPHP/Application/Common/Common/exam.php
UTF-8
1,075
2.890625
3
[]
no_license
<?php /** *@param $table 表名 *@param $page=1 当前页,默认为1 *@param $where 查询条件,默认为1 *@param $size 每页显示的条数 *@param $array 1、分页后的数据 2、拼接好的分页字符串 */ function page($table,$page,$size,$where){ $User = M($table); // 实例化User对象 //写条件,算出总条数 $num=$User->where($where)->count(); //算出总页数 $zong=ceil($num/$size); //限制尾页,如果显示页...
true
dd26aeeb9f1673f2554130798e9cf873646e612c
PHP
lomaaaa/eslamahmed
/porto.php
UTF-8
2,055
2.890625
3
[]
no_license
<?php use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; if(isset($_POST["btn"])){ //Load Composer's autoloader require 'mailer/autoload.php'; //Create an instance; passing `true` enables exceptions $mail = new PHPMailer(true); ...
true
4ab15b04f37d9e918d600c8ef2fe257b9930c5eb
PHP
DaniilSmi/beammods
/src/Entity/LoginForm.php
UTF-8
479
2.984375
3
[]
no_license
<?php namespace App\Entity; class LoginForm { protected $loginEmail; protected $passwordInput; public function setLoginEmail(string $loginEmail): void { $this->loginEmail = $loginEmail; } public function getLoginEmail(): string { return $this->loginEmail; } public function setPasswordInput...
true
6a571a6457fc67b57e3069d13cee0a6939309ddb
PHP
fdmove/sbondIP
/ip/index.php
UTF-8
1,883
2.546875
3
[]
no_license
<?php require_once("geoip/geoip2.phar"); use GeoIp2\Database\Reader; // // Get Real IP // if (isset($_SERVER["HTTP_CF_CONNECTING_IP"])) { $_SERVER['REMOTE_ADDR'] = $_SERVER["HTTP_CF_CONNECTING_IP"]; $_SERVER['HTTP_CLIENT_IP'] = $_SERVER["HTTP_CF_CONNECTING_IP"]; } $client = @$_SERVER['HT...
true
f5730c3ddb7132bf52bd23127cea2a801c7e4b87
PHP
giorgiosironi/practical-php-refactoring
/PushDownMethod.php
UTF-8
2,090
3.421875
3
[]
no_license
<?php class PullUpConstructorBody extends PHPUnit_Framework_TestCase { public function testAPostShowsItsAuthor() { $post = new Post("Hello, world!", "giorgiosironi"); $this->assertEquals("Hello, world! -- @giorgiosironi", $post->__toString()); } public functi...
true
f9a65ebf342e39213988e00ee3aaa3d75b33f21e
PHP
dot23/dt-note
/core/Upload.class.php
UTF-8
1,229
2.625
3
[]
no_license
<?php class Upload{ protected $allowSize; protected $allType; protected $toPath; function __construct($toPath="./upload",$allowSize=2000000,$allType=array('image/jpeg','images/pjpeg','images/png','images/jpg')){ $this->allowSize=$allowSize; $this->allType=$allType; $this->toPath=$toPath; } functio...
true
8d82902329eaee55a7313d687aab8ee3fe21bce0
PHP
GraphQLAPI/graphql-api-for-wp-dist
/vendor/graphql-by-pop/graphql-server/src/Standalone/GraphQLServerInterface.php
UTF-8
682
2.546875
3
[]
no_license
<?php declare (strict_types=1); namespace GraphQLByPoP\GraphQLServer\Standalone; use PoP\ComponentModel\ExtendedSpec\Execution\ExecutableDocument; use PoP\Root\HttpFoundation\Response; interface GraphQLServerInterface { /** * Execute a GraphQL query, print the response in the buffer, * and send headers ...
true
2d404bd62f9c8efd14a19c0cf307dab958da7808
PHP
BOBKOVSERGEY/socialnetworkfb
/classes/User.php
UTF-8
3,213
2.71875
3
[]
no_license
<?php class User { private $user; public function __construct($user) { $this->user = DB::query('SELECT * FROM users WHERE id=:userid', [':userid' => $user])[0]; } public function getFirstAndLastName() { return $this->user['first_name'] . " " . $this->user['last_name']; } public function get...
true
955115d442f689b654c5bbf29ee8da29b36ff478
PHP
germg/aurageo-api
/app/Http/Controllers/Business/UsersController.php
UTF-8
4,974
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Business; use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Validator; use App\Repositories\UsersRepository as UsersRepository; use JWTAuth; use Tymon\JWTAuth\Exceptions\JWTException; class UsersControlle...
true
705674b50d42ca388fb0b80548717d22b7b456e1
PHP
rob1121/clocktrack
/app/clocktrack/download/EmployeeDetails.php
UTF-8
3,146
2.78125
3
[]
no_license
<?php namespace App\Clocktrack\Download; use App\Clocktrack\Download\Interfaces\Downloadable; use App\Clocktrack\Download\Extensions\ExcelExtract; use Illuminate\Http\Request; use Carbon\Carbon; use App\Biometric; class EmployeeDetails extends ExcelExtract Implements Downloadable { /** * date from * ...
true
4be014cec09a27b9155a8d6bd1e586ac98fa8825
PHP
dmarcanor/sys_gineco
/src/Gineco/Pacientes/Infrastruture/controllers/PacientesPostControllers.php
UTF-8
1,773
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace SysGineco\Gineco\Pacientes\Infrastruture\controllers; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use SysGineco\Gineco\Pacientes\Application\Creator\PacienteCreator; use SysGineco\Gineco\Pacientes\Application\Creator\PacienteCreatorRequest; final clas...
true
3efd65f17ed6a12b2c3935c4f11fc5e2f720da48
PHP
niki-desi-final/cs-game
/SERVER/vendor/phpspec/prophecy/spec/Prophecy/Argument/Token/ArrayEveryEntryTokenSpec.php
UTF-8
3,025
2.6875
3
[ "MIT" ]
permissive
<?php namespace spec\Prophecy\Argument\Token; use PhpSpec\ObjectBehavior; use Prophecy\Argument; class ArrayEveryEntryTokenSpec extends ObjectBehavior { /** * * @param \Prophecy\Argument\Token\TokenInterface $value */ function let($value) { $this->beConstructedWith ( $value ); } function it_impl...
true
a16cedc0884e811b7154160c3c344a58ac7166ec
PHP
mwaldt/CSC423_TermProject
/all_events_promo_listing_retrieved_ui.inc
UTF-8
3,862
2.90625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: douglasschultz1 */ require('ui_utilities.inc'); function ui_show_events_retrieved($message, $events_retrieved_result) { //---------------------------------------------------------- // Start the html page ui_print_header("List of Event's Promotions"); // If th...
true
0575a7afa8dcbbe193619b22db793faf26bfa8b4
PHP
akoblitskiy/biblio
/src/Model/Author.php
UTF-8
2,372
2.6875
3
[]
no_license
<?php namespace Src\Model; use Core\DBManager; use Core\Model; /** * Class Author * @package Src\Model * @var int $id * @var string $name * @var string $bio */ class Author extends Model { protected static $tableName = 'author'; protected static $primaryKeys = ['id']; protected static $relations = ...
true
271f85fb53955a8c6c6be9a55e7148c17e9e5384
PHP
jgodbee/gpplus
/classes.php
UTF-8
33,706
2.578125
3
[]
no_license
<?php defined('ABSPATH') or die('-1'); /* * @desc Helper methods. */ class GalleryProPlusHelper { public static $base_path; public static $default_slideshow_transition_speed; public static $default_slideshow_transition_type; public static $default_theme; public static $gallery_ids; public static $themes; pu...
true
09fe822b12f131ed0f25187cf1a0a1e37ced492f
PHP
DamienSerrurier/ExercicePhp
/Partie-1-Les variables/Exercice-7/index.php
UTF-8
585
3.5
4
[]
no_license
<?php $lastname = 'Mellet'; $firstname = 'Anna'; $age = 38; ?> <!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Partie 1 - Exercice 7</title> </head> <body> <p>Créer trois variables lastname , firstname et ag...
true
60dfb525b7de196a13ae495f77f02392d392b84e
PHP
mebassett/Ouray-
/model/classes/LatexRender.class.php
UTF-8
2,584
3
3
[]
no_license
<?php class LatexRender { const LATEX_PATH = "/usr/bin/latex"; const DVIPS_PATH = "/usr/bin/dvips"; const CONVERT_PATH = 'PATH=/usr/local/bin:$PATH;export PATH;LD_LIBRARY_PATH=/usr/local/lib;export LD_LIBRARY_PATH;/usr/local/bin/convert'; const TMP_DIR = "/var/www/html/ouray.sneffel.com/tmp"; const CACHE_DIR = "...
true
e53e6e201d2ffcb1f0475162e98ca23a6a4ff458
PHP
warkensoft/laradmin
/src/Requests/CrudableRequest.php
UTF-8
1,414
2.53125
3
[ "MIT" ]
permissive
<?php namespace Warkensoft\Laradmin\Requests; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Support\Collection; use Warkensoft\Laradmin\Facade as Laradmin; use Warkensoft\Laradmin\Fields\FieldContract; use Warkensoft\Laradmin\Services\Crudable; class CrudableRequest extends FormRequest { public function...
true
aadcf70fff68ab1530ba8f62a68cba837c27117a
PHP
MBuchneva/lesko2
/tasks/02/classes/Graph/Walker/DFS.php
UTF-8
522
2.71875
3
[]
no_license
<?php namespace classes\Graph\Walker; use classes\Graph\Graph; use classes\Graph\Walker\Iterator\Iterator; use classes\Graph\Walker\Iterator\DFS as DFSiterator; use classes\Graph\Walker\Publisher\Interfaces\Publisher; class DFS extends Strategy { /** * @param Graph $graph * @param null|Publish...
true
543a20eaea43adcb7f562b905383f8fec433e506
PHP
paypeapp/integration
/wsInterfaces/mssql.php
UTF-8
3,797
2.65625
3
[]
no_license
<?php // mac os x: http://voyte.ch/getting-php-in-homebrew-to-access-mssql-via/ class Mssql implements WsInterface { private $db; public function __construct($wsConfig, $paypeApi) { if(!extension_loaded('mssql')) { $errMsg = 'mssql extension not added'; paypeLog($errMsg, true); die(''); } $this->d...
true
ca9d63b7171ac60b81212574ef5401a1b1054d9b
PHP
Doder/autoskola
/post.php
UTF-8
2,532
2.640625
3
[]
no_license
<?php include('header.php') ?> <?php $servername = "localhost"; $username = "root"; $password = ""; $db = "it_projekat"; // Create connection $conn = new mysqli($servername, $username, $password,$db); // Check connection if ($conn->connect_error) { die("Connection failed: " ...
true
847fb7214e743dd85567236834ebe2d0f9b70843
PHP
Tutlegoss/WebFinal
/inc/dbGet.php
UTF-8
10,739
2.625
3
[]
no_license
<?php require_once("inc/dbconnect.php"); function write2Error_Log($error) { $file = "../err/Error_Log.txt"; $content = file_get_contents($file); $content .= $error . "\n"; file_put_contents($file, $content); } /* Functions for leftPanel.inc.php */ function getContinentNames() { global $conn; ...
true
9448875ba7884755c9f9632b45100a4246cd49f7
PHP
ogog21/messagerie_PHP
/messagerie.php
UTF-8
3,349
2.609375
3
[]
no_license
<?php session_start(); $bdd = new PDO('mysql:host=localhost;dbname=projet_chat','root','password'); if($bdd){ $infoBD = 'Base de donnée connecté <br />'; }else { $infoBD = 'Probleme avec la connexion à la base de donnée <br />'; } if(!empty($_POST['pseudo']) AND !empty($_POST['messag...
true
5b076fb5e03759028d185576bcc77d240a75a69e
PHP
Ozarmehr96/clinic
/localhost/components/Settings.php
UTF-8
849
3.1875
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 Settings * * @author Озармехр */ class Settings { public function __construct() { return ...
true
c5aa531e8c73a90393c736548dfb6ea906fe1526
PHP
arismoratalla/eulims2
/common/models/lab/Labsampletype.php
UTF-8
1,826
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models\lab; use Yii; /** * This is the model class for table "tbl_lab_sampletype". * * @property int $id * @property int $lab_id * @property int $sampletypeId * @property string $effective_date * @property string $added_by * * @property Lab $lab * @property Sampletype $sampletype */...
true
e7cf99dfa8ca1629591c98e0f546326291f4f5bb
PHP
Dragos-MIHAI/2IOA0-2018-4-DBL-HTI-Webtech
/load.php
UTF-8
702
3.203125
3
[]
no_license
<?php # pentru fiecare fisier incarcat, fac o verificare dupa status code if( !empty( $_FILES ) ) foreach ($_FILES["pictures"]["error"] as $key => $error) { if ($error > 0) { # echivalent cu ( $_FILES["pictures"]["error"][$key] > 0 ) print "Eroare cu fisierul {$_FILES["pict...
true
db6f44c744145bd1afba846d0d8e760ebb7a5ce2
PHP
jjxingfu/iwebshop
/classes/util.php
UTF-8
15,200
2.953125
3
[]
no_license
<?php /** * @copyright Copyright(c) 2011 aircheng.com * @file util.php * @brief 公共函数类 * @author kane * @date 2011-01-13 * @version 0.6 * @note */ /** * @class Util * @brief 公共函数类 */ class Util { /** * @brief 显示错误信息(dialog框) * @param string $message 错误提示字符串 */ public static function showMessage($mes...
true
e8351028c9b839892a22d2e3d61bc8be21cde7a7
PHP
kenoste2/aviabel.cmsoftware.be
/application/models/Dso.php
UTF-8
3,301
2.59375
3
[]
no_license
<?php require_once 'application/models/Base.php'; class Application_Model_Dso extends Application_Model_Base { public function getSettingDso() { return $this->db->get_results("select * from REPORTS\$DSO order by DSO_YEAR DESC, DSO_MONTH DESC"); } public function getDsoList($clientId) { ...
true
f815452843961387b61fbffefe79f2696b440b47
PHP
TransComics/TransBubbles
/app/database/migrations/2015_02_12_091955_create_shapes_table.php
UTF-8
1,326
2.578125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateShapesTable extends Migration { private $table = 'shapes'; /** * Run the migrations. * * @return void */ public function up() { Schema::create($this->table, function(Blue...
true
5eb9b3e2cea24f11273f8d7067b579ce6f0d2947
PHP
subscribepro/subscribepro-magento2-ext
/Helper/Quote.php
UTF-8
1,629
2.734375
3
[ "MIT" ]
permissive
<?php namespace Swarming\SubscribePro\Helper; use Magento\Quote\Api\Data\CartInterface; class Quote { /** * @var QuoteItem */ protected $quoteItemHelper; /** * @param QuoteItem $quoteItemHelper */ public function __construct( QuoteItem $quoteItemHelper ) { $th...
true
8cdb02b81e74a0784b4ee67bd1b7ad2160e5e98e
PHP
izac3d/PHP-Codes
/DHandler.php
UTF-8
1,551
2.9375
3
[]
no_license
<?php declare(encoding = "utf-8"); interface ForwardFW_Interface_DataHandler { /** * Constructor * * @param ForwardFW_Interface_Application $application The running application * * @return void */ public function __construct( ForwardFW_Interface_Application $application ...
true
e2fe0439539c97b78dfbb026f2825602edb8fecd
PHP
edfedora/skripsi
/fuel/app/views/students/group.php
UTF-8
1,280
2.546875
3
[ "MIT" ]
permissive
<h1 class="page-header">Daftar Siswa Kelompok Peminatan <?php echo Uri::segment(3) ?></h1> <?php if ($students == false): ?> <div class="alert alert-info">Belum ada siswa dalam Kelompok Peminatan ini. <?php echo Html::anchor('students/create', 'Tambahkan siswa', array('class' => 'alert-link')) ?> untuk menambahkan sis...
true
045dd69da4269075a8668645f44aa0d50f83a93a
PHP
fitalinka/Healthy
/models/Calculate.php
UTF-8
3,032
2.703125
3
[]
no_license
<?php class Calculate{ public static function wat($weight,$id){ $db = DB::getConection(); $water=1; $water = $weight*30/1000; $sql = 'UPDATE personal_data SET water = :water WHERE id_user = :id'; $rezult = $db->prepare($sql); $rezult->bindParam(':water',$water); $rezult->bindParam(':id',$...
true
b737bf5a7a26fa4e79764039e3ed2b749a5b7c92
PHP
naykin-id/naykin-api
/services/schedule.php
UTF-8
2,289
2.8125
3
[]
no_license
<?php class Schedule{ // Connection instance private $connection; // table name private $table_name = "Schedule"; // table columns public $id; public $idBus; public $idRoute; public $idDriver; public $idCoDriver; public $idExtraOfficer; public $totalCost; public $departure; public $arrival; public $rowStatus; public $c...
true
5f46031c2438c025863a1694c4b8c9ece8debe63
PHP
jamiebclark/crimewave
/app/Model/Character.php
UTF-8
558
2.515625
3
[]
no_license
<?php class Character extends AppModel { public $name = 'Character'; public $hasMany = array( 'CharacterAttribute', ); public $hasAndBelongsToMany = array( 'Attribute' => array( 'joinTable' => 'character_attributes', ), ); public $belongsTo = array('Game', 'CharacterType'); public function beforeS...
true
f84b10831b24f17aeb8fa41b871a244d52e420ea
PHP
rickyork/Hot-Toddy
/hFile/hFileConvert/hFileConvert.library.php
UTF-8
7,135
2.734375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php #//\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ #//\\\ \\\\\\\\| #//\\\ @@ @@\\\\\\| Hot Toddy Framework #//\\ @@@@ @@@@\\\\\| #//\\\@@@@| @@@@\\\\\| #//\\\ @@ |\\@@\\\\\\| https://github.com/rickyork/Hot-Toddy #//\\\\ || \\\\\\\| © Copyright 2019 Richard Yor...
true
614726233ba4d22ad4b292091e741e58c6bbc9a5
PHP
Rentu/tools-1
/library/Regex.php
UTF-8
2,400
2.984375
3
[ "MIT" ]
permissive
<?php /** * 正则相关 * Class Regex */ class Regex { public static function validate($value,$rule) { $validate = array( 'require' => '/.+/', 'email' => '/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/', 'url' => '/^http(s?):\/\/(?:[A-za-z0-9-]+\.)+[A-za-z]{2...
true