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
e11c2c381c4ee42f13759c0313a880f21f32a1ed
PHP
CELLAR-D00R/weavent
/vote.php
UTF-8
792
2.9375
3
[ "MIT" ]
permissive
<?php // Incluindo arquivo de conexão include("config.php"); // Recuperando valores $id = (int) $_POST["id"]; $type = addslashes($_POST["type"]); $cookie = $_COOKIE["voted".$id]; // Se o cookie ainda não foi setado if (!isset($cookie)) { // Incrementa o voto da frase $query = mysql_query("UPDATE vote SET ".$t...
true
afa82543f6dfe5b1d0eb317c38cbc2265f94a2e4
PHP
BasilAlosious/furniture-store-php-
/Admin_panel/coupon_sys/class.coupon.php
UTF-8
4,994
3.171875
3
[ "WTFPL" ]
permissive
<?php /** * Class to handle coupon operations * Changes by Alex Rabinovich (@putchi) * * @author Joash Pereira * @date 2015-06-05 */ class coupon { CONST MIN_LENGTH = 8; /** * MASK FORMAT [XXX-XXX] * 'X' this is random symbols * '-' this is separator * * @param array $optio...
true
fd1c5c0d4e58527679c07c5718323d040fdac219
PHP
davidmars/m-vc
/_system/utils/Human.php
UTF-8
1,050
2.96875
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of Human * * @author david marsalone */ class Human { const TYPE_ERROR ="error"; const TYPE_WARN ="warn"; const TYPE_LOG ="log"; public static function log($obj,$titl...
true
71666abc92cd9523f3df027c29c1caab6b27ba11
PHP
elektronika/eldsjal
/application/widgets/views/new_timeline.php
UTF-8
1,083
2.609375
3
[]
no_license
<?php if( ! empty($items) || $show_filter): ?> <h3 class="widget-title"> <span class="left">Senaste färskaste!</span> <?php if($show_filter): ?> <span class="right"> <?php foreach($filters as $key => $name): ?> <a<?php if($filter == $key) echo ' class="current"'; ?> href="<?php echo $url; ?>?timeline_filter=...
true
079e68c22b70b524fa03e4e0e590a7d4d75d5494
PHP
awdxszz/vue
/phalcon/app/modules/api/controller/UserBase.php
UTF-8
445
2.546875
3
[]
no_license
<?php namespace app\modules\api\controller; class UserBase extends Base { /* 构造函数 */ public function initialize(){ // 验证Token $token = trim($this->request->getPost('token')); if(!$token) return $this->response->redirect('user/safety?code=40001&msg=请输入Token!'); $res = self::token($token); if($r...
true
66a176e168cb318053c0c9beb060b24fa92ab496
PHP
artemeon/image
/src/Plugins/ImageOverlay.php
UTF-8
1,910
2.5625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Artemeon Core - Web Application Framework. * * (c) Artemeon <www.artemeon.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Artemeon\Image\Plugins; use Artemeon\Image\Image; /** *...
true
d84814b6e68e0e28115bbfd9ef3384e7ad3f8f45
PHP
xav335/votreimmopro
/admin/classes/Planning.php
UTF-8
1,085
2.78125
3
[]
no_license
<?php require_once("StorageManager.php"); class Planning extends StorageManager { public function __construct(){ } public function planningGet(){ $this->dbConnect(); $requete = "SELECT * FROM `planning` WHERE id=1"; //print_r($requete); $new_array = null; $result = mysqli_query($this->mysqli,$requete);...
true
f615e2c720b3ad2694abdca66e308ad6a2985ffb
PHP
ivanovnm/tasks
/classes/imageacceptor.php
UTF-8
8,279
3.015625
3
[]
no_license
<?php class c_imageacceptor { private $fildname = "" ; public $error_code = "0" ; function __construct($fildname) { $this->fildname = $fildname ; } function __desctruct() { } /*-----------------------------------------------------*/ //проверка на существование private function ifExist($fildname) { ...
true
9f13ceab092454f28070910d7cb564dbfa6de49e
PHP
RedberryProducts/Spear
/src/Commands/DockerImagesList.php
UTF-8
2,423
2.796875
3
[]
no_license
<?php namespace Redberry\Spear\Commands; use Illuminate\Console\Command; use Redberry\Spear\Facades\Docker; use Redberry\Spear\Handlers\CppHandler; use Redberry\Spear\Handlers\CSharpHandler; use Redberry\Spear\Handlers\GoHandler; use Redberry\Spear\Handlers\JavaHandler; use Redberry\Spear\Handlers\NodeHandler; use Re...
true
1361b75d234ff5e34c8c827d74e8396b2b5106bf
PHP
structurizr-php/structurizr-php
/src/StructurizrPHP/Core/View/DefaultLayoutMergeStrategy.php
UTF-8
3,439
2.8125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of the Structurizr for PHP. * * (c) Norbert Orzechowicz <norbert@orzechowicz.pl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace StructurizrPHP\Core\View; use Stru...
true
e345d8fef8a25ac45e02a20d4522fb907173f5f9
PHP
nktnaru/board
/folder_second/folder_third/incert.php
UTF-8
2,702
2.71875
3
[]
no_license
<!-- 投稿フォームに値が入っているかで条件分岐 --> <?php if( empty($_POST['msg'])): ?> <?php //エラー変数の初期化 $error_name = null; $error_text = null; //エラーメッセージの変数への代入 if(empty($_POST['msg'])){ $error_msg = '投稿文を入力してください'; }; ?> <!DOCTYPE html> <html lang = “ja”> <head> <meta charset = “UFT-8”> <title>投稿作成</title> <link re...
true
81a172e12a2629603f47392e4983d48d1f20a198
PHP
RusavskiyAV/test-task-labor-exchange
/src/Model/Worker/Entity/Worker.php
UTF-8
900
2.859375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Model\Worker\Entity; use Brick\Money\Money; class Worker extends AbstractWorker { /** * @var string */ private const MAX_HOURS_PER_DAY = 'PT16H'; private Characteristics $characteristics; private \DateInterval $maxHoursPerDay; /** * {...
true
e1196322d7db18b8b7cfae5b549e6517cb0b42cb
PHP
whizsid/arraybase
/example/index.php
UTF-8
2,590
2.640625
3
[ "MIT" ]
permissive
<?php require_once '../vendor/autoload.php'; use WhizSid\ArrayBase\AB; // Creating a array base instance $ab = new AB(); echo 'ArrayBase Connection Created'; echo '<br/>'; echo microtime(true); echo '<br/>'; // Creating a array base table $ab->createTable('tbl_customer', [ [ 'c_id' => 1, 'c...
true
76ab7b5a36e694011367cadb83c66a503425615e
PHP
skavt/CRM
/modules/api/models/query/UserQuery.php
UTF-8
1,178
2.8125
3
[]
no_license
<?php namespace app\modules\api\models\query; use app\modules\api\models\User; use yii\db\ActiveQuery; /** * This is the ActiveQuery class for [[\app\models\User]]. * * @see \app\modules\api\models\User */ class UserQuery extends ActiveQuery { /** * {@inheritdoc} * @return User[]|array */ ...
true
a34cc6302b2f5f0795f53903cf10a511e87d903b
PHP
MatheusBespalec/Site-Dinamico-com-Painel
/ajax/form.php
UTF-8
1,582
2.53125
3
[]
no_license
<?php include('../class/Mailer.php'); if ($_POST['identificador'] == 'form_email') { $email = $_POST['email']; $txt = ''; foreach ($_POST as $key => $value) { $txt.= ucfirst($key).': '.$value; $txt.='<hr>'; } //Parametros Mailer: 1°SMTP Server 2° Email que vai disparar o email 3° Senh...
true
021347ab69f589a27f1d9b95e8820a077aa0b6d7
PHP
cahyowhy/php7.0-mvc-starter
/src/Model/Book.php
UTF-8
1,715
3.1875
3
[]
no_license
<?php namespace Bookstore\Model; class Book { private $id = 0; private $isbn = ''; private $title = ''; private $author = ''; private $stock = 0; private $price = 0.0; private $customers = []; public function getCustomers(): array { return $this->customers; } publ...
true
70d6c45d579b58ba8ea72fe252f0efc61bb17192
PHP
pixelbrackets/rector
/packages/BetterPhpDocParser/PhpDoc/ArrayItemNode.php
UTF-8
1,699
2.875
3
[ "MIT" ]
permissive
<?php declare (strict_types=1); namespace Rector\BetterPhpDocParser\PhpDoc; use PhpParser\Node\Scalar\String_; use PHPStan\PhpDocParser\Ast\NodeAttributes; use PHPStan\PhpDocParser\Ast\PhpDoc\PhpDocTagValueNode; use Stringable; final class ArrayItemNode implements PhpDocTagValueNode { use NodeAttributes; /** ...
true
c2b9540fe6d4eda7e2380ce31e6bafaada6050ab
PHP
dimario203/insurance
/frontend/models/polis/Live.php
UTF-8
1,589
2.609375
3
[ "Apache-2.0" ]
permissive
<?php namespace app\models\polis; use Yii; /** * This is the model class for table "live". * * @property integer $id * @property integer $company_id * @property integer $age * @property integer $sum_insured * @property integer $work * @property integer $pay_hospital * @property integer $pay_surgery * @prop...
true
b12bee50e433f741ab8625ebbc4d9d8c7cd804a8
PHP
nameiOP/rua
/framework/able/loopable.php
UTF-8
169
2.546875
3
[]
no_license
<?php namespace rua\able; /** * 轮训 * Interface loopable * @package rua\able */ interface loopable{ public function loop($timeout); }
true
ad4bfb432de189faa5cb931eaf2d55d1d7f6880e
PHP
valpfei/ISRC_DEV
/src/openweathermap.php
UTF-8
2,096
2.734375
3
[ "MIT" ]
permissive
<?php /** * PHP version 7.2.19 * @category ISRC_DEV * @package OpenWeatherMap * @author Valentin Pfeil <valentin.pfeil@ecole-air.fr> * @license MIT (https://opensource.org/licenses/MIT) * @link https://ecole-air.fr */ /** * Chargement des dépendances et des modules */ require __DIR__ . '/../vendor/a...
true
68b744de729e2841248aff039361150c0955fde9
PHP
G-eat/PHP-MVC-BLOG
/app/controllers/PostController.php
UTF-8
6,707
2.578125
3
[]
no_license
<?php namespace App\Controllers; use App\Core\Controller; use App\Core\Message; use App\Core\Data; use App\Database\Database; use App\Models\User; use App\Models\Post; /** * PostController */ class PostController extends Controller { public function __construct($params = null) { $user = new User();...
true
dbcddde840549d5863c8a773a697f38800e9cf34
PHP
ft22000/FoodFinderProject-API-Website
/util/loginManagement.php
UTF-8
2,903
3.03125
3
[]
no_license
<?php /** * Contains helper functions for the login process */ // JN: Sessions are required by this document require_once('session.php'); require_once('util/Dbconnection.php'); /** * LoginUser * * Will check a given username and password, against entries in the database connection supplied * * @PARAM userEmail...
true
6ccee7a79d9508c11a89009f3f684f94aa30db65
PHP
oldfoot/lams
/modules/leave/classes/old/pluginsreports.php
UTF-8
1,723
2.859375
3
[]
no_license
<?php class pluginsreports { public function __construct() { $this->classes = array(); $dir = $GLOBALS['dr']."/modules/leave/plugins/reports/"; //echo $dir; // READ ALL THE PLUGINS INTO A DIRECTORY if ($handle = opendir($dir)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $fi...
true
a18bc61b6e33db006a4fd8e8701276876daeb090
PHP
scienceatlantic/afred
/app/FormEntryStatus.php
UTF-8
534
2.71875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class FormEntryStatus extends Model { /** * Relationship with all its form entries of a particular status. */ public function formEntries() { return $this->hasMany('App\FormEntry'); } /** * Find a particular ...
true
f470a20114b9f2f21b3df70f65ed349a3c82bbe6
PHP
kkuflewski/file_encryption
/upload.php
UTF-8
3,439
3.171875
3
[]
no_license
<?php function returnWithMessage($message) { session_start(); $_SESSION['error'] = $message; header("Location: index.php"); die(); } function mixWord($word) { //word string to array of word characters $wordSigns = preg_split('//u', $word, -1, PREG_SPLIT_NO_EMPTY); //get first and last cha...
true
624607885b3950d3e175fee2b6c4804d21a6889a
PHP
shreeja007/Laravel_Proj
/routes/web.php
UTF-8
1,337
2.65625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Route; use App\Models\Product; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes...
true
76e5ba76d18610060bcfd6c299def52150269ccf
PHP
mAsT3RpEE/BLW
/tests/Model/MIME/UserAgentTest.php
UTF-8
3,444
2.703125
3
[ "MIT" ]
permissive
<?php /** * UserAgentTest.php | Mar 10, 2014 * * @filesource * @license MIT * @copyright Copyright (c) 2013-2018, mAsT3RpEE's Zone * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ /** * @package BLW\MIME * @version 1.0.0 * @author Walter Ots...
true
446f3d94a4bfcfb725b63d8b338e396235b29cf8
PHP
JeffreyLi16/COMP-353
/App/signup.php
UTF-8
4,131
2.515625
3
[]
no_license
<?php include("config.local.php"); session_start(); if($_SERVER["REQUEST_METHOD"] == "POST") { // username and password sent from form $mycardNumber = $_POST['cardNumber']; $mypassword = $_POST['password']; $mycpassword = $_POST['confirmPassword']; if($mypassword == $mycpass...
true
367bf9d07b755fc5ee69d5a2b3dea1273b2361f4
PHP
immosentomppa/Ajava
/adminpanel/palvelu/lisaapalvelu.php
UTF-8
1,442
2.96875
3
[]
no_license
<? //Jos palvelun tiedot on asetettu ja ne postataan -> asetetaan ne muuttujiin. if (isset($_POST['palvelu'], $_POST['kategoria'], $_POST['palvelunkesto']) && $_POST['palvelu'] && $_POST['kategoria'] && $_POST['palvelunkesto']) { $kesto = $_POST['palvelunkesto']; $kategoria = $_POST['kategoria']; $palvelu = $_POST['...
true
8c7c1ba0625abac2458080dcf32ce02fb37734f7
PHP
JoosepLiiv/php
/oop/text.php
UTF-8
438
3.265625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Joosep * Date: 11.01.2017 * Time: 14:23 */ class text { //text class begin var $str = ''; //constructor function __construct($s='') { $this->setText($s); } //methods function setText($s){ $th...
true
8404a4b59a4f4d8e370a7a608e2f486be75fa905
PHP
BernhardBehrendt/appstack.io
/api/proxyclasses/metas.php
UTF-8
12,885
2.546875
3
[ "MIT" ]
permissive
<?php // cde638c0d676be42c2f2ad39e6d68a2c require_once 'abstract.proxy.php'; class metas extends Proxy { private $oMetas; private $oMetavalue; public function __construct() { parent::__construct ( __CLASS__ ); $this->oMetas = new Application_Model_Meta ( $this->req ['request'] ['ns'] ); $this->oMetavalue =...
true
7aa053cc2b58077cf2d2eedd815c69d877879cec
PHP
srdmrtsr/PersonalBankv4
/PersonalBankv4/LogicLayer/BankStatementManager.php
UTF-8
1,405
2.984375
3
[]
no_license
<?php require_once("DataLayer/DB.php"); require_once("Statement.php"); class BankStatementManager{ public static function InsertStatement($sender, $receiver, $date, $amount,$sendername,$receivername){ $db = new DB(); $success = $db->executeQuery("INSERT INTO account_bank_statements(Sender_Account ,...
true
66037e13b7004c4db161094b3a8bd6c08b2c2164
PHP
Mickemal/hello
/foreach.php
UTF-8
355
3.234375
3
[]
no_license
<?php $maxKey = null; $maxLenght = null; foreach ($_SERVER as $key => $value) { htmlentities(print_r($key . " = " . strlen($value) . "<br>")); } $len = strlen($value); if ($len > $maxLenght) { $maxLength = $len; $maxKey = $key; } ?> </pre> <p>The Key with the highest value in $_SERVER is: <?= htmlenti...
true
9b28c4f81eebcef826adf800f7005cd5e12d04be
PHP
talhakazmi/laravel
/app/Enums/UserType.php
UTF-8
405
3.03125
3
[]
no_license
<?php namespace App\Enums; class UserType { const CLIENT = 1; const DELIVERY_REPRESENTATIVE = 2; const SHOP_REPRESENTATIVE = 3; const ADMIN = 4; public static $types = [ 'Client', 'Delivery Representative', 'Shop Representative', 'Admin' ]; public static function getTypeString(int $value) { if ($v...
true
ece6121b24118aaf1386eaa5fcac20ae03e15a9d
PHP
CTA-K12/RuleBundle
/Model/Context/ContextCollectionInterface.php
UTF-8
1,602
2.859375
3
[ "MIT" ]
permissive
<?php namespace Mesd\RuleBundle\Model\Context; use Mesd\RuleBundle\Model\Action\AbstractContextAction; use Mesd\RuleBundle\Model\Attribute\AbstractContextAttribute; interface ContextCollectionInterface { /** * Add a context to the collection. * * @param GenericContext $context Context to add ...
true
72afb00c6a37d1488fd79689d0668198c65e9a5a
PHP
jasonrhodes/12tdds
/day1/SetInfo.php
UTF-8
939
3.171875
3
[]
no_license
<?php class SetInfo { public function pickSmaller($a, $b) { return (!is_null($a) && $a < $b) ? $a : $b; } public function pickSmallest($set) { return array_reduce($set, array($this, "pickSmaller")); } public function pickBigger($a, $b) { return (!is_null($a) && $a > $b) ? $a : $b; } public functio...
true
5aff268a9069c393ce5f975e379ad3d7836d5c4e
PHP
sjdiego/budget-requests
/app/Category.php
UTF-8
1,085
2.78125
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\HasOne; use Illuminate\Database\Eloquent\Relations\HasMany; /** * Class Category * * @property string name * @property string description * @property string slug * @property integer parent_id * * @package ...
true
85964e01e6eb8c1e4e86ccc6c98906a3014ba092
PHP
SergoMorello/larasopp
/src/LarasoppBroadcaster.php
UTF-8
1,885
2.5625
3
[ "MIT" ]
permissive
<?php namespace Larasopp; use Illuminate\Broadcasting\Broadcasters\Broadcaster; use Illuminate\Broadcasting\BroadcastException; use Illuminate\Support\Arr; use Illuminate\Support\Str; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; use Illuminate\Http\Request; class LarasoppBroadcaster extends...
true
ff86a18dd63fbad6c44122e0a8314a5db0e4b638
PHP
viniciusnw/umbrella
/model/Model.php
UTF-8
186
2.5625
3
[]
no_license
<?php class Model extends DAO{ function getData( array $array ){ $sql = 'SELECT * FROM data where 1'; return $this->execute( $sql ); } }
true
56789ef6f94dc5bc0d5dd851a47459ac73da9f33
PHP
davidhiller/php-shoop
/src/Filter/Divide.php
UTF-8
2,111
2.828125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Eightfold\Shoop\Filter; use Eightfold\Foldable\Filter; use Eightfold\Shoop\Shoop; use Eightfold\Shoop\Filter\Is\IsIdenticalTo; use Eightfold\Shoop\Filter\Traverse\DropUsing; /** * @todo - invocation, rename to DivideBy */ class Divide extends Filter { public function...
true
3e9e18c4855439ad2e619e3da5eb44f4fa51ad44
PHP
Rexyandrian/codeigniter-krs
/application/models/m_mahasiswa.php
UTF-8
1,229
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class M_Mahasiswa extends CI_Model { function __construct() { parent::__construct(); } public function all(){ return $this->db ->get('mahasiswa') ->result(); } public fun...
true
5f35b4b61e6ea86b1c58eb725d85f085397ee3e6
PHP
kazhulis/laravel1
/app/Http/Middleware/LocalizationMiddleware.php
UTF-8
705
2.71875
3
[]
no_license
<?php namespace App\Http\Middleware; use Closure; class LocalizationMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { if (\Session:...
true
6382b98338349475014757d8a1fa8967370064b8
PHP
lusion/athena-frontend
/layout/table.php
UTF-8
2,289
2.9375
3
[]
no_license
<?php class Table { var $checkbox = 0; var $functions = array(); var $headers = array(); var $rownum = 0; var $options = array(); var $rows = array(); function __construct($headers, $options=array()) { $this->addHeaders($headers); $this->setOptions($options); } function setOptions($options) { $...
true
88573077052cd76c2280775dfb04edc6ea3cf7a7
PHP
liosaro/pangloria
/proceso/promateriaprima/pedidomateriaprima/ingresar/pedidomateriaprima.php
UTF-8
7,378
2.546875
3
[]
no_license
<?php require_once('../../../../Connections/basepangloria.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue...
true
a86f28caa82aecb28824e9dcfd63c583ad0357b6
PHP
liyuekun123/swoft-game
/app/WebSocket/Game/Logic/IsDouble.php
UTF-8
891
2.6875
3
[]
no_license
<?php namespace App\WebSocket\Game\Logic; use App\WebSocket\Game\Core\AStrategy; use App\WebSocket\Game\Core\Packet; use App\WebSocket\Game\Core\JokerPoker; use App\WebSocket\Game\Conf\MainCmd; use App\WebSocket\Game\Conf\SubCmd; /** * 翻倍处理 */ class IsDouble extends AStrategy { /** * 执行方...
true
763a18b3b61d1a796bb312ef09eb16eafb0ba840
PHP
jmendozacu/aswanu.com
/mivec/clone/product/source.export.php
UTF-8
2,245
2.640625
3
[]
no_license
<?php require 'config.php'; if ($content = getCsvContent(__DATA_PATH__ . __FILE_OCCUPIED__)) { $fp = fopen(__DATA_PATH__ . __FILE_SOURCE_EXPORT__ , "wb"); $header = array( "id" , "sku" ,"entity_type_id" ,"attribute_set_id", "name" ,"weight" , "status" , "visibility" ,...
true
2e180c996440ab1b86c47ccf342ac18d2085bc9f
PHP
SiMCard25/ZenSite
/LutonBits/includes/add_game.php
UTF-8
919
2.546875
3
[]
no_license
<?php $Vet_OK=TRUE; // Get $_POST data (New Game Date) $NGD = $_POST['NGD']; // vet the data and feed back print "<script language=javascript>\n"; // Check supplied Game Date // print "<!-- \$NGD = ".$NGD." -->\n"; $GDy = substr($NGD,strrpos($NGD,"-")+1,2); $GMt = substr($NGD,strpos($NGD,"-")+1,2); $G...
true
73d446a85a5115e2fa4f36c6a95a4aeb19c5e925
PHP
devdprj/iclocker
/Controller/RestController.php
UTF-8
19,377
2.6875
3
[]
no_license
<?php namespace Controller; use \Model\Category; use \Model\Element; use \Model\User; use \Model\Property; use \Model\Propertychoice; use \Model\Collection; use \Model\Product; use \Model\Elementorder; use \Model\Orderelement; class RestController extends Base { const CODE_OK = 200; const CODE_CREATED = 201; cons...
true
7a58152ddbfff10f99f1357985240647880225db
PHP
sandervankasteel/l7-demo-phpgrunn
/database/seeds/EventSeeder.php
UTF-8
557
2.515625
3
[ "MIT" ]
permissive
<?php use App\Models\Event; use App\Models\User; use Illuminate\Database\Seeder; class EventSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { factory(Event::class,50)->make()->each(static function($event) { $user = fac...
true
aca93883e7e3e729ca861f279dbc3e65d86cf4c2
PHP
webivan1/tutor-club
/app/Notifications/TutorProfile/ProfileIsActive.php
UTF-8
1,460
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Notifications\TutorProfile; use App\Entity\TutorProfile; use App\Entity\User; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; class ProfileIsActive extends Notification implemen...
true
07fddba61983d229f155139967a5b807d3cd9e47
PHP
florbordag/AnimalZone
/appmvc/model/Post.php
UTF-8
4,698
2.859375
3
[]
no_license
<?php class Post extends EntidadBase{ private $id_post; private $user; //id_usuario private $descripcion; private $fecha; private $titulo; private $imagen1=null; private $imagen2=null; private $imagen3=null; private $adjunto=null; private $palabra1=null; private $palabra2=nul...
true
ab5699e506ec8debbde9d32200cdea6e5af256c6
PHP
lingtalfi/nullos-admin
/app-nullos/class-modules/LayoutDynamicHead/LayoutDynamicHeadModule.php
UTF-8
908
3.046875
3
[]
no_license
<?php namespace LayoutDynamicHead; use Layout\AssetsList; /** * Quick and dirty class which helps a developer call assets dynamically. * * The main synopsis being a developer making quick css tests... */ class LayoutDynamicHeadModule { private static $list = []; public static function registerAssets...
true
04aba324e30c057a3c1cd6c9c3da6c1ec39f7470
PHP
GunnarEriksson/origo
/src/CDice/DiceImage.php
UTF-8
927
3.671875
4
[ "MIT" ]
permissive
<?php /** * A dice with images as graphical representation. */ class DiceImage extends Dice { const NUM_OF_FACES = 6; /** * Constructor * Calls the parent constructor with the number of faces set to six. */ public function __construct() { parent::__construct(self::NUM_OF_FACES...
true
234c900b992d6c9b927bff532c95627ada397029
PHP
sahara2001/MySQL_project
/shipment.php
UTF-8
1,568
2.671875
3
[]
no_license
<html> <head> <title>Shipment history</title> </head> <?php include "header.php"; ?> <body> <a href = "http://localhost:8080/3241_pj/changeShipment.php">Edit</a> <table> <thead> <tr> <td>Shipment id</td> <td>Line number</td> ...
true
2ea1ee24f2133b3f09997e06953be32d12f26858
PHP
abdashaffan/engima-bioskop
/app/models/ScheduleModel.php
UTF-8
875
2.765625
3
[]
no_license
<?php class ScheduleModel { private $table = 'schedule'; private $db; public function __construct() { $this->db = new Database(); } //TODO: ubah jadi yg blom lewat hari ini //TODO: ubah count seatnya itung yg occupied doang public function getAllScheduleByFilmId($id) { ...
true
5f32f71049a80c8c556f66243ae3ea1982e6d1b9
PHP
hxxy2003/vipclub
/Application/ReserveSite/Model/SiteDateModel.class.php
UTF-8
1,095
2.6875
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: albert * Date: 2016/9/1 * Time: 10:31 */ namespace ReserveSite\Model; use Think\Model; class SiteDateModel extends Model{ protected $fields = array( 'id', 'start_time', 'end_time', 'status' ); /** * @param int $date ...
true
78da0c71d067f5d5bf5d5df795c5cd8432c2cd3a
PHP
JEDelanois/CS411Project
/api/loginUser.php
UTF-8
1,244
2.640625
3
[]
no_license
<?php require '../dbconfig.php'; require '../classes/Database.php'; require '../libs/password.php'; header("Content-Type: application/json"); $db = new DatabaseConnection(); if(isset($_GET["email"]) && isset($_GET["password"])){ $email = htmlentities($_GET["email"]); $password = htmlentities($_GET["password"]...
true
9e9ee1f24eea50f804a462a65fe690ce27b85759
PHP
marcioheleno/sin-financas
/src/helpers.php
UTF-8
576
3.203125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: oicram * Date: 28/11/2017 * Time: 14:48 */ /** * @param $date * @return array|string */ function dateParse($date) { // DD/MM/YYYY => YYYY/MM/DD $dateArray = explode('/', $date); $dateArray = array_reverse($dateArray); $dateArray = implode("-", $dateArra...
true
5cd032f951326ca5662e30e70a57c9565d939096
PHP
alzerid/Arbitrage
/framework/database/drivers/mongo/CDriverQuery.class.php
UTF-8
5,391
2.578125
3
[]
no_license
<? namespace Framework\Database\Drivers\Mongo; class CMongoModelQuery extends \Framework\Database\CDriverQuery { public function findOne($query=array()) { $this->_cmd = 'findOne'; $this->_query = $query; return $this; } public function findAll($query=array()) { $this->_cmd = 'find'; $this->_query ...
true
4d10ef04f5bd0b222d5655c20460fd1f4e132610
PHP
Wolbolar/IPSymconLogitechHarmony
/Harmony Device/module.php
ISO-8859-1
5,800
2.65625
3
[ "MIT" ]
permissive
<? class HarmonyAPIDevice extends IPSModule { public function Create() { //Never delete this line! parent::Create(); // 1. Verfgbarer HarmonySplitter wird verbunden oder neu erzeugt, wenn nicht vorhanden. $this->ConnectParent("{03B162DB-7A3A-41AE-A676-2444F16EBEDF}"); ...
true
b7bf45cc066e097bfe771225e32b372636984395
PHP
kampernet/magic
/lib/Application.php
UTF-8
668
3.21875
3
[]
no_license
<?php /** * Application is a mock Singleton SimpleXML wrapper class * so we don't have to keep re-opening * the application.xml file * * @package lib */ class Application { private static $_instance = null; /** * private constructor */ private function __construct() { } /** * override clone * ...
true
9b1d91cecc95fda1ab943c037a3ee0d7c6896a30
PHP
cryptictech/OpenMix
/src/svr/upload.php
UTF-8
1,642
2.546875
3
[]
no_license
<?php session_start(); if(!isset($_SESSION['fileMger'])){ $_SESSION['fileMger'] = array(); } function rndJesus(){ $rnd = rand(10, 999999999999999); if($rnd < 0 ){ $rnd *= -1; } return $rnd; } //Reference and code from https://www.w3schools.com/php/php_file_upload.asp $target_dir = "../../uploads"; $extention =...
true
46785a4144813dd6c6fcb56bb396de3117e8d71b
PHP
LuKratix/Site
/application/controllers/Utilisateurs.php
UTF-8
3,899
2.609375
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * * @author Lukratix * @version 1.0 * */ class Utilisateurs extends CI_Controller { function __construct() { parent::__construct(); $this->load->model('Utilisateur_model'); $this->load->helper('url_helper'); $t...
true
d2f7395b1c0d871c659435ec7ed76e4138099747
PHP
thisaraRIR/SinekloApS
/admin/proccess.php
UTF-8
691
2.59375
3
[]
no_license
<?php require_once '../database/connection.php'; session_start(); if (isset($_POST['btnlogin'])) { if (empty($_POST['email']) || empty($_POST['password'])) { header("location:index.php?Empty= Please Fill in the Blanks!"); } else { $query = "select * from user where email = '" . $_POST['email...
true
6b50b827fac0f5c6c420123729ac53d469362057
PHP
misaeboca/ecomerce
/app/Console/Commands/General/GenerateCategories.php
UTF-8
2,511
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands\General; use App\Models\Admin\Category; use App\Models\Admin\Client; use App\Models\Admin\Product; use App\Models\GlobalStatus; use Illuminate\Console\Command; class GenerateCategories extends Command { /** * The name and signature of the console command. * * @...
true
ab9d70ec48353b15b31c59a4970ef35103815249
PHP
developerszen/spa-vue
/app/Http/Controllers/AuthController.php
UTF-8
987
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class AuthController extends Controller { protected $ttl_remember = 4320; protected $ttl_default = 60; function login(Request $request) { $request->validate([ 'email' => 'required|email|exists:users,email', ...
true
e57b53a50d1979bc77b86ac541b852b51e0f5df9
PHP
mstr1/Docker-PHP7
/code/index.php
UTF-8
4,119
2.765625
3
[]
no_license
<?php // index.php 20151015 (C) 2015 Mark Constable <markc@renta.net> (AGPL-3.0) // https://github.com/markc/simple-php7-examples/tree/master/03-MVC/README.md declare(strict_types = 1); const DS = DIRECTORY_SEPARATOR; const SYS = __DIR__; const INC = SYS.DS.'lib'.DS.'php'.DS; echo new Controller(new class { ...
true
ca76aa2feea5718593b8883d65889f9b1efaea70
PHP
Desenvolvimento-DGI/Scripts
/lpgs-l8/Sistema_Processamento_L8/areaRelatorioSistemaL8/relatorioClass.php
UTF-8
12,985
2.78125
3
[]
no_license
<?php /* Classe com as funções PHP respnsáveis pelas operacoes de INGEST Autor: Jose Neto Data: 03/2015 */ // classe de conexao com o banco de dados // include("../config/conexao/conexaoBD.php"); class RelatorioClass { // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++...
true
216fd8438144d2b745715847053b4916eeef7ebd
PHP
ichynul/labuilder
/src/Table/Actionbar.php
UTF-8
7,887
2.59375
3
[ "MIT" ]
permissive
<?php namespace Ichynul\Labuilder\Table; use Ichynul\Labuilder\Common\Toolbar; use Ichynul\Labuilder\Logic\Url; class Actionbar extends Toolbar { protected $pk; protected $rowId; protected $rowData; protected $mapClass = []; /** * Undocumented function * * @...
true
d25b02ba6dfe871bc74050a1a91e7333f7d52bc9
PHP
cloudfoundry/php-buildpack
/fixtures/symfony_5_local_deps/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/AccessInterceptorValueHolder/MethodGenerator/Util/InterceptorGenerator.php
UTF-8
3,351
2.734375
3
[ "MIT", "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace ProxyManager\ProxyGenerator\AccessInterceptorValueHolder\MethodGenerator\Util; use ProxyManager\Generator\MethodGenerator; use ProxyManager\Generator\Util\ProxiedMethodReturnExpression; use Zend\Code\Generator\PropertyGenerator; /** * Utility to create pre- and post- method...
true
0036596ec76c0bb6b1c3226820ab8d7ae0d24be4
PHP
v-prasolenko/api-test
/src/Enum/StatusEnum.php
UTF-8
830
3.03125
3
[]
no_license
<?php namespace App\Enum; use Exception; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; /** * Class StatusEnum * @package App\Enum */ class StatusEnum { /** * @var int */ const NEW = 1; /** * @var int */ const PAY = 2; /** * @param int $statusId ...
true
6838c899ae7b4660ca9efba0aa79614dc7853f1f
PHP
fkaaniche/Projet
/panier/modele_panier.php
UTF-8
1,477
2.609375
3
[]
no_license
<?php class ModelePanier extends ModeleGenerique{ public function getUtilisateur($mail){ try{ $result=self::$connexion->prepare("select * from dutinfopw201641.Client where mailClient=?"); $result->execute(array($mail)); return $result->fetch(PDO::FETCH_ASSOC); } catch(PDOException $e){ th...
true
c8a54629dc8c874ba445148ff1d58c37d94b5abc
PHP
realmetric/server
/src/Model/DailyMetricsModel.php
UTF-8
1,710
2.734375
3
[]
no_license
<?php namespace App\Model; use Illuminate\Database\Connection; class DailyMetricsModel extends AbstractModel { const TABLE_PREFIX = 'daily_metrics_'; const TABLE = self::TABLE_PREFIX . '2017_01_01'; // Just for example public function __construct(Connection $connection) { parent::__construc...
true
6cbc36484cd929e505badae6ce88d451a370ed16
PHP
siggwer/Bilemo
/src/Services/Paginator/PaginatorFactory.php
UTF-8
1,726
2.78125
3
[]
no_license
<?php namespace App\Services\Paginator; use Doctrine\ORM\Tools\Pagination\Paginator; use App\Services\Generator\UrlGenerator; use Exception; /** * Class PaginatorFactory * * @package App\Paginator */ class PaginatorFactory { /** * @var UrlGenerator */ protected $generator; /** * Pagin...
true
6389ccd2eb743171ec0cacfbfcab102518261ab5
PHP
cme34/CS1520Project2
/project2/views/login.php
UTF-8
1,635
2.515625
3
[]
no_license
<?php //If the user is signed in, prevent them from accessing this page session_start(); if (isset($_SESSION["username"])) { header("Location: home.php"); } ?> <!doctype html> <html> <head> <title>Login</title> <meta charset="utf-8" /> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" co...
true
48ef59170a8bf7ab2370513385a90b4451211ca1
PHP
tayduivn/mnads1
/app/Repository/CallRepository.php
UTF-8
2,380
2.8125
3
[ "MIT" ]
permissive
<?php namespace App\Repository; use App\Api\CallRepositoryInterface; use App\Call; class CallRepository implements CallRepositoryInterface { protected $_CallModel; /** * CallRepository constructor. * @param Call $call */ public function __construct(Call $call) { $this->_CallM...
true
8800aecb19d5eeeb086516251db531b4eef66b7b
PHP
jeremygiberson/psr7-push-notification-middleware
/src/Events/GitlabNotificationEvent.php
UTF-8
916
2.5625
3
[]
no_license
<?php namespace JeremyGiberson\Psr7\PushNotificationMiddleware\Events; /** * Class GitlabNotificationEvent * Event params will match the json content of the push event * TODO extract into an extension and specific events for each gitlab event type */ class GitlabNotificationEvent extends NotificationEvent { ...
true
5ec905bba582b9d22904c464ac2a3816dc446a6d
PHP
lucasfullstackdev/quiz
/database/seeds/AccessLevelSeeder.php
UTF-8
475
2.59375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Models\AccessLevel; class AccessLevelSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $levels = [ ['ds_access_level' => 'Master'], ['ds_access_level' => 'Admin...
true
79c97a4f65203917d956d8546492335e42f42446
PHP
peter0512lee/example-app
/database/seeders/TrailSeeder.php
UTF-8
527
2.578125
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use App\Models\Trail; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class TrailSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $row = new Trail(); $row->title = "冷...
true
9525167452b4cc8c54c567c7c805d6943111bf71
PHP
dhumdil-apps/piscine-php
/day_03/ex03/cookie_crisp.php
UTF-8
477
2.59375
3
[]
no_license
<?php try { switch ($_GET['action']) { case 'set': setcookie($_GET['name'], $_GET['value'], time() + (86400), '/'); // 86400 = 1 day break; case 'get': foreach ($_COOKIE as $key => $value) { if ($key == $_GET['name']) { echo $value; } } break; case 'del': ...
true
7e8a7b11d6ffe90775677325ea122ebd65250599
PHP
Gatroxm/Crud
/Models/Modelo.php
UTF-8
924
3.3125
3
[]
no_license
<?php namespace Models; use Config\Conexion; abstract class Modelo extends Conexion{ #Parametros protected $table; protected $clave; #methodos public function set($atributo, $contenido){ $this->$atributo = $contenido; } public function listar(){ $sql = $this->conexion->prepare("SELECT *...
true
32e98f32143d98d66555bd347fea0ff696411132
PHP
zephir-lang/zephir
/Library/Statements/LoopStatement.php
UTF-8
1,788
3.125
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Zephir. * * (c) Phalcon Team <team@zephir-lang.com> * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ namespace Zephir\Statements; use Zephir\Branch; use Zephir\CompilationContext; use Zephir\E...
true
8237f851c9ad1a52e8c7320a95597864087ad38d
PHP
printdeal/PrintdealPandosearchBundle
/src/Service/QueryBuilder.php
UTF-8
922
2.703125
3
[]
no_license
<?php namespace Printdeal\PandosearchBundle\Service; use Printdeal\PandosearchBundle\Builder\BuilderInterface; use Printdeal\PandosearchBundle\Criteria\SerializableInterface; use Printdeal\PandosearchBundle\Exception\BuilderNotFoundException; class QueryBuilder { /** * @var BuilderInterface[] */ pr...
true
42131a67630654c61caa8acb2751dbb5c7cafd5a
PHP
urfusion/incident
/app/Http/Controllers/IncidentController.php
UTF-8
2,197
2.703125
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Incident; use Carbon\Carbon; use Validator; class IncidentController extends Controller { /** * * @param Request $request */ public function store(Request $request) { // dd($request->all()); $rules = [ ...
true
190749af40aee6fb4d6acceb748bf77919d30b0b
PHP
thethan/zoltar
/app/Zoltar/Resources/Model.php
UTF-8
5,296
2.875
3
[ "MIT" ]
permissive
<?php namespace App\Zoltar\Resources; use App\Shell\Resources\VOs\ValueObject; use App\Zoltar\Zoltar; use GuzzleHttp\Psr7\Response; class Model { use All, Authenticate, SetUserHeaders; /** * What needs to be returned * @var */ public $status, $errors; /** * @var Service to be ca...
true
8e7495db996734575c8ca34070163837ce29e720
PHP
mateusztumatek/profme
/app/Http/Middleware/UserAuthentication.php
UTF-8
1,002
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use App\Company; use App\Image; use App\Rate; use App\User; use Closure; use Illuminate\Support\Facades\Auth; class UserAuthentication { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @retu...
true
b6d1e37650d8b72673755ce6b9d91ce12e0b8609
PHP
KakharovZhanibek/php_hw8-15
/Models/Book.php
UTF-8
906
2.84375
3
[]
no_license
<?php namespace pd\models; class Book { public $id; public $title; public $author; public $isbn; public $year; public $cover; function __construct() { } public static function getValidation(){ return new Validation([ "title" => [ "clear-extra-spaces", ...
true
af67fd798225bdfeacfd6dfe9d238586b04af446
PHP
FlashTVR/stevotvrbot
/src/inc/Model/TipsModel.php
UTF-8
4,670
3.015625
3
[ "MIT" ]
permissive
<?php /** * StevoTVRBot. Supplies a custom API for the StreamElements chat bot on the * StevoTVR Twitch channel. * * @copyright (c) 2019, Steve Guidetti, https://github.com/stevotvr * @license https://github.com/stevotvr/stevotvrbot/blob/master/LICENSE MIT License */ namespace StevoTVRBot\Model; /** * Model r...
true
5dbb37365bc2c4b32fb6d9d2eaafe73ba535fa31
PHP
kerios1986/hillel-hw-5
/Autoload/One/Human.php
UTF-8
131
2.96875
3
[]
no_license
<?php namespace One; class Human { public function saySpeak() { echo 'I can speak'; echo '<br>'; } }
true
be4ed2783d5cd5678885092267cfc6d39886ee30
PHP
asndtn/DigitalWallet
/app/bin/phpdoc/vendor/phpdocumentor/phpdocumentor/src/phpDocumentor/Descriptor/Interfaces/ElementInterface.php
UTF-8
2,356
2.734375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * This file is part of phpDocumentor. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @link https://phpdoc.org */ namespace phpDocumentor\Descriptor\Interfaces; use phpDocumentor\Descriptor\C...
true
089e90430ada158d6c868b0696c5dda002e3cd45
PHP
ashanr/watch
/slim/tests/test.php
UTF-8
2,002
2.53125
3
[ "MIT" ]
permissive
<?php use src\Controllers\MainController; use PHPUnit\Framework\TestCase; use Slim\Environment; class ApiTest extends TestCase { private $controller; /** * Initial method */ public function setUp() { // Creates the controller $this->controller = new MainController(); } /** * testHello method */ ...
true
a400593a34bcfd16b1f989ede25d5887d682a921
PHP
TopazStudio/TransparentWebApplication
/app/Model/User.php
UTF-8
2,707
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Model; use App\Util\CRUD\CRUDable; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; use Nuwave\Lighthouse\Support\Traits\RelayConnection; use Sleimanx2\Plastic\Facades\Plastic; use Sleimanx2\Plastic\Searchable; class User extends Authenticatable imp...
true
7d8229e762fb18ac5409f9097a583b66c79e0d68
PHP
weiqinan/power_station
/model/generated/class/mysql/ext/PowerAmmeterMySqlExtDAO.class.php
UTF-8
881
2.578125
3
[]
no_license
<?php /** * Class that operate on table 'power_ammeter'. Database Mysql. * * @author: http://phpdao.com * @date: 2015-06-25 11:03 */ class PowerAmmeterMySqlExtDAO extends PowerAmmeterMySqlDAO{ public function queryAndPage($start,$end){ $sql = 'SELECT * FROM power_ammeter order by ammet...
true
dc74fea49a466c451f8e7fbe2f660f1101a8323a
PHP
ssimpo/Impact-CRM
/util/unit_tests/models/Database.Test.php
UTF-8
1,108
2.53125
3
[]
no_license
<?php require_once('globals.php'); /** * Unit Test for the Database class. * * @author Stephen Simpson <me@simpo.org> * @version 0.1.1 * @license http://www.gnu.org/licenses/lgpl.html * @package UnitTests.Impact * @extends ImpactPHPUnit */ class Test_Database extends ImpactPHPUnit { protected function se...
true
ce8201e140e61747d65fafbeae94be576bea2c40
PHP
nikitayopyan/vaimo_bootcamp
/app/code/Nikita/Brand/Block/View.php
UTF-8
1,521
2.5625
3
[]
no_license
<?php namespace Nikita\Brand\Block; use Magento\Framework\Api\SearchCriteriaBuilder; use Magento\Framework\App\RequestInterface; use Magento\Framework\View\Element\Template; use Nikita\Brand\Api\BrandRepositoryInterface; class View extends Template { /** * @var SearchCriteriaBuilder */ private $sea...
true
aab84c04e30dd5b418809302446a1ccf1804d88a
PHP
MIP-FIIT/Image-resizing-Fancman
/includes/getExtension.php
UTF-8
226
2.875
3
[]
no_license
<?php function getExtension($str) { $dotPosition = strrpos($str,"."); if (!$dotPosition) { return ""; } $extensionLenght = strlen($str) - $dotPosition; return substr($str,$dotPosition + 1, $extensionLenght); }
true
8e1466b6b2a44c17a2d58c2705e8fbbf9727f4d8
PHP
Apop85/Scripts
/PHP/002_Lernkarten/php/gen_test.php
UTF-8
12,247
3.203125
3
[ "MIT" ]
permissive
<?php function check_post_method() { // Prüfe Post-Status if ($_SERVER["REQUEST_METHOD"] == "POST") { if ($_POST["submit_value"] == "0") { return "NONE"; } return "POST"; } elseif ($_SERVER["REQUEST_METHOD"] == "SUBMIT") { retur...
true
469c8ae8b786372d99ba3356506dcb82f8ff5e66
PHP
laminas/laminas-captcha
/src/Dumb.php
UTF-8
1,006
2.984375
3
[]
permissive
<?php declare(strict_types=1); namespace Laminas\Captcha; /** * Example dumb word-based captcha * * Note that only rendering is necessary for word-based captcha * * @todo This likely needs its own validation since it expects the word * entered to be the strrev of the word stored. */ class Dumb extends Abs...
true
10030bd8547f0d9cc93e362d4c0beb4f32d038a1
PHP
joelunge/joel
/app/Libraries/Rsi2.php
UTF-8
3,732
3.03125
3
[]
no_license
<?php class Rsi { public static function exec_RSI(array $prices) { //Set alpha for calculations $alpha = 1 / 14; return self::calc_RSI($prices, $alpha); } private static function calc_time_period_change($prices) { $gain = []; $loss = []; $remaining_prices = []; $last_price = 0; for ($i =...
true
907a34f2086288d517dad0440bfe243079d4e2cf
PHP
shakilcse25/blogtwlp
/index.php
UTF-8
1,925
2.703125
3
[]
no_license
<?php include 'inc/header.php' ?> <?php include 'inc/slider.php' ?> <div class="contentsection contemplete clear"> <div class="maincontent clear"> <!-- PAGINATION AND PAGE SEQUENCE --> <?php $perpage = 3; if(isset($_GET['page'])){ $page = $_GET['page']; } else{ $page = 1; } $start_pag...
true