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
c7b7d17d75c168dbb0eb08838574dab6370ed23c
PHP
jersonortiz/microcurriculos
/model/DTO/asignaturaDTO.php
UTF-8
1,500
2.796875
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of asignaturaDTO * * @author Camilo J */ class asignaturaDTO { //put your code here private $cod...
true
2a8f0a1d244bfef68cf121e25c417347cf25e3f4
PHP
moisesHerrera01/SIMVIH
/application/models/Entity/EnfermedadOportunista.php
UTF-8
1,387
2.6875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Mapping as ORM; /** * * @Entity * @Table(name="enfermedades_oportunistas") */ class EnfermedadOportunista { /** * @Column(type="integer", name="id_enfermedades_oportunistas", nullable=false) * @Id * @GeneratedValue(st...
true
7cc5456f53f4f8c36a7861c023ca1b6b0d7e1868
PHP
jkhan99/Hello-World
/register.php
UTF-8
832
2.59375
3
[]
no_license
<?php include "connection.php"; $firstname = ''; $surname = ''; $username = ''; $password = ''; $email = ''; $number = ''; $firstname = $_POST[ 'firstname' ]; $surname = $_POST[ 'surname' ]; $username = $_POST[ 'username' ]; $password = $_POST[ 'password' ]; $email = $_POST[ 'email' ]; $number = $_POST[ 'number' ]; ...
true
a075de06c17a240b5a307a62a209d330055283a2
PHP
GitHubHubus/uml-php
/src/OK/Uml/Parser/Factory/ConstantFactory.php
UTF-8
577
2.84375
3
[ "MIT" ]
permissive
<?php namespace OK\Uml\Parser\Factory; use OK\Uml\Entity\ConstantNode; use OK\Uml\Entity\NodeInterface; /** * @author Oleg Kochetkov <oleg.kochetkov999@yandex.ru> */ class ConstantFactory implements NodeFactoryInterface { /** * @param array $object <p>[name => value]</p> * * @return ConstantNode...
true
038740b40e9f66b7532f059fa851a3ddd7c5312a
PHP
gameinclass/gic
/app/Policies/Game/Medal/MedalPolicy.php
UTF-8
2,932
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Policies\Game\Medal; use App\Models\User; use App\Models\Game; use App\Models\Medal; use Illuminate\Auth\Access\HandlesAuthorization; class MedalPolicy { use HandlesAuthorization; /** * Determine whether the user can view the phase. * * @param \App\Models\User $user ...
true
5874c4485ab638b03f35d1538d2c93ed13d1b7e2
PHP
enrico69/pcm-engine
/dbConnectors/dbConnectors_PDO_MYSQL.class.php
UTF-8
14,722
2.890625
3
[ "MIT" ]
permissive
<?php class dbConnectors_PDO_MYSQL extends engine_DbConnectors_AbstractType { /* * *********** Others methods ***************************************** */ protected function connexion($Host, $Base, $Id, $Psswd) { try { $this->theConnexion = new PDO("mysql:host=$Host;dbname=$Base", $Id,...
true
f7fb3132e3870d05d00d7164bfa5409ba132c208
PHP
PWA-GouldA/C4Prog-ICTDBS504-Portfolio
/template.php
UTF-8
2,050
2.875
3
[]
no_license
<?php /** * Template page * * This is the basic page we will insert PHP into for each * problem we solve. * * @author Adrian Gould <adrian.gould@nmtafe.wa.edu.au> * @file template.php * @version 1.0 * @created 2019-05-07 * @copyright This work is licensed under Creative Commons * ...
true
f807b271d6a517b313202ce17755e3ac6d3e7cf8
PHP
heheszky/cwierkacz
/application/models/Acc.php
UTF-8
1,351
2.53125
3
[]
no_license
<?php class Acc extends CI_Model { function add() { $data = array( "email" => $this->input->post('email'), "password" => md5($this->input->post('password')), "first_name" => $this->input->post('fname'), "last_name" => $this->input->post('lname'), "birth_date" => $this->input->post('bdate'), "c...
true
34789744e9d120cd7650a87de4434587b2fbf579
PHP
peterivan/P-Rest
/library/Prest/Router.php
UTF-8
5,303
2.765625
3
[]
no_license
<?php class Prest_Router { protected $_service = null; protected $_routes = array(); protected $_matched_route = null; public function __construct( $i_config = array() ) { if ( isset($i_config['service']) ) $this->_service = $i_config['service']; if ( isset($i_config['routes']) ) $this->_routes = $i_c...
true
d5ecec0472e4d3202d9467aca0e3b90b79371c7a
PHP
Niknolty/ology_nico_dev
/src/Ology/SocialBundle/Utility/S3Loader.php
UTF-8
1,623
2.84375
3
[]
no_license
<?php namespace Ology\SocialBundle\Utility; use \Exception; class S3Loader { protected $s3service; protected $s3bucket; function __construct($container) { $this->s3service = $container->get('aws_s3'); $this->s3bucket = $container->getParameter('s3_bucket'); } public function...
true
6a6dbcd2ff9280d8016ac54f674ae9c570506188
PHP
Nixon120/phpunit-testing
/src/Repositories/ProgramTypeRepository.php
UTF-8
2,404
2.75
3
[]
no_license
<?php namespace Repositories; use Entities\Program; use Entities\ProgramType; use Respect\Validation\Exceptions\NestedValidationException; use Respect\Validation\Validator; class ProgramTypeRepository extends BaseRepository { protected $table = 'ProgramType'; /** * @return string */ public fun...
true
08569aadaec2da1047ff6624a5e1b42d529b7a32
PHP
karna1995/core
/extension/src/Traits/OperationTrait.php
UTF-8
5,264
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Part of the Antares Project package. * * NOTICE OF LICENSE * * Licensed under the 3-clause BSD License. * * This source file is subject to the 3-clause BSD License that is * bundled with this package in the LICENSE file. * * @package Antares Core * @version 0.9.0 * @author Original Or...
true
faa0840143a46a8e4ee37b8b106478481e1ff13c
PHP
Jared02/blogyii-2.0
/common/models/Posts.php
UTF-8
1,627
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; use common\models\User; /** * This is the model class for table "posts". * * @property integer $id * @property integer $user_by * @property string $title * @property string $excerpt * @property string $body * @property integer $status * @property integer $comment_stat...
true
34fd3a40d571a3f2d8d5bb9b46570cea5048a56b
PHP
faris-isa/sipArsip_backend
/app/Http/Controllers/PurchaseLocationController.php
UTF-8
3,161
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; use App\Models\PurchaseLocation; class PurchaseLocationController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public func...
true
4c43eadbc1b6db89cec230173a807de43b710621
PHP
tevesh/post-api
/src/Controller/UserAdminController.php
UTF-8
1,731
2.546875
3
[]
no_license
<?php namespace App\Controller; use App\Entity\User; use EasyCorp\Bundle\EasyAdminBundle\Controller\EasyAdminController as BaseAdminController; use Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface; class UserAdminController extends BaseAdminController { /** ...
true
658ed156d316b383ca40cb6111477620763f2b07
PHP
TabaryM/BesogneDex
/installBDD.php
UTF-8
2,505
2.78125
3
[]
no_license
<?php //Il faut l'extension mysqli dans php.ini function query($link,$requete) { $resultat=mysqli_query($link,$requete) or die("$requete : ".mysqli_error($link)); return($resultat); } $mysqli=mysqli_connect('127.0.0.1', 'root', '') or die("Erreur de connexion"); $base="BesogneDex"; $Sql=" DROP DATABA...
true
45218d537e86a48775248125098d331900e2dc64
PHP
BerilBBJ/scraperwiki-scraper-vault
/Users/C/canworksmart/vios223wider.php
UTF-8
4,424
2.5625
3
[]
no_license
<?php require 'scraperwiki/simple_html_dom.php'; print "Hello world! Running..."; $html = scraperWiki::scrape("http://www.osha.gov/pls/imis/industry.search?p_logger=1&naics=23&State=All&officetype=All&Office=All&endmonth=01&endday=01&endyear=2002&startmonth=12&startday=31&startyear=2012"); //print $html . "\n"; $dom ...
true
38e0ed012480a89f199f2787b6d4ccbe96e941b6
PHP
pcable/iseed
/src/Orangehill/Iseed/IseedRawField.php
UTF-8
472
2.65625
3
[ "BSD-2-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: paul * Date: 02-Mar-18 * Time: 12:18 PM */ namespace Orangehill\Iseed; class IseedRawField { public $setter; public $value; public function __construct($setter, $value) { $this->setter = $setter; $this->value = $value; } public s...
true
1da0bde7eaccee111abf7006f2fdd92e0181ca78
PHP
saezluis/subete-ok
/actualizarDatosUsuario.php
UTF-8
3,467
2.640625
3
[ "Apache-2.0" ]
permissive
<?php //Aqui recibo los datos del formulario anterior //$rut = '19447431'; //RUT correspondería al número, sin puntos, comas ni comas y sin dígito verificador //genero clave hash a partir del rut entregado //$hash = md5($rut); //echo "clave hash: ".$hash; //Cargo los datos del usuario //Parte donde se...
true
626dcb094305535b027ce334c79a1120a5ad930a
PHP
rodriguezjose95/SistemaVentas
/xlsx/importClientes.php
UTF-8
871
2.59375
3
[]
no_license
<?php require '../Classes/PHPExcel.php'; require '../Classes/PHPExcel/Writer/Excel2007.php'; $objPHPExcel = new PHPExcel(); $objPHPExcel -> getProperties() -> setCreator('Tienda Ventura S.A.') -> setTitle('Clientes') -> setDescription('Reporte de Clientes') -> setKeywords('excel phpexcel php') -> se...
true
c20c3bd36e844fb7c12aa1712a63a770f0572c49
PHP
emory-libraries/templating-engine
/src/engine/__environment__/php/helpers/CustomHelpers/FeedHelpers.php
UTF-8
4,391
3.09375
3
[]
no_license
<?php namespace CustomHelpers; trait FeedHelpers { // Fetch and parse a feed from a given URL. public static function fetchFeed( string $url ) { // Get the feed. $feed = new Feed($url); // Get the feed data. $data = $feed->data; // Verify that the feed was valid and some data was fetched. ...
true
54d80864bbc0483c63cdd079d2b13cf49ffb121d
PHP
yangcancai/Crypt
/includes/CryptHelper.php
UTF-8
5,568
2.53125
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: master * Date: 6/18/16 * Time: 4:39 PM * To change this template use File | Settings | File Templates. */ namespace YsTransferEncrypt; require_once("RSAHelper.php"); require_once("AESHelper.php"); assert_options(ASSERT_ACTIVE, 1); assert_options(ASSERT_WARNING, 1); as...
true
af988a06617a242029d0de7f2b251171ff126e10
PHP
edgarlpassos/feup-ltw
/actions/upload_photo.php
UTF-8
1,346
2.578125
3
[]
no_license
<?php session_start(['cookie_httponly' => true]); include_once('../utils/utils.php'); include_once('../database/users.php'); include_once('../database/users.php'); // If the user didn't come from a valid page. if ($_SESSION['token'] !== $_POST['token']) { header('HTTP/1.0 403 Forbidden'); header('Location: .....
true
78d6796a71c316507acf6a87d4d555c20c2d20b9
PHP
MichaelJes/VEF2A3U_PHP
/Tets/index.php
UTF-8
2,214
3.015625
3
[]
no_license
<?php $errors = []; $missing = []; // check if the form has been submitted if (isset($_POST['send'])) { /* to prevent an attacker from injecting other variables in the $_POST array in an attempt to overwrite your default values. By processing only those variables that you expect, your form is much more s...
true
b600e2de76b4cb04d58f9d7ab8c8291ace54af0a
PHP
heysaturday/ecw
/includes/classes/HtmlHelper.php
UTF-8
10,276
2.921875
3
[]
no_license
<?php class HtmlHelper { // ------------------------------------------------------------------------ public static function alert($title, $message=FALSE, $type=FALSE, $close=FALSE) { $output = '<div class="alert'; if (!empty($type)) { $output .= ' alert-' . $type; } $output .= '">'; // TO-DO:...
true
28690a0d6b86527ff4f87e8fa26d3e0e901652ed
PHP
tankist/Granat
/library/Skaya/Filter/Array/Map.php
UTF-8
2,121
2.71875
3
[]
no_license
<?php class Skaya_Filter_Array_Map implements Zend_Filter_Interface { protected $_callback; protected $_keyKey; protected $_isDeleteKeyFromResult = true; protected $_valueKey; public function __construct($valueKey, $keyKey = null, $isDeleteKeyFromResult = true) { $this->setIsDeleteKeyFromResult($isDeleteKey...
true
53acef185c39bb2100460c9de138c87748dbb83f
PHP
HasnaBA/books
/controllers/books.php
UTF-8
633
2.8125
3
[]
no_license
<?php require('models/books.php'); function listBooks($active_page) //page active { global $limit; $total_books = countBooks(); $total_pages = ceil($total_books / $limit); //fonction ceil qui arrondi au nombre superieur le nombre de livre/par le nombre limite if ($active_page > $total_pages){ //b...
true
29538fc4c005cb21c8ab6cec98043ee388b4828f
PHP
dnsl48/gauger
/src/Debuggy/Gauger/Filter/OrFilters.php
UTF-8
743
2.90625
3
[ "MIT", "Apache-2.0" ]
permissive
<?php namespace Debuggy\Gauger\Filter; use Debuggy\Gauger\Filter; use Debuggy\Gauger\Stamp; /** * Checks by the list of filters. If any filter returns true, the result will be true */ class OrFilters extends Filter { /** * Initializes the object by the the list of filters * * @param Filter[] $filters Li...
true
2c0d6d783d5af3d0aeac53490d3ab5bdc31a91c9
PHP
erratbi/misterdevis
/application/modules/auth/forms/Terrassement.php
UTF-8
1,517
2.640625
3
[]
no_license
<?php /** * Class Auth_Form_Terrassement * * @author Aziz Idmansour <aziz.idmansour@gmail.com> * @date 25/01/2018 */ class Auth_Form_Terrassement extends Auth_Form_Base { /** * @throws \Zend_Form_Exception */ private $_permis_construire = [ '' => 'Veuillez préciser', 'Oui, je l\'ai obt...
true
ddeb48e08e3e4c737a95844b4fc97cad903d5081
PHP
AliAkbari2/GroceryStore-Database
/API+Web Front End/SuperStore/API/Employee/Add_Inventory.php
UTF-8
805
2.625
3
[]
no_license
<?php header('Access-Control-Allow-Origin: *'); header('Content-Type: application/json'); include_once '../../config/Database.php'; include_once '../../models/Employee.php'; $database = new Database(); $db = $database->connect(); $employee = new Employee($db); $employ...
true
a1a28ddf22c902799f37a54b9809abc986bd64a8
PHP
ishunko/hubzero-cms
/core/migrations/Migration20140822203559ComPoll.php
UTF-8
1,163
2.5625
3
[ "MIT" ]
permissive
<?php /** * @package hubzero-cms * @copyright Copyright 2005-2019 HUBzero Foundation, LLC. * @license http://opensource.org/licenses/MIT MIT */ use Hubzero\Content\Migration\Base; // No direct access defined('_HZEXEC_') or die(); /** * Migration script for adding potentially missing alias field on polls ...
true
ebb8e0b266fc9c41a53807d67c82c0ea2374015c
PHP
youppers/Portal
/youppers/src/Youppers/CompanyBundle/Component/UomChoiceList.php
UTF-8
1,155
2.609375
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace Youppers\CompanyBundle\Component; use Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceList; class UomChoiceList extends ChoiceList { static function create() { // MQ, PZ, ML, KG, CP, LT return new UomChoiceList( array('','PZ','MQ','ML','KG','CP','LT','SET'), array('---','Pezzi','M...
true
a1c8ed07b9fbcc9e6f1e197c6c962e34d52e1b87
PHP
marceloleob/shekinah
/app/Models/ModelBase.php
UTF-8
842
2.90625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Exception; class ModelBase extends Model { /** * Salva ou atualiza um modelo * * @param array $data * @return $this */ public static function store($data = []) { try { // verifica qual acao if...
true
964ad097187022a40c447750ff086657ace2c7fc
PHP
Drumsid/hexlet-trials
/oop_design/Carbon/index.php
UTF-8
1,688
3.140625
3
[]
no_license
<?php require_once 'Booking.php'; use Carbon\Carbon; $book = new Booking(); $book->resetDate(); $firstTrip = $book->book('10-11-2008', '05-11-2008'); $secondTrip = $book->book('11-11-2008', '13-11-2008'); $therdTrip = $book->book('12-11-2008', '12-11-2008'); $forTrip = $book->book('10-11-2008', '12-11-2008'); $fit...
true
c721fb6ab59c60da725affda0a0d0e8fcf2f4f04
PHP
emmanuelpo/projet-4-openclassroom
/controller/Chapter_frontend.php
UTF-8
2,739
2.78125
3
[]
no_license
<?php namespace OpenClassrooms\projetopenclassroom\controller; require_once('model/ChapterConnexion.php'); class ChapterController { public function main(){ $postManager = new \OpenClassrooms\projetopenclassroom\model\ChapterConnexion(); $posts = $postManager->lastPost(); require('view/main.php'); } pu...
true
d16500b3dea748d5d97e7b39eef0a3b23f9df367
PHP
probius2017/probius
/database/seeds/LocauxTableSeeder.php
UTF-8
4,871
2.515625
3
[ "MIT" ]
permissive
<?php use App\Models\Contrat; use Illuminate\Database\Seeder; class LocauxTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { factory(App\Models\Local::class, 20)->create()->each(function ($local){ $s...
true
4bcbc858ad560c95f6c7372300d9699016880d03
PHP
Dzuming/gallery
/views/container/index.php
UTF-8
675
2.578125
3
[]
no_license
<?php if (isset($_POST['path'])) { $path = $_POST['path']; $_SESSION['path'] = $path; } $p= $_SESSION['path']; if (isset($_POST['description'])) { $description = $_POST['description']; $_SESSION['description'] = $description; } $d= $_SESSION['description']; ?> ...
true
5b48fada8f1ab43a346c55230786eba5563f0ddd
PHP
flanger001/gists
/php/suggestion_box/functions.php
UTF-8
1,891
2.59375
3
[]
no_license
<?php /* Suggestion box functions */ $id = $_POST["id"]; $admin_response = !empty($_POST["admin_response"]) ? $_POST["admin_response"] : ""; $status = !empty($_POST["status"]) ? $_POST["status"] : ""; $type = $_POST["type"]; /* Connect and check the connection */ $mysqli = new mysqli("host6.camerondunlap.com", "came...
true
4e3816e1e83bfd118bc86ac49b6701adc884ce48
PHP
ghunti/laravel-base
/src/Routing/Redirector.php
UTF-8
728
2.5625
3
[ "MIT" ]
permissive
<?php namespace Ghunti\LaravelBase\Routing; use Illuminate\Routing\Redirector as BaseRedirector; use Ghunti\LaravelBase\Http\RedirectResponse; class Redirector extends BaseRedirector { /** * Create a new redirect response. * * @param string $path * @param int $status * @param ar...
true
a1acf46e7b4330c3214359bb75052114ccddd05d
PHP
duanjin123/aliyun_oss
/src/Client.php
UTF-8
1,793
2.890625
3
[]
no_license
<?php /** * Created by Lincoo. * DateTime: 2018/7/3 下午8:18 * Email: duan.jin@mydreamplus.com */ namespace Lincoo\AliyunOSS; class Client { /** * @var \Illuminate\Foundation\Application|mixed */ protected $app; /** * Client constructor. */ public function __construct() { ...
true
e65ae75ccb873db728b731d38cc9943dc7f6c37f
PHP
bohanapp/WeChatAuthDemo
/php/sdk/interface.wx_database.php
UTF-8
2,073
2.6875
3
[ "MIT" ]
permissive
<?php /** * 存储接口 * 微信授权登录过程中,需要在服务器端存储一些数据, * 第三方开发者需实现此接口内的方法 * * @author Weixin * @version 2015-11-01 */ interface WXDatabase { /** * 判断uin是否存在 * @param int $uin 十位整数 * @return boolean */ public function uin_exists($uin); /** * 根据uin处理psk(pre session key) * @param string $psk * @param int $ui...
true
89462b9f6cd30572e28dc78b399f00884d0d251c
PHP
lsretailomni/lsmag-two
/src/Replication/Service/ImportImageService.php
UTF-8
4,069
2.5625
3
[]
no_license
<?php namespace Ls\Replication\Service; use Exception; use \Ls\Replication\Api\ReplImageLinkRepositoryInterface; use \Ls\Replication\Logger\Logger; use Magento\Framework\App\Filesystem\DirectoryList; use Magento\Framework\Exception\FileSystemException; use Magento\Framework\Exception\LocalizedException; use Magento\F...
true
f223ccfbc7b341d0971f17d2d8a2d54e113dc6bb
PHP
luffy1140/COGIP-app
/connexion_soc.php
UTF-8
556
2.515625
3
[]
no_license
<?php require('connect.php'); if (isset($_POST['login']) and isset($_POST['password'])){ $username = $_POST['login']; $password = $_POST['password']; $query = "SELECT * FROM `login` WHERE login='$username' and password='$password'"; $result = mysqli_query($connection, $query) or die(mysqli_error($connection...
true
d58cbfa67838ab08276c26ebf07cf05ef573a3c5
PHP
agentmedia/phine-framework
/src/Rss20/Hour.php
UTF-8
393
2.6875
3
[ "Apache-2.0" ]
permissive
<?php namespace Phine\Framework\Rss20; /** * * Represents an rss 2.0 hour as needed by SkipHours element */ class Hour { /** * The hour as integer between 0 and 23 */ public $Hour; /** * Creates a new hour element * @param int $hour The hour as integer between 0 and 23 */ ...
true
b4132572762b47962012f31a6b5d39d4e7e56d3a
PHP
bilaleren/broadage-api-php
/src/Sport/Football/Match.php
UTF-8
2,085
2.65625
3
[ "MIT" ]
permissive
<?php namespace BroadAgeApi\Sport\Football; use BroadAgeApi\Util\Response; use BroadAgeApi\BroadAgeApiClient; use BroadAgeApi\Exception\RequestException; final class Match extends BroadAgeApiClient { protected $baseURL = '/football/match/'; public function __construct(int $matchId) { parent::__...
true
5c40eef6567bd1a828f5e6b21b7d32752e7ba5f6
PHP
jakubkulhan/chrome-devtools-protocol
/gen-src/ChromeDevtoolsProtocol/Model/Debugger/SearchMatch.php
UTF-8
1,000
2.703125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace ChromeDevtoolsProtocol\Model\Debugger; /** * Search match for resource. * * @generated This file has been auto-generated, do not edit. * * @author Jakub Kulhan <jakub.kulhan@gmail.com> */ final class SearchMatch implements \JsonSerializable { /** * Line number in resource content. * * @va...
true
b565cd6d37868900c3519959624ae318e7ec3a3c
PHP
bengqeng/siatk
/application/hooks/Initdb.php
UTF-8
1,667
2.65625
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Initdb { public function test_db() { if (!file_exists(APPPATH.'config/'.ENVIRONMENT.'/database.php')) { include_once (APPPATH.'views/errors/setup/copy_database.php'); exit; } include_once APPPATH.'config/'.ENVIRONMENT...
true
9f67e7d0b1a9f04c5ea6ba9075c52f3bd9735794
PHP
guonan627/swimschool
/api/db.php
UTF-8
17,599
3.21875
3
[]
no_license
<?php class DB { private $host = 'localhost:8889'; private $db_name = 'swimschool'; private $username = 'root'; private $password = 'root'; private $conn; public function __construct() { try { $this->conn = new PDO('mysql:host=' . $this->host . ';dbname=' . $th...
true
ed2c5702549a2f5ef7e61745bc41e8a68204681b
PHP
annihilatorrrr/TelegramEchoBot
/execute.php
UTF-8
1,264
2.5625
3
[]
no_license
<?php header('Content-type: text/html;charset=utf-8'); $content = file_get_contents("php://input"); $update = json_decode($content, true); if(!$update) { exit; } $message = isset($update['message']) ? $update['message'] : ""; $messageId = isset($message['message_id']) ? $message['message_id'] : ""; $chatId = isset(...
true
8aabf5028502f1262667976734929256cbe9b230
PHP
SumaiyaRafia/WT-RESTAURANT-MANAGEMENT-SYSTEM
/RESTAURANT-MANAGEMENT-SYSTEM/M3/changepassword.php
UTF-8
2,646
3.03125
3
[]
no_license
<?php include "config.php"; session_start(); $userid = isset($_SESSION['uid']) ? $_SESSION['uid'] : ""; ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <?php include 'title.php'; ?> </head> <body> <h1><?php include 'header.php'; ?></h1> <?php require 'db-update.php'; $username = $...
true
245028d0c3f6babeb3ca5dacca6d5ea5bbb387bb
PHP
fajarnugrohoid/backup_data_office_ppdb
/thread/pthreads/tests/anon-bound-inherited.phpt
UTF-8
387
2.703125
3
[]
no_license
--TEST-- Test anonymous classes (bound inherited class) --DESCRIPTION-- This test verifies that anonymous Threaded objects work as expected --FILE-- <?php $worker = new Worker(); $collectable = new class extends Threaded { public function run() { var_dump($this instanceof Threaded); } }; $worker->start(); $worke...
true
9cca5d44602d2ac2057d7ebaa6f629f3fde73818
PHP
noobz-dev/module2-3865
/index.php
UTF-8
2,314
2.984375
3
[]
no_license
<?php $arr = []; for ($i = 0 ;$i < 10;$i++){ $number = rand(0,99); array_push($arr,$number); } if ($_SERVER['REQUEST_METHOD'] == "POST"){ $num = $_POST['num']; $_index = findMin($arr,$num); } function findMin($arr,$num){ $index = NULL; $min = $arr[0]; for ($j = 1 ; $j < count($arr);$j+...
true
c63442cc5bf046740ce12c0041af99395c26f2a4
PHP
incizon/HicreteWebApp
/Hicrete_WebApp/Applicator/php/PackageClassLib.php
UTF-8
3,729
2.9375
3
[]
no_license
<?php include("database_connection.php"); class Package { var $lastPackageId; function __construct() { } public function createPackage($packageDetails){ global $connect; $packageName=$packageDetails->packagename; $packageDescription=$packageDetails->packagedescription; $stm...
true
719c5dbac90b715ba03d518b18889f522bb3fa1a
PHP
keeprich/studentCrudAdminPhp
/codeLogic.php
UTF-8
2,046
2.765625
3
[]
no_license
<?php include_once'dbConnection.php'; if(isset($_POST['submit'])) { $question = $_POST['questions']; $option1 = $_POST['option1']; $option2 = $_POST['option2']; $option3 = $_POST['option3']; $option4 = $_POST['option4']; $correct_answer = $_POST['correct_answer']; $query = "INSERT into student_table_exams(question...
true
62396327d4af5c2dc1d7f3baa145187c09e52722
PHP
Buliwyfa/humhub-modules-announcements
/controllers/AnnouncementController.php
UTF-8
11,243
2.515625
3
[]
no_license
<?php class AnnouncementController extends Controller { public $subLayout = "/_layout"; /** * * @return array action filters */ public function filters() { return array( 'accessControl' ) // perform access control for CRUD operations ; } ...
true
e77fcf000bc03875e011591deceb3279332393a2
PHP
EricHogue/Practice
/20110826-BloomFilter/Tests/HashCreatorTest.php
UTF-8
2,455
3.15625
3
[]
no_license
<?php class HashCreatorTest extends PHPUnit_Framework_TestCase { /** * @var HashCreator */ private $creator; public function setup() { $this->creator = new HashCreator(); } public function testCreate() { $this->assertNotNull(new HashCreator()); } public function testGetHashFunctionsReturnArrayWithX...
true
0dd3bda2ca787af217c3489f24b76d1a6a62bdc3
PHP
paulpiotr/tmsneek
/src/Command/InstallCommand.php
UTF-8
2,728
2.578125
3
[]
no_license
<?php namespace App\Command; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Process\Exception\ProcessFailedException; use Symfony\Component\P...
true
1909485d9368ecc7c33d0f7dc1e9a45c98e16c97
PHP
AngryChimps/ac2
/src/AngryChimps/NormBundle/realms/Norm/riak/base/CommentBase.php
UTF-8
2,910
2.53125
3
[ "MIT" ]
permissive
<?php namespace Norm\riak\base; use AC\NormBundle\core\NormBaseObject; class CommentBase extends NormBaseObject { /** @var string */ protected static $primaryDatastoreName = ''; /** @var string */ protected static $cacheDatastoreName = ''; /** @var string */ protected static $realm = 'ri...
true
c090b54defab47e521b8d5e46a1acb5c407c1d7a
PHP
fromero2/Assignment07
/contacts-list.php
UTF-8
1,201
2.984375
3
[]
no_license
<?php // 1. Create a database connection $dbhost = "localhost"; $dbuser = "widget_corp"; $dbpass = "coffee"; $dbname = "widget_corp"; $connection = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname); // 2. Perform database query $query = "SELECT * "; $query .= "FROM contacts "; // $query .= "WHE...
true
212ede790ea7402529e3a8efd202687492519419
PHP
wuzhicms/wuzhicms
/coreframe/app/core/libs/function/sql.func.php
UTF-8
1,348
2.515625
3
[]
no_license
<?php // +---------------------------------------------------------------------- // | wuzhicms [ 五指互联网站内容管理系统 ] // | Copyright (c) 2014-2015 http://www.wuzhicms.com All rights reserved. // | Licensed ( http://www.wuzhicms.com/licenses/ ) // | Author: wangcanjia <phpip@qq.com> // +---------------------------------------...
true
d0161118ae7a9c9067af12a0ade727b1021e6e4f
PHP
JShengLong/wwwshijie
/application/mini/controller/Jpush.php
UTF-8
3,269
2.578125
3
[ "Apache-2.0" ]
permissive
<?php namespace app\mini\controller; /** * Created by PhpStorm. * User: Administrator * Date: 2019/10/23 * Time: 9:56 */ use JPush\Client; class Jpush extends Base { protected $app_key = '';//极光推送app_key protected $master_secret = ' ';//极光推送master_secret public function __construct() { ...
true
379f95c8281fc4933aa0fbe7b6558ac03485a4a1
PHP
akshaysmohite/jardiance
/includes/classtask.php
UTF-8
655
2.5625
3
[]
no_license
<?php class task extends Table { protected $tablename = "takforce"; public static function auth($id = '', $password = '') { global $database; $id = $database->escape_value($id); $password = $database->escape_value($password); if ($id != '' && $password != '') { $sq...
true
a2fe66489a002b611df57cd7a330dea5f470eaf2
PHP
ysig/umbrellapp
/umbrellapp/database/seeds/ForecastTableSeeder.php
UTF-8
1,345
2.734375
3
[]
no_license
<?php use Illuminate\Database\Seeder; class ForecastTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { App\Forecast::truncate(); $faker = \Faker\Factory::create(); // $json = File::get("database/seeds/hourly_14.json"...
true
0f34d9b608c0bc6217edcccdd63a8780b15c60a6
PHP
DeRidStijn/symfony3-training
/project/src/AppBundle/Service/BlogpostService.php
UTF-8
722
2.53125
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace AppBundle\Service; use Doctrine\ORM\EntityManagerInterface; use AppBundle\Entity\Blogpost; class BlogpostService { protected $repository; protected $entityManager; public function __construct(EntityManagerInterface $entityManager) { $this->repository = $entityManager->getReposit...
true
0d91216ea2997f1de3e870b99061b4637b7b9c85
PHP
kxg2020/shop
/Application/Home/Model/UserModel.class.php
UTF-8
6,209
2.671875
3
[]
no_license
<?php namespace Home\Model; use Think\Model; use Think\Verify; class UserModel extends Model { protected $_validate = [ // 验证用户是否勾选《协议》 判断值是否为1 ['xieyi', '1', '请先阅读并同意《用户注册协议》', 1, 'equal', 1], // 验证用户名的长度是否在 3-20 位之间 ['username', '3,20', '用户名必须是3-20位', 1, 'length'], // 使用...
true
5ad222790599d8ed3fbb81a2adeca513a46804a5
PHP
laravel/vapor-cli
/src/Commands/CommandAgainCommand.php
UTF-8
1,582
2.546875
3
[ "MIT" ]
permissive
<?php namespace Laravel\VaporCli\Commands; use Laravel\VaporCli\Commands\Output\CommandResult; use Laravel\VaporCli\Helpers; use Symfony\Component\Console\Input\InputArgument; class CommandAgainCommand extends Command { /** * Configure the command options. * * @return void */ protected fu...
true
d7ec73df535ef69dd3522334269593bd8af2fe75
PHP
mogambo100/SaasLabs
/action.php
UTF-8
4,539
2.546875
3
[]
no_license
<?php // var_dump($_REQUEST['q']); // var_dump($_POST); $toSend="piyush.bansal8158625@gmail.com"; $fromMob="";$toMob="";$email="";$date="";$duration=""; if(isset($_POST['from']))$fromMob=$_POST['from']; if(isset($_POST['to']))$toMob=$_POST['to']; if(isset($_POST['email']))$email=$_POST['email']; if(isset($_PO...
true
5588e140c61ff9228aa318879ff2788e40f76fc2
PHP
MutamizTeam/php-installation-wizard
/sql.php
UTF-8
561
2.625
3
[]
no_license
<?php /** * this file to write database (sql statements). * * variable to tables structure and another variable to insert or other transaction */ $sql = <<<SQL CREATE TABLE {$db->getPrefix()}persons ( PersonID int, LastName varchar(255), FirstName varchar(255), Address varchar(255), City varchar(255) ); SQL; $ins...
true
34ab772cbd1d4ada9e2a7649b666a1a492e8c513
PHP
camcimurat/muhafiz
/src/Vcs/VcsAbstract.php
UTF-8
2,337
2.890625
3
[]
no_license
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
true
3b2398ccb70ea199dffca527714366f89410396f
PHP
mumingv/php
/books/php_qa/chapter_06/examples/fileFunc.php
UTF-8
719
3.140625
3
[]
no_license
<html> <head> <title>file Fucntion</title> <style type="text/css"> .even { background-color:#F5F6F6; } .odd { background-color:#FFF; } </style> </head> <body> <?php // Read file into an array $file = file('writeSecureScripts.html'); // Count the number of lines $lines = count($file); // Initiali...
true
89ce8b1b8de7bfd87a44d60b7026c8d3bc0b4e47
PHP
chiuthuy/appnhac
/api/seachbaihat.php
UTF-8
813
2.640625
3
[]
no_license
<?php require "connect.php"; class Baihat{ function Baihat($idbaihat,$tenbaihat,$hinhbaihat,$casi,$linkbaihat,$luotthich){ $this->Idbaihat=$idbaihat; $this->Tenbaihat=$tenbaihat; $this->Hinhbaihat=$hinhbaihat; $this->Casi=$casi; $this->Linkbaihat=$linkbaihat; $this->Luotthich=$luotthich; } } ...
true
d5d1f0f0c3be687f2d8e2baf890ad33c412eaf23
PHP
boxspaced/cms-helpdesk-module
/src/Model/HelpdeskTicketComment.php
UTF-8
1,802
2.546875
3
[]
no_license
<?php namespace Boxspaced\CmsHelpdeskModule\Model; use DateTime; use Boxspaced\EntityManager\Entity\AbstractEntity; use Boxspaced\CmsAccountModule\Model\User; class HelpdeskTicketComment extends AbstractEntity { /** * @return int */ public function getId() { return $this->get('id'); ...
true
d68e89e78518038f2185822b861a9745cc4658b3
PHP
Juuuupiter/php-learning
/test/application/models/user_model.php
UTF-8
908
2.625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: 李木子 * Date: 2018/1/11 * Time: 上午 11:21 */ class user_model extends CI_Model { public function add($name){ return $this -> db -> insert("name", array( 'name'=>$name )); return $this -> db->affected_rows(); } public function us...
true
536694b9164367625764df1913cd73ce90e0f9dd
PHP
EQBids/web
/app/Repositories/Interfaces/geocodingRepositoryInterface.php
UTF-8
816
2.859375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: smith * Date: 3/14/18 * Time: 6:26 PM */ namespace App\Repositories\Interfaces; use App\Models\Geo\City; interface geocodingRepositoryInterface { /** * geocodes the provided address and return it's coordinates. null if that's not posible. * coordinate's precision...
true
2cc99f89d2e5a5a24444357cf0ba94009bd6ea18
PHP
chasewoodford/garyames.net
/wp-content/plugins/just-custom-fields/inc/class.field.php
UTF-8
10,595
3.046875
3
[]
no_license
<?php class Just_Field{ var $id_base; // Root id for all fields of this type. var $title; // Name for this field type. var $slug = null; var $field_options = array( 'classname' => 'jcf_custom_field', 'before_widget' => '<div class="form-field">', 'after_widget' => '</div>', 'before_title' => '<label...
true
efc164cbb4e9cc646497c03cd1676325405a2c92
PHP
MiJunior/Case3
/net/handler.php
UTF-8
307
2.75
3
[]
no_license
<?php /** * Created by PhpStorm. * User: drser * Date: 05.08.2018 * Time: 17:34 */ $Name = []; if(isset($_REQUEST['name'])) $Name[]=trim($_REQUEST['name']); if(isset($_REQUEST['surname'])) $Name[]=trim($_REQUEST['surname']); if(count($Name)>0) echo "Здравствуйте, ".implode(" ", $Name)."!";
true
8a38ce1b5b7de12f873b6e7a4a384c9e76e82d3e
PHP
Lyncros/ok_legacy
/test/clases/class.datospropBSN.php
UTF-8
8,931
2.765625
3
[]
no_license
<?php /** * Clase Propia para la definicion de la logica de negocios. * Utiliza dos variables propias de la clase que las hereda llamadas * "clase" que define la base del nombre, debe tener la Primer letra en Mayuscula y responder a la base de los nombres * de los metodos propios. * "objeto" que define e...
true
7e4103bd67256f65cc7b22a8e92d5ae464c38e15
PHP
mkadin/favs
/app/FavModel.php
UTF-8
4,043
3.515625
4
[]
no_license
<?php /** * @file FavModel Class. Represents a favorite and handles CRUD operations. */ class FavModel { /** * Lat */ var $lat = NULL; /** * Lon */ var $lon = NULL; /** * Address */ var $address = NULL; /** * Name */ var $name = NULL; /** * Id */ var $id = NULL...
true
af9785c8efeacea8648fe07c0dbc218b095cebaa
PHP
empo-foro/back-end
/EstructuraPHP/Tabla.php
UTF-8
6,783
3.328125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: daw * Date: 28/11/18 * Time: 12:54 */ abstract class Tabla { static $server = "mysql-empo.alwaysdata.net"; static $user = "empo"; static $passwd = "da39a3ee5e6b4b0d3255bfef95601890afd80709"; static $database = "empo_empo"; protected $table; //Nombre d...
true
9d798d472112e8e70ca522e7c61edfd90c80206a
PHP
BrunoPho/Agenda
/controlador_agenda.php
UTF-8
2,914
3.140625
3
[]
no_license
<?php function pegarContatos($busca = null){ $contatosAuxiliar = file_get_contents('contatos.json');//pegando dados do arquivo json $dadosConvertidos = json_decode($contatosAuxiliar, true);//convertendo para um array $contatosEncontrados = array(); if ($busca == null){ return $dadosConvertid...
true
a9d2a73f0b40cef3ee3bebf9f8e33e61f4a7047c
PHP
elisavetTriant/Geology-Museum-Custom-CMS
/geo/app/models/crystal_system.php
UTF-8
2,616
2.671875
3
[]
no_license
<?php class CrystalSystem extends AppModel { var $name = 'CrystalSystem'; var $hasMany = array( 'Mineral' => array( 'className' => 'Mineral', 'foreignKey' => 'crystal_system_id', 'dependent'=> false) ); var $validate = array( 'name_eng' => array('rule' => array('minLength', 1) ), ...
true
db3b993de1e295dcc1fdf9471cf2065f3a026c31
PHP
ivannofick/laravelminifyobfuscate
/src/Helpers/HelpersJavascript.php
UTF-8
6,965
3.078125
3
[ "MIT" ]
permissive
<?php namespace Ivannofick\Laravelminifyobfuscate\Helpers; /* * This file is Helpers Obfuscate Javascript * * (c) ivannofick <ivannofick@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ class HelpersJavascript { /* ...
true
624c98b54d901a1080226b0d93dcdcd40cc398a4
PHP
roadiz/documents
/src/AverageColorResolver.php
UTF-8
680
2.875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace RZ\Roadiz\Documents; use Intervention\Image\Image; class AverageColorResolver { public function getAverageColor(Image $image): string { $colorArray = $this->getAverageColorAsArray($image); return sprintf( '#%02x%02x%02x', $colo...
true
4538e0dda6ac3dac638396798f733d4a5a9fbae1
PHP
CarlosJPortillo/Geo-Cache-App
/search.php
UTF-8
1,172
2.65625
3
[]
no_license
<?php error_reporting(E_ALL); ini_set('display_errors',1); DEFINE ('DB_HOST', 'localhost'); DEFINE ('DB_USER', 'root'); DEFINE ('DB_PSWD', ''); DEFINE ('DB_DATABASE', 'a_database'); if(isset($_GET['south'])) { //connect to database,in this case its localhost $conn = mysqli_connect(DB_HOST, DB_USER, DB_PSWD, DB_...
true
2c528b2393d349cb7fd054487fb4fe705b4a7594
PHP
sopheakpsp/backend
/kfa/property_content_property.php
UTF-8
3,079
2.59375
3
[]
no_license
<?php require_once 'admin2/include/init_client.php';?> <div class="property-container" border="1"> <?php $page = !empty($_GET['page'])? (int)$_GET['page'] : 1; $item_per_page = 9; $item_total = Property::count_all_active(); $paginate = new Paginate($page, $item_per_page, $item_total); $sql = "SELECT * FROM propert...
true
2231579e47a5e8212acddc09786d898339f7aafe
PHP
lukeinator42/cpsc3660
/templates/edit_customer.php
UTF-8
3,423
2.671875
3
[]
no_license
<?php //connect script require_once(ROOT.'/db/connect.php'); //query to populate form for editing $name = $_GET[customer_name]; $sql_query = "SELECT Pname,streetAddress, billingAddress, DOB, phone, email, password, creditLimit from PEOPLE p, CUSTOMER c where p.Pname = '$name'"; $result = mysql_query($sql_query)...
true
0a14aafb15f0e80fff86fda72cf5965f88e2f136
PHP
neilchennan/advanced
/common/helpers/StringUtil.php
UTF-8
5,292
3.578125
4
[ "BSD-3-Clause" ]
permissive
<?php namespace common\helpers; /** * 字符串工具类 * * @author nanchen * */ class StringUtil { /** * 空字符串 * * @var string */ public static $emptyString = ""; /** * 判断字符串是否为空 * * @param string $str * @return boolean */ public static function isNullOrWhiteSp...
true
984da18b18a32032bb5993a2de5da058c57212c2
PHP
RomanBil/ExamPHP
/backend/controllers/UserController.php
UTF-8
1,523
2.546875
3
[]
permissive
<?php namespace backend\controllers; use Yii; use yii\web\Controller; use backend\models\User; use backend\models\User3; /** * Category controller */ class UserController extends Controller { /** * Displays homepage. * * @return string */ public function actionIndex() { $mode...
true
e25a36eba75db01151398c0169699d60fd7b7736
PHP
stianinstebo/Facebook-API-Center
/frontend/accounts.php
UTF-8
2,612
2.5625
3
[]
no_license
<?php include '../backend/php/includes/db_conf.php'; $sql = "SELECT * FROM accounts"; $result = $conn->query($sql); // date_default_timezone_set("Europe/Oslo"); if ($result->num_rows > 0) { // output data of each row $campaign_name = ""; while($row = $result->fetch_assoc()) { //$newDate = date("d-...
true
9122841375be79a52b2fd160ae27967facf4e61c
PHP
Zainab3li/Robotic-Arm2
/Control2.php
UTF-8
1,062
2.578125
3
[]
no_license
<?php DEFINE ('DB_USER', 'root'); DEFINE ('DB_PASSWORD', ''); DEFINE ('DB_HOST', 'localhost'); DEFINE ('DB_NAME', 'control'); // Make the connection: $dbc = @mysqli_connect (DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) OR die ('Could not connect to MySQL: ' . mysqli_connect_error() ); $sql2="SELECT * FROM Contro...
true
c623656455058db414ae8965181c3ab0ca0a0d49
PHP
ddeboer/guzzle-aws
/Mws/Command/GetOrder.php
UTF-8
865
2.578125
3
[ "MIT" ]
permissive
<?php /** * @package Guzzle PHP <http://www.guzzlephp.org> * @license See the LICENSE file that was distributed with this source code. */ namespace Guzzle\Aws\Mws\Command; /** * Returns orders based on the AmazonOrderIds that you specify. * * @author Harold Asbridge <harold@shoebacca.com> * * @guzzle amazon_o...
true
d7ca90c82944491b167af9631446dcce0b50ce0d
PHP
bmatican/geekrpg
/library/core/views/view.form.php
UTF-8
7,307
2.890625
3
[]
no_license
<?php class Form extends GeekView{ private $name; private $action; private $inputs = array(); private $values = array(); public $data = array(); protected $errors = array(); private $argsOrder; public $attributes; public function __construct( $name, $action, $argsOrder, array $attribut...
true
14374b87b647f0cf843b279c231af9aa13fc4965
PHP
ctec-127/lab-no-6-amyjewelsparkles
/lab6.php
UTF-8
3,954
3.296875
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"> <link rel="stylesheet" href="css/style.css"> <title>Lab No. 6 - Temp. Converter</title> </head> <body> <?php $o...
true
f8b6a5123c88a7775e8b7ecf398103b7e56d23cc
PHP
antonio30111988/ShoppingCartCLIAppLaravelOOP
/app/Console/Inventory/EndCommand.php
UTF-8
767
2.84375
3
[]
no_license
<?php namespace App\Console\Inventory; use App\Console\Commands\InventoryCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class EndCommand extends InventoryCommand { /** * Configure the command. */ public function configure() {...
true
992803692586e639d5f7f932fe237709b69d12bc
PHP
Xarboule/rubus
/server/webpage/index.php
UTF-8
471
2.6875
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>IIUN RaspberryPi cluster</title> </head> <body> <h1>IIUN Raspberry Pi Cluster</h1> <?php // Update the state `/home/iiun/list-pi.sh > /var/www/html/pi-controller/cluster-state.txt`; // Print the state line by line $lin...
true
8892ecf8fc9b8288302cad7f6f3f5ad7c5c7b345
PHP
zefilipe/my_classes
/com_algpdf/lib/html_algpdf_conf.inc
MacCentralEurope
2,533
2.921875
3
[]
no_license
<?php /** * Html for configuration interface. * * This script, contains a class with methods to output html of the configuration interface. * * @author Jos Filipe Lopes Santos <jfilipe@med.up.pt> * @version 1.0 - Date last modified: 14-03-2008 * @package algpdf * @subpackage libraries */ // ensure this fil...
true
0034b747693ddbfaffdb93d3b9c0b53865c909e4
PHP
nemesek/SchoolCode
/CS475/Question.php
UTF-8
818
3.203125
3
[]
no_license
<?php if(isset($_POST['BtnSubmit'])) { echo "<h3>Your form data as bellow</h3>"; echo "</br>Your Name :{$_POST['FullName']}"; echo "</br>You are :{$_POST['YourGender']}"; echo "<hr>"; } ?> <h3>PHP HTML Form radio button Example</h3> <form name="UserInformationForm" method="POST" act...
true
e62de57a7896ee6bb7ef8b84d3b23c3db83b31b3
PHP
artemkuchma/nads_site
/Library/Session.php
UTF-8
1,138
2.953125
3
[]
no_license
<?php class Session { public static function has($key) { return isset($_SESSION[$key]); } public static function set($key, $val) { if ($key !== 'flash') { return $_SESSION[$key] = $val; } return null; } public static function hasUser($user_name...
true
41b34dc780db5417b601838dd4e74be560eb8be5
PHP
botnyx/sfe-backend-core
/src/Core/Frontend/Acl/Resources.php
UTF-8
845
2.640625
3
[]
no_license
<?php namespace Botnyx\Sfe\Backend\Core\Frontend\Acl; use Zend\Permissions\Acl\Acl as Acl; use Zend\Permissions\Acl\Role\GenericRole as Role; use Zend\Permissions\Acl\Resource\GenericResource as Resource; class Resources{ private $resources; function __construct(array $dbresult){ $this->setResource...
true
c2c8a6aaf3e77e8a559912f1d76b192a51fc36f7
PHP
ExaByt3s/PortlaKargo
/app/Helpers/Upload.php
UTF-8
472
2.6875
3
[]
no_license
<?php /** * */ namespace App\Helpers; class Upload { public static function uploadImage($query,$path) { $img_name = rand(1111,9999); $ext = strtolower($query->getClientOriginalExtension()); $img_full_name = $img_name.'.'.$ext; // like 123213.jpg $upload_path = 'images/web...
true