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
a8edfe41e2cd655e4542851aeb1f34f5946597d5
PHP
alexlytvyn/slotegrator-test
/controllers/TwitterController.php
UTF-8
6,675
2.5625
3
[]
no_license
<?php namespace app\controllers; use Yii; use yii\web\Controller; use app\models\Users; use yii\authclient\clients\Twitter; use yii\authclient\OAuthToken; class TwitterController extends Controller { public function connection() { // Створюємо OAuthToken $token = new OAuthToken([ ...
true
341655c87e25621bb43cabc33be6fcc46e9e8620
PHP
usslss/CPTP1
/admin/php/store/store_img_edit_finish.php
UTF-8
3,890
2.609375
3
[]
no_license
<?php include("../connect.php"); $store_id=$_POST["store_id"]; //pc端图片上传 if($_FILES["file_pc"]["error"]) { // echo $_FILES["file_pc"]["error"]; } else { //没有出错 //加限制条件 到底改不改名字 到底改不改名字 到底改不改名字 到底改不改名字 到底改不改名字 到底改不改名字 到底改不改名字 到底改不改名字 到底改不改名字 到底改不改名字 //判断上传文件类型为png或jpg且大小不超过10240...
true
cdc02ec66d28e58ec20c33fde69f750548ec47e1
PHP
PlasmaPHP/driver-mysql
/src/ProtocolOnNextCaller.php
UTF-8
1,081
2.671875
3
[ "Apache-2.0" ]
permissive
<?php /** * Plasma Driver MySQL component * Copyright 2018-2019 PlasmaPHP, All Rights Reserved * * Website: https://github.com/PlasmaPHP * License: https://github.com/PlasmaPHP/driver-mysql/blob/master/LICENSE */ namespace Plasma\Drivers\MySQL; use Plasma\BinaryBuffer; /** * Protocol On Next object. * @inter...
true
24b70fabe05473f73160a58e1a958ac82e454fb7
PHP
ngothanhnhat/fordsale
/addons/default/creatihub/car-module/src/Type/TypeRepository.php
UTF-8
528
2.5625
3
[ "MIT" ]
permissive
<?php namespace Creatihub\CarModule\Type; use Creatihub\CarModule\Type\Contract\TypeRepositoryInterface; use Anomaly\Streams\Platform\Entry\EntryRepository; class TypeRepository extends EntryRepository implements TypeRepositoryInterface { /** * The entry model. * * @var TypeModel */ prote...
true
59c360bc7a67bb9280ad60c8b3799352147c79c1
PHP
talesnereubogoni/ppconnect
/ppconnectpolo/app/model/DisciplinasDoCurso.php
UTF-8
2,021
2.953125
3
[]
no_license
<?php /** * DisciplinasDoCurso Active Record * @author <your-name-here> */ class DisciplinasDoCurso extends TRecord { const TABLENAME = 'disciplinas_do_curso'; const PRIMARYKEY= 'id'; const IDPOLICY = 'serial'; // {max, serial} private $disciplinas; private $cursos; /** * Co...
true
e3361700b36346225fc86ebf54c894d87232db91
PHP
peifei/tuse
/application/modules/admin/models/Class/ImgCatDetail.php
UTF-8
2,063
2.90625
3
[]
no_license
<?php class Admin_Model_Class_ImgCatDetail { private $dbImgCatDetail; public function __construct(){ $this->dbImgCatDetail=new Admin_Model_DbTable_ImgCatDetail(); } /** * 添加新类别明细 * @param Array $data */ public function addNewCatDetail(Array $data){ try{ $th...
true
6d5cb301753a29f860dc5063a55cecb44779836d
PHP
HsKaChartMap/chartmap
/php/getJSON.php
UTF-8
3,631
3.0625
3
[]
no_license
<?php // toggle debug mode $debug = false; header('Content-type: application/json'); if (isset($_GET['keys'])) { $keystring = $_GET['keys']; $keys = explode(",", $keystring); // Set your CSV feeds to access gapminder data on GoogleDocs $feeds = array(); for ($i=0;$i<=count($keys)-1;$i++) { ...
true
54b1fcf56411ae3b9a780ff73d1ee5e5d240d3fc
PHP
sidis405/ibi
/app/Ibi/Models/Candidature.php
UTF-8
958
2.5625
3
[ "MIT" ]
permissive
<?php namespace Ibi\Models; use Illuminate\Database\Eloquent\Model; class Candidature extends Model { protected $table = 'candidature'; protected $guarded = ['id', 'created_at', 'updated_at']; public static function make($posizione_id, $nome, $cognome, $email, $messaggio){ $candidatura = new s...
true
576b09174b3ac610e43cc9e545abaac92eb11138
PHP
ibnuhabibie/scriptlog
/public/themes/bootstrapious/blog.php
UTF-8
1,785
3.09375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<p class="text-big"> <?php $path1 = find_request(0); // 1st path parameter requested $path2 = find_request(1); $path3 = find_request(2); $dispatcher = new Dispatcher(); $findParam = $dispatcher -> findRequestParam(); ...
true
bc39598b2cecc0b502bf2a5479ed403125a05aef
PHP
delatbabel/xi-sms
/library/Xi/Sms/Gateway/ClickatellGateway.php
UTF-8
2,311
2.921875
3
[]
no_license
<?php /** * This file is part of the Xi SMS package. * * For copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Xi\Sms\Gateway; use Xi\Sms\SmsMessage; /** * Clickatell SMS Gateway * * This interface implements GatewayInterface and provi...
true
1567226e4d2d664da7ced03cfea893d3091028a3
PHP
Al4r1c/AlaroxFramework
/src/AlaroxFramework/utils/unparser/AbstractUnparser.php
UTF-8
199
2.734375
3
[]
no_license
<?php namespace AlaroxFramework\utils\unparser; abstract class AbstractUnparser { /** * @param string $donnees * @return array */ abstract public function toArray($donnees); }
true
ab04648a8a49b502fa66427184e18555d818e15a
PHP
fil-blue/avcms
/src/AVCMS/Bundles/AVScripts/UpdateChecker/UpdateChecker.php
UTF-8
2,722
2.6875
3
[ "MIT" ]
permissive
<?php /** * User: Andy * Date: 31/01/15 * Time: 13:01 */ namespace AVCMS\Bundles\AVScripts\UpdateChecker; use Curl\Curl; class UpdateChecker { private $appConfig; private $updateInfo = null; private $statusMessage = null; private $rootDir; private $server; public function __construct...
true
0a7efb896936ef2aae54cb1ee09836d4fbb5937a
PHP
Jony249261/Laravel_ajax_crud
/app/Http/Controllers/CityController.php
UTF-8
3,912
2.625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\City; class CityController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $cities = City::select('cities.id','cities.cit...
true
c0e016c9864db83aaf36f8670750860cae4999cb
PHP
daiki-koshikumo/Paiza
/D172.php
UTF-8
94
2.78125
3
[]
no_license
<?php $inputLine = fgets(STDIN); $dayBefore = $inputLine - 1; echo $dayBefore; ?>
true
7d0dd5b43485ebf614fdedb4008c78ee1be1416a
PHP
phalcon229/phalcon
/app/logics/BetsConfigLogic.php
UTF-8
2,526
2.6875
3
[]
no_license
<?php use Phalcon\Security; class BetsConfigLogic extends LogicBase { public function __construct() { $this->model = new BetsConfigModel(); } /** * 获取所有彩种信息 * @return type */ public function getLotteryType() { return $this->model->getLotteryType(); } /**...
true
348a05ce7f529c5430069feb92db740760572ea0
PHP
MikeMcPar/PetBook
/petadd.php
UTF-8
2,967
2.6875
3
[]
no_license
<?php // sqltest.php require_once 'login.php'; require_once 'sessiontest.php'; if (!$_SESSION["user_data"]) { header("Location: index.php"); } $user=$_SESSION["user_data"]; $conn = new mysqli($hn, $un, $pw, $db); if ($conn->connect_error) die($conn->connect_err...
true
b0136ad7c035c4240a2dd17efbde8583fa9af148
PHP
vira-romanko/Romanko_Vira_Portfolio
/PHP/data/contact.php
UTF-8
967
2.546875
3
[]
no_license
<?php // if (!empty($_POST)) { // echo 'oops...'; // exit; // } $name = ''; $email = ''; $subject = ''; $message = ''; $recipient = 'vira.romanko99@gmail.com'; //Some valicatons if(isset($_POST['name'])){ $name = filter_var($_POST['name'], FILTER_SANITIZE_STRING); } if(isset($_POST['email'])){ $...
true
a6de780ef6f22e1385b4c810342b5bccff3d9a04
PHP
mikosama326/rent-a-friend
/reg4real.php
UTF-8
2,816
2.640625
3
[]
no_license
<html> <!--TODO: make it print something when the content is inserted--> <head> <script type="text/javascript" src="verification.js"></script> <?php include('config.php'); $msg = ""; if(isset($_POST["userid"])) { $userid = $_POST['userid']; $conn=mysqli_connect($server,$username,$password,$dbname); ...
true
4647ab6e4d17099fdf19550c38774e42520ff456
PHP
lobosor/Booking
/controller/c_step3.php
UTF-8
644
2.53125
3
[]
no_license
<?php //Update for($i=0; $i<$myBooking->getNumberOfPassengers(); $i++) { if(isset($_POST['name'.$i]) && $_POST['name'.$i]!="") { $myBooking->getPassenger($i)->setName($_POST['name'.$i]); } else if($_POST['name'.$i] == "") { $error['name'] = 1; } if(isset($_POST['age'.$i]) && $_...
true
95f6ff5c4371298ec823160a62b7a27645cd713d
PHP
junaid-usman-dev/web-tutor-app
/project/app/Model/Question.php
UTF-8
467
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class Question extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'test_id', 'id', 'question', 'option_1', 'option_2','option_3','option_4','answer', ]; ...
true
6ff1049d99507739fe8ec2c43861315843e1c798
PHP
ghousseyn/phiber
/library/oosql/mysql.php
UTF-8
6,311
2.59375
3
[ "MIT" ]
permissive
<?php namespace Phiber\oosql; require 'oogen.php'; class mysql extends oogen { protected $queries = array( 'tables' => 'SHOW TABLES', 'columns' => 'SHOW COLUMNS FROM', 'create' => 'show create table', 'meta' => 'SELECT column_name, data_type, character_maximum_length FROM INFORMATI...
true
5a403beccd96640602f60fd412dd64e85debe992
PHP
gitter-badger/framework-23
/src/Framework/Application/Factory/ModuleDelegateFactory.php
UTF-8
3,605
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Onion\Framework\Application\Factory; use Interop\Http\ServerMiddleware\DelegateInterface; use Onion\Framework\Application\Interfaces\ModuleInterface; use Onion\Framework\Dependency\Interfaces\FactoryInterface; use Onion\Framework\Http\Middleware\Delegate; use Onion\Framework\...
true
e66de5e4e3972c97439dd96eca11ae202f4c59e0
PHP
cloud-elric/charlenetas
/models/IPNPayPal.php
UTF-8
11,838
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; use app\modules\ModUsuarios\models\Utils; use app\models\PayOrdenesCompras; use app\models\PayPaymentsRecibed; use app\models\EntUsuariosCreditos; use app\modules\ModUsuarios\models\EntUsuarios; class IPNPayPal { const DEBUG = 1; const USE_SANDBOX = 1; public function cre...
true
b3267e2a64dbca083feb03f9428f22b1e31e7588
PHP
schum30/ch.bfh.bti7054.w2014.q.bwl
/webshop/inc/cart.inc.php
UTF-8
661
3.09375
3
[]
no_license
<?php include_once('product.inc.php'); class Cart { private $items = array(); public function addItem($art, $num, $option) { $this->items[$art][$option] += $num; } public function removeItem($art, $num, $option) { if (isset($this->items[$art][$option]) && $this->items[$art] >= $num) { $this->item...
true
772776f1cf539d8421738d6c229ce1cbb2d6a9f7
PHP
jony5/CSS-Validator-for-HTML-Email-v2.00.0000
/_crnrstn/__staging/_crnrstn_v2_docs/crnrstn_v2_docs_www/common/_pleease_help_classes/contentgen.inc.php
UTF-8
67,841
2.578125
3
[]
no_license
<?php /* // J5 // Code is Poetry */ # CLASS :: content_generator # AUTHOR :: Jonathan 'J5' Harris <jharris@eVifweb.com> # CLASS VERSION :: 1.0.0 # CLASS DATE :: July 4, 2020 @ 1620hrs class content_generator { protected $oLogger; private static $oCRNRSTN_USR; private static $oSideBitch_USR; priva...
true
5ca9b3b8ba043821f1c178ba65854166a230362a
PHP
serker72/mg_gydex
/classes/abstractlanggroup.php
WINDOWS-1251
4,201
2.515625
3
[]
no_license
<? require_once('abstractgroup.php'); // c class AbstractLangGroup extends AbstractGroup{ protected $lang_tablename;//='menu_lang'; protected $mid_name; protected $lang_id_name; protected $langs=Array();// // protected function init(){ $this->tablename='table'; $this->lan...
true
8663bcd0b7825011b1b12d30e1fe141c43f3df36
PHP
Gkiokan/gkiokan_net_updater
/core/my_menu2.php
UTF-8
302
2.6875
3
[]
no_license
<?php /* Project: My Test Class Author: Gkiokan Sali Version: 1.2 */ class my_Menu{ public $version = "2"; public $name = "Menu class 2"; public function a($a, $b){ return false; } public function b($a, $b){ return false; } public function c($a, $b){ return false; } }
true
354c4574099ac4fe8e593c8ad5c048f2b6a2d869
PHP
Thibault15/GSB_PPE
/Routeur.php
UTF-8
3,295
2.65625
3
[]
no_license
<?php require('controller/front_controller.php'); try { // On essaie de faire des choses if (isset($_GET['action'])) { /*if($_GET['action'] == 'affichmed') { if(isset($_POST['listMed'])) { listMed($_POST['listMed']); } } ...
true
8d90041d281398e53b079bea72b231cf14de08d6
PHP
yerdvaa/formation_symfony
/src/AppBundle/Controller/DefaultController.php
UTF-8
4,686
2.609375
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace AppBundle\Controller; use AppBundle\Event\VisitContactEvent; use AppBundle\Event\VisitEvents; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; class DefaultController extends Controller ...
true
b3f6c10e1424c1315bda9d84fa344fac1689697d
PHP
itsmenayrb/barangay_system
/admin/server.php
UTF-8
40,972
2.53125
3
[]
no_license
<!-- This page will handle all the forms in admin site --> <?php session_start(); include '../includes/functions.inc.php'; include '../includes/dbh.inc.php'; //// Initializing Variables //// Initializing Variables //// Initializing Variables $username = ""; $email = ""; ...
true
d6c1540939e867c1b9eabefb54226453baecb7fa
PHP
dvien/Intospace.in.ua
/app/Support/Statuses/StatusChanger.php
UTF-8
413
2.75
3
[]
no_license
<?php namespace App\Support\Statuses; class StatusChanger { protected $model; public function __construct($model) { $this->model = $model; } public function setStatus($id, $status) { $model = $this->model->find($id); $model->status = $status; $model->save(); ...
true
8fe4e4f6ee52edb34958ae830436534e8f4b4bda
PHP
SporoZoite/php-first-steps
/src/function/dico.php
UTF-8
539
3.484375
3
[]
no_license
<?php function get_random_words(){ $file = "words_alpha.txt"; // Convert the text fle into array and get text of each line in each array index $file_arr = file($file); // Total number of lines in file $num_lines = count($file_arr); // Getting the last array index number $last_arr_index = $num_lines - 1; // Random index...
true
124cb5ed6a58fb682b7580d46e5e6130d351f604
PHP
Mik3Dev/deathdance
/app/Rules/OfficeHours.php
UTF-8
984
3.046875
3
[ "MIT" ]
permissive
<?php namespace App\Rules; use Carbon\Carbon; use Illuminate\Contracts\Validation\Rule; class OfficeHours implements Rule { /** * Create a new rule instance. * * @return void */ public function __construct() { // } /** * Determine if the validation rule passes. ...
true
079d44510c4791748b7350fa1cd4e6be3ccf5bc1
PHP
Wulff-1996/music-web-app
/src/repositories/AuthRepo.php
UTF-8
3,195
2.90625
3
[]
no_license
<?php namespace Wulff\repositories; use PDO; use http\Params; use Wulff\config\Database; use Wulff\entities\Customer; class AuthRepo { private Database $db; function __construct($db) { $this->db = $db; } public function closeConnection() { $this->db->close(); } pub...
true
866b3aa98cd26f52f2448837e56fe7a2fb19e0f9
PHP
franzsaro/projectabc
/api/app/Chatbot/Templates/Facebook/QuickReplyElement.php
UTF-8
889
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Ilinya\Templates\Facebook; class QuickReplyElement{ /* @String @N */ protected $title; /* @Enum @R */ protected $contentType; /* @String @N */ protected $payload; function __construct($title){ $this->title = $title; } public static func...
true
ba6ab541bd5e912cd567a0a2557c322d81367ecc
PHP
fitz35/mahjong
/web_content/view/img_mahjong.php
UTF-8
4,347
3.015625
3
[]
no_license
<?php // affiche les pieces de mahjong et les area corespondantes // carre toujours de la meme taille function genereImg() { $x_init = 128; $y_init = 60; $width = 58; $height = 74; // espace entre les tuiles $espace_w = 1; $espace_h = 6; $x = $x_init; $y = $y_init; ...
true
ebd1d3eb2ee75a62b511b17c7dce1a67c1c32b71
PHP
faazy/simple-sfa
/common/Auth/FormatsPermissions.php
UTF-8
619
3.03125
3
[ "MIT" ]
permissive
<?php namespace Common\Auth; trait FormatsPermissions { /** * Encode permissions into json string. * * @param array $value */ public function setPermissionsAttribute($value) { if (is_array($value)) { $this->attributes['permissions'] = json_encode($value); } ...
true
0ba60424a181e4b3406bf49f092fd42135b721bf
PHP
alexisMoragaa-zz/analitic
/analitic/app/Http/Controllers/LoadController.php
UTF-8
1,603
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Requests; use App\Http\Controllers\Controller; use App\Producto; use Illuminate\Http\Request; class LoadController extends Controller { /** * Display a listing of the resource. * * @return Response */ public function index() { // } /** * Show the f...
true
db933e70b9f37350cebfb2777c17410596222c2f
PHP
SiteInSight/pro100-remont
/libs/iexForm/ext/BitrixAuth/BitrixAuth.class.php
UTF-8
1,918
2.609375
3
[]
no_license
<?php /** * Class BitrixAuth * * Авторизация в Bitrix с помощью формы с полями login и password. * В конфиге нужно не забыть отключить расширения Mail, AdditionalFields и любые другие, ненужные для авторизации. * Подходящий шаблон формы расположен в файле auth.php. * */ class BitrixAuth extends ExtensionBase { ...
true
f5449ce34b4fefc61342c94cc26f398a343c85ef
PHP
marion208/siteMissionSocieteSecurite
/models/entity/entitySpecialiteMission.php
UTF-8
896
2.953125
3
[]
no_license
<?php class entitySpecialiteMission { private $idSpecialiteMission; private $designationSpecialiteMission; public function __construct($idSpecialiteMission, $designationSpecialiteMission) { $this->idSpecialiteMission = $idSpecialiteMission; $this->designationSpecialiteMission = $design...
true
0c4ae7fc3d66fb5e9289a95c979d3a0422eef9a4
PHP
mdynia/pmk-events
/server/api/getEventsByGeo.php
UTF-8
1,472
3.0625
3
[]
no_license
<?php // E.G. http://localhost/pmk_events/api/getEventsByGeo.php?days=14&lat=51.4&lon=8.4 // required headers header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); // include database and object files include_once '../config/database.php'; inclu...
true
e7cc1eeb0b6b50803d16d4bdaf19ff8ee46e13c7
PHP
randercarlos/before-soccer
/app/Models/Team.php
UTF-8
726
2.59375
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Team extends Model { const RECORDS_PER_PAGE = 10; protected $table = 'teams'; protected $fillable = ['name']; public function players() { return $this->hasMany(Player::class)->orderBy('id'); } public function ...
true
50a974605cc978dad5d5b3d64912f5501551f93d
PHP
dgrytsyna/php-homework-2
/table2.php
UTF-8
267
2.875
3
[]
no_license
<?php echo "<table border=\'1\' style='border-collapse: collapse'>"; for ( $row = 1; $row <=10; $row++){ echo'<tr>'; for ($col=1; $col<=10; $col++){ $p=$col*$row; echo "<td>$p</td>\n"; }; echo "</tr>"; }; echo '</table>'; ?>
true
fc165c74d961ee09b6277b22ed33f197a5d17406
PHP
hadihaidar/The-doctors
/best temp ever/Project277/Headchef.php
UTF-8
1,108
2.515625
3
[]
no_license
<link rel="stylesheet" href="styles.css"> <?php $db = new PDO("mysql:dbname=restaurant", "root", ""); if (isset($_POST['submit'])){ $order = $db->quote($_POST['order']); $query = $db->exec("DELETE FROM onphoneorder WHERE (ID=$order)"); $query = $db->exec("DELETE FROM inplaceorder WHERE (ID=$order)"); $query = $db-...
true
60c11985bc2fbc842eb640701f17616950c33d76
PHP
markotomcik/hackathon_posta_bordel
/app/CoreModule/model/CarsManager.php
UTF-8
1,042
2.609375
3
[]
no_license
<?php namespace App\CoreModule\model; use App\Model\DatabaseManager; use Nette\Database\Table\ActiveRow; use Nette\Database\Table\Selection; use Nette\Utils\ArrayHash; class CarsManager extends DatabaseManager { const TABLE_NAME = 'cars', COLUMN_ID = 'id_car'; public function getCars() ...
true
86c3d6a8169c2ab4f2372a08fd8b1cdbbd808975
PHP
lbhurtado/mudmod
/app/CommandBus/Commands/LoginCommand.php
UTF-8
435
2.8125
3
[]
no_license
<?php namespace App\CommandBus\Commands; use App\Models\Contact; class LoginCommand extends BaseCommand { /** @var Contact */ public $origin; /** @var int */ public $pin; /** * LoginCommand constructor. * * @param Contact $origin * @param int $pin */ public function...
true
554c670896d604d902a72d30d6057bad781df79e
PHP
gurkalov/eva-position
/src/app/Beacon.php
UTF-8
1,877
2.53125
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * @OA\Schema(schema="NewBeacon", required={"bssid"}, * @OA\Property(property="label", format="string", type="string", default="Hall Room", example="Hall Room"), * @OA\Property(property="ssid", format="string", type="string", default="hall2",...
true
b692c4301d750dca0a1052359fa5b065debfec5b
PHP
Anthobask/Taurus
/controlleurs/Controlleur.php
UTF-8
7,203
2.984375
3
[]
no_license
<?php class Controlleur { static protected $wSingleton = null; protected $user_current = null; //objet Users de l'utilisateur enregistré protected $messagesListe = array(); static public function getInstance() { if (!isset(self::$wSingleton)) { self::$wSingleton = new self; ...
true
0b7f32941e7160cb6b927cc3ce9605897d280a6c
PHP
cezedarling/MonkediaSample
/login.php
UTF-8
2,190
2.546875
3
[]
no_license
<?php session_start(); require ("config.php"); if(isset($_SESSION['SESS_LOGGEDIN']) == TRUE) { header("Location: " . $basedir . "index.php"); exit; } ?> <!DOCTYPE HTML> <html lang="en"> <head> <title>Ceze Sample</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1...
true
27d49bb8ac1e320171fc1c328b2acb9a6bb84679
PHP
in2code-de/femanager
/Classes/Finisher/FinisherInterface.php
UTF-8
844
2.75
3
[]
no_license
<?php declare(strict_types=1); namespace In2code\Femanager\Finisher; use In2code\Femanager\Domain\Model\User; /** * Interface FinisherInterface */ interface FinisherInterface { /** * @return User */ public function getUser(); /** * @param User $user * @return AbstractFinisher ...
true
9b5ed2bc9aa89f53aea41c1f7e2b1d239e59ff5e
PHP
wallee-payment/magento-2.2
/Model/OrderRepository.php
UTF-8
3,135
2.640625
3
[ "Apache-2.0" ]
permissive
<?php /** * wallee Magento 2 * * This Magento 2 extension enables to process payments with wallee (https://www.wallee.com/). * * @package Wallee_Payment * @author wallee AG (http://www.wallee.com/) * @license http://www.apache.org/licenses/LICENSE-2.0 Apache Software License (ASL 2.0) */ namespace Wallee\Payme...
true
6a32fe9852129f1b3871720c955cdd433ad085aa
PHP
fanchoop/Lecteur2.0
/test/php/db/EntityTest.php
UTF-8
3,356
3.09375
3
[]
no_license
<?php include "src/models/db/Music.php"; include "src/models/db/PlaylistMusic.php"; use PHPUnit\Framework\TestCase; use src\models\db\Entity; use src\models\db\Music; use src\models\db\PlaylistMusic; /** * Class EntityTest * Cette classe test la classe Entity via sa classe enfante Music. * @coversDefaultClass src\m...
true
7b3e6a99bc08aaef26e4facba39cc13a0a269165
PHP
baymaxbhai/webserver
/order_form.php
UTF-8
1,384
2.96875
3
[ "Apache-2.0" ]
permissive
<!-- orderform.php --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>PHP Test</title> </head> <body> <?php try { //-- 1.0 Database connection // Conne...
true
f716db98a407dae0d36a5db3615121004cb27d9f
PHP
gjorwi/sic
/application/controllers/mta/excel.php
UTF-8
33,176
2.546875
3
[]
no_license
<?php defined ('BASEPATH') OR exit ('No direct script access allowed'); /** * * excel */ class Excel extends CI_Controller { /** * * __construct */ public function __construct () { parent::__construct(); // inicializamos la librería $this->load->library('Cla...
true
80418a06f6a97905a6136993880b2f0b5bc4c678
PHP
marierolland/projet_toto
/list.php
UTF-8
1,523
2.96875
3
[]
no_license
<?php //je cree PDO j inclus base de donnees require 'inc/db.php'; //print_r($_GET); //recup le ses_id via GET if(!empty($_GET['ses_id'])){ $sessionID = intval($_GET['ses_id']);// type? //nb d etudiants par page $nbPerPage = 5; $currentOffset= 0; if(array_key_exists('offset', $_GET)){ // equivaut a isset($_GE...
true
39ef1de74d1ac397d1fd8b1b7882e697088f03b9
PHP
swiftphp/common
/src/util/StringUtil.php
UTF-8
6,315
3.09375
3
[ "MIT" ]
permissive
<?php namespace swiftphp\common\util; /** * 字符串处理常用类 * @author Tomix * */ class StringUtil { /** * 移除UTF8文件的BOM信息 * @param string $input * @return string */ public static function removeUtf8Bom($input) { $charset=[]; $charset[1] = substr($input, 0, ...
true
dcf7b9963b64dab8bf603c22cd01641634c64ed6
PHP
godric-cz/drakkar-convert
/src/Postproces/Clanek.php
UTF-8
2,401
3.078125
3
[]
no_license
<?php namespace Drakkar\Postproces; use Exception; class Clanek { use MagicGetSet; public $cesta; private $text; public $frontMatter; private $obsah; public $doplnky = null; function __construct($cesta) { $this->cesta = $cesta; $this->text = file_get_contents($cesta); ...
true
df83e12c3972f972b6bff8799a714e7515e1b7c7
PHP
liiinder/ramverk1-module
/src/Controller/WeatherController.php
UTF-8
1,803
2.78125
3
[ "MIT" ]
permissive
<?php namespace Linder\Controller; use Anax\Commons\ContainerInjectableInterface; use Anax\Commons\ContainerInjectableTrait; use Linder\Model\Coordinates; use Linder\Model\DarkSky; /** * A controller that handles a get request * and returns if its a valid ip or not. */ class WeatherController implements Container...
true
af3415ed014ae942d4223dc977453550f9cbece6
PHP
lyovav/eXpansion
/Widgets_BestRuns/Gui/Controls/RunCpElem.php
UTF-8
954
2.5625
3
[]
no_license
<?php namespace ManiaLivePlugins\eXpansion\Widgets_BestRuns\Gui\Controls; class RunCpElem extends \ManiaLivePlugins\eXpansion\Gui\Control { protected $bg; protected $time; function __construct($index, $time) { $sizeX = 15; $sizeY = 5; /*$this->bg = new \ManiaLib\Gui\Elements\Quad($sizeX...
true
75b3351be9e3848ec570d1efa932473bca7dd377
PHP
LivanAlex/web
/lab4/1-6/04.php
UTF-8
870
3.9375
4
[]
no_license
<?php $arr = array(); for ($i = 0; $i < 10; $i++) { $arr[$i] = rand(0, 100); } $resultArray = swapMinMax($arr); printWithColor($arr); printWithColor($resultArray); function printWithColor($array) { foreach ($array as $num) { switch ($num) { case min($array): echo "<b><...
true
2a875e1dc6ddc379a23ed781db77b1e2ee6e52f2
PHP
coLlenz/entrytrackr-bu
/app/Console/Commands/SignOutAll.php
UTF-8
821
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use App\Http\Controllers\Cron\AutoSignOutController; use Illuminate\Console\Command; class SignOutAll extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'signout:all'; /** * The co...
true
a9a9efeb2d88fcb399edb7a2e5f3895ad4623ce0
PHP
vk221000/myphpproject
/admin/addproducts.php
UTF-8
1,506
2.734375
3
[]
no_license
<?php session_start(); if (sizeof($_SESSION['admin']) == 0) { header('Location:login.php'); } include "config.php"; $success = array(); if (isset($_POST['submit'])) { $pdtid = $_POST['pdtid']; $pdtname = $_POST['pdtname']; $pdtprice = $_POST['pdtprice']; $pdtimage = $_POST['pdtimage']; $sql ...
true
dcfbb463838deec82c261142ab543f2691f1bea1
PHP
wikimart/merchant-api-client
/src/Wikimart/MerchantAPIClient/Entities/PostBundle.php
UTF-8
4,101
3.046875
3
[]
no_license
<?php namespace Wikimart\MerchantAPIClient\Entities; class PostBundle implements EntityInterface { /** @var string */ protected $name; /** @var string */ protected $description; /** @var boolean */ protected $isAvailable; /** @var string */ protected $startTime; /** @var string */ ...
true
68c634befea554198d167abe171ca9e1ecf8f02b
PHP
concretecms/concretecms
/concrete/src/Calendar/Event/Formatter/LinkFormatterInterface.php
UTF-8
994
2.703125
3
[ "MIT" ]
permissive
<?php namespace Concrete\Core\Calendar\Event\Formatter; use Concrete\Core\Entity\Calendar\CalendarEvent; use Concrete\Core\Entity\Calendar\CalendarEventVersionOccurrence; interface LinkFormatterInterface { /** * @param CalendarEventVersionOccurrence $occurrence * @return string */ function get...
true
b12eccd7077f928d050c49f9dd8297bb7f6b9879
PHP
alaashehadeh/Coalition-Technologies
/database/seeds/DatabaseSeeder.php
UTF-8
400
2.546875
3
[]
no_license
<?php use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { DB::table('products')->insert([ 'product_name' => 'Ice cream', 'quantity' => 5, 'pr...
true
8b63cdc56bba110b34231ef6e2a012dc3af001f7
PHP
seanxh/althea
/protected/extensions/Mailer.php
UTF-8
2,731
2.796875
3
[]
no_license
<?php /** * 邮件发送类 * * @author reeze <xiaxuhong@baidu.com> * * @require Swift STMP Libaray */ class Mailer { /** * @param $to mixed array or comma seperated string * @param $cc mixed comma seperated string * @param $from sender email * @param $type mime-type * @param $attchments attachements ...
true
b32818c0f9c2f6821ff2c511553160875cda0449
PHP
sirArthurDayne/ssu-platform
/app/controllers/Pages.php
UTF-8
667
2.53125
3
[ "MIT" ]
permissive
<?php //Controlador de prueba class Pages extends Controller { public function __construct() { //Recover the model instance test $this->proyectModel = $this->model('Proyect'); } public function index() { //Get data from Model ...
true
06dc35e5c6897224720a73a702cd9a66844c5fcf
PHP
mkrvevgn/yii-catalog
/protected/models/Good.php
UTF-8
9,846
2.578125
3
[]
no_license
<?php /** * This is the model class for table "good". * * The followings are the available columns in table 'good': * @property string $id * @property string $name * @property string $brand_id * @property string $category_id * @property string $price * @property string $date * @property integer $rating * *...
true
667877acadd901f4231bb0c948eef0aa019ea9ff
PHP
Anamcoollzz/tugas-akhir-pweb-sistem-bengkel
/app/Core/Database.php
UTF-8
2,904
2.828125
3
[]
no_license
<?php class Database{ private static $_instance = null; private $mysqli; private $error; public function __construct(){ $this->mysqli = new mysqli('localhost', 'root', '', 'kuliah_pweb_sistem_bengkel') or die('ada error koneksi'); } public static function getInstance(){ if(!isset(self::$_instanc...
true
b55845afff3c9253535f65fa39fec8be21422c72
PHP
Aji3001/ardibis-UKDW
/application/controllers/Doc.php
UTF-8
688
2.546875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Doc extends CI_Controller{ public function __construct() { parent::__construct(); $this->load->model('setting_model'); } public function index() { $data['page']='newDoc'; $data['kategori']=$this->setting_model->getCat(); if(isset($_GET['kat'])...
true
28605c8e2422cb4d62a2bd71157d93c9c30b557c
PHP
davidroberto/Setono-SyliusFacebookPluginFork
/src/ServerSide/ServerSideEvent.php
UTF-8
1,786
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Setono\SyliusFacebookPlugin\ServerSide; use FacebookAds\Object\ServerSide\ActionSource; use FacebookAds\Object\ServerSide\CustomData; use FacebookAds\Object\ServerSide\Event; use FacebookAds\Object\ServerSide\UserData; /** * FacebookAds library have issues at types declarat...
true
3de2bbcc1b251eefc9b423318de4f5c49181882a
PHP
HazloPosible/MapaComedoresSociales
/src/MapaComedoresSociales/PantryBundle/Model/MapManager.php
UTF-8
1,790
2.609375
3
[ "MIT" ]
permissive
<?php namespace MapaComedoresSociales\PantryBundle\Model; use Ivory\GoogleMap\Controls\PanControl; use Ivory\GoogleMap\Controls\MapTypeControl; use Doctrine\ORM\EntityManager; use Ivory\GoogleMap\Map; use Ivory\GoogleMap\Overlays\Marker; use Ivory\GoogleMap\Controls\ControlPosition; use Ivory\GoogleMap\Overlays\Inf...
true
1e996cf37c9affcc8eda44d6799548f004cac710
PHP
mehbeli/platform
/database/seeds/ProductSeeder.php
UTF-8
1,453
2.515625
3
[]
no_license
<?php use Faker\Factory as Faker; use Illuminate\Database\Seeder; class ProductSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { Eloquent::unguard(); //disable foreign key check for this connection before running seeders ...
true
271d828b41eba560fac78868d5fd632acec235ed
PHP
PoorvaJambhale/Custom-search-application-in-PHP
/utilities.php
UTF-8
1,683
2.546875
3
[]
no_license
<html> <head> <title> * * * Grab a deal! * * * </title> <style> body { background-color:#BFFFFF; font-family:"Arial"; } box-shadow: 10px 10px #888, -10px -10px #f4f4f4, 0px 0px 5px 5px #cc6600; .box h3{ text-align:center; position:relative; top:80px; } .box { width:70%; height:120px; background:#FFF; margin:...
true
78f5ac4c81cdb45a5176018aca4a17f1bac5dd17
PHP
SamWechter/APPture-website
/adduser.php
UTF-8
5,188
2.53125
3
[]
no_license
<?php header("Access-Control-Allow-Origin: *"); header('Content-Type: application/json; charset=utf-8'); require_once('LIB_Appture.php'); $validForm = true; // Stores new user id $user_id; $response_json = '{ "response": '; if (!isset($_POST['signupSubmit'])) { $validForm = false; } else { ...
true
19eefb24958788eabe78d348a5ea35716396a464
PHP
NickAsher/BackendFront
/frontend/menu/addons/process-save-sort.php
UTF-8
1,219
2.53125
3
[]
no_license
<?php require_once '../../../utils/constants.php'; require_once $ROOT_FOLDER_PATH.'/sql/sqlconnection2.php' ; require_once $ROOT_FOLDER_PATH.'/security/input-security.php' ; $SortedIdsArray = isSecure_checkPostInput('__sortarray') ; $AddonGroupRelId = isSecure_isValidPositiveInteger(GetPostConst::Post, '__addongroup_...
true
8a7d4eacde562f257efa8505df6294621b7e38a2
PHP
SebastianPegoraro/CalidadForm
/clases/Accion.php
UTF-8
5,863
2.90625
3
[ "MIT" ]
permissive
<?php require_once 'Connect.php'; class Accion { private $idAccion; private $idOficina; private $idTramite; private $idUsuario; private $idResponsable; private $idJurisdiccion; const TABLA = 'acciones'; /** * Accion constructor. * @param $idOficina * @param $idTramite ...
true
d45c0bd2c5054aae2495324b5dbc1e0ee36345fa
PHP
Faridbabayev001/shopping-cart
/app/Http/Repositories/V1/BasketRepository.php
UTF-8
1,178
2.828125
3
[]
no_license
<?php namespace App\Http\Repositories\V1; use App\Http\Helpers\Basket; use App\Http\Repositories\V1\Contracts\BasketRepositoryInterface; class BasketRepository implements BasketRepositoryInterface { /** * Add to basket * @param $id * @param $product * @return bool */ public functio...
true
f888fe00992309ea40a549f53f33d711023fb897
PHP
shapovalkv/MyFW
/vendor/core/Router.php
UTF-8
2,530
2.953125
3
[]
no_license
<?php namespace vendor\core; class Router { protected static $routes = []; protected static $route = []; public static function add($regexp, $route = []) { self::$routes[$regexp] = $route; } public static function getRoutes() { return self::$routes; } public s...
true
1732a646ab229c512ebcdb351e7dfc837ce68490
PHP
7AF/SendReceiveChallenges
/AndroidFileUpload/fileUpload.php
UTF-8
1,814
2.671875
3
[]
no_license
<?php // Path to move uploaded files $target_path = "uploads/"; // array for final json respone $response = array(); // getting server ip address $server_ip = gethostbyname(gethostname()); // final file url that is being uploaded $file_upload_url = 'http://' . $server_ip . '/' . 'AndroidFileUpload' ...
true
c7b0f8f8112939e9121aef59414b98bc1c8fe766
PHP
rusbal/sample-for-intergo
/app/Http/Controllers/SubscriptionController.php
UTF-8
5,303
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Four13\Plans\Plan; use App\Http\Traits\Ajax; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class SubscriptionController extends Controller { use Ajax; public function __construct() { $this->middleware('auth'); $this->middlewa...
true
590a594f95b8d7a59acfc4d52a19a551ff245a4b
PHP
miryanrico/moodle-course_custom_metadata
/moodle/course/coursemetadata/field/datetime/define.class.php
UTF-8
2,441
2.875
3
[]
no_license
<?php /** * Define datetime fields * * @author Mark Nelson <mark@moodle.com.au> * @license http://www.gnu.org/copyleft/gpl.html GNU Public License * @version 20101022 */ class coursemetadata_define_datetime extends coursemetadata_define_base { /** * Define the setting for a datetime custom field ...
true
41ed68608d579b8fab08272c4edd7ccfa10f0eb3
PHP
jeffaustin81/title_case
/tests/TitleCaseGeneratorTest.php
UTF-8
3,858
2.984375
3
[ "MIT" ]
permissive
<?php require_once "src/TitleCaseGenerator.php"; class TitleCaseGeneratorTest extends PHPUnit_Framework_TestCase { function test_makeTitleCase_oneLetter() { // Arrange $test_TitleCaseGenerator = new TitleCaseGenerator; $input = "i"; ...
true
735e767e43228949b1b05962ac556356771b7aaf
PHP
xThauma/Aplikacja-Mobilna-Do-Trening-w-I-Diet
/skrypty api/sm/v1/postDataInsert.php
UTF-8
524
2.640625
3
[]
no_license
<?php if(isset($_GET['title'], $_GET['date'], $_GET['content'], $_GET['id_users'])) { include 'config.php'; $title = $_GET['title']; $date = $_GET['date']; $content = $_GET['content']; $id_users = (int) $_GET['id_users']; $stmt = $db->prepare("INSERT INTO posts (title, date, content, id_users) values (:title,:...
true
d2dca573094fe17f96c6aa88ff97b4a903312b4a
PHP
xp-framework/core
/src/main/php/lang/Enum.class.php
UTF-8
4,289
3.15625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace lang; /** * Enumeration base class * * @see http://news.xp-framework.net/article/222/2007/11/12/ * @see http://news.xp-framework.net/article/207/2007/07/29/ * @test xp://net.xp_framework.unittest.core.EnumTest */ abstract class Enum implements Value { public $name= ''; protected $ordinal...
true
658571b8f976986ef1ae4e07ec9adf7c83a80620
PHP
inahaus/pbycortos.com
/ediciones-anteriores/core/clases/class.utilidades.php
UTF-8
19,251
2.859375
3
[]
no_license
<?php /** * @package Punk Framework * @copyright Copyright (C) 2011 Onírico Sistemas. Todos los derechos reservados. * @version 0.3 * @author Lucas M. Sastre * @link http://www.oniricosistemas.com * * @name class.utilidades.php * */ /** * Modificaciones realizadas * 05/01/2010 * - se agregaron los metodos ...
true
d77a568e0c536d3c9a729bbd2cb4a7b4dd7dad6b
PHP
Hazblue/Katun-Silungkang
/test.php
UTF-8
2,523
3.09375
3
[]
no_license
<?php //$key = 'qkwjdiw239&&jdafweihbrhnan&^%$ggdnawhd4njshjwuuO'; // //function encryptthis($data, $key) { // $encryption_key = base64_decode($key); // $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length('aes-256-cbc')); // $encrypted = openssl_encrypt($data, 'aes-256-cbc', $encryption_key, 0, $i...
true
29ccf4c2f2a9bf3b88bd0b5d60050d8d5f2f93ea
PHP
devdamaciasg/segcontrol_Software
/model/cliente.php
UTF-8
2,708
2.859375
3
[]
no_license
<?php class cliente{ private $id_cliente; private $id_usuario; private $nombre; private $razon_social; private $tipo_documento; private $numero_documento; private $direccion; private $ciudad; private $fijo; private $celular1; private $celular2; private $email; private $email2; private $email3; public function __cons...
true
3553430555e728f52f59ec8c531b7b992664bb6f
PHP
alegr/perfitMockApi
/modules/Core.php
UTF-8
382
2.65625
3
[]
no_license
<?php /** * Core * * Core abstract class * @version 1.0 * @package Core */ class Core { /** * Set the output error * * @param integer $code Error code * @param string $message Error message * @return boolean */ static public function error ($code, $message) { Re...
true
b880ee071cb77eaf795e0c6dfcc6ea8efd9837b1
PHP
rayblair06/ecoes-api
/src/AbstractResponse.php
UTF-8
575
2.671875
3
[]
no_license
<?php namespace Ecoes; use GuzzleHttp\Command\ResultInterface; abstract class AbstractResponse implements ResponseInterface { use KeyValueTrait; protected $data; /** * Response constructor. * * @param $data */ public function __construct(ResultInterface $data) { $this->data = $data; } ...
true
54a2a4b791645396e226e0ddf6f7d1b66c7aa84c
PHP
jianyan74/php-excel
/src/Excel.php
UTF-8
14,553
2.71875
3
[ "MIT" ]
permissive
<?php namespace jianyan\excel; use Exception; use PhpOffice\PhpSpreadsheet\Cell\Coordinate; use PhpOffice\PhpSpreadsheet\Cell\DataType; use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Writer\Html; use PhpOffice\PhpSpreadsheet\Writer\Xls; use PhpOffice\PhpSpreadsheet\Writer\Xlsx; use PhpOffice\P...
true
0feffe1082c485eeb608dd3ba31583481085a6eb
PHP
Aldorus/portfolioV5
/src/Exod/PortfolioBundle/Entity/Skill.php
UTF-8
1,207
2.640625
3
[ "MIT" ]
permissive
<?php namespace Exod\PortfolioBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Exod\PortfolioBundle\Entity\Skill */ class Skill { /** * @var integer $id */ private $id; /** * @var text $label */ private $label; /** * @var integer $date ...
true
be8e3af265ca1714dcd6ecb075d763248adf015c
PHP
jarvelov/foxprodataminer
/foxprodataminer-settings.php
UTF-8
8,779
2.59375
3
[]
no_license
<?php if (!function_exists('is_admin')) { header('Status: 403 Forbidden'); header('HTTP/1.1 403 Forbidden'); exit(); } if (!class_exists("foxpro_data_miner_settings")) : class foxpro_data_miner_settings { function __construct() { add_action('admin_init', array($this,'admin_init'), 20 ); } functi...
true
6b9fe026eb8f8be07775413513c1e2486d11db90
PHP
lxtbell/BowlingLottery
/api/db.php
UTF-8
956
2.6875
3
[]
no_license
<?php /** * @author Xiaotian Le * @version 1.0 * @since 2015-11-10 */ require_once "util.php"; $db_servername = "localhost"; // Database server $db_dbname = "bowling"; // Scheme name $db_username = "dbadmin"; // Database user name $db_password = "123456"; // Database ...
true
10fb2c3a407ee41dd0dcbcfa6ec59dbdf873ad82
PHP
kanneg881/PHP
/LearningPHPDesignPatterns/Chapter9/Zambezi/ZambeziCalculate.php
UTF-8
652
2.921875
3
[]
no_license
<?php /** * Created by PhpStorm. * 實作IHook * User: Jackson * Date: 2018/1/13 * Time: 下午5:24 */ include_once "IHook.php"; class ZambeziCalculate extends IHook { /** * 使用Hook增加運費 */ protected function addShippingHook() { if (!$this->freeShipping) { $this->fullCost += 12....
true
34615c609d7b3990d5639aba976a7616103e2e07
PHP
foomo/Foomo.Wordpress
/lib/Foomo/Wordpress/OEmbeds/AbstractOEmbed.php
UTF-8
2,452
2.71875
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ namespace Foomo\Wordpress\OEmbeds; /** * @link www.foomo.org * @license www.gnu.org/licenses/lgpl.txt * @author franklin <franklin@weareinteractive.com> */ abstract class AbstractOEmbed { //----------------...
true
d873f7b31682386b32e018b00e96134d58f13ab4
PHP
ma-residence/php-sdk
/src/php-sdk/Auth/OAuth.php
UTF-8
6,514
2.765625
3
[]
no_license
<?php namespace MR\SDK\Auth; use MR\SDK\Client; use MR\SDK\Exceptions\OAuthException; use MR\SDK\Exceptions\RequestException; use MR\SDK\TokenStorage\InMemoryTokenStorage; use MR\SDK\TokenStorage\TokenStorageInterface; use Psr\Log\LoggerInterface; class OAuth { public const TOKEN_ENDPOINT = '/oauth/v2/token'; ...
true
71f887b9834623a8946f559703d20d08ae8cce67
PHP
thisisprateek/twinotech
/mycompiler/WriteFileAndCompile (copy).php
UTF-8
4,161
3.03125
3
[]
no_license
<?php //$directory = "/var/www/html/TwinoTech/"; //$directory = "./TwinoTech/"; $username = $_POST['username']; $content = $_POST['code']; $extension = ".c"; $filename = $username.$extension; /* if (file_put_contents($filename, $content) !== false) { echo "File created (" . basename($newFil...
true
c736c1501f5f9b6bf3aee41d9320e47141331b46
PHP
php4umagento/wbtest
/Model/ConfigurableOptions.php
UTF-8
1,171
2.640625
3
[]
no_license
<?php /** * ConfigurableOptions * * @copyright Copyright © 2017 Php4u Marcin Szterling. All rights reserved. * @author marcin@php4u.co.uk */ namespace Php4u\WbTest\Model; /** * Class ConfigurableOptions * @package Php4u\WbTest\Model */ class ConfigurableOptions implements \Php4u\WbTest\Api\Data\Configurabl...
true
44139eea265e14340ef196225216125c5bd03827
PHP
munnaahsan/project
/pages/user/create_user.php
UTF-8
2,280
2.734375
3
[]
no_license
<?php if(isset($_POST["btnSubmit"])){ $role_id=$_POST["cmbRole"]; $username=$_POST["txtUsername"]; $email = $_POST["txtEmail"]; $password=$_POST["pwdPassword"]; $retype_pass=$_POST["pwdRetyePass"]; if($password==$retype_pass){ $con = new mysqli("localhost","root","","my_db"); $query = $con->...
true