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
f25838c164f02ab5489d3af8fe2675034f793e29
PHP
pagekit/pagekit
/app/system/modules/site/src/MenuManager.php
UTF-8
2,344
2.875
3
[ "CC-BY-ND-4.0", "CC-BY-4.0", "MIT" ]
permissive
<?php namespace Pagekit\Site; use Pagekit\Application as App; use Pagekit\Config\Config; class MenuManager implements \JsonSerializable { protected $positions = []; protected $menus; protected $config; public function __construct(Config $config, array $menus = []) { $this->config = $conf...
true
05f16c7b63173451eba62cc10aa2a2ec26a3e43f
PHP
saluja1/sufyansboutique
/plugins/goya-core/includes/js_composer/shortcodes/countdown.php
UTF-8
2,139
2.515625
3
[]
no_license
<?php function goya_shortcode_countdown( $atts, $content = null ) { extract( shortcode_atts( array( 'date' => '12/24/2018 12:00:00', 'utc_timezone' => '', 'size' => 'md', 'countdown_color' => '', 'countdown_color_custom' => '', 'caption_color' => '', 'caption_color_custom' ...
true
2faf8b3f8146bcc156b17e984e84fe787113edd3
PHP
keissi/FribeCaddy
/scripts/validateUserCreation.php
UTF-8
1,701
2.53125
3
[]
no_license
<?php require_once("includes/connect.php"); if(isset($_POST["botti"])){ $num = intval($_POST["botti"]); if(isset($_POST['username']) && isset($_POST['password']) && isset($_POST['password2']) && isset($_POST['email']) && $num==$_SESSION['r3']){ $clean['username'] = strip_tags($_POST['username']); ...
true
4f0d2f50bd177d0bf7d0e6ebb7d6019e2c2a3672
PHP
starsgeminiwebpanel/akyularadock
/app/Http/Middleware/RegisterAccessToken.php
UTF-8
1,064
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\Auth; class RegisterAccessToken { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closu...
true
712e3b75c1cdf919c4e99c0295692a269f5aeae7
PHP
soyuz-poehali/poehali
/poehali/blocks/menu/classes/BlockMenuBasket.php
UTF-8
299
2.515625
3
[]
no_license
<?php defined('AUTH') or die('Restricted access'); class BlockMenuBasket { public function getCatalogs() { global $db; $stmt = $db->query("SELECT id, name FROM components WHERE component = 'catalog' AND type = 'shop'"); if ($stmt->rowCount() > 0) { return $stmt->fetchAll(); } } }
true
fdec529e610cfd84f4b0a8195918ec003e4e5255
PHP
mem-memov/telepanorama
/decorator/src/Order/Accountant.php
UTF-8
392
2.71875
3
[]
no_license
<?php namespace Telepanorama\Order; class Accountant { private InventoryRegistry $inventoryRegistry; public function __construct( InventoryRegistry $inventoryRegistry ) { $this->inventoryRegistry = $inventoryRegistry; } public function provideNextInventoryNumber(): string { ...
true
76017b73ecc035ffaa5315a3d8e8522a504626ac
PHP
tmpler/twitbook
/site/header.php
UTF-8
2,055
2.515625
3
[]
no_license
<?php session_start(); echo "<!DOCTYPE html>\n<html><head>"; require_once 'functions.php'; $userstr = ' (Guest)'; if (isset($_SESSION['user'])) { $user = $_SESSION['user']; $loggedin = TRUE; $userstr = " ($user)"; } else $loggedin = FALSE; echo "<title>$appname$userstr</title>" ...
true
a6b32a13bfeeffe4c72312b4d2e15365cb14b578
PHP
bolt/bolt
/src/Pager.php
UTF-8
1,490
2.90625
3
[ "MIT" ]
permissive
<?php namespace Bolt; use Silex; /** * Class Pager. * * @author Rix Beck <rix@neologik.hu> * * @deprecated */ class Pager extends \ArrayObject { public $for; public $count; public $totalpages; public $current; public $showing_from; public $showing_to; public $link; protec...
true
762f05c95aac57f271de362586bebf2ea47ba30f
PHP
eortega/invoice-manager
/src/src/MessageHandler/InvoiceReportMessageHandler.php
UTF-8
2,506
2.765625
3
[]
no_license
<?php namespace App\MessageHandler; use App\Message\InvoiceReportMessage; use App\Message\InvoiceMessage; use App\Repository\InvoiceReportRepository; use Doctrine\ORM\EntityManagerInterface; use Psr\Log\LoggerInterface; use Symfony\Component\Messenger\Handler\MessageHandlerInterface; use Symfony\Component\Messenger\M...
true
e43989eb9f072adf85280315483067f73f868edf
PHP
julienChemin/projet4
/view/frontend/accueilView.php
UTF-8
1,290
2.625
3
[]
no_license
<?php require('hero.php'); ?> <article id="articles" class="container"> <section class="article"> <?php if (!empty($data['article'])) { ?> <h2>Dernier article publié :<br><?=$data['article']->getTitle()?></h2> <div class="articleContent"> <?php if (strlen($data['article']->getContent()) >...
true
c03b0cf02ced631736c5784cfc71958a4de0b197
PHP
anujjaha/samacharnew
/application/models/Subscriber_model.php
UTF-8
2,570
2.671875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Subscriber_model extends CI_Model { public function __construct() { parent::__construct(); } public $table = "subscribers"; public function insert_details($data=array()) { $data['created'] = date('Y-m-d H:i:s'); $data['created_by'] = $this->session->userdata['user_id']; $this->...
true
863af4353535c3bb0c754c2d3ec4d2c77c5ed17c
PHP
ThePatrykOOO/async_save_randomuser
/app/Repositories/UserRepository.php
UTF-8
299
2.640625
3
[]
no_license
<?php namespace App\Repositories; use App\Models\User; use Illuminate\Database\Eloquent\Collection; class UserRepository { public function all(): Collection { return User::all(); } public function create(array $data) { User::query()->create($data); } }
true
ec7de01895d28d7531135f77ce3726aa9ad1a129
PHP
dobrosite/php-mapping
/tests/Unit/EnumTypeTest.php
UTF-8
2,440
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Tests\Unit; use DobroSite\Mapping\BidirectionalMapper; use DobroSite\Mapping\EnumType; use DobroSite\Mapping\Exception\InvalidSourceType; use DobroSite\Mapping\Exception\InvalidSourceValue; use Tests\Fixture\TestEnum; use Tests\Fixture\TestEnum2; /** * @covers \DobroSite\Ma...
true
ffc648399efa168e6b05f29a5c9798e56ab061db
PHP
llazic/GurmanGuide
/Implementacija/application/models/M_Jelo.php
UTF-8
5,975
2.546875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?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 M_Jelo * * @author Nenad Babin 0585/2016 * @author Dunja Culafic 0236/2016 * @version 1.0 */ class M...
true
fc8fb3fc6d113e7b0571927fc93ef2d76b83b01a
PHP
CJBourassa/CodeFights
/Graphs/In the Pseudoforest/Is Pseudoforest.php
UTF-8
1,686
3.21875
3
[]
no_license
<?php // https://codefights.com/arcade/graphs-arcade/in-the-pseudoforest/4neXxESSsRy92ghTD/solutions function isPseudoforest($n, $wmap) { // create adjacency list foreach ($wmap as $edge){ $al[$edge[0]][] = $edge[1]; $al[$edge[1]][] = $edge[0]; } // build array of unvisited node...
true
de5b195b4efc7dc3f07060c2ae7a374612ebcab1
PHP
Juan-Calatayud/ejercicios_PHP
/casopra4.5.php
UTF-8
623
2.796875
3
[]
no_license
<?php $day = 's'; $time = 15.00; /*$mensajes = [ true => "abierto, pasa", false => "lo sentimos, cerrado" ]; $isOpen = false;*/ $open = [ 'l' => [[10.00, 14.00], [16.00, 20.00]], 'm' => [[10.00, 14.00], [16.00, 20.00]], 'x' => [[10.00, 14.00], [16.00, 20.00]], 'j' => [[10.00, 14.00], [16.00, 2...
true
85bc0062ea2253c889d72ee6dc0b717a9b98539d
PHP
Claudio-21/ExamProject_2020
/corePHP/builderHomeAutorized.php
UTF-8
2,672
2.640625
3
[]
no_license
<?php //Controllo nel caso ci sia qualche hacker if(!isset($_SESSION['status'])) session_start(); include 'utilityPHP/connessioneDB.php'; include 'utilityPHP/globalVar.php'; global $ip, $porta; if(isset($_SESSION['status']) && $_SESSION['status'] == "true") { //Autorized }else { //NOT Autoriz...
true
b6b14a302c28a5eb1ce0436bd4fa969460a92f04
PHP
Hyzual/koel
/app/Http/Controllers/API/ScrobbleController.php
UTF-8
1,195
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\API; use App\Models\Album; use App\Models\Song; use App\Services\LastfmService; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; /** * @group Last.fm integration */ class ScrobbleController extends Controller { private $lastfmService; public function __co...
true
ce4fabaa2a9593f7bb08b7286e23c056ed891385
PHP
cyovev/tvz-php
/conf/menu.php
UTF-8
1,217
2.53125
3
[]
no_license
<?php if (count(get_included_files()) <= 1) die("Direct access forbidden"); $nav = array( 'home' => array('label' => 'Home', 'class' => 'icon-home'), 'news' => array('label' => 'News', 'class' => 'icon-news'), 'contact' => array('label' => 'Contact', 'class' => 'icon-contact'), 'about' ...
true
1eda8048255431faf978bef73841012b218b8910
PHP
giorgos202/Crowding_system
/src/UploadData.php
UTF-8
13,004
2.515625
3
[]
no_license
<?php session_start(); $conn=mysqli_connect("localhost","root","","test1"); mysqli_query($conn,"set names 'utf8'"); $typ = array(); $conf = array(); $flag = array(); /* $coordinates = array(); $filename = "agosto.json"; $object = json_decode(file_get_contents($filename)); */ if(isset($_POST['coo'])...
true
499380d7afea4c7b9e6062aaac7fbc41455a4e13
PHP
GirouetteCacahuette/symfony_first_steps
/src/Controller/QuestionVoteController.php
UTF-8
733
2.546875
3
[]
no_license
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; class QuestionVoteController extends AbstractController { /** *...
true
c44070591863a3ac4e7fadbb89ffdb5a2cff23dc
PHP
bensonchen1988/Konosuba-Janken
/purephp/status.php
UTF-8
1,099
3.09375
3
[]
no_license
<?php class Status{ const NORMAL = "Normal"; // 10% current hp damage each turn const POISONED = "Poisoned"; // 25% current hp damage each turn const ONFIRE = "On Fire"; // Skip 1 turn, free win for other side const FROZEN = "Frozen"; // atk 2x const ENRAGED = "Enraged"; // def 2x const ARMORED = "Armored";...
true
5511681ae9f31bf54736f7d291347f5122c2f037
PHP
RmCodes/fully-Ecommerce-Website
/admin_area/view_customer.php
UTF-8
1,748
2.546875
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>View Brand</title> </head> <body> <table align="center" width="700" >...
true
e964b6ce40885d75f80eaedd379039cafd680036
PHP
ScreamUD/parser
/src/ParserBundle/Helper/ConstraintHelper.php
UTF-8
1,330
2.734375
3
[ "MIT" ]
permissive
<?php namespace ParserBundle\Helper; use ParserBundle\Model\ModelInterface; use Symfony\Component\Validator\Validator\ValidatorInterface; /** * Class ConstraintHelper * @package ParserBundle\Helper */ class ConstraintHelper implements ConstraintInterface { /** * @var ValidatorInterface */ protec...
true
ab6abe598a21c0e5cd5bae779307f008412b32f3
PHP
TaheraSima/restaurant
/models/new_purchase_model.php
UTF-8
3,724
2.6875
3
[]
no_license
<?php //New_Purchase Models class New_Purchase_Model extends Model { function __construct() { parent::__construct(); } public function save($table) { //Fields_name_of_Carrying_fields $item_id = $_POST['item_id']; $new_purchase_quantity = $_POST['new_purchase_quantity']; $new_purchase_unit_price = $_POS...
true
51527c3e6399f6e0c2b5672bdf614d4fc5d079c4
PHP
D0-P3/fizzbuzz
/src/Controller/FizzBuzzController.php
UTF-8
638
2.609375
3
[]
no_license
<?php declare(strict_types=1); namespace App\Controller; use App\FizzBuzz\FizzBuzz; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Routing\Annotation\Route; class FizzBuzzController extends AbstractController { /** * @Route("/fizzbuzz") */ public function ...
true
2c9972c4c482374060a59688e837ab9882d3ec4c
PHP
gqcn/Lge
/src/_frm/library/Console.class.php
UTF-8
5,855
3.421875
3
[ "MIT" ]
permissive
<?php /** * Linux终端命令处理类,封装常用命令功能。 * * @author john */ namespace Lge; if (!defined('LGE')) { exit('Include Permission Denied!'); } /** * 终端命令处理 */ class Lib_Console { /** * 终端字体颜色与英文关联数组 * * @var array */ public static $fontColors = array( 'black'...
true
3ae99098ce866d7d51ccf6dd956065501cd91919
PHP
Dirack/Estudos
/PHP/upload_multiplos_arquivos/recebedor.php
UTF-8
974
2.859375
3
[]
no_license
<?php /* recebedor.php (PHP) Objetivo: Estudo sobre upload múltiplo de arquivos com PHP. Esta página recebe os arquivos enviados via formulário na página index.php. Versão 1.0 Site: http://www.dirackslounge.online Programador: Rodolfo A. C. Neves (Dirack) 17/05/2019 Email: rodolfo_profissional@hotmai...
true
14c306a6037456986238b7f4b0b9c9ddce3c0952
PHP
nerthux/EgresadosV2
/config/Migrations/20171020182728_Initial.php
UTF-8
31,885
2.75
3
[ "MIT" ]
permissive
<?php use Migrations\AbstractMigration; class Initial extends AbstractMigration { public $autoId = false; public function up() { $this->table('achievements') ->addColumn('id', 'integer', [ 'autoIncrement' => true, 'default' => null, 'li...
true
61931c71355babcfd7ae69a0c831ab4237abf7d9
PHP
michaeldouglas/phpconferenceexemplos
/webrtc/token/vendor/icanboogie/storage/lib/StorageCollection.php
UTF-8
1,710
2.921875
3
[ "BSD-3-Clause" ]
permissive
<?php /* * This file is part of the ICanBoogie package. * * (c) Olivier Laviale <olivier.laviale@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ICanBoogie\Storage; /** * A collection of {@link Storage} ins...
true
ebbcde6ebf5e5ccb33248af68f9923fce6890d76
PHP
NangMyintzu-Yuki/Laravel_Portfolio
/app/Http/Livewire/Admin/AddMainComponent.php
UTF-8
1,586
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Livewire\Admin; use App\Models\Main; use Carbon\Carbon; use Livewire\Component; use Livewire\WithFileUploads; class AddMainComponent extends Component { use WithFileUploads; public $title; public $subtitle; public $intro; public $image; public $resume; public fu...
true
72d13ece0b6b04dd733b87f0cfe5e057d988be6d
PHP
Gandhali-Shastri/JavaJam-Coffee-House
/javacoffee/application/controllers/orders.php
UTF-8
3,908
2.640625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class orders extends CI_Controller{ public function ordersdata(){ $this->form_validation->set_rules('name', 'Name', 'required|min_length[1]|max_length[50]|xss_clean|callback_alpha_dash_space', array( 'required' => 'You must provide a %s.', 'min_length' => '%s h...
true
acc6e316e10f9346115db3925c949f09a14ba660
PHP
feliking/senavex-integration
/src/tabla/PlanillaTipoDDJJ.php
UTF-8
1,041
2.578125
3
[]
no_license
<?php include_once(PATH_BASE . DS . 'config' . DS . 'Db.php'); //control de acceso defined('_ACCESO') or die('Acceso restringido'); /** CS|Regional|reg|4 **/ class PlanillaTipoDDJJ extends Db { const TABLE = 'planilla_tipo_ddjj'; public static function finder($className=__CLASS__) { return parent::f...
true
24e332d8b736518d33f1c6457e8ca0d7e26246cf
PHP
rafaelwsilva/SmartPoll
/dashboard/includes/getDataQuestionById.php
UTF-8
1,109
2.890625
3
[]
no_license
<?php //-------------------------------------------------------------------------- // 1) Connect to mysql database //-------------------------------------------------------------------------- include ("connection.php"); //-------------------------------------------------------------------------- // 2) Que...
true
03dbbc5a1ee16931911dd34f5d73b55766c3f23c
PHP
CronosUchoa/php
/funcao.php
UTF-8
128
3.25
3
[]
no_license
<?php function ola ($texto) { return "Olá $texto ! <br>"; } echo ola("mundo"); echo ola("Cronos"); echo ola("uchoa"); ?>
true
84e73262257a77364e2debfe2ca4b4e78a81da69
PHP
whary11/School-Book
/app/Imports/PermissionImport.php
UTF-8
684
2.546875
3
[]
no_license
<?php namespace App\Imports; use Maatwebsite\Excel\Concerns\ToModel; use Spatie\Permission\Models\Permission; use Maatwebsite\Excel\Concerns\WithHeadingRow; use Maatwebsite\Excel\Concerns\WithCalculatedFormulas; class PermissionImport implements ToModel, WithHeadingRow, WithCalculatedFormulas { /** * @param...
true
34acbc46a4986929e8ed7dd075a14a29e2e8df39
PHP
maycozyx/certificados
/importa_planilha_nomes.php
UTF-8
651
2.75
3
[]
no_license
<?php error_reporting(E_ALL ^ E_DEPRECATED); ini_set('display_errors', 1 ); ?><!DOCTYPE html> <html lang="pt-br"> <head> <title></title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <style type="text/css"> .break { page-break-before: always; } .altura { margin-top: 80mm; ...
true
7863fcfc4af73bf13cec1a4d4750827c31998f06
PHP
nova-framework/quasar
/system/Routing/Controller.php
UTF-8
1,123
2.828125
3
[ "MIT" ]
permissive
<?php namespace Quasar\Routing; use BadMethodCallException; class Controller { /** * The middleware registered on the controller. * * @var array */ protected $middleware = array(); public function callAction($method, array $parameters) { return call_user_func_array(arra...
true
f8f90a0d85bd97a138acd63c4c93489f8f9d0fd2
PHP
olegbabenko/innovecs
/www/src/WebBundle/Model/User.php
UTF-8
581
2.765625
3
[]
no_license
<?php namespace WebBundle\Model; use CoreBundle\Model\Model; use WebBundle\Dictionary\Users; /** * Class User * * @package WebBundle\Model */ class User extends Model { /** * @const string */ private const TABLE = 'users'; /** * @param $email * * @return int|null */ ...
true
1ee8c8c0a24b354d1722897912a4de333dc155e5
PHP
knoteva/Softuni
/Courses/PHP Web Basics - май 2019/18. Exercise Polymorphism, Interfaces and Abstraction/01.06BirthdayCelebrations/test.php
UTF-8
2,116
3.703125
4
[]
no_license
<?php interface IdentifiableInterface { public function getId() : string; } interface BirthdayInterface { public function getBirthday(): string; } class Citizen implements IdentifiableInterface, BirthdayInterface { private $name; private $age; private $id; private $birthday; public fun...
true
32526e41dcd04b8f340fd394a6216e37afe6a6b1
PHP
maxvrolijk/dagdeel
/dagdeel.php
UTF-8
799
2.75
3
[]
no_license
<?php $dagdeel = date("H:i:s") ; //23 // nacht 0 -6 // ochtend 6-12 // middag 12- 18 // avond 18 - 0 if ($dagdeel <= 6) { $daytime = "night"; $message = "slaap lekker"; } elseif ($dagdeel <= 12) { $daytime = "morning"; $message = "goedemorgen"; } elseif($dagdeel > 12) { $dayti...
true
5034337a76ab4a7093fe720dee43cc1a19dfb376
PHP
jakguru/hummingbird-stack
/hbs/abstractInterfaces/HummingbirdRequestControllerInterface.php
UTF-8
1,173
2.53125
3
[]
no_license
<?php namespace Hummingbird; interface HummingbirdRequestControllerInterface { public function __construct( \Hummingbird\HummingbirdApp $hba ); public function getRequestMethod(); public function getQueryByMethod( string $method = 'GET' ); public function getQueryVarByMethod( string $method = 'GET', string $...
true
f861c61c7a4b8f0e1f5b71923fc53365b24df726
PHP
Minkus59/doc-micro
/_DOC/3d/3d_lib.php
ISO-8859-1
14,440
3.078125
3
[]
no_license
<?php /***************************************/ // PROGRAMME..... moteur 3D // MODULE........ librairie: dfinition objets et mthodes. // AUTEUR........ N.Dupont-Bloch, 2003 // VERSION....... 10 /***************************************/ define('infini', 1E20); define('pi', 3.14); function calculer_angle($px, $py) {...
true
72c40964948aa77ca35623ced3f4ba4cc2ed29ce
PHP
Tortumine/iset3_cswi_mvc
/Controllers/c_user.php
UTF-8
1,882
2.671875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Tortumine * Date: 16-08-17 * Time: 12:29 */ require_once 'Models/users.php'; require_once 'Views/view.php'; class C_user { public function __construct() {} public function UserUpdateForm5() { $user= new user(); $user5 = $user->GetUser($_SESSION[...
true
8b0860da294521b2841438a4afeef4dfd1771ab6
PHP
sdk-team/aliyun-openapi-php-sdk
/aliyun-php-sdk-aas/Aas/Request/V20150701/GetSessionInfoByTicketWithRouteSGPRORequest.php
UTF-8
828
2.671875
3
[ "Apache-2.0" ]
permissive
<?php namespace Aas\Request\V20150701; /** * @deprecated Please use https://github.com/aliyun/openapi-sdk-php * * Request of GetSessionInfoByTicketWithRouteSGPRO * * @method string getTicket() */ class GetSessionInfoByTicketWithRouteSGPRORequest extends \RpcAcsRequest { /** * @var string */ p...
true
9ccfc92b515dc81e4eaecb5840b4f30bb2bd0ac7
PHP
MathieuMT/simpleBlog
/Content/Captcha/captcha.php
UTF-8
1,568
2.765625
3
[]
no_license
<?php session_start(); $_SESSION['captcha'] = mt_rand(1000, 9999); // ON génère notre captcha , on met ça dans une variable de SESSION qui est égale à une fonction aléatoire composée de 4 chiffre: // Ensuite on met notre session de captcha dans une image que nous créons $img: $img = imagecreate(65, 30); // On f...
true
e565dc3abafa37b7c095c5b64e79306bcd619351
PHP
OneHey/shopping-cart
/common/models/store/ProductSearch.php
UTF-8
1,961
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models\store; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use common\models\store\Products; /** * ProductSearch represents the model behind the search form about `common\models\store\Products`. */ class ProductSearch extends Products { /** * @inheritdoc */ ...
true
f5b5a06349632d54ab20d6806b55b46bfb0e5865
PHP
pl-github/classroom
/src/Code/CopyPasteDetectionBundle/Phpcpd/Model/PmdCpdModel.php
UTF-8
825
2.765625
3
[ "MIT" ]
permissive
<?php namespace Code\CopyPasteDetectionBundle\Phpcpd\Model; use Code\AnalyzerBundle\Analyzer\Model\ModelInterface; class PmdCpdModel implements ModelInterface { /** * @var array */ private $duplications = array(); /** * @param array $duplications */ public function __construct(ar...
true
1a70a095d3e8aabf4813dab463c4dd1d23e99b2a
PHP
imdaqian/venues
/sandbox/polygon-test.php
UTF-8
657
2.609375
3
[]
no_license
<?php require_once dirname(__DIR__) . "/venues.php"; $points = array( array(41.33815377536821, 2.168426513671875), array(41.378869509663225, 2.098388671875), array(41.4504467428547, 2.1869659423828125), array(41.41029081288079, 2.2405242919921875), ); $list = new Venues\Domain\Location\LocationList()...
true
086e770e574a5e9faa4dc7a737730d8d6dd12767
PHP
horse-php/horse
/tests/Spec/Horse/Parsers/MetadataParserSpec.php
UTF-8
1,176
2.78125
3
[ "MIT" ]
permissive
<?php namespace Spec\Horse\Parsers; use PhpSpec\ObjectBehavior; class MetadataParserSpec extends ObjectBehavior { function it_can_be_instantiated() { $this->shouldHaveType('Horse\Parsers\MetadataParser'); } function it_parses_a_single_element() { $this->parse('{name:optional:"You...
true
7321258aeedc865bbfcacad0bb91b0fde4d772ee
PHP
sayan95/laravel-admin
/app/Models/Order.php
UTF-8
627
2.71875
3
[ "MIT" ]
permissive
<?php namespace App\Models; use App\Models\OrderItem; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Factories\HasFactory; class Order extends Model { use HasFactory; protected $fillable = ['first_name', 'last_name', 'email']; public function items(){ return $this->has...
true
0cb81966c2bb289e3814d3dc016877644cae2dc1
PHP
cocoastorm/stock-ticker
/application/controllers/Homepage.php
UTF-8
647
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Homepage extends Application { /** * Index Page for the Homepage controller. */ public function index() { /* Grab data from database for Stocks and Players */ $this->data['stocks'] = $this->stocks->getAl...
true
859e6372fe841b9fcbad9f3d675ab8cb508d00e2
PHP
baotramit/Fashion
/viewbill.php
UTF-8
1,544
2.859375
3
[]
no_license
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> </head> <body> <?php require("connect.php"); session_start(); ?> <?php $idcus = $_SESSION["sidcus"]; $sql = "Select * from Bill where IdCus = {$idcus}"; $stmt = $conn->prepare($sql); $stmt->execute(); $result = $s...
true
1ed57d5efc3c1224ae7f4c4772e7780de5ffc452
PHP
doctrine/orm
/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC881Test.php
UTF-8
5,865
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Doctrine\Tests\ORM\Functional\Ticket; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping\Column; use Doctrine\ORM\Mapping\Entity; use Doctrine\ORM\Mapping\GeneratedValue; use Doctrine\ORM\Mapping\Id; use Doctr...
true
c1efffba176fbd0957008142d817509501f25e65
PHP
dazzle-php/loop
/src/Loop/LoopResourceInterface.php
UTF-8
891
2.984375
3
[ "MIT" ]
permissive
<?php namespace Dazzle\Loop; interface LoopResourceInterface extends LoopAwareInterface { /** * Check if resource is paused or not. * * This method allow to check whether the object is in paused state, meaning all of streams it contains are detached * from loop or are they still active. *...
true
62fdc074de944aacff9bb6b88a03314479efcf89
PHP
TreasureMaster/Stairs
/StairElement/StairElement.php
UTF-8
2,657
3.125
3
[]
no_license
<?php namespace StairElement; /* ---------------------- Абстрактный элемент лестницы ---------------------- */ abstract class StairElement { // массив сборки свойств для JSON protected $props = []; // переменная для маркировки массива вывода свойств объекта protected $marked; // материал элемента prote...
true
c30372791a8166464197a3c113440cf0f3a789d5
PHP
markuspoerschke/EventBundle
/Entity/Manager/EventManager.php
UTF-8
705
2.625
3
[]
no_license
<?php namespace Eluceo\EventBundle\Entity\Manager; use Eluceo\EventBundle\Model\Manager\EventManagerInterface; class EventManager implements EventManagerInterface { /** * @var string */ protected $class; /** * @var \Doctrine\ORM\EntityManager */ protected $em; public functio...
true
8a194832155476ea128869db354438b04aa10dc2
PHP
qigongcoder/PHP-Easysteps
/10_Web_services/4_nodes-loop.php
UTF-8
266
2.84375
3
[ "MIT" ]
permissive
<?php echo'<title>PHP SimplexXML</title>'; $xml=simplexml_load_file('catalog.xml') or die('Unable to load data'); $counter=0; foreach($xml->children() as $book){ $counter++; echo 'Book'.$counter.':'; echo $book->title.'in easy steps ['.$book->category.']<hr>'; }
true
24650586e36022d98ba8062a03ff949c6b376d7d
PHP
jordanbrauer/unit-converter
/tests/unit/Unit/SiMultipleUnit.spec.php
UTF-8
860
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); /** * This file is part of the jordanbrauer/unit-converter PHP package. * * @copyright 2018 Jordan Brauer <18744334+jordanbrauer@users.noreply.github.com> * @license MIT * * For the full copyright and license information, please view the LICENSE * file that was distributed with...
true
6a470f2c06161f52c644fc4c3d392dc98f5679ce
PHP
TUmberto/Tieghi-Umberto
/12-CV/memorizzazione.html.php
UTF-8
1,247
2.6875
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <link type="text/css" rel="stylesheet" href="1.css"/> </head> <body> <?php try{ $cx='mysql:host=localhost;dbname=cv'; $pdo=new PDO($cx,'root','a_morte'); $pdo->setAttribute(PDO::ATTR_ERRMODE, ...
true
1525cdec14bcc60e9f5178db9ec2e84e31e513ae
PHP
HUNTERS1984/PON
/application/src/CoreBundle/Queue/Consumer/EmailConsumer.php
UTF-8
2,248
2.8125
3
[]
no_license
<?php namespace CoreBundle\Queue\Consumer; use CoreBundle\Mailer\Client; use Monolog\Logger; use OldSound\RabbitMqBundle\RabbitMq\ConsumerInterface; use PhpAmqpLib\Message\AMQPMessage; class EmailConsumer implements ConsumerInterface { /** * @var Client */ private $client; /** * @var Log...
true
172bae97e3be22e9d7543e30804a19eb8ed443b6
PHP
Roukkk/testyii2
/controllers/CarController.php
UTF-8
782
2.71875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\controllers; use Yii; use yii\web\Controller; use app\models\Car; class CarController extends Controller{ public function actionIndex() { $query = Car::find(); $car = $query->asArray()->all(); return $this->render( 'index', [ 'query' => $query, 'model' => new Car() ] ); } ...
true
0eb681057cd5a6e4ff70559bd928a6d0538161ee
PHP
sathish-narayanan/lamp
/signUp/signup.php
UTF-8
7,045
2.671875
3
[]
no_license
<?php require_once 'config.php'; require_once 'autoload.php'; $obj = new User($_POST); if (isset($_POST['submit'])) { $validate = $obj -> validate(); } if ($validate[$errorFlag] == true) { echo $validate[$errorMessage]; } /*if ($validate) { $data = implode("<br>", $validate); echo $data; }*/ ?> <!DOCTYPE h...
true
c831759459e01691ec3b595159a6b0ea8d9e129e
PHP
feelingfrance/avphp
/sqlsrv.php
UTF-8
2,311
2.78125
3
[]
no_license
<?php header("Content-Type: text/html; charset=utf-8"); $serverName = "localhost"; //数据库服务器地址 $uid = "sa"; //数据库用户名 $pwd = "111"; //数据库密码 $connectionInfo = array("UID"=>$uid, "PWD"=>$pwd, "Database"=>"shifenzheng"); $conn = sqlsrv_connect($serverName, $connectionInfo); if( $conn == false) { echo ...
true
53cfe6be731748f2934349a1340b4b6f48b70508
PHP
aquaruiz/PHP-Web-Development-Basics
/Interfaces and Abstraction - Exercises/Ferrari/Ferarri.php
UTF-8
481
3.03125
3
[]
no_license
<?php declare(strict_types = 1); /** * */ class Ferarri implements iCar { private $model; private $driver; function __construct(string $driver, string $model = "488-Spider") { $this->driver = $driver; $this->model = $model; } public function useBrakes(){ return "Brakes!"; } public function useGasPed...
true
e136fb9cb8f42ebc3a0852f614fc1fa082941482
PHP
divanov-web/my.liquimoly.ru
/models/NewsSearch.php
UTF-8
1,601
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use yii\data\ActiveDataProvider; class NewsSearch extends News { public function rules() { return [ [['news_id'], 'integer'], [['news_time', 'news_name', 'news_short_desc', 'news_desc', 'news_img', 'news_showme'], 'safe'], ]; ...
true
b8877d17c7464ae0db1a017ddf3af6ee820b2669
PHP
codeBlooded29/Guest-House-Booking-Portal
/book.php
UTF-8
3,025
2.8125
3
[]
no_license
<?php session_start(); //starts the session if($_SESSION['user']){ //checks if user is logged in } else{ header("location:index.php"); // redirects if user is not logged in } // echo "<br>Enter below details to check for room availability<br><br>"; ?> <html> <link rel="stylesheet" type="text/css" href="mystyle...
true
e7c3bf5ae1865b5b2e9c615ba4d4bc7c02de43d9
PHP
PunktSonstNichts/CMS
/backend/errorhandling.php
UTF-8
2,107
2.765625
3
[ "MIT" ]
permissive
<?php class error{ private $dir = "log/"; public function __construct($message, $type = ""){ switch ($type){ case "mysql": $log = "[".time()."]$message"; $file = $this->dir."mysql/log.txt"; break; case "fatal_error": $log = "[".time()."]$message"; $file = $this->dir."error/log.txt"; break; ...
true
be72c048b6e070be4f6000e4cae20ff50b03ca2a
PHP
pelanis/lib-wallet-php-client
/src/Paysera/WalletApi/Mapper/IdentityMapper.php
UTF-8
1,505
2.859375
3
[]
no_license
<?php class Paysera_WalletApi_Mapper_IdentityMapper { /** * Maps Identity entity to array * * @param Paysera_WalletApi_Entity_User_Identity $identity * * @return array */ public function mapFromEntity(Paysera_WalletApi_Entity_User_Identity $identity) { $data = array();...
true
397eb1f59847fa585ca87bd076fbef57fb4a4991
PHP
CICS-530/pollutantAPI
/app/View/Categorydisease/search.ctp
UTF-8
345
2.90625
3
[]
no_license
<?php $jsonArray = array(); foreach($categorydiseases as $categorydisease) { $jsonArray[] = array( 'category' => $categorydisease['categories']['name'], 'diseases' => array( 'disease' => $categorydisease['diseases']['name'])); } echo...
true
a015edbb6989e8f3bd6b47e67275f8451f022d68
PHP
delboy1978uk/oauth2-api
/src/App/Form/User/RegistrationForm.php
UTF-8
1,716
2.59375
3
[]
no_license
<?php namespace App\Form\User; use Del\Form\AbstractForm; use Del\Form\Field\Submit; use Del\Form\Field\Text\EmailAddress; use Del\Form\Field\Text\Password; use Del\Form\Filter\Adapter\FilterAdapterZf; use Del\Form\Renderer\HorizontalFormRenderer; use Zend\Filter\StringToLower; class RegistrationForm extends Abstrac...
true
54d9f49d0122f9bb9f093dec6345c4a127b58b77
PHP
belushkin/game
/Figures/FigureEngineInterface.php
UTF-8
208
2.78125
3
[ "MIT" ]
permissive
<?php namespace game\Figures; interface FigureEngineInterface { public function setEngine(\game\Engine\EngineInterface $engine); public function getEngine(\game\Engine\EngineInterface $engine); }
true
a2d10931cbc699a1e33b207251838812b7d985a2
PHP
jpachecov/LeBrand_Backup
/php/miFormulario.php
UTF-8
1,548
2.859375
3
[]
no_license
<?php $para = 'contacto@lebrandcapital.com'; $titulo = '[Mensaje de pagina web]'; $mensaje = $_POST['mensaje']; $texto = str_replace("\n.", "\n..", $mensaje); $nombre = $_POST['nombre']; $correo = $_POST['correo']; $mensaje_completo = "Nombre de la persona que se contacto es : " . $nombre . " y su correo e...
true
f49e280bbf1061d0907ecfe039e0f3c1fa6173a5
PHP
gsu-dle/d2l-api-tools
/src/Model/Enrollment/SectionPropertyDataModel.php
UTF-8
1,637
2.671875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace GAState\Tools\D2L\Model\Enrollment; use GAState\Tools\D2L\Model\API\RichTextInputModel; use GAState\Tools\D2L\Model\D2LModel; /** * @package GAState\Tools\D2L\Model\Enrollment * @access public * @see https://docs.valence.desire2learn.com/res/enroll.html#Section.SectionPro...
true
ab7ff4a9ad495d46565afb7d4d9d4c593b6e7625
PHP
jsorianogit/Inteligent-Web
/intelcode/Modulos/herramientas/copiarWindows/copiar.php
UTF-8
785
2.8125
3
[]
no_license
<?php #Caso Windows # Compiar a unidad en red, si el servidor se esta # ejecutando en un sistema windows # La unidad destino debe tener permisos de escritura function copiant($nombreArchivo,$Destino){ if(!copy($nombreArchivo,$Destino)) print("\n<br>Ocurrio un error mientras se intentaba copiar el archiv...
true
004d9f2a496c70bbb9f78f23b08d8240bf6f415d
PHP
andparsons/mage-app-start
/app/code/Magento/CompanyPayment/Plugin/Quote/PaymentMethodManagementPlugin.php
UTF-8
1,865
2.59375
3
[]
no_license
<?php namespace Magento\CompanyPayment\Plugin\Quote; /** * Class PaymentMethodManagementPlugin. */ class PaymentMethodManagementPlugin { /** * Company check identifier. * * @var string */ private $companyCheck = 'company'; /** * @var \Magento\Quote\Api\CartRepositoryInterface ...
true
d443d2a0b4d26ac128ba6f4b8329f7b81ee1870b
PHP
OlenkaV/ORM
/src/Entity.php
UTF-8
910
2.609375
3
[]
no_license
<?php /* * This file is part of the Orm/orm package * */ namespace Orm; use Orm\Mapping\Driver\Reader; class Entity { use \Orm\Data\Getter, \Orm\Data\Setter; private $fields = []; public function getProperties() { $parameters = get_object_vars($this); unset($parameters['fi...
true
9f4f72b0c73bc4611ac55a99245fd8dcb01774a1
PHP
tonysm/feature-flags
/app/FeatureFlags/Checkers/FeatureByPass.php
UTF-8
540
2.59375
3
[]
no_license
<?php namespace App\FeatureFlags\Checkers; use App\User; use App\FeatureFlags\ByPassRules; class FeatureByPass implements Checker { /** * @var ByPassRules */ private $byPassRules; /** * FeatureByPass constructor. * * @param ByPassRules $byPassRules */ public function __...
true
85a0e7d839a65e422cb3cf91c7a54bb5da52bc99
PHP
themasch/libiwparser
/de/parsers/ParserAlliKasseMemberC.php
UTF-8
5,325
2.578125
3
[]
no_license
<?php /* * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * <martin@martimeo.de> wrote this file. As long as you retain * this notice you can do whatever you want with this stuff. If we meet some * day, and you think this stuff is worth it, you...
true
b2bf8f37ca8b2e22bf198c280b647e61bca039ef
PHP
CoBambrose/HC_Coaches
/app/live/studentCoaches.php
UTF-8
3,688
2.875
3
[]
no_license
<?php include "../../connect.php"; session_start(); $coachData = []; $sql = "SELECT * FROM `hccoachapp` WHERE `hccoachapp`.`type`='coach'"; $result = mysqli_query($conn, $sql); $result_check = mysqli_num_rows($result); if ($result_check > 0) { while ($row = mysqli_fetch_assoc($result)) { $coachID = $row['coac...
true
d8ae0cbb75e532f8c2e05fb2766a12dc31faab52
PHP
lz1988/lkerp
/initphp/core/dao/cache/filecache.init.php
UTF-8
3,016
2.875
3
[]
no_license
<?php if (!defined('IS_INITPHP')) exit('Access Denied!'); /********************************************************************************* * InitPHP 1.0 文件缓存基础类 *------------------------------------------------------------------------------- * 版权所有: CopyRight By InitPHP Team * 您可以自由使用该源码,但是在使用过程中,请保留作者信息。尊重他人劳动成果...
true
fbf06a7ae6d06a5cc6373cebde0fa659192faaae
PHP
hahnmiranda/Estudos-PHP
/php/13-operadores.php
UTF-8
2,194
3.921875
4
[]
no_license
<?php //aritmeticos $a = 5; $b = 2; $c = 10; $adicao = $a + $b; echo "$adicao <br>"; $subtracao = $a - $b; echo "$subtracao <br>"; $multiplicacao = $a * $b; echo "$multiplicacao <br>"; $divisao = $c / $b; echo "$divisao <br>"; $modulo = $a % $b; echo "$modulo <br>"; $exponenciacao = $a ** $b; echo "$exponenc...
true
20af0e61ac17a5fdbba8e37c25c823a572a59690
PHP
martinnez/Ecom-Yii2
/ecom/models/BrandCategory.php
UTF-8
1,293
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "brand_category". * * @property integer $id * @property integer $brand_id * @property integer $category_id * * @property Brand $brand * @property Category $category */ class BrandCategory extends \yii\db\ActiveRecord { /** ...
true
7ac06517acc18e9fd8cb8b21719178d27145b975
PHP
LedilsonFilho/paginabarbo
/src/Helper/ContaCorrenteFactory.php
UTF-8
1,462
2.78125
3
[]
no_license
<?php namespace App\Helper; use App\Entity\ContaCorrente; use App\Repository\ContaCorrenteRepository; class ContaCorrenteFactory implements EntidadeFactoryInterface { public function __construct( ContaCorrenteRepository $contacorrenterepository) { $this->contacorrenter...
true
aacfe687a855b11cf3cc5004e45da3a6765c2f97
PHP
mmuniraju4444/loan
/app/Observers/LoanRepaymentObserver.php
UTF-8
866
2.5625
3
[]
no_license
<?php namespace App\Observers; use App\Models\LoanRepayment; use Illuminate\Support\Str; class LoanRepaymentObserver { /** * Handle the LoanRepayment "creating" event. * * @param LoanRepayment $model * @return void */ public function creating(LoanRepayment $model) { $mode...
true
c41a5f3f3f2807edb717ef334237a66dcf3cbc6f
PHP
kodagabriel/Projeto-SAP
/include/wp-content/plugins/caldera-forms/trunk/classes/entry/field.php
UTF-8
2,656
3.046875
3
[ "GPL-2.0-only", "MIT", "GPL-1.0-or-later", "GPL-2.0-or-later" ]
permissive
<?php /** * Object representation of an entry field - cf_form_entry_values * * @package Caldera_Forms * @author Josh Pollock <Josh@CalderaWP.com> * @license GPL-2.0+ * @link * @copyright 2016 CalderaWP LLC */ class Caldera_Forms_Entry_Field extends Caldera_Forms_Entry_Object { /** @var string */ pro...
true
20fb436018bbad6a917a3515dbba3bc33e8347b2
PHP
TBoileau/symfony-clean-architecture-ddd
/src/Shared/Infrastructure/Doctrine/Type/DateType.php
UTF-8
1,118
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Shared\Infrastructure\Doctrine\Type; use App\Shared\Domain\ValueObject\Date\Date; use DateTimeInterface; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\DateType as DoctrineDateType; final class DateType extends DoctrineDateType { public const N...
true
9119d415989a48d71099a83afcb969fd7f88b38d
PHP
mirela68/pabd2014
/src/Oprea Radu - Suteu Iacob/SecuritateSoftware/lib/CStringUtils.php
UTF-8
229
2.5625
3
[ "MIT" ]
permissive
<?php /** * furnizează funcții utile în lucrul cu stringuri. * * @author aaa */ class CStringUtils { static public function stringToByteArray($value) { return unpack("C*", $value); } } ?>
true
f72ddd4d7b8267a6d6ec3401d1610391f2fd3a7e
PHP
espumita/kioskON
/src/application/db/DataBaseConnection.php
UTF-8
688
2.859375
3
[]
no_license
<?php namespace kioskon\application\db; class DataBaseConnection { private $MYSQL_HOST = 'db4free.net'; private $MYSQL_USER = 'kioskon'; private $MYSQL_PASSWORD = 'kioskon'; private $MYSQL_DB_NAME = 'kioskon'; private $MYSQL_PORT = '3306'; private $connection; public function start() { ...
true
d121db0b0987c208af4a09f0eef1d20d06512b0b
PHP
kindziora/lock
/classes/mutex/MemcachedMutex.php
UTF-8
1,415
2.9375
3
[ "WTFPL" ]
permissive
<?php namespace malkusch\lock\mutex; use Memcached; /** * Memcached based spinlock implementation. * * @author Markus Malkusch <markus@malkusch.de> * @link bitcoin:1335STSwu9hST4vcMRppEPgENMHD2r1REK Donations * @license WTFPL */ class MemcachedMutex extends SpinlockMutex { /** * @var Memcached Th...
true
e0e432be35b29fb4539e1522567704bc8abb4406
PHP
Web-Imac-2017/Eikona
/app/controllers/BanController.php
UTF-8
6,610
3.390625
3
[]
no_license
<?php interface BanInterface { public function add($type); public function remove($type); public function is($type); public function get($type); } class BanController implements BanInterface { private $wordsModel; private $emailsModel; public function __construct() { ...
true
dd095cba049ebbdf308d96892fc29469de98944f
PHP
OneHourGameJam/OneHourGameJam
/php/models/PollModel.php
UTF-8
5,655
2.828125
3
[ "MIT" ]
permissive
<?php class PollModel{ public $Id; public $Question; public $PollType; public $DateStart; public $DateEnd; public $IsActive; public $Options; public $UsersVotedInPoll; } class PollOptionModel{ public $Id; public $Text; public $Votes; } class PollData{ public $PollModels; public $LoggedInUser...
true
6a8213c446cf8273425fc59019f091b169769f20
PHP
handeesome/Web-project
/public_html/search_all_loc.php
UTF-8
1,974
2.875
3
[]
no_license
<html> <div> <label">Choose a location to show items in that location:</label> <form method="POST"> <select name="dropdownZip" id="table"> <?php $db = mysqli_connect("10.72.1.14", "group23", "FgwMm3", "group23"); if ($db->connect_error) { ...
true
36254dbd696cf5da10dbcd702fb9100d068d84be
PHP
kleitz/BearSchedule
/app/Helper/ModelChangesHelper.php
UTF-8
1,173
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Helper; use Carbon\Carbon; class ModelChangesHelper { static public function getChangedValues($oldModel, $newModel) { $oldValues = []; $newValues = []; if(!empty($newModel->getAttributes()) && empty($oldModel)) { return ['', json_encode($newModel->get...
true
84630d146a95fba6b90a3d1bcbe44049ed961424
PHP
isosatl/stdnadmin
/dbInterfaces/PopulateListBox.php
UTF-8
646
2.75
3
[]
no_license
<?php try{ //Open database connection $con = mysql_connect("localhost","root",""); mysql_select_db("studentadmindb", $con); $query = "SELECT id_seccions FROM alumnos"; $result = mysql_query ($query); echo "<select name=student value=''>Student Name</option>"; // printing the list box select comman...
true
ac62352b6221cb70d2dbe29ef4d09a521575de40
PHP
MrMohebi/api-care-test-panberes
/app/GraphQL/Queries/Login.php
UTF-8
1,121
3.0625
3
[ "MIT" ]
permissive
<?php namespace App\GraphQL\Queries; use App\Models\User; use GraphQL\Error\Error; class Login { /** * @throws Error */ public function __invoke($_, array $args):User{ $username = $args["username"]; $password = $args["password"]; $user = User::where("username", $username)->...
true
2c4f3e44ba6cfc66a7d528cde1573fcfb07e00a7
PHP
tommy-muehle/keynote-enums-an-introduction
/slide-simple-enum-class.php
UTF-8
295
3.5
4
[]
no_license
<?php final class Color { const __DEFAULT = 'black'; const RED = 'red'; private $value; public function __construct(string $color = null) { $this->value = $color ?? self::__DEFAULT; } public function __toString() { return $this->value; } }
true
e39fd0682656aa54477f017af37bb9b5a329ebe8
PHP
nosavvy33/Slim-Sample-2.-
/basic.php
UTF-8
1,049
3.859375
4
[]
no_license
<?php /*$variable = "TECSUP" ; $var2 = 1231; $var3 = $var2.$variable; echo $var3;*/ /* UTILITARIOS: strval(); lo mismo que String.valueOf(); intval(); los mismo que Integer.parseInt(); parseFloat(); lo mismo que Float.parseFloat(); o (float) --- casteo var_dump(); cuando tengas un arreglo o un json y quier...
true
571bf8d7cda51282ed13c173d1ec22b0dcd8e43c
PHP
AhmedJavacc/WebProgForCollege
/model/course.php
UTF-8
596
3.109375
3
[]
no_license
<?php class course { private $course_id; private $course_name; private $course_description; public function __construct($course_id, $course_name, $course_description) { $this->course_id = $course_id; $this->course_name = $course_name; $this->course_description = $course_descri...
true
b358134c22661243b9fc18151dc9e1f42de517e2
PHP
volumnet/some4
/src/singleton.class.php
UTF-8
1,643
2.90625
3
[]
no_license
<?php /** * Файл работы с шаблоном Singleton ("одиночка") * * Этот файл - часть библиотеки, предоставляющий основной функционал работы с шаблоном Singleton ("одиночка") * * @package SOME * @subpackage Singleton * @author Александр В. Сурнин <info@volumnet.ru> * @copyright © 2022, ООО «Объемные Сети» * @license...
true