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
505dfc91294c5100b5ea67bcb2098915625f5e23
PHP
firmanJS/pikobar-logistik-api
/app/Usage.php
UTF-8
8,955
2.84375
3
[ "MIT" ]
permissive
<?php /** * Class for storing all method & data regarding item usage information, which * are retrieved from Pelaporan API */ namespace App; use GuzzleHttp; use JWTAuth; class Usage { static $client=null; static function getClient() { if (static::$client == null) { static::$cli...
true
9a5b820aa2c67545028f83144bbc18d635df2d4f
PHP
jeckel/ApiMocker
/src/Middleware/FakeApiLoggerMiddleware.php
UTF-8
1,490
2.71875
3
[]
no_license
<?php declare(strict_types=1); /** * @author Julien Mercier-Rojas <julien@jeckel-lab.fr> * Created at : 17/09/2019 */ namespace App\Middleware; use App\Entity\ApiCallTrace; use App\Repository\ApiCallTraceRepository; use DateTimeImmutable; use Exception; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\...
true
37895eb0e70408e87cfdac48735772c402393e91
PHP
ricardonogueira/compras_session
/adicionar_produto.php
UTF-8
862
2.59375
3
[]
no_license
<?php session_start(); if(isset($_POST['produto'])) { switch($_POST['produto']) { case '1': $_SESSION['produto1'] = 'Bicicleta'; break; case '2': $_SESSION['produto2'] = 'Panelas'; break; case '3': $_SESSION['produto3'] = 'Mesas'; break; case '4': $_SESSION['produto4'] = 'Video Games'; break; case...
true
bb4da352551c66e7939b6910c4748934765b553b
PHP
suguru-kajiyama/kakeibo
/myApp/myapps/webeKaji/apps/kakeibo/controller/balance.php
UTF-8
560
2.515625
3
[]
no_license
<?php require_once("../model/BalancesTable.php"); $db = new BalancesTable(); session_start(); $u = $_SESSION["userId"]; if(isset($_POST["kind"])){ if($_POST["kind"]=="month"){ $y = $_POST["yyyy"]; $m = $_POST["m"]; $rec = $db -> getOneMonthBalances($u,$y,$m); $dates = ""; /...
true
970f886fb25fd4ce51961599cfb2189623d30884
PHP
poojakarthik/my-work
/lib/rollout/version/Flex_Rollout_Version_000139.php
UTF-8
1,227
2.671875
3
[]
no_license
<?php /** * Version 139 of database update. * This version: - * 1: Add the Service.residential Field */ class Flex_Rollout_Version_000139 extends Flex_Rollout_Version { private $rollbackSQL = array(); public function rollout() { $dbAdmin = Data_Source::get(FLEX_DATABASE_CONNECTION_ADMIN); // 3: Add th...
true
376d634224077f0844c8750836d3349b904b96d0
PHP
squizlabs/PHP_CodeSniffer
/src/Standards/Squiz/Tests/PHP/DisallowMultipleAssignmentsUnitTest.inc
UTF-8
1,998
3.015625
3
[ "BSD-3-Clause" ]
permissive
<?php function getVar($varname='var', $var='var') { $var = $var2 = getVar(); $var = $var2 = $var3 = ''; if ($varname === 'var' || $var2 === 'varname' || $var = true) { $var[($var + 1)] = $var2; $var[($var = 1)] = $var2; } for ($i = $var; (null !== ($key = key($i))); next($i)) { ...
true
01f32397c94a2c37f73c4f58f66cadea16038d84
PHP
Yop-La/spamtonprof
/stp_api/StpCompteManager.php
UTF-8
4,325
2.609375
3
[]
no_license
<?php namespace spamtonprof\stp_api; class StpCompteManager { private $_db; public function __construct() { $this->_db = \spamtonprof\stp_api\PdoManager::getBdd(); } public function add(StpCompte $StpCompte) { $q = $this->_db->prepare('insert into stp_compte(date_creation, re...
true
602b5040ac57613847dfef21753cdad18ccd56de
PHP
chenerzhang/songxia
/end/fn4.php
UTF-8
474
2.625
3
[]
no_license
<?php if (isset($_POST['id'])) { $uuid = $_POST['id']; } if (isset($_POST['passwd'])) { @$fp = fopen($uuid."admin.txt", 'r'); //读取指令 } else { echo 0; } if (!$fp) { echo '文件不存在'; exit(); } while (!feof($fp)) { //从文件进行一行一行读取 $strline = fgets($fp); if (strlen($strline) > 1) { //若为空行则不进行读取 ...
true
9d95c7143f8f2e023fd37bc71e98d6bdd5b258ea
PHP
dinkardhawale/Amistar
/amistar.in/scripts/insert.php
UTF-8
2,338
2.5625
3
[]
no_license
<?php $conn=mysql_connect('localhost','satsolu_amistar','amistar_root123') or die('Could not connect: ' . mysql_error()); $name=$_POST['name']; $phone_no=$_POST['phone_no']; $email=$_POST['email']; $website=$_POST['website']; $message=$_POST['message']; mysql_select_db("satsolu_amistar",$conn); if (!$conn) { die('C...
true
5b17b74eb347f3f9853597c6afb831fbc904b408
PHP
djfm/pstest
/src/pstest/Shop/Service/Installer.php
UTF-8
2,611
2.703125
3
[]
no_license
<?php namespace PrestaShop\PSTest\Shop\Service; use Exception; use PrestaShop\PSTest\Shop\LocalShop; class Installer { private $shop; private $browser; public function __construct(LocalShop $shop) { $this->shop = $shop; $this->browser = $shop->getBrowser(); } /** * Ins...
true
0ced6f45676ba0f022a11babfec1bce2842c6dc9
PHP
muszkin/greencell-cli
/generator.php
UTF-8
4,263
3.21875
3
[]
no_license
<?php declare(strict_types=1); ini_set("error_log", "exception.log"); define("VOWELS", ["a", "e", "i", "o", "u", "y"]); define("CONSONANTS", ["b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "q", "r", "s", "t", "v", "w", "x", "z"]); function getNextLetter(bool $forceVowel = false, bool $forceConsonant = fa...
true
7c79a6b718fa918c9e0941e679860d5bb4308a4f
PHP
magroski/bob-ross
/src/Painter.php
UTF-8
8,273
3.0625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace BobRoss; use BobRoss\Handlers\PersistenceHandler; use BobRoss\Utils\UploadHandler; use BobRoss\ValueObject\Image; class Painter { /** @var \BobRoss\Utils\UploadHandler */ private $uploadHandler; /** @var \BobRoss\Handlers\PersistenceHandler */ private $persis...
true
d21b685c5100a6cb40adff1b5caffc125de87ddb
PHP
jlaso/my-simple-web
/app/models/Entity/EntityFixture.php
UTF-8
2,157
2.90625
3
[ "MIT" ]
permissive
<?php namespace Entity; use \app\models\core\FixturableInterface; use \Entity\Config; use \app\models\core\Registry; /** * Configures the backend administrable entities */ class EntityFixture implements FixturableInterface { /** * Creates a new item from $assocArray and inserts into DB * * @par...
true
5aadf79178a9b11ef618ee952f73cd076f72c2a5
PHP
cmartinez84/library
/tests/BookTest.php
UTF-8
4,220
2.96875
3
[ "MIT" ]
permissive
<?php // ./vendor/bin/phpunit tests /** * @backupGlobals disabled * @backupStaticAttributes disabled */ require_once "src/Book.php"; require_once "src/Copy.php"; $server = 'mysql:host=localhost:8889;dbname=library_test'; $username = 'root'; $password = 'root'; $DB = new PDO($se...
true
ac382392ee218a07e94df50a58c7226e829771f7
PHP
kktsvetkov/pregled.kaloyan.info
/investor_bg.php
UTF-8
1,113
2.578125
3
[]
no_license
<?php /** * @version svn:$Id$ */ /** * @see pregled */ require 'pregled.php'; /** * Fetch the "Pregled na pechata" from "Investor.bg" */ Class pregled_investor_bg Extends pregled { /** * @var string name of the folder where to store the fetched and parsed HTML */ protected $archive = 'investor_bg'; /** * @var...
true
75407b5edd2d13e2f49e963a7321549e71d3d13e
PHP
johnny13/phpalette
/src/Wallpaper/Circle.php
UTF-8
25,906
3.125
3
[]
no_license
<?php declare(strict_types=1); namespace Wallpaper; use Imagine\Image; use Imagine\Image\Palette\RGB; use Imagine\Image\Box; use Imagine\Image\Point; /** * Circle * @abstract This class builds out Circle Themed wallpapers. There are a number of different templates some with a few circles some with quite a few cir...
true
b2e7b17a0287aff6f92bebc8a681b1c66305efc6
PHP
nil1511/t20
/functions.php
UTF-8
246
2.765625
3
[]
no_license
<?php function formatDate($date='',$time=''){ return strftime("%d %b,%Y %A at %I:%M %p",strtotime($date.' '.$time)); } function played($date='',$time=''){ return (strtotime('now')-strtotime($date.' '.$time))<(14400)?'Not Played':'Played'; } ?>
true
df370a298f92f104f073e700095a6868cce35a3f
PHP
j27song/secure-blog
/user-prof.php
UTF-8
1,244
2.5625
3
[]
no_license
<?php require('includes/config.php'); if($user->is_logged_in()){ header('Location: index-logged.php'); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Blog</title> <link rel="stylesheet" href="style/normalize.css"> <link rel="stylesheet" href="style/main.css"> </head> <body> ...
true
61bf88302217898565e2c7a884afa7d82706fb8b
PHP
Sladeck/ORM
/src/main/query.php
UTF-8
3,578
2.765625
3
[]
no_license
<?php class Query { private $pdo; private $select = "*"; private $sorting = "id ASC"; private $where = "1"; private $limit = ""; function __construct() { $data = json_decode(file_get_contents(__DIR__."/../../app/config/config.json")); $this->pdo = new MedruPDO ( 'mysql:host='.$data->dataBaseHost.';dbn...
true
8939f6171a41e206684162d1ce8c2c58d9892e08
PHP
sxy905/jiuxian
/service/login.php
UTF-8
1,022
2.515625
3
[]
no_license
<?php header("Content-Type: text/html;charset=utf-8"); # 先获取提交的参数 $username = $_REQUEST["username"]; $password = $_REQUEST["password"]; // $username ="15119109312"; // $password ="731f55bde88f4eac"; # 连接数据库并且到数据库中进行查询 $db = mysqli_connect("127.0.0.1", "root", "", "jiuxian"); # 用户名存在 && 密码要正确 # 检查指定的用户名 $sql = "SELEC...
true
c7760eadc0f0d1f3b3988994c71282b861a078ad
PHP
Aetius/TodoList
/src/Factory/UserFactory.php
UTF-8
424
2.671875
3
[]
no_license
<?php namespace App\Factory; use App\Entity\User; use Symfony\Component\Security\Core\User\UserInterface; class UserFactory { /** * @return User */ public function create(UserInterface $user = null) { $newUser = new User(); if (null !== $user && in_array('ROLE_ADMIN', $user->get...
true
6f15ba0728c024e140494e99ef6719a6c638e696
PHP
Perturbatio/corcel
/src/Corcel/PostBuilder.php
UTF-8
1,360
2.765625
3
[ "MIT" ]
permissive
<?php /** * Corcel\PostBuilder * * @author Junior Grossi <juniorgro@gmail.com> */ namespace Corcel; use Illuminate\Database\Eloquent\Builder; class PostBuilder extends Builder { /** * Get only posts with a custom status * * @param string $postStatus * @return \Corcel\PostBuilder ...
true
db9f953af01b2b738ce854eb31ffabc9a13848b6
PHP
krisdb2009/Simple-Inventory
/act/editcats.inc
UTF-8
2,175
2.703125
3
[]
no_license
<?php // Cedar Point 2016 // Dylan Bickerstaff // CFIT Inventory $error = ''; $success = ''; if(isset($_POST['add']) || isset($_POST['remove'])) { if(isset($_POST['add']) && isset($_POST['category']) && !empty($_POST['category'])) { $cats = loadDB('categories'); foreach($cats as $val) { ...
true
a5568884af21009070cc5551a5c8307ce089b6ac
PHP
vipcristedo/php21.zent
/Unit09_MVC/models/Post.php
UTF-8
3,592
2.9375
3
[]
no_license
<?php /** * */ require_once 'models/connection.php'; class Post { var $connection_obj; function __construct(){ $this->connection_obj = new Connection(); } // function to_slug($str) { $str = trim(mb_strtolower($str)); $str = preg_replace('/(à|á|ạ|ả|ã|â|ầ|ấ|ậ|ẩ|ẫ|ă|ằ|ắ|ặ|ẳ|ẵ)/', 'a', $str); ...
true
292b5c9bf7b9b77f4f0f8fbeeda632ba23ba288e
PHP
GeraldJosue/icoder
/database/migrations/2017_06_18_030519_create_table_registro_civil.php
UTF-8
934
2.515625
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTableRegistroCivil extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('registro_...
true
d60e93e874e6f939516bce4c4adc3cdf4ba1563b
PHP
PixRorchar/Projet3
/src/Entity/SousGroupe.php
UTF-8
2,283
2.5625
3
[]
no_license
<?php namespace App\Entity; use App\Repository\SousGroupeRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=SousGroupeRepository::class) */ class SousGroupe { /** * @ORM\Id * @ORM\...
true
e8d287b96f3b2166d53c6af159d48159b1650ef2
PHP
mydevsolution/real-force-test
/tests/SalaryCalculatorTest.php
UTF-8
1,003
2.9375
3
[]
no_license
<?php use PHPUnit\Framework\TestCase; use \App\Employee; use Money\Money; use \App\SalaryCalculator; final class SalaryCalculatorTest extends TestCase { /** * @param Employee $employee * @param Money $expected * @dataProvider calculateEmployeeSalaryProvider */ public function testCalculat...
true
f17d2e1247550163547542bc0f61af8c7e8565ed
PHP
NaufalRivaldi/cwa_scm
/app/Imports/MerkImport.php
UTF-8
769
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Imports; use App\Merk; use Maatwebsite\Excel\Concerns\ToModel; use Maatwebsite\Excel\Concerns\WithHeadingRow; class MerkImport implements ToModel, WithHeadingRow { /** * @param array $row * * @return \Illuminate\Database\Eloquent\Model|null */ public function model(array $...
true
7e7ab0a0546beec5ae9074fd405efffdbee63a85
PHP
Gleomit/PHP-Basics
/PHP Flow Control - Homework/Problem 2. Rich Peoples Problems/CarRandomizer.php
UTF-8
1,156
3.234375
3
[]
no_license
<!DOCTYPE html> <html> <head> </head> <body> <form action="CarRandomizer.php" method="post"> <label for="inputString">Enter cars</label> <input type="text" name="inputString"> <input type="submit" value="Show result" name="submit"/> </form> <?php if(isset($_P...
true
335dfa1631f040a4de04a0852bebe68fe5fd0cd1
PHP
Julien1138/EcranLED
/AppliWeb/vue/config.php
ISO-8859-1
4,035
2.546875
3
[]
no_license
<div id ="header"> <div id ="logo"> <h1>Configuration des pages de l'cran LED</h1> </div> </div> <body> <div id="main"> <form method="post" action="index.php"> <div id="content"> <p class="btn-more box noprint"> <a href="index.php?ignorer=oui">Ignorer les changements</a...
true
4e37ca25b48202d8611603cb417bb7391f4bfd2d
PHP
varunteja369963/Question-and-Answers
/active.php
UTF-8
3,192
2.703125
3
[ "MIT" ]
permissive
<?php // Import PHPMailer classes into the global namespace // These must be at the top of your script, not inside a function use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require 'PHPMailer/src/Exception.php'; require 'PHPMailer/src/PHPMailer.php'; require 'PHPMailer/src/SMTP.php'; $mail = ne...
true
c887c8a8ac5e6e53fb9efd8a7a55ed6b3ce5273c
PHP
bluerocktel/sellsy-client
/src/Collections/IndividualCollection.php
UTF-8
649
2.53125
3
[ "MIT" ]
permissive
<?php namespace Bluerock\Sellsy\Collections; use Bluerock\Sellsy\Entities\Individual; use Bluerock\Sellsy\Contracts\EntityCollectionContract; use Spatie\DataTransferObject\DataTransferObjectCollection; /** * The Individual Entity collection. * * @package bluerock/sellsy-client * @author Thomas <thomas@bluerockte...
true
be859b9aaa27bbed07cf1aaa05bed33d642d94b7
PHP
Morik/com.woltlab.wcf.conversation
/files/lib/system/user/notification/object/ConversationMessageUserNotificationObject.class.php
UTF-8
1,164
2.5625
3
[]
no_license
<?php namespace wcf\system\user\notification\object; use wcf\data\conversation\message\ConversationMessage; use wcf\data\DatabaseObjectDecorator; use wcf\system\request\LinkHandler; /** * Notification object for conversations. * * @author Marcel Werk * @copyright 2001-2018 WoltLab GmbH * @license GNU Lesser Gene...
true
a7ea926ca5060531a14f4ad21d2e2ae81ad7fac7
PHP
NewMyCMS/MyCMS
/include/db.class.php
UTF-8
1,888
2.796875
3
[]
no_license
<?php /*********************** db类 ***********************/ class db{ public $conn; public $cerrno; public $cerror; public $insertid; //类构造函数 public function __construct($host, $user, $pwd, $dbname){ $conn = new mysqli($host, $user, $pwd, $dbname); $this->conn = $conn; $this->insertid = $conn->ins...
true
eb163a2dafba028844b5b937720ff5ebe8f07cf6
PHP
BGCX261/zonetrak-svn-to-git
/middleware/trunk/controller/map.class.php
UTF-8
11,834
2.875
3
[]
no_license
<?php class Map extends Controller { private $params; private $width; private $height; private $lat; private $lon; private $zoom; public function __construct($params) { $this->params = $params; } /** * Is an action method fo the controller ...
true
b7b1dc293b228146128481bd454a2e34e3570610
PHP
benjamin-bonkov/API-film
/api/models/Films.php
UTF-8
753
2.828125
3
[]
no_license
<?php class Films { public function __construct() { } public function findAll($db) { return $db->exec('SELECT * FROM `film`'); } public function search($db) { $req = ''; $join = '`film`'; foreach(F3::get('GET') as $key => $value){ if($req != ''){ ...
true
2ab143d521965465394e599e663db56aa8be31d1
PHP
cube-php/core
/src/Http/Env.php
UTF-8
3,033
3.0625
3
[]
no_license
<?php namespace Cube\Http; use Cube\App\App; use Cube\App\Directory; use Cube\Misc\File; final class Env { /** * Environment variables * * @var string[] */ private static $_main_vars = array(); private static $_extra_vars = array(); private static bool $_has_loaded_main = ...
true
461b9f32fe1b9f186a2051798104cbccfb2532be
PHP
jsy135135/php61
/memcached/3.php
UTF-8
707
2.875
3
[]
no_license
<?php /** * @Author: jsy135135 * @email:732677288@qq.com * @Date: 2017-11-13 15:25:15 * @Last Modified by: jsy135135 * @Last Modified time: 2017-11-13 15:28:07 */ // 实例化 $mem = new Memcache(); // 连接数据库 $mem->connect('192.168.110.131',11211); // 标量类型 $rs1 = $mem->set('string','string',0,0); var_dump($rs1); ec...
true
0b5f5806021be3657a44e6bf1a571393aa752ea5
PHP
idekel/phpstorm-stubs
/Ds/ds.php
UTF-8
2,327
3.03125
3
[ "Apache-2.0" ]
permissive
<?php namespace Ds; class Vector implements Ds\Sequence { /** * @var int */ const MIN_CAPACITY = 10; public function allocate( int $capacity ): void { } public function apply( callable $callback ): void { } public function capacity(): int { } public function clear(): void { } public function...
true
bd350d20fa72ac9befc98fde2c49f49c151c6b5f
PHP
Salvehn/avito_php_e-shop
/src/Service/Discount/NullObject.php
UTF-8
524
3.03125
3
[]
no_license
<?php declare(strict_types = 1); namespace Service\Discount; use Model\Entity\Discount; class NullObject implements IDiscount { private $discount; public function __construct(?Discount $discount) { $this->discount = $discount; } public function checkDiscount(): bool { if (is_n...
true
7cdb777d8aaf46111fec71951d088366efc360dc
PHP
Grymax/php_project
/php/add_contact.php
UTF-8
1,492
2.515625
3
[]
no_license
<?php require_once('conf.php'); require_once('session.php'); $fields = array('fname', 'lname', 'email', 'home', 'work', 'cell', 'address1', 'address2', 'city', 'zip', 'country', 'bday'); foreach ($fields as $key => $value) { $_POST[$key] = trim($value); } $res_dump = mysqli_query($db, "SELECT * FROM `contacts` W...
true
dc3b1159e320ace77bd8359676dcc2f1cd5af238
PHP
rusydeveloper/laravel-coop-store
/app/Package.php
UTF-8
645
2.515625
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Package extends Model { protected $fillable = [ 'name', 'description', 'user_id', 'unique_id', 'business_id', 'price', 'info_1', 'info_2', 'info_3', ]; public function use...
true
42bf4907f4b1b89a79dfe8d6391a722eeb315fd9
PHP
bemtorres/PDO-Reflect
/ejemplo/Reflect CON DB.php
UTF-8
10,954
3
3
[]
no_license
<?php if (!isset($rootDir)) $rootDir = $_SERVER['DOCUMENT_ROOT']; require_once ($rootDir . "/DB/DB.php"); // Carpetas a utilizar function Rutador($carpeta){ if (!file_exists($carpeta)) { mkdir($carpeta, 0777, true); } } function Execute($query){ $cc = DB::getInstancia(); $rs = $cc->db->p...
true
26ff9def302319b87a61306c0d84f5ec8c7ab5cb
PHP
Shofiul-Alam/magento-app
/src/vendor/magento/framework/Mail/Template/ConfigInterface.php
UTF-8
1,454
2.609375
3
[ "OSL-3.0", "LicenseRef-scancode-unknown-license-reference", "AFL-2.1", "AFL-3.0", "MIT" ]
permissive
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\Mail\Template; /** * High-level interface for mail templates data that hides format from the client code * * @api * @since 100.0.2 */ interface ConfigInterface { /** * Retri...
true
7cae5a4ecb3fb14aea0841f7bfc543b581b1d112
PHP
Mpaschall/CST-323
/eCommerce/Register/registrationHandler.php
UTF-8
1,542
2.875
3
[]
no_license
<?php session_start(); require_once('../utility/dbFunctions.php'); require_once('../utility/phpFunctions.php'); $userName = $_POST['username']; $password = $_POST['password']; $passwordConfirm = $_POST['passwordTwo']; //Establish connection to database $mysqli = dbConnect(); //Check if requested email a...
true
81ffb9571c7ac58fddb6f3a483bdc11485c9d06b
PHP
FEFalk/IRC_Clone
/chat-server/src/Database.php
UTF-8
10,460
3.03125
3
[]
no_license
<?php namespace IRCClone; use \PDO; use IRCClone\User; use IRCClone\Permissions; class Database { private $db; private $username, $password, $ip, $database; /** * @param string $ip IP address to the database * @param string $db Database name * @param string $user Login name * @pa...
true
198d6509356e9ffd5656ec777b6a6b0d383cba31
PHP
bergerlein/Herzgrequenz
/Verify.php
UTF-8
870
3.21875
3
[]
no_license
<!-- Eingabeüberprüfung --> <?php class Verify { // name: max 30 zeichen, nur buchstaben und leerzeichen public function name($name) { if (!(preg_match('/^[a-zA-Z äöüÖÄÜ]+$/', $name))) { return false; } else { return ((isset($name)) AND ( strlen($name) < 31)); ...
true
0fba4d54f2d88c3e95d8b72daceae3adaf05bb34
PHP
shohan-ch/User-login-system-with-oop-in-PHP
/login.php
UTF-8
1,281
2.609375
3
[]
no_license
<?php include_once ("class/Session.php"); include ("class/User.php"); ?> <?php include ("includes/header.php"); ?> <?php include ("includes/navbar.php"); Session::loginPageSession("userEmail"); ?> <?php $user = new User(); if(isset($_POST["login-btn"])){ $userLogin = $user->loginUser($_POST); } ?> <div clas...
true
ee0e83689832d755f7d6bcdb04ed17c97bfa9a86
PHP
gbgabiola/kodego
/14-php/php-crud/retrieve.php
UTF-8
437
2.734375
3
[]
no_license
<?php require('server.php'); $sort = 'ASC'; $column1 = 'firstName'; if (isset($_GET['column']) && isset($_GET['sort'])) { $column = $_GET['column']; $sort = $_GET['sort']; // Descending order (Opposite) $sort === 'ASC' ? $sort = 'DESC' : $sort = 'ASC'; } // $query = 'SELECT * FROM users'...
true
7d03419b6838c0d7ea05f7c1a464339295233d0b
PHP
mdFaisalAnwar/ctpro1git
/Src/Connection.php
UTF-8
877
3.03125
3
[]
no_license
<?php namespace App; use PDO; class Connection{ public $conn; public function __construct() { $this->conn = new PDO('mysql:host=localhost;dbname=ctg219-oop','root',''); } public function insertAvenger($name,$power,$is_died) { try{ $statement = $this->conn->prepare("INSERT INTO avenger (name,power,is...
true
fde3392eda544ed5ecfcff16097feb9ebf470240
PHP
vancao1992/Dashboard
/application/modules/products/models/model_products.php
UTF-8
1,149
2.65625
3
[]
no_license
<?php class model_products extends MY_Model { public function __construct() { parent::__construct(); } public function getItems($filters=array(), $p, $limit, $order=array()) { $sql = CIDb::select(); $sql->from('products') ->order($orders); if (isset($filters['some'])) { $some = $filters['som...
true
a85a7e71750c72cb27b69bb5e68db4a224aa191d
PHP
juhotaipale/jyu-tuija
/pages/admin/roles.php
UTF-8
19,778
2.578125
3
[]
no_license
<?php if (!$login->loggedIn() or !$user->isAdmin()) { header("Location: index.php?page=error/403"); } if (isset($_GET['new'])) { $new = new \User\Role($conn); $new->create(); } if (isset($_GET['id'])) { $selectedRole = new \User\Role($conn, $_GET['id']); if ($selectedRole->exists()) { $ed...
true
74295c4f0082465194f141c9fc72839e79d0b673
PHP
badoo/phpcf
/phpcf-src/src/cli/ActionStdin.php
UTF-8
1,134
2.9375
3
[ "MIT" ]
permissive
<?php /** * Format files and re-write them * @author Alexander Krasheninnikov <a.krasheninnikov@corp.badoo.com> */ namespace Phpcf\Cli; class ActionStdin extends AbstractAction { protected $description = "format contents from STDIN and outputs the result"; /** * @inheritdoc */ protected funct...
true
9e368c9f9fb389eca741e8036d026f9a3a847550
PHP
rahulyhg/happy-giraffe
/site/frontend/modules/scores/models/input/ScoreInputNewFriend.php
UTF-8
1,505
2.96875
3
[]
no_license
<?php /** * Class ScoreInputNewFriend * * Начисление баллов пользователю за нового друга * * @author Alex Kireev <alexk984@gmail.com> */ class ScoreInputNewFriend extends ScoreInputMassive { public $type = self::TYPE_FRIEND_ADDED; /** * @var ScoreInputNewFriend */ private static $_instance;...
true
182b5501b07c2c58996ececcde9589444732e6a1
PHP
retailcrm/aliexpress-top-client
/src/Component/Validator/Constraints/Timezone.php
UTF-8
676
2.53125
3
[ "MIT" ]
permissive
<?php /** * PHP version 7.3 * * @category Timezone * @package RetailCrm\Component\Validator\Constraints */ namespace RetailCrm\Component\Validator\Constraints; use Symfony\Component\Validator\Constraint; /** * Class Timezone * * @category Timezone * @package RetailCrm\Component\Validator\Constraints * *...
true
016eb8f45072944de73e249708f19fc609e8df82
PHP
MaheKarim/php-oop
/www/html/oop/object_clonning.php
UTF-8
463
2.90625
3
[]
no_license
<?php class FavColor { public $data ; function __construct($dvata){ $this->data = $data ; } /** * @param mixed $data */ public function setData($data) { $this->data = $data; } } $myData = new FavColor('My...
true
f2961fccb33182e6184915ee40b217a334c02f7a
PHP
ghaditejas/shopping-cart
/application/modules/order_management/models/Order_manage_model.php
UTF-8
3,552
2.609375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * Order Manage Model * * PHP Version 5.6 * It contains crud functionality definition of order management * * @category Order Manage * @package Model * @author Tejas <tejas.ghadigaonkar@neosofttech.com> * @license http://neosofttech.com/ Neosoft * @link NA */ class Order_manage_model ex...
true
5e004040bcb4d3c115f5c9dd84275a132e03047c
PHP
anewname/WebDataHomePage
/register.php
UTF-8
5,142
2.546875
3
[]
no_license
<?php if (! empty ( $_POST )) { // keep track validation errors $nickname_error = null; $password_error = null; $confirm_password_error = null; $email_account_error = null; // keep track post values $nickname = $_POST['nickname']; $password = $_POST['password']; $confirm_password = $_POST['confirm_password']...
true
9592781c98ae186f420115a79085480d6b737008
PHP
sas03/ToCanaan
/app/Http/Repositories/ResumesRepository.php
UTF-8
2,314
2.6875
3
[]
no_license
<?php namespace App\Http\Repositories; use App\Resume; use Illuminate\Support\Facades\Auth; use Carbon\Carbon; use Validator; /** * Repository class to communicate with data sources of different kinds */ class ResumesRepository implements RepositoryInterface { public function create($request) { $valid...
true
049c9c132f23e30a75a32638892efdc966589c25
PHP
Tebogo11/SolentMedicalAssignment
/System/SMS/Controller/MedicalRecordsLibrary.php
UTF-8
1,612
3.109375
3
[]
no_license
<?php include_once("../DAO/MedicalRecordsDao.php"); //Get all Medical Records of a giving ID function GetAllMedicalrecords($UserID) { //Connnect to data base $conn = connect(); //Create Medical Records data access object $dao = new MedicalRecordDao($conn, "MedicalRecords"); $records ...
true
6aa7894681d416db8045ffb9a9c05e4a2421ac02
PHP
demidov13/customapi
/app/code/local/Demidov/CustomApi/Model/Package.php
UTF-8
617
2.765625
3
[]
no_license
<?php class Demidov_CustomApi_Model_Package { protected $version, $command, $params, $token; public function __construct($version, $command, $params, $token) { $this->version = $version; $this->command = $command; $this->params = $params; $this->token = $token; } p...
true
8b979d4d691a845e3a13a9278a3bdee392f0220e
PHP
kindsnake/sunblog
/functions.php
UTF-8
3,713
2.640625
3
[]
no_license
<?php add_theme_support( 'nav-menus' ); //特色图像 add_theme_support('post-thumbnails'); set_post_thumbnail_size(200, 150, true); // 图片宽度与高度 add_theme_support( 'html5', array(/***添加主题对html5支持***/ 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) ); //自定义logo add_theme_support( 'cust...
true
714d04ef6e28efacaefd6f68bc6f9bcb2ee8bd27
PHP
ggherardi/CarSEA
/src/php/AuthenticationService.php
UTF-8
6,983
2.953125
3
[]
no_license
<?php include 'PHPConst.php'; include 'DBConnection.php'; include 'TokenGenerator.php'; use TokenGenerator; use Logger; function __autoload($className) { require_once "./models/$className.php"; } $GLOBALS["CorrelationID"] = uniqid("corrId_", true); $correlationId = $GLOBALS["CorrelationID"]; class Authentication...
true
df7dbbcfc1348d44bb4cd29388527287c6c3e9c3
PHP
albertiiito6/jzleague
/index.php
UTF-8
237
3.765625
4
[]
no_license
<html> <body> <?php echo "The sum is " . 1 | 2; // output: "2". Parentheses needed. echo "The sum is ", 1 | 2; // output: "The sum is 3". Fine. ?> </body> </html>
true
8a7c4d8c33e98b393cb02bf1823c5fb76f8d13e5
PHP
fhtthg/usecms
/admin/module/fragmentMod.class.php
UTF-8
2,070
2.578125
3
[]
no_license
<?php //自定义变量管理 class fragmentMod extends commonMod { public function __construct() { parent::__construct(); } public function index() { $this->list = model('fragment')->fragment_list(); $this->show(); } //变量添加 public function add() { ...
true
437e1b5fd204d478d83fbabeac9261d10c8f212d
PHP
bhsiao55/query-parser-php
/src/Node/OrExpressionList.php
UTF-8
501
2.640625
3
[ "Apache-2.0" ]
permissive
<?php namespace Gdbots\QueryParser\Node; use Gdbots\QueryParser\Visitor\QueryItemVisitorinterface; class OrExpressionList extends ExpressionList { /** * {@inheritDoc} */ public function toArray() { return [ 'Operator' => 'AND', 'Expressions' => $this->expressions...
true
ce705f388dba0d533944d415118be802848e3e82
PHP
ndomenech/2018project
/insertData.php
UTF-8
929
2.578125
3
[]
no_license
<?php require 'config.php'; date_default_timezone_set("America/New_York"); $date = date("Y-m-d H:i:s"); $a1 = $_POST['area1']; $a2 = $_POST['area2']; $a3 = $_POST['area3']; //the data base table has the issue that the date time has an am/pm as the otheres do not. $sql = "INSERT INTO main_floor(dateTime, count) ...
true
a7a6df389d94446752df24aa7bb619d9a8d9594c
PHP
sadiik1975/advanced-chat-room-application
/chatbox/index.php
UTF-8
1,588
2.546875
3
[]
no_license
<?php include_once 'db.php'; if (!isset($_SESSION['id'])) { header("location: login.php"); } $id = $_SESSION["id"]; $userdata = mysqli_fetch_assoc(mysqli_query($con, "SELECT * FROM users WHERE id = '$id'")); $username = $userdata['name']; $image = $userdata['image']; ?> <!DOCTYPE...
true
8c51d854c9c73bb8c854408b379fce2124e8c810
PHP
lusyio/lusy
/engine/backend/functions/payment-functions.php
UTF-8
31,846
2.625
3
[]
no_license
<?php function createOrder($customerId, $tariff, $userId = 0, $firstPay = false) { global $pdo; $tariffInfo = getTariffInfo($tariff); if (!$tariffInfo) { return false; } $amount = $tariffInfo['price']; // цена услуги в копейках $createOrderQuery = $pdo->prepare("INSERT INTO orders (amo...
true
f7c433f108a51f07ed88027195e0d5580011a99a
PHP
aboodma/dalati
/App/Core/Accounts/InsertOfficeAccount.php
UTF-8
321
2.578125
3
[]
no_license
<?php include 'DB.php'; if (isset($_POST)) { $OfficeName=$_POST['OfficeName']; $sql = "INSERT INTO `offices` (`o_name`) VALUES ('$OfficeName')"; if (mysqli_query($conn, $sql)) { echo "New record created successfully"; } else { echo "Error: " . $sql . "<br>" . mysqli_error($conn); } mysqli_close($conn); }...
true
082ca507fa9b181734d78fa3f6a7ca187ee66ab5
PHP
alberto-bottarini/php-ga-measurement-protocol
/src/AnalyticsResponseInterface.php
UTF-8
605
2.671875
3
[ "MIT" ]
permissive
<?php namespace TheIconic\Tracking\GoogleAnalytics; /** * Interface AnalyticsResponseInterface * * @package TheIconic\Tracking\GoogleAnalytics */ interface AnalyticsResponseInterface { /** * Gets the HTTP status code. * * @api * @return null|int */ public function getHttpStatusCod...
true
6a1c6a3a3c15cc6eeb8c0ad7d976461b29e2664d
PHP
Livda/DNS
/tests/Rdata/CdnskeyTest.php
UTF-8
1,055
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of Badcow DNS Library. * * (c) Samuel Williams <sam@badcow.co> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Badcow\DNS\Tests\Rdata; use Badcow\DNS\Algorithms; u...
true
9ac29b7cb890950fc9c3beedefc1f68881358ea2
PHP
laurinomme-other/DisruptBankFaaSBackend
/tests/AccountTest.php
UTF-8
1,191
2.90625
3
[]
no_license
<?php namespace tests; use DisruptBank\Account; class AccountTest extends \PHPUnit_Framework_TestCase { /** @var Account */ protected $account; protected function setUp() { $this->account = new Account(); } public function testBalance_Initially_Zero() { $this->assertEquals(0, $th...
true
048640513352c8f1b460371c52144c7ffe7cb77e
PHP
mymusic56/mytest
/function/swoole/day01/ws_server_task.php
UTF-8
3,405
2.859375
3
[]
no_license
<?php class Ws{ private $ws; public function __construct($host='0.0.0.0', $port=9502) { $this->ws = new swoole_websocket_server($host, $port); $this->ws->set([ 'worker_num' => 2, 'task_worker_num' => 2, 'enable_static_handler' => true, 'do...
true
6ec96d10f9fcac3e2dc5bcb9f1716feec158ad1f
PHP
ferampe/emperadorplaza
/app/controllers/DateBlockController.php
UTF-8
2,050
2.53125
3
[ "MIT" ]
permissive
<?php class DateBlockController extends \BaseController { /** * Display a listing of the resource. * * @return Response */ public function index() { $datesBlock = DateBlock::all(); return View::make('date_block', compact('datesBlock')); } /** * Show the form for creating a new resource. * * ...
true
26e25177cb11f115a9d46281264fcc7c582393c6
PHP
danielsdeboer/Helpdesk
/src/Models/ContentBase.php
UTF-8
765
2.59375
3
[ "MIT" ]
permissive
<?php namespace Aviator\Helpdesk\Models; use Aviator\Helpdesk\Interfaces\TicketContent; use Illuminate\Database\Eloquent\SoftDeletes; abstract class ContentBase extends AbstractModel implements TicketContent { use SoftDeletes; /** @var array */ protected $dates = [ 'created_at', 'updated...
true
449313e84329ff771d891a7816448b841d3f8f7d
PHP
bagus2705/UAS
/viewruangan.php
UTF-8
2,938
2.671875
3
[]
no_license
<?php include("config.php"); // kalau tidak ada id di query string if( !isset($_GET['id']) ){ header('Location: list-ruangan.php'); } //ambil id dari query string $id = $_GET['id']; // buat query untuk ambil data dari database $sql = "SELECT * FROM ruangan WHERE id_kamar=$id"; $query = mysqli_query($db, $sql);...
true
26f05b3c44504e8ff07d2e0b422b76057e6676ec
PHP
yanmarques/Youtube-Audio-Downloader
/public/app/Interfaces/ApiRequests.php
UTF-8
241
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Interfaces; require_once dirname(dirname(dirname(__DIR__))) . '/vendor/autoload.php'; interface ApiRequests { /** * Funcao que deve ser implementado em toda classe Api */ public function request(); }
true
38ac6c13922d8c85f42a4956df6162529cb673e6
PHP
Galsungen/CNAM-NFE114-GaleriePhotos
/edit.php
UTF-8
9,730
2.609375
3
[]
no_license
<?php /* * @author Galsungen - http://blog.galsungen.net * Année 2010-11 * CNAM - NFE114 - Système d'information web */ require_once('fonctions.php'); require_once('abdd.php'); require_once('Date.class.php'); if(isset($_GET['id'])){$id = $_GET['id'];} else{if(isset($_POST['id'])){$id = $_POST['id'];} else...
true
7c78b0475742be4e1b5d20fb55668ea1e85a6d04
PHP
srolland/guide-dev
/giftguide/includes/pm_get_post_thumbnail.php
UTF-8
2,524
2.765625
3
[]
no_license
<?php /** * Return a stdClass object of info associated with a posts thumbnail. * @param string/array $size [optional] Size of image * @param string $post_id [optional] Id of post to load thumb for. Otherwise the current post. * @return object */ function pm_get_post_thumbnail( $size=null, $post_id=null ) { if(...
true
82265ca32f9cd3336758c7c4c401e62cf07e6946
PHP
GenzoWeb/projet4
/controller/controllerBackend.php
UTF-8
3,249
2.734375
3
[]
no_license
<?php require_once('model/LoginManager.php'); require_once('model/PostManager.php'); function login($login) { $loginManager = new LoginManager(); $admin = $loginManager->getUser($login); $isPasswordCorrect = password_verify($_POST['pass'], $admin['pass']); if(($_POST['login'] == $admin['login']) && $isP...
true
fc408f3c82bed31ee2d4adf44f016ee0f4124339
PHP
anandsunny/php
/php/events.php
UTF-8
1,172
2.703125
3
[]
no_license
<?php /** * event action features */ class Events extends Conn { public $status = "approve"; // get events for status == approve public function getEvents() { $query = $this->db->prepare("SELECT * FROM events WHERE event_status = :status"); $query->bindParam("status", $this->status); $query->execute(); ...
true
10d4d3a4c7512af97bb8e0ed16fe20383313d525
PHP
sambenne/Timer
/app/models/User.php
UTF-8
2,786
2.71875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Sam * Date: 30/01/2015 * Time: 01:32 AM */ use Illuminate\Auth\UserInterface; use Illuminate\Auth\Reminders\RemindableInterface; /** * Class User * * @property int $id * @property string $email * @property string $password * @prop...
true
522c145c8a9680742660f13fad17e51b717f7fa9
PHP
lmtgit/zce
/phpbasic/variables/constant_define_const.php
UTF-8
1,103
3.40625
3
[]
no_license
<?php require_once '../../includes/header.php'; ?> <pre> <?php define('MIN_VALUE', '0.0'); // RIGHT - Works OUTSIDE of a class definition. define('MAX_VALUE', '1.0'); // RIGHT - Works OUTSIDE of a class definition. //const MIN_VALUE = 0.0; WRONG - Works INSIDE of a class definition. //const MAX_VALUE = 1....
true
575ce11221c511f0ad14331697d868d747f6b1b7
PHP
Acconitum/myLib
/php/wordPress/acf/get-repeater-field-values.php
UTF-8
440
2.609375
3
[]
no_license
<?php // check if the repeater field has rows of data if (have_rows('repeater_field_name')) : // loop through the rows of data while (have_rows('repeater_field_name')) : //unformatted the_row(); //get the subfields in an array as key value where the key is the fiedl label instad of the field id $row = the_...
true
027b5cb2d9eee138bb6e0a5cb4f6f1a3eba44d56
PHP
carstenkiefer/SwagImportExport
/Models/ProfileRepository.php
UTF-8
1,663
2.546875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); /** * (c) shopware AG <info@shopware.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SwagImportExport\Models; use Shopware\Components\Model\ModelRepository; use Shopware\Components\Mode...
true
21f584c61207599d47f8416eca5a6d90b42edfe2
PHP
linkeddatacenter/BOTK-core
/src/FactsFactory.php
UTF-8
6,894
2.84375
3
[ "MIT" ]
permissive
<?php namespace BOTK; use BOTK\Exception\FactsValidatorWarning; use BOTK\Exception\InvalidRawDataWarning; use BOTK\Exception\TooManyErrorsException; use BOTK\Exception\TooManyInsanesException; /** * Create structured data from an array of raw data (i.e. ie just a sequence of scalars) managing errors. * The class pr...
true
91025edc62136105c0ce2c9e40c2f7367c79179d
PHP
A360RN/php-simple-crud
/entity/student.php
UTF-8
755
3.109375
3
[]
no_license
<?php class Student{ private $id; private $firstName; private $lastName; private $email; function __construct($id, $firstName, $lastName, $email){ $this->id = $id; $this->firstName = $firstName; $this->lastName = $lastName; $this->email = $email; } function setId($id){ $this->id = $id; ...
true
993b12121375399b0f892d4ad468e6cbbf5feace
PHP
bezrukov/php-project-lvl1
/src/games/progression.php
UTF-8
1,010
3.125
3
[]
no_license
<?php namespace BrainGames\Cli\games\progression; use function BrainGames\Cli\run; function getProgression($length, $firstElement, $step) { $progression = array_fill(0, $length, 0); for ($i = 0; $i < $length; $i++) { $progression[$i] = $firstElement + $step * $i; } return $progression; } fu...
true
f261023221b81c057289efe67914a9250fe92bf5
PHP
drogan120/ci4_Restfull
/app/Models/Mahasiswa_model.php
UTF-8
1,087
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Models; use CodeIgniter\Model; class Mahasiswa_model extends Model { protected $table = 'mahasiswa'; function get_mahasiswa($id = false) { if ($id === false) { return $this->findAll(); } else { return $this->getWhere(['mahasiswa_id' => $id])->...
true
b8112d95261c07c6b21e9fa0914f3fd7e05da5d0
PHP
ajkula/test-git
/classes/Panier.php
UTF-8
2,025
3.140625
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of Panier * * @author formation */ class Panier { private $produits = []; private $nbProduit...
true
cf174a02f4771b9def925dbd473321e63772a2a3
PHP
hiro0218/kiku-theme
/lib/Kiku/plugins/mokuji/MokujiBuilder.php
UTF-8
2,815
2.90625
3
[ "MIT" ]
permissive
<?php namespace Kiku; class Mokuji_Builder { private $options; public function __construct($options) { $this->options = $options; } public function extract_headings($content) { $find = []; $matches = []; // コンテンツ内のすべてのheadingタグを取得 preg_match_all('/(<h([1-6]{1...
true
9a59b798a162277b7cd0ad8cbfc432cf227e7cf2
PHP
tommy-bolger/Flow
/framework/caching/modules/memcached.class.php
UTF-8
2,883
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * The memcached module of the framework cache abstraction layer. * Copyright (c) 2011, Tommy Bolger * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of...
true
988d2e6ee924c1cac1d205137d71153a9b8b485b
PHP
louchio/ReseauProfessionel
/ReseauProfessionel/PHP/controller/lieuxfavoris.php
UTF-8
1,097
2.59375
3
[]
no_license
<?php $reponse = array(); // json reponse if(isset($_GET['Membres_idMembres'])) { require_once "connexion.php"; $db = new connexion(); $req = "SELECT * FROM lieuxfavoris WHERE Membres_idMembres='".$_GET['Membres_idMembres']."'"; $result = mysql_query($req); if(mysql_num_rows($result) > 0) { ...
true
10bbcc0c8ffe65e51a0f8b81b553a807e339f47b
PHP
DjinnS/webLogs
/index.php
UTF-8
4,864
2.59375
3
[]
no_license
<?php /* # webLogs # # Simple view your log files from the Web # # http://github.com/djinns/webLogs # # Copyright (C) 2011 djinns@chninkel.net # # This program 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, e...
true
23c4c452a49ad44dc29a4c54b22a0dc71f4f2bfc
PHP
lleeoo130/Symfony-WebTech
/src/Article/ArticleRequestUpdateHandler.php
UTF-8
1,486
2.609375
3
[]
no_license
<?php namespace App\Article; use App\Entity\Article; use Doctrine\Common\Persistence\ObjectManager; use Symfony\Component\HttpFoundation\File\Exception\FileException; class ArticleRequestUpdateHandler { private $em, $articleAssetsDir; public function __construct(ObjectManager $manager, string $articleAsset...
true
9d3c5d84d6cfce9c587d8e36ae82f0b6adb73100
PHP
AKSW/SlideWiki
/slidewiki/libraries/backend/SlideCompare/SlideCompare.php
UTF-8
1,889
2.96875
3
[ "Apache-2.0" ]
permissive
<?php class SlideCompare { function tidyhtml($input) { $config = array( 'show-errors' => 0, 'show-warnings' => false, 'break-before-br' => true, 'indent' => false, 'indent-attributes' => true, 'add-xml-decl' => false, 'f...
true
951a662148ef307cdde15341005795c82385c8ab
PHP
kingduyuan/laravel
/app/Http/Controllers/Admin/MenusController.php
UTF-8
1,077
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers\Admin; use App\Models\Menu; use Illuminate\Support\Facades\DB; class MenusController extends Controller { /** * @var string 定义使用的model */ public $model = '\App\Models\Menu'; /** * 首页显示 * * @return \Illuminate\Contracts\View\Factory|\Illuminat...
true
73b577ebb825738e17d4ad5d524489d247a469a5
PHP
aique/admin.shor.tr
/tests/Entity/ShortLinkTest.php
UTF-8
1,245
2.65625
3
[]
no_license
<?php namespace App\Tests\Entity; use App\Entity\LinkRequestStats; use App\Entity\ShortLink; use App\Entity\User; use PHPUnit\Framework\TestCase; class ShortLinkTest extends TestCase { const ID = 1; const URL = 'b'; const USER_NAME = 'aique'; const USER_EMAIL = 'aique@mail.com'; private $stats...
true
1467547c071e004d70f60cfa50ca0a84a690e1bb
PHP
wuzixuan1104/customerService
/sys/lib/UserAgent.php
UTF-8
4,535
2.6875
3
[]
no_license
<?php defined ('OACI') || exit ('此檔案不允許讀取。'); /** * @author OA Wu <comdan66@gmail.com> * @copyright Copyright (c) 2013 - 2018, OACI * @license http://opensource.org/licenses/MIT MIT License * @link https://www.ioa.tw/ */ class UserAgent { private static $agent = null; private static $platf...
true