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
2b308598bdb17098c666b32337a3e93749001865
PHP
Hyorinmaru97/task
/1task.php
UTF-8
1,220
3.1875
3
[]
no_license
<?php // Вводится наша строка, затем происходит процесс првоерки. первая проверка - с правильной ли скобки начинается выражание и с правильной ли скобки оно заканчивается. //Если проверка успешна, то далее проходит вторая проверка, а именно одинакое ли кол-во открывающися и акрывающихся скобок в выражении, если все...
true
3194dfa048532a9a23ae60c4ec7cdbd78c29f631
PHP
choniyuazwan/pengelolaanzakat
/views/penyaluran/pdfPenyaluran.php
UTF-8
1,220
2.578125
3
[ "BSD-3-Clause" ]
permissive
<!DOCTYPE html> <html> <head> <title>Data Penyaluran</title> <style> .page { padding:2cm; } table { border-spacing:0; border-collapse: collapse; width:100%; } table td, table th { ...
true
8b05b86b1326b562dc6c0eac98a70012ecb3d755
PHP
ShowbizUno/Techo_internet
/pages/inscription.php
UTF-8
3,481
2.65625
3
[]
no_license
<hgroup> <h3 class="aligner txtGras">Inscription</h3> <h4 class="text-muted aligner">Client</h4> </hgroup> <?php if (isset($_GET['commander'])) { extract($_GET, EXTR_OVERWRITE); if (empty($nom) || empty($prenom) || empty($telephone) || empty($email) ||empty($password1)||empty($password2)||empty($adre...
true
715f2617727f9b7895970628de46d00938734205
PHP
PrinceMakavana/consultancy
/app/InsuranceCategory.php
UTF-8
1,730
2.6875
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class InsuranceCategory extends Model { use SoftDeletes; public static $tablename = "insurance_category"; protected $table = "insurance_category"; protected $primaryKey = "id"; public $incr...
true
6acc53264b8c9a49e88522fe3b41bc8121e02b63
PHP
3WDJ-Team1/HIKONNECT_WEB
/app/vendor/way/generators/src/Way/Generators/Commands/MigrationGeneratorCommand.php
UTF-8
2,661
2.65625
3
[ "MIT" ]
permissive
<?php namespace Way\Generators\Commands; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputArgument; use Way\Generators\Templates\Data\Migration as MigrationData; use Way\Generators\Generator; class MigrationGeneratorCommand extends GeneratorCommand { /** * The consol...
true
2aa76d5d1ef203f3af73c0cd004ba3b5cdd73759
PHP
phpspec/phpspec
/src/PhpSpec/Listener/CollaboratorMethodNotFoundListener.php
UTF-8
6,136
2.59375
3
[ "MIT" ]
permissive
<?php /* * This file is part of PhpSpec, A php toolset to drive emergent * design by specification. * * (c) Marcello Duarte <marcello.duarte@gmail.com> * (c) Konstantin Kudryashov <ever.zet@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with t...
true
bf961d4ee79538abac2dbda435b13d4791b4b7b0
PHP
mbegoc/lighter
/lighter/models/Model.php
UTF-8
3,752
3.375
3
[ "MIT" ]
permissive
<?php namespace lighter\models; abstract class Model { /** * list of the models related to this one. Almost everytime results of a sql join. * @var array */ protected $linkedModels = array(); /** * the data of this model * @var array */ protected $data = array(); /** ...
true
c5bbce94df0723a75ed02c96b835c9428c0de23b
PHP
Albertto-1/DAW_A01208219
/Lab9/lab9.php
UTF-8
4,311
2.765625
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <meta name="description" content="Lab5"/> <link rel="stylesheet" type="text/css" href="lab9.css"> <title> Lab9 </title> </head> <body> <h1>Preguntas:</h1> <ol> <li>¿Qué hace la función phpinfo()? Desc...
true
e229af201149e20898b8085c94d0cd182f5e5dce
PHP
metamn/smuff.old
/shopmania.php
UTF-8
1,837
2.625
3
[]
no_license
<?php /* Template Name: Shopmania * @package WordPress * @subpackage Default_Theme */ ?> <?php // Datafeed for shopmania // Syntax: // Telefoane Mobile|LG||12345|LG KE800|Aici este descrierea produsului...|http://www.example.com/product.php?id=12345|http://www.example.com/images/12345.jpg|156.00|RON $...
true
8288d87b5cc735b5d50b919d4707398359cfbd6c
PHP
multimatex/club_frijol
/foro2/include/utf8/mbstring/core.php
UTF-8
1,333
2.9375
3
[]
no_license
<?php /** * @version $Id: core.php,v 1.5 2006/02/28 22:12:25 harryf Exp $ * @package utf8 * @subpackage strings */ // Define UTF8_CORE as required if (!defined('UTF8_CORE')) define('UTF8_CORE', true); function utf8_strlen($str) { return mb_strlen($str); } function utf8_strpos($str, $search, $offset = false) { // ...
true
c5d868298f74c2c58540475600d15737d0660619
PHP
oywbgit/swooleyaf
/libs_frame/LiveEducation/BJY/VOD/Video/VideoUpdate.php
UTF-8
1,786
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * 更新视频信息 * User: 姜伟 * Date: 2020/4/1 0001 * Time: 18:54 */ namespace LiveEducation\BJY\VOD\Video; use LiveEducation\BaseBJY; use LiveEducation\UtilBJY; use SyConstant\ErrorCode; use SyException\LiveEducation\BJYException; /** * Class VideoUpdate * @package LiveEducation\BJY\VOD\Video */ class VideoU...
true
a8654057c245fe67fa44b7667a059bcfde3f82e6
PHP
htmlacademy-yii/55546-task-force-1
/console/migrations/m200302_112719_update_user_tables.php
UTF-8
1,367
2.6875
3
[]
permissive
<?php use yii\db\Migration; /** * Миграция для добавления ограничений на заполненность столбцов в таблицах * * Class m200302_112719_update_user_tables */ class m200302_112719_update_user_tables extends Migration { /** * Добавляет ограничение на заполненность столбцов в таблицах * * @return bool...
true
4521216201a13704cd2610aaf4b5bfeb2228b601
PHP
kuba9392/file-comparision-service
/tests/unit/Kuba9392/Service/File/MultiFileDiffsReaderTest.php
UTF-8
1,712
2.625
3
[]
no_license
<?php namespace Kuba9392\Service\File; use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration; use Mockery\MockInterface; use PHPUnit\Framework\TestCase; class MultiFileDiffsReaderTest extends TestCase { use MockeryPHPUnitIntegration; /** * @var MockInterface | FileDiffer */ private $multiDiffe...
true
b719e89cc25a2fca16d3fc386e7924870f5be87f
PHP
hsdmr/base
/src/exceptions/NotAllowedException.php
UTF-8
278
2.609375
3
[ "MIT" ]
permissive
<?php namespace Hasdemir\Base\Exception; /** * Http code 405 */ class NotAllowedException extends DefaultException { protected $http_code = 405; public function __construct(string $message = '', $previous = null) { parent::__construct($message, $previous); } }
true
c0a97e548d275382f7ebdd738aef7d27df105d77
PHP
Belsky-Andrey/example
/11/trait/trait_4.php
UTF-8
536
3.625
4
[]
no_license
<?php trait SayWorld { public function sayHello() { echo 'World!'; } } class Base { public function sayHello() { echo 'Hello '; } } $o = new Base(); $o->sayHello(); //result = Hellow // =================================== trait SayWorld { public function sayHello() { e...
true
a4d1ab9632bdb2a6a1bec147595aa34cda4c6790
PHP
Zipcoder/Lordal
/public/ep.php
UTF-8
368
3.078125
3
[]
no_license
<?php /** * testing... */ class cohort { var $days = array(); } class person { var $name; function set_name($new_name) { $this->name = $new_name; } function get_name() { return $this->name; } } $this_person = new person(); $this_person->set_name("charlie"); var_dump($this_person); $cohort = ne...
true
1b9d9bdbd9d1d4dd51dd6bd93d7565c80656b811
PHP
laurencemiao/img_share
/libs/Image.php
UTF-8
2,243
3.125
3
[]
no_license
<?php /* * http://cn2.php.net/manual/en/function.imagejpeg.php */ class Image{ private $_img_path = null; private $_img = null; private $_img_type = null; function __construct($img_path){ $this->_img_type = $this->_getImageType($img_path); if(empty($this->_img_type)) th...
true
3c287294b73e33e2a23c0cdeeeba40ec6865b794
PHP
alexvitalini/erp-intranet
/php_funciones.php
UTF-8
1,979
2.75
3
[]
no_license
<?php function cGetIpCliente() { if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip = $_SERVER['REMOTE_ADDR']; } return $ip; } function set_and_enum_values( $table , $field ){...
true
cd71c4dcbc3f847abfa9f945fb14e64e5640a83a
PHP
tazdij/mojo
/ext/Centro/Utils/ArrayWrite.php
UTF-8
760
3.03125
3
[]
no_license
<?php namespace Ext\Centro\Utils; class ArrayWrite { public static function SaveAs($filename, $array, $merge_array = FALSE) { // If merge is true, try and read the file first, and merge contents // fail if error // otherwise obliterate file and write array if (!$merg...
true
81e4859e7149e052dde9f2b1b4c7d6a032590d56
PHP
awesome-academy/php_oe39_fels
/app/Models/User.php
UTF-8
1,576
2.625
3
[]
no_license
<?php namespace App\Models; use App\Models\Activity; use App\Models\Course; use App\Models\Lesson; use App\Models\Profile; use App\Models\Role; use App\Models\Word; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; class Us...
true
02ab522be346ce8d23d463a597c9288873004529
PHP
nicklaw5/ticketing-system-api
/app/Models/Account.php
UTF-8
4,432
2.671875
3
[]
no_license
<?php namespace App\Models; use GeoIP; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use Laravel\Cashier\Billable; use Laravel\Cashier\Contracts\Billable as BillableContract; class Account extends Model { use SoftDeletes, Billable; /** * The database table used by...
true
5ff4aaf2d6f0555be6b4387f75ad2abfd82ce2f1
PHP
yii2swoole/webserver
/src/Config.php
UTF-8
1,583
2.734375
3
[ "BSD-2-Clause" ]
permissive
<?php namespace yii2swoole\webserver; use yii2swoole\webserver\base\Instance; /** * Class Config * @property string $host * @property int $port * @property int $mode * @property int $sock_type * @property array $settings * @property array $event * @property mixed $beforeStart * @package yii2swoole\webserver ...
true
5c807ee1a010b73e7ec39380fd62a0adf6034798
PHP
vasymus/agileengine
/src/database/seeders/TransactionTypesTableSeeder.php
UTF-8
750
2.5625
3
[]
no_license
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class TransactionTypesTableSeeder extends Seeder { const CREDIT_ID = 1; const DEBIT_ID = 2; /** * Run the database seeds. * * @return void */ public function run() { D...
true
3cae1c9b2abb825ba671dc0ebaffe95c425e76e4
PHP
lionelcpn/souscr_tech_test
/php/only_four_letters_names.php
UTF-8
716
4.1875
4
[]
no_license
<?php /* * Make a program that filters a list of strings and returns a list * with only your friends name in it. If a name has 4 letters in it, * you can be sure that it has to be a friend of yours * Ex: Input = ["Ryan", "Kieran", "Jason", "Yous"], Output = ["Ryan", "Yous"] */ function only_four_letters_names($a...
true
fce05246ba6aee573b937c8cd8d0aa29f78c5379
PHP
AntoineCarbonnel/forum-api
/database/seeders/ChannelSeeder.php
UTF-8
493
2.5625
3
[]
no_license
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; use Illuminate\Support\Str; class ChannelSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $title = Str::random(10); DB:...
true
5270ed31c1662af2ab984ee79e3a64b6cfabbf4d
PHP
gaincoder/grouptool2
/src/Enums/Roles.php
UTF-8
714
2.546875
3
[]
no_license
<?php namespace App\Enums; class Roles { const ROLE_GROUP_CREATE = 'ROLE_GROUP_CREATE'; const ROLE_GROUP_EDIT = 'ROLE_GROUP_EDIT'; const ROLE_GROUP_DELETE = 'ROLE_GROUP_DELETE'; const ROLE_GROUP_VIEWLIST = 'ROLE_GROUP_VIEWLIST'; const ROLE_USER_EDIT = ...
true
0784068253d83686e165f86fe127ca284ba3b949
PHP
saztronaut/pace_phri
/paceup/updateStepsFunction.php
UTF-8
2,477
2.609375
3
[]
no_license
<?php function addSteps($username, $input, $date_set, $method, $haswalk=false, $walkon=null) { require 'database.php'; require 'updateTargetAutoFunctions.php'; require 'setBaselineFunctions.php'; $setwalk = ''; $walk=''; $walkarg=""; if ($haswalk==true) { if ($walkon=='tru...
true
b39f0d2785bfaaab1e81199a0571769d05154b86
PHP
SerraAJ/CMSC-508-Project
/Database Theory Project/detailConventionCenter.php
UTF-8
1,629
2.8125
3
[]
no_license
<?php session_start(); if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true) { header("location:index.php"); exit; } require_once "config.php"; if(isset($_SESSION ["bounce_message"])) { $message = $_SESSION["bounce_message"]; echo $message; $_SESSION["bounce_message"] = "...
true
e59cdb3b78274c591663f570bb37c99310cb8005
PHP
JeflyLiu/pay.api
/src/App/Model/Base.php
UTF-8
781
2.90625
3
[]
no_license
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class Base extends Model { /** * Retrieve ETag for single resource * * @return string ETag for resource */ public function getEtag($regen=false) { if ( $this->exists && ($this->etag === false || $regen === true) ) { $this->etag ...
true
2d4404ae92dc6b085ca16f1fe16d16cde300b5e9
PHP
mingzaily/lumen-permission
/src/Traits/HasRoles.php
UTF-8
9,243
2.578125
3
[ "MIT" ]
permissive
<?php /* * This file is part of the mingzaily/lumen-permission. * * (c) mingzaily <mingzaily@163.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Mingzaily\Permission\Traits; use Illuminate\Support\Collection; use Mingzaily\Permi...
true
d8a0eff19875aec53a1f45ee8cd40d3eb1aacaf5
PHP
GerbrechtGhijsels/DatasetReader
/app/Providers/AppServiceProvider.php
UTF-8
2,074
2.921875
3
[]
no_license
<?php namespace App\Providers; use DateTime; use Exception; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\Validator; use Throwable; class AppServiceProvider extends ServiceProvider { /** * Register any application services. * * @return void */ public function reg...
true
5fcd064b3f6c0100b6d201fee021691057a1ba88
PHP
gbeine/phpaopkit
/main/AopKit/AbstractAroundAdvice.php
UTF-8
393
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace AopKit; /** * Abstract class for around advices, delegating invocation. * @author gbeine */ abstract class AbstractAroundAdvice implements AroundAdvice { function invoke($args = array()) { $orig = array_pop($args); if (! is_a($orig, 'Reflector')) { throw new Exception('No original function...
true
dcd2044407a1d4230eae7e5923678ab049a694b8
PHP
Zbara/ApiScript
/server/include/Method/Ads/messagesGet.php
UTF-8
1,156
2.59375
3
[]
no_license
<?php namespace Method\Ads; use Connection; use Controller; use Method\BaseMethod; use Tools; class messagesGet extends BaseMethod { function run(Controller $controller, Connection $db) { /** @var $row */ $row = $db->query("SELECT * FROM `ads_list` WHERE `user_id` = '{$controller->session->u...
true
9c6c80d1a76d237cbd76e4fd0425893d122f29e8
PHP
ringash/Meso-Online
/Logics/Course.php
UTF-8
1,092
3.375
3
[]
no_license
<?php class Course { protected $coursename; protected $courseimg; protected $courseFile; protected $courseFileType; protected $courseFileName; protected $creator; public function __construct( $coursename, $courseimg, $courseFile, $courseFileType, $cou...
true
df9006c97b53e328b58e6e22b6b2ce90977ab84c
PHP
congdp/alogithms-cong.pham
/OOP/congdp.dao/database.php
UTF-8
4,450
2.90625
3
[]
no_license
<?php require_once '../congdp.entyti/accessory.php'; require_once '../congdp.entyti/category.php'; require_once '../congdp.demo/productDemo.php'; define('TABLE_NAMES', ['productTable', 'categoryTable', 'accessoryTable']); class Database { private static $database; protected $productTable; protected $categ...
true
8a10187f6fb0c1f3c7598ad62f97457a9e8f650d
PHP
perusudroid/SynkPro
/api/create.php
UTF-8
1,946
2.921875
3
[]
no_license
<?php /* * Database Constants * Make sure you are putting the values according to your database here */ define('DB_HOST','localhost'); define('DB_USERNAME','root'); define('DB_PASSWORD',''); define('DB_NAME', 'synkpro'); //Connecting to the database $conn = new mysqli(DB_HOST, DB_USERNAME, DB_PASSWORD, DB_N...
true
248b824f48c169c5e3e9a84e24258e993d3e1d84
PHP
68publishers/image-storage
/src/NoImage/NoImageResolver.php
UTF-8
1,957
2.796875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace SixtyEightPublishers\ImageStorage\NoImage; use SixtyEightPublishers\ImageStorage\PathInfoInterface; use SixtyEightPublishers\ImageStorage\Info\InfoFactoryInterface; use SixtyEightPublishers\ImageStorage\Config\NoImageConfigInterface; use SixtyEightPublishers\ImageStorage\Exce...
true
b86297e861546335997d8efb4f985557288434ad
PHP
lucasdaconceicao/ApiPhp
/Pearl/Services/Cidadaos.php
UTF-8
2,271
2.65625
3
[]
no_license
<?php namespace Pearl\Services; use Pearl\Models\Cidadao; Class Cidadaos { public function AddCidadao($nome,$sobrenome,$cpf,$email,$celular,$cep):bool { /** @var TYPE_NAME $exception */ try { $data = $this->findCep($cep); if ($data){ $cidadao = new Cidadao(); ...
true
773dd3660f0356d83f7552cf5d031ac5b14f8161
PHP
clinton-github1/oop_test
/oop/user_test.php
UTF-8
555
2.796875
3
[]
no_license
<?php include "db_auto_conn_class.php"; class Users extends Database{ public function query($query= "SELECT * FROM users_test"){ // $query= "SELECT * FROM users_test"; $result= mysqli_query($this->connection, $query); while ($row= mysqli_fetch_assoc($result)) { echo "ID=" . $row['id'] . "<br>" ; echo "FIRST NAME...
true
8dab94e02ebe4491ac08355284d92978e9e41df6
PHP
duyanh1992/PHP_ZendVN
/PHP_UPLOAD/Second/Ex2/uploadFunction.php
UTF-8
340
2.859375
3
[]
no_license
<?php function checkFileSize($fileSize, $minSize, $maxSize){ if(($minSize<=$fileSize) && ($fileSize<=$maxSize)){ return true; } return false; } function checkExtension($fileName, $arrExt){ $fileExt = pathinfo($fileName, PATHINFO_EXTENSION); if(in_array(strtolower($fileExt), $arrExt) == true){ return true; }...
true
ff0b3170e1a81f84f56771ec4d75d8ff6ba61c0d
PHP
aurelian/medick2
/lib/plugin/Plugins.php
UTF-8
2,153
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php // $Id: Plugins.php 481 2008-06-01 14:26:18Z aurelian $ class Plugins extends Object { static private $registry= array(); public static function loaded($plugin_name) { return isset(Plugins::$registry[$plugin_name]); } public static function add( IPlugin $plugin ) { Plugins::$registry[$plugin-...
true
f1a30354fe5bd6631201809c52f8ec703f48aa9c
PHP
Sverine/la-reserve-de-la-chapelle
/src/Helper/YouMayAlsoLikeManager.php
UTF-8
835
3.0625
3
[]
no_license
<?php namespace App\Helper; class YouMayAlsoLikeManager { public function displayBooksFromType($book, $types) : ?array { //Add in array all books from same type of actual book $booksFromTypes =[]; foreach($book->getType() as $type){ foreach($type->getBooks() as $bookFromT...
true
813ae16715c9c681db9aba5f568022f37c4b4c67
PHP
TZNaso/indicadores
/application/models/TelefonesServicoMapper.php
UTF-8
2,939
2.625
3
[]
no_license
<?php class Application_Model_TelefonesServicoMapper { protected $_dbTable; public function setDbTable($dbTable) { if (is_string($dbTable)) { $dbTable = new $dbTable(); } if (! $dbTable instanceof Zend_Db_Table_Abstract) { throw new Exception('...
true
58de0fa70db20862a3e2eb8219c4e93e7a3403b4
PHP
peterthiongo/study-group
/answer.php
UTF-8
7,554
2.78125
3
[]
no_license
<?php include 'Classes/DB.php'; session_start(); include 'head.php'; //create DB $DB = new DB(); //check for user if (isset($_SESSION['user'])) $user = $_SESSION['user']; //save user start question time $time=time(true); //get test user choose to view : if (isset($_GET['id'])){ $test = $DB->getTestFromDB($_GET['i...
true
a0221ca56124a75df36dbe40defca38365220d0a
PHP
l178216111/biling
/php/project.php
UTF-8
3,896
2.578125
3
[]
no_license
<?php header("Content-type:text/html;charset=utf-8"); require_once('db_config.php'); require_once('sql_string.php'); $opt=$_POST['opt']; $data=TrimArray($_POST['data']); $index=TrimArray($_POST['index']); //$opt="getproject"; $output=array(); if ($opt=='getproject'){ $output['error']=0; }elseif($opt=="_add"){ // var_d...
true
d2c4fadfbaf277be07eb143aac2d10b4dfe51e2d
PHP
andyp22/design-patterns
/decorator/Vanilla.class.php
UTF-8
452
3.03125
3
[ "MIT" ]
permissive
<?php /* * Vanilla class * By: Andrew Page @ www.andypangus.com * Date: 2009/06/02 * Updated: N/A * * This Vanilla class extends the IceCream class and is designed to be * implemented as part of the Decorator design pattern. * */ require_once("IceCream.class.php"); class Vanilla extends IceCream { pub...
true
b20160ae441dfe119017854a6e8df50b77d01d13
PHP
tech-is/mori
/Sign_Up_Form Ver 2.0/core/functions.php
UTF-8
1,288
2.65625
3
[]
no_license
<?php //$array = [["name","slug"],["name","slug"]["name","slug"]]; function insert_parts($array) { foreach($array as $val){ include("parts/form-parts.php"); } } function insert_CSS() { require("parts/CSS.php"); } function Encode_POST_values() { foreach($_POST as $key=>$value){ $_POST[$...
true
429f2b1143c1b65a46a0b658906888c10b081b1a
PHP
FaridAhmad013/native
/function/latihan4.php
UTF-8
1,541
2.703125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <fieldset> <legend>Perpangkatan</legend> <form action="" ...
true
f0573e5e65c0adf85308e0b135133d87ffc59e46
PHP
spiral/framework
/src/Prototype/src/ClassNode/ConflictResolver/Namespaces.php
UTF-8
5,369
2.609375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Spiral\Prototype\ClassNode\ConflictResolver; use Spiral\Prototype\ClassNode; use Spiral\Prototype\Utils; final class Namespaces { public function __construct( private readonly Sequences $sequences ) { } public function resolve(ClassNode $definition):...
true
5619e354bfa5ec3c9306197d628b12e4654f1133
PHP
anklimsk/internal-ldap-based-phonebook
/app/Plugin/CakeBasicFunctions/Test/Case/Lib/Utility/LanguageTest.php
UTF-8
2,165
2.59375
3
[ "MIT" ]
permissive
<?php App::uses('AppCakeTestCase', 'CakeBasicFunctions.Test'); App::uses('Language', 'CakeBasicFunctions.Utility'); /** * PhoneNumberTest file * */ class LanguageTest extends AppCakeTestCase { /** * setUp method * * @return void */ public function setUp() { parent::setUp(); $this->_targetObject = new Lang...
true
cf07b2fb2b02e27f7d2c442daa3ac940c9947f15
PHP
wazsmwazsm/PHP_prc
/phpunit/chapter9/VfTest.php
UTF-8
1,026
2.5625
3
[]
no_license
<?php require_once __DIR__ . '/vendor/autoload.php'; require_once __DIR__ . '/FileExample.php'; use PHPUnit\Framework\TestCase; use org\bovigo\vfs\vfsStream; use org\bovigo\vfs\vfsStreamWrapper; use org\bovigo\vfs\vfsStreamDirectory; /* 本测试的优点 1、测试本身更加简洁。 2、vfsStream 让开发者能够完全控制被测代码所处的文件系统环境。 3、由于...
true
69ee6b832d62b4e86e6a537a199ec7624c675389
PHP
mmranger/pipes
/app/Api/V1/Transformers/Types/SplitterTransformer.php
UTF-8
1,487
2.65625
3
[]
no_license
<?php namespace App\Api\V1\Transformers\Types; use App\Api\V1\Transformers\Transformer; use App\Models\Split; use App\Models\Splitter; use Illuminate\Database\Eloquent\Model; class SplitterTransformer extends Transformer { /** * The fully qualified class of the model to use when transforming * * @...
true
9778ba767b2dccc1ed7fbd4affb7b28874eb635f
PHP
sablesoft/yii2-onelove
/console/migrations/m190207_081143_add_views_statistic_fields.php
UTF-8
1,513
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; /** * Class m190207_081143_add_views_statistic_fields */ class m190207_081143_add_views_statistic_fields extends Migration { /** @var string $table */ protected $table = 'statistic'; /** @var array $fields - all fields with new */ protected $fields = [ 'view_desk',...
true
9b2bd3b4ebb0fcb92b02180c61b1319b45d651f5
PHP
nonetallt/laravel-permission-blueprints
/src/Blueprint/JsonPermissionsBlueprint.php
UTF-8
867
2.921875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace Nonetallt\Laravel\Permission\Blueprint; use Nonetallt\Helpers\Filesystem\Json\JsonParser; use Nonetallt\Laravel\Permission\Providers\ServiceProvider; use Nonetallt\Laravel\Permission\Contracts\PermissionsBlueprint; class JsonPermissionsBlueprint implements PermissionsBlueprint { private $parser; ...
true
1b778faff082e6fe90caf9e49b4d1be7092c921a
PHP
sidelsky/artbasel
/public_html/wp-content/plugins/codepress-admin-columns/classes/ListScreenRepository/Rules.php
UTF-8
1,257
3.109375
3
[ "MIT" ]
permissive
<?php namespace AC\ListScreenRepository; use InvalidArgumentException; final class Rules { const MATCH_ALL = 'all'; const MATCH_ANY = 'any'; /** * @var string */ private $match_decision; /** * @var Rule[] */ private $rules = []; public function __construct( $match_decision = null ) { if ( null =...
true
55bf9e706db1e54dce63d6d196d128f3d1067a0c
PHP
colinjlacy/lists
/server/classes/User.php
UTF-8
3,103
3.21875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: colinjlacy * Date: 7/7/14 * Time: 10:15 AM */ namespace classes; require_once "Data.php"; class User extends Data { public function set_user($google_id, $email, $display_name) { // create a query that checks whether or not the user exists in the database ...
true
77cb1bda29ceaddff6d9c889194f7a807560b52e
PHP
tattali/CalendarBundle
/tests/Entity/EventTest.php
UTF-8
2,081
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace CalendarBundle\Tests\Entity; use CalendarBundle\Entity\Event; use PHPUnit\Framework\TestCase; class EventTest extends TestCase { private string $title; private \DateTime $start; private \DateTime $end; private array $options; private Event $entity; p...
true
9205b7c8aa8d21dfbb07a2cd67a63298cbe252af
PHP
alexanderStefanovS/web-course-project
/backend/models/User.php
UTF-8
4,801
3.09375
3
[]
no_license
<?php class User { public $id; public $username; public $password; public $email; public $firstname; public $lastname; public $role; public function __construct($id, $username, $password, $email, $firstname, $lastname, $role) { $this->id = $id; $this->username = $username; $this->password = $passwo...
true
29c95c0ee16f92a8f3f77b3ee1dd2e2bb7377259
PHP
rndbyte/laravel-porto
/app/Containers/UserSection/Authentication/Actions/WebGithubLoginAction.php
UTF-8
1,331
2.703125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Containers\UserSection\Authentication\Actions; use Throwable; use App\Ship\Contracts\Action; use App\Containers\UserSection\Authentication\Contracts\UseCases\LoginSocialUser; use App\Containers\UserSection\Authentication\Contracts\{OAuthService, SocialAccountService}; cl...
true
78bbb7fe7eb43b0d483992e4ec71c8601b1abf26
PHP
enamba/janamesa
/cronjobs/system/log_check.php
UTF-8
1,233
2.5625
3
[]
no_license
<?php /** * Checks the logs for errors and warnings * @author borisIako * @since 23.05.2011 */ require_once(realpath(dirname(__FILE__) . '/../base.php')); $config = Zend_Registry::get("configuration"); $domain = str_replace(".", "-", $config->domain->base); $file_name = $domain . '-' . date("d-m-Y", mktime(0, 0...
true
e6c2e98812b9a8be04af33d24e631926e9e77c1f
PHP
allegrocanttabile/wienerst_tecnico
/modelos/alertas.modelo.php
UTF-8
815
2.796875
3
[]
no_license
<?php require_once "conexion.php"; class ModeloAlertas{ /*============================================= MOSTRAR ALERTAS =============================================*/ static public function mdlMostrarAlertas($tabla, $item, $valor, $orden){ if($item != null){ $stmt = Conexion::conectar()->prepare("SELECT ...
true
b2c4d3e620d0962ce8e8ee227c3862e18b5bd3be
PHP
Duvan9430/ProyectoFinal
/modelo/Eventos/participanteM.php
UTF-8
4,424
2.6875
3
[]
no_license
<?php class ParticipanteM { private $miConexion; private $retorno; private $participantes; private $participantess; function __construct() { $this->miConexion = Conexion::singleton(); $this->retorno = new stdClass(); } public function readEquipo() { try{ $consulta = "SELECT id...
true
97ad311fddaaed02b147c5f383234fc7c640fcb8
PHP
flexsim/flexnet-operations
/flexnet/ProductPackagingService/Type/FailedDeletePartNumberDataType.php
UTF-8
1,607
2.765625
3
[ "MIT" ]
permissive
<?php namespace Flexnet\ProductPackagingService\Type; class FailedDeletePartNumberDataType { /** * @var \Flexnet\ProductPackagingService\Type\PartNumberIdentifierType */ private $partNumber; /** * @var string */ private $reason; /** * Constructor * * @param \F...
true
ed9dbdc6d9867145a7d87e7fac51d073b77a718d
PHP
OsamaShabrez/Adventure-with-CodeIgniter
/application/models/db_model.php
UTF-8
4,710
2.59375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Db_model extends CI_Model { public function __construct() { $this->load->database(); } public function getProduct( $catId = false ) { if( $catId === false ) { $query = $this->db->get( 'products' ); return $query->result_array(); } if (is_numeric($catId)) { $query = $...
true
0fad9dc2692bed0a3ef4db67ea7665ef5b508c39
PHP
Camelia7v/Proiect-TW
/MVC-schelet/app/view/admin/AdminView.php
UTF-8
531
2.8125
3
[]
no_license
<?php class AdminView { public static function displayMessages($messages){ echo '<h3>Mesajele utilizatorilor</h3>'; if(sizeof( $messages)==0) echo '<p> Nu sunt mesaje noi </p>'; foreach ($messages as $message) echo '<div class="message"> <br> ...
true
08cb11dfaec5f28ad8b08e3b539d97c5b4f73a70
PHP
g7sim/SecureHeaders
/tests/Http/StringHttpAdapterTest.php
UTF-8
1,547
2.671875
3
[ "MIT" ]
permissive
<?php namespace Aidantwoods\SecureHeaders\Tests\Http; use Aidantwoods\SecureHeaders\HeaderBag; use Aidantwoods\SecureHeaders\Http\StringHttpAdapter; use PHPUnit\Framework\TestCase; class StringHttpAdapterTest extends TestCase { protected static $sampleHeaders = [ 'Content-Type: text/html', 'X-Foo...
true
c9da1eaac96215cdcac904e2299f98a8f38734a5
PHP
multicaret/laravel-acquaintances
/src/Traits/CanBeVoted.php
UTF-8
3,842
2.671875
3
[ "MIT" ]
permissive
<?php namespace Multicaret\Acquaintances\Traits; use Multicaret\Acquaintances\Interaction; /** * Trait CanBeVoted. */ trait CanBeVoted { /** * Check if item is voted by given user. * * @param int|array|\Illuminate\Database\Eloquent\Model $user * * @return bool */ public fun...
true
804f351ddfd870241e08a7f014b1bef805e2aed4
PHP
voranon/central_thelist
/Central_TheList/application/models/.svn/text-base/deviceauthenticationcredential.php.svn-base
UTF-8
12,188
2.859375
3
[]
no_license
<?php //by martin //exception codes 8200-8299 class thelist_model_deviceauthenticationcredential { private $_username=null; private $_password=null; private $_enablepassword=null; private $_passwordstrenght=null; private $_api_name=null; private $_connect_class=null; private $database=null; p...
true
7751c993472cc0e4c625b78d8559ed957f145339
PHP
seeyouu87/mahjong-game-api
/application/controllers/user.php
UTF-8
1,624
2.515625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class User extends MY_Controller { function __construct() { parent::__construct(); $this->load->model('UserModel', '', true); } //********************* Authentication Internal Fn **************** // functi...
true
3d6759ad8b1dbbbea6e68f979a07320d6f8eefcc
PHP
raza4444/share-project-ei-next-backend
/app/Services/Customers/CustomerPasswordService.php
UTF-8
1,664
2.78125
3
[]
no_license
<?php /** * by stephan scheide */ namespace App\Services\Customers; use App\Entities\Repair\RepairAble; use App\Repositories\Customers\CustomerRepository; class CustomerPasswordService implements RepairAble { private static $passwords = [ 'hund', 'katze', 'huhn', 'kind', ...
true
b1492bc9a2ee59b35840c2d55e146fccf55b5c49
PHP
BorislavShopov/Project_Blog
/functions.php
UTF-8
2,858
3.171875
3
[]
no_license
<?php function postOnDay($date) { $time_ago = strtotime($date); $cur_time = time(); $time_elapsed = $cur_time - $time_ago; $seconds = $time_elapsed ; $minutes = round($time_elapsed / 60 ); $hours = round($time_elapsed ...
true
36554116232433498576ca0b2a074564932f795e
PHP
lcruzsv/cursophp
/Proyecto05/src/models/tareas.php
UTF-8
1,086
2.59375
3
[ "MIT" ]
permissive
<?php namespace models; use Doctrine\DBAL\Schema\Table; class tareas extends base { protected $id; protected $nombre; protected $estado; protected $tabla = 'tareas'; protected $campos = array( array('campo' => 'nombre', 'tipo'=>'string' ) ); /** * [getEsquema description] * @return ...
true
cd8a64654909b7fe6b184e2799544df20d64b47d
PHP
WsdlToPhp/amazon_s3
/Put/Response/AmazonS3StructPutObjectResponse.php
UTF-8
2,093
2.8125
3
[]
no_license
<?php /** * File for class AmazonS3StructPutObjectResponse * @package AmazonS3 * @subpackage Structs * @date 2013-09-04 * @author Mikaël DELSOL <contact@wsdltophp.com> */ /** * This class stands for AmazonS3StructPutObjectResponse originally named PutObjectResponse * Meta informations extracted from t...
true
a5959392d12b9139a5f30d8592251f9e9f763765
PHP
Erindor/AngularBeK
/php/conexao.php
UTF-8
659
3.09375
3
[]
no_license
<?php class Conexao{ private $server = "localhost"; private $user = "root"; private $pass = ""; private $db = "bek"; private $connection; public function __construct(){ $this->iniciarConexao(); } private function iniciarConexao(){ $this->connection = mysqli_connect($t...
true
17ee91b934dcbf3b3ace6b7b82d2629d3ddd5143
PHP
RafaelFontes/php-geometry-manager
/tests/src/Component/ComponentTest.php
UTF-8
1,770
2.703125
3
[ "MIT" ]
permissive
<?php namespace N2OTI\GM\Test\Component; use PHPUnit\Framework\TestCase; use N2OTI\GM\Component\Component; class ComponentTest extends TestCase { public function testInsert() { echo "\n-------------------------- testInsert\n"; echo "Creating new Component\n"; $component = new Componen...
true
37aaaacdf21ab3de81b6b448d1d99a7acc995bd2
PHP
rizkitirta/PHP_FUNDAMENTAL
/phpPraktek/detail.php
UTF-8
905
2.578125
3
[]
no_license
<?php session_start(); if(!isset($_SESSION['login'])) { header("Location: login.php"); exit; } require 'functions.php'; $id = $_GET['id']; $mhs = query("SELECT * FROM mahasiswa WHERE id = $id"); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-wid...
true
496be58cecd17de830f188dd75719871ea61c1af
PHP
beingmojo/facultyprofile
/f_submit_info.php
UTF-8
16,563
2.515625
3
[]
no_license
<?php session_start(); include_once 'utils.php'; include_once 'imageutils.php'; $db_conn = real_db_connect($_db_server, $_db_username, $_db_password, $_db_name); real_check_valid_session($db_conn, $_SESSION['UID'], session_id(), $_SERVER['REMOTE_ADDR']); $view = $_GET['view']; $uid = real_unescape($_SESSION['UID']);...
true
a5b79afd88a8e726f05cd848d929a04c8d188e7b
PHP
azadam/pei-rest-backend
/lib/RANDF/PEI/Data/Settings.php
UTF-8
2,873
2.640625
3
[]
no_license
<?php namespace RANDF\PEI\Data; use \Respect\Validation\Validator as v; use \RANDF\Database as Database; use \PDO as PDO; class Settings { private static function getFieldMap() { return array( 'receive_progress_notifications' => 'ReceiveProgressNotifications', 'notify_about_up...
true
a79434d5562f2d538f56b1bff2c9c03a2b82bfb7
PHP
steveknoblock/Kadro
/elevators-challenge2.php
UTF-8
5,387
3.265625
3
[]
no_license
<?php namespace Kadro; header("Content-Type: text/plain"); ################################################################################ ################################################################################ ########## ### ### ### ###### ##### ########### ########## ## ##...
true
20458f8db8184e2e47c966d415a2da9db9a20eff
PHP
seepot/eAduan
/library/My/Auth.php
UTF-8
5,212
2.59375
3
[]
no_license
<?php class My_Auth implements Zend_Auth_Adapter_Interface { private $email = null; private $user = null; public function __construct($email) { $this->email = $email; } public function getUser() { return $this->user; } public function authenticate() { /* if($t...
true
5a5f1f57626cf581584c714dd7ef2d173bc24584
PHP
flaviolopes28/ampelsrc
/ampelparrts/classes/class.noticias.php
UTF-8
1,290
2.6875
3
[]
no_license
<?php class noticias { public $id; public $limit=REGISTROS_POR_PAGINA; public $pagina=0; public $orderBy; public $where; public $tabela = "noticia"; public function listar(){ $pagina = ($this->pagina != "") ? ($this->pagina-1) : 0 ; $sql = "SELECT * FROM ".$this->tabela." WHERE (status = 1) "; if ($th...
true
76e12ac59b4d618e8252a35cd211f9d4a7213fc3
PHP
jkhamler/promo-now
/app/Models/Country.php
UTF-8
669
2.625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use OwenIt\Auditing\Contracts\Auditable; /** * Class Country * @package App\Models * @property string $name * @property string $iso_code */ class Country extends Model implements Auditable { use \OwenIt\Auditing\Auditable; protected $...
true
66aba35f75ea5e79751f34860e153f88cf38e85a
PHP
maerzhase/maerzcms
/src/writecontent.php
UTF-8
8,995
2.859375
3
[]
no_license
<?php require('php/login/connect.php'); session_start(); function scanProjectFolder($path){ $project = array(); $project['visible'] = "true"; $project['items'] = array(); foreach (glob( $path.'/*' ) as $file ) { $directory_parts = explode('/', $file); // if file isn't folder if ( filetype( $file ) !=...
true
02564a5f5fa9fde0fc882fc74f289a79b15a42b0
PHP
jstewmc/rtf
/tests/Element/Control/Word/SuperTest.php
UTF-8
1,038
2.609375
3
[ "MIT" ]
permissive
<?php namespace Jstewmc\Rtf\Element\Control\Word; class SuperTest extends \PHPUnit\Framework\TestCase { public function testGetWordReturnsString(): void { $this->assertEquals('super', (new Super())->getWord()); } public function testRunDoesSuperscriptWhenParameterIsNotZero(): void { ...
true
796cee72fb57907fe194e2592f94928a0575d767
PHP
UnIQSaQYA/photographer-diary
/classes/Session.php
UTF-8
2,060
3.28125
3
[]
no_license
<?php class Session { /** * This function is used to check if the session exists * @param string $key [description] * @return [type] [description] */ public static function exists($key = "") { if(empty($key)) { return false; } return isset($_SESSION[$key]); } /** * This function is used...
true
16865bd06b7625bdb2924d52fb65a6792a59dfea
PHP
pmerinodiaz/escuelaingecomp
/librerias/academico.php
ISO-8859-1
15,274
2.78125
3
[ "Apache-2.0" ]
permissive
<?PHP /** * academico.php. * v. 1.0. * Diciembre, 2004. * * Copyright (C) 2004 por Hctor Daz Daz - Patricio Merino Daz. * Escuela Ingeniera en Computacion, Universidad de La Serena, Chile. * Todos los derechos reservados. * * No se asume ninguna responsabilidad por el uso o alteracin de este soft...
true
9af4b7f2becb5a79a48ffd69af9a7edc61f0074c
PHP
caihuankai/chatRobot
/server/application/common/helper.php
UTF-8
25,380
2.6875
3
[ "Apache-2.0" ]
permissive
<?php //------------------------ // 扩展 助手函数 //------------------------- use app\common\controller\JsonResult; use think\Config; use think\Db; use think\Loader; if (!function_exists('Bs')) { /** * 实例化数据库类 * @param string $name 操作的数据表名称(不含前缀) * @param array|string $config 数据库配置参数 * @param bool ...
true
2d43501f9b8a8f643e4c29ebb6267338541696c1
PHP
deepakdumraliya/luca_brasi
/app/Controllers/Api.php
UTF-8
21,857
2.953125
3
[ "MIT" ]
permissive
<?php namespace App\Controllers; /** * Class BaseController * * BaseController provides a convenient place for loading components * and performing functions that are needed by all your controllers. * Extend this class in any new controllers: * class Home extends BaseController * * For security be sure to d...
true
d386f3d23898b242aecd1abeb198cf6288e2bf77
PHP
brenoroosevelt/oni-bus
/src/Handler/ClassMethod/Extractor/ExtractorUsingAttribute.php
UTF-8
3,367
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace OniBus\Handler\ClassMethod\Extractor; use OniBus\Handler\ClassMethod\ClassMethod; use OniBus\Handler\ClassMethod\ClassMethodExtractor; use ReflectionAttribute; use ReflectionClass; use ReflectionException; use ReflectionFunctionAbstract; use ReflectionMethod; use OniBus\Attrib...
true
cc5e012d5198666cee9484976428dccc4f19eb35
PHP
gikuluca/recettes
/LesRecettes.NET/php/connexion.php
UTF-8
1,768
2.609375
3
[]
no_license
<?php if(isset($_SESSION["pseudo"])) { ?> <em>Vous êtes déjà connecté, voulez vous vous déconnecter ?<em> <a href = 'index.php/page=deconnexion.php'>Déconnexion</a> <?php } else { $validation = FALSE; if (isset($_POST['bValider'])) { if(isset($_POST['pseudo']) && isset($_POST['mdp'])) { ...
true
711992727b6e5f0ce214eaeebb2fbf07a98ca9bd
PHP
bertoni/nfe-rps
/src/NfeBundle/Entity/NF/NfFooter.php
UTF-8
3,041
2.921875
3
[]
no_license
<?php /** * File that brings the NF Footer class * * PHP Version 5.5.9 * * @category Entity * @package Nfe * @name NfFooter * @author Arnaldo Bertoni <arnaldo.bertoni01@fatec.sp.gov.br> * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License * @link https://br.linkedin.com/in/ab...
true
1ff7cf75ab45826b5109de7a2d30a42363563410
PHP
Alessonmendes1094/BovEngorda
/app/Repository/PesoRepository.php
UTF-8
2,126
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Repository; use App\Bovino; use App\Pesagem; use Illuminate\Http\Request; class PesoRepository { public function findLastCreated() { return Pesagem::join('bovinos', 'bovinos.id', '=', 'pesagens.bovino_id') ->orderBy('pesagens.created_at', 'desc') ->pagin...
true
4840e44aa27bed6941841f88616e0cef52202c3a
PHP
oilstone/sugar-snap
/src/Config/Manager.php
UTF-8
2,633
2.8125
3
[ "MIT" ]
permissive
<?php namespace Api\Config; use Api\Collection; class Manager { protected $services; protected $enabled; protected $parent; /** * Manager constructor. */ public function __construct() { $this->services = new Collection(); } /** * @param string $name * @...
true
8a923380ec4ea6a61e0657b8788eda3177530e2b
PHP
AdamMac1989/toolbox
/api/getuserscrews.php
UTF-8
706
2.796875
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = "root"; $database = "toolbox"; // Create connection $conn = new mysqli ($servername, $username, $password, $database); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } //echo "Connected successfu...
true
559cb1edc4bfedc7e9ab7916ab24c97a25a607ce
PHP
gfederica/laravel-boolpress
/app/Http/Controllers/Admin/PostController.php
UTF-8
9,567
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Illuminate\Support\Str; use Illuminate\Support\Facades\Storage; use App\Post; use App\Tag; use App\Category; class PostController extends Controller { /** * Display a listing of the resource. ...
true
e8bb5ee9e14219750696617f783074ffd77cdf62
PHP
Russkazkin/beejee
/app/engine/Session.php
UTF-8
520
2.9375
3
[]
no_license
<?php namespace app\engine; class Session { public function setProp($prop, $value) { $_SESSION[$prop] = $value; } public function getProp($prop) { if (isset($_SESSION[$prop])) { return $_SESSION[$prop]; } else { return null; } } ...
true
573fc24ebde9c1a59ecfa35995eab08e45706d9d
PHP
Desch/EmuDevstore
/community/wcf/lib/data/DatabaseObjectList.class.php
UTF-8
1,138
2.90625
3
[]
no_license
<?php /** * Abstract class for a list of database objects. * * @author Marcel Werk * @copyright 2001-2009 WoltLab GmbH * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> * @package com.woltlab.wcf * @subpackage data * @category Community Framework */ abstract class ...
true
cb40711c301d052bac6346ec7baa005ad1512cd3
PHP
googleapis/google-api-php-client-services
/src/Dfareporting/Resource/BillingAssignments.php
UTF-8
2,942
2.515625
3
[ "Apache-2.0" ]
permissive
<?php /* * Copyright 2014 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
true
bd3fc430208fc5386c80f86d1cb7e9218b061d10
PHP
sbDevelopments/coyote2
/framework/template/pagination/default.php
UTF-8
2,225
2.609375
3
[]
no_license
<span class="pagination"> <?php if ($previousPage) : ?> <a href="<?= $url . 'start=' . ($previousPage -1) * $itemsPerPage; ?>">&laquo;&nbsp;</a> <?php endif; ?> <?php if (!$totalPages) : ?> <strong>1</strong> <?php elseif ($totalPages < 10) : ?> <?php for ($i = 1; $i <= $totalPages; $i++) : ?> <?php i...
true
6a0418edebc863f7ec15bee579439e661b21a38b
PHP
mlenoir42bis/frameworck-php
/frameworck-whitoutAPI/app/lib/security.class.php
UTF-8
422
2.5625
3
[]
no_license
<?php class Security { function bdd($string) { $con=mysql_connect("localhost","root","root4","bdd_e"); if(ctype_digit($string)) { $string = intval($string); } else { $string = mysql_real_escape_string($string); $string = addcslashes($string, '%_'); } mysql_close($con); return...
true