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
9808b3a90acd923a07971d7e7357e91a74330a3f
PHP
theakashsarkar/php_oop
/oop/autoload/autoLoading.php
UTF-8
642
2.5625
3
[]
no_license
<?php // function __autoload($name){ // if(!class_exists($name)){ // include "{$name}.php"; // } // echo $name; // } // function autoLoad($name){ // if(strpos($name,'planet')!== false){ // $fileName = str_replace("planet","",$name); // include strtolower("planet/{$fileName}.php"); //...
true
409a3be179860c12c03a95bf6e48a59ef03b8dc8
PHP
RockyBin/yz-front
/app/Modules/ModuleShop/Libs/Coupon/CouponItem.php
UTF-8
13,362
2.640625
3
[]
no_license
<?php namespace App\Modules\ModuleShop\Libs\Coupon; use YZ\Core\Site\Site; use App\Modules\ModuleShop\Libs\Model\CouponItemModel; use App\Modules\ModuleShop\Libs\Constants; use YZ\Core\Constants as CodeConstants; /** * 优惠券类 * Class Coupon * @package App\Modules\ModuleShop\Libs\Coupon */ class CouponItem { pr...
true
a160c1251115e6160156a2cbda24dff5d59b3e44
PHP
18569945451/test
/app/helpers.php
UTF-8
3,335
2.859375
3
[ "MIT" ]
permissive
<?php if (!function_exists('generateFilePath')) { /** * 生成统一文件存储路径 * @return string */ function generateFilePath() { return 'public/'.date('Ym').'/'.date('d').'/'; } } if (!function_exists('saveImageResource')) { /** * 保存资源图片 * @param $image * * @return st...
true
afd2d4a4f4eef4edd7de3ec6d441af46c7d4e651
PHP
hdev14/conab-backend
/app/Components/Traits/UploadFirebase.php
UTF-8
803
2.640625
3
[]
no_license
<?php namespace App\Components\Traits; use App\Components\FirebaseStorageAdapter; use Illuminate\Http\UploadedFile; use Illuminate\Support\Str; trait UploadFirebase { function uploadFileOnFirebase(UploadedFile $file): ?string { $localFolder = public_path('storage/uploads') . '/'; $filename ...
true
27adc19314682c5ca080c330b09c0662aafccd3a
PHP
jzandag/coffee-website
/includes/saveBrew.inc.php
UTF-8
1,662
2.546875
3
[]
no_license
<?php if(isset($_POST['coffeeLevel'])){ require '../includes/dbh.inc.php'; $coffeeLevel = $_POST['coffeeLevel']; $sugarLevel = $_POST['sugarLevel']; $creamerLevel = $_POST['creamerLevel']; $tz = 'Asia/Manila'; $timestamp = time(); $dt = new DateTime("now", new DateTimeZone('Asia/Manila')); //first argumen...
true
fac9999bc35d3d3353e4928aae61ad8a050cbf8e
PHP
anydasa/ddd.tasks
/src/Presentation/Http/Rest/Request/CreateTaskRequest.php
UTF-8
1,691
2.625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Presentation\Http\Rest\Request; use App\Domain\Task\ValueObject\Priority\PriorityTypes; use OpenApi\Annotations as OA; use Symfony\Component\Validator\Constraints as Assert; /** * @OA\Schema( * title="Create Task request", * description="Create Task request ...
true
f970bcd9a73f5650f36bbf2f927f75e40fa83d3e
PHP
Finallap/Check_Class
/application/views/class/record_js.php
UTF-8
777
2.515625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<script type="text/javascript"> function check() { var reg = new RegExp("^[0-9]*$"); if(!/^[0-9]*$/.test(document.getElementById("real_number").value)) { alert("请在实到人数框内输入数字!"); return false; } else { if(d...
true
96a68e488b56664f94858a18500178ba8960d54d
PHP
ducthobkhn/azbooking
/model/hotro.php
UTF-8
1,258
2.703125
3
[]
no_license
<?php class hotro { public $Id,$DanhMucId,$LoaiHoTro,$Name,$Skype,$Phone; public function hotro($data=array()) { $this->Id=isset($data['Id'])?$data['Id']:''; $this->DanhMucId=isset($data['DanhMucId'])?$data['DanhMucId']:''; $this->LoaiHoTro=isset($data['LoaiHoTro'])?$data['LoaiHoTro']:''; $t...
true
a376a062cbdb2f5ae5b039cdaa0c71bc2228e599
PHP
stewartlord/chronicle
/library/P4Cms/Validate/SiteId.php
UTF-8
1,352
3.03125
3
[ "MIT", "BSD-2-Clause" ]
permissive
<?php /** * Validates string for suitability as a site id. * * @copyright 2011 Perforce Software. All rights reserved. * @license Please see LICENSE.txt in top-level folder of this distribution. * @version <release>/<patch> */ class P4Cms_Validate_SiteId extends Zend_Validate_Abstract { const INVA...
true
1ec4b44b5f4795f1d98b1663c7e3c8a3933c1600
PHP
msalahat88/restaurant
/application/libraries/site/category/class_category.php
UTF-8
652
2.53125
3
[]
no_license
<?php class class_category { private $CI; private $use; private $name = 'category'; public function __construct() { $this->CI = &get_instance(); $this->use = new class_loader(); $this->use->use_model('data_base'); $this->use->use_lib('db/tpl_'.$this->name); ...
true
1e6343a5254e7252e3b3af6c47b1490000d3b4e2
PHP
a17juanbl/2-DAW
/DWES/Tareas/DWES05_Tarea/Comesana_Cabeza_Jose_Luis_DWES05_Tarea/include/Ordenador.php
UTF-8
1,481
3
3
[]
no_license
<?php /* Nueva clase que recogerá todos los datos de los ordenadores (de dos tablas) */ class Ordenador { // Declaración de los distintos miembros que posee la clase protected $cod; protected $procesador; protected $ram; protected $disco; protected $grafica; protected $unidadoptica; protected $so; protected $...
true
69417c27a523101cdde2286c88d59f02c37e1135
PHP
MatiasOlivera/ypf-tienda
/server/app/Auxiliares/Mensaje.php
UTF-8
1,662
2.96875
3
[]
no_license
<?php namespace App\Auxiliares; use Exception; use Illuminate\Contracts\Support\Jsonable; abstract class Mensaje implements Jsonable { protected $tipo; private $codigo; private $descripcion; public function __construct(string $descripcion, string $codigo) { $this->descripcion = $descripc...
true
48a2fa862fe8e0c2c4caf6cb8a16d76a7d44446d
PHP
antvega/cst336
/hw/hw2/index.php
UTF-8
2,874
3.109375
3
[]
no_license
<?php $player1Hand=array(); $player2Hand=array(); function makeHand(){ global $player1Hand; global $player2Hand; $usedCards = array(); $cards = array(1,13); $hand = array(); for($i = 0; $i<4;$i++){ do{ $rand = rand(1,1...
true
ae02ce52dda4164722561399a8a4d249a544cddd
PHP
dd10-e/laravelforum
/app/User.php
UTF-8
1,905
2.578125
3
[]
no_license
<?php namespace App; use App\Channel; use App\Replies; use App\Thread; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var array */ ...
true
57afbf3c62d527e8937ee203282ae018f558301a
PHP
zirobogdan/project-mvc
/lesson-2/mail.php
UTF-8
770
2.890625
3
[]
no_license
<?php $name = strip_tags($_POST['name'] ?? null); $email = strip_tags($_POST['email'] ?? null); $message = strip_tags($_POST['message'] ?? null); if ( !$name || !$email || !$message){ header('Location: index.php?error=1'); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="vi...
true
f10876cecf60748230286d9983013265091b28a9
PHP
onurborakman/laravel-larawell
/app/Http/Controllers/RestController.php
UTF-8
2,286
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\DTO; use App\Services\Business\RestService; use App\Services\Data\Utility\MyLogger; use Illuminate\Http\Request; class RestController extends Controller { private $restService; public function __construct(){ $this->restService = new RestService(); } ...
true
6eba88c3628ee14f88f7d205a79b7c8ce17f9c0f
PHP
gustavoper/moviepedia
/moviepedia/application/models/DbTable/Access.php
UTF-8
781
2.515625
3
[]
no_license
<?php class Application_Model_DbTable_Access extends Zend_Db_Table_Abstract { protected $_name = 'access'; public function getAccess($id=null) { $rowParam = null; if ($id!==null) { $rowParam = 'id = '.$id; return $this->fetchRow($rowParam)->toArray(); } return $t...
true
1b1d5597518615f160dc9ec9321399ac49ef851c
PHP
IAmFitri/PHP-OOP
/static_keyword.php
UTF-8
594
3.765625
4
[]
no_license
<?php // class ContohStatic { // public static $angka = 1; // public static function halo() { // return "Halo " .self::$angka++. " kali."; // } // } // echo ContohStatic::$angka; // echo "<br>"; // echo ContohStatic::halo(); // echo "<hr>"; // echo ContohStatic::halo(); class Contoh { public static $angka = ...
true
0747d45b450b68d9ee2fa3f740557991b05e2d59
PHP
MLupinski/faktury
/database/selectClass.php
UTF-8
2,908
2.53125
3
[]
no_license
<?php class records { public function fvNumber() { include("connect.php"); $selQuery = "SELECT * FROM invoice_nr"; $stmt = $dbh->prepare($selQuery); $stmt->execute(); $results = $stmt->fetchAll(PDO::FETCH_ASSOC); foreach ($results as $row) { echo 'FV/'.$row['NUMBER'].'/'.$row['M...
true
3360120957b09a2e75a282fb8b8ca0f7ac12b0f4
PHP
AliceQuadros/Trabalho_1_php
/valida_form.php
UTF-8
1,579
2.53125
3
[]
no_license
<?php include ("funcoes.php"); $nome = $sobrenome = $email = $telefone = $mensagem = ""; $flag = 0; if(isset($_REQUEST['botao'])){ @$nome = $_REQUEST['conNome']; @$sobrenome = $_REQUEST['conSobre']; @$email = $_REQUEST['conEmail']; @$telefone = $_REQUEST['conFone']; @$mensagem = $_REQUEST['conTexto...
true
368e5b10896a20b4fb713fdbcc4cb39dc01c0da6
PHP
js-ddev/pimp
/src/Model/CommandeDAO.php
UTF-8
8,501
2.71875
3
[ "MIT" ]
permissive
<?php // Didier - Adapté sur la base de MembreDAO.php namespace Model; use Entity\Membre; use Entity\Cv; use Entity\Commande; /*use Payum\Core\Storage\StorageInterface; use Payum\Core\Model\Identity; use Payum\Core\Model\Payment; use Payum\Core\Storage\FilesystemStorage; use Payum\PayumStorage;*/ // Sur la doc...
true
b5c7e38ff7f3bdaf2e290285e75883024bbedcfe
PHP
anton-p-ivanov/api-symfony
/src/Form/BaseHandler.php
UTF-8
3,719
2.609375
3
[]
no_license
<?php namespace App\Form; use App\Entity\Form\Form; use App\Entity\Form\Result; use App\Entity\Form\Status; use App\Entity\Mail\Template; use App\Exceptions\OAuth\InvalidClientException; use App\Service\Mail; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Compo...
true
7ccda3b12c7aff482b03cdce8fee514ea8148481
PHP
huayun-docs/huayun-openapi-php-api
/ChinacApi/Clb/V10/DeleteLBPolicyRule.php
UTF-8
591
2.546875
3
[]
no_license
<?php /** * 删除负载均衡器实例转发策略规则 * @author Tu */ namespace ChinacApi\Clb\V10; use ChinacApi\Core\RpcRequest; class DeleteLBPolicyRule extends RpcRequest { /** * 规则Id *(星号为必须,下同) * @var string */ private $id; function __construct() { parent::__construct('Clb', '1.0', 'DeleteLBPol...
true
74d17ac3b4a8b05f65d9122b6c9d989cf882e163
PHP
soulmouctar/onlineconsultation
/process_reg.php
UTF-8
1,431
2.53125
3
[]
no_license
<?php include 'database.php'; //Check if form submitted if(isset($_POST['submit'])){ $user = mysqli_real_escape_string($con, $_POST['user']); $pass = mysqli_real_escape_string($con, $_POST['pass']); $name = mysqli_real_escape_string($con, $_POST['name']); $ad = mysqli_real_escape_string($con, $_POST['ad']); $med_...
true
6b2a538699da24756651a1812af0adf5a84f7c7f
PHP
Massetho/BlogPro
/App/Block/Form/PasswordField.php
UTF-8
890
2.78125
3
[]
no_license
<?php /** * @description : Password Field for forms * @package : BlogPro * @Author : Quentin Thomasset * @date: 23/02/2018 * @time: 14:49 */ namespace App\Block\Form; class PasswordField extends Field { public function buildWidget() { $widget = ''; if (!empty($this->getErrorMessage())) {...
true
47724c562d1ffd95959b9541d6fc88999bc9a13e
PHP
krumpak/todo-list
/app/controllers/TasksController.php
UTF-8
2,095
2.671875
3
[]
no_license
<?php class TasksController extends BaseController { /* |-------------------------------------------------------------------------- | Default Home Controller |-------------------------------------------------------------------------- | | You may wish to use controllers instead of, or in addition to, Closure | ...
true
974ff5cf3131d64cd0886c964d5e0f593948aa00
PHP
Matr1x01/Mozzarella
/controller/controller.php
UTF-8
3,787
2.546875
3
[]
no_license
<?php require_once 'config.php'; function addFood($name, $price, $type) { $query = 'INSERT INTO menu (f_name, price,f_type,review,image) VALUES ("' . $name . '", ' . $price . ',' . $type . ',5,null);'; execute($query); } function addItem($name, $amount, $per_cost) { $query = 'INSERT INTO `inventory`...
true
77c88a0bb17b18809449a603453282ed5fff831e
PHP
bjorngylling/TDP013
/lab2_lab4/sign_in.php
UTF-8
1,048
2.65625
3
[]
no_license
<?php include('includes/bootstrap.php'); if(is_signed_in()) { // Already logged in, redirect to book-list redirect_to('my_books.php'); exit; } elseif(isset($_POST['username'], $_POST['password'])) { $user = User::sign_in($_POST['username'], $_POST['password']); if($user != false) { ...
true
5974d8797172ebbdecc84ceeac92c97ca51f6704
PHP
binsun93/linkhouse
/application/core/MY_Model.php
UTF-8
11,105
2.625
3
[ "Apache-2.0" ]
permissive
<?php (defined('BASEPATH')) OR exit('No direct script access allowed'); class MY_Model extends CI_Model { public $table_name=""; /** * * @var CI_DB_mysql_driver */ public $db_master=null; /** * * @var CI_DB_mysql_driver */ public $db_slave=null; function __cons...
true
a6fa46d6b11ffb5e6c3a80a3ddb9f5db66023f1a
PHP
Sadman-Ahmed/CSE482
/website/models/regverify.php
UTF-8
660
2.515625
3
[]
no_license
<?php include_once("../models/connection.php"); $name = $_POST['name']; $uname = $_POST['uname']; $password = $_POST['psw']; $gender = $_POST['gender']; $skill = "Java"; $contact = $_POST['number']; $email = $_POST['email']; $college = $_POST['college']; $sql = "INSERT INTO user (`name`, `uname`, `password`, `gender`,...
true
3ca6ab04b9a93b9a1da0c24f843eec69308f4dcf
PHP
CommanderXA/LesParcs
/list-time.php
UTF-8
2,350
2.5625
3
[]
no_license
<?php require_once 'secure.php'; if (!Helper::can('admin')) { header('Location: 404.php'); exit(); } $size = 10; if (isset($_GET['page'])) { $page = Helper::clearInt($_GET['page']); } else { $page = 1; } $timeMap = new TimeMap(); $count = $timeMap->cou...
true
11401a0028577926f4fb9e6ef64de945e153d6c4
PHP
rusmvb/php-blog
/src/LatestPosts.php
UTF-8
673
3.1875
3
[]
no_license
<?php declare(strict_types=1); namespace Blog; class LatestPosts { /** * @var Database */ private Database $database; /** * LatestPosts constructor. * @param Database $database */ public function __construct(Database $database) { $this->database = $database; ...
true
d5be66fa7ae80b968ad9206b0df105ac818afd6b
PHP
jakubkulhan/bunny
/test/Bunny/Protocol/ProtocolWriterTest.php
UTF-8
1,213
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Bunny\Protocol; use Bunny\Constants; use DateTime; use DateTimeImmutable; use PHPUnit\Framework\TestCase; class ProtocolWriterTest extends TestCase { public function test_appendFieldValue_canHandleDateTime() { $buffer = $this->createMock(Buffer::class); $protocolWriter = new Pr...
true
05f1e42307087076292eae2b3eaba27d5808141b
PHP
Thachu123/S1-LabExam
/1624980355627_connection.php
UTF-8
674
2.671875
3
[]
no_license
<?php $con=new mysqli("localhost","root",""); if($con->connect_error) { echo "Cannot connect database"; } $d=mysqli_query($con,"create database exam"); if($d==true) { echo "Database created Successfully"; } else { echo "Database creation failed"; } $f=new mysqli("localhost","root","","e...
true
05ff05d1eacd6f5212b3125f21719feb4e7fab9c
PHP
Per1phery/wholetthedogout
/controllers/FileController.php
UTF-8
808
2.546875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\controllers; use app\components\AdminController; use app\models\File; class FileController extends AdminController { public function actionIndex() { return $this->actionCrteate(); } public function actionCrteate() { $model = new File; ...
true
be1640d8f1cfb947a146c10a0420d946d8696b50
PHP
ffouillet/fx-php-blog
/ocfram/Form/Form.php
UTF-8
2,004
2.96875
3
[]
no_license
<?php namespace OCFram\Form; use OCFram\Entities\BaseEntity; use OCFram\Form\Field\Field; class Form { protected $entity; protected $isEntityMapped; protected $fields = []; public function __construct(BaseEntity $entity = null) { if ($entity != null) { $this->setEntity($enti...
true
e4e8705fb4f80ae31887e6ed7f145705e50d8025
PHP
HobbyFrosch/acat-render-engine
/src/Parser/Element/Element.php
UTF-8
2,497
2.921875
3
[]
no_license
<?php namespace ACAT\Parser\Element; use ACAT\Exception\ElementException; use ACAT\Parser\ParserConstants; use ACAT\Utils\DOMUtils; use DOMDocument; use DOMElement; use DOMXPath; /** * */ abstract class Element { /** * @var bool */ protected bool $blockElement; /** * @var DOMDocument */ protected DOM...
true
5fcc4a8d59e21fcd3910bca0e6c78951378d1f2e
PHP
NirajDragon1/DragonFrames-Admin
/application/models/api/Tax_model.php
UTF-8
603
2.515625
3
[]
no_license
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Tax_model extends CI_Model { var $table_name = 'taxes'; function __construct() { parent::__construct(); } function get_taxes() { $tax_array = array(); $query = $this->db->select('tit...
true
91c397956e1321abcb89432395421ed1e8b33b82
PHP
RaihanulHoque/Event-Management_Yii
/protected/controllers/front/EventController.php
UTF-8
7,916
2.65625
3
[]
no_license
<?php class EventController extends FrontEndController { /** * @var string the default layout for the views. Defaults to '//layouts/column2', meaning * using two-column layout. See 'protected/views/layouts/column2.php'. */ public $layout='//layouts/main'; /** * @return array action filters */ public fun...
true
735ee926c3184792f4ce466290cc084618bb1776
PHP
nowakowskir/php-jwt
/src/Validation.php
UTF-8
5,006
3.046875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Nowakowskir\JWT; use DateTime; use Nowakowskir\JWT\Exceptions\InvalidClaimTypeException; use Nowakowskir\JWT\Exceptions\InvalidStructureException; use Nowakowskir\JWT\Exceptions\TokenExpiredException; use Nowakowskir\JWT\Exceptions\TokenInactiveException; use Nowakowskir\JWT\Exceptions\UndefinedAlgori...
true
05a42f360011866d72c972758fc035c89c2d8424
PHP
HusnulM/aplikase-web-erp
/app/models/User_model.php
UTF-8
3,772
2.671875
3
[]
no_license
<?php class User_model{ private $db; private $table = 't_user'; public function __construct() { $this->db = new Database; } public function userList(){ $this->db->query("SELECT *, fGetJabatan(jabatan) as 'jabatan', fGetDepartment(department) as 'department' FROM t_user"); return $this->db->resultSet();...
true
5f177477b97bd9d992d59097c030afdb00a8ccbb
PHP
makore/random_stuff
/projects/nasdaq/application/my_mail.php
UTF-8
738
2.765625
3
[ "Unlicense" ]
permissive
<?php include("Mail.php"); class MyMail { public static function send_mail($subject, $mailmsg, $from_email, $to_email, $from_name, $to_name) { $from = "From: " . $from_name . " <" . $from_email . ">"; $to = "To: " . $to_name . " <" . $to_email . ">"; $recipients = $to_email; $headers["From"] = $from...
true
d40d078a19e6090b781c0abfce71e24a83cf6857
PHP
mrWodoo/clearcode
/src/AppBundle/Enum/Document/AddressTypeEnum.php
UTF-8
377
2.6875
3
[]
no_license
<?php namespace AppBundle\Enum\Document; abstract class AddressTypeEnum { const HOME = 'home'; const SHIPPING = 'shipping'; const BILLING = 'billing'; /** * @return array */ public static function getTypes() : array { return [ self::HOME, self...
true
fc087599148ac8447eed572f1cdb743fa196097d
PHP
adatlaborhu/write_anything
/updater.php
UTF-8
173
2.640625
3
[]
no_license
<?php $myfile = fopen("content.txt", "r") or die("Woops, we have an issue and all our files are broken!"); echo fread($myfile,filesize("content.txt")); fclose($myfile); ?>
true
536f520330d12323597dc87d67b41144857c4b08
PHP
FlowCommunications/EmailChecker
/src/Flow/EmailChecker/ConnectionPool.php
UTF-8
5,308
2.640625
3
[ "MIT" ]
permissive
<?php namespace Flow\EmailChecker; use InvalidArgumentException; use React\EventLoop\LoopInterface; use React\Socket\Connection; class ConnectionPool { /** * @var callable */ protected $logger; protected $fromDomain; protected $fromUser; /** * @var \React\EventLoop\LoopInterface ...
true
836ac0285a236546e5b9d69be2d9f0ef468ef650
PHP
intanpuspita/College-Projects
/PHP/Others/Orphanage Website/view-detail-anak-asuh.php
UTF-8
1,002
2.515625
3
[]
no_license
<?php include 'connect.php'; $id_anakasuh=$_GET['anakasuh']; $anakasuh=mysql_query("select * from anak_asuh where id_anakasuh='$id_anakasuh'"); $dataanakasuh=mysql_fetch_array($anakasuh); //$dataanakasuh['tgl_lahir']=date('d-M-Y'); ?> <html> <h2>Data anak asuh</h2> <table> <tr> <td><img src="<?php echo $da...
true
525205bb76cd67a1a37a8f364050a2718e794c6c
PHP
carlosgrgr/PHPDatabaseManager
/pais/views/new.php
UTF-8
1,597
2.6875
3
[]
no_license
<?php require_once( '../../vendor/autoload.php' ); use DBManager\DataBase; use DBManager\ManagePais; $bd = new DataBase(); $gestor_pais = new ManagePais($bd); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <!-- Si la clave principal no es au...
true
a1651ca94a7aa0c7ea56d5474ddf64e943478720
PHP
llljui/bangbanglicai.com
/ban/system/payment/bfrzapp/httpClient.php
UTF-8
1,581
2.671875
3
[ "LicenseRef-scancode-public-domain" ]
permissive
<?php /** * 后台交易 HttpClient通信 * @param unknown_type $params * @param unknown_type $url * @return mixed */ function sendHttpRequest($params, $url) { $opts = getRequestParamString ( $params ); $opts = getRequestParamString ( $params ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_...
true
1089ebeacb2161ff35f1b97ba880c6f85576a89a
PHP
tontof/kriss_tuto
/php/examples/pdo_delete.php
UTF-8
280
2.75
3
[]
no_license
<?php include "pdo_insert.php"; $count = $pdo->exec("DELETE FROM animals WHERE animal_name = 'médor' OR animal_name = 'titi'"); echo $count." animaux supprimés<br>"; var_dump($pdo->query("SELECT * FROM animals")->fetchAll(PDO::FETCH_ASSOC)); ?>
true
c00c5fd724f52f80b281b1f4951712d95ec78bc5
PHP
xanosta/gms_admin
/app/models/Pick.php
UTF-8
2,710
3.421875
3
[]
no_license
<?php class Pick { private $db; public function __construct() { $this->db = new Database; } public function getPicks($language, $country) { $this->db->query('SELECT * FROM staffpicks WHERE language = :language AND country ...
true
4d521a849bba96ab85b979fd22ef07e1e1ab8346
PHP
gib130/testtask
/controller.php
UTF-8
528
2.625
3
[]
no_license
<?php $site = "http://".$_SERVER['HTTP_HOST']."/"; $url = $_POST['url']; $urlwish = $_POST['urlwish']; if (strlen($urlwish)==0) { $symbols = "QqWwEeRrTtYyUuIiOoPpAaSsDdFfGgHhJjKkLlZzXxCcVvBbNnMm1234567890"; $rand = substr(str_shuffle($symbols), 0, 4); echo "<a href='$site$rand' target='_blank'>$site$rand</a>"; $f...
true
cfe7cefcf82afab9e6b9a4547fd93856bcaf4abf
PHP
arazzaghm/market
/app/Http/Controllers/SearchController.php
UTF-8
701
2.546875
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\Post; use App\Services\SearchService; use Illuminate\Contracts\View\Factory; use Illuminate\Http\Request; use Illuminate\View\View; class SearchController extends Controller { private $searchService; /** * SearchController constructor. */ pu...
true
2d729596ca4a90328d548ba98219eecf484c0428
PHP
murilohpucci/php-technical-challenge
/app/tests/ex4/Domain/ServiceTest.php
UTF-8
2,695
2.625
3
[ "MIT" ]
permissive
<?php namespace Test\App\ex4\Domain; use App\ex4\Domain\Exception\EmailAlreadyExists; use App\ex4\Domain\Exception\LoginAlreadyExists; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use App\ex4\Domain\Service; use App\ex4\Domain\Repository; /** * Class ServiceTest. * @covers \App\ex4\...
true
737f852d48ee7049f75389501bf685eeb95e2149
PHP
pat44445/Studium
/IIS - Informační systémy/Projekt/app/Router/RouterFactory.php
UTF-8
3,206
2.625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Router; use Nette; use Nette\Application\Routers\RouteList; final class RouterFactory { use Nette\StaticClass; public static function createRouter(): RouteList { $router = new RouteList; $router->addRoute('sign/in', 'Sign:in'); $router->addRoute('users/list'...
true
893da20f51e0fe6ef18e0acd40655fe4dc97b3bf
PHP
mnoskov/evocms-artisan-generators
/src/Console/ControllerMakeCommand.php
UTF-8
1,215
2.5625
3
[]
no_license
<?php namespace EvolutionCMS\ArtisanGenerators\Console; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputOption; class ControllerMakeCommand extends GeneratorCommand { /** * The console command name. * * @var string */ protected $name = 'make:con...
true
2569cc2121976bf558e01f198d7f204a824bf700
PHP
alexpts/php-rate-limiter
/test/unit/LimiterTest.php
UTF-8
1,681
2.546875
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; use PTS\RateLimiter\Adapter\MemoryAdapter; use PTS\RateLimiter\Limiter; class LimiterTest extends TestCase { /** @var Limiter */ protected $limiter; protected $testKey = 'test_limiter'; public function setUp(): void { parent::setUp(); $adapte...
true
c4bfa44c7ae34f861f945b652ce8c266a7920a40
PHP
ivan-veres/Desing_Patterns
/Strategy/Ducks/modelDuck.php
UTF-8
434
2.890625
3
[]
no_license
<?php require_once "duck.php"; require_once "quacking.php"; require_once "flyNoWay.php"; /** * @package SimUDuck app * @reference Head First Design Patterns, O'REILLY */ class ModelDuck extends Duck { public function __construct() { parent::__construct(new MuteQuack(), new F...
true
ccce385c53ac52056107ef41c96825d1f43b5244
PHP
JohnDinhDev/slotify
/includes/classes/Account.php
UTF-8
4,399
3.296875
3
[]
no_license
<?php class Account { private $con; private $errorArray; public function __construct($con) { $this->con = $con; $this->errorArray = array(); } public function login($username, $password) { // Fetch hashed password from DB $q...
true
5a99bf27ba901cfd44ec31bd708d5d87078288fe
PHP
nmdgent-jefverme/WebDev_1
/week_3/MicroCMS/index.php
UTF-8
811
2.625
3
[]
no_license
<?php session_start(); if(isset($_SESSION['logout'])) session_abort(); if(!isset($_SESSION['login'])){ header('Location: login.php'); } $content = './content'; if(is_dir($content)){ $files = array_diff(scandir($content), array('..', '.')); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <met...
true
bf1a13c8a415b64a5dd18a7ee7b42e1ade5b336c
PHP
pobeizhang/laravel_blog
/app/Entity/Category.php
UTF-8
1,098
2.90625
3
[ "MIT" ]
permissive
<?php namespace App\Entity; use Illuminate\Database\Eloquent\Model; class Category extends Model { protected $table="category"; protected $primaryKey="id"; /** * [getTree 数据树状化处理] * @param array $data [要处理的数据集合] * @param string $field_name [具有树状结构的数据名称] * @param string $field_id [数据对应的...
true
ba6a4229100b93e84a80b21f716986cbe9674eec
PHP
SztukowskiAdam/Blogify
/views/layouts/navbar.php
UTF-8
2,018
2.625
3
[]
no_license
<div class="navbar"> <ul class="nav"> <li <?php if (\Kernel\Router::currentUrl() === \Kernel\Router::path('/')) echo 'class="active"';?>> <a href="<?= \Kernel\Router::path('/')?>"> Strona główna </a> </li> <li <?php if (\Kernel\Router::currentUrl() ===...
true
7305146aad7352ec4892489ee4dfc5e5fb4fa8a5
PHP
ADCDS/php-sql-query-builder
/tests/Manipulation/InsertTest.php
UTF-8
3,408
2.703125
3
[ "MIT" ]
permissive
<?php /** * Author: Nil Portugués Calderó <contact@nilportugues.com> * Date: 6/3/14 * Time: 1:37 AM. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace NilPortugues\Tests\Sql\QueryBuilder\Manipulation; use NilPortugues\Sql...
true
0308cd39c7389cec5b0d6859280315f375c27ccf
PHP
michaelgrimshaw/laravel-email-tracker
/src/Events/MailEvent.php
UTF-8
1,394
2.5625
3
[ "MIT" ]
permissive
<?php namespace MichaelGrimshaw\MailTracker\Events; use MichaelGrimshaw\MailTracker\TrackedMail; use MichaelGrimshaw\MailTracker\TrackedMailEvent; use Illuminate\Queue\SerializesModels; use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Broadcasting\InteractsWith...
true
9b152b084543be2a7ffea39645c18f0c5fc83f90
PHP
WilliePart2/willie-miner
/controller/controllerRegistration.php
UTF-8
3,079
2.75
3
[]
no_license
<?php require_once(ROOT . '/model/modelRegistration.php'); require_once(ROOT . '/core/controller_base.php'); require_once(ROOT . '/components/User.php'); class controllerRegistration extends controller_base { public function actionNewUser() { if ($this->isAjax()) { $data = $this->getAjaxDa...
true
4401723048998ffda18d6b350715550f6a92409f
PHP
linuxserver/Heimdall
/vendor/fzaninotto/faker/src/Faker/Calculator/Luhn.php
UTF-8
1,763
3.515625
4
[ "MIT" ]
permissive
<?php namespace Faker\Calculator; use InvalidArgumentException; /** * Utility class for generating and validating Luhn numbers. * * Luhn algorithm is used to validate credit card numbers, IMEI numbers, and * National Provider Identifier numbers. * * @see http://en.wikipedia.org/wiki/Luhn_algorithm */ class Lu...
true
ad0f64469abc638c375039ec0b49d9f729f7c02f
PHP
YoelMonsalve/EasyBusiness-v1.0.2_ES
/monthly_sales.php
UTF-8
5,911
2.625
3
[ "MIT" ]
permissive
<?php $page_title = 'Ventas mensuales'; require_once('include/load.php'); // Checkin What level user has permission to view this page page_require_level(3); ?> <?php /* converts a numeric month [1-12] into a string, * in the current language */ function month_to_string($i) { if (!is_numeric($i)) ...
true
38af3cdbafdbb720e5ff2b8619f6046fac219fd3
PHP
camillalo/template
/dts/huiju_dts/lib/api/plug/class.send_email.php
UTF-8
3,133
2.6875
3
[]
no_license
<?php /** * 发送邮件 */ class send_email extends api_comm { /** * 设置响应的消息体 返回值必须是json * */ public $smtp_user = array(//SMTP服务器的用户 0=>array("user"=>"liyingxiaoxue01@163.com","pass"=>"q973955"), 1=>array("user"=>"liyingxiaoxue02@163.com","pass"=>"q973955") ); private function objarray_to_array($obj) {...
true
3db62e49ae3360712003a7370ac1b9b78711f31b
PHP
adji142/koprasiwanitausahamandiri
/Rpt_Saldo.php
UTF-8
3,189
2.546875
3
[]
no_license
<?php $member = $_GET['username']; // pendefinisian folder font pada FPDF define('FPDF_FONTPATH', 'FPDF/font/'); require('FPDF/fpdf.php'); // seperti sebelunya, kita membuat class anakan dari class FPDF class PDF extends FPDF{ function Header(){ //$this->Image('logo.png',1,1,2.25); // logo $this->SetTextColor(...
true
8b5f25ff9582513f564389e809fb1920b2c903a8
PHP
JayOwl/PHP-Object-Checker
/02_php_foreach_loops.php
UTF-8
1,744
3.90625
4
[]
no_license
<!DOCTYPE html> <html> <head> <title>Php Foreach Loops</title> <link type="text/css" rel="stylesheet" href="style.css" /> </head> <body> <h1>Php Foreach Loops</h1> <p>The <a href="">foreach</a> loop is for convenient looping through arrays. Though a <code>for</code> or <code>while</code> loop could be used to ...
true
fd04ea99b699031654dab72beb20c9ceb599777e
PHP
icarus321/portfolio
/sqlFinal/transHistory.php
UTF-8
4,901
2.53125
3
[]
no_license
<!DOCTYPE html> <html> <!--<input type='button' id='bob 'value='hello'> --> <head> <style> table { width: 100%; collapse; } table, td, th { border: 1px solid black; padding: 5px; } th {text-align: left;} </style> </head> <body> <?php //$q = intval($_GET['q']); $q =$_GET['q']; $con = mysqli_c...
true
31a6d556c3cc2ec846a585cedddb7142f1f807e1
PHP
ArcherCraftStore/ArcherVMPeridot
/apps/owncloud/htdocs/lib/private/group/backend.php
UTF-8
3,624
2.578125
3
[ "Apache-2.0", "MIT", "AGPL-3.0-only" ]
permissive
<?php /** * ownCloud * * @author Frank Karlitschek * @copyright 2012 Frank Karlitschek frank@owncloud.org * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE * License as published by the Free Software Foundation; either * version 3 of ...
true
ab69622a944952e8be399bc349885fc62b8b2116
PHP
firstlove75/ws-demo
/answer-test-1-2-3/atm_algorithm.php
UTF-8
568
3.375
3
[]
no_license
<?php function countCurrency($amount){ $note_items = array(50, 10, 5, 1); $note_count = array(0, 0, 0, 0); for ($i = 0; $i < count($note_items); $i++) { if ($amount >= $note_items[$i]) { $note_count[$i] = intval($amount / $note_items[$i]); $amount = $amount - ($note_cou...
true
fe72f17f6b5a10656dd646fdba8350c6bef40232
PHP
ghw/WellCommerce
/src/WellCommerce/Bundle/CoreBundle/Helper/Translator/TranslatorHelper.php
UTF-8
1,355
2.546875
3
[ "MIT" ]
permissive
<?php /* * WellCommerce Open-Source E-Commerce Platform * * This file is part of the WellCommerce package. * * (c) Adam Piotrowski <adam@wellcommerce.org> * * For the full copyright and license information, * please view the LICENSE file that was distributed with this source code. */ namespace WellCommerce\...
true
3f19ef3e62e3549cd6b0d141f3bdfff7d3173566
PHP
jakedaleweb/Synthesizer
/views/delete.php
UTF-8
1,535
2.96875
3
[]
no_license
<?php class Delete extends View { public function displayContent(){ //check if the user is admin $admin = $this -> model -> checkAdmin(); //get job details from the get $job = $this -> model -> getJob($_GET['jobID']); //if user is not logged in if(!isset($_SESSION['userID'])){ //redirect to login he...
true
a18025b31ae117a0882867333b74c1fa9c6fd7bd
PHP
sanity-io/sanity-php
/test/BlockContentTreeTest.php
UTF-8
15,562
2.640625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace SanityTest; use Sanity\BlockContent; class BlockContentTreeTest extends TestCase { public function __construct() { BlockContent::$useStaticKeys = true; } public function testHandlesNormalTextBlock() { $input = $this->loadFixture('normal-text.json'); $expect...
true
cc4a1b08de20577f9d2f32ebdbe46b21bdc237bd
PHP
bactv/granduration_project
/common/models/db/TransactionDB.php
UTF-8
1,903
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models\db; use Yii; /** * This is the model class for table "transaction". * * @property integer $id * @property string $created_time * @property integer $student_id * @property string $action * @property integer $package_id * @property string $price * @property integer $request_statu...
true
65d0e381a6e89e1c9ee2ac2359ae7640b1d09817
PHP
dbirchak/yucca
/lib/Yucca/Component/Source/Memcache.php
UTF-8
4,538
2.515625
3
[ "MIT" ]
permissive
<?php /* * This file was delivered to you as part of the Yucca package. * * (c) Rémi JANOT <r.janot@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Yucca\Component\Source; use Yucca\Component\Source\Exception\...
true
6152dd77ceee454246218ccd8c7b3cb33ef5f77c
PHP
mangopeaches/chutes
/ChutesNLadders/Player.php
UTF-8
858
3.59375
4
[]
no_license
<?php /** * Class to represent a single player * @author Tom Breese */ namespace ChutesNLadders; class Player { /** * Players initial position * @var integer */ private $position = 0; /** * Players name * @var string */ private $name; /** * Create a new player * @param string $name players n...
true
77e7f5f23579a230878e0ca4c4f1c1f9f45625f4
PHP
alwiarif/PHP-8
/UnionTypes.php
UTF-8
427
3.75
4
[]
no_license
<?php class Example { public string|int|bool|array $data; } $example = new Example(); $example->data = "Eko"; $example->data = 100; $example->data = true; $example->data = []; function sampleFunction(string|array $data): string|array { if (is_array($data)) { return ["Array"]; } else if (is_string...
true
d2c34f84ec9593952737b501550a6a378722337e
PHP
SabLaDev/evalphp
/db_adduser.php
UTF-8
999
2.875
3
[]
no_license
<?php try { $bdd = new PDO('mysql:host=localhost;dbname=candyshop', 'root', 'root'); $bdd->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "INSERT INTO user (lastname, firstname, email, password) VALUES(:lastname, :firstname, :email, :password)"; $result = $bdd->prepare($sql); ...
true
b1b14583467be30abcde46b8391ac0d6e313859e
PHP
Aleksa1996/ytd
/app/Jobs/DeleteConvertedData.php
UTF-8
1,541
2.578125
3
[]
no_license
<?php namespace App\Jobs; use App\YoutubeVideo; use Illuminate\Bus\Queueable; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Facades\Storage; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; class DeleteConvertedData imple...
true
aba59443602dcfa301c3aa5d3831656806d95ed7
PHP
ujm-projet-2018/Groupe3
/lexical_php/score1.php
UTF-8
2,366
2.703125
3
[]
no_license
<?php $response = array(); /* if(empty($_POST["nom"]) || empty($_POST["prenom"]) || empty($_POST["gagne"]) || empty($_POST["exercice"]) ){ echo "Nom, prenom, score ou exercice vide!"; } else{*/ $nom = $_POST['nom']; $prenom = $_POST['prenom']; $score = $_POST['gagne']; $exercice = intval($_POST['exercice']);...
true
acc71082991c0988cee412efd10a53bcaf797f5c
PHP
devenpateldp/ost-sdk-php
/src/Services/V1/Airdrops.php
UTF-8
1,201
2.859375
3
[ "MIT" ]
permissive
<?php /** * Airdrops class */ namespace OST\V1; /** * Class encapsulating methods to interact with V1 API's for Airdrops module */ class Airdrops extends \OST\Base { /** * Constructor * * @param object $requestObj request object which would fire API calls * */ public function __construct($requ...
true
ffd383f7dbb6b6a3482f1ff941aeded738382a17
PHP
ollieread/multitenancy
/src/Contracts/Provider.php
UTF-8
329
2.53125
3
[]
no_license
<?php namespace Ollieread\Multitenancy\Contracts; /** * Interface Provider * * @package Ollieread\Multitenancy\Contracts */ interface Provider { /** * @param $identifier * @param bool $primary * * @return Tenant */ public function retrieveByIdentifier($identifier, $primary =...
true
2d3d8b8df72c0e4977e2735027cbc833ebe75b36
PHP
sebastianoltmann/real-estates
/app/Services/RealEstates/Command/UpdateRealEstateCommand.php
UTF-8
596
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Services\RealEstates\Command; use App\Services\RealEstates\Models\RealEstate; class UpdateRealEstateCommand extends CreateRealEstateCommand { /** * UpdateRealEstateCommand constructor. * * @param array $params * @param RealEstate $realEstate */ public funct...
true
08e0684c67bac4865d64a1bb153ef01d20682e77
PHP
hamzaarfaoui/tunisianTrades
/src/Document/Valeurs.php
UTF-8
2,340
2.609375
3
[]
no_license
<?php namespace App\Document; use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB; use Doctrine\Common\Collections\ArrayCollection; use Symfony\Component\Validator\Constraints as Assert; /** * @MongoDB\Document */ class Valeurs { /** * @MongoDB\Id */ protected $id; /** * @MongoDB\Fi...
true
87c2fae47ed505747512d9be639b664492fe812e
PHP
nova-framework/framework
/modules/Platform/Models/Activity.php
UTF-8
1,382
2.578125
3
[ "MIT" ]
permissive
<?php namespace Modules\Platform\Models; use Nova\Database\ORM\Model as BaseModel; use Nova\Support\Facades\Auth; use Nova\Support\Facades\Config; use Nova\Support\Facades\Session; use Carbon\Carbon; class Activity extends BaseModel { /** * The database table used by the model. * * @var string ...
true
e9a8eda7eb4b6f8706f0222d6bc89934df915c4a
PHP
MartinPavlinovNikolov/optimizer
/models/Artist.php
UTF-8
3,693
2.984375
3
[]
no_license
<?php namespace Optimizer\Models; /** * Description: Image-manipulations for all tasks with images * * @author Martin Nikolov */ class Artist { public function __construct() { } /** * Description: take all orders-images from incoming orders. * @depends class EPSON...
true
735dd22f71bc30efe795139091555fc993fbe765
PHP
DoWhileNotDone/elucidat-php-code-test
/src/DailyItemChange/SulfurasCalculator.php
UTF-8
256
2.671875
3
[]
no_license
<?php namespace App\DailyItemChange; use App\Item; /** * A sulfurus item never has to be sold or decreases in Quality */ class SulfurasCalculator implements Calculator { public function update(Item $item): Item { return $item; } }
true
3d43a3fe87257fc2c7653443f11e006ee665d88f
PHP
dweeves/magmi-git
/magmi/cli/magmi.cli.php
UTF-8
3,680
2.796875
3
[]
no_license
<?php /** * MAGENTO MASS IMPORTER CLI SCRIPT * * version : 0.1 * author : S.BRACQUEMONT aka dweeves * updated : 2010-08-02 * */ require_once(dirname(dirname(__FILE__)) . "/inc/magmi_defs.php"); require_once('magmi_loggers.php'); $script = array_shift($argv); /** * Builing option dictionnary from command line ...
true
3e933d07ae279fe2fe3e501a006ef5694cd67361
PHP
andreasoscar/016172.github.io
/SchedulePlus/ANSLUTNING.php
UTF-8
548
2.65625
3
[]
no_license
<?php $link = mysqli_connect("den1.mysql4.gear.host", "scheduleplusdb", "Yq2Am5!ulT~O", "scheduleplusdb"); // Check connection if($link === false){ die("ERROR: Could not connect. " . mysqli_connect_error()); } // Attempt insert query execution $sql = "INSERT INTO users (username, password) VALUES ('And...
true
9b364eb5c924a3cc48110d3b2803bb52b7e09b19
PHP
niveqhost/quanlytruonghoc_mvc
/controllers/C_student.php
UTF-8
3,144
2.65625
3
[]
no_license
<?php include_once 'models/M_student.php'; include_once 'core/C_base.php'; class Student extends BaseController { private $studentEntity; public function __construct() { parent::__construct(); $this->studentEntity = new M_Student(); } public function studentList() { $a...
true
6c63997c7b17bad4b1c1ffe6aea1bd38908dd0cd
PHP
vitaliyrst/Courses-PHP-2
/App/Classes/AdminDataTable.php
UTF-8
539
2.9375
3
[]
no_license
<?php namespace App\Classes; class AdminDataTable { protected iterable $models; protected array $functions; public function __construct(iterable $models, ...$functions) { $this->models = $models; $this->functions = $functions; } public function render(): array { $...
true
60e2307c12245f112e894c274797282f9c8e7e98
PHP
snebes/html-sanitizer
/src/Node/AbstractNode.php
UTF-8
554
2.640625
3
[ "MIT" ]
permissive
<?php /** * (c) Steve Nebes <snebes@gmail.com>. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SN\HtmlSanitizer\Node; /** * @author Steve Nebes <snebes@gmail.com> */ abstract class AbstractNode implements NodeInterfa...
true
080e014e0924daf086d73107139c0de687114268
PHP
HannaLuniova/homework
/29.12/servic.php
UTF-8
859
2.9375
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Service</title> <link rel="stylesheet" href="service.css"> </head> <body class="servic"> <div class="text"> <?php $a = $_POST["q1"]; ...
true
06f678d6a2e16c60218987aaac6b652cd52d27b7
PHP
shsrain/ShsrainWeChat
/ShsrainWeChat/WeChat/Router/Router.php
UTF-8
824
2.75
3
[ "Apache-2.0" ]
permissive
<?php namespace WeChat\Router; use \Curl\Curl as Curl; use \WeChat\Token as Token; use \WeChat\Request\Request as Request; use \WeChat\Contracts\Router\RouterInterface as RouterInterface; class Router implements RouterInterface{ protected $token; public function __construct( Token $token, $config = array() ) ...
true
4a538e43e97eb06a84478e0163ccd535ffc7db51
PHP
jarenal/telesales-calculator
/src/Jarenal/Controller/Controller.php
UTF-8
1,008
2.9375
3
[ "MIT" ]
permissive
<?php namespace Jarenal\Controller; use Jarenal\Model\SalaryCalculator; use Jarenal\View\Base\ViewFactory; class Controller { private $output_file; private $date_start; private $date_end; private $format; public function __construct($output_file="", $format="", $date_start="", $date_end=""){ $this->output_...
true
402bdab3de2cc35a671757048f73b01044cc5a85
PHP
torchline/frest
/src/FREST/2.0/Database/Request/Spec/OrderBy.php
UTF-8
789
2.859375
3
[]
no_license
<?php /** * Created by Brad Walker on 5/5/16 at 11:54 AM */ namespace FREST\Database\Request\Spec; class OrderBy { /** * @var string $table */ protected $table; /** * @var string $column */ protected $column; /** * @var string $direction */ protected $direction; /** * @param string $table ...
true
89f40fbee985317fca179840ba26043ee674c054
PHP
kristen-foong/web-dev-2
/project/register.php
UTF-8
1,203
2.71875
3
[]
no_license
<?php include 'main.php'; // set username & password variables if(!empty($_POST)){ $user = $_POST["username"]; $pass1 = $_POST["password1"]; $pass2 = $_POST["password2"]; } //if passwords do not match, take them back to registration page if($pass1 != $pass2){ $template = $twig->load('login.twig.html'); ech...
true
92fd9dc3188e64a7fd02860cedb093bcdc3dcf9d
PHP
seifooriamin/invoice-angular
/api/customers/create.php
UTF-8
1,842
2.890625
3
[]
no_license
<?php // required headers header("Access-Control-Allow-Origin: *"); header('Access-Control-Allow-Methods: POST'); header('Access-Control-Allow-Headers: Origin, Content-Type,X-Requested-With, X-Auth-Token, Access-Control-Allow-Headers, Authorization'); header("Content-Type: application/json; charset=...
true