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
1c42fec2f4da57c1bede0a3bd280b58219125a54
PHP
asokoi/php-sdk
/src/OtherManaging/SmartLinkCategoryDto.php
UTF-8
1,197
2.828125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Affise\Sdk\OtherManaging; /** * Class SmartLinkCategoryDto */ class SmartLinkCategoryDto { private string $id; private string $name; private string $domain; private ?string $description; private string $createdAt; private ?string $updatedAt; publi...
true
b3b732cebfca8b7e57b51beb16104515cf7b0aad
PHP
samuelvalverde28/tableros
/app/Http/Controllers/TableroController.php
UTF-8
1,266
2.828125
3
[ "MIT" ]
permissive
<?php /** * Antonio J.Sánchez * curso 2019/20 */ namespace App\Http\Controllers; use App\Models\Tablero ; use Illuminate\Http\Request; class TableroController extends Controller { /** * Muestra un listado con todos los tableros de la base * de datos. * * @return Illuminate\Support\Faca...
true
d603c9ea4da9755bfa349260af9444762d5c75c5
PHP
Lcunha/federacao
/test/controller/TimeControllerTest.php
UTF-8
1,918
2.640625
3
[]
no_license
<?php include_once("../../../federac/controller/TimeController.php"); include_once("../../../federac/persistence/TimeDAO.php"); class TimeControllerTest extends PHPUnit_Framework_TestCase{ protected $timeControllerTest; protected $time; protected $timeDAO; protected function setUp() { ...
true
8588a61bd28639f6dcccc7b3fa36b9da5d505bed
PHP
moedjo/kju-express
/plugins/kju/express/updates/builder_table_create_kju_express_regions.php
UTF-8
982
2.53125
3
[]
no_license
<?php namespace Kju\Express\Updates; use Schema; use October\Rain\Database\Updates\Migration; class BuilderTableCreateKjuExpressRegions extends Migration { public function up() { Schema::create('kju_express_regions', function ($table) { $table->engine = 'InnoDB'; $table->integ...
true
1ff699a88c799c3862594243fe3353d054823340
PHP
rmjohnson/CILeagues
/media/functions/cil.php
UTF-8
3,988
2.640625
3
[ "BSD-3-Clause" ]
permissive
<? function name_from_id($id) { return DB::select('username')->from('users')->where('id','=',$id)->execute()->get('username'); } function name_link_from_id($id) { return '<a href="' . URL::base() . 'player/view/' . $id . '">' . name_from_id($id) . '</a>'; } function real_name_from_id($id) { return DB::select('realna...
true
c87629289460a38dc57f9e41d960407381d25a6d
PHP
fusionFramework/users
/classes/View/Admin/User/Tab/Avatars.php
UTF-8
947
2.625
3
[ "MIT" ]
permissive
<?php defined('SYSPATH') OR die('No direct script access.'); class View_Admin_User_Tab_Avatars extends View_Admin_User_Tab { /** * @var Model_Avatar Non-default avatars */ public $avatars; /** * @var string Link to submit data to */ public $submit_link; /** * Avatars the user does not have * @retur...
true
9c6ebec05a08d20706bfc07af4669bc510390983
PHP
MohammadZarifiyan/Laravel-Telegram-Bot
/src/Interfaces/RequestParser.php
UTF-8
251
2.578125
3
[]
no_license
<?php namespace MohammadZarifiyan\Telegram\Interfaces; use Illuminate\Http\Request; interface RequestParser { public function __construct(Request $request); public function getUpdateType(): ?string; public function getChatType(): ?string; }
true
873389810ae175a59d8453f7e8841b5cd2a980d7
PHP
ManGoAppSAS/beta
/grafico_horas.php
UTF-8
2,653
2.59375
3
[]
no_license
<?php //librerias de lo graficos require_once ('jpgraph/jpgraph.php'); require_once ('jpgraph/jpgraph_line.php'); //variables de la conexion, sesion y subida include ("sis/conexion.php"); //capturo el id de local de la sesion activa desde la URL que invoca este archivo $sesion_local_id = isset($_GET['sesion_local_id'...
true
bf860fc7f139595c17ec930cee5a458c307b4576
PHP
LowFire/cs313-php
/web/06_prove/login.php
UTF-8
1,632
2.875
3
[]
no_license
<?php require "getDB.php"; session_start(); $db = getDB(); $success = true; if (isset($_POST['username'])) { try { $stmt = $db->prepare("SELECT user_id FROM users WHERE username=:username AND password=:password"); $stmt->bindValue(":username", $_POST['username'], PDO::PARAM_STR); $s...
true
557990f7611d8a1aca729f28e546691780adb9ff
PHP
ccarrster/ioyousnack
/src/manageEaters.php
UTF-8
5,213
2.546875
3
[]
no_license
<?php $storeId = 1; if(isset($_GET['storeId'])){ $storeId = (int)$_GET['storeId']; } require_once('config.php'); ?> <html> <head> <title><?php echo($appName); ?></title> </head> <style> a{ padding:20px; } </style> <body> <?php $link = mysqli_connect($dbUrl, $dbUser, $dbPassword, $dbName); if(isset($ipWhiteList) &...
true
4f4b0d7be8edb6481fd151aa75880f6655d8e125
PHP
inerciacreativa/wp-framework
/source/Form/Form.php
UTF-8
20,216
2.90625
3
[ "MIT" ]
permissive
<?php namespace ic\Framework\Form; use ic\Framework\Data\Collection; use ic\Framework\Html\Tag; use ic\Framework\Http\Input; use ic\Framework\Support\Arr; use ic\Framework\Support\Data; /** * Class Form * * @package ic\Framework\Form */ class Form { /** * @var string */ protected $id; /** * @var array...
true
2234f3e8ea66ca732bcad7aa414af72712927dcf
PHP
msobolev/cisos
/admin/includes/functions/database-05.php
UTF-8
2,350
2.8125
3
[ "MIT" ]
permissive
<?php function com_db_connect($server = DB_SERVER, $username = DB_SERVER_USERNAME, $password = DB_SERVER_PASSWORD, $database = DB_DATABASE, $link = 'db_link') { global $$link; $$link = mysql_connect($server, $username, $password); if ($$link) mysql_select_db($database); return $$link; } functio...
true
348d9a919964e4efba9efda5a3b47ec977e3d6c5
PHP
comfystudio/boardgame
/app/Http/Controllers/Controller.php
UTF-8
659
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Routing\Controller as BaseController; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; class Controller extends BaseController { use AuthorizesReques...
true
c058b34e18a290d9999dd80eceb99a25939b87c1
PHP
joyider/csgo_hub
/app/Library/Socket/Maker.php
UTF-8
9,081
2.890625
3
[]
no_license
<?php /* * Copyright (C) 2016 André Karlsson <andre@sess.se> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. ...
true
41fe138b2f2fc0343532969f3f5d2717c1872053
PHP
Chirili/DAW_Y3
/servidor/php/examenes/1_Evaluacion/1_Examen/ejercicio-04-tabla-cuadrada/ejercicio-04-02.php
UTF-8
1,159
2.9375
3
[]
no_license
<?php session_start(); if(empty($_REQUEST["size"]) || $_REQUEST["size"] < 0 || $_REQUEST["size"] > 15){ header("Location:ejercicio-04-01.html"); } $_SESSION["tabla"] = $_REQUEST["size"]; ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8"> <title> Tabla cuadrada con casillas de verificación ...
true
cb13428f4c2b9b831d5044865a219cef7d3384aa
PHP
nereid-studentresponse/studentresponse
/ip_php_dao_demo/PersonController.php
UTF-8
3,156
3.234375
3
[]
no_license
<?php require_once "StudentDAO.php"; require_once "TeacherDAO.php"; require_once "DB.php"; require_once "Student.php"; require_once "Teacher.php"; /** * Controller for both student and teacher */ class PersonController { private $student; private $teacher; private $view; public function __construct(...
true
42eb45efc5b1d98d6f0c29a06b1c00625a85f1f6
PHP
Ekhel/Surya_ci
/application/libraries/Indo_tanggal.php
UTF-8
1,634
2.9375
3
[ "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* Cara Menggunakan Date ============================== Load Library Pada controller yang akan anda GUnakan $this->load->library('date'); $tanggal_indo = $this->indo_date->tgl_indo($tgl_yang_akan_dirubah); */ class Indo_tanggal { functi...
true
31c41957a6b2d83f5702ca726baaaf8da4f1321c
PHP
ilias-sp/srt-subtitle-file-fix-PHP
/SRT_change_to_rate.php
UTF-8
3,962
2.9375
3
[ "MIT" ]
permissive
<?php function send_console($level, $message) { echo $level . ' - ' . $message . PHP_EOL; } //-------------------------------------------------------------- function identify_process_line($line, $new_fps) { if (preg_match('/^(\s*)$/i', $line, $matches) === 1) { $result = 'TYPE3_EMP...
true
0190a489ef97463b6622a600a499dc350981efbc
PHP
wenqingqaq/redis_publish
/phpcn/client.php
UTF-8
871
2.734375
3
[ "MIT" ]
permissive
<?php error_reporting(E_ALL); set_time_limit(0); $data = include "common.php"; $port = $data['port'];//端口 $ip = "127.0.0.1";//ip $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); if ($socket < 0) { echo "socket_create() failed: reason: " . socket_strerror($socket) . "\n"; } $result = socket_connect($socket, $...
true
8389848ad1130b5cc8f940c6cb7e1d6d3ee8f008
PHP
jpj/Your-Car-s-Life
/htdocs/xml/saveRecord.php
UTF-8
2,933
2.65625
3
[]
no_license
<?php require_once("../../classes/User.php"); require_once("../../classes/LogRecord.php"); require_once("../../library/common.php"); require_once("../../library/validation.php"); session_start(); $user = bindObject("User"); $isErrors = "false"; $errors = array(); $logRecordId = $_GET[logRecordId]; $log...
true
7fc08d45cd9a7a21b0f491548abb3ee26685b5a1
PHP
tungbt94/dappathon
/newcater/app/Common/Service/User.php
UTF-8
13,497
2.515625
3
[]
no_license
<?php namespace Common\Service; use Common\Exception\AuthFailedException; use Common\Exception\Exception; use Common\Sql\Dao\MySqlDAO; use Common\Validation\SimpleValidation; use Model\BaseModel; use Phalcon\Cache\Backend; use Phalcon\Di\Service; use Model\User as UserModel; use Phalcon\Logger; use Phalcon\Mailer\M...
true
5799875b53207d2e4665c40ce4acac4646eb727e
PHP
LuanCarlosCar/PhP-exercicios
/strings.php
UTF-8
689
3.796875
4
[]
no_license
<?php $idade = 20; echo 'Sou o luan, tenho' . $idade . 'anos'; // estou concatenando minha string e minha variavel atravez do '.' echo "Sou o luan, tenho $idade anos"; // Desta forma o php consegue ler minha variavel mesmo quando eu tiver declarando minha string echo "Ola mundo\n"; // "\n"(new line) esta quebrando a...
true
110b694a446265485ebb7d45b77cfbb90b788639
PHP
saloni31/mvc
/Model/Login.php
UTF-8
486
2.71875
3
[]
no_license
<?php namespace Model; class Login extends \Model\Core\Table { function __construct() { $this->setTableName("admin"); $this->setPrimaryKey("adminId"); } public function login(array $data) { $str = []; foreach ($data as $key => $value) { $str[] = "`" . $key . "` = '" . $value . "' "; } $query = "sel...
true
0b884cfe84499b3f42edab18ea37e80e6665b1b3
PHP
Codeup-AdLister-BeeTeam/adlister.dev
/users_seeder.php
UTF-8
2,374
2.71875
3
[]
no_license
<?php // EXERCISE 9.1.3 NOT COMPLETE Retrieving Data, User Side // EXERCISE 9.1.4 Prepared Statememts, Dynamic Queries and User Input // EXERCISE 9.9 Adlister project require_once 'bootstrap.php'; $dbc->exec('TRUNCATE TABLE users'); $users = []; $users = [ ['userName' => 'Mic', 'password' => 'pass', 'email' =>...
true
7c99f814ae7f20338a5bf9b925aa16e9fb030451
PHP
pamungkasaji/bandara
/application/models/Subarea_model.php
UTF-8
1,454
2.625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Subarea_model extends CI_Model { function __construct() { parent::__construct(); } //function menampilkan data Subarea function getSubarea() { $query=$this->db->query("select * from subarea"); foreach ($query->result_array() as $row) {$array[] = $row;} if (!isset($array)) { ...
true
71655f63415e5814092899ad21023aa81a67fa36
PHP
Corrigan14/HelpdeskRESTAPI
/src/API/TaskBundle/Security/RepeatingTask/IntervalOptions.php
UTF-8
505
2.578125
3
[]
no_license
<?php namespace API\TaskBundle\Security\RepeatingTask; /** * Class RepeatingTaskIntervalOptions * @package API\TaskBundle\Security\RepeatingTask */ class IntervalOptions { const DAY = 'day'; const WEEK = 'week'; const MONTH = 'month'; const YEAR = 'year'; /** * @return array * @throw...
true
b26439f4136207ee2e1d247a642d62a9912bd2d5
PHP
sendya/mcSkin
/Library/Model/User.php
UTF-8
1,523
2.859375
3
[ "MIT" ]
permissive
<?php /** * MineCraft Skin web server * A simple minecraft character management system. * Author: kookxiang <r18@ikk.me> */ namespace Model; use Core\Database as DB; use Core\Model; /** * Class User * @table mc_user * @package Model */ class User extends Model { public $id; public $username; priv...
true
ddb2a121c08bf83f10bed4b3b3f93c6935916090
PHP
remorhaz/php-json-patch
/src/Operation/Exception/InvalidPathException.php
UTF-8
919
2.78125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Remorhaz\JSON\Patch\Operation\Exception; use Throwable; use UnexpectedValueException; final class InvalidPathException extends UnexpectedValueException implements ExceptionInterface { private $index; private $property; private $path; public function __cons...
true
8bb966bed54b41bed5d770238cada3096cdde4bf
PHP
xcopy/yii2-nba
/migrations/m201022_054422_create_player_table.php
UTF-8
2,019
2.515625
3
[]
no_license
<?php use yii\db\Migration; use Faker\Factory as FakerFactory; /** * Handles the creation of table `{{%player}}`. */ class m201022_054422_create_player_table extends Migration { /** * {@inheritdoc} */ public function up() { $this->createTable('{{%player}}', [ 'id' => $this-...
true
c794e269293c1026ddf0abda6101206168c5aaf9
PHP
0xRyN/FlashCards
/changerole.php
UTF-8
1,166
2.515625
3
[]
no_license
<?php //l'utilisateur selectionné va soit avoir un rang plus haut ou alors plus bas (ex: de utilisateur a creator) include_once "Core/init.php"; $user = new User(); if($user->isLoggedIn()){ if($user->hasPermission("admin")) { $userId = $_GET['user']; $rank = $_GET['rank']; $gid = $_GET[...
true
9eb58df3028bcda6fdced487a239664670d1ff53
PHP
tamzidpeace/OnlineNotes
/Notes-Api/update-data.php
UTF-8
1,010
2.96875
3
[]
no_license
<?php $serverName = "localhost"; $userName = "root"; $password = ""; $dbName = "user_db"; // inatializing connection $con = new mysqli($serverName, $userName, $password, $dbName); // checking connection if ($con -> connect_error) { die("Connection error: " . $con -> connect_error); } if ($_SERVER['REQUEST_M...
true
373c9bb60dfba172f5cf36fbdab5de9a2c87434d
PHP
viniciusmayer/php-web
/action/DeletarUsuarioAction.php
UTF-8
759
2.578125
3
[]
no_license
<?php class DeletarUsuarioAction extends BaseAction implements iAction { function executeImpl() { $id = $_REQUEST["id"]; if (empty($id)) { $mensagem = "Eh obrigatorio informar o id do usuario."; require __DIR__ . ListarUsuariosAction::LISTAR_USUARIOS_PAGE; ...
true
8d21073784179ff56e7371299615f0ef2eb52bef
PHP
thomascardon35/forever35
/projet/controllers/contact.php
UTF-8
2,176
2.765625
3
[]
no_license
<?php session_start(); if (isset($_SESSION['login'])){//On vérifie que le variable existe. $login=$_SESSION['login'];//On récupère la valeur de la variable de session. }else{ $login=0;//Si $_SESSION['connect'] n'existe pas, on donne la valeur "0". } require_once '../models/newsEventsModel.php'; requ...
true
ec1d97cd23dae3560d65895fcbd148d0ae13812e
PHP
jtorsa/ProyectoBaseDatos
/pruebaFecha.php
UTF-8
2,143
2.984375
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <?php function mostrarComentarios($resultado){ if($resultado !=NULL){ $id=$resultado['Identificador']; $cuerpo=$resultado['Cuerpo']; ...
true
f15d2dacd6f664b0e779f44f17e651542157a5e1
PHP
Tocico/backend-gruppuppgift
/src/routes/entries.php
UTF-8
3,989
2.625
3
[]
no_license
<?php /* session_start(); */ return function ($app) { $auth = require __DIR__ . '/../middlewares/auth.php'; // 3get Skapa en GET route som hämtar alla inlägg $app->get('/entries', function($request, $response ) { $entries = new Entry($this->db); return $response->withJson($entries-> getAllEntries())...
true
da19c247c609b19b43adc877571f3a832705b63c
PHP
Didar123213/zcms
/app/controller/frontend/basket/Addprd_Basket_Frontend_Controller.php
UTF-8
8,433
2.765625
3
[]
no_license
<?php /** * Класс Addprd_Basket_Frontend_Controller отвечает за добавление товара в корзину, * взаимодействует с моделью Basket_Frontend_Model, общедоступная часть сайта */ class Addprd_Basket_Frontend_Controller extends Basket_Frontend_Controller { /** * Функция добавляет товар в корзину и делает редирект...
true
45be119928bab506bbe87f0e23f41a90c4f528c0
PHP
lynfordlagondi828/laraship
/Corals/modules/Subscriptions/Classes/SubscriptionProducts.php
UTF-8
1,310
2.578125
3
[]
no_license
<?php namespace Corals\Modules\Subscriptions\Classes; use Corals\Modules\Subscriptions\Models\Feature; use Corals\Modules\Subscriptions\Models\Plan; use Corals\Modules\Subscriptions\Models\Product; class SubscriptionProducts { protected $featureModelsList = []; public function getPlansList() { ...
true
483057db9f378efcc559d8c72ad789944b9ca1a2
PHP
NicolasDucom/FiliST-with-Laravel-
/app/models/Agenda.php
UTF-8
951
2.890625
3
[ "MIT" ]
permissive
<?php class Agenda { public static function recupererPlanningDeLaSemaineCourantePourLaPromo($promo, $semaine) { $semaine += 19; $client = new GuzzleHttp\Client(); $response = $client->get("http://dleguis.fr/planningjson.php?promo=$promo&sem=$semaine"); $jsonRaw = $response->json(); $tousLesCours = array(...
true
6cb06eb0a9441f36423307e86fe1df7e99d3ec6d
PHP
levabd/opteam-skill-check-backend
/app/Opteam/Services/Socialite/Contracts/UserInterface.php
UTF-8
510
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Opteam\Services\Socialite\Contracts; use Laravel\Socialite\Contracts\User as ProviderUser; interface UserInterface extends ProviderUser { /** * Get the user's first name. * * @return string */ public function getFirstName(); /** * Get the user's last name. ...
true
bb6b01f76eb7104682982a49d0852e347775248a
PHP
shawnrice/alphred
/classes/i18n.php
UTF-8
4,070
2.875
3
[]
no_license
<?php /** * Contains i18n class for Alphred, providing basic translation functionality * * PHP version 5 * * @package Alphred * @copyright Shawn Patrick Rice 2014 * @license http://opensource.org/licenses/MIT MIT * @version 1.0.0 * @author Shawn Patrick Rice <rice@shawnrice.org> * @link h...
true
7b59fd71db0bcb3ee2d915a0afa340352b8708e2
PHP
corentinmi/ProjetBDD
/controller/RequestCtrl.php
UTF-8
419
2.703125
3
[]
no_license
<?php require_once("controller/GetPostMgr.php"); require_once("model/Request.php"); require_once("view/ShowRequest.php"); Class RequestCtrl { private $gpm; private $view; private $request; public function __construct($gpm) { $this->gpm = $gpm; $this->request = new Request($this->gpm->get("id"), $this->gpm...
true
9e1ebf085fd2c0797f5b070730312e40716f4652
PHP
alvsgithub/POSS
/app/tests/acceptance/AdministrationCest.php
UTF-8
1,056
2.53125
3
[ "MIT" ]
permissive
<?php use \WebGuy; class AdministrationCest { public function _before() { } public function _after() { } /* * Reset Laravel Session */ private function loginAsAdmin(WebGuy $I){ $I->amOnPage('/'); $I->setCookie('laravel_session', '');...
true
e950ccfa571002e2fad8a83e226de2a640eaa440
PHP
giuliopanda/easy_classes
/site_documentation/assets/staticcontent/GpDBMySql.php
UTF-8
5,855
2.828125
3
[]
no_license
<div class="gp-doc-container gp-content"> <a href="<?php echo GpRouter::getInstance()->getLink("/index.php?page=api&id=GpDBMySql-test"); ?>" class="float-right">Vai al test</a> <h2>Interfacciarsi con il Database MySql</h2> <h3>Istanziare la classe</h3> <code><pre>$db = GpDBMySql::getInstance(); $db = ...
true
64e7ce8a8b03cd7b2970509c472c7bbeddd482cd
PHP
clarisse88/wesell_db
/manage-payment/delete.php
UTF-8
720
2.78125
3
[]
no_license
<?php include "../db.php"; // if the 'id' variable is set in the URL, we know that we need to edit a record if (isset($_GET['id'])) { $payment_id = $_GET['id']; // write delete query $sql = "DELETE FROM payment WHERE payment_id='$payment_id'"; // Execute the query $result = $con->query($sql); ...
true
3629104d12e92c98e8bc07752020a3b790e3bdaa
PHP
worenga/cobweb_framework
/framework/cobweb.database_mysqli.class.php
UTF-8
7,135
2.78125
3
[ "MIT" ]
permissive
<?php if (! defined('cw_inc')) { echo 'CobWeb: Cannot load files from the outdoor application context. Exit'; exit(1); } class CobWeb_database_mysqli implements CobWeb_DBMS { private $mysqli; private static $querycount = 0; private $transactionmode = false; private $transactionerror = false; ...
true
3c66847439a63a4b65a88a36261d2f4faaaaca2d
PHP
stevenandianto/IF3110-2015-T1
/upquestion.php
UTF-8
726
2.75
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "wbd"; // Create connection $conn = mysqli_connect($servername, $username, $password, $dbname); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } if($_SERVER['REQUEST_METHOD'] ==...
true
e77fa94ab06dea2a405af22ce24ef7043bd5e1de
PHP
pavlvs/glossary
/app/data/DataProvider.php
UTF-8
511
2.546875
3
[]
no_license
<?php require 'GlossaryTerm.php'; class DataProvider { private $filePath; public function __construct($source) { $this->source = $source; } public function getTerms() { } public function getTerm($term) { } public function searchTerms($search) { } pub...
true
a4d7599569c05e892f868644ab5b893aef853b34
PHP
Maycon-crz/Gerenciamento_de_barbearia
/Core/Model/ModelFerramentas.php
UTF-8
5,440
2.59375
3
[ "MIT" ]
permissive
<?php class Ferramentas{ function compactaParagrafos($paragrafos){ $tamanho = strlen($paragrafos); $tamanhoMaximo = 190; if($tamanho > $tamanhoMaximo){ $compactado = substr($paragrafos, 0, $tamanhoMaximo - $tamanho); $compactado = htmlspecialchars_decode($compactado); return $compactado." ....
true
1a109a6e5d08a95560f8338c51438573a192195e
PHP
szymach/datasource-elastica-driver
/src/ElasticaDriver.php
UTF-8
3,517
2.53125
3
[]
no_license
<?php namespace FSi\Component\DataSource\Driver\Elastica; use Elastica\Query\AbstractQuery; use Elastica\Query\BoolQuery; use Elastica\Query; use Elastica\SearchableInterface; use FSi\Component\DataSource\Driver\DriverAbstract; class ElasticaDriver extends DriverAbstract { /** * @var \Elastica\Query\BoolQue...
true
8e6975e5ec74f5a1a45d1476db15075c165b29a8
PHP
mrcrmn/framework
/public/index.php
UTF-8
866
2.8125
3
[]
no_license
<?php define('START_TIME', microtime(true)); /** * The base path functions which makes it easy to include files. * * @param string $path * @return string */ function base_path($path = '') { return __DIR__ .'/../' . ltrim($path, '/'); } /** * We need to require the autloader and boostrap the application. *...
true
df39f4113f6039a0d7fd5adc71d82b11db9762ad
PHP
Dheia/Linstaller
/src/Helpers/helpers.php
UTF-8
1,552
2.90625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Collection; use MahbodHastam\Linstaller\Helpers\ManageEnvironment; if (!function_exists('set_stepper_class')) { /** * Add done/current class for stepper-item * * @param int $elementStep * @param int $step * @return string */ function set_stepper_class...
true
a4d785bd56adeac1e79d677011bdf61bc5e38050
PHP
Sameh-R-Labib/complete_app_one
/includes/register_funcs.php
UTF-8
5,197
2.59375
3
[]
no_license
<?php // A file with the database host, user, password, and // selected database $jeffWiggleLabib = "Wake up Jeff 59990!"; include_once('db_vars.php'); // A string used for md5 encryption. You could move it // to a file outside the web tree for more security. $supersecret_hash_padding = 'Halleluyah choir at the mall....
true
4303365f7b6aee0239a0a7621b0b486dd29a09d7
PHP
squishie29/final
/hotels/views/back/managepromotion.php
UTF-8
11,958
2.578125
3
[]
no_license
<?php $servername='localhost'; $username='root'; $password=''; $dbname = "h_db"; $conn=mysqli_connect($servername,$username,$password,"$dbname"); if(!$conn){ die('Could not Connect My Sql:' .mysql_error()); } $limit = 2; if (isset($_GET["page"])) { $page = $_GET["page"]; } else{ $page=1; }; $start_from ...
true
7ea911dbdaa262a480a69e848acaa23d0e3d1f5b
PHP
fabianjow/Mamaya2020
/shoppingCart.php
UTF-8
5,362
2.984375
3
[]
no_license
<?php // Include the code that contains shopping cart's functions include_once("cartFunctions.php"); // Check if user logged in if (! isset($_SESSION["ShopperID"])) { // redirect to login page if the session variable shopperid is not set header ("Location: login.php"); exit; } $MainContent = "<div id=...
true
e599dfcdcfc2a598991bf0aab4e155701eff8999
PHP
Arimos1983/movies
/app/Http/Controllers/MoviesController.php
UTF-8
1,170
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Movie; use Illuminate\Http\Request; class MoviesController extends Controller { public function index() { $movies = Movie::all(); $latest_movies= Movie::orderByDesc("id")->take(2)->get(); return view('/index', compact('movies','latest_movi...
true
8368f2abb0c2e35d735ab5df307bb0e37f971e37
PHP
extempl/cogear
/engine/User/Avatar.php
UTF-8
1,634
2.890625
3
[]
no_license
<?php /** * User avatar * * @author Dmitriy Belyaev <admin@cogear.ru> * @copyright Copyright (c) 2011, Dmitriy Belyaev * @license http://cogear.ru/license.html * @link http://cogear.ru * @package User * @subpackage * @version $Id$ */ class User_Avatar { protected $file; protected $user; /...
true
77b4b754fed468bc1a7f72ec518fbe8448cd0ba1
PHP
rreynier/reyniersaudio.com
/tasks/admin/item/subType/default.php
UTF-8
2,429
2.59375
3
[]
no_license
<script src="js/admin/sorttable.js"></script> <?php include 'classes/SubType.php'; require_once 'classes/PartType.php'; $partType = new PartType(); $subType = new SubType(); $default = 0; $subTypeId = $_GET['subTypeId']; switch($_GET['action']) { case 'new': include 'tasks/admin/item/subType/edit.php'; ...
true
43f57ec40ab210575ad7d5b96018652f9876b159
PHP
ismailian/FlexCore
/Modules/Connector.php
UTF-8
9,226
2.8125
3
[ "Apache-2.0" ]
permissive
<?php /** * ---------------------------------------------------------------- * ############## YOU ARE FREE TO RE-USE THIS MODULE ############## * ############## IN YOUR OWN PROJECTS. ############## * ---------------------------------------------------------------- * ############## I AM NOT RESPON...
true
2ac7b194d330a235e23c67665ab988a9d9852798
PHP
jefponte/escritordesoftware
/src/classes/controller/EscritorPHP.php
UTF-8
3,858
2.953125
3
[]
no_license
<?php class EscritorPHP extends Escritor{ /** * criando cada pasta do software se ele for PHP. * (non-PHPdoc) * @see Escritor::criaEstrutura() */ public function escreverSoftware(){ if(!count($this->software->getObjetos())){ echo "Ausencia de Objetos, software não criado"; return; } foreach (...
true
c180a39135a281a9253cd0a360d4e542bced9076
PHP
suyin12/jh-framword
/php/call魔术方法的高级用法.php
UTF-8
932
3
3
[]
no_license
<?php class DB{ private $sql = array( 'field' => '', 'where' => '', 'order' => '', 'limit' => '', 'group' => '', 'having'=> '' ); function __call($functionName,$args){ $functionName = strtolower($functionName); if(array_key_exists($functionNa...
true
49dadd5a2cdc3f47fd963a2a07e2e7095f0a6aa2
PHP
jhonedin/PHP_SISTEMAS_NOTAS
/Estudiantes/Pages/delete.php
UTF-8
1,261
2.71875
3
[]
no_license
<?php require_once('../../Usuarios/Modelo/Usuarios.php'); // llamo al modelo de usuarios $ModeloUsuarios = new Usuarios(); // creamos una nueva instancia de usuarios $ModeloUsuarios->validateSession(); // validamos la sesion. $Id = $_GET['Id']; ?> <!DOCTYPE html> <html> <head> <meta charset="...
true
5d1329bb4676e4c6c6dea5c2057832291ec2987f
PHP
Dev-OriolCC/REST-API-Laravel-8
/app/Http/Controllers/Api/BrandController.php
UTF-8
2,337
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use App\Http\Resources\BrandResource; use App\Models\Brand; use Illuminate\Http\Request; class BrandController extends Controller { // * Construct method public function __construct() { $this->middleware('auth:api')->excep...
true
a9cf0476fad68e96560156e2a5f49ce892517823
PHP
dunatron/codekeeper
/mysite/code/model/Vote.php
UTF-8
961
2.53125
3
[]
no_license
<?php namespace MyOrg\Model; use GraphQL\Type\Definition\ResolveInfo; use MyOrg\Security\AppUser; use SilverStripe\GraphQL\Scaffolding\Interfaces\ScaffoldingProvider; use SilverStripe\GraphQL\Scaffolding\Scaffolders\SchemaScaffolder; use SilverStripe\ORM\DataObject; use SilverStripe\Security\Member; class Vote exten...
true
fa05de2bb4469c93c0dafa4575844d4262ddacd7
PHP
WebIDauth/WebIDauth
/arc/store/ARC2_StoreDumper.php
UTF-8
4,261
2.65625
3
[ "MIT" ]
permissive
<?php /* homepage: http://arc.semsol.org/ license: http://arc.semsol.org/license class: ARC2 Store Dumper author: Benjamin Nowack version: 2008-07-02 */ ARC2::inc('Class'); class ARC2_StoreDumper extends ARC2_Class { function __construct($a = '', &$caller) { parent::__construct($a, $caller); } f...
true
cfb5b74d6ce33c5a2f71a73f3e7e5dd9f1f28e51
PHP
midoks/midoks
/php/plugins/redis_action/connect.php
UTF-8
553
2.71875
3
[ "Apache-2.0" ]
permissive
<?php class RedisConnection{ public static $linkID = NULL; function __construct(){ if( self::$linkID == NULL ){ self::$linkID = new Redis(); self::$linkID->connect('127.0.0.1', 6379); } } function getLinkID(){ return self::$linkID; } } //var_dump($_SERVER); //var_dump(__FILE__); //echo ($_SERVE...
true
08cb24d7654fea9355bdcb046e9efd13a34cbe17
PHP
TextKing/textking-api-php
/src/TextKing/Model/Job.php
UTF-8
6,263
2.53125
3
[ "MIT" ]
permissive
<?php /* * TEXTKING API bindings for PHP * Copyright (C) 2013 TEXTKING Deutschland GmbH (https://www.textking.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,...
true
d125988cc340528be88bde95eeb77cffb9496af5
PHP
5462934/baixiu-page-master
/functions.php
UTF-8
2,949
2.96875
3
[]
no_license
<?php require_once 'config.php'; session_start(); function xiu_session () { if(empty($_SESSION['current_logged_user'])) { header('Location: /admin/login.php'); return; } return $_SESSION['current_logged_user']; } /** * 数据库连接函数 */ function mysqli_conn () { $connect = mysqli_connect(DB_HOST, DB_...
true
e541be533402ba29158336312ca9a5b83bdfdcb2
PHP
BartoszWojdalowicz/ElearningPlatform
/src/Security/Voter/CourseOwnerVoter.php
UTF-8
1,938
2.796875
3
[]
no_license
<?php namespace App\Security\Voter; use App\Repository\UserCourseRepository; use App\Entity\Course; use App\Entity\User; use JetBrains\PhpStorm\Pure; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\Authorization\Voter\Voter; /** * Class CourseOwnerVoter ...
true
81a9f3ec5130ff26698ec987213c7ebbdde3f43f
PHP
iitu-kouros/Fresh-City
/Backend (PHP & MYSQL)/Objects/coupon.php
UTF-8
5,757
3.078125
3
[]
no_license
<?php class Coupon{ // database connection and table name private $conn; private $table_name = "coupons"; // object properties public $couponid; public $companyid; public $itemid; public $userid; // constructor with $db as database connection public function __construc...
true
0a1b44152ac79920b7921b94dc7f5318b1b0f14a
PHP
wzlwit/php
/todolist/Controllers/items.php
UTF-8
1,408
2.59375
3
[]
no_license
<?php // Controllers/items.php // ! everything realted (update, delete... ) should be in this file for controlling class Items extends Controller { protected $items; function __construct() { parent::__construct(); $this->items = new Item_Model($this->db); } // * user listing f...
true
8c7f49f8e7425a020f5f95fb359eda7dceaa6230
PHP
rafaelparayno/montesorri
/system/database/Studentsinfo.php
UTF-8
3,092
2.78125
3
[]
no_license
<?php class Studentsinfo { public $db = null; public function __construct(DBController $db) { if (!isset($db->con)) return null; $this->db = $db; } public function getData($table = 'studentsinfo') { $result = $this->db->con->query("SELECT * FROM stu...
true
13a3bb4e73d423da2928c527b91ad95332c5cbb5
PHP
yungege/admin
/admin/application/models/dao/RoleAssgin.php
UTF-8
908
2.8125
3
[]
no_license
<?php class Dao_RoleAssginModel extends Db_Mongodb { protected $table = 'backend_role_assgin'; protected $fields = [ 'uid' => '', // user id 'rid' => '', // role id ]; protected function __construct(){ parent::__construct(); } /** * 获...
true
c5454cbee3e9ff9928bfcda690487de33c788a6b
PHP
CTA-K12/PhantasosClientBundle
/Model/PhantasosClient.php
UTF-8
5,311
2.8125
3
[ "MIT" ]
permissive
<?php namespace Mesd\PhantasosClientBundle\Model; use GuzzleHttp\Client; use Symfony\Bundle\FrameworkBundle\Routing\Router; use Mesd\PhantasosClientBundle\Model\UploadTicket; class PhantasosClient { //////////////// // PROPERTIES // //////////////// /** * Root url to the phantasos instance ...
true
c26a3d633544b085a0fb8fb3f7ad6322d0b670a2
PHP
sianto1997/XLabs
/app/Controller/Component/ImportComponent.php
UTF-8
21,265
2.546875
3
[]
no_license
<?php App::uses('Component', 'Controller'); App::uses('AppController', 'Controller'); App::import('Vendor', 'PHPExcel/PHPExcel'); /** * @property Department Department * @property Chapter Chapter * @property Code Code */ class ImportComponent extends Component { // public $uses = array('Status', 'Regulation', '...
true
9da3c07faed4615c8cfd8ba75cd5b7517467eac9
PHP
NEENUMERLYKORULA/E-Medication-Reminder-App
/userapproval.php
UTF-8
827
2.625
3
[]
no_license
<?php $dbhost='localhost'; $dbuser='root'; $dbpass=''; $conn=mysql_connect($dbhost,$dbuser,$dbpass); if(!$conn) { die('couldnot connect'.mysql_error()); } $check=mysql_select_db('seminar'); if(!$check) { die('could not select '.mysql_error()); } $retval="select * from user"; $sql=mysql_query($r...
true
972b0aa5a0ad154201fea70a706c8cba0e6aa269
PHP
icoy/Despair
/untitled/upload.php
UTF-8
631
2.671875
3
[ "MIT" ]
permissive
<?php if($_FILES["file"]["error"]) { echo $_FILES["file"]["error"]; } else { if($_FILES["file"]["size"]<10240000) { //防止文件名重复 $filename = "./upload/".time().$_FILES["file"]["name"]; //转码 $filename = iconv("UTF-8","gb2312",$filename); if(file_exists($filename)) ...
true
af227cac05eedde9bf78393944676155c9eb1140
PHP
admin-panel/admin-bundle
/src/AdminPanel/Component/DataSource/DataSourceView.php
UTF-8
6,369
2.75
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace AdminPanel\Component\DataSource; use AdminPanel\Component\DataSource\Exception\DataSourceViewException; use AdminPanel\Component\DataSource\Field\FieldViewInterface; use AdminPanel\Component\DataSource\Util\AttributesContainer; /** * {@inheritdoc} */ class DataSourceView e...
true
9881bf7fe805feb06a15366a0558c13cdc1878d8
PHP
aniskchaou/PHP_TUTORIAL
/poo/interface.php
UTF-8
462
3.015625
3
[]
no_license
<!--Interfaces Interfaces are defined to provide a common function names to the implementers. Different implementors can implement those interfaces according to their requirements. You can say, interfaces are skeletons which are implemented by developers. --> <?php interface Mail { public function sendMail(); } ...
true
f64a7aca1ca011d9158ae414f2962ea0fa267f10
PHP
wszetko/sitemap
/tests/Items/ImageTest.php
UTF-8
4,833
2.71875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * This file is part of Wszetko Sitemap. * * (c) Paweł Kłopotek-Główczewski <pawelkg@pawelkg.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Wszetko\Sitemap\Tests\Items; use PHPUnit\Framework\T...
true
0272b1561c82af38af646dc4b27f69507336c4ba
PHP
obetoferreira/liturgia-diaria
/index.php
UTF-8
704
2.59375
3
[]
no_license
<?php @header("Content-Type: text/html; charset=utf-8", true); // Para corrigir os erros: //ini_set('display_errors', 1); //error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE | E_ALL ^ E_NOTICE); include 'page/LiturgiaDiariaPage.php'; include 'builder/LeituraBuilder.php'; include 'dominio/LiturgiaDiaria.php'; i...
true
32f60bc711b3509cbd7b83b713071e5132e367a5
PHP
busypeoples/api
/Sling/Form/FormAbstract.php
UTF-8
5,533
3.21875
3
[]
no_license
<?php namespace Sling\Form; /* * handles the form creation * * @package Sling * @subpackage Form */ abstract class FormAbstract { /** * @var array $_elements */ protected $_elements = array(); /** * * @var string $_name */ protected $_nam...
true
cceb785cf221859e05802f923d278bb1f667860b
PHP
Sagleft/coronavirus-infoportal
/controller/src/Logic.php
UTF-8
568
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\Controller; class Logic { public $user = null; protected $db = null; public function __construct() { // } public function setdb($db) { $this->db = &$db; } public function setUser($user): void { $this->user = &$user; } public function getTimeseriesPath() { return...
true
42561cb53b48cfb9b8b2163fab882943d9ba9e80
PHP
amirul123akmal/hotel
/room_update.php
UTF-8
1,855
2.75
3
[]
no_license
<?php //CONNECT TO DATABASE require 'config.php'; //RECALL HEADER FILE require 'header.php'; session_start(); //RECEIVED POST VALUE if (isset($_POST['renewid'])) { $roomid = $_SESSION['roomid']; $idtype = $_POST['renewid']; echo "<script>alert('<?php echo $idtype; ?>');</script>"; //SAVE WITH THE NEW VALUE $result...
true
d913daf9fde60f0d02e2355956d4eff70ce52df4
PHP
Golikova/Laravel-project-crimeaproperty
/Packages/Framework/TYPO3.Fluid/Classes/TYPO3/Fluid/ViewHelpers/Format/IdentifierViewHelper.php
UTF-8
2,645
2.71875
3
[ "MIT" ]
permissive
<?php namespace TYPO3\Fluid\ViewHelpers\Format; /* * * This script belongs to the TYPO3 Flow package "Fluid". * * * * It is free software; you can redistribut...
true
cff044db4546e401841922ed1a738960952ab87f
PHP
iamwildtuna/piastrix
/src/Shop.php
UTF-8
2,807
2.875
3
[ "MIT" ]
permissive
<?php namespace WildTuna\Piastrix; use Symfony\Component\Yaml\Yaml; use WildTuna\Piastrix\Exception\ConfigValidationException; class Shop { /** * @var string */ private $host = null; /** * @var int */ private $shop_id = null; /** * @var string */ private...
true
05c25d1b390c14af62c0e463f27cd62d63836609
PHP
fastbill/fastbill-php-sdk
/src/Common/RecipientEntity.php
UTF-8
1,795
3.03125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace FastBillSdk\Common; class RecipientEntity { /** * @var string */ private $toEmailAddress = ''; /** * @var string */ private $ccEmailAddress = ''; /** * @var string */ private $bccEmailAddress = ''; public function ge...
true
6b871f1bc19906729f2373c970d9ee10b9958c73
PHP
qi-interactive/MATA-Framework
/db/ActiveQuery.php
UTF-8
2,352
2.53125
3
[]
no_license
<?php /** * @link http://www.matacms.com/ * @copyright Copyright (c) 2015 Qi Interactive Limited * @license http://www.matacms.com/license/ */ namespace mata\db; use Yii; class ActiveQuery extends \yii\db\ActiveQuery { public $handled = false; public $initialWhere = null; /** * Prepares for building SQL...
true
41e3ff5323a325b3cb6ab4c533dd99489b7abe44
PHP
claudito/pdo
/clases/Conexion.php
UTF-8
385
2.84375
3
[]
no_license
<?php class Conexion { function __construct() { } function get_conexion() { try { $pdo = new PDO("mysql:host=localhost;dbname=colegio","root",""); $pdo->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION); return $pdo; //$pdo = ($pdo) ? "conectado" : "no conectado" ; //echo $pdo; } catch (Exception $e) ...
true
daa122299c83f4e7fe9b127d9a2442fe339852ca
PHP
Sirlam/superthemes
/app/payment/ApiCrypter.php
UTF-8
6,492
2.78125
3
[ "MIT" ]
permissive
<?php namespace Payment; class ApiCrypter { private $iv = "1234567890123456"; private $key = "!123456_#9abcdef"; public function __construct() { } public function encrypt($str) { $str = $this->pkcs5_pad($str); $iv = $this->iv; $td = mcrypt_module_open('rijndael-128', '', 'cbc', $...
true
b42a1b85140c673eea5017cbd017e45c70652ef0
PHP
qidouhai/haxibiao-wallet
/src/Listeners/InvitationReward.php
UTF-8
591
2.640625
3
[]
no_license
<?php namespace Haxibiao\Wallet\Listeners; use Haxibiao\Wallet\Events\WithdrawalDone; class InvitationReward { /** * Create the event listener. * * @return void */ public function __construct() { // } /** * Handle the event. * * @param object $event ...
true
34482c4713e0df530c881291ffc2134bdfd40f2c
PHP
flopper3939/KOG
/classes/CSRF.php
UTF-8
2,149
2.78125
3
[]
no_license
<?php class CSRF { public static function cleanUpTokens() { if (isset($_SESSION['tokens'])) { $toRemove = array(); foreach ($_SESSION['tokens'] as $key => $value) { if (time() - $value['time'] > $GLOBALS['config']['CSRF']['Token_timeout']) { array_push($toRemove, $key); } } foreach ($toRem...
true
23c53ff68e36b3ffedee7e94e098fa48a03d800b
PHP
SteGriff/untask
/DAL/notes_DAL.php
UTF-8
1,868
3.15625
3
[ "Unlicense", "LicenseRef-scancode-public-domain" ]
permissive
<?php // notes DAL //Find ALL the notes! (For current logged-in user) function notes($db){ return notes_for_current_user($db); } //Looks up a note name in the db and returns false, or an array of note. //There should probably only be one note with that name, but it's not a unique ID. function notes_for_current_user...
true
aa96381da0b378d4c057327f428921413ef949f9
PHP
pkaratzhs/laravel-to-do-api
/app/Http/Controllers/TaskController.php
UTF-8
1,267
2.609375
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Models\Task; use Illuminate\Http\Request; use App\Models\ToDoList; class TaskController extends Controller { public function __construct() { $this->middleware('auth:sanctum'); $this->authorizeResource(Task::class, 'task'); } /** * Sto...
true
98e8a7f737e1310b5769e9780aa556197cedd241
PHP
glaubervila/Rebanho
/php/models/Manejos.php
UTF-8
2,923
2.8125
3
[]
no_license
<?php header('Content-Type: text/javascript; charset=UTF-8'); class Manejos extends Base { private $valor = null; private $data = null; protected $table = ""; /** Metodo: manejoQuadras * Recebe os dados do animal * faz um update na quadra * cria um ocorrencia de manejo ...
true
d3b3f8c7c6ae7e5aa598b9855933875b36199765
PHP
gremo/GremoHighchartsBundle
/Tests/Chart/ChartPropertyTest.php
UTF-8
3,448
2.53125
3
[]
no_license
<?php /* * This file is part of the GremoHighchartsBundle package. * * (c) Marco Polichetti <gremo1982@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Gremo\HighchartsBundle\Tests\Model; use Gremo\Highcharts...
true
6ba3cc56daf6476851027a18006e794f6319d631
PHP
kaiorocha/bagisto
/packages/Webkul/SAASCustomizer/src/Contracts/Validations/Code.php
UTF-8
602
2.640625
3
[ "MIT", "Apache-2.0" ]
permissive
<?php namespace Webkul\SAASCustomizer\Contracts\Validations; use Illuminate\Contracts\Validation\Rule; class Code implements Rule { /** * Determine if the validation rule passes. * * @param string $attribute * @param mixed $value * @return bool */ public function passes($att...
true
a4b4372699931771be86d6c7368722a481ffcc46
PHP
aliggie/clipbucket-v5
/upload/includes/classes/objects.class.php
UTF-8
2,477
2.78125
3
[ "BSD-3-Clause", "AAL" ]
permissive
<?php /** * Author : Arslan Hassan * Software : ClipBucket * * This Class is used to display different * objects of ClipBucket */ class CBObjects { /** * Function used to display templates in drop down */ function display_templates() { //Get Tempplates $templates = CBTemplat...
true
cc354eb8f4f3e7970ffc8f967b04022be76c1e73
PHP
joegreen88-liquid/log-prototype
/webapp/src/JGLP/Service/User.php
UTF-8
975
3.140625
3
[]
no_license
<?php namespace JGLP\Service; use JGLP\ConfigurableTrait; class User implements ServiceInterface { use ConfigurableTrait, ServiceTrait; /** * @var int|null */ protected $id; /** * This object's id property points to the `user` session variable. */ public function __construct...
true
0706812f370fcbb5fb532a2f20bb92f6fd3ad6ce
PHP
luzdelsol668/laravel-blog
/src/Events/CategoryAdded.php
UTF-8
850
2.59375
3
[ "MIT" ]
permissive
<?php namespace HessamCMS\Events; use Illuminate\Queue\SerializesModels; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Broadcasting\InteractsWithSockets; use HessamCMS\Models\HessamCategory; use HessamCMS\Models\HessamCategoryTranslation; /** * Class CategoryAdded * @package HessamCMS\Events */ cl...
true
36f89cc90073a5f2b844c28c4ccaa2d3376bedfd
PHP
REYJDR/ACIWEB-REQUISICIONES
/ACI_WEB/public/soportes/upload.php
UTF-8
2,705
2.609375
3
[]
no_license
<?php set_time_limit(0); ini_set('upload_max_filesize', '500M'); ini_set('post_max_size', '500M'); ini_set('max_input_time', 4000); // Play with the values ini_set('max_execution_time', 4000); // Play with the values $req = trim($_POST['req']); $target_dir = getcwd()."/".$req."/"; $process = ''; file_put_contents(...
true