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
d901e6ac6536f8d0876a57fff980a0d6d17478f0
PHP
JulKolch/Calculator
/calculator.php
UTF-8
2,037
2.75
3
[]
no_license
<!doctype html> <html lang="de"> <head> <meta charset="utf-8"> <title>Ein einfacher Rechner</title> <style> body { text-align: center; font-family: 'Source Sans Pro', sans-serif; } .btn { background: #0033ee; border-radius: 10px; font-family: Times; ...
true
47231b9ecb92ea9826ccf822db022f305e0aae8a
PHP
DonadoJuan/Programacion-III
/Clase01/array3.php
UTF-8
502
2.6875
3
[]
no_license
<?php $array1 = array('Lagartija' => 'reptil' , 'Araña' => 'aracnido', 'Perro' => 'mamifero', 'Gato' => 'mamifero', 'Raton' => 'roedor' ); $array2 = array('12' => 'numero par' , '34' => 'numero par', '45' => 'numero impar', '52' => 'numero par', '12' => 'numero par' ); $array3 = array('Sauce' => 'tipo de arbol' , ...
true
050bb7d99df56f96c5b2595b271596fa0743bce0
PHP
voyage-h/seeker
/database/seeds/QuestionsTableSeeder.php
UTF-8
2,213
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Question; class QuestionsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $i = 1; $question = Question::create( [ 'title' => '前端工程师的技术进阶点在哪里?', ...
true
2670018fef6580f0045a1ae319057725ad520c94
PHP
diogomazzoni/kanban
/solo/server/application/models/settingfile.php
UTF-8
5,443
2.75
3
[]
no_license
<?php class SettingFile extends Model{ public $settings = array(); public $not_saved_in_db = array(); public $settings_array_name = 'settings'; function extract_setting_info($section_or_setting, $setting_name, $value){ $setting_data = new StdClass(); $setting_data->section =...
true
6c8839b3a22c28979b496b510e20067578d7427b
PHP
pixces/bellho
/application/models/Repository/FormRepository.php
UTF-8
867
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: zainulabdeen * Date: 08/05/15 * Time: 1:50 AM */ class FormRepository extends Repository { protected $tableName = 'forms'; public function getAll(){ $query = "SELECT * FROM ".$this->getTableName()." ORDER BY date_created DESC LIMIT ".$this->getOffset().","...
true
d721a40ba595e10d95c32d9e1dca918f0f57ae0d
PHP
Thoronir42/kraz-huntley
/Modules/TreasureHunt/Executives/Actions/InitializeNotebookAction.php
UTF-8
1,757
2.515625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace CP\TreasureHunt\Executives\Actions; use CP\TreasureHunt\Model\Entity\Notebook; use CP\TreasureHunt\Model\Entity\NotebookPage; use CP\TreasureHunt\Model\Repository\NotebookPageRepository; use SeStep\Executives\Execution\Action; use SeStep\Executives\Execution\ClassnameActionExe...
true
efd61afa6b6a8ef3116eec7870b3cc1fe2b5882a
PHP
atuzlukov/patterns
/src/FactoryMethod/Factory/LocalDelivery.php
UTF-8
324
2.609375
3
[]
no_license
<?php namespace Patterns\FactoryMethod\Factory; use Patterns\FactoryMethod\Transport\Car; use Patterns\FactoryMethod\Transport\TransportInterface; class LocalDelivery extends DeliveryAbstract { /** * @return TransportInterface */ public function getTransport() { return new Car(); ...
true
042b2d175cd65908273f20c7cffa934a5a2bf519
PHP
altiusx/ee4717-hecha4000-final
/cart.php
UTF-8
7,979
2.578125
3
[]
no_license
<?php session_start(); if (!isset($_SESSION['valid_user'])) { // if not logged in, redirect to login page echo '<script language="javascript">'; echo 'alert("Please login first. Redirecting you to login page.")'; echo '</script>'; header("Refresh:0; url=account.php"); } if (!isset($_SESSION['cart']...
true
481e5c154c5cd8d67bd9e6fdd19c900efa713ae3
PHP
YukiDayDreamer/Twitter-Analysis
/php/west_lafayette/get_User_Loc.php
UTF-8
462
2.578125
3
[ "MIT" ]
permissive
<?php include "connection.php"; $year = $_POST["year"]; $id = $_POST["user_id"]; $table = $_SESSION['table']; $sql = "SELECT latitude AS lat,longitude AS lng FROM `$table` WHERE year = '$year' and user_id = '$id'"; $loc_result = mysql_query($sql) or die (mysql_error()); $rows = array(); while($ite...
true
8dfb402043ce9ae0a9f52ace0453440a6aaf5dc4
PHP
aisipan/laundry
/admin/input_item.php
UTF-8
5,003
2.625
3
[]
no_license
<?php include('header_admin.php'); ?> <!DOCTYPE html> <html> <head> <title>Input Item</title> </head> <body> <div class="container-fluid" style="height:1000px"> <div class="col-md-4"> <button type="button" class="btn btn-info" data-toggle="collapse" data-target="#tambahItem"><span class="glyphicon glyphicon-...
true
87870a8d1def59d1392490296b53ddf38c015c18
PHP
sbine/mashtag
/app/Mashtag/API/GooglePlus/GooglePlusConnector.php
UTF-8
1,337
2.953125
3
[ "MIT" ]
permissive
<?php namespace Mashtag\API\GooglePlus; use Mashtag\API\ApiConnectorInterface; use Mashtag\API\GooglePlus\GooglePlusTransformer; use Guzzle\Http\Client; use Exception; class GooglePlusConnector implements ApiConnectorInterface { protected static $baseUrl = "https://www.googleapis.com/plus"; protected static $apiVe...
true
cb848322b68a844291f5928f28e731d0e2fe0d27
PHP
programadormarin/biblioteca
/application/br/com/hermenegildo/biblioteca/entities/Emprestimo.php
UTF-8
1,115
2.90625
3
[]
no_license
<?php namespace br\com\hermenegildo\biblioteca\entities { class Emprestimo { private $id; private $data; private $dataDevolucao; private $dataProgramada; private $multa; public function setId($id) { $this->id = $id; } public function setData(DateTime $data) { $this->data = $da...
true
51c242de8fe40e3c5ee843da94c9d729f3e20c32
PHP
selaz/php-ethereum-token
/src/Ethereum/Contract.php
UTF-8
307
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace kornrunner\Ethereum; abstract class Contract { public const ADDRESS = ''; public const DECIMALS = 0; /* * First 4 bytes of Keccak hash of ASCII signature * transfer(address,uint256) */ public const SIGNATURE_TRANSFER = 'a9059cbb'; }
true
4fef82cd5d16fa067190ce94022ff1302da2a246
PHP
carthach/listener_survey_tool
/start.php
UTF-8
13,806
2.828125
3
[]
no_license
<?php ob_start(); if($_POST) { session_start(); $questionsFile = 'questions.csv'; //New PHP // $rows = array_map('str_getcsv', file($questionsFile)); // // $header = array_shift($all_rows); // $questions = array(); // foreach ($all_rows as $row) { // $questions[] = array_combine($header, $ro...
true
76ec93be15450b84c4c31a01f43fdaa34507379a
PHP
YenShiangGao/backend-admin
/app/Models/BulletinSend.php
UTF-8
535
2.515625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; /** * Class BulletinSend * @package App\Models */ class BulletinSend extends Model { protected $table = 'bulletin_send'; protected $fillable = [ 'type_id', 'bulletin_i...
true
2cdf464432cc7b4c785707a27607d01441474410
PHP
villj2/ch.bfh.bti7054.w2013.q.cagelovers
/src/Initializer.php
UTF-8
1,295
2.828125
3
[]
no_license
<?php if (session_status() == PHP_SESSION_NONE) { session_start(); } // declare classes $initRealPath = realpath($_SERVER["DOCUMENT_ROOT"]); include ("$initRealPath/cagelovers/src/User.php"); include ("$initRealPath/cagelovers/src/LangDictionary.php"); include ("$initRealPath/cagelovers/src/Basket.php"); include...
true
8bc5cf0ad765a8beee476eac1e839967ceb8c411
PHP
adellantado/bot-rule-engine
/src/Actions/DelayAction.php
UTF-8
992
2.84375
3
[ "MIT" ]
permissive
<?php namespace BotRuleEngine\Actions; class DelayAction extends AbstractAction { public $delay; public static function create($delay) { $instance = new DelayAction(); // '6d:3h:4m' $pieces = explode(':', $delay); $time = now(); foreach($pieces as $piece) { ...
true
28d57e28cd939f7f7c9a61921e705a97f3908030
PHP
devyetii/PHP-Quizzer
/question.php
UTF-8
2,106
3.203125
3
[]
no_license
<?php include 'database.php'; ?> <?php //Set question number $qno = (int) $_GET['n']; /* ** BAD PRACTICE ! Getting total no. of questions */ $q_count = $mysqli->query("SELECT * FROM `questions`")->num_rows or die ($mysqli->error.__LINE__); /* ** Get the Question */ ...
true
bcb1347db8dafa3f68a841a1921e8a4a576249b5
PHP
mraiur/time-diffrence
/date_day_difference.php
UTF-8
1,902
3.375
3
[]
no_license
<?php class date_day_difference { /** *@author mraiur <mraiur@nikolai-ivanov.com, mraiur@gmail.com> *@link http://mraiur.com/code/category29/date_day_difference/ */ private $current_day; private $current_year_day; private $destination_day; private $destination_year_day; private $total_day_diffrence; privat...
true
b6e4376ecb40a4ef25d8295123e47afeff6bce5a
PHP
DaveLiddament/sarb
/tests/Unit/Core/HistoryAnalyser/UnifiedDiffParser/LineMutationTest.php
UTF-8
3,617
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace DaveLiddament\StaticAnalysisResultsBaseliner\Tests\Unit\Core\HistoryAnalyser\UnifiedDiffParser; use DaveLiddament\StaticAnalysisResultsBaseliner\Domain\Common\LineNumber; use DaveLiddament\StaticAnalysisResultsBaseliner\Domain\HistoryAnalyser\UnifiedDiffParser\LineMutation; u...
true
159ca299b4f183ac99c23f50c0e18729bfd7454a
PHP
serdarcancaliskan/restapi
/router.php
UTF-8
780
2.96875
3
[]
no_license
<?php include_once 'class.inc.php'; //Temel fonksiyonlar için sınıf yüklendi. class Router{ private $result; public function Gonder($yol, $yontem, $data){ if(preg_match('/stocks?(.*)/', $yol, $params) && $yontem == "POST") {$result = $this->POST($data);} if(preg_match('/stocks...
true
bcdb40b365ef87ccdb2e758c0a65845e9882451c
PHP
quadrowin/icengine
/Class/Loginza/Parser/Abstract.php
UTF-8
318
2.578125
3
[]
no_license
<?php /** * Абстрактный парсер логинзы * * @author morph */ abstract class Loginza_Parser_Abstract { /** * Парсит результат логинзы * * @param string $data * @return array */ abstract public function parse($data); }
true
cc05e2b49b138f7adb888ef07578cd1c140b218a
PHP
tropotek/tk-tools
/src/Tbx/Console/Commit.php
UTF-8
3,252
2.546875
3
[]
no_license
<?php namespace Tbx\Console; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Input\InputOption; /** * @author Michael Mifsud <info@tropotek.com> * @see http://www.tropotek.com/ ...
true
015ba4f7d8640e2be4d78696a19c7922feb9a3b4
PHP
comtion/toa_lms
/application/controllers/admin/backup/Export.php
UTF-8
8,433
2.78125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * Rules Controller Class * ===================== * @Filename: Export.php * @Location: ./application/controllers/Export.php * @Description : Export is a PHP class to export data from database to excel. * * @Creator Wutikorn Jitpruegsa <wuti...
true
b41c7318b501062eec3cba6f5e78a4dc4fe7fec4
PHP
wrong-about-everything/portofino
/src/Style/Width/DefaultWidth.php
UTF-8
401
2.609375
3
[]
no_license
<?php declare(strict_types=1); namespace Portofino\Style\Width; use Portofino\Style\Width; use Exception; class DefaultWidth implements Width { public function value(): int { throw new Exception('Not fixed value has no value'); } public function isAutoSized(): bool { return fals...
true
9bec013ca643ff19ae17dede3cfaf6d0d05ea214
PHP
brentboghosian/moodle-block_eventsengine
/lib.php
UTF-8
14,015
2.9375
3
[]
no_license
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle...
true
838d7f790b1180d2c7e05b4e00fb6359ff86b4fc
PHP
hernan91/labProg
/api/internal/validations/users.php
UTF-8
5,046
2.640625
3
[]
no_license
<?php include_once("api/connection.php"); //No hay condiciones para las direcciones porque quizas existe ua 121 y ya se rompe todo function validations_users_validNewUser($username, $password, $email, $name, $lastname, $dni, $direction, $phone, $role){ $errors = array(); if(strlen($username)<6) $errors[] = 'El...
true
7abc0257dfa16ddb9299d365c5a1003a1a39c579
PHP
sivakrishnarajarapu/school-management-system
/app/Http/Controllers/backend/setup/StudentShiftController.php
UTF-8
1,983
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\backend\setup; use App\Models\StudentShift; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class StudentShiftController extends Controller { public function StudentShiftView() { $data['allData'] = StudentShift::all(); return view('backen...
true
6ed309112fe6e1602417af89499ae140cac32e5e
PHP
mohamedjs/blog_task
/app/Traits/ScopeActive.php
UTF-8
388
2.75
3
[]
no_license
<?php namespace App\Traits; use App\Constants\Status; use Illuminate\Database\Eloquent\Builder; trait ScopeActive { /** * scopeActive * when use this trait you can call active() function to get only active data in table * @param Builder $builder * @return Builder */ public function scopeActive(Builder $...
true
00b36acee00fe144d042fed4ad55be00c77b6a32
PHP
eggborne/customizable-name-generator
/src/php/loguserin.php
UTF-8
1,070
2.59375
3
[]
no_license
<?php include("config.php"); $postData = json_decode(file_get_contents("php://input"), TRUE); $username = $postData['username']; $pass = $postData['pass']; $token = $postData['token']; $hashSql = "SELECT pass FROM `users` WHERE username='$username'"; $hashedPass = strval(mysqli_fetch_array(mysqli_query(...
true
c0f81c0b02eae9a619f0652ae7854d3aaba9f81b
PHP
team-16/TimetablingSystem
/PHP/department.php
UTF-8
995
3.390625
3
[]
no_license
<?php // department.php // CREATED BY: // Niall Rose, Benjy Evans, Mofe Fafowora, Johnbastian Emilianus // FUNCTIONALITY: // Holds functions related to departments, including obtaining information about // all or specific departments, editing data of departments and deleting data of // departments. function getDepa...
true
dd4a17da998de87fb4d690edbe7ee4724f89f88f
PHP
nathanstephane/seniorProject_Klaegen
/klaegenAdmin/00select.php
UTF-8
1,827
2.53125
3
[]
no_license
<?php if(isset($_POST["employee_id"])){ include('includes/connect.php'); $output = ''; $query = "SELECT * FROM users WHERE id = '".$_POST["employee_id"]."'"; $result = mysqli_query($con, $query); while ($row = mysqli_fetch_array($result)) { $output.= ' <div class="row clearf...
true
3c7083e1f0773053507a0d6125d11b26ea28ded7
PHP
getcandy/core
/src/Models/TaxZonePostcode.php
UTF-8
1,147
2.515625
3
[ "MIT" ]
permissive
<?php namespace GetCandy\Models; use GetCandy\Base\BaseModel; use GetCandy\Base\Traits\HasMacros; use GetCandy\Database\Factories\TaxZonePostcodeFactory; use Illuminate\Database\Eloquent\Factories\HasFactory; class TaxZonePostcode extends BaseModel { use HasFactory; use HasMacros; /** * Return a ne...
true
92c831022d95e0688d7e4d63ab0fea31805679c2
PHP
cunheise/iplookup
/src/IPLookup/IPLookupService.php
UTF-8
1,073
2.953125
3
[ "LGPL-3.0-only", "LGPL-2.0-or-later", "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: nathan * Date: 2018/7/11 * Time: 10:22 */ namespace IPLookup; use IPLookup\Client\ClientInterface; use IPLookup\Exception\InvalidIpException; /** * Class IPLookupService * @package IPLookup */ class IPLookupService { /** * @var ClientInterface $client ; ...
true
4952241b95625b3d676d41bc1d46f356f7ae8237
PHP
renanbr/bibtex-parser
/src/Processor/TrimProcessor.php
UTF-8
1,140
2.96875
3
[ "MIT" ]
permissive
<?php /* * This file is part of the BibTex Parser. * * (c) Renan de Lima Barbosa <renandelima@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace RenanBr\BibTexParser\Processor; /** * @author Florent DESPIERRES...
true
234887f2cd228bc15568d6a62dbff3e9c294dc43
PHP
valdineifer/validation
/src/validations/Cns.php
UTF-8
2,199
3.171875
3
[ "MIT" ]
permissive
<?php /** * User: roberson.faria * Date: 22/12/16 * Time: 17:29 */ namespace RobersonFaria\Validation\Validations; use RobersonFaria\Validation\Contracts\CustomValidationInterface; class Cns implements CustomValidationInterface { public static function validate($attribute, $value) { $cns = $value...
true
ebc1b2f4ac1c530dfddcd79d493c02fade71c12f
PHP
knvelasquez/personal
/upload/list.php
UTF-8
1,171
2.5625
3
[]
no_license
<!Doctype html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>List</title> <link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" rel="stylesheet"> </head> <body> <table class="table ...
true
8b84c33ee42f589a5c4c29d85d651cf9f24f7e6d
PHP
montagnefrank/Dav
/print/barcode39.php
UTF-8
709
2.578125
3
[ "MIT" ]
permissive
<?php include('barcodegen/class/BCGFont.php'); include('barcodegen/class/BCGColor.php'); include('barcodegen/class/BCGDrawing.php'); include('barcodegen/class/BCGcode128.barcode.php'); function Barcode39($codigo){ $color_black = new BCGColor(0, 0, 0); $color_white = new BCGColor(255, 255, 255); $code = new BCGcode...
true
714db6ad1bde4d1257512ada0821657e07c32933
PHP
calebgomer/Gummy_Worm_Server
/gummyworm/snake/scores.php
UTF-8
1,244
2.65625
3
[]
no_license
<?php // error_reporting(-1); // ini_set('display_errors','On'); $url= "http://www.cis.gvsu.edu/~gomerc/snake/high_score.php?all=true"; $json = file_get_contents($url); $data = json_decode($json, TRUE); //var_dump($data); $scores = $data['scores']; // var_dump($scores); $dom = new DOMDocument('1.0', 'ISO-8859-1'); ...
true
1dd274b4d2fa1b49ec83b6f6bb7aff787d906bfa
PHP
DAlekseenko/Yii2-project
/app/common/models/PaymentTransactionsQuery.php
UTF-8
2,683
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use yii; /** * This is the ActiveQuery class for [[PaymentTransactions]]. * * @see PaymentTransactions */ class PaymentTransactionsQuery extends \yii\db\ActiveQuery { protected $tableName; public function init() { parent::init(); $this->tableName = PaymentTransactions::tabl...
true
84ee070e8f9b9cdf218f0d8c6059486ff1d9f81b
PHP
jinxunQi/phpFuncDaily
/func/str/2020-08-14/strtr.php
UTF-8
478
3.5
4
[]
no_license
<?php // +---------------------------------------------------------------------- // | strtr — 转换指定字符 // +---------------------------------------------------------------------- //the usage of from to $addr = strtr($addr, "äåö", "aao"); var_dump($addr); $trans = array("hi" => "hello", "hello" => "hi"); var_dump(strtr("h...
true
41ec47d24799fcd59a28f5c03acccbffa543b3cf
PHP
mahmudcse/welfare
/application/models/Division_model.php
UTF-8
1,583
2.53125
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * */ class Division_model extends CI_Model { function __construct() { parent::__construct(); } public function divisions(){ return $this->db->get('divisions')->result_array(); } public function division_save(){ $divisionData['di...
true
b27f39588521d312b62cb6cbc2cb06d3aa75dd09
PHP
techstunts/style
/backend/stylists/app/Models/Enums/Gender.php
UTF-8
117
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Models\Enums; class Gender{ const Female = "1"; const Male = "2"; const NA = "3"; }
true
c737704447bd4e4ce1fa496ad523970600ea7b89
PHP
saifislamfci/Blog
/admin/forget.php
UTF-8
2,261
2.75
3
[]
no_license
<?php include("../lib/session.php"); session::init(); ?> <?php include("../lib/Database.php");?> <?php include("../config/config.php");?> <?php include("../helpers/format.php");?> <?php $fm=new format; $db=new Database; ?> <!DOCTYPE html> <head> <meta charset="utf-8"> <title>Password Recovery</title> <link rel="s...
true
24f6df304af8138ae3912aa330969bf759a3da84
PHP
mykolabluz/filemanager
/New folder (10)/import txt/test.php
UTF-8
702
2.734375
3
[]
no_license
<?php $conn = new mysqli('localhost','root','','films'); $path = $_FILES['im']['tmp_name']; if(!empty($path)) { $file = fopen($path, "r"); while (!feof($file)) { $content = fgets($file); $carray = explode(",", $content); list($name,$age,$city) = $carray; // echo '<pre>'; // print_r($carray); /...
true
bc20b73b3658bb810b17dd25c567db4ed7c93a0b
PHP
jeanpasqualini-lesson/lesson-serializer
/src/Data/Person.php
UTF-8
935
3.21875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: darkilliant * Date: 3/10/15 * Time: 6:51 AM */ namespace Data; class Person { private $firstName; private $lastname; public function __construct($firstname = "", $lastname = "") { $this->firstname = $firstname; $this->lastname = $lastname...
true
a17f239383dd1aa6a005a623931e0215487b9bac
PHP
scastellotec/IAW_Ejercicios_2021-2022
/UD1_EjerciciosCorregidos/ejercicio7.php
UTF-8
2,589
3.4375
3
[]
no_license
<!-- Ejercicio 7 Escribe un programa que dado el valor de una variable dibuje un tablero cuadrado de ajedrez. Utiliza las etiquetas <table> <tr> <td> y la propiedad bgcolor=”#FFFFFF” o bgcolor=#000000 --> <!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="...
true
47e67fcb3103388c2471f182a49797441bdd4f2c
PHP
markaspot/markaspot
/modules/fa_icon_class/src/Tests/FaWidgetTest.php
UTF-8
6,375
2.640625
3
[]
no_license
<?php /** * @file * Contains \Drupal\fa_icon_class\Tests\FidgetTest. */ namespace Drupal\fa_icon_class\Tests; use Drupal\simpletest\WebTestBase; /** * Test basic functionality of the widgets. * * Create a content type with a fa_icon field, configure it with the * fa_icon_class_text-widget, create a node and ...
true
0557c425139abe98018ca2e08b93edf5c35ded46
PHP
OsmanPoonawala/HLH
/private/query_functions.php
UTF-8
17,583
2.765625
3
[]
no_license
<?php function find_member_by_nhsno($nhs_number) { global $db; $sql = "SELECT * FROM Patient "; $sql .= "WHERE nhs_number='" . $nhs_number . "' "; $result = mysqli_query($db, $sql); return $result; } function find_member_by_phno($mobile_phone) { global $db; $sql = "SELECT * FROM Patient ...
true
3aa7f5eccfda0a8c2e63b607b53a1224ad2052c4
PHP
curry684/tipctl
/src/Command/BigStorage/AttachVps.php
UTF-8
1,262
2.703125
3
[ "Apache-2.0" ]
permissive
<?php namespace Transip\Api\CLI\Command\BigStorage; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Transip\Api\CLI\Command\AbstractCommand; use Transip\Api\CLI\Command\Field; class AttachVps extends Abs...
true
1184323e9c0b89a08ce813c75c4acb471d9086e4
PHP
hakopcc/newsletter
/src/ArcaSolutions/CoreBundle/Services/ConsentService.php
UTF-8
9,358
2.671875
3
[]
no_license
<?php namespace ArcaSolutions\CoreBundle\Services; use ArcaSolutions\CoreBundle\Entity\AccountConsent; use Symfony\Component\DependencyInjection\ContainerInterface; /** * Class ConsentService * * @package ArcaSolutions\CoreBundle\Services */ class ConsentService { /** * @var ContainerInterface */ ...
true
45d4f12d45c8c150f5019ffea59e6ee42fabcd1e
PHP
JMDirksen/CustomDB
/login.php
UTF-8
1,466
2.609375
3
[]
no_license
<?php session_start(); require("functions.php"); require("header.php"); if(isset($_POST['login'])) { if($_POST['username'] == "root") redirect(); $_SESSION['username'] = $_POST['username']; $_SESSION['password'] = $_POST['password']; @$mysqli = new mysqli(ini_get("mysqli.default_host"), $_...
true
db4c001e05354f47a63039bff0ca9430395901bc
PHP
jneuendorf/python_to_php
/php/print.php
UTF-8
68
2.546875
3
[ "MIT" ]
permissive
<?php function __print(...$args) { echo implode(' ', $args); }
true
49ba26298d0d5d8f07040797f9f939a12726e0a3
PHP
ccnmtl/openid-wind-bridge
/wind.php
UTF-8
4,061
2.546875
3
[ "Apache-2.0" ]
permissive
<?php // PHP code to perform WIND auth. This code requires PHP 4.2 or // greater, compiled with OpenSSL 0.9.5 or greater and libcurl 7.03 or // greater. // debian packages: php5-curl // This version is compatible with WINDv1. Some minor adjustments will // be required to work with WINDv2. // Sample co...
true
ab79249fb90f341f5df3a4a69a9fb53161eec73d
PHP
hiiamrohit/email-validator
/classes/Net/DNS/RR/AAAA.php
UTF-8
4,563
2.65625
3
[]
no_license
<?php /** * License Information: * * Net_DNS: A resolver library for PHP * Copyright (c) 2002-2003 Eric Kilfoil eric@ypass.net * Maintainers: * Marco Kaiser <bate@php.net> * Florian Anderiasch <fa@php.net> * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.01 of the PHP li...
true
39bbef57794e9d561ce0f2f4d577dbeada589055
PHP
prafullgs/code-samples
/BulletinBoard/public_html/assignment3/admin/users/index.php
UTF-8
1,781
2.515625
3
[]
no_license
<?php $path = "../../"; $admincheck = 1; $page = "Users"; include("../../inc/adminheader.inc.php"); ?> <style> .tblborder2 td{ border:1px solid #000000; } </style> <H3 align="center">Here are all of the users that have been created on this blog. <BR><BR>If they are <font color="#009900">Green </font>means ...
true
e5f1ea79d375409c96fe1a417159a5ecae3e8c2f
PHP
linktem/mvc
/controllers/ApiController.php
UTF-8
5,708
2.78125
3
[]
no_license
<?php /** * @author 林维 * @date 2018-9-7 */ class ApiController { //主模块基类名 static protected $current_module = 'Api'; //主业务逻辑类名 static protected $current_class = ''; //主业务逻辑类中的方法名 static protected $current_action = ''; //返回消息 static protected $return_json = array( 'status' => ...
true
fb03ffdba02c69de041cc48d30038bcd4cb1bc07
PHP
kriansa/CoffeeFW2
/bundles/Coffee/src/Core/Profiler.php
UTF-8
5,596
2.6875
3
[]
no_license
<?php namespace Core; class Profiler { /** * Resource types of the profiler */ const MARK = 1; const MARK_MEMORY = 2; const DB_BENCHMARK = 3; const APP_STATS = 4; /** * Whether the profiler is enabled or not * @var bool */ protected static $_enabled = false; /** * Store the last query * @var s...
true
9fa30b5f4a75b75b1ca704d5f96f1f0fbb90b866
PHP
Claudo/cms
/application/views/categories/tree.php
UTF-8
1,022
2.8125
3
[ "MIT", "LicenseRef-scancode-dco-1.1" ]
permissive
<?php echo buildTree($tree, 0); //-------------------------------------------------------------------------------------------------- // Создает дерево из массива категорий //-------------------------------------------------------------------------------------------------- function buildTree($tree, $parentId) { ...
true
3282d5e6cf7b619bc292a77b8f0fd760522ea48b
PHP
ReehnataCarvalho/ManiaDeArteAtelie-Site
/admin/banner/atualizar-banner.php
UTF-8
1,212
2.65625
3
[]
no_license
<?php // Carregar as Informações do form pelo id require_once("class/Banner.php"); $id = $_GET["id"]; $ban = new Banner($id); // Atualizar if(isset($_POST["titulo"])){ $titulo = $_POST["titulo"]; // Receber Img $endImg =$_FILES["img"]; if(move_uploaded_file($img[tmp_name],"../img/".$img[name])){ $e...
true
43fc7e78103c7d368cf95b3a49c49371ea27d7e7
PHP
sdmilineam/healthcall
/src/Entity/Specialite.php
UTF-8
2,121
2.515625
3
[]
no_license
<?php namespace App\Entity; use App\Repository\SpecialiteRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=SpecialiteRepository::class) */ class Specialite { /** * @ORM\Id * @ORM\...
true
c97c86d1d33fd965167d138341ffaa559c8c2818
PHP
yasminezzz/projet-web-2A14
/categorieC.php
UTF-8
2,530
2.765625
3
[ "CC-BY-4.0", "CC-BY-3.0" ]
permissive
<?PHP include_once "C:\wamp64\www\issam\config.php"; class categorieC { function affichercategorie ($categorie){ echo "nom: ".$categorie->getnom()."<br>"; } function ajoutercategorie($categorie){ $sql="insert into categorie (nom) values (:nom)"; $db = config::getConnexion(); try{ $req=$db->p...
true
2eb638a2b291510f434e1cd6a57db0f02bba9881
PHP
Shiiyo/Projet5_Blog_PHP
/Controller/Admin/ConnectionFormController.php
UTF-8
1,427
2.59375
3
[]
no_license
<?php namespace Controller\Admin; use Controller\ControllerInterface; use Controller\ControllerTrait; class ConnectionFormController implements ControllerInterface { use ControllerTrait; public function __invoke() { $request = $this->getContainer()->newHttpRequest(); //Check form fields...
true
00593621f8bb4f761117cf0a7c71e229b897a438
PHP
stokmedia/sage
/app/Classes/Ajax.php
UTF-8
2,493
2.59375
3
[ "MIT" ]
permissive
<?php namespace App; class Ajax { public function __construct() { // Set global AJAX variable add_action( 'wp_head', [$this, 'set_ajax_url'] ); add_action( 'wp_ajax_get_payment_method_form', [$this, 'get_payment_method_form'] ); add_action( 'wp_ajax_nopriv_get_payment_method_...
true
9e4ce081278d61d67f9d7c4288cf652e2a6bedbb
PHP
yudissetyawan/erp
/prj/input_progress_header.php
UTF-8
6,240
2.546875
3
[]
no_license
<?php require_once('../Connections/core.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue...
true
f44202063d17f13bd050b2fa52e2ee8c30a765dc
PHP
Jcharles04/phpproject
/apache_workspace/PhpProject/log/loginuser.php
UTF-8
674
2.640625
3
[]
no_license
<?php include_once '__app.php'; require_once __DIR__ . '/../Database/db.php'; unset($_SESSION['login_error']); $userName = $_POST['email']; $password = $_POST['password']; error_log("Login with $userName / $password"); try { $userData = login($userName, $password); if (!$userData) { //Login échoué ...
true
429c3d73916676a3bbb9318043589294f686fdcc
PHP
budde377/Part
/test/lib/StubSiteFactoryImpl.php
UTF-8
2,310
2.703125
3
[ "MIT" ]
permissive
<?php namespace ChristianBudde\Part; use ChristianBudde\Part\util\task\TaskQueue; use ChristianBudde\Part\util\task\TaskQueueImpl; /** * User: budde * Date: 5/28/12 * Time: 3:55 PM */ class StubSiteFactoryImpl implements SiteFactory { private $preScriptChain; private $postScriptChain; private $confi...
true
1e5d752dad89b8dceb8f55bcaf63e4a5f6c658b3
PHP
Raz0rwire/shor.tl
/src/Infrastructure/JsonFormatter.php
UTF-8
1,054
2.8125
3
[]
no_license
<?php namespace Shortl\Shortl\Infrastructure; use Shortl\Shortl\Contracts\Formatter; /** * Class JsonFormatter * @package Shortl\Shortl\Infrastructure */ final class JsonFormatter implements Formatter { private $output; /** * JsonFormatter constructor. */ public function __construct($data) ...
true
7ccc1979e604618558143cfd6280e215c22a7e3a
PHP
russosx/tests
/CloudConsulting/php_task/index.php
UTF-8
3,222
3.1875
3
[]
no_license
<?php function el($s, $cr = "<br>") { echo "$s$cr"; } /* 1) Print an associative array as an ASCII table. E.g you have this array: */ el("1) Print an associative array as an ASCII table"); $array = array( array( 'Name' => 'Trixie', 'Color' => 'Green', 'Element' => 'Earth', 'Lik...
true
04a5dedadab2e2a0827c6f7639c23276e097df66
PHP
ci5aIo/Qboqx-2.3.8
/mod/shelf/classes/shelf/Session.php
UTF-8
1,119
3.015625
3
[]
no_license
<?php namespace Shelf; use ElggUser; class Session { /** * Gets the logged in user * @return ElggUser */ public function getLoggedInUser() { return elgg_get_logged_in_user_entity(); } /** * Return the current logged in user by guid * @return int */ public function getLoggedInUserGuid() { $user...
true
02dde0594bdb374f595c5756061e42a771ae4315
PHP
Jorgeley/Real-State
/imobiliaria/docs/EquipeUsuario.php
UTF-8
1,353
2.71875
3
[]
no_license
<?php namespace MyClasses\Entities; /** * @Entity */ class EquipeUsuario{ /** @Id @Column(type="integer") * @GeneratedValue(strategy="AUTO") */ private $id; /** * @ManyToOne(targetEntity="AclUsuario", inversedBy="equipes") * @JoinColumn(name="usuario_id", referencedColumnName=...
true
4e502c4c46ffe3ce523222ca2dad5cb17571ec6e
PHP
Kevlar2228/Edumo
/class.php
UTF-8
3,451
2.59375
3
[]
no_license
<?php require 'header.php'; require 'includes/db.inc.php'; $idClass = $_GET['idClass']; $_SESSION['idClass'] = $idClass; $userType = $_SESSION['typeSet']; $idUsers = $_SESSION['idUsers']; $sql = "SELECT * FROM classes WHERE idClasses=?;"; $stmt = mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt, $sql)) { ...
true
3c3cd9808c27f87aaf17079b95ea24faa84c93c5
PHP
Tellmekim/laravel
/app/Models/Config.php
UTF-8
1,071
2.734375
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; /** * App\Models\Rule * * @property-read \Illuminate\Database\Eloquent\Collection|\App\Models\Role[] $roles * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Rule newModelQuery() * @method static \Illuminate\Database\Eloquent\Bu...
true
c6db72d6dc330babbf35e295b99362e6f6735516
PHP
capons/dev-message
/application/models/_message.php
UTF-8
13,624
2.546875
3
[]
no_license
<?php /** * This class manages message information. * * @author Al Zziwa <al@clout.com> * @version 1.3.0 * @copyright Clout * @created 10/03/2015 */ class _message extends CI_Model { # Get list of messages function get_list($userId, $offset, $limit, $filters=array()) { log_message('debug', '_message/get_...
true
8a0258a7f5dc46c8e838882c0ac906efa12d8409
PHP
sophpie/testbox
/TestBox/Framework/DependencyInjector/StandardInjector.php
UTF-8
1,551
2.90625
3
[]
no_license
<?php namespace TestBox\Framework\DependencyInjector; use TestBox\Framework\Configuration\ConfigurationInterface; class StandardInjector extends InjectorAbstract { /** * Constructor * * @param array $options : Injection parameters */ public function __construct(ConfigurationInterface $op...
true
b9da2eae0bb2b8430f6c8628051d1552d9e224e9
PHP
marhusar/separation-of-concerns
/app/Communication/Policy/ShowMessagePolicy.php
UTF-8
910
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Communication\Policy; use App\Communication\Entity\Message; use App\Membership\Repository\MembershipRepository; use App\User; use phpDocumentor\Reflection\Types\Boolean; class ShowMessagePolicy { /** @var MembershipRepository */ private $membershipRepository; /** * @param Member...
true
9c823c186021d10175650a8e68ce568c34069bf1
PHP
spacetab-io/harmony-validation-php
/tests/Unit/Rule/Text/NoControlCharactersTest.php
UTF-8
1,393
2.78125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace HarmonyIO\ValidationTest\Unit\Rule\Text; use Generator; use HarmonyIO\Validation\Result\Result; use HarmonyIO\Validation\Rule\Text\NoControlCharacters; use HarmonyIO\ValidationTest\Unit\Rule\StringTestCase; class NoControlCharactersTest extends StringTestCase { /** *...
true
4b2ace8dbd52fc18bc1efbda6bd0771f6829eb71
PHP
GBozhilov/PHP-Web-Development-Basics
/31. MY EXAM/MyExam/App/Data/GenreDTO.php
UTF-8
1,043
3.328125
3
[]
no_license
<?php namespace App\Data; class GenreDTO { private const NAME_MIN_LENGTH = 3; private const NAME_MAX_LENGTH = 50; /** * @var int */ private $id; /** * @var string */ private $name; /** * @return int */ public function getId(): int { return ...
true
081e697cee8bb631de78ce13e858af2c5c421dc6
PHP
speich/WebsiteTemplate
/scripts/php/html/Form.php
UTF-8
3,213
3.3125
3
[]
no_license
<?php namespace WebsiteTemplate\html; use PDOStatement; /** * Class to create HTMLFormElements. * * This base class defines a number of attributes and methods to deal with * HTMLAttributes that are shared by all HTMLFormElements, such as the label, disabled, selected attribute. * TODO: add method renderAttribut...
true
caf968b2543025e7198987ae313e0cc77f0c83bb
PHP
gergo85/oc-sellproducts
/payments/barion/models/common/UserModel.php
UTF-8
592
2.765625
3
[ "MIT" ]
permissive
<?php namespace Indikator\SellProducts\Payments\Barion\Models\Common; use Indikator\SellProducts\Payments\Barion\Helpers\iBarionModel; use Indikator\SellProducts\Payments\Barion\Models\Common\UserNameModel; class UserModel implements iBarionModel { public $Name; public $Email; function __construct() ...
true
37cfef5e95b69dee7728eb49a1595a562eb005b8
PHP
marcosciarra/web
/da_controllare/sviluppiAle-master/importCSV/import.php
UTF-8
559
3.015625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: alessandro * Date: 09/01/18 * Time: 12.09 */ function csv_to_array($filename='', $delimiter=';') { if(!file_exists($filename) || !is_readable($filename)) return FALSE; $data = array(); if (($handle = fopen($filename, 'r')) !== FALSE) { fget...
true
bf00ce1ea90ccd2e0ac0511b5cdccaec3d1946ca
PHP
catenare/smartsheet-api
/main.php
UTF-8
1,108
2.84375
3
[]
no_license
<?php use Symfony\Component\Console\Application; use SmartSheet\SmartSheet; class Main { /** * @var \SmartSheet\SmartClient */ private $smartsheet = NULL; /** * Main constructor. */ public function __construct( ) { $this->smartsheet = new SmartSheet(); $this->application = new Application(...
true
0cfb3b7dddb876fba4a1c4b86e068df43615b145
PHP
zbierajewski/SupportPress
/bin/fix-r200.php
UTF-8
565
2.515625
3
[]
no_license
<?php require_once dirname( __FILE__ ) . '/../base-init.php'; $thread_id = 0; do { $thread_ids = $wpdb->get_col( $wpdb->prepare( "SELECT thread_id FROM $db->threads WHERE messages > 1 AND thread_id > %s LIMIT 50", $thread_id ) ); foreach( $thread_ids as $thread_id ) { echo $thread_id.chr(10); $wpdb->query( $wpd...
true
8eac68ad94715d33589f4b488f43e39922fc61cc
PHP
deepthid/LGIportal
/lgi/php/login.php
UTF-8
1,345
2.765625
3
[]
no_license
<?php /** * This file handles user login. * @author Deepthi */ /** * */ // Include the main class, the rest will be automatically loaded require_once 'Dwoo/dwooAutoload.php'; require_once 'utilities/login_utilities.php'; require_once 'utilities/sessions.php'; require_once 'utilities/errors.php'; $dwoo = new Dwo...
true
0d4f6d60ec3e6a70c6b3bec83d28049fb1a68ef2
PHP
agalvaro/PROYECTO_IAW_1718
/admin/editar_usuario.php
UTF-8
3,827
2.609375
3
[]
no_license
<?php session_start(); if ( isset($_SESSION["user"])) { } else { session_destroy(); header("Location: ../login.php"); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title></title> <link rel="st...
true
a44161452fe2d33933074ef2eea99bb6714739b4
PHP
uc-group/daffy
/src/Model/Dockerfile/Layer/Definition.php
UTF-8
1,136
2.9375
3
[ "MIT" ]
permissive
<?php namespace App\Model\Dockerfile\Layer; class Definition { /** * @var string */ private $type; /** * @var array */ private $arguments; /** * @param string $type * @param array $arguments */ private function __construct(string $type, array $arguments) ...
true
8aa1b4af4070d367661354c25d39b88098c4e8bd
PHP
olzimmerberg/olz-website
/src/Startseite/Components/OlzCustomTile/OlzCustomTile.php
UTF-8
1,210
2.546875
3
[ "MIT" ]
permissive
<?php // ============================================================================= // Zeigt eine Startseiten-Kachel mit manuell eingegebenem Inhalt an. // ============================================================================= namespace Olz\Startseite\Components\OlzCustomTile; use Olz\Components\Common\Olz...
true
5c11a323754073a597373cd5d40aec28960ade09
PHP
estoianovici/tools
/visual_valgrind/errorcount.php
UTF-8
348
2.78125
3
[]
no_license
<?php class ErrorCount{ var $run_id; var $error_id; var $error_count; public function write($link){ $query = "UPDATE errors SET error_count = ".$this->error_count." WHERE vg_id = '".$this->error_id."' AND run_id = ".$this->run_id; mysql_query($query, $link) or die ("$query\n "....
true
7723ab341f14f2f8413d57c866aec0be8c3d070e
PHP
Estigy/PHP-LinkList
/application/models/User.php
UTF-8
369
2.53125
3
[]
no_license
<?php class Model_User extends Core_Model { protected $avatar = null; public function __construct ($data = array()) { $this->properties += array( 'id' => 0, 'username' => null, 'password' => null, 'firstname' => null, 'lastname' => null, 'email' => null, 'role' => null, ...
true
0c9c1041af84a8bbbe059bddb07c2bfdc916ed50
PHP
oswen244/proserpaz
/models/Prestamos.php
UTF-8
2,205
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "prestamos". * * @property integer $id_prestamo * @property string $monto * @property string $interes_mensual * @property integer $num_cuotas * @property string $valor_cuota * @property string $fecha_prest * @property string $fecha...
true
bc53543b4db12f86ecadfbb0fac1728756db35c7
PHP
MarekPadd13/symfony
/src/Handler/User/ConfirmationHandler.php
UTF-8
1,021
2.609375
3
[]
no_license
<?php namespace App\Handler\User; use App\Entity\User; use App\Repository\UserRepository; use Symfony\Contracts\Translation\TranslatorInterface; final class ConfirmationHandler { private const CODE_CONFLICT = 409; private UserRepository $repository; private TranslatorInterface $translator; public f...
true
cee6683a1b97e1e9b9e07f0427b1994a1c565c1c
PHP
thirty9th/yolo-archer
/login.php
UTF-8
3,248
3.09375
3
[]
no_license
<?php session_start(); ini_set('session.use_cookies', '1'); /////////////////////////////////////////////////////////////////////////////////////////////////// // Functions /////////////////////////////////////////////////////////////////////////////////////////////////// // Check the user's entered login info again...
true
459e28c29f4ede2cbb60dab49b802abf484953d1
PHP
bhawnasagar03/security
/app/Wishlist.php
UTF-8
664
2.796875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Wishlist extends Model { public $guards=null; public $totalQty; public function __construct($oldWishlist) { if($oldWishlist) { $this->guards =$oldWishlist->guards; $this->totalQty =$oldWishlist->totalQty; ...
true
f7c7dd5fbb74afcc4f152aa29893cae82fdb8d85
PHP
superikq/line-bot-exam-php
/response.php
UTF-8
2,787
2.640625
3
[]
no_license
<?php // Get Data From POST Http Request $datas = file_get_contents('php://input'); $deCode = json_decode($datas,true); file_put_contents('log.txt', file_get_contents('php://input') . PHP_EOL, FILE_APPEND); $type = $deCode['events'][0]['type']; $replyToken = $deCode['events'][0]['replyToken']; $userId = $deCo...
true
b0ca9d9fcd647f7a7246545c8a2ca61c622ad8f7
PHP
angelafeng2013/paidforresearch.com
/anuratest/login.php
UTF-8
2,605
2.515625
3
[]
no_license
<?php session_start(); $url = explode('/', $_SERVER['PHP_SELF']); //check if logged in if(isset($_SESSION['logged_in']) && $_SESSION['logged_in'] == 1) { echo '<script>window.location.replace("/'.$url[1].'/");</script>'; exit; } $un = ''; $incorrectPass = false; if(isset($_POST['username'], $_...
true
8bfea8949fb41a768fa4c0dd0b8c61c625899fbe
PHP
Basttyy/PowerStove
/resource/utilities.php
UTF-8
11,307
3.34375
3
[]
no_license
<?php /** * @param $required_fields_array, n array containing the list of all required fields * @return array, containing all errors */ function check_empty_fields($required_fields_array){ //initailize an array to store all error messages $form_errors = array(); //loop t...
true
435f6e09d7ed82723832118933de3a815fffe850
PHP
mszoltysek/dpd-client
/src/DPDAppServices/CollectionOrder/CollectionOrderResponse.php
UTF-8
2,564
2.625
3
[ "MIT" ]
permissive
<?php namespace Webit\DPDClient\DPDAppServices\CollectionOrder; use JMS\Serializer\Annotation as JMS; use Webit\DPDClient\DPDAppServices\Common\OpenUMLF\OrderedPackage; /** * Class CollectionOrderResponse * @package Webit\DPDClient\DPDAppServices\CollectionOrder * @JMS\XmlRoot("PackagesImportResponse") */ class ...
true
5c47446d2d6c09c18cd362cfd282764b0a6ebe89
PHP
furtuna91/pizzahouse
/app/Http/Controllers/PizzaController.php
UTF-8
2,463
2.5625
3
[ "Apache-2.0", "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Pizza; use Illuminate\Http\Request; class PizzaController extends Controller { public function __construct() { // $this->middleware('auth'); // $this->middleware('auth')->only('index'); $this->middleware('auth')->except('create', 'store'...
true
0b599367f8d89932d70fd9306251e4ec45e00241
PHP
2tankov2/php-exercises
/testsWithMock.php
UTF-8
2,750
2.9375
3
[]
no_license
<?php /** * Существует подход для работы с базой данных, в котором сама сущность отвечает за свое сохранение в базу. Этот подход * называется ActiveRecord. С точки зрения грамотной архитектуры это решение не очень хорошее, но благодаря простой * реализации является весьма популярным среди программистов. Да и больши...
true
f748f4ed305103e33dff8bc682dd696a6c8dc765
PHP
sirbiladz3/paginator
/app/Pagination/Renderers/PlainRenderer.php
UTF-8
1,281
3.046875
3
[]
no_license
<?php namespace App\Pagination\Renderers; /** * Class PlainRenderer * @package App\Pagination\Renderers */ class PlainRenderer extends RendererAbstract { /** * @param array $extra * @return mixed|string */ public function render(array $extra = []) { $iterator = $this->pages(); ...
true