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
3249552d1af280c2a3e9f54af0088c3dc7378c40
PHP
giantomakin/lumen-admin
/app/Factories/GalleryFactory.php
UTF-8
441
2.8125
3
[ "MIT" ]
permissive
<?php namespace App\Factories; class GalleryFactory { const NS = "App\\Models\\"; public static function create ($type = '') { if($type == '') { throw new \Exception('Invalid Gallery Type.'); } else { $className = self::NS.'Gallery'.ucfirst($type); if(class_exists($className)) { ...
true
c31880cba82ab5b965f136c4e5bae61cd1001877
PHP
pkirkaas/PKMVCFramework-Skeleton
/site/controllers/SystemPartialController.php
UTF-8
2,206
2.53125
3
[]
no_license
<?php /** * PKMVC Framework * * @author Paul Kirkaas * @email p.kirkaas@gmail.com * @link * @copyright Copyright (c) 2012-2014 Paul Kirkaas. All rights Reserved * @license http://opensource.org/licenses/BSD-3-Clause */ /** * SystemPartialController -- builds system partials, lik...
true
5d76062e4c1476fd5dbf1669118b3c691d88b3c2
PHP
ohkey/Zen
/public/editor/newsAction.php
UTF-8
2,351
2.5625
3
[]
no_license
<?php header("content-type:text/html;charset=utf-8"); $oper = @$_POST['oper']; $conn = mysql_connect("localhost", "root", 'root'); if(!$conn) { die('failed...'); } mysql_select_db("test", $conn); mysql_query("set names utf8"); function no_browser_cache(){ header( 'Expires: Mon, 26 Jul 1997 ...
true
a9c67ec34b7f6e2f3c3a128d398eac5d3dc31972
PHP
panmai0tanu/project222
/php/insertMedicine.php
UTF-8
1,263
2.65625
3
[]
no_license
<?php $conn = new mysqli("localhost", "root", "", "project222"); if ($conn->connect_error){ die("Connection failed:" .$conn->connect_error); } $id = $_POST["id_medicine"]; $number = $_POST["number"]; $price = $_POST["price"]; $name = $_POST["name"]; $date = $_POST["Date"]; $...
true
a7771541ed5668121a29115559e554aa84e419a8
PHP
sergiosgc/ZeroMass-Plugins
/com.sergiosgc.form/Member.php
UTF-8
845
3
3
[]
no_license
<?php namespace com\sergiosgc\form; /* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */ /** * A form member. Either a form input or an input set. */ abstract class Member { public $name; public function getName() { return $this->name; } /* constructor {{{ */ public func...
true
28244d198e4d7e128f4b29f71cb05b4f809f8ffd
PHP
mindofmicah/phptwbs
/src/MindOfMicah/PHPTWBS/Alert.php
UTF-8
1,129
3.078125
3
[]
no_license
<?php namespace MindOfMicah\PHPTWBS; class Alert { use FlattenAsToString; private $heading = false; private $message; private $style; public static function __callStatic($func_name, array $arguments = array()) { if (in_array($func_name, ['danger', 'info', 'warning', 'success'])) { ...
true
67922e87b04703a4bd428fda1a0d446b24e109eb
PHP
maylazidarahma/mysql-to-json-php
/kabupaten.php
UTF-8
438
2.625
3
[]
no_license
<?php $conn = mysqli_connect('localhost', 'root', '', 'indonesia'); $getdata = $_GET['id']; $query = mysqli_query($conn, "SELECT * FROM regencies WHERE province_id ='$getdata'"); ?> <html> <head> <title>Kabupaten</title> </head> <body> <H1>DATA KABUPATEN</H1> <?php while ($row = mysqli_fetch_assoc($query)) {?> <a hre...
true
d78c6b7bc0643ce4cbbc2a284f5dd7e6e6a95c1c
PHP
conferencetools/speakers-module
/src/Domain/Dashboard/Entity/PickupRequest.php
UTF-8
2,663
2.703125
3
[]
no_license
<?php namespace ConferenceTools\Speakers\Domain\Dashboard\Entity; use Doctrine\ORM\Mapping as ORM; /** @ORM\Entity() */ class PickupRequest { const REQUESTED = 'Requested'; const ACCEPTED = 'Accepted'; const REJECTED = 'Rejected'; /** * @ORM\Id() * @ORM\ManyToOne(targetEntity="ConferenceToo...
true
6cf0f567cc383b5d090ff85f515ab0e30441f81c
PHP
OurSociety/OurSociety---Free-Local-Campaign-Platform
/src/Action/ToggleAction.php
UTF-8
1,761
2.625
3
[]
no_license
<?php declare(strict_types=1); namespace OurSociety\Action; use Cake\Datasource\EntityInterface; use Cake\Http\Response; use Cake\Network\Exception\BadRequestException; use Cake\ORM\Exception\PersistenceFailedException; abstract class ToggleAction extends Action { public function __invoke(...$params): ?Response ...
true
55a101073a855f36c9e88d32c690bc5456aeb0f9
PHP
rodrigoborjas98/TrabajoFInal
/helpers/helpers.php
UTF-8
1,506
2.671875
3
[]
no_license
<?php function display_errors($errors){ $display= '<ul class="bg-danger">'; foreach ($errors as $error) { $display .= '<li class="text-light">'.$error.'</li>'; } $display.= '</ul>'; return $display; } function sanitize($dirty){ return htmlentities($dirty, ENT_QUOTES,"UTF-8"); } function lo...
true
af606c3c3a527f5871070fcdd97a444968b6085e
PHP
Robert430404/mrp-php-sdk
/src/mrpsdk/endpoints/carClasses/ClassesEndpoint.php
UTF-8
1,493
2.65625
3
[ "MIT" ]
permissive
<?php namespace mrpsdk\endpoints\carClasses; use mrpsdk\endpointInterfaces\carClasses\ClassesInterface; use mrpsdk\endpointTraits\getters\BaseUrlTrait; use mrpsdk\endpointTraits\getters\GetRequestTrait; use mrpsdk\endpointTraits\getters\UrlParamsTrait; use mrpsdk\endpointTraits\setters\EventIdTrait; use mrpsdk\helper...
true
49746b0b822005d859c66537d63f0f389a8d496f
PHP
phacility/phabricator
/src/applications/people/engine/PhabricatorPeopleProfileMenuEngine.php
UTF-8
2,554
2.625
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php final class PhabricatorPeopleProfileMenuEngine extends PhabricatorProfileMenuEngine { const ITEM_PROFILE = 'people.profile'; const ITEM_MANAGE = 'people.manage'; const ITEM_PICTURE = 'people.picture'; const ITEM_BADGES = 'people.badges'; const ITEM_TASKS = 'people.tasks'; const ITEM_COMMITS = 'peo...
true
25991f86d5184b264fa6971bccf3bd8a2266d044
PHP
kumaexp/jawaban_
/nomor_4/jabat_tangan.php
UTF-8
376
2.796875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <form name="form" action="#" method="get"> <input type="number" name="subject" id="subject" min="3"> <input type="submit" name="submit"> </form> <br> <?php error_reporting(0); $s = $_GET['subject']; $t = $s-2; $u = ($t*$t + $t*3 + 2)/2; ...
true
bc60f60be78389c9b1859f995954a3477eed57bd
PHP
HikmatullahEhsan/User-Location-Detection
/im_p/vendor/genealabs/laravel-caffeine/src/Http/Middleware/LaravelCaffeineDripMiddleware.php
UTF-8
1,509
2.546875
3
[ "MIT" ]
permissive
<?php namespace GeneaLabs\LaravelCaffeine\Http\Middleware; use Closure; class LaravelCaffeineDripMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * * @return mixed */ public function handle($r...
true
08ce3cb0d429a94c06c07ed3a673536387c1c87d
PHP
chenlo/referentes
/app/Http/Controllers/LenguaController.php
UTF-8
2,456
2.515625
3
[ "MIT" ]
permissive
<?php namespace Referentes\Http\Controllers; use Illuminate\Http\Request; use View; use Auth; use File; use Referentes\Lengua; class LenguaController extends Controller { public function __construct() { $this->middleware('admin'); } public function index() { $lenguas = Leng...
true
6a1f590666eca5e9e88984c59c2428eed4b72238
PHP
kamil161g/NaSpalonym
/src/Repository/MatchsRepository.php
UTF-8
2,820
2.5625
3
[]
no_license
<?php namespace App\Repository; use App\Entity\Matchs; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Symfony\Bridge\Doctrine\RegistryInterface; class MatchsRepository extends ServiceEntityRepository { public function __construct(RegistryInterface $registry) { parent::__co...
true
eed1472df02f47112de60ea4eddef2d6bfcfb1e5
PHP
Aakriche/SitePhoto
/tests/PeintureUnitTest.php
UTF-8
4,898
2.578125
3
[]
no_license
<?php namespace App\Tests; use App\Entity\Commentaire; use App\Entity\Peinture; use App\Entity\User; use App\Entity\Categorie; use DateTime; use PHPUnit\Framework\TestCase; class PeintureUnitTest extends TestCase { public function testIsTrue() { $peinture= new Peinture(); $datetime = new Date...
true
223cfbe68c10f8033bc32ac95f2fadce07b0a650
PHP
unglue-workflow/client
/src/tasks/CssFileHandler.php
UTF-8
2,464
2.671875
3
[]
no_license
<?php namespace unglue\client\tasks; use unglue\client\helpers\FileHelper; use unglue\client\base\BaseFileHandler; /** * Handles Css Files. * * @author Basil Suter <basil@nadar.io> * @since 1.0.0 */ class CssFileHandler extends BaseFileHandler { /** * {@inheritDoc} */ public function name() ...
true
e3c621959750cd79473a6e7722dfad354514340f
PHP
michalsen/wpDEMO
/plugins/fusion-core/shortcodes/class-content-boxes.php
UTF-8
12,589
2.640625
3
[]
no_license
<?php class FusionSC_ContentBoxes { private $content_box_counter = 1; private $column_counter = 1; private $num_of_columns = 1; public static $parent_args; public static $child_args; /** * Initiate the shortcode */ public function __construct() { add_filter( 'fusion_attr_content-box-shortcode', array( ...
true
b81f8e31f5f2f9b3aa6a0997445ef1a779d5d0b0
PHP
jestintab/zendphp
/classesobjects/reflection/User.php
UTF-8
839
3.28125
3
[]
no_license
<?php error_reporting(E_ALL); ini_set('display_error', true); class User{ private $relative = ['Anupama', 'Dhananjay', 'Kuhoo', 'Darsh']; public function __construct (){ echo "I am in class : " . __CLASS__ . ", function : " . __FUNCTION__; } public function getCurrentAge($dob, $name){ echo 'Invoked' . PH...
true
ad69459e2e3d1aa63d6ed7bf5c96f0f007db1ed9
PHP
lerminou/GuzzleBundle
/DataCollector/GuzzleDataCollector.php
UTF-8
4,675
2.59375
3
[ "MIT" ]
permissive
<?php namespace Playbloom\Bundle\GuzzleBundle\DataCollector; use Guzzle\Plugin\History\HistoryPlugin; use Guzzle\Http\Message\RequestInterface as GuzzleRequestInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\DataCollector\DataCol...
true
6d27dc17c65d38e0bb108a048be3f5c4ce817647
PHP
rdgmus/PhpMySqlAndroid
/functions/MySqlFunctionsClass.php
UTF-8
97,608
2.78125
3
[]
no_license
<?php /* * Copyright (C) 2014 rdgmus * * 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. * * This pro...
true
c26173f472ddd64913ba4c0d638368456da9d6ec
PHP
iixCarbonxZz/FYP
/order.php
UTF-8
5,516
2.625
3
[]
no_license
<?php /*Starts the session to load previously stored variables*/ session_start(); require 'src\connect.php'; include 'src\logout.php'; if(!isset($_SESSION["logged"])){ header("Location: notLogged.php"); } //function to search associative array by key and return value. //Used below to get quantity of items ...
true
5ed86769f607a51a6e22147c9249fc1b9268cbbf
PHP
KingCountySAR/KCSARA_SelfStudy
/models/selfstudy_m.php
UTF-8
1,798
2.671875
3
[ "Apache-2.0" ]
permissive
<?php defined('BASEPATH') or exit('No direct script access allowed'); class SelfStudy_m extends MY_Model { public function get_all_published_courses() { $_table_prefix = $this->config->item('selfstudy._table_prefix'); $this->db->select('`slug`, `title`'); $this->db->where('published', 1); $this->db->order_b...
true
47dd32592c918d99f82caf31a7ecb6d15a385c66
PHP
rcyboom/FirstPhpWork
/app/Models/Userpay.php
UTF-8
818
2.5625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; class Userpay extends Model { protected $table = 'userpays'; protected $appends = ['obj_name']; public function getObjNameAttribute() { if($this->object_type == '车辆'){ $rs = DB...
true
2cc64c34dd130b9361df7f91d46474211624cb41
PHP
ERrorMAKros/test
/akademos/1-2/TT.php
UTF-8
709
3.25
3
[]
no_license
<?php class TT { public function __construct() { echo "<pre>" ; print_r([ [ $this->spam( 1 ) , $this->spam( 6 ) , $this->spam( 14 ) ] , $this->solution( "camelCasingText" ) ]) ; echo "</pre>" ; } /* String */ protected function spam( /* int */ $number ) { /* Othe...
true
c9408cadfc569928f3d0c0055a2420f46133bb49
PHP
bimsaraw/sakyamis
/application/models/Lecturer_model.php
UTF-8
3,754
2.546875
3
[ "MIT" ]
permissive
<?php class Lecturer_model extends CI_Model { public function __construct() { $this->load->database(); } public function get_lecturers() { $query = $this->db->get('lecturer'); return $query->result_array(); } public function add_lecturer() { $this->l...
true
749b5eb1ed638f8c1195ef954598bf8d8fd6f109
PHP
andrelange91/embeddedController3
/app/Helpers/DataHelper.php
UTF-8
1,228
3
3
[]
no_license
<?php namespace App\Helpers; // connect to db include_once 'dbcon.php'; // db info: // db name: weather_app // table name: daily_recordings // coloums in table: // RegisterTime (datetime) // Temperature (double) // Location (varchar(256)) // user (username and password): // db_us...
true
e132c308f7e5fcfa2f13e1b1507f070c8e6928dc
PHP
matheuscastroweb/ci4-integration-pagseguro
/Demo/tests/system/CLI/CLITest.php
UTF-8
9,726
2.8125
3
[ "MIT" ]
permissive
<?php namespace CodeIgniter\CLI; use CodeIgniter\Test\Filters\CITestStreamFilter; class CLITest extends \CIUnitTestCase { private $stream_filter; protected function setUp(): void { parent::setUp(); CITestStreamFilter::$buffer = ''; $this->stream_filter = stream_filter_append(STDOUT, 'CITestStreamFi...
true
c7474b9527e59e7693accaec72eefcd5bb6fa545
PHP
mahmoudmagdy4318/Laravel-Eqra-Project
/app/Http/Requests/PostRequest.php
UTF-8
914
2.734375
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Contracts\Validation\Validator; use Illuminate\Http\Exceptions\HttpResponseException; class PostRequest extends FormRequest { public function authorize() { return true; } public function rules() { ...
true
005441f78f28e04ac3b509329568e2a0d00a3453
PHP
qidouhai/haxibiao-breeze
/src/Notifications/BreezeNotification.php
UTF-8
2,738
2.578125
3
[ "MIT" ]
permissive
<?php namespace Haxibiao\Breeze\Notifications; use Haxibiao\Breeze\User; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; /** * 一个通用的系统通知 */ class BreezeNotification extends Notification { //通知的事件名 protected $custom_event; //通知相关对象 protected $data_id; ...
true
e9c0eeaefee389b5b2d19dc7a0c9594c98529ea0
PHP
DenisIsmetov/PathPlatform
/balance/balanceformouthreal.php
UTF-8
1,306
2.671875
3
[]
no_license
<?php class BalanceForMonthReal { public function BalanceMonth() { include '../connected/conn.php'; $powerformouthres = mysqli_query($con, "SELECT * FROM powerformonth") or die('Error 135'); while ($row = mysqli_fetch_array($powerformouthres)) {$powerformonth = $row['powerfor...
true
e196e9e99243fa65386c44a9f23fbb55a9b80256
PHP
Christiancembes/Hotel-Project
/plugins/learn/blogtesting/updates/builder_table_create_learn_blogtesting_actors.php
UTF-8
556
2.609375
3
[ "MIT" ]
permissive
<?php namespace Learn\Blogtesting\Updates; use Schema; use October\Rain\Database\Updates\Migration; class BuilderTableCreateLearnBlogtestingActors extends Migration { public function up() { Schema::create('learn_blogtesting_actors', function($table) { $table->engine = 'InnoDB'; ...
true
ee4e72db0625746aa50a93231b2008ed39f5b9f9
PHP
honzajavorek/joss
/class/plugin/JPHead.php
UTF-8
8,411
2.609375
3
[ "ISC" ]
permissive
<?php /** * Joss framework & content management system. * * Created 31.1.2008. * * @author Jan (Honza) Javorek aka Littlemaple http://www.javorek.net * @copyright Copyright (c) 2008 Jan Javorek * @package Joss * @link http://code.google.com/p/joss-cms/ * @license GNU GENERAL PUBLIC LICENSE version...
true
230d04b84cf7a74b296cbe671441f5ece1812f08
PHP
mpscholten/Robo
/src/Task/Composer.php
UTF-8
2,996
2.921875
3
[ "MIT" ]
permissive
<?php namespace Robo\Task; use Robo\Result; /** * Contains tasks for composer. * * @package Robo\Task */ trait Composer { /** * @param null $pathToComposer * @return ComposerInstallTask */ protected function taskComposerInstall($pathToComposer = null) { return new ComposerInsta...
true
98628cd5bec66af2293f1c2cfc34bd6543b8b409
PHP
riteshaspl/process-queue
/src/Process/NullProcess.php
UTF-8
705
2.6875
3
[ "MIT" ]
permissive
<?php /** * File NullProcess.php * * @author Edward Pfremmer <epfremme@nerdery.com> */ namespace Epfremme\ProcessQueue\Process; use Symfony\Component\Process\Process; /** * Class NullProcess * * @package Epfremme\ProcessQueue\Process */ class NullProcess extends Process { /** * {@inheritdoc} */ ...
true
abe53c5636ecf7acc1578e88a4ebbe38c55693fc
PHP
treii28/HuntCache-ZF2
/module/Application/src/Application/Mapper/AttributeMapper.php
UTF-8
4,417
2.90625
3
[]
no_license
<?php namespace Application\Mapper; class AttributeMapper extends MapperAbstract { const DB_TABLE_NAME = 'attributes'; const MODEL_NAME = 'Application\Model\Attribute'; protected static $_dbTable = null; public function __construct() { parent::__construct(); } public static function ...
true
0b8e03a6a468e722cb69392bebe36fc9c022a1c7
PHP
peterclink/webservice
/system/model.php
UTF-8
6,915
3.078125
3
[]
no_license
<?php class model { public $isConn; protected $conn; private $host = DB_HOST; private $user = DB_USER; private $pass = DB_PASS; private $db = DB_DATABASE; private $options = array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'); public $sql; protected $stmt; protecte...
true
8c0915d97cfd9cdaec95c4dd78a34ef97924478b
PHP
idsolutions-id/module-generator
/Action/CreateQuery.php
UTF-8
2,412
2.53125
3
[]
no_license
<?php namespace Vheins\LaravelModuleGenerator\Action; use Illuminate\Support\Arr; use Lorisleiva\Actions\Concerns\AsAction; use Illuminate\Support\Str; class CreateQuery { use AsAction; public $module, $name, $fileStub, $filePath; public function handle($args) { $this->module = $args['module...
true
34a3a037aeabcde644be269befb2ecdd10843386
PHP
jarrodagims/coolelpaso
/admin/classes/process/Session.php
UTF-8
1,087
3.1875
3
[]
no_license
<?php class Session { // Member Constants // Instance Variables // Static Methods public static function register($key,$value) { $_SESSION[$key] = serialize($value); } public static function unregister($key) { unset($_SESSION[$key]); } public static function load($key,$class = '') { if(isset($_S...
true
009f8a0cee05e69ad23cbe08956a0d255e493660
PHP
Pegase007/Cours_Exo_Dev
/Oriente_obj/src/App/Smartphone/AbstractFactoryMethod.php
UTF-8
227
2.6875
3
[]
no_license
<?php namespace App\Smartphone; /** * Class AbstractFactoryMethod * @package App\Smartphone */ abstract class AbstractFactoryMethod { abstract public function createSmartphone($coque,$couleur,$capacité,$poid); }
true
0d11f2f2a1427c8d311f580e681b2fb2aa9d7d6a
PHP
julie-devos/exo1.2
/exo1.php
UTF-8
316
2.953125
3
[]
no_license
<!DOCTYPE html> <html lang="fr"> <head> <meta charset="utf-8"> <title>Exercice 1-Partie 2</title> </head> <body> <?php $age=12; ?> <?="$age"?><br> <?=$age<=17 ? "Vous êtes mineur." : NULL ?><br> <?php $age=18; ?> <?=$age>=18 ? "Vous êtes majeur." : "Vous êtes toujours mineur.";?><br> </body> </html>
true
70242c201e18442e29d5028d4c5531ba15a0e9de
PHP
cjade/mini
/app/Utils/Utils.php
UTF-8
1,094
2.5625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: haibao * Date: 2018/6/26 * Time: 下午4:51 */ namespace App\Utils; use Illuminate\Support\Facades\Auth; define("GREETING", "Welcome"); class Utils { /** * 第三方登录获取jwt token * @param $token * @return \Illuminate\Http\JsonResponse */ public static...
true
2c37049246c45bdcfbee9d7604be0b3518bfac5f
PHP
silentorb/ground_php
/inc/Ground_Module.inc
UTF-8
728
2.640625
3
[ "MIT" ]
permissive
<?php class Ground_Module extends Meta_Object { public $ground; public function __construct() { $this->listen($this, 'connect.ground', 'initialize'); } public function initialize($ground) { $this->ground = $ground; // I don't have time to write tests for this...
true
7044bb996771dc8e4c0e1f57871e15fdf8022ee3
PHP
melikacandra/TubesMIBD-melika-benedict-catherine
/Siap/Benedict/TUBES/controller/logoutController.php
UTF-8
589
2.703125
3
[]
no_license
<?php require_once "controller/services/mysqlDB.php"; require_once "controller/services/view.php"; class LogoutController { protected $db; public function __construct() { session_start(); $this->db = new MySQLDB("localhost", "root", "", "tugas_besar"); if (!function_exists('str_contains')...
true
41cb99b74b5e33ab65693dc03a16d5a5879a0b12
PHP
TeaganBriggs/tmbc
/application/models/DatabaseObject/Comment.php
UTF-8
2,411
2.71875
3
[]
no_license
<? class DatabaseObject_Comment extends DatabaseObject{ protected static $constTable='comments'; protected static $constId='comment_id'; public function __construct($db) { parent::__construct($db,DatabaseObject_Comment::$constTable,DatabaseObject_Comment::$constId); $this->add('...
true
fcff315af84880997c5918ee85ffbafa435c28ca
PHP
jkrayco/ackward
/calendar2/show.php
UTF-8
822
2.796875
3
[]
no_license
name of event: <?php if(isset($_POST["name"])) echo $_POST["name"]; ?> <br > date and time: <?php if(isset($_POST["atime"])) echo $_POST["atime"]; ?> <br> <?php if(isset($_POST['add'])) { $conn = mysql_connect("localhost", "root", "root"); if(! $conn) { die (mysql_error()); } if(! g...
true
ba0a54e4197289ac35738daf33533b8da94ba437
PHP
YaiGenes/php-basics
/operators.php
UTF-8
696
3.28125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Operators</title> </head> <body> <h1>Operators</h1> <a href="/Assembler/Month6/php_basics/index.html">Home</a> ...
true
409a41e05018491fcf803cb864d28bebe588a735
PHP
AlviseAmati/CRUD-PHP-DATABASE-PRODOTTI
/Filter.php
UTF-8
1,361
2.6875
3
[]
no_license
<?php session_start(); if(isset($_SESSION['NomeUtente']) && isset($_SESSION['Ruolo']) && $_SESSION['Ruolo'] == 'Amministratore') { include("config.php"); $sql = "SELECT IdLog, IdNome, DataOra, DescrizioneOperazione FROM logoperazioni WHERE IdNome=:stringa"; $stmt = $db->prepare($sql); $stringa=filter_v...
true
61542f45a11a57a6b74d42050218fa0484419aa4
PHP
abdullahalnoman8/Uploading-Website
/Completion/login/changepassword.php
UTF-8
1,940
2.671875
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ session_start(); $user= $_SESSION['username']; if($user){ if($_POST['submit']){ // Starting change password. $oldpassword= md5( $_POST['oldpassword']); $newpassword= md5( $_POST['newpasswor...
true
b192fb20aad14e717af482827f996416cf9c1df3
PHP
jbpadilha/PHP-Projets
/SuporteOnLine/class/Projetos/Projetos_ModulosVo.php
ISO-8859-1
1,684
2.671875
3
[]
no_license
<?php //#################################### // * Rafael Henrique Vieira de Moura / Desenvolvedor (baco Tecnologia) // * Arquivo: Projetos_ModulosVo.php // * Criao: Rafael Henrique Vieira de Moura // * Reviso: // * Data de criao: 01/07/2008 //#################################### /** * Classe Value Object. Ser...
true
288594490874349ca9bb760a39b864dbbd08ad95
PHP
neeraj24a/8str
/amember-3/library/Am/Form/Admin.php
UTF-8
1,249
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Admin Form - adds the following: * - addSaveButton() method * - initRenderer() - special init for default renderer * * @package Am_Form */ class Am_Form_Admin extends Am_Form { protected $epilog = null; /** @var HTML_QuickForm2_Renderer_Default */ protected $renderer; publi...
true
92bb81e634a90096361fdbb65e6cad117c4ec291
PHP
vidyar/php-graphico-api
/src/Graphico/Api/ResponseInterface.php
UTF-8
681
2.65625
3
[]
no_license
<?php /** * This file is part of php-graphico-api. * * (c) Yuya Takeyama * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Interface of response. * * @author Yuya Takeyam */ interface Graphico_Api_ResponseInterface extends...
true
2bc01387227927aaed5fa389ec2be3fdb72a8135
PHP
Mythilikota/demo
/version3/loginapp/index.php
UTF-8
500
2.984375
3
[]
no_license
<?php // Checks if a connection is possible. include("../admin/config.php"); if (!$db) { echo "Error: Unable to connect to MySQL." . PHP_EOL; echo "Debugging errno: " . mysqli_connect_errno() . PHP_EOL; echo "Debugging error: " . mysqli_connect_error() . PHP_EOL; exit; } echo "Su...
true
bc8e116ebe63df2e2291c6cb1d441956c99d6982
PHP
Sophie-Williams/whorder
/app/Traits/ActorTrait.php
UTF-8
563
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Traits; use App\Actors\PlayKeywordActor; use App\Actors\StopKeywordActor; trait ActorTrait { /** * Generate next question */ protected function nextQuestion() { $questionAttempts = $this->gamer->game->question_attempts + 1; if ($questionAttempts >= config("w...
true
af6ec4dd97ea0c9369606f93db1ab3c34ab32087
PHP
mkvisuals/jidelni-listek
/web/index.php
UTF-8
1,145
2.78125
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <title>Jídelní lístek</title> </head> <body> <header> <nav> <ul> <li>one</li> <li>two</li> <li>three</li> </ul> </nav> </head...
true
44f9d50db443f6c21fd44e3216e0789bddb05a0a
PHP
mkorkmaz/redislabs-redisgraph-php
/src/RedisGraph/Command/Delete.php
UTF-8
514
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Redislabs\Module\RedisGraph\Command; use Redislabs\Interfaces\CommandInterface; use Redislabs\Command\CommandAbstract; final class Delete extends CommandAbstract implements CommandInterface { protected static $command = 'GRAPH.DELETE'; private function __construct(s...
true
cd294a7971095df8a0bcd08c6b8d3ae4df38e12a
PHP
goldenboy/login-on-main-site
/login-on-main-site.php
UTF-8
1,706
2.859375
3
[]
no_license
<?php /** * Ensure that all logins happen on the main site * * @license GPLv2 * @author Boone Gorges */ class BBG_Main_Site_Login { var $main_site_id; function __construct() { global $current_site, $current_blog; $this->main_site_id = $current_site->blog_id; add_action( 'login_url', array( $this, 'login...
true
ca851c582c4996de32da1087b6814ecb0a6085fb
PHP
itd24/PHP-Module-Example
/core/Bootstrap.php
UTF-8
1,420
3.0625
3
[]
no_license
<?php /** * The Bootstrapper class. * It represents the starting point of our application */ class Bootstrap { /** * helper function, gets a module name from the GET parameters. If no module name is present, a default name is returned * @return string */ private static function getModule...
true
f853a79101069e5e56fb9d46939f4949e8dd8c00
PHP
REMEXLabs/SmartHome_SomSe2016
/SmartCare/SmartCareServer/api/module/Main/src/Main/PostProcessor/Xml.php
UTF-8
1,045
2.75
3
[ "Apache-2.0" ]
permissive
<?php namespace Main\PostProcessor; /** * */ class Xml extends AbstractPostProcessor { public function process() { $xml = new \SimpleXMLElement("<?xml version=\"1.0\"?><response></response>"); $this->createXmlNode($this->_vars, $xml); $result = $xml->asXML(); ...
true
ab36b359c4da4c93225191fab12d70cbae0df7cc
PHP
gtong900/music-stream-website
/includes/classes/Playlist.php
UTF-8
1,853
2.9375
3
[]
no_license
<?php /** * */ class Playlist { private $conn; private $pid; private $ptitle; private $powner; private $pdate; public function __construct($conn,$pid) { $this->conn=$conn; $this->pid=$pid; $playlistQuery=mysqli_query($this->conn,"SELECT * FROM playlist WHERE pid='$this->pid'"); $playlis...
true
3ea7f00c6e6fa4f3d5e99d2390ad9c604224daaf
PHP
beheh/cbg
/include/cbg_user_ban.class.php
UTF-8
1,586
2.65625
3
[]
no_license
<?php class cbg_user_ban extends cbg_database_object { private $by; private $user; function __construct($cbg) { parent::__construct($cbg, 'cbg_user_ban'); } public function loadByUser($id) { while($this->loadByValue('user', $id)) { if($this->getUntil() != 0 && $this->...
true
7cd2fb2bbf01324a06ae340240827c45f85cfedc
PHP
LikeAPinboard/Server
/core/classes/drivers/kvs/Memcache_kvs.php
UTF-8
2,511
2.8125
3
[ "MIT" ]
permissive
<?php if ( ! defined('SZ_EXEC') ) exit('access_denied'); /** * ==================================================================== * * Seezoo-Framework * * A simple MVC/action Framework on PHP 5.1.0 or newer * * * KVS Memcache driver * * @package Seezoo-Framework * @category Driver * @author Yoshi...
true
d99d62d19a24e782143716bc2148d095af0b3466
PHP
lnked/Fastest-CMF
/fastest/app/templating/fenom.templateEngine.php
UTF-8
922
2.65625
3
[ "MIT" ]
permissive
<?php class templateRender extends Renderer { // protected $extension = '.tpl'; public function __construct($dir = '') { $this->template = Fenom::factory(PATH_TEMPLATES.DS.$dir, PATH_RUNTIME); $this->template->setCompileDir(PATH_RUNTIME); $this->template->setOptions(Fenom::AUTO_STRIP); ...
true
ac9e36e32601df0ed7240e6136bc337cd59be203
PHP
comsummer/BargerDesignedInCollege
/application/admin/controller/Category.php
UTF-8
5,149
2.5625
3
[ "Apache-2.0" ]
permissive
<?php /** * 多级分类管理 * Created by PhpStorm. * User: ZhongHua * Date: 2018/4/13 * Time: 15:45 */ namespace app\admin\controller; use app\common\Error; use app\common\Factory; use app\common\Functions; use think\Request; class Category extends Base { /** * 新增分类 */ public function create(Request $re...
true
55553191ab476f7d216e6ae4f51d288938933dd9
PHP
jordan-pays/TD-PHP
/TD2/lireVoiture.php
UTF-8
631
2.640625
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title> Lire voiture </title> </head> <body> <?php require_once 'Model.php'; require_once '/home/ann2/paysj/public_html/TD-PHP/TD1/Voiture.php'; $tab_voit = Voiture::getAllVoitures(); $tab_util = Voiture:...
true
b42d788bb338d26373fefe0d22e4c2f8a929d8f9
PHP
amitbiswas1992/php-practice-
/Files/class/car.php
UTF-8
104
2.609375
3
[]
no_license
<?php class Car{ function wheel(){ echo"Is existed"; } } $bmw = new Car(); echo $bmw->while();
true
85c846f791054f6ba87a948320a4e592cfcb3a02
PHP
quailadvrw/woocommerce-order-tables
/includes/class-wc-custom-order-table-install.php
UTF-8
3,055
2.78125
3
[]
no_license
<?php /** * Table installation procedure. * * @package WooCommerce_Custom_Order_Tables * @author Liquid Web */ class WC_Custom_Order_Table_Install { /** * The option key that contains the current schema version. */ const SCHEMA_VERSION_KEY = 'wc_orders_table_version'; /** * The database table schema v...
true
799b4be3a19e75dec6c4185db7c7d2e5afbf4137
PHP
jjmort/inmotus
/common.php
UTF-8
1,934
2.890625
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = "root"; $dbname = "inmotus"; $conn = false; function connect_Database(){ global $servername, $username, $password, $dbname, $conn; // Create connection $conn = mysqli_connect($servername, $username, $password, $dbname); // Check connection ...
true
c2cc59904451f2f66414fc192a4c383f6483d863
PHP
PstineWorkshop/Spring-2017
/Project Folder/getGames.php
UTF-8
670
2.609375
3
[]
no_license
<?php require_once ('mysqli_connect.php'); $game = $_GET['game_platform']; $ggms ='HELLO'; $query = "SELECT * FROM game_info WHERE game_platform='$game'"; $result = mysqli_query($dbc,$query); if (mysqli_num_rows($result) > 0) { // output data of each row while($row = mysqli_f...
true
7d67cdeb03aec001c66ad20b6aa584829b9be75c
PHP
miyamaework/wordpress-template
/packages/wp-theme/src/templates/parts/functions/config_upload_media_name.php
UTF-8
536
2.5625
3
[]
no_license
<?php /** * メディアファイルアップロード時に名前のタイムスタンプ形式にする * - http://blog.dododori.com/create/program/upload-rename/ */ function pj_upload_media_filename($filename) { $info = pathinfo($filename); $ext = empty($info['extension']) ? '' : '.' . $info['extension']; if ($info['filename'] != 'sitemap') { $dateTimeNow = date...
true
39cacf1dc301d8229be9c54a9554999ab128f772
PHP
odevoo/espacemenbre
/register.php
UTF-8
3,316
2.703125
3
[]
no_license
<?php require_once "inc/functions.php"; session_start(); // sil il y a dees element dans la variable $_POST, on effectue les ations suivantes if (!empty($_POST)) { $errors = array(); require_once 'inc/db.php'; // VALIDATION DU USERNAME if (empty($_POST['username']) || !preg_match('/^[a-zA-Z0-9_]+$/', $_POST[...
true
058887a97404b3195d06d867bea9fd104c4bbea8
PHP
FlySkyPie/markdown-regulation-parser
/tests/testParser/ParserTest.php
UTF-8
2,265
2.78125
3
[ "MIT" ]
permissive
<?php use PHPUnit\Framework\TestCase; use FlySkyPie\MarkdownRegulationParser\Parser; /** * Description of ParserTest * * @author flyskypie */ class ParserTest extends TestCase { public function test_get_title() { $source = file_get_contents(__DIR__ . '/test1.md'); $p = new Parser($source); $this->...
true
1edd018f32f4262cde60db680dd0da3a16e28141
PHP
dheeratp/i257project
/search.php
UTF-8
1,621
2.515625
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Indigenous Communities Co-governance Agreements Access System</title> <link rel="stylesheet/less" href="style.less"> <script src="less.js"></script> </head> <body> <header> <div style = "text-align: center"> <div class="wrapper"> <span>Indigenous C...
true
63f3e00df7308e3facbe661f0c8852f63fad2748
PHP
masaga303/Management-of-Employees
/UpdateInfo.php
UTF-8
29,490
2.59375
3
[]
no_license
<html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> </script> </head> <body> <?php //Εμφάνηση ώρα Ελλάδος date_default_timezone_set('Europe/Athens'); error_reporting(0); include 'connector.php'; $con...
true
b7b53df217babc184ce0d0fd2b386f3b4d615729
PHP
Infern1/websolarlog
/classes/services/DeviceHistoryService.php
UTF-8
2,321
2.921875
3
[]
no_license
<?php class DeviceHistoryService { public static $tbl = "deviceHistory"; /** * Save the object to the database * @param Panel $object * @return Panel */ public function save(DeviceHistory $object) { $bObject = ($object->id > 0) ? R::load(self::$tbl, $object->id) : R::dispense(self::$tbl); $bObject = $t...
true
de1aae5767825c63ec90e65c36feca69bb40175a
PHP
boluijten3/BASALT_PAMsoftware
/htdocs/gino-pam/php_cm/modules/process/list/EmployeeFilterSafeFormProcessor.class.php
UTF-8
3,526
2.59375
3
[]
no_license
<?php /** * Description of EmployeeFilterSafeFormProcessor * * @author ben.dokter */ require_once('modules/process/list/EmployeeFilterInterfaceProcessor.class.php'); class EmployeeFilterSafeFormProcessor { static function actionFilter($objResponse, $safeFormHandler) { $hasError = true; $...
true
67462c56c44a2cb926d66f723ab48ce399230ded
PHP
lovelifelovecode/laravel_learning
/app/Student.php
UTF-8
1,157
3.046875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Student extends Model{ const SEX_UN = 0; const SEX_BOY = 1; const SEX_GRIL = 2; /** * 关联到模型的数据表 * * @var string */ protected $table = 'student'; //Eloquent 默认每张表的主键名为 id,你可以在模型类中定义一个 $primaryKey 属性来覆盖该约定。 ...
true
5a7e624fa24cee824a7134336138a76717792c21
PHP
leplutonien/php_generator
/lib/User.php
UTF-8
1,428
3.140625
3
[ "MIT" ]
permissive
<?php namespace lib; /** * class storing all information on session * @author PhpGenerator (https://github.com/leplutonien/php_generator) */ session_start(); class User { public function __construct() { } public function getAttribute($attr) { return isset($_SESSION[$attr]) ? $_SESSI...
true
d600ee1a78c59ecb3114aafb43e5f079628c8903
PHP
imperiumclansoftware/tools-bundle
/src/Controller/AutoCompleteController.php
UTF-8
2,539
2.53125
3
[ "MIT" ]
permissive
<?php namespace ICS\ToolsBundle\Controller; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use SDI\Formexten...
true
b592895f9285c3f38f04a34abf4f4cb42946dd90
PHP
Richard-Aasa/Ajaveeb
/classes/post.php
UTF-8
2,770
3.203125
3
[]
no_license
<?php class Post { private $db; public $array = array(); // $db is a PDO function __construct($db) { $this->db = $db; } function byID($id) { $stmt = $this->db->prepare("SELECT * FROM posts WHERE postID = :id"); $stmt->bindParam(":id",$id); $stmt->execute(); $row = array(); if($row =...
true
321fbbb291748c8b62ab1fd1c747858d6da4a59e
PHP
MatheusAlvesA/Yu-Gi_Oh_Unlimited
/ZD/libs/cards/c_101.php
UTF-8
4,579
2.59375
3
[]
no_license
<?php /* * Carta terminada no dia 11/09/2016 * terminada em 1 dia */ class c_101 extends Monstro_normal { /*Quando esta carta é Normal Summoned: * Você pode direcionar um face-up monstro no campo, exceto esta carta, * aumentar o níve do alvo em 2 até a EndPhase.*/ function invocar($local, $id, $modo, ...
true
52ab6d7b4b8cfc27b7f06f6d2cd64705ae640a17
PHP
diezsiete/RegMed
/application/models/Usuario_model.php
UTF-8
5,438
2.59375
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); require_once ENTITIES_DIR . 'UsuarioEntity.php'; class Usuario_model extends MY_Model { protected $entityClass = 'UsuarioEntity'; protected $table = 'usuario'; public $fields = [ ['field' => 'tipo_documento', 'label'...
true
c74a6b2127e4fcf5dec7642cb7f38d50fa1b9189
PHP
rapraquion/PHP1-OOP-AddressBook-refactor
/addessbook/Objects/Query.php
UTF-8
1,077
2.90625
3
[]
no_license
<?php //Include Connection class here.. include 'Connection.php'; Class Query extends Connection { public function __construct() { parent::connect(); } public function display() { //your select code here $sql = "SELECT * FROM address WHERE name = ?"; } public function insert($get) { //you...
true
8fac26787b6b3a386d61c034fa7b55fbe9e76f9d
PHP
Pholenk/news-portal
/application/modules/search/models/MSearch.php
UTF-8
386
2.65625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class MSearch extends CI_Model { function __construct() { parent::__construct(); } public function cari($data) { $this->db->select('*'); $this->db->like('post_title', $data); $this->db->or_like('post_content', $data); $this->db->where('post_parent',' is null'); $query ...
true
aec98bb24052743dda3781932c75238640ea2897
PHP
masknetwork/web_node
/pages/adr/options/CProfile.php
UTF-8
8,276
2.578125
3
[]
no_license
<? class CProfile { function CProfile($db, $template) { $this->kern=$db; $this->template=$template; } function updateProfile($adr, $name, $desc, $email, $website, $pic_back, $pic, $days, $sign="") { // Decode $name=base64_decode...
true
e61341386324a7c788e51dad04c11bf072545663
PHP
pLammers/Memory
/EnumMemoryPictures.php
UTF-8
1,095
2.5625
3
[]
no_license
<?php class EnumMemoryPictures{ const MEMORY_PICTURE_BLUE = 'blue'; const MEMORY_PICTURE_YELLOW = 'yellow'; const MEMORY_PICTURE_RED = 'red'; const MEMORY_PICTURE_GREEN = 'green'; const MEMORY_PICTURE_DARK_GOLDEN_ROD = 'darkgoldenrod'; const MEMORY_PICTURE_PINK = 'pink'; const MEMORY_PICTU...
true
68ff6040de2cf8b331119ae600cf1edc701dce59
PHP
lozaeric/tp_lyricsbox
/application/models/Cancion_model.php
UTF-8
3,564
2.546875
3
[]
no_license
<?php class Cancion_model extends CI_Model { public function __construct () { parent::__construct (); $this->load->database(); } public function get_canciones() { $ordpor = $this->input->get('campo'); $ordtipo = $this->input->get('orden'); $filtrar = $this->input->get('filtrar'...
true
1f74ffc8155f60f7fdee0d2e59ac9be8e0463311
PHP
Kelvin1320/ProjetosWEBgit
/noticia/controller/usuario.controller.php
UTF-8
2,808
2.703125
3
[ "MIT" ]
permissive
<?php //incluindo arquivo com funções do BD include_once("model/usuario.php"); //criando o objeto da clase Usuário $usu = new Usuario(); //verificar se existe o campo ação if(isset($_REQUEST["acao"])) { switch ($_REQUEST["acao"]) { case 'cadastrar_usu': //enviando valores vindos do formulário $usu->nome = $_...
true
90da40f36f197c997292b8efa0d2c9aa2782aaab
PHP
DivineOmega/overflow-framework
/src/Routing/Route.php
UTF-8
1,846
2.734375
3
[]
no_license
<?php namespace DivineOmega\OverflowFramework\Routing; use DivineOmega\OverflowFramework\Http\Request; use DivineOmega\OverflowFramework\Http\Response; class Route { private $method; private $path; private $callable; public function __construct(string $method, string $path, callable $callable) {...
true
b9f4940600e245abb5c277bad38644aaa2673c93
PHP
imanro/songbook
/module/Songbook/src/Songbook/Controller/ContentController.php
UTF-8
6,248
2.5625
3
[]
no_license
<?php namespace Songbook\Controller; /** * @author manro */ class ContentController extends FrontendController { /** * @var \Doctrine\ORM\EntityManager */ protected $em; /** * @var \Songbook\Service\Song */ protected $songService; /** * @var \Songbook\Service\Content ...
true
91e1d7d76ac9ef91e8e5b08d27ea59a39b56d87a
PHP
senturkonur/learn-php
/Associative Arrays.php
UTF-8
1,247
3.640625
4
[]
no_license
<!--Challenge #1 of 3 --> <!--Our favorite pet - Waggy Pig - is a cute white silly dog. Your Mission Update the code below to use an associative array: set they keys of the array to name, weight, age and bio. Then, update the code below so Waggy Pig's bio still prints out! --> <?php $waggyPig = [ 'name' => 'Wagg...
true
025c816259f3fbebd67ebb9c9b325ebf878372af
PHP
naoyukik/php-documents
/ja/ide-phpstub/ibase_execute.php
UTF-8
1,321
2.546875
3
[]
no_license
/** * (PHP 5, PHP 7)<br/> * @link http://php.net/manual/en/function.ibase-execute.php * @param resource $query [optional] <p> TODO DESCRIPTION </p> * @param mixed $bind_arg [optional] <p> TODO DESCRIPTION </p> * @param mixed $... [optional] <p> TODO DESCRIPTION </p> * @return resource クエリがエラーを発生させた場合は FALSE を返しま...
true
c78a15a81e913336e0bbd570ebd3a79121dffcba
PHP
kenji-tabata/acs-1
/src/poms/RowScoreMedio.php
UTF-8
1,357
3.015625
3
[]
no_license
<?php require_once dirname(__FILE__) . "/RowScore.php"; /** * Classe que abstrai a pontuação row-score médio do método Poms */ class RowScoreMedio { public $vigor = 0; public $tensao = 0; public $raiva = 0; public $confusao = 0; public $fadiga = 0; public $depressao = 0; ...
true
694fd2bf8e9cf08a190bb6dc523c89c0b9d57c8f
PHP
vitaliksokil/internet-store-creator
/database/migrations/2021_05_05_222821_fill_up_warehouses_table.php
UTF-8
1,375
2.71875
3
[ "MIT" ]
permissive
<?php use App\Services\NewPostApiService\NewPostApiServiceInterface; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class FillUpWarehousesTable extends Migration { /** * @var NewPostApiServiceInterface */ private $newPos...
true
cdadfd7258ef1b9e1d5274ef3b43c7858dbc8ce4
PHP
pc-magas/rover_laravel
/app/Repositories/RoverRepository.php
UTF-8
2,118
2.71875
3
[ "WTFPL", "MIT" ]
permissive
<?php namespace App\Repositories; use NilPortugues\Foundation\Infrastructure\Model\Repository\Eloquent\EloquentRepository; use NilPortugues\Foundation\Domain\Model\Repository\Contracts\Identity; use NilPortugues\Foundation\Domain\Model\Repository\Contracts\Fields; use NilPortugues\Foundation\Domain\Model\Repository\Co...
true
736fe86a7ebb71093b8bca0acb94e9877467933d
PHP
AlexVysotskiy/RIWSocialParser
/src/Parser/CoreBundle/Command/ParseNewPostsCommand.php
UTF-8
753
2.546875
3
[ "MIT" ]
permissive
<?php namespace Parser\CoreBundle\Command; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class ParseNewPostsCommand extends ContainerAwareCommand { protected function configure() { ...
true
d71f82c50803c89a9494b06c9719364f70f5e5d6
PHP
programmer-coalescebd/safariPark
/Safari Park/Web/safari/classes/encryption_lite.php
UTF-8
1,471
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: ahstanin * Date: 8/7/17 * Time: 6:07 PM */ (strpos($_SERVER["REQUEST_URI"], "classes") !== false) ? exit('Direct access not allowed') : ''; class encryption { private function encrypt_decrypt($action, $string) { $output = false; $crt_file = '-----B...
true
6bc567ccb9a9f2eb5c728a34b87b36ce98048aa8
PHP
IshaelOveja/PROJECT_ISHA
/src/entidad - Copia/gen_personas_diplomas.php
UTF-8
2,846
2.640625
3
[]
no_license
<?php class gen_personas_diplomas { private $cc_diplomas; private $cc_persona; private $cc_universidad; private $nivel; private $denominacion; private $especialidad; private $fecha; private $nro_reg; private $fecha_crea; private $user_crea; private $fecha_mod; private $user_mod; private $ip; private $es...
true
a2f031a3f8174d52295bb254e31c9a736dc17523
PHP
tjkhara/getaways-react
/index.php
UTF-8
1,580
2.609375
3
[]
no_license
<?php /* Plugin Name: Brad&rsquo;s Boilerplate Block Plugin Version: 1.0 Author: Brad Author URI: https://github.com/LearnWebCode */ if( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly class BradsBoilerplate { function __construct() { add_action('init', array($this, 'onInit')); } funct...
true