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
adf7a8a98ddcbea825fb6f242e2ee3795d020182
PHP
stephenheron/monitor
/src/AppBundle/Manager/PropertyManager.php
UTF-8
786
2.625
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Manager; use AppBundle\Entity\User; use Doctrine\ORM\EntityManager; class PropertyManager { private $propertyRepository; public function __construct(EntityManager $entityManager) { $this->propertyRepository = $entityManager->getRepository('AppBundle:Property'); } ...
true
d85dc1001bef54c48f23904d3b09068a225232a6
PHP
Almamymama/Almamy
/log.php
UTF-8
1,381
2.578125
3
[]
no_license
<?php $error = isset($_GET['error']) ? $_GET['error'] : ''; $pass = isset($_GET['pass']) ? $_GET['pass'] : ''; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <...
true
46644ce22aa2fe705fe2bc762809384b280291ba
PHP
camelcasetechsd/attendance-system
/module/Requests/src/Requests/Model/WorkFromHome.php
UTF-8
3,361
2.828125
3
[]
no_license
<?php namespace Requests\Model; use Requests\Entity\WorkFromHome as WorkFromHomeEntity; /** * WorkFromHome Model * * Handles WorkFromHome Entity related business * * @author Mohamed Labib <mohamed.labib@camelcasetech.com> * @author ahmed * * @property Utilities\Service\Query\Query $query * @property Noti...
true
0cf9f62356b3cc683a800329a9623d9ff4cc52e7
PHP
jerictilacas/web-fundamentals
/javascripts/conditions.php
UTF-8
1,010
3.21875
3
[]
no_license
<script> var amount = 10000; if (amount < 1000){ alert('the amount is less than 1000'); } else { alert('the amount is great than 1000'); } </script> <script> // operators and signs // = (assignment) var a = 5; var b = '5'; // == (equality) // === (strictly equal) ...
true
58148fdfd2a966aa099c9316dc70141402ef229d
PHP
marcopolello/laravel-migration-seeder
/laravel-migration-seeder/app/Http/Controllers/EmployeeController.php
UTF-8
449
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; // necessario importare il modello employee use App\Employee; class EmployeeController extends Controller { public function index(){ $emps = Employee::all(); // dd($emps); return view('pages.employees', compact('emps')); } public fu...
true
6e4971b6318188267deb75d2f34d9925a50726d6
PHP
seb86/WordPress-Plugin-Requirement
/includes/wordpress-plugin-requirements.php
UTF-8
5,991
2.65625
3
[]
no_license
<?php /** * WordPress Plugin Requirement Class. * * Contains the main functions for verifying the plugin requirements, * stores variables, and handles error messages. * * @class WordPress Plugin Requirement * @version 1.1.1 * @author Seb's Studio * @author url http://www.sebs-studio.com */ if ( ! defined( '...
true
c809d3f28f0fd83038bfc026bd1624bd74ee4c1f
PHP
emailoflvs/HR-department--stopped-before-correctly-right-finish
/app/HelpModule.php
UTF-8
3,089
3.078125
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; class HelpModule extends Model { /** * Переменные массива со знаком _ меняем на нижний-верхний регистр * @param array $inputArray * @return array */ public function changeRegisterToTop($inputArray = null) { foreach (...
true
231db491f17ac295175d6a4341ac06768ebd9c3e
PHP
FMiranda97/NerdScape
/actions/upload_level.php
UTF-8
1,707
2.65625
3
[]
no_license
<?php session_start(); $result = array('error' => array(), 'status' => "Success"); if (!isset($_SESSION['username'])) { array_push($result['error'], "Not logged in."); } if (!isset($_POST['level_name'])) { array_push($result['error'], "No name argument."); } if (!isset($_POST['level_info'])) { array_pus...
true
e1dbdd2213f6ae8b7711b56c6234fa8e1578a085
PHP
wangrunbo/another
/config/Migrations/20170724075815_add_remove_info_and_description_fields_from_order_details_table.php
UTF-8
929
2.515625
3
[]
no_license
<?php use Phinx\Db\Adapter\MysqlAdapter; use Phinx\Migration\AbstractMigration; class AddRemoveInfoAndDescriptionFieldsFromOrderDetailsTable extends AbstractMigration { /** * Up Method. */ public function up() { $order_details = $this->table('order_details'); $order_details ...
true
54c61f3296acbcc12d085bd5d8c1dff296636057
PHP
rbello/ent
/system/cli/Traits.Utils.php
UTF-8
8,689
3.1875
3
[]
no_license
<?php namespace PHPonCLI; trait Utils { public static function outputObject($o, $n = 1) { $wb = " "; if (is_array($o)) { if ($n > 1) return '[...]'; $str = "[\n"; $i = 0; foreach ($o as $k => $v) { if (is_array($v) || is_object($v)) $v = self::outputObject($v, $n + 1...
true
198a21c10133f8d51d17f35b29184d6de84b622a
PHP
lemonphp/http-client
/src/Authentication/AutoBasicAuth.php
UTF-8
1,470
2.90625
3
[ "MIT" ]
permissive
<?php namespace Lemon\Http\Client\Authentication; use Lemon\Http\Client\AuthenticationInterface; use Psr\Http\Message\RequestInterface; /** * The auto basic authentication class * * Authenticate request with user info from request's URI * * @package lemonphp/http-client * @author Oanh Nguyen <oanhnn.b...
true
5f5a3f9eecb1f0ceb2c054e620748afc0b74d79a
PHP
lipemat/wp-phpcs
/src/Lipe/Sniffs/JS/WindowSniff.php
UTF-8
2,451
2.8125
3
[ "MIT" ]
permissive
<?php /** * Lipe.JS.WindowSniff * * @package wp-phpcs\Lipe */ namespace Lipe\Sniffs\JS; use Lipe\Traits\EscapeOutputFunctions; use PHP_CodeSniffer\Util\Tokens; /** * Looks for instances of window properties that should be flagged. */ class WindowSniff extends \WordPressVIPMinimum\Sniffs\JS\WindowSniff { use E...
true
575cd5707a68eb6c39b9a5fba09558391bc2366f
PHP
jetshaw/m0n0wall_x
/trunk/phpconf/inc/json_lib.inc
WINDOWS-1252
3,379
3.3125
3
[]
no_license
<?php /** * * @param array $arr * @param boolean $fix * @return string * @author shenxin * @date 2012-5-4 09:30:13 * @version V1R6B005 */ //function array_to_json($arr, $fix = true) function json_encode($arr, $fix = true) { $parts = array(); $is_list = false; /* Find ou...
true
a3e94b536b8a9b5951eca1497ec2560cd8a51b0f
PHP
daysdays/WebWorker
/App.php
UTF-8
8,444
2.546875
3
[]
no_license
<?php namespace WebWorker; use Workerman\Connection\TcpConnection; use Workerman\Worker; use Workerman\Lib\Timer; use Workerman\Autoloader; use Workerman\Connection\AsyncTcpConnection; use Workerman\Protocols\Http; use Workerman\Protocols\HttpCache; use WebWorker\Libs\StatisticClient; function microtime_float() { ...
true
a5fd7eefe4e76978e0549f66b45a8bc9b3638006
PHP
ericastro/PentaxialCRUD
/index.php
UTF-8
2,217
2.6875
3
[]
no_license
<?php include_once 'DBMS.class.php'; $pessoas = ""; $error = ""; $crud = new CRUD(); $table = "pessoas"; if ( empty($_GET) ) { try { $pessoas = $crud->Read($table,"","idPessoa ASC","*"); } catch (Exeption $ex) { $error = "Ocorreu o erro : " + $ex.message(); } } else { $pessoas = $c...
true
8f6da9aef0fc1ef2b6414593712720cbefd7316c
PHP
mehularora87/Online-Taxi-booking-System
/assign2/assign.php
UTF-8
1,658
2.875
3
[]
no_license
<?php //Php file used to find out if a customer requires a pickup within the next 2 hours. $date = $_POST['date']; date_default_timezone_set("Pacific/Auckland"); $date = date('Y-m-d H:i:s'); $newdate = date("Y-m-d H:i:s", strtotime('+2 hours')); include('database.php'); $query = "Select BookingNum, CustName, C...
true
882187d1fc18badd544d47108ea51acbc876e710
PHP
suga3058162/laraveltwitter
/app/Http/Controllers/LikesController.php
UTF-8
1,845
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Post; use App\Like; use App\User; use App\Http\Requests\PostRequest; use Illuminate\Support\Facades\Input; use Illuminate\Support\Facades\Auth; class LikesController extends Controller { protected $request; public function __construc...
true
3de32183fdcb1d4170e8b7a10119d9a3a6305a18
PHP
jphp-group/DBGP-Emulator
/debugger/Input/AbstractInput.php
UTF-8
1,045
2.5625
3
[]
no_license
<?php namespace Dbgp\Input; use Dbgp\InputCommand; use Dbgp\Response\MessageInterface; /** * Class AbstractInput * @package Dbgp\Input */ abstract class AbstractInput implements InputInterface { const COMMAND_NAME = 'command'; /** * @var InputCommand */ private $command; /** * @par...
true
0e9bc53deba7bcbde1bfbb3a6fa16ae2d86fd918
PHP
jhelder2/Jeffrey_Helder_3014_r1
/admin/scripts/calculateTOD.php
UTF-8
490
3.375
3
[]
no_license
<?php function calculateTOD($time){ //if time is 3:00am-11:59am if ($time >= '030000' && $time <= '115959') { return 'Morning'; //if time is 12:00-3:59pm }elseif($time >= '120000' && $time <= '155959') { return 'Afternoon'; //if time is 4:00pm-2:59am }elseif($time...
true
241abcab66c220934ef34c9ab16cd4a2d7c63f25
PHP
proyectoADSIFabis/videos
/capitulo2/if05-01.php
UTF-8
146
2.90625
3
[]
no_license
<?php $mivariable = "rojo"; if ($mivariable == "rojo"){ echo "el color si que es rojo"; }else{ echo "el color parace que no coincide"; } ?>
true
55356c45a1f2ec62f4b038bd3747b4c4a4b11d92
PHP
e-sutton/TREKR
/old 02_11_15/register.php
UTF-8
3,820
3.28125
3
[]
no_license
<?php // get connection to DB include("connection.php"); // SQL query to check if username already taken $query = " SELECT 1 FROM login WHERE username = :username "; // this is the token for the u...
true
4fd3502f49cc00fc8afca7b80c692f438064cf63
PHP
sara-h-chen/faq_rest_api
/assets/delete.php
UTF-8
1,591
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: jrvh15 * Date: 26/12/16 * Time: 22:28 */ ob_start(); header('Access-Control-Allow-Origin: *'); $checkToken = "faq2016 " . date("Y-m-d") . " " . $_SERVER['REMOTE_ADDR']; $checkToken = hash('sha256', $checkToken); $givenToken = $_GET["auth_token"]; //var_dump($checkToken);...
true
078d20d9cfc3e7df1b268d5ff6d76a93dd845d22
PHP
abinbhattacharya/bloodbanksite
/Admin/donor_search_submit.php
UTF-8
3,582
2.578125
3
[]
no_license
<?php require_once('start_session.php'); if(!isset($_SESSION['admin_id'])) { require_once('../CommonFiles/header.php'); ?> <div id="msg_container"> <div id="msg_box"> <p>Please <a href="index.php">LOG IN</a> to access this page.</p> </div> </div> <?php require_once('../CommonFiles/footer.php'...
true
5fb53fe3a44a7f1595b9c99bbb5008e870cdf0f8
PHP
npapp-dev/-gyf-kapu
/modules/adminok/admin.php
UTF-8
1,384
2.703125
3
[]
no_license
<?php class Admin extends Felhasznalo{ /** return hiba k�dok array L�trehoz�si/m�dos�t�si param�terek ellen�rz�se Aloszt�ly implement�lja */ public function validate(array $params=null) { $errors = array(); if (empty($params['azon'])) $errors[] = array(Error::MANDATORY, "azon")...
true
4c6f2b6047e417a05348a72326f998936596214e
PHP
ishikawam/kintone-sync
/app/Console/Commands/GetAppsUpdatedData.php
UTF-8
5,078
2.796875
3
[]
no_license
<?php namespace App\Console\Commands; /** * アプリの更新されたレコードを取得し、DBにGET同期保存する * 更新があった場合はinsert, updateする * レコードの更新の操作ログを残す * * これは5分に1回程度。(1アプリにつき1日最低288アクセス消費) * 直接DBをいじった場合に強制同期したいときは、比較用キャッシュを削除する */ class GetAppsUpdatedData extends \App\Console\Base { /** * The name and signature of the console comm...
true
b8cc20c6b1111d340ef5db40784356c849c0430d
PHP
JaSpr/TheGame
/library/Bear/Filter/Gd/Gif.php
UTF-8
1,281
2.890625
3
[]
no_license
<?php /** * BEAR * * @category Bear * @package Bear_Filter */ /** Bear_Filter_Gd_Abstract */ require_once "Bear/Filter/Gd/Abstract.php"; /** * Output a GIF * * Filters a GD resource to a GIF file * * @author Justin Hendrickson <justin.hendrickson@sierra-bravo.com> * @category Bear * @deprecated * @packag...
true
c931c42c042ce7b74fc9ec2af242f8b9a58f9220
PHP
lmccart/pplkpr-server-php
/YKMC/login-exec.php
UTF-8
1,854
2.8125
3
[]
no_license
<?php require_once('functions.php'); //Array to store validation errors $errmsg_arr = array(); //Validation error flag $errflag = false; //Connect to mysql server connect(); //Sanitize the POST values $login = clean($_POST['login']); $password = clean($_POST['password']); //Input Validations ...
true
b73c1efa8deca72bf28740276bd08e5a1472217e
PHP
AdrianHL/mailgun-events
/src/Http/MailgunComplaintItem.php
UTF-8
630
2.71875
3
[ "MIT" ]
permissive
<?php namespace MailgunEvents\Http; use Carbon\Carbon; class MailgunComplaintItem { protected $data; public function __construct($complaintItemProperties, $domain) { $this->data = json_decode(json_encode($complaintItemProperties), true); //Set the Complained At $this->data["com...
true
acd2828a3d1e51be43a6d39cf3d9c8e11d003616
PHP
phungthuan99/thuanphung
/PHP2/B1/test13.php
UTF-8
793
3.5
4
[]
no_license
<?php /** * */ class Chim { function an($gamthucan){ $this->cannang+=$gamthucan; } function divesinh(){ if ($this->cannang>500) { $this->cannang-=50; }else { $this->cannang-=10; } } function biban($giamtuoitho){ if ($this->tuoitho>0) { $this->tuoitho-=$giamtuoitho; } if ($this->...
true
94fb0318494415cfa703ec07f5d8c1f0a903c14a
PHP
psmietana/vip-test
/src/Commands/Handlers/DeleteBookHandler.php
UTF-8
879
2.875
3
[]
no_license
<?php namespace App\Commands\Handlers; use App\Commands\DeleteBookCommand; use App\Exceptions\BookUsedByUsersException; use App\Repository\BookRepository; use InvalidArgumentException; class DeleteBookHandler { private $bookRepository; public function __construct(BookRepository $bookRepository) { ...
true
18c6e97f91ff495764f72f1e995218a7b1c203d0
PHP
infiniteshroom/BugTracker
/libraries_bk/Desmond/HTTP/Response/Response.php
UTF-8
1,124
2.671875
3
[ "MIT" ]
permissive
<?php Application::Import('Desmond::HTTP::Response::IResponse.php'); class DesmondResponse implements IDesmondResponse { private $headers = array(); private $content = ""; public function SetContentType($type) { $this->headers['Content-type'] = $type; } public function SetHeader($header, $value) { $...
true
397db87c2af100771db53a020bcc13fd36fbf42c
PHP
jjpachev/php
/graph.php
UTF-8
1,760
3.1875
3
[]
no_license
<?php require_once 'color.php'; require_once 'gaps.php'; class Graph { var $w; var $h; var $th; var $fgcolor; var $bgcolor; var $nx,$ny; var $x1,$y1; var $x2,$y2; var $margin; var $vgaps; var $hgaps; function Graph($w,$h) { $this->w = $w; $this->h = $h; $this->th = 2; $this->...
true
1fc7abf73351640d68f14f0d61bc77ed8f9e5f83
PHP
kzyi17/spa
/Manage/App/Index/Model/DeliveryModel.class.php
UTF-8
7,859
2.578125
3
[]
no_license
<?php namespace Index\Model; use Think\Model; class DeliveryModel extends CommonModel { //首重重量 private static $firstWeight = 0; //次重重量 private static $secondWeight = 0; /** * 重量等级列表 * @return 单位:克 * @author haichao */ public function getWeightLevel(){ return array('500','1000','120...
true
803ac3b02dbd05b3bfc4baea47dda6ca6c43c263
PHP
kakadu-group/kakadu
/application/tests/question.without.permissions.test.php
UTF-8
3,680
2.671875
3
[ "MIT" ]
permissive
<?php require_once 'testcase.course.php'; class TestQuestionWithoutPermissions extends CourseTestCase { protected $names_create = array('Test xy'); protected $names_delete = array('Test xy'); private $course = NULL; private $question = NULL; public function setUp() { parent::setUp(); ...
true
c0a98eee9af8ec9960435457a0b927b77ebfccd1
PHP
stplat/revizor
/database/seeds/UikLabelsTableSeeder.php
UTF-8
492
2.640625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Models\UikLabel; class UikLabelsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $data = []; for ($i = 0; $i < 50; $i++) { $region = rand(1, 10); ...
true
8a5cb50049e11395b98b187011778935fe52e52f
PHP
Dymantic/infinity121
/app/Calendar/Day.php
UTF-8
2,008
2.890625
3
[]
no_license
<?php namespace App\Calendar; use Illuminate\Support\Collection; class Day { public int $week_day; public Collection $periods; public function __construct(int $week_day, array $periods = []) { $this->week_day = $week_day; $this->periods = collect($periods); } public funct...
true
cebc1da48846fa6a22e77be169fa21fe335207b4
PHP
jphp-group/DBGP-Emulator
/debugger/Serialize/Xml/Node.php
UTF-8
2,337
3.015625
3
[]
no_license
<?php namespace Dbgp\Serialize\Xml; use Dbgp\Serialize\SerializableInterface; /** * Class Root * @package Dbgp\Serialize\Xml */ class Node implements SerializableInterface { protected $name; protected $value; protected $attributes = []; protected $nodes = []; /** * @param $name */ ...
true
df060015d52cd28cb88872030ca200c9ee97ac31
PHP
cybercog/yii2-post-cms-module
/Module.php
UTF-8
1,114
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace bariew\postModule; class Module extends \yii\base\Module { public $params = [ 'menu' => [ 'label' => 'Post', 'items' => [ [ 'label' => 'Admin posts', 'url' => ['/post/item/index'] ], ...
true
5f342bb7c91bf5148bffeaeae3525a523855f91d
PHP
adrian-chitu/PHP
/TunnelPHP/tunelBase.php
UTF-8
115
2.65625
3
[]
no_license
<?php interface TunelBase { public function calculate(); public function getLength(); } ?>
true
e590fa39d476fa26ed2b94e1bc3b71afe884a936
PHP
sagnew/pencilurpromise
/includes/side_fb.php
UTF-8
252
2.546875
3
[]
no_license
<?php $people = mysql_query("SELECT * FROM TransTable"); ?> <div class="row"> <div class="twelve columns"> <?php while($peeps = mysql_fetch_array($people)){ echo "Person: ".$peeps['Pname']." , ID: ".$peeps['FBID']; } ?> </div> </div>
true
782e102f2c9d72605c245d4974a312ca49230529
PHP
mikeg64/pyiome
/tools/php/iome/iosimwriter.php
UTF-8
4,160
2.828125
3
[]
no_license
<?php class iosimwriter { var $iogsimulation,$simname; public function __construct() { $this->simname="mysim"; } public function writesimulation($file, $simulation) { // THIS IS ABSOLUTELY ESSENTIAL - DO NOT FORGET TO SET THIS @date_default_timezone_set("GMT"); $writer = new XMLWriter(); $writer->op...
true
992f751aac071a06bcbbcb0c50369dca1240459c
PHP
prathmeshgodbole/php
/.history/add_20201013111237.php
UTF-8
4,340
2.90625
3
[]
no_license
<?php //GET Method // if(isset($_GET['submit'])){ // echo $_GET['email']; // echo $_GET['title']; // echo $_GET['ingredients']; // } //POST Method // if(isset($_POST['submit'])){ // echo $_POST['email']; // echo $_POST['title']; // echo $_POST['ingredients']; // } //XSS Method // if(isset($_POST['sub...
true
0196942d16129a4af84885e39e872c0040846b9d
PHP
agutri01/sentral_tukang
/application/models/master/Muser.php
UTF-8
967
2.578125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Muser extends CI_Model { public function getAll() { return $this->db->get('users')->result_array(); } public function show($kode) { return $this->db->where('kode_user', $kode)->get('users')->row_array(); } public function update($kode, $nama, $email, $alamat, $pas...
true
6ca1f9e599af90dcdc479ad0053afc7cd849db53
PHP
noprobzcoder09/helixdev
/app/Observers/ObservationObserver.php
UTF-8
785
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Observers; use Auth; use App\Observation; use App\CorrectiveAction; class ObservationObserver { /** * Listen to the User created event. * * @param User $user * @return void */ public function created(Observation $observation) { // create corrective a...
true
234ca6c95989f19ec05bfc91c8800fe70ce39f15
PHP
arturoverbel/figuras_symfony
/src/AppBundle/Entity/Hexagono.php
UTF-8
1,184
3.0625
3
[]
no_license
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Hexagono * * @ORM\Entity(repositoryClass="AppBundle\Repository\HexagonoRepository") */ class Hexagono extends Fig { /** * @var float * * @ORM\Column(name="radio", type="float") */ private $radio; public...
true
632026251cb2ec5026f568f7e6120fda68445b49
PHP
enaeseth/smooth
/lib/smooth/errors.php
UTF-8
2,593
2.875
3
[ "MIT" ]
permissive
<?php // Smooth: The PHP framework that goes down easy. // Copyright © 2008 Carleton College. class SmoothException extends RuntimeException { } class SmoothSetupException extends SmoothException { } class SmoothExecutionException extends SmoothException { } class SmoothHTTPError extends SmoothExecu...
true
d32af9f023f03967c4da5ccc2ab5f90b68cc8372
PHP
nicklos17/appserver
/source/apps/mdu/models/FencesModel.php
UTF-8
4,231
2.75
3
[]
no_license
<?php namespace Appserver\Mdu\Models; class FencesModel extends ModelBase { /** * 添加围栏 * @param int $babyId 宝贝id * @param str $coordinates 围栏中心点的经纬度 * @param str $name 围栏名称 * @param int $radius 围栏半径 * @param str $addtime 添加时间 * @return int */ public function add($babyI...
true
32337b988ff733790d5d5255e44b6429d5dfc32e
PHP
gurieveugen/swissphone.dev
/plugin-html-exerpts.php
UTF-8
1,524
2.765625
3
[]
no_license
<?php class HV_HTML_Excerpts { private function __construct() {} static $types = array(); static function init( $ptypes = array() ) { self::$types= $ptypes; add_action( 'admin_init', array(__CLASS__, 'init_metaboxes')); add_action( 'save_post', array( __CLASS__, 'save_excerpt') ); add_filt...
true
e45b8cf7c88c675e73cc6c56cbc244be23ad4234
PHP
JacMaestro/docusign-php
/src/Modele/Envelope.php
UTF-8
2,056
2.9375
3
[]
no_license
<?php namespace Example\Modele; use Example\Modele\Modele; use \PDO; class Envelope extends Modele { public function save($values) { $sql = 'insert into Envelopes ( date, account_id, envelope_id, file_link, file_name, signer_email, signer_name, ...
true
30ac0e0eb8f39b54289237c300fcd605383d6d26
PHP
goodson-softwaresolutions-gmbh/magento2-module-ms3commerce
/Model/Price/TierPrice.php
UTF-8
2,975
2.609375
3
[]
no_license
<?php /** * TierPrice * * @copyright Copyright (c) 2017 Staempfli AG * @author juan.alonso@staempfli.com */ namespace Staempfli\CommerceImport\Model\Price; use Magento\Catalog\Helper\Data as CatalogHelper; use Magento\Framework\App\Config\ScopeConfigInterface; use Magento\Store\Api\Data\WebsiteInterface; use ...
true
bec7d9b18c31e0be2852b20722238d95a59163f7
PHP
aftabkazi/contactForm
/strings.php
UTF-8
426
3.5625
4
[]
no_license
<?php $str="This"; echo $str; echo "<br>"; $len=strlen($str); echo "The length of string is" . $len ."<br> Than-you for your support<br>"; echo "The numer of word count is : " . str_word_count($str) ; echo "<br>The reverse string is : " . strrev($str) ; echo "<br>The search for is in the string is...
true
c14a3e865613c61a7b52b314c6417f1b7e85b5dc
PHP
wesleysilva059/sigmaf
/app/Entities/FilterChange.php
UTF-8
1,757
2.53125
3
[]
no_license
<?php namespace App\Entities; use Illuminate\Database\Eloquent\Model; use Prettus\Repository\Contracts\Transformable; use Prettus\Repository\Traits\TransformableTrait; /** * Class FilterChange. * * @package namespace App\Entities; */ class FilterChange extends Model implements Transformable { use Transformab...
true
2ba2287d42f75cb8ffd77889adff18fc014e1800
PHP
nusanetanc/5f202e7ab75f00af194c61cc07ae6b0c
/con/function.php
UTF-8
1,468
2.515625
3
[]
no_license
<?php $kode_perusahaan ="123456"; function bulan($bln) { switch ($bln) { case '12': $bln="Desember"; break; case '11': $bln="November"; break; case '10': $bln="Oktober"; break; case '09': $bln="September"; break; case '08': $bln="Agustus"; brea...
true
32761498eb160ade128c2f21602c2563e391747b
PHP
izvdamnono/ActividadesIZV-Cloud
/trabajo/doctrine/src/Grupo.php
UTF-8
1,953
2.953125
3
[]
no_license
<?php use Doctrine\Common\Collections\ArrayCollection; /** * @Entity * @Table(name="grupo") */ class Grupo { /** * @Id * @Column(type="integer") @GeneratedValue */ protected $id; /** * @Column(type="string", length=200, nullable=false) */ protected $nombre; ...
true
2f2da9a96513ea4e6a50815037b48e73084fc805
PHP
saurabhshukla01/xammp-project-php-localhost
/projectPHP/classdemo.php
UTF-8
1,683
3.28125
3
[]
no_license
<?php class Fruit { public $name; private $color; function set_name($name) { $this->name = $name; } function get_name() { return $this->name; } function set_color($color) { $this->color = $color; } function get_color() { return $this->color; } } $var = new Fruit(); // echo $var->name; $var->se...
true
32c53ca6a5f98c961e22fed18ea179c9ed3097bb
PHP
vuryss/aoc2016
/day-19.1.php
UTF-8
115
3.109375
3
[]
no_license
<?php $input = 0; // Puzzle input echo 'Position: ' . (2 * ($input - (2 ** (int) log($input, 2))) + 1) . PHP_EOL;
true
570e11b01ae22d3bb0a20db0a1a40b65228394d3
PHP
hlaineka/PHPpiscine
/d06/ex00/Color.class.php
UTF-8
2,034
3.5625
4
[]
no_license
<?PHP class Color{ public $red; public $green; public $blue; public static $verbose = FALSE; public static function doc(){ $myfile = fopen("Color.doc.txt", "r") or die("Unable to open file!"); $docstring = fread($myfile,filesize("Color.doc.txt")); fclose($myfile); return $docstring; } public function ...
true
150a58005350fb201605e3c0075887557abdd2e1
PHP
bloodycrow828/car_catalog
/core/services/manage/catalog/CarManageService.php
UTF-8
3,039
2.78125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace core\services\manage\catalog; use core\entities\catalog\car\Car; use core\forms\manage\catalog\Car\CarCreateForm; use core\forms\manage\catalog\car\CarEditForm; use core\forms\manage\catalog\Car\PhotoForm; use core\forms\manage\catalog\Car\PriceForm; use core\repositories\catalog\CarRepository; use co...
true
8058f4b8bc4bd480ebd4299efa77495e1e80ef41
PHP
GraphQLAPI/graphql-api-for-wp-dist
/vendor/getpop/component-model/src/Engine/EngineIterationFieldSet.php
UTF-8
1,383
2.5625
3
[]
no_license
<?php declare (strict_types=1); namespace PoP\ComponentModel\Engine; use PoP\GraphQLParser\Spec\Parser\Ast\FieldInterface; use SplObjectStorage; class EngineIterationFieldSet { /** * @var FieldInterface[] */ public $fields = []; /** * @var SplObjectStorage<FieldInterface, FieldInterface[]> ...
true
f1467d042a0dd5d0d2449f1ee10f8b02b449d2fd
PHP
MarLMazo/soundly
/adminViews/adminFaqadd.php
UTF-8
1,899
2.71875
3
[]
no_license
<?php ob_start(); require_once '../Models/Database.php'; require_once '../Models/Faq.php'; require_once 'adminView/header.php'; //Get Database connection $db=Database::getDb(); $fq = new Faq(); //If user submit the form if(isset($_POST['addSong'])){ $question = $_POST['faqq...
true
4306cddef9290eeb3084b8dad3d154d77b8d0f82
PHP
sly92/Mini-FTPServer
/server.php
UTF-8
3,195
2.953125
3
[]
no_license
<?php // set some variables $host = "127.0.0.1"; $port = 25010; $nbMaxClient = 1; // don't timeout! set_time_limit(0); ob_implicit_flush(); // create socket $socket = socket_create(AF_INET, SOCK_STREAM, 0) or die("Could not create socket\n"); // bind socket to port $result = socket_bind($socket, $host, $port) or die...
true
e427809ae916b3b0d6bee31359cd3c21698617e7
PHP
devsavage/slim-3-authentication
/app/App/Database/User.php
UTF-8
2,778
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Database; use App\Traits\HasPermissionsTrait; use Illuminate\Database\Eloquent\Model; class User extends Model { use HasPermissionsTrait; protected $table = 'users'; protected $fillable = ['username', 'email', 'password', 'active', 'active_hash', 'remember_identifier', 'remember_tok...
true
8f7801d64071916ee7d716ad5a8031aa8b444f98
PHP
isamukhtarov/symfony_project
/src/Ria/Bundle/ConfigBundle/Command/ConfigUpdateCommand.php
UTF-8
457
2.53125
3
[]
no_license
<?php declare(strict_types=1); namespace Ria\Bundle\ConfigBundle\Command; use JetBrains\PhpStorm\Pure; use Ria\Bundle\ConfigBundle\Entity\Config; class ConfigUpdateCommand { public int $id; public string|null $value; public string|null $label; #[Pure]public function __construct(Config $config) ...
true
88ad405c3b1898e49e081c004029c258b6a3b240
PHP
dhruv-nayar/bv-product-battle
/get_results.php
UTF-8
2,343
2.53125
3
[]
no_license
<?php $q = strval($_GET['q']); $limit = 10; $dbconn = pg_connect("host = 127.0.0.1 port = 5439 user = dsuser dbname = brandbattle password = Jjnlsf9hXd"); //echo "SELECT * FROM bvproduct WHERE clientname = '".$q."'"; $query = "SELECT * FROM productranking WHERE "; $searchTerms = explode(" ", $q); $counter = 0; forea...
true
adec56eafae6a94a6279e180688b852a71d6dfe7
PHP
THROYAN/DatabaseManager
/src/Request/ConsoleRequest.php
UTF-8
2,485
3.078125
3
[]
no_license
<?php namespace Request; /** * Console request */ class ConsoleRequest { public function parseParams($parameters, $allowedParams = array(), $onlyAllowed = true) { // parse params $params = array( ); if ($parameters) { foreach ($parameters as $k => $v) { ...
true
0fe27406a5ade64df01df85c1dba367128070e17
PHP
ikiranis/eordaia.info
/app/View/Components/Posts/Related.php
UTF-8
2,448
2.5625
3
[]
no_license
<?php namespace App\View\Components\Posts; use App\Post; use Debugbar; use Illuminate\View\Component; use phpDocumentor\Reflection\Types\Collection; class Related extends Component { protected Post $post; /** * Create a new component instance. * * @param Post $post */ public function...
true
c52deb1828dba10816de4a15999f8a4bedd3ad81
PHP
PeerInnoveer/camagru
/includes/update_pwd.inc.php
UTF-8
3,256
2.703125
3
[]
no_license
<?php // // Update Passwords // if (isset($_POST['update-submit-pwd'])) { print_r($_POST); require 'dbh.inc.php'; $username = $_POST['uid']; $new_pwd = $_POST['new_pwd']; $re_new = $_POST['re_new_pwd']; $curr_pwd = $_POST['curr_pwd']; ...
true
eefce62ecce7d178773059eb0af7d51b63423f54
PHP
roglol/scraper
/app/Console/Commands/TabulaScraper.php
UTF-8
4,289
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use Goutte\Client; use Symfony\Component\HttpClient\HttpClient; use Illuminate\Console\Command; class TabulaScraper extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'command:name'; /*...
true
d4141e648757e08ad3a798dab77bb3499b548460
PHP
Z-Clark/algorithm007-class02
/Week_02/G20200343040252/LeetCode_242_0252.php
UTF-8
583
3.34375
3
[]
no_license
<?php class Solution { /** * @param String $s * @param String $t * @return Boolean */ function isAnagram($s, $t) { $length = strlen($s); if ($length != strlen($t)) { return false; } $hash = []; for ($i = 0; $i < $length; $i++) { ...
true
e4ad9565387251d0bf08ab70c7639c88fb6a55e5
PHP
mrpiatek/gold-prices
/app/Core/NbpApi/NbpApiDateRangeChunker.php
UTF-8
944
3.046875
3
[ "MIT" ]
permissive
<?php namespace GoldPrices\Core\NbpApi; /** * Allows to chunk big date ranges into smaller date ranges, each with max one year time span * @package GoldPrices\Core\NbpApi */ class NbpApiDateRangeChunker { /** * @param \DateTime $startDate * @param \DateTime $endDate * @return array */ ...
true
af95961dfa9349b83b83741b71e45b5f951cd0d5
PHP
vagfsantos/portfolio-design
/funcoes/funcoes.php
UTF-8
610
2.578125
3
[]
no_license
<?php // Incluir fotos no slide das paginas de projeto function slideProjeto($categoria, $pasta, $quantidadeFotos){ $qtd = $quantidadeFotos; for($i = 1; $i <= $qtd; $i++): ?> <li><img src="imagens/fotos/<?=$categoria?>/<?=$pasta?>/<?=$i?>.jpg"/></li> <?php endfor; } ?> <?php // Incluir arquivo javaS...
true
b1ca4da9641d6b767b9b7c4fbbbeb1db5aeebe90
PHP
oldcompilerharris/project
/AJAX/getUsername.php
UTF-8
1,147
3.078125
3
[]
no_license
<?php try{ $pdo = new PDO("mysql:host=localhost;dbname=erail","root",""); $pdo->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION); // get the q parameter from URL $q = $_REQUEST["q"]; $userName = ""; $query = "SELECT username FROM users"; $stmt = $pdo-...
true
07d2d7fbeecb6dce9df5eb41ddd40898540fbe0c
PHP
b2dontcry/source-core-nam
/Modules/UserAndPermission/Models/GroupUser.php
UTF-8
658
2.625
3
[]
no_license
<?php namespace Modules\UserAndPermission\Models; use Illuminate\Database\Eloquent\Model; class GroupUser extends Model { public $timestamps = false; /** * Xóa nhóm quyền khỏi tài khoản người dùng | Xóa tài khoản người dùng khỏi nhóm quyền. * * @param int $id * @param string $type (u...
true
6308c70b878a4df7aa8d85a32ae5e3678877deff
PHP
lgoran/stara2
/kopija/Desktop/StaraVirtualka/public_html/baze2.php
UTF-8
1,262
3.046875
3
[]
no_license
<?php $user='student'; $pw='pass.mysql'; $dbname='lalic'; $db=new PDO('mysql:host=rp2.studenti.math.hr;dbname='.$dbname.';charset=utf8',$user,$pw); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); if(isset($_POST['broj'])) { try{ $st=$db->prepare('SE...
true
5ca653dfe51cffaa14d33711a712f99e6efe1998
PHP
jimeh/zynapse
/vendor/zynapse/shell_scripts/znap_generator.php
UTF-8
5,057
2.53125
3
[ "MIT" ]
permissive
<?php /* Zynapse Generator - generate controllers, models, and more http://www.zynapse.org/ Copyright (c) 2009 Jim Myhrberg. ---------- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in t...
true
feaf29322c1727b3c928faf188c6f4ed82dc8888
PHP
qyudzhaolin/dianshang
/csdktwo/csdkservice_branches/code_for_linux/Library/Memcache.class.php
UTF-8
2,656
3.109375
3
[]
no_license
<?php /** * | memcache */ namespace Library; class Memcache { private $memcache; private $connect; /** * 构造函数 * servers = array('host' => '', 'port' => 11211, 'weight' => 50); */ public function __construct($servers = null) { if (empty ( $this->memcache ) && C ( 'MEMCACHE_ON' ...
true
f9dd474d0a5bf981cbdf7ee848c4bdd852e169d6
PHP
dainst/wordpress-components
/plugins/wpml-string-translation/classes/translation-memory/class-wpml-st-translation-memory-settings-ui.php
UTF-8
1,187
2.609375
3
[ "Apache-2.0", "GPL-3.0-only" ]
permissive
<?php class WPML_ST_Translation_Memory_Settings_UI implements IWPML_Action { /** @var SitePress $sitepress */ private $sitepress; public function __construct( SitePress $sitepress ) { $this->sitepress = $sitepress; } public function add_hooks() { add_action( 'wpml_how_to_translate_posts_and_pages', array( ...
true
c388ded39634693446eb1ca9d48946cccc5b2017
PHP
Morgane1509/Exercice-PHP
/rectangle/rectangle.php
UTF-8
6,872
2.796875
3
[]
no_license
<!-- 1) Saisir la longueur et la largeur d'un rectangle à partir d'un formulaire Longueur et Largeur doivent être numériques (entier, réel) Longueur positif Largeur positif Longueur > Largeur 2) Traitements -> U.C: _Calculer le demi-perimetre Dp _Calculer le per...
true
7aa842c8fa35914eb3b8ea0080e1796f22ebca6d
PHP
JessicaYeoh/my_books
/controller/update_processing.php
UTF-8
2,059
2.59375
3
[]
no_license
<?php session_start(); // header('Content-Type: application/json'); include '../model/db.php'; include '../model/db_functions.php'; ?> <?php if ($_SERVER["REQUEST_METHOD"] == "POST") //if the form values has been posted { $authorName = !empty($_POST['author_name'])? test_user_input($_POST['author_name...
true
7ed46b283f26f6e0f8ba01fec96261b4b7ead986
PHP
iamntz/Get-Page-ID-s-for-WordPress
/get_page_ids.php
UTF-8
2,918
2.625
3
[]
no_license
<?php /* Plugin Name: Get page IDs Plugin URI: http://iamntz.com Description: Because there are some dumb-asses out there who believe that's ok to let the user guess page the ID's, you will find a new page under tools menu that will help you with this. Enjoy! Author: Ionut Staicu Version: 1.0 Author URI: http://iamntz....
true
69a23d230f5e8010171cb2ac630d8252fa46af73
PHP
lauranaomiseto/webloja
/modelo/formaPagamentoModelo.php
UTF-8
1,539
2.6875
3
[]
no_license
<?php function addFormaPagamento($descricao){ $comando= "insert into formaPagamento (descricao) " . "values ('$descricao');"; $cnx= conn(); $resul= mysqli_query($cnx, $comando); if(!$resul){ die(mysqli_error($cnx)); } return "Forma de pagamento cadastrado com suces...
true
d6c9d0a855a0569a5d60245f05b582767fcacb69
PHP
quillcode/book_recommender
/Library/Admin/updatebook.php
UTF-8
3,917
2.921875
3
[]
no_license
<?php require_once('includes/sessioncheck.php'); require_once('includes/database.php'); require_once('includes/book.php'); $message = ""; if(isset($_GET['isbn'])) { // if isbn is send in query string then get it and create and obj $book = Book::find_by_isbn($_GET['isbn']); if(!$book) { // if it se...
true
14af9c6652322bca567d9675f0850c13d4510d37
PHP
vien303cat/web02_3
/newsdata.php
UTF-8
710
2.5625
3
[]
no_license
<?php $sql = "select * from news where news_seq = '".$_GET["seq"]."'"; $c1 = mysqli_query($link,$sql); $c2 = mysqli_fetch_assoc($c1); $row = mysqli_num_rows($c1); ?> <fieldset> <legend>文章標題:<?=$c2["news_txt"]?> <?php if(!empty($_SESSION["member"])){ $sqll = "select * from good where good_newseq = '".$_GET["se...
true
1e1b9ad7ece0e5ecf6715a5dc26f32169461e8d8
PHP
qxh5696/TeamHarambe
/languages.php
UTF-8
5,482
3.046875
3
[]
no_license
<?php include "assets/includes/page_start.php"; $page_title = "Languages/Language Support"; $active_page = "Languages"; include PATH_INC . "header.php"; ?> <div class="container"> <h1 class="lead">Languages and Language Support</h1> <p>Here are how regular expressions are handled in certain high-level l...
true
a444c3fbd5f2d07099a224d9f4e36293a4761134
PHP
phacility/phabricator
/src/applications/project/order/PhabricatorProjectColumnOwnerOrder.php
UTF-8
5,270
2.546875
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php final class PhabricatorProjectColumnOwnerOrder extends PhabricatorProjectColumnOrder { const ORDERKEY = 'owner'; public function getDisplayName() { return pht('Group by Owner'); } protected function newMenuIconIcon() { return 'fa-users'; } public function getHasHeaders() { return tr...
true
c0dfdd028b4ede8aa8e26bd48675ef4c19127f3d
PHP
IdenTiclla/php_curso_completo
/useful-tools.php
UTF-8
86
2.71875
3
[]
no_license
<?php $var = "hola"; function sayHi(){ echo("Hello world"); } ?>
true
52e690bbf26d3a567abb976a09fb7d2da1d6edca
PHP
timtoon/test_project
/src/Entity/Product.php
UTF-8
3,095
2.609375
3
[]
no_license
<?php namespace App\Entity; use Gedmo\Mapping\Annotation as Gedmo; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use App\DBAL\EnumStatusType; /** * @ORM\Entity(repositoryClass="App\Repository\ProductRepository") * @Gedmo\SoftDeleteable(fieldName="deleted_at", timeAware=fal...
true
f12dcaa75450b5343a585998db1a83e5b823fa9f
PHP
raymonst/IOLab-project-03
/search.php
UTF-8
1,718
3.15625
3
[]
no_license
<?PHP /* This function takes a twitter call and query and outputs an array within an array. The internal array includes tweet "id", tweet "text" and tweet date "created_at" */ function searchResults( $search = null, $date) { if(empty($date)) { echo "<br> date was not passed <br>"; $date = strftime("%F");...
true
26a91f0e3bb98d7790ede66b82d859d45c4d4aeb
PHP
gramglan/tiebreak_themes
/lib/scripts.php
UTF-8
1,671
3.125
3
[]
no_license
<?php //はてブするときに使用するエンコードしたタイトル function get_encoded_title($title){ return urlencode(mb_convert_encoding($title, "UTF-8")); } //Pagenation function pagination($pages = '', $range = 2) { $showitems = ($range * 2)+1;//表示するページ数(5ページを表示) global $paged;//現在のページ値 if(empty($paged)) $paged = 1;//デフォルトのページ ...
true
39c5491f2db91ad50196cc888c0150395184683f
PHP
baublet/mage2-components
/Model/Group/FormElement.php
UTF-8
1,005
2.625
3
[]
no_license
<?php namespace Rsc\Components\Group; use Rsc\Components\Base; class FormElement extends Base { protected $file = 'Group/FormElement.phtml'; protected $requiredVariables = ['labelText', 'element']; public function render($variables = []) { if(count($variables) > 0) { $this...
true
4dc6b0f441f55157baca58a12d6af761bafec972
PHP
vmbolea/GeoAgenda-Cultural
/www/tipo.php
UTF-8
860
3.15625
3
[]
no_license
<!-- Archivo de consulta sobre las tablas categoria_evento y tipo_evento de la base de datos (BD) ---> <?php include "conexion.php"; // se incluye el archivo de conexion $output=''; // se declara variable vacía $sql= "SELECT * FROM tipo_evento WHERE id_categoria='".$_POST["idcategoria"]."'"; // creación de cons...
true
ba9b45f75da547d1808e0dbb3db00259e4c5ee0c
PHP
PropelVentures/GenericPlatform
/system/load_handler.php
UTF-8
8,088
2.59375
3
[]
no_license
<?php class handler{ private $con; public function __construct($con){ $this->con = $con; } public function checkLogin(){ if(!isset($_GET['username']) || !isset($_GET['password'])){ throw new Exception("Username/Email and Password is required"); } if(empty($_GET['username'])){ throw new Exception("Ple...
true
b3ffc17aa43cb1880ede6841334fd011048cb7db
PHP
hadisaputra26/php-dasar
/p7-get-post/latihan2-$_GET.php
UTF-8
889
3
3
[]
no_license
<?php // SUPERGLOBAL // Variable global milik php // merupakan array associative // contohnya // $_GET, $_POST, $_REQUEST, $_SESSION, $_COOKIE, $_SERVER, $_ENV //============================================ $mahasiswa = [ [ "nama" => "Hadi Saputra", "nrp" => "123456", "email" => "hadisaputra26@gmail.com", ...
true
ff138a17d8ac09309301a9357b5827dc1c1bf81e
PHP
betopinheiro1005/curso-php-85bits
/aula-04/aula-04g.php
UTF-8
486
3.359375
3
[ "MIT" ]
permissive
<?php $pessoas = ["Ricardo" => 53, "Lucas" => 31, "Paulo" => 43, "Mateus" => 25, "Alexandre" => 36]; asort($pessoas); echo "<h3>Ordem Crescente por valor</h3>"; var_dump($pessoas); arsort($pessoas); echo "<br>"; echo "<h3>Ordem Decrescente por valor</h3>"; var_dump($pessoas); echo "<br>"; ksort($pessoas); ec...
true
2c03664d6247eec66edf93e172af820bc09cc0a0
PHP
GordanaP/schoolproject
/app/Services/Helpers/functions.php
UTF-8
2,059
3.03125
3
[]
no_license
<?php use Carbon\Carbon; function getFirst($name) { $names = explode(' ', $name); count($names) > 1 ? list($first_name, $last_name) = $names : $first_name = $name; return $first_name; } function username($f_name, $l_name) { $n = random_int(1000, 9999); $f_name_init = strtolower(...
true
30f2419063b0dda6c74e4fcc06a13a659f299ed3
PHP
shanavasbabu/HTML-CSS-JS-Validation-and-PHP
/confirmation1.php
UTF-8
6,767
2.9375
3
[]
no_license
<?php $insert = false; if(isset($_POST['name'])){ define('DB_NAME','shanavas'); define('DB_USER','root'); define('DB_PASSWORD',''); define('DB_HOST','localhost'); $con=mysqli_connect(DB_HOST,DB_USER,DB_PASSWORD,DB_NAME); if(!$con) { die('Could not connect:'.mysqli_conne...
true
feb81ea3e463c253ed15b1d6903cfa068f8413e4
PHP
asyncphp/paper
/tests/PrinceDriverTest.php
UTF-8
1,308
2.546875
3
[ "MIT" ]
permissive
<?php namespace AsyncPHP\Paper\Tests; use AsyncPHP\Paper\Runner\AmpRunner; use AsyncPHP\Paper\Driver\PrinceDriver; use AsyncPHP\Paper\Driver\SyncDriver; use PHPUnit\Framework\TestCase; class PrinceDriverTest extends TestCase { public function testPrinceDriver() { $which = `which prince`; if ...
true
e461059f59726a5af8bf3422dc8af8cbf2270f9e
PHP
zakiabouabidi/C-wamp64-www-cal-
/index.php
UTF-8
1,422
2.984375
3
[]
no_license
<!DOCTYPE html> <!DOCTYPE html> <html> <head > <title>calculatrice</title> </head> <body> <table border="6" align="center" bgcolor=#F6FEFE cellpadding="50" cellspacing="20"> <tr> <td> <h1 align="center"> calculatrice </h1><br> <form> <br> <style> background-color: #93B874; </style> <input type=...
true
6f41b73e29dca6956e33910b7e328bd9f1a6f9a8
PHP
itlogiko/laravel
/src/components/SubmitButtonComponent.php
UTF-8
757
2.8125
3
[ "MIT" ]
permissive
<?php namespace itLogiko\Laravel\Components; use function view; class SubmitButtonComponent extends Component { /** * The submit button action. * * @var array */ public $action; /** * The submit button method. * * @var array */ public $method; /** * Create the component instanc...
true
622788e21508d7ed219d6c7aa90b58b018cd9cc9
PHP
ukanaadam/latihan_CRUD
/form-edit.php
UTF-8
1,842
2.515625
3
[]
no_license
<?php include 'koneksi.php'; $data_edit = mysqli_query($con, "SELECT * FROM siswa WHERE nis = '".$_GET['nis']."'"); $result = mysqli_fetch_array($data_edit); ?> <!DOCTYPE html> <html> <head> <title>halaman edit data SISWA</title> </head> <body> <H2> EDIT SISWA </H2> <a href="index.php ?>" style="padding:0.4% 0.8...
true