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
e8c77e9ed4d22d7d48cf841bb16cb09498a9cdd1
PHP
cazzSoft/SOFT-REAL
/app/admin/TipoSueloController.php
UTF-8
2,984
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers\admin; use App\Http\Controllers\Controller; use App\TipoSueloModel; use Illuminate\Http\Request; class TipoSueloController extends Controller { public function __construct() { $this->middleware('auth'); } public function validar($request){ $rules...
true
493a90c31a97f54d74d5aaee154fe58f8b99ee74
PHP
lamaBS/Furniture-Shopping-Website
/DisCount.php
UTF-8
594
2.6875
3
[]
no_license
<?php $id=$_GET["id"]; $servername = "localhost"; $username = "root"; $password = ""; // Create connection $conn = mysqli_connect($servername, $username, $password); $coon=mysqli_select_db($conn,"fortuners"); // Check connection if (!$coon) { die("Connection failed: " . mysqli_connect_error()); } $ViewQuery="...
true
0da72bf5c333809b14e80f471089c9833fdc2785
PHP
tranngocquanghaui/ogani
/project/Frontend/Models/HeaderModel.php
UTF-8
574
2.671875
3
[]
no_license
<?php class HeaderModel{ public function modelListCategory(){ //lay bien ket noi $conn=Connection::getInstance(); $query=$conn->query("select * from categories where parent_id=0"); //lay tat ac ban ghi $result=$query->fetchAll(); return $result; } public function modelListCategorySub($category_id){ ...
true
f88f02833d55f949016247e2eb901d03ba97776a
PHP
twc6590062/mobile-out_test
/trunk/lib.php
GB18030
950
2.796875
3
[]
no_license
<?php date_default_timezone_set("Asia/Shanghai"); define("IS_WIN", PHP_OS == "WINNT"); $path_prefix = IS_WIN ? "file:///" : "file://"; ### ͷ if (! function_exists("analy_dir")) { function analy_dir ($path, $l) { $path = str_replace("\\", "/", $path); while ($l-- > 0) if (($pos = strrpos($path, "/...
true
17620f9dfa0dbd13e8f963c5c8aadd8dc7ab8101
PHP
kenpeter/igloo_home_control_aws
/app/Http/Middleware/MySimpleAPIAuth.php
UTF-8
1,124
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Auth; use Closure; // https://laravel.com/docs/5.2/authentication#stateless-http-basic-authentication // http://laravel.io/forum/12-07-2015-how-to-create-custom-http-authentication-laravel-51 // https://github.com/WP-API/WP-API/issues/509 // https://www.getpostman.com/docs/he...
true
2d57cc7619fb65939b89d091edbc95c14085b309
PHP
b4us/aliyun-openapi-php-sdk
/aliyun-php-sdk-green/Green/Request/Extension/ClientUploader.php
UTF-8
4,773
2.65625
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: liuhai.lh * Date: 2018/9/6 * Time: 下午6:56 * 使用本地文件上传将依赖oss 的sdk */ namespace Green\Request\Extension; use Green\Request\V20180509 as Green; use OSS\OssClient; use OSS\Core\OssException; class ClientUploader { private $client; private $uploadCredentials; priva...
true
1703c6772c632a7b1f534058d0c70c082c0b5dd9
PHP
miladul/sms
/admin/add-student.php
UTF-8
4,587
2.8125
3
[]
no_license
<?php //require_once('dbcon.php'); //no need for require on index.php if (isset($_POST['addStudent'])) { $name = $_POST['name']; $roll = $_POST['roll']; $city = $_POST['city']; $pcontact = $_POST['pcontact']; $class = $_POST['class']; $photo = explode('.', $_FILES['photo']['name']); $photo_end = end($photo);...
true
cbee18039f7eb117acf22a85364546888f66d76b
PHP
nameofname/rollid_theme
/lib/twitter_api.php
UTF-8
3,760
2.84375
3
[]
no_license
<?php /** * User: ronald * Date: 1/1/14 * Time: 3:51 PM */ require(THEME_ROOT . '/lib/twitteroauth/twitteroauth.php'); Class Twitter_API { private $consumer_key = ''; private $consumer_secret = ''; private $oauth_token = null; private $oauth_token_secret = null; private $connection = null; ...
true
f594f6dbf4c8ad1d99a17c6186cd61dac006fffb
PHP
RomainTweaks/BaseSymfony2
/src/Sdz/BlogBundle/DataFixtures/ORM/Categories.php
UTF-8
1,110
2.71875
3
[ "MIT" ]
permissive
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of Categories * * @author Gandiol.r */ // src/Sdz/BlogBundle/DataFixtures/ORM/Categories.php namespace Sdz\BlogBundle\DataFixtures\ORM; use Doctrine\Common\DataFixtures\FixtureInterface;...
true
51d3194932c225eefa52fe930868cefc4069a819
PHP
swguo/PromoterPage
/PromoterShow.php
UTF-8
5,354
2.53125
3
[]
no_license
<?php require_once('../../Connections/CaseMeg.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
f611294f564eba23a93de7afb1b2c38878005a24
PHP
reliv/rcm-php
/core/src/Api/Repository/Domain/FindDomainByName.php
UTF-8
808
2.765625
3
[ "ISC" ]
permissive
<?php namespace Rcm\Api\Repository\Domain; use Doctrine\ORM\EntityManager; use Rcm\Entity\Domain; /** * @author James Jervis - https://github.com/jerv13 */ class FindDomainByName { /** * @var \Rcm\Repository\Domain */ protected $repository; /** * @param EntityManager $entityManager ...
true
92f9dc51598c2bac1dfbdbeb5dc1831ed3d93b56
PHP
Iamexist/layuiadmin
/application/develop/resource/mg/api/controller/Base.php
UTF-8
995
2.734375
3
[ "Apache-2.0", "PHP-3.0" ]
permissive
<?php namespace app\api\controller; // 公共继承模块 class Base { protected $openid; // 用户openid /** * 构造方法 * Base constructor. */ public function __construct() { } /** * 通过openid换取user_id并缓存 * @return bool|mixed|string * @date 2020/8/15 18:50 */ public function...
true
545d497010e514fe8d67699e4f43211d0e18fae6
PHP
yutin1987/phalpro
/src/Phalpro/Page.php
UTF-8
716
3.1875
3
[]
no_license
<?php namespace Phalpro; /** * Page * * @category Page * @package Phalpro * @author YuTin <yuting1987@gmail.com> */ class Page { public $current; public $size; /** * __construct * * @param integer $size page size * @param integer $current page current */ public f...
true
0c1b70ae271c0162b278456d14fa56d4d1bcf0af
PHP
Stripyuan/wowolearn
/vendor/jasmine2/yii2-dwz/src/widgets/DateTimePicker.php
UTF-8
899
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by Jasmine2. * FileName: Datetime.php * Date: 2016-5-27 * Time: 23:31 */ namespace jasmine2\dwz\widgets; use jasmine2\dwz\helpers\Html; use yii\validators\RequiredValidator; class DateTimePicker extends InputWidget { public function init() { parent::init(); $this->options['name'] = Htm...
true
bb4d53e42688fbf1242cf40f08de3d2fc185f8c0
PHP
LeGoffMael/Gallery-Management-System
/php/admin/deleteTags.php
UTF-8
1,593
2.640625
3
[]
no_license
<?php //Edit tags by name header('Content-Type: application/json'); require_once('../Settings.php'); if (isset($_POST['tags'])) { $tabTags = json_decode($_POST["tags"]); $existingTags = array(); //Check tags which exist if(!empty($tabTags)) { foreach($tabTags as $id){ $tags = Settings::getInstance(...
true
077e625d254cff0aa1d7e6f9c4fe3a2546ced678
PHP
guywithnose/release-notes
/src/VersionInterface.php
UTF-8
1,029
3.34375
3
[ "MIT" ]
permissive
<?php namespace Guywithnose\ReleaseNotes; interface VersionInterface { /** * Get the possible ways to increment the version using semantic versioning. * * @return array The semantic version number increments. Will be empty for non-semantic versions. */ public function getSemanticIncrements...
true
3472ad7d82aa7affef9ccb292b745477b15498af
PHP
wjxcodes/201706
/tk/Test/Model/TestMarkModel.class.php
UTF-8
3,401
2.578125
3
[]
no_license
<?php /** * @author demo * @date * @update 2015年1月26日 */ /** * 自定义打分管理类Model,用于自定义打分的相关操作 */ namespace Test\Model; class TestMarkModel extends BaseModel{ /** * 获取所有数据 * @return array * @author demo */ public function getAllData(){ return $this->selectData( '*', ...
true
8f4b7fd5a7cd1b671bb59b4390028d7e5d542181
PHP
DragonBe/vies
/src/Vies/Validator/ValidatorEL.php
UTF-8
897
3.015625
3
[ "MIT" ]
permissive
<?php declare (strict_types=1); /** * \DragonBe\Vies * * @author Paweł Krzaczkowski <krzaczek+github@gmail.com> * @license MIT */ namespace DragonBe\Vies\Validator; /** * Class ValidatorEL * @package DragonBe\Vies\Validator * * VAT format: [C1 C2 C3 C4 C5 C6 C7 C8 C9] * * Range: * C1 .. C9 Numeri...
true
9d0050b55c22272e19f88993bfc02a89f0108cff
PHP
ermigele/Programacion2021
/SERVIDOR/ejerciciosBBDD/BBDD(3)/altaUsuarios-03.php
UTF-8
1,129
2.96875
3
[]
no_license
<?php $mysql = 'mysql:host=localhost;dbname=ejemplo'; $usuario = 'root'; $contrasena = ''; $conexion = new PDO($mysql, $usuario, $contrasena); ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8"> <title>Alta usuarios</title> </head> <body> <?php if (!isset($_POST['usuario']) || !isset($...
true
ab633480ecbc212bf04fca40bbc0837fea7983f9
PHP
surya432/SlimeWithEloquent
/src/Model/Author.php
UTF-8
1,249
2.515625
3
[]
no_license
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model as Model; class Author extends Model { protected $table = "authors"; // protected $guarded = []; protected $fillable = ['nama']; protected $hidden = ['deleted_at']; protected $timestamp = ['created_at', 'updated_at', 'deleted_at'];...
true
61bdc2d2f915ed3d4757450897342eda963048c0
PHP
Nexumas/2SIO_SLAM-Marieteam-app-web
/apropos.php
UTF-8
1,166
2.71875
3
[]
no_license
<?php session_start(); $isConn = false; if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] == true) { $isConn = true; $nameUser = $_SESSION['userName']; } if(isset($_SESSION['admin']) && $_SESSION['admin'] == true){ $isAdmin = true; } else{ $isAdmin = false; } ?> <!DOCTYPE html> <html lang="...
true
17a889ad0204e1cda59688187083fb6e2c1f8ad0
PHP
JuanDavidHurtado/Ips_Nueva
/application/models/MCups.php
UTF-8
1,620
2.5625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') or exit('No direct script access allowed'); //extendemos CI_Model class MCups extends CI_Model { public function __construct() { //llamamos al constructor de la clase padre parent::__construct(); //cargamos la base de datos $this ->load ...
true
453a2299006880194bef0342b6edb16c047ba3a7
PHP
Salah-R12/mediatheque_3wa
/src/Controller/NavbarController.php
UTF-8
1,390
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Controller; use phpDocumentor\Reflection\Types\String_; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Routing\Annotation\Route; use App\Service\Navigation; use Symfony\Component\HttpFoundation\Request; class NavbarController extends AbstractController{ /*...
true
d1237d2a61cc1098eff7e86ad33e4e3a3e09fa56
PHP
cleanet/GTE
/profesorado/GTE/1_eso/1A/formulario actividades interactivas/verificar_captcha.php
UTF-8
324
2.859375
3
[ "MIT" ]
permissive
<?php session_start( ); // allows us to retrieve our key form the session /* First encrypt the key passed by the form, then compare it to the already encrypted key we have stored inside our session variable */ echo md5($_POST["code"]) == $_SESSION["key"]; ...
true
243e299e080e86216bb14af28acb882783614813
PHP
fantoine/satis-gitlab
/src/MBO/SatisGitlab/Filter/IncludeIfHasFileFilter.php
UTF-8
1,331
2.703125
3
[ "MIT" ]
permissive
<?php namespace MBO\SatisGitlab\Filter; use MBO\SatisGitlab\Git\ProjectInterface; use MBO\SatisGitlab\Git\ClientInterface as GitClientInterface; use Psr\Log\LoggerInterface; /** * Accept projects if git contains a given file * * TODO add mock based unit tests */ class IncludeIfHasFileFilter implements ProjectFi...
true
2735043fa24ac66ce875072ee6cbdb4b38644dac
PHP
Skuba1927/final
/src/AppBundle/Utils/PrivatApi.php
UTF-8
4,232
2.875
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: Пользователь * Date: 10.12.2017 * Time: 16:05 */ namespace AppBundle\Utils; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Bundle\FrameworkBundle\Controller\ControllerTrait; use AppBundle\Entity\PrivateBank; use Doctrine\ORM\EntityManager; use AppBu...
true
c04d4389a8e0c0408453dfacda00000e5c6587d5
PHP
eveames/chymistry
/app/AuthTraits/RedirectsUsers.php
UTF-8
482
2.828125
3
[ "MIT" ]
permissive
<?php namespace chymistry\AuthTraits; trait RedirectsUsers { /** * Get the post register / login redirect path. * * @return string */ public function redirectPath() { if (property_exists($this, 'redirectPath')) { return $this->redirectPath; } //later...
true
e093edf4c0b42f4968ef2bad5403e178d671b1dd
PHP
akhmadgithub/praktikum_web
/110533406995_Akhmad Aprilianto/Praktikum ke-2/kasus2.php
UTF-8
507
2.84375
3
[]
no_license
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transition//EN"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Kasus 2</title> </head> <body> <p>Generate Tabel</br></p> <?php function Create_table($baris, $kolom) { echo ("<table border =\"1\">\n"); for ($b = 0; $b < $baris; $b++){ ec...
true
771b66742df6e48dc404a92c8f1d8ccc3ee59d9e
PHP
dd32/theme-check.run
/www/results.php
UTF-8
1,314
2.859375
3
[]
no_license
<?php use SensioLabs\AnsiConverter\AnsiToHtmlConverter; require __DIR__ . '/common.php'; require __DIR__ . '/../vendor/autoload.php'; $id = $_REQUEST['id'] ?? false; if ( $id ) { $run = fetch_row( "SELECT * FROM runs WHERE hash = :hash", [ 'hash' => $id ] ); } if ( ! $id || ! $run ) { header( 'Location: /' ); ex...
true
52a7386dbaaf7748652d6fe023fcb0c13c37a280
PHP
zygbar/sframework
/src/Factory/RouteFactory.php
UTF-8
422
2.671875
3
[]
no_license
<?php /** * Router factory */ namespace App\Factory; use App\Routes; use DI\Container; use League\Route\RouteCollection; class RouteFactory { /** * @param Container $container * @return RouteCollection */ public static function build(Container $container) : RouteCollection { $rou...
true
28293b63c1574caa18f8da6b19bb5b5ff0cd5370
PHP
ufk181/AdminLTE-panel-entegrasyon
/Internal/DataTypes/Origins/Strings/Split.php
UTF-8
2,938
2.984375
3
[ "MIT" ]
permissive
<?php namespace ZN\DataTypes\Strings; class Split { //-------------------------------------------------------------------------------------------------------- // // Author : Ozan UYKUN <ozanbote@gmail.com> // Site : www.znframework.com // License : The MIT License // Copyright : (...
true
0e2cea65ca4e132bae02f2948c2b8a6b4f82b52d
PHP
comelyio/comely
/src/Comely/IO/Cache/Engine/PECL/Memcached.php
UTF-8
5,822
2.796875
3
[ "MIT" ]
permissive
<?php /** * This file is part of Comely package. * https://github.com/comelyio/comely * * Copyright (c) 2016-2019 Furqan A. Siddiqui <hello@furqansiddiqui.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code or visit following link: *...
true
bd7ab3719cc401dfa3f716e3660c8d43394d3fd8
PHP
demyanenkomaks/bus-kz
/console/migrations/m190816_083322_create_table_bus_route.php
UTF-8
716
2.53125
3
[]
no_license
<?php use yii\db\Migration; /** * Class m190816_083322_create_table_bus_route */ class m190816_083322_create_table_bus_route extends Migration { const TABLE = '{{%bus_route}}'; /** * {@inheritdoc} */ public function safeUp() { $this->createTable(self::TABLE, [ 'id' => $...
true
a009f77a2bc4e3f1a5de141a78e226f9857264df
PHP
tiagofurini/DesenvolvimentoSFP
/Site/admin/index.php
UTF-8
3,525
2.765625
3
[]
no_license
<?php ob_start(); session_start(); //<!-------------- Import Classes e Funcoes ------------------------------------------------ > require_once("conexao.php"); //<!-------------- Recebendo dados do Formulário ------------------------------------------- > if(isset($_POST["txtLogin"])){ $login = $_POST["txtL...
true
da05a8487256504521f0023f8f7f093efb0f5a7d
PHP
Natchaya-Yimtanom/ahost-logging
/src/Logger/LoggingHandler.php
UTF-8
1,747
2.734375
3
[]
no_license
<?php namespace Ahost\Logging; use DB; use Illuminate\Support\Facades\Auth; use Monolog\Logger; use Monolog\Handler\AbstractProcessingHandler; class LoggingHandler extends AbstractProcessingHandler{ /** * * Reference: * https://github.com/markhilton/monolog-mysql/blob/master/src/Logger/Monolog/Handler/MysqlHandle...
true
d59a773a006a71b666b0cfec0fb71b9187e8f916
PHP
okaysierra/eecs-448-lab05
/ViewUserPosts.php
UTF-8
494
2.625
3
[]
no_license
<?php $mysqli = new mysqli("mysql.eecs.ku.edu", "sseacat", "vZFhQCymmaDqpWvs", "sseacat"); if ($mysqli->connect_errno) { printf("Connect failed: %s\n", $mysqli->connect_error); exit(); } $user = $_POST['users']; $query = "SELECT content FROM Posts WHERE author_id= '$user'"; if($result = $my...
true
e5a5d6e41dfe22bef49615dc2f39e8501d203e6d
PHP
fintech-fab/mpsp_site
/src/FintechFab/MPSP/Models/Transfer.php
UTF-8
3,801
2.8125
3
[ "MIT" ]
permissive
<?php namespace FintechFab\MPSP\Models; use Eloquent; use Validator; /** * @property string card_expire_month * @property string card_expire_year * @property string card_number * @property string card_cvc * * @property string calc_receiver_city * @property string calc_amount * @property string receiver_phone...
true
a85a2780c047ed971d86c56a6c0a49756ea0e6ee
PHP
liexusong/open-source-reading-comments
/php-5.0.5/ext/session/tests/006.phpt
UTF-8
1,036
2.859375
3
[ "PHP-3.0" ]
permissive
--TEST-- correct instantiation of references between variables in sessions --SKIPIF-- <?php include('skipif.inc'); ?> --INI-- session.use_cookies=0 session.cache_limiter= register_globals=1 session.serialize_handler=php --FILE-- <?php error_reporting(E_ALL); session_id("abtest"); session_start(); class a { public...
true
6f6bb4e68f7986346967b1e7e25e31866922f185
PHP
danm551/Exam-Website
/Back/backValidateExamName.php
UTF-8
469
2.53125
3
[]
no_license
<?php $examName = $_POST['examName']; $servername = "sql.njit.edu"; //creates connection to mysql $conn = new mysqli($servername, $username, $password, $db); //checks connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "SELECT examName FROM Exams WHERE examName='...
true
b76e5dd4301e65da5665f6b9d6f16c35fe820c82
PHP
KjSerg/filterWorpress
/mail.php
UTF-8
1,831
2.59375
3
[]
no_license
<?php require_once(dirname(__FILE__).'/class.phpmailer.php'); //правильный путь к файлу библиотеки $method = $_SERVER['REQUEST_METHOD']; //Script Foreach $email = new PHPMailer(); $c = true; if($_FILES['upfile']['name'] != ""){ for($i=0; $i < count($_FILES['upfile']['name']); $i++){ $name_of_uploaded_file = basena...
true
7bb306ac33056297e5ea3685e912ed67743f4e02
PHP
wndtjr2/fcc
/src/Service/EncryptService.php
UTF-8
2,452
2.71875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: swoogi * Date: 15. 1. 21. * Time: 오후 6:09 */ namespace App\Service; interface EncryptInterFace { public function encrypt($param); public function decrypt($param); } class EncryptService implements EncryptInterFace { /** * @param Controller $controller ...
true
4aaca17a20f6ad2d5422160fd89d8b3d489f9ef8
PHP
michailduzhanski/ExchangeTemplatePHP
/common/modules/pinCode/widgets/views/index.php
UTF-8
2,194
2.578125
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php /** * @var $this \yii\web\View */ $successMessage = Yii::t('frontend', 'Send e-mail code'); $sentMessage = Yii::t('frontend', 'Sent') . '(<span class="time-left">'. $timeLeft .'</span>)'; ?> <button data-message="<?=$message?>" type="button" id="<?=$id?>" class="btn btn-warning btn-block btn-lg" <?php echo (...
true
268522ea2b5a9699f1190c406823d4bc4a4a0fec
PHP
nrochard/blog_Composer
/db/seeds/UserSeeder.php
UTF-8
666
2.671875
3
[]
no_license
<?php use Phinx\Seed\AbstractSeed; class UserSeeder extends AbstractSeed { /** * Run Method. * * Write your database seeder using this method. * * More information on writing seeders is available here: * https://book.cakephp.org/phinx/0/en/seeding.html */ public function ru...
true
ce27275b1ad118098759ff9a9fdb5ab6f8dc4943
PHP
Sangewang/PHPClassExample
/Function/Prac5.php
UTF-8
424
3.65625
4
[]
no_license
<?php function must_be_an_array(array $fruits) { foreach($fruits as $fruite) { echo "$fruite<br/>"; } } $fruits = array("apple","juice","orange","banana"); must_be_an_array($fruits); function array_or_null_is_ok(array $fruits=null) { if(is_array($fruits)) { foreach($fruits...
true
7b37c7d88c3c83003276dca83ce97f6ea07e8daf
PHP
iskodirajga/buzzingpixel.com
/system/frame/Controller/App.php
UTF-8
2,390
2.71875
3
[]
no_license
<?php /** * Frame app controller * * @package frame * @author TJ Draper <tj@buzzingpixel.com> * @link https://buzzingpixel.com/frame-cms * @copyright Copyright (c) 2015, BuzzingPixel */ namespace Frame\Controller; use Frame\Helper; use Frame\Model; use Frame\Service; class App { /** * Run the app */ pu...
true
4a15c5de46f1eeb6f77c05ba8ddfcf7cbbe229df
PHP
dfjerry/LearnPHP
/session2_2.php
UTF-8
1,773
2.765625
3
[]
no_license
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" href="https://stackpath.boo...
true
9b3587f6df2c7cf675dccfae6674c458b9c720f7
PHP
algmzestrd/traveller-hub
/Experiement/algomezExperiments/php/stringManipulationCont.php
UTF-8
273
3.015625
3
[]
no_license
<?php function getTLD($domain) { $answer = ""; $last = strrpos($domain,chr(46),-2); while($last < strlen($domain)) { if($domain[$last] != chr(46)) $answer .= $domain[$last]; $last++; } return $answer; } echo getTLD("www.iastate.edu"); ?>
true
19c423c81a0540ef85a07d20bc105a449bf132bf
PHP
dimasarf/WebIPMKRYKKB
/app/foto.php
UTF-8
285
2.5625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class foto extends Model { public function album() { return $this->belongsTo(album::class); } public function scopeLike($query, $field, $value) { return $query->where($field, 'LIKE', "%$value%"); } }
true
748adc2bec7388353c23733fde6139166e1c6617
PHP
p2svn9x/platform
/plugins/CakeResque/vendor/monolog/monolog/src/Monolog/Handler/FluentdHandler.php
UTF-8
2,845
2.765625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the monolog-fluent package. * * (c) Daniele Alessandri <suppakilla@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Monolog\Handler; use Monolog\Logger; use Monolog\Handler\Abstr...
true
fd4d21f3862be018a74b145aeb8765102ffdedb4
PHP
jaaic/invoice-payments
/app/Modules/Invoicing/Request/NotificationStatsRequest.php
UTF-8
1,853
2.609375
3
[]
no_license
<?php namespace App\Modules\Invoicing\Request; use App\Core\Base\Request; use App\Core\Constants; use App\Modules\Invoicing\Response\NotificationStatsResponse; use App\Modules\Invoicing\Services\NotificationStatsService; use Illuminate\Support\Facades\Log; use App\Modules\Invoicing\Response\ErrorResponse as Notificat...
true
f4e3088995f3e0b4ccb3419cf93fb9b8c0e461b1
PHP
wp-objectified/settings-api
/includes/Utils.php
UTF-8
240
2.640625
3
[ "MIT" ]
permissive
<?php namespace WPObjectified\SettingsAPI; abstract class Utils { /** * @param $callback * @return callable|false */ public static function check_callback( $callback ) { return is_callable( $callback ) ? $callback : false; } }
true
68b314248ca711faebd00c456a9b2b6a80d6a09d
PHP
Roave/BetterReflection
/src/Reflection/Exception/InvalidConstantNode.php
UTF-8
508
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Roave\BetterReflection\Reflection\Exception; use PhpParser\Node; use PhpParser\PrettyPrinter\Standard; use RuntimeException; use function sprintf; use function substr; class InvalidConstantNode extends RuntimeException { public static function create(Node $node): self ...
true
67fc0954f089d1a85657fbb3e93d2ec0848d5568
PHP
NovikovaA13/PHP_Code_Boutique_Multimedias
/Classes/Paging.php
UTF-8
3,361
2.921875
3
[]
no_license
<?php class Paging { protected $numberOfLines; protected $page; protected $nameTable; protected $limit; protected $content; protected $paging; protected $subCategoryId; protected $categoryTitle; public function __construct($numberOfLines, $page, $nameTable, $subCategoryId = null, $categoryTitle = null){ ...
true
9f1902482e9253d47066f674730a178e9db95bc8
PHP
quangthi90/Yesocl
/object/Document/Group/Type.php
UTF-8
715
2.625
3
[]
no_license
<?php namespace Document\Group; use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB; /** @MongoDB\Document(db="yesocl", collection="group_type") */ Class Type { /** @MongoDB\Id */ private $id; /** @MongoDB\String */ private $name; /** @MongoDB\ReferenceMany(targetDocument="group", mappedBy="type") */ pri...
true
50b1cabcdc166cd371ec05bab01713d5f406363e
PHP
csDaniel/assign04
/src/login.php
UTF-8
994
2.890625
3
[]
no_license
<?php session_start(); ?> <!doctype HTML> <html> <head> <title>Login Page</title> </head> <body> <?php // log out verification echo "<div>"; if (isset($_GET['action']) && $_GET['action'] == 'logout') { // unset() removes session variables, destroy deletes session unse...
true
d719a5d24db7d45c5c2b1e176a2c29075c1ee80e
PHP
ecoeco/ecoeco
/Controllers/headerController.php
UTF-8
471
2.71875
3
[]
no_license
<?php class headerController { public function showHeader() { switch($_SERVER['SERVER_NAME']) { case 'localhost': //$log = new LogModel(); //$log->run(); break; case 'ecoeco.elitno.net': $log = new LogModel(); $log->run(); break; } $header = new HeaderModel(); if (isset ($_SE...
true
dc13e56cc3389117ac61d4d682dda5ccb141b58a
PHP
CHH/theses-core
/src/SettingsNamespace.php
UTF-8
1,510
2.75
3
[ "MIT" ]
permissive
<?php namespace theses; class SettingsNamespace implements SettingsManagerInterface { private $parent; private $namespace; private $defaults; function __construct(SettingsManagerInterface $parent, $namespace, array $defaults = []) { $this->parent = $parent; $this->namespace = $nam...
true
37d0bd5bf73bede302e4805c75f71fbed182593f
PHP
NobuyukiMorii/Grabbb
/app/Controller/Component/GurunabiComponent.php
UTF-8
4,011
2.625
3
[]
no_license
<?php class GurunabiComponent extends Component { //アクセスするURLを作成するメソッド public function make_gnaviapi_url($lati,$long) { //urlの指定 $api = 'http://api.gnavi.co.jp/ver1/RestSearchAPI/?'; //キーの指定 $key = '6f13d54e08f1c5397b1aaa3091cab074'; //レンジの指定(半径2000m以内) $range = 4...
true
224701a50541b1974372d65b427eacc704c968ac
PHP
IvanProtsenko/test_oxem
/src/app/interfaces/AnimalInterface.php
UTF-8
102
2.578125
3
[]
no_license
<?php namespace App\Interfaces; interface AnimalInterface { public function getProduction(); }
true
ed5870d2c49b4661b0a92536782de2af09b39b09
PHP
yeebs/PHP-Login-System
/signup.php
UTF-8
1,188
2.578125
3
[]
no_license
<?php include_once "header.php" ?> <?php if(isset($_SESSION['u_id'])){ header("Location: index.php?error=logoutfirst"); exit(); } $url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; if(strpos($url,'error=empty')){ echo 'Fill out all the empty fields'; }elseif (strpos($url,'invalidName')) { echo '...
true
d3d080194acc4d528272c9d7c6b2abad7a62915e
PHP
afup/web
/sources/AppBundle/Event/JsonLd.php
UTF-8
5,680
2.515625
3
[]
no_license
<?php namespace AppBundle\Event; use AppBundle\CFP\PhotoStorage; use AppBundle\Event\Model\Event; use AppBundle\Event\Model\Repository\TalkRepository; use AppBundle\Event\Model\Repository\TicketEventTypeRepository; use AppBundle\Event\Model\Speaker; use AppBundle\Event\Model\Talk; use AppBundle\Event\Model\TicketEven...
true
956eaaa9d4b6e4ed6f641a099b0e7fada79eb069
PHP
MatheusH2021/Atividade-PHP
/Atividade2.php
UTF-8
398
3.21875
3
[]
no_license
<form> <label>Informe um valor:</label> <input type="text" name="valor"> <button>Enviar</button> </form> <?php if(isset($_GET['valor'])){ $valor = $_GET['valor']; if ($valor >= 10){ echo "o valor ".$valor." é maior ou igula a 10!"; }else{ ec...
true
0815552222f63dbe72782056756b08b0cd6eb085
PHP
php-toolkit/toolkit-plus
/libs/Util/BDApi.php
UTF-8
3,808
2.703125
3
[ "MIT" ]
permissive
<?php /** * Created by sublime 3. * Auth: Inhere * Date: 16-7-28 * Time: 10:35 * BDApi.php baidu public api */ namespace ToolkitPlus\Util; use Toolkit\Web\Helper\CurlHelper; /** * Baidu 提供的免费api,查询一些公共信息(ip, 天气...) */ class BDApi { const OPEN_API = 'http://apis.baidu.com/apistore'; /** * ip地址信息...
true
f8e0701328c10e2599866303e739ff2a9edb1022
PHP
lyase/Theodo-micro-MVC-framework
/index.php
UTF-8
973
2.90625
3
[]
no_license
<?php /** * * Micro Framework MVC * @author fabriceb */ require_once(dirname(__FILE__).'/framework/Request.class.php'); require_once(dirname(__FILE__).'/framework/Controller.class.php'); require_once(dirname(__FILE__).'/framework/Template.class.php'); require_once(dirname(__FILE__).'/framework/Response.class.ph...
true
d10e448982b05b7aaf09de1ee6d4f34e4b49cad0
PHP
WalkWeb/PHP-Design-Patterns
/src/Patterns/Behavioral/Strategy/Unit/Unit.php
UTF-8
812
3.25
3
[]
no_license
<?php declare(strict_types=1); namespace Patterns\Behavioral\Strategy\Unit; use Patterns\Behavioral\Strategy\Unit\Strategy\StrategyInterface; class Unit implements UnitInterface { /** * @var string */ private $name; /** * @var StrategyInterface - Определяет, как бот будет поступать в раз...
true
dbf81cb63b1fa9d179a73d025ec5580c7586a6b4
PHP
bishwajit1965/pro_aroma
/blog/public/class.sendMessage.php
UTF-8
1,357
3.078125
3
[]
no_license
<?php spl_autoload_register(function ($class) { include_once('class.' .$class.'.php'); }); class sendMessage { // Database connection private $conn; public function __construct() { $database = new Database(); $db = $database->dbConnection(); $this->conn = $db; } publ...
true
e548a7bd1a9e3854b4a90fc5ae322ea15f651c87
PHP
athlan/terminarz
/module/ModuleModel/src/ModuleModel/Entity/UserEntity.php
UTF-8
1,459
2.703125
3
[]
no_license
<?php namespace ModuleModel\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="users") */ class UserEntity extends Util\AbstractEntity { /** * @var int * @ORM\Id * @ORM\Column(type="integer"); * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; ...
true
6134ea26efbc6422cbcb9dee40e7642650957135
PHP
renesugar/hiphop-php
/hphp/test/slow/print/1446.php
UTF-8
1,288
2.515625
3
[ "Zend-2.0", "LicenseRef-scancode-unknown-license-reference", "PHP-3.01" ]
permissive
<?php print_r(array("\0" => 1)); print_r(array("\0" => "\0")); print_r(array("\0" => "\\")); print_r(array("\0" => "\'")); print_r(array("\\" => 1)); print_r(array("\\" => "\0")); print_r(array("\\" => "\\")); print_r(array("\\" => "\'")); print_r(array("\'" => 1)); print_r(array("\'" => "\0")); print_r(array("\'" => ...
true
dfe8d1b762136992e90dc60838e6027b6e3c33b3
PHP
LlorcaFlo/proyecto11
/public/LoginFinal/Pagina/paginapost.php
UTF-8
2,113
2.609375
3
[]
no_license
<!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="../Css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="../Css/estilo.css"> <meta charset="utf-8"> <title></title> </head> <body> <?php include '../conexion.php'; $id = $_GET['id']; if (!isset($id...
true
b9a5d705a14fe778296cf91b8d150820986ba4dc
PHP
LetMeDream/Laravel_qa
/app/Question.php
UTF-8
3,786
2.71875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Str; use Carbon\Carbon; use App\User; use App\Answer; class Question extends Model { // protected $fillable = ['title', 'body']; protected $appends = ['created_date', 'url', 'beenFavorited', 'isFavoritedCount', 'real_vo...
true
9a3ffe1e9d36ac196c64bc99df530979508c6edb
PHP
pgoergler/Quartz
/src/Quartz/Converter/PgSQL/ArrayConverter.php
UTF-8
3,607
2.875
3
[]
no_license
<?php namespace Quartz\Converter\PgSQL; /** * Description of ArrayConverter * * @author paul */ class ArrayConverter implements \Quartz\Converter\Converter { protected $connection; /** * * @param \Quartz\Connection\Connection $connection */ public function __construct(\Quartz\Connecti...
true
a711b93fe7241f98f75dc17b549833ea4cabc16c
PHP
Babacooll/TextFile
/src/Exception/InvalidWriterException.php
UTF-8
243
2.5625
3
[]
no_license
<?php namespace TextFile\Exception; /** * Class InvalidWriterException * * @package TextFile\Exception */ class InvalidWriterException extends \Exception { protected $message = 'Writers should implement WriterInterface interface'; }
true
aa39742e98413b77a4a28d7464f777542c53e01c
PHP
SirDannyMunn/dusk-browser
/src/Selenium/StartsXVFB.php
UTF-8
1,098
2.59375
3
[ "MIT" ]
permissive
<?php namespace Tpccdaniel\DuskSecure\Selenium; use Symfony\Component\Process\Process; use Symfony\Component\Process\ProcessBuilder; use Tpccdaniel\DuskSecure\Concerns\ProvidesBrowser; trait StartsXvfb { /** * The xvfb process instance. * * @var Process */ protected static $xvfbProcess; ...
true
dfa471670a39ba9be1376c6b9db79ef22bcbe821
PHP
heyder/vulture
/examples/files_test/cwe94.php
UTF-8
848
2.671875
3
[ "MIT" ]
permissive
$MessageFile = "cwe-94/messages.out"; if ($_GET["action"] == "NewMessage") { $name = $_GET["name"]; $message = $_GET["message"]; $handle = fopen($MessageFile, "a+"); fwrite($handle, "<b>$name</b> says '$message'<hr>\n"); fclose($handle); echo "Message Saved!<p>\n"; } else if ($_GET["action"] == "ViewMessages") { includ...
true
f1debbcaeb6299e09ab722bb644a7dea14971819
PHP
FrankProjects/UltimateWarfare
/src/Service/Action/MessageActionService.php
UTF-8
3,713
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace FrankProjects\UltimateWarfare\Service\Action; use FrankProjects\UltimateWarfare\Entity\Message; use FrankProjects\UltimateWarfare\Entity\Player; use FrankProjects\UltimateWarfare\Entity\User; use FrankProjects\UltimateWarfare\Repository\MessageRepository; use FrankProjects\Ul...
true
7eb37e86c2abff66a07ec108ad2fedb0e10ff46b
PHP
lsmelan/matrix-calculator-api
/tests/app/Models/MatrixMultiplicationTest.php
UTF-8
2,027
3
3
[]
no_license
<?php declare(strict_types=1); class MatrixMultiplicationTest extends TestCase { private $parser; protected function setUp(): void { $this->parser = $this->getMockBuilder('App\Contracts\MatrixParser') ->disableOriginalConstructor() ->getMock(); } public function te...
true
d84d37d21b923a06a6ed215735ca70b66ab48d3a
PHP
wefabric/laravel-slickapi
/src/SlickAPIManager.php
UTF-8
889
2.765625
3
[]
no_license
<?php /** * Created by SlickLabs - Wefabric. * User: nathanjansen <nathan@wefabric.nl> * Date: 26-03-18 * Time: 13:07 */ namespace SlickLabs\Laravel\SlickAPI; use SlickLabs\Laravel\SlickAPI\Exceptions\ClassCreationError; use SlickLabs\Laravel\SlickAPI\Exceptions\InvalidConfiguration; class SlickAPIManager { ...
true
109cc37ce27af4d2ada8974277d2dd74ad787d65
PHP
MastermindMedia/FXProTools
/wp-content/themes/fxprotools-theme/inc/function-helper.php
UTF-8
716
3.078125
3
[]
no_license
<?php /** * ----------------------------- * Fxprotools - Helper Functions * ----------------------------- * All helper functions */ // Styled Array function dd($array) { echo '<pre>'; print_r($array); echo '</pre>'; } // Get query string function get_query_string() { $string = ''; $counter = 1; foreach($_G...
true
f74d884e67d46d7b507d1dce406ccac2ecdaa3fe
PHP
vladimirbasaric/it-obuka
/PHP/60/60_primeri_sa_casa/greske_upis_u_log_datoteku.php
UTF-8
1,503
2.9375
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>PHP greške - upis u log datoteku </title> </head> <body> <?php /* Cesta praksa je da se greske koje...
true
af4a2bbf69241cabcca79fe59b60307466c716da
PHP
artcifra/framework-1
/src/mako/validator/rules/file/MaxFileSize.php
UTF-8
1,838
3.015625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * @copyright Frederic G. Østby * @license http://www.makoframework.com/license */ namespace mako\validator\rules\file; use mako\validator\rules\Rule; use mako\validator\rules\RuleInterface; use RuntimeException; use function is_numeric; use function sprintf; use function substr; use function vsprintf...
true
06d61bb8cc653cb05732e95d1cd604285c24bcbf
PHP
mjacobus/php-query-builder
/lib/PO/QueryBuilder/Statements/Update.php
UTF-8
2,234
3.1875
3
[ "MIT" ]
permissive
<?php namespace PO\QueryBuilder\Statements; use PO\QueryBuilder\Clauses\Clause; use PO\QueryBuilder\Clauses\UpdateClause; use PO\QueryBuilder\Clauses\SetClause; /** * Helper for building UPDATE SQL * @author Marcelo Jacobus <marcelo.jacobus@gmail.com> */ class Update extends ConditionalStatement { /** *...
true
725c6a5b8371c5f28ddcd863fa75dd07f8e622d3
PHP
Aarti3003/Basic_Crud_operation
/database_school/editStudent.php
UTF-8
952
2.671875
3
[]
no_license
<html> <body> <h1>Edit Students</h1> <a href="index.php">back to index</a> <form method="post" action=""> <input style='display:none'; type="text" name="id" value="<?php echo $_GET['id'];?>"/> Name: <input type="text" name="name" value="<?php echo $_GET['name'];?>"/> Address: <input type="text" nam...
true
9fabd057fe11db7b83f47a0c7a3245d98e090794
PHP
rrkhole/CRUD_PHP
/view.php
UTF-8
931
2.734375
3
[]
no_license
<?php include 'connection.php'; $result= mysqli_query($mysqli,"SELECT * From products"); ?> <html> <head> <link href="styles.less" rel="stylesheet" type="text/css"> <title>Homepage</title> </head> <body> <a href="add.php">Add New Items</a><!-- comment --> <br><!-- comment --> <br/><!-- comment -->...
true
1059f74e1d4507c70c8413e00e2cd9caa700053b
PHP
miragecentury/InssetAirlines
/application/forms/Utilisateur/ModifTelephone.php
UTF-8
1,059
2.640625
3
[]
no_license
<?php /** * Description of ModifTelephone * Formulaire associé à l'action de modif de Telephone * * @author pewho */ class Application_Form_Utilisateur_ModifTelephone extends Zend_Form { public function init(){ //Init //$this->setAction(); $this->setMethod('POST'); //1er elem...
true
caa514f687c7606dac49368fef4357bf1a562e1f
PHP
sheldon9527/workAndBoring
/Factory.php
UTF-8
1,169
3.140625
3
[]
no_license
<?php //共同接口 interface db { public function conn(); } /** *@class 服务端开发(不知道谁将会被调用) * */ class dbmysql implements db { public function conn() { echo '连接上了Mysql'; } } class dbsqlite implements db { public function conn() { echo '连接上了sqlite'; } } /** *@定义一个工厂接口 */ interfac...
true
6ef4a9c3581c7cc5ffb3683126f6d9330f917193
PHP
smithdk/barbershop
/models/ObjectsModel.php
UTF-8
9,654
2.578125
3
[]
no_license
<?php //progect name: BARBERSHOP1 /** * * @global type $dbname * @global type $g_table_objects * @return type */ function getAllObjects() { global $link; $sql="SELECT name_rus , id FROM objects ORDER BY name_rus"; mysqli_set_charset($link, "utf8"); $rs=mysqli_query($link, $sql); $rs=createSmartyRsArray($...
true
23a2162c2986ca17cad1c6e1bd69aea0fa9a032a
PHP
weullerk/ForPeopleSoftware
/app/Http/Controllers/UserController.php
UTF-8
513
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Exceptions\ErrorException; use App\Http\Requests\RegistrarRequest; use App\Services\UserService; use Illuminate\Http\Request; class UserController extends Controller { public function registrar(Request $request) { $userService = new UserService(); ...
true
395a275a6139a60ae222e0633324fb02cf6d0730
PHP
JustinLee1533/EECS448_final
/extension_random.php
UTF-8
2,747
2.890625
3
[]
no_license
<?php /* * @author Jamey Ballard * @file extension_random.php * @about handles the backend of the extension to take them to random stream uses get conditions instead of post conditions and redirects url, * @date 2016/05/06 */ error_reporting(E_ALL); ini_set("display_errors", 1); $game = $_GET["game"]; $game=urlencode(...
true
eb6626653f31eb0c19715f6d1664170301fec1b8
PHP
shaonmostafiz/screen-test
/PHP/index.php
UTF-8
963
2.671875
3
[]
no_license
<?php /** * @package index.php * @author Faisal<faisal@nascenia.com> * @created 2014 - 03 - 06 * @version 2014 - 03 - 06 */ if(isset($_REQUEST['action'])) { if($_REQUEST['action'] == "login") { $username = isset($_REQUEST['username']) ? $_REQUEST['username'] : null; if(!$username) { ...
true
8f6d5d68f1c0da1ab65946e39c6abe1c99f1b2b5
PHP
theHyperactive/HyperMVC
/helpers/request.php
UTF-8
3,341
2.734375
3
[]
no_license
<?php class Request { public $http_response_code; public $rest_response_code; public $response_code; public $response_status; public $response_msg; public $request_headers; public $post_body; public $is_json; public $required_fields; public $is_valid; protected $HTTPS_required = FALSE; protected $auth...
true
eb5db3d4555b89e8f374ba807af4afa593ce9836
PHP
JSabbatier/pimag3a
/Web/serveur/classes/employe.php
UTF-8
1,840
3.03125
3
[]
no_license
<?php class Employe { private $idEmploye; private $nom; private $prenom; private $tel; private $role; private $adresse; private $fax; private $email; private $etat; /********************************************************** construtor **************************...
true
50cb70f5cf32ad528f22c6cfaeb54f4ef7016819
PHP
smile-io/sweettooth-php
/lib/SweetTooth/Ping.php
UTF-8
448
2.5625
3
[ "MIT" ]
permissive
<?php class SweetTooth_Ping extends SweetTooth_ApiResource { public static function constructFrom($values, $apiKey=null) { $class = get_class(); return self::scopedConstructFrom($class, $values, $apiKey); } public static function all($params=null, $apiKey=null) { $class = get_class(); return...
true
d3e82697d176f061dddf475edd1afeeb4614c837
PHP
SteelzZ/OxyBase
/project/library/Oxy/View/Smarty.php
UTF-8
5,089
2.65625
3
[]
no_license
<?php // Include smarty class require_once 'External/smarty/libs/Smarty.class.php'; /** * Smarty integration */ class Oxy_View_Smarty extends Zend_View_Abstract { /** * Smarty object * @var Smarty */ protected $_smarty; /** * Plugins * * @var Array */ protected $_plugins; ...
true
a20698c3c76d371043e3f5caf362c2a8b2204144
PHP
1137744273/onlinetest
/logindo.php
UTF-8
1,288
2.625
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> </head> <body> <?php header("Content-type:text/html;charset=utf-8"); session_start (); if (filter_has_...
true
7a5db43fdcdde0c124bab3b091fe12ad97235131
PHP
Apocryphon1/GroMart
/Login/join.php
UTF-8
880
2.65625
3
[]
no_license
<?php include('../PHP/config.php'); session_start(); if ($_SERVER["REQUEST_METHOD"] == "POST") { $myemail = mysqli_real_escape_string($db, $_POST['email']); $myusername = mysqli_real_escape_string($db, $_POST['username']); $mypassword1 = mysqli_real_escape_string($db, $_POST['password']); $mypassword2 = mysq...
true
ff9619beaa569391b7d62194992219e6f66b021e
PHP
freewu/shopex-api-tester
/lib/Process.class.php
UTF-8
4,804
2.65625
3
[]
no_license
<?php include_once("Request.class.php"); include_once("Cache.class.php"); class Process { var $_post = null; var $_required = null; var $_url = null; var $_token = null; var $_cache = null; var $_result = null; function Process($required = array()){ if(!empty($required)) $this->s...
true
17eb4224af9e587381de832dd4341f75a959eb82
PHP
mukete/budgetify
/app/Category.php
UTF-8
302
2.515625
3
[]
no_license
<?php namespace app; use Illuminate\Database\Eloquent\Model; class Category extends Model { /** * Category relations with budget, each category has one or more budget. * * @var array */ public function budgets() { return $this->hasMany('App\Budget'); } }
true
a7a5dd4bb54e30be2e13b947ebe91ef77e533267
PHP
JudeChih/iscar_member
/app/Http/Controllers/APIControllers/VerifyTokenDeviceCodeController.php
UTF-8
2,433
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers\APIControllers; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Input; use Illuminate\Http\Request; class VerifyTokenDeviceCodeController extends Controller { function VerifyTokenDeviceCode() { $functionName = 'verifytokendevicecode'; $inp...
true
bae6ea1d666c8dac08c35804badf747028158b97
PHP
lengthofrope/create-jsonld
/src/Schema/TypeAndQuantityNodeSchema.php
UTF-8
3,986
2.515625
3
[ "MIT" ]
permissive
<?php /* * The MIT License * * Copyright 2016 LengthOfRope, Bas de Kort <bdekort@gmail.com>. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without l...
true
15116621478dac196fbc0f28d8177334ef6be074
PHP
xtrmdarc/sopos
/model/caja/ing_caja.model.php
UTF-8
2,019
2.515625
3
[]
no_license
<?php include_once("model/rest.model.php"); class ICajaModel { private $conexionn; public function __CONSTRUCT() { try { $this->conexionn = Database::Conectar(); } catch(Exception $e) { die($e->getMessage()); } } public function Listar() { try { date_d...
true