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
4ef1bef2eb96d18b74f1c775d1f9841bf0a0183d
PHP
mikegeek95/TECMED
/sisadmin/productos/pdf/reporteEntradas.php
UTF-8
5,467
2.546875
3
[]
no_license
<?php require_once("../../clases/conexcion.php"); require_once("../../clases/class.EntradasySalidas.php"); require_once("../../clases/fpdf/fpdf.php"); require_once("../../clases/class.Fechas.php"); require_once("../../clases/class.Sucursales.php"); require_once("../../clases/class.Funciones.php"); $db = new MySQL(); $...
true
077b6fbcc0d62a021e7e430db764930645c8ca0f
PHP
biglanggwapoventures/emed
/app/Http/Controllers/RFIDController.php
UTF-8
863
2.609375
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Validator; use App\User; class RFIDController extends Controller { public function scan(Request $request) { $v = Validator::make($request->all(), [ 'uid' => 'required|alpha_num' ]); if($v->fails()) { ...
true
9e037bcf6ed1406178b1f6501d7ba16fefe0cb1d
PHP
antay1551/practice-back
/app/Application/User/UserRegister/UserRegister.php
UTF-8
1,385
3.203125
3
[ "MIT" ]
permissive
<?php namespace App\Application\User\UserRegister; use Rosamarsky\CommandBus\Command; /** * Class UserRegister * @package App\Application\User\UserRegister */ class UserRegister implements Command { /** * @var string */ private $email; /** * @var string */ private $password; ...
true
1cd5267e896fca70aa65c046556d85dab2eb613b
PHP
tdorkaa/daily-menu
/src/LoggerFactory.php
UTF-8
309
2.578125
3
[]
no_license
<?php namespace DailyMenu; use Monolog\Handler\StreamHandler; class LoggerFactory { public function build() { $logger = new \Monolog\Logger('my_logger'); $file_handler = new StreamHandler('php://stdout'); $logger->pushHandler($file_handler); return $logger; } }
true
e66588d893b3bac2ab0d87d802b87392b012b897
PHP
diiegopaiivam/api-imobiliaria
/application/controllers/Imoveis.php
UTF-8
5,147
2.65625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); require_once APPPATH . '/libraries/REST_Controller.php'; class Imoveis extends REST_Controller { public function __construct() { parent::__construct(); $this->load->model('imovel'); } public function index_get...
true
547dadf332cb8593bb35215fb5885452af5a909c
PHP
Eranity/freelance-qu
/app/Position.php
UTF-8
698
2.5625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Position extends Model { public $timestamps = false; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'name', 'display_name' ]; /** * Get the allow...
true
4f41cc6c56daef53aef5ae923ecb5b5af6ae5b3f
PHP
Abouvet94/SoundBuzz
/src/WavesBundle/Entity/MusicRepository.php
UTF-8
972
2.53125
3
[]
no_license
<?php namespace WavesBundle\Entity; /** * MusicRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class MusicRepository extends \Doctrine\ORM\EntityRepository { public function getPlayliste($id) { $rawSQL = "SELECT * FROM `playlist_music` W...
true
c1241c5c3cb1b351c2568c4ca6fcb33289696d40
PHP
DonWhelan/Request-Hub
/model/selectModel_profile.php
UTF-8
2,853
2.5625
3
[]
no_license
<?php function select_prepared_profileShowRequests($dir,$company, $user) { include($dir."../pem/sqlSelect.php"); $connection = mysqli_connect(sHOST, sUSER, sPASS); if (!$connection) { trigger_error("Could not reach database!<br/>"); error_log("Could not connect! se...
true
41e5936d15af0da770aef7466c130b7df9c6b166
PHP
mercy-un/attendance
/forview.php
UTF-8
565
2.671875
3
[]
no_license
<?php include_once 'data1.php'; if(isset($_POST['save'])) { $surname = $_POST['surname']; $othernames = $_POST['othernames']; $matric_no = $_POST['matric_no']; $department = $_POST['department']; $level = $_POST['level']; $sql = "INSERT INTO student (surname,othernames,matric_no,department,level) VA...
true
ea720f3c5cc67b62edee64d8d50bb86e9eee8c6b
PHP
EntityFX/GDCWeather
/src/web/basic/businessLogic/contracts/weatherData/WeatherChartItem.php
UTF-8
3,339
3.078125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\businessLogic\contracts\weatherData; use yii\base\Object; /** * Class WeatherChartItem * @package app\businessLogic\contracts\weatherData * @property int $key * @property float $averageTemperature * @property float $maximumTemperature * @property float $minimumTemperature * @property flo...
true
6ed818a41d569061882b4d8e57d8b26c85caaf7d
PHP
bbroger/Sistema-de-login
/source/Core/Controller.php
UTF-8
374
2.53125
3
[]
no_license
<?php namespace Source\Core; use League\Plates\Engine; class Controller { protected $router; protected $view; public function __construct($router) { $this->router = $router; $this->view = Engine::create(__DIR__ . "/../../themes/" . CONF_VIEW_THEME . "/" , CONF_VIEW_EXT); $this->vi...
true
f7b6f5b526cfafc59993c327486672695e0f5166
PHP
MickaelMoley/ocr-p5-blog
/src/Admin/PostControllerAdmin.php
UTF-8
5,175
2.65625
3
[]
no_license
<?php namespace App\Admin; use App\Entity\Post; use App\Entity\User; use Root\Core\Controller; use Symfony\Component\HttpFoundation\Response; class PostControllerAdmin extends Controller { /* * Fonction qui permet de récupérer la liste des articles * et afficher la vue */ public function list($...
true
cc634c39c83c21b7f6746d7925b7a0bef1b9477a
PHP
drdplusinfo/tables
/tests/Tables/Theurgist/Demons/DemonParameters/DemonArmorTest.php
UTF-8
548
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace DrdPlus\Tests\Tables\Theurgist\Demons\DemonParameters; use DrdPlus\Tables\Tables; use DrdPlus\Tables\Theurgist\Demons\DemonParameters\DemonArmor; use DrdPlus\Tests\Tables\Theurgist\Spells\SpellParameters\Partials\PositiveCastingParameterTest; class DemonArmorTest extends Posi...
true
272e35fd99abdad03c1e0fe477ef74f3de8f65ad
PHP
Ecodev/my-ichtus
/server/Application/Model/Configuration.php
UTF-8
915
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Application\Model; use Application\Repository\ConfigurationRepository; use Doctrine\ORM\Mapping as ORM; use Ecodev\Felix\Model\Traits\HasDescription; /** * Configuration. */ #[ORM\Entity(ConfigurationRepository::class)] class Configuration extends AbstractModel { use H...
true
da72df9ed67d6a5f3facafab1008000487945cd0
PHP
TheDiren/beep-api
/src/Controller/RootController.php
UTF-8
1,609
2.546875
3
[]
no_license
<?php namespace App\Controller; use App\Entity\IdentifiableInterface; use App\Entity\User; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\Security\Core\User\User...
true
40a99f3ca78ab63d8908bff43e68e76523b57782
PHP
kscreamy/import
/src/Parser/CSVIterator.php
UTF-8
2,266
3.171875
3
[]
no_license
<?php namespace Screamy\PriceImporter\Parser; /** * Class CSVIterator * @package Screamy\PriceImporter\Parser */ class CSVIterator implements \Iterator { /** * @var string */ private $csvFilePath; /** * @var resource */ private $fileResource; /** * @var array */ ...
true
cd4a4c9a539371eea9869988062f6e5807714984
PHP
gillilandjj/EBM
/Lib/Models/v84/OrderProvisioningSitePriceDetails.php
UTF-8
1,803
2.796875
3
[]
no_license
<?php class OrderProvisioningSitePriceDetails { /** * * @var siteNumber $siteNumber * @access public */ public $siteNumber = null; /** * * @var ItemPriceInfo $SitePortListPrice * @access public */ public $SitePortListPrice = null; /** * * @var float $subTotalDiscount * ...
true
d1a6aabb9fd0e468a376c0169d00226a9555dba1
PHP
VanJames/phabricator
/src/applications/project/query/PhabricatorProjectColumnPositionQuery.php
UTF-8
8,418
2.578125
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php final class PhabricatorProjectColumnPositionQuery extends PhabricatorCursorPagedPolicyAwareQuery { private $ids; private $boardPHIDs; private $objectPHIDs; private $columns; private $needColumns; private $skipImplicitCreate; public function withIDs(array $ids) { $this->ids = $ids; retu...
true
7e60524e52f45de8d2b7680b60ecd51d3b8a5369
PHP
Gromoboy/-PHP_basics
/dz-3/lect/zd-3.php
UTF-8
986
2.96875
3
[]
no_license
<?php // 3. Объявить массив, в котором в качестве ключей будут использоваться названия областей, а в качестве значений – массивы с названиями городов из соответствующей области. Вывести в цикле значения массива, чтобы результат был таким: // Московская область: // Москва, Зеленоград, Клин // Ленинградская ...
true
abd8ab8f4064be7f322edd1661f5fed1c7c3e0bf
PHP
JMSBot/widget
/tests/libs/Qwin/Qwin_SessionTest.php
UTF-8
2,342
2.546875
3
[]
no_license
<?php ob_start(); require_once dirname(__FILE__) . '/../../../libs/Qwin.php'; /** * Test class for Qwin_Session. * Generated by PHPUnit on 2012-02-08 at 03:57:51. */ class Qwin_SessionTest extends PHPUnit_Framework_TestCase { /** * @var Qwin_Session */ protected $object; /** * Sets up th...
true
4ee06ee059f1e3edd32115794da3f737975dc4a2
PHP
Tokyo-Lei/EasyPHP4
/App/library/File.class.php
UTF-8
7,624
3.109375
3
[ "MIT" ]
permissive
<?php Class File { private static $path; private static $files = []; private static $dirs = []; private function __construct($path) { try { if (is_dir($path)) { self::$path = strtr($path, ['\\' => '/']); } } catch (\Exception $e) { ...
true
458b824ad44924861b38fc4d76945711ebc34702
PHP
a-s-d-f/eta
/fuel/app/classes/validation.php
UTF-8
1,248
2.75
3
[ "MIT" ]
permissive
<?php /** * @brif Core\Validation拡張ファイル * @author Sakamoto * @date 2014/10/03 */ /** * @brif Core\Validation拡張 * @package app * @extends Fuel\Core\Validation */ class Validation extends Fuel\Core\Validation { /** * Show errors * * Returns all errors in a list or with set markup fro...
true
00debb1ad750c92eb3ad1e25f8fae190a4849393
PHP
adamelso/albumgrab
/src/Album.php
UTF-8
324
2.65625
3
[ "MIT" ]
permissive
<?php namespace Albumgrab; /** * @author Adam Elsodaney <adam.elso@gmail.com> */ interface Album { /** * @return string */ public function getStartingUrl(); /** * @return Element */ public function getImageElement(); /** * @return Element */ public function ge...
true
00baba5477e77eee69873332c5a1051a2d5ba772
PHP
PushStartups/OM-B2B
/dataentry/ajax/insert-timing.php
UTF-8
12,031
2.734375
3
[]
no_license
<?php require_once '../inc/initDb.php'; require_once '../inc/functions.php'; session_start(); DB::query("set names utf8"); if(($_POST['sunday_start_time'] == "Closed") || ($_POST['sunday_start_time'] == "closed") ) { $_POST['sunday_start_time'] = "Closed"; $_POST['sunday_end_time'] = "Closed"; $...
true
c7f3bcb9b540de60f765579a1a8cbda7becb1d0c
PHP
hocmai/mathplay
/app/services/questions/DemCanhDaGiac.php
UTF-8
2,385
2.671875
3
[ "MIT" ]
permissive
<?php class DemCanhDaGiac extends CommonQuestion { protected static $title = 'Đếm số cạnh, đỉnh của đa giác'; public static function getTitle(){ return self::$title; } public static function getShape(){ return [ 'tam-giac' => 'Hình tam giác', 'vuong' => 'Hình vuông', 'chu-nhat' => 'Hình chữ nhật', ...
true
eccdd998429f861fddc9ae122077d7d23e112d8f
PHP
asalama3/Camagru
/config/setup.php
UTF-8
2,895
2.875
3
[]
no_license
<?php // variable de database dans pdo // include ('database.php'); try { $bdd = new PDO($DB_DSN, $DB_USER, $DB_PASSWORD, array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION)); } catch (Exception $e) { die('Erreur: ' . $e->getMessage()); } try { $req = "CREATE DATABASE IF NOT EXISTS $database DEFAULT CHARA...
true
265ddab445b96ce9dd73e4dd2010b409339a6890
PHP
arryanggaputra/laravel-shop-directory
/src/database/seeders/ZoneSeeder.php
UTF-8
599
2.53125
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use App\Models\Floor; use App\Models\Tenant; use App\Models\Zone; use Illuminate\Database\Seeder; class ZoneSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { Floor::factory()->times(4)->create()-...
true
479a458e6c6f5d556fdeaefe9ad50bf360e6097e
PHP
subhu27/VetCon
/application/models/Client_model.php
UTF-8
4,531
2.578125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Client_model extends CI_Model { public function __construct() { parent::__construct(); $this->load->model('User_model'); $this->load->helper('url_helper'); } //inserts the cli...
true
c8cc293a92d52b95bf2e04031b5807a4f0e7219a
PHP
lightstep/lightstep-tracer-php
/test/PayloadsTest.php
UTF-8
3,905
2.9375
3
[ "MIT" ]
permissive
<?php class TestClass001 { public $a = 7; public $b = "b"; public function method() { echo "Hello world!\n"; } } class PayloadsTest extends BaseLightStepTest { public function testDataTypes() { $runtime = $this->createTestTracer("test_group", "1234567890"); $span = $runti...
true
222b267c4cc6c8bacbcd6f2825b1c5bb93ed361c
PHP
sky1006/www
/php/lamp3/14.php
UTF-8
3,601
3.34375
3
[]
no_license
<?php error_reporting(E_ALL & ~E_NOTICE); /** * Created by PhpStorm. * User: Administrator * Date: 14-8-27 * Time: 下午4:24 * PHP的运算符号 * 1 + 1 * 运算元 运算符 运算元 * 一元运算符 +1 -1 ++ -- * 二元运算符 + - * / % < > = == * 三元运算符 1 ? 2 :3 * 算术运算符号 + - * / % ++ -- * 赋值运算符号 = ...
true
37faa2ae9de880f3da325abedd05b7bd649fa3db
PHP
heismehrab/php-rabbitMQ-x
/src/Core/BaseHandler.php
UTF-8
3,899
2.796875
3
[]
no_license
<?php namespace HeIsMehrab\PhpRabbitMq\Core; use PhpAmqpLib\Wire\AMQPTable; use PhpAmqpLib\Channel\AMQPChannel; use Exception, InvalidArgumentException; use HeIsMehrab\PhpRabbitMq\Services\RabbitMQ\RabbitMQService; /** * Class BaseHandler. * Define queues, exchanges and setters, * useful for both Producers and ...
true
da292b4aa63f33a13c810effc038b56cb9d060da
PHP
vecca26/jain-engineers
/renda/contact.php
UTF-8
580
2.53125
3
[]
no_license
<?php $to = "jainengineers@gmail.com"; $from = $_REQUEST['email']; $name = $_REQUEST['name']; $headers = "From: $from"; $subject = "You have a message from Contact page of Your Website"; $fields = array(); $fields{"name"} = "name"; $fields{"email"} = "email"; $fields{"phone...
true
09e94fdc717c7f2a4ab70e70327f0e179e4b894c
PHP
Keve00/scaff
/model/ProfessorDAO.php
UTF-8
1,949
2.765625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: lab2-33 * Date: 16/11/2015 * Time: 11:31 */ class ProfessorDAO { public function Cadastrar(Professor $professor){ try{ $sql = "INSERT INTO professor(nome,email,senha,opcao) VALUES(:nome,:email,:senha,:opcao)"; $stm = Conexao::getInsta...
true
55164909cb0e29a5851331bcfe49210a33d14c87
PHP
murindenis/sportmaster
/tests/Entity/StoreInventoryTest.php
UTF-8
1,253
2.53125
3
[]
no_license
<?php namespace App\Tests\Service; use App\Entity\Inventory; use App\Entity\Store; use App\Entity\StoreInventory; use PHPUnit\Framework\TestCase; class StoreInventoryTest extends TestCase { public function testStoreInventory(): void { $store = new Store(); $inventory = new Inventory(); ...
true
17e630ec24056c04d14ef3a38269f1a6ab746b9d
PHP
Lersgeeb/IS410-POO
/Examen/Examen2/backend/class/Orden.php
UTF-8
711
3.46875
3
[]
no_license
<?php class Orden{ private $nombreProducto; private $descripcion; private $cantidad; private $precio; public function __construct( $nombreProducto, $descripcion, $cantidad, $precio){ $this->nombreProducto = $nombreProducto; $this->descripcion = $desc...
true
fdac0919eb7f94aed9e34aa9a2379cdc4ea4eae5
PHP
huang-yi/laravel-swoole-http
/src/Transformers/RequestTransformer.php
UTF-8
3,617
2.703125
3
[ "MIT" ]
permissive
<?php namespace HuangYi\Swoole\Transformers; use Illuminate\Http\Request as IlluminateRequest; use Swoole\Http\Request as SwooleRequest; use Symfony\Component\HttpFoundation\ParameterBag; use Symfony\Component\HttpFoundation\Request as SymfonyRequest; class RequestTransformer { /** * @var \Illuminate\Http\R...
true
c199eeaaf2fd12549f0c83e5a6f916b47c32f11c
PHP
yar3333/antlr4-php-runtime
/src/Atn/Actions/LexerAction.php
UTF-8
649
2.515625
3
[]
no_license
<?php /* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved. * Use of this file is governed by the BSD 3-clause license that * can be found in the LICENSE.txt file in the project root. */ namespace Antlr4\Atn\Actions; use Antlr4\Lexer; abstract class LexerAction { public $actionType; ...
true
c30c58d076e836a7d930576560d4fc69323d5c50
PHP
7138gmhampton/CMP306CWork
/CMP306CWork/scripts/server/view/user.php
UTF-8
578
3.28125
3
[]
no_license
<?php class User { private $user; private $email; private $username; private $password; function __construct($email, $username, $password, $user=null) { $this->user = $user; $this->email = $email; $this->username = $username; $this->password = $password; } ...
true
e66cf504839d364a36f8cf74dadc6bb8895da4b0
PHP
mapco/MAPCO
/APIs/shop/ListsCompare.php
UTF-8
1,453
2.578125
3
[]
no_license
<?php if ( !isset($_POST["id_list1"]) ) { echo '<ListsCompare>'."\n"; echo ' <Ack>Error</Ack>'."\n"; echo ' <Error>'."\n"; echo ' <Code>'.__LINE__.'</Code>'."\n"; echo ' <shortMsg>Liste 1 nicht gefunden.</shortMsg>'."\n"; echo ' <longMsg>Es muss eine erste Liste (id_list1) übergeben werden.</longMsg>'....
true
f0526339dc3fa4f9c94661d1cc156f5d8905b009
PHP
johnynsk/i3-phpbar
/Sensor/Conditions/Co2.php
UTF-8
3,327
2.828125
3
[]
no_license
<?php namespace Sensor\Conditions; use \Sensor\SensorAbstract; use \Sensor\CacheableInterface; /** * Датчик углекислого газа * * @category Sensor * @package Sensor\Conditions * @author Evgeniy Vasilev <e.vasilev@office.ngs.ru> */ class Co2 extends SensorAbstract implements CacheableInterface { ...
true
b304be277b220bbd388b283f40cf27361e613c09
PHP
gitter-badger/Horus
/Horus.php
UTF-8
27,352
3.046875
3
[]
no_license
<?php while(ob_get_status()) ob_end_clean(); /** * Horus - a tiny & portable PHP 5 framework * * @author Mohammed Al Ashaal <m7medalash3al@gmail.com|fb.com/alash3al> * @copyright 2014 Mohammed Al Ashaal * @link http://alash3al.github.io/Horus * @license MIT LICENSE * @version 7.0.0 * @pack...
true
3d8095416285eb2a4d2d9ad0d37bdf61a56f37c5
PHP
bogdananton/Dokra
/sample/application/app/api/v2/element/API.php
UTF-8
1,546
2.71875
3
[ "MIT" ]
permissive
<?php namespace DokraApplication\api\v2\element; use DokraApplication\api\v2\element\assets\Region; class API extends \DokraApplication\api\BaseAPI { /** * @param string $code * * @return Region */ public function getRegion($code) { $object = new Region; $object->Name =...
true
4d706932f3d88af09dd9d043e1e7d619dbd28c98
PHP
pulishahu/nlp
/index.php
UTF-8
912
3.1875
3
[]
no_license
<?php function getWords(){ $filename = "words.json"; $handle = fopen($filename, "r"); $contents = fread($handle, filesize($filename)); fclose($handle); return $contents; } function gettest(){ $filename = "test.json"; $handle = fopen($filename, "r"); $contents = fread($handle, filesize...
true
3ecb9f12cd60aaa8ba5092aacd41dfc3148ed4ff
PHP
hmanvcs/agmis
/application/models/CommodityCategory.php
UTF-8
2,062
2.84375
3
[]
no_license
<?php /** * Model for commodity categories * */ class CommodityCategory extends Category { public function setTableDefinition() { #add the table definitions from the parent table parent::setTableDefinition(); // set the table $this->setTableName('commoditycategory'); // unique constraint on name...
true
7afe99c49f57c2c7e2690c00b51a66c7ae9ee26e
PHP
nakaharag/TECNOCUBA
/assets/ajax/deleta_campanha.php
UTF-8
613
2.515625
3
[ "MIT" ]
permissive
<?php // verifica request if(isset($_POST['id']) && $_POST['id'] != "") { // inclui configuração do banco include("config.php"); // recebe valores $campanha_id = $_POST['id']; // Recupera o path do arquivo a ser excluido $get_url = mysqli_query($connect, "SELECT * FROM uploads WHERE `uploads`.`id` = ...
true
b05e951aef4457ef887ca07e6f6899675edbcb87
PHP
dastiii/Advanced-Wars
/include/boxes/topmatch.php
UTF-8
1,745
2.546875
3
[]
no_license
<?php # Copyright by: Tobias Schwarz # Support www.ilch.de defined ('main') or die ( 'no direct access' ); echo '<table width="100%" border="0" cellpadding="2" cellspacing="0">'; $akttime = date('Y-m-d'); $erg = @db_query("SELECT DATE_FORMAT(datime,'&nbsp; %d.%m.%y - %H:%i Uhr') as time,oid, id, game, s...
true
6052c29361fc5a9164fa9c74d6b28e9c35179f04
PHP
chairman68/menu
/lib/db_RestArt.php
UTF-8
1,594
3
3
[]
no_license
<?php // lib/db_RestArt.php namespace orange; class db_RestArt { private $config; private $kassa; private $conn; public function __construct ($config,$kassa){ $this->config=$config; $this->kassa=$kassa; $this->conn = sqlsrv_connect($config->db_connect->server_name, (array) $config->db_connect->kassa[$kas...
true
cfe1b891a7328d5ca5ef3d398b08c24e1b8bee62
PHP
datesz93/proba
/application/modules/valuta/models/CountuiesModel.php
UTF-8
753
2.53125
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); Class CountuiesModel extends CI_Model { function __construct() { parent::__construct(); } public function setCurrency($data) { $this->db->insert('EuropeBank', $data); $last_id = $this->db->insert_id(); if(isset($last_id) &...
true
5621ba6a788935569c4c50902e18171fffa5e838
PHP
pingdecopong/PagerBundle
/Pager/PagerView.php
UTF-8
3,353
2.59375
3
[]
no_license
<?php /** * Created by JetBrains PhpStorm. * User: fhirashima * Date: 13/07/02 * Time: 17:10 * To change this template use File | Settings | File Templates. */ namespace pingdecopong\PagerBundle\Pager; class PagerView { /** * @var \pingdecopong\PagerBundle\Pager\PagerSelector\PagerSelectorView *...
true
387b0f6fbaa136f82c97de8f08fae110d4ecc46a
PHP
MachChiemba/prog-web
/Backend/PHPOO/MVC/crud-mvc-oop-pdo-master/core/classes/Sql.php
UTF-8
2,750
3.34375
3
[ "MIT" ]
permissive
<?php /** * Sql * * @package CRUD MVC OOP PDO * @link https://github.com/utoyvo/crud-mvc-oop-pdo/blob/master/core/classes/Sql.php */ class Sql { private static $instance = NULL; /** * Query */ public static function query() { self::$instance = new self(); return self::$instance; } /** * Get...
true
0f32db7ff0ef23ce5ba94b6cbf62154d74a30b8f
PHP
DauletJspro/milion
/app/Models/Schedule.php
UTF-8
3,650
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\Auth; class Schedule extends Model { protected $table = 'schedules'; public static function rules() { return [ 'cabinet_id' => 'required', 'week_day_id' => 'required', ...
true
e5eab7e752c484a9b88240e5990dad3ca7655389
PHP
wojciechadamczyk/Podstawy
/zadanieD5.php
UTF-8
316
3.484375
3
[]
no_license
<style type="text/css"> td { border:1px solid red; padding: 5px; } </style> <?php $n = 3; echo "<table>"; for ($i = 1; $i < $n + 1; $i++) { echo "<tr>"; for ($j = 1; $j < $n + 1; $j++) { echo "<td>$i x $j = " . $i * $j . "</td>"; } echo "<tr>"; } echo "<table>";
true
52e9218d68b0e02bc6066c614aec2ea4ce35fe33
PHP
jencina/checklist
/protected/models/Proyecto.php
UTF-8
4,881
2.546875
3
[]
no_license
<?php /** * This is the model class for table "proyecto". * * The followings are the available columns in table 'proyecto': * @property integer $id * @property string $nombre * @property string $telefono * @property integer $empresa_id * @property integer $departamento_id * @property string $fecha_inicio * @...
true
868cb4e3715c814cba14640b6c3f11529e7b842e
PHP
ennulat/gaestebuch
/web/frontController.php
UTF-8
1,163
2.609375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Jes * Date: 17.01.2016 * Time: 15:26 */ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; /*use controller\StandardController; use controller\Gaestebuch;*/ require_once '../core/Router.php'; class frontController { public fu...
true
a274f14192582387997719d9ec8dfd92f671d491
PHP
gulei01/wwwbackend
/plugins/sign_in/models/SignIn.php
UTF-8
2,609
2.53125
3
[]
no_license
<?php /** * @link:http://www.gdqijianshi.com/ * @copyright: Copyright (c) 2020 广东七件事集团 * 签到插件-签到奖励配置model类 * Author: zal * Date: 2020-04-20 * Time: 15:10 */ namespace app\plugins\sign_in\models; use app\models\BaseActiveRecord; use Yii; /** * This is the model class for table "{{%plugin_sign_in}}". * * @pr...
true
40fbf98693ac4d2189fe539a3867683d6fca9eca
PHP
asalgadolemus/Basketball
/authenticate.php
UTF-8
985
2.703125
3
[]
no_license
<?php session_start(); // TODO: create a database connection $servername = "localhost"; $username = "root"; $password = ""; $dbname = "una_bball"; $conn = new mysqli($servername, $username, $password, $dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $username = $passwor...
true
cd0fe3ebd585a8e2e1adf3ed4bbad572dd6ea7c3
PHP
NimperX/Employee-management-system
/database/migrations/2020_08_10_100931_create_machine_estimate_table.php
UTF-8
1,113
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateMachineEstimateTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('machine...
true
11bd63120c5787d4756b8c83cbf8475e53bf9390
PHP
avto-dev/static-references-laravel
/tests/References/VehicleRepairMethodsTest.php
UTF-8
3,238
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace AvtoDev\StaticReferences\Tests\References; use Mockery as m; use Illuminate\Support\Str; use AvtoDev\StaticReferences\Tests\AbstractUnitTestCase; use AvtoDev\StaticReferences\References\ReferenceInterface; use AvtoDev\StaticReferences\References\VehicleRepairMethods; use Av...
true
dd50aefe6439041733c9bd60bdd21ac95edf6eba
PHP
global-php/entities
/src/Entity/Organization.php
UTF-8
2,992
2.953125
3
[]
no_license
<?php namespace GlobalPhp\Entities\Entity; use GlobalPhp\Entities\Entity\EntityTrait\PartyTrait; use GlobalPhp\Entities\ValueObject\PhoneNumber; use GlobalPhp\Entities\ValueObject\Url; class Organization implements OrganizationInterface { use EntityTrait, PartyTrait; /** * @var string */ priv...
true
1810ecdc330090254025b7802609d35a559c2910
PHP
cwmiller/broadworks-xsd-converter
/src/Restriction.php
UTF-8
3,587
2.84375
3
[ "MIT" ]
permissive
<?php namespace CWM\BroadWorksXsdConverter; class Restriction { /** @var string */ private $base; /** @var string[] */ private $enumerations = []; /** @var int|null */ private $length; /** @var int|null */ private $minLength; /** @var int|null */ private $maxLength; /*...
true
dc962d11eda764f868a17e0e4260f79bf60f55fe
PHP
hexammon/HexoNards
/src/php/Game/Action/Variant/Attack.php
UTF-8
1,160
3
3
[]
no_license
<?php declare(strict_types=1); namespace Hexammon\HexoNards\Game\Action\Variant; use Hexammon\HexoNards\Board\AbstractTile; use Hexammon\HexoNards\Game\Action\AttackEnemy; use Hexammon\HexoNards\Game\Action\PlayerActionInterface; use Hexammon\HexoNards\Game\Army; use Hexammon\HexoNards\Game\BattleService; class Att...
true
5a0db50a9e57de1ac05089b9bcbb89952fe48144
PHP
hendrix97s/controle
/app/Controller/MoneyController.php
UTF-8
2,206
2.984375
3
[]
no_license
<?php namespace App\Controller; use App\Database\Filter; use App\Helpers\Redirect; use App\Model\MoneyInput; /** * Classe Controle responsavel pelas operações * @author Luiz Lima <luiz.lima@wapstore.com.br> * */ class MoneyController { private $money; public function __construct(){ $this->money...
true
b70ebab0f78ab10c9b7fb78051f532ddfadfa50c
PHP
eXce1z0r/Schedule-with-elements-of-horror
/union_schedule/www/assets/php/MyConfig.php
UTF-8
545
2.640625
3
[]
no_license
<?php $dhost="127.0.0.1"; $dname="schedule"; $duser="root"; $dpass="root"; $charset = 'cp1251'; $dsn = "mysql:host=$dhost;dbname=$dname;charset=$charset"; $opt = array(PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_...
true
bdf36305d4022420014f4e994bd24c0f48a693ab
PHP
tearofenemy/learn-php.oop
/admin/upload.php
UTF-8
3,810
2.53125
3
[]
no_license
<?php include("includes/header.php"); ?> <?php if(!$session->signedIn()){ redirect('login.php'); } ?> <?php $err_message = ""; if(isset($_POST['submit'])){ $photo = new Photo(); $ph...
true
187ee13ff084aad03a65a1712e945dba27492244
PHP
nettowebart/teste
/htdocs/filmes/src/Controller/DeletarController.php
UTF-8
713
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace App\Controller; use App\Model\FilmeRepository; use App\Model\Repository\FilmeRepository as RepositoryFilmeRepository; class DeletarController{ private $lista; public function __construct($id) { $this->lista = new RepositoryFilmeRepository; $this->processaRequisicao($id);...
true
d37129225ad73c176e25724e5ab6cf5f0ee8a60a
PHP
GlenLauwers/Web-Frontend
/Oefeningen/Deel_2/2. AJAX/Sjabloon website/index.php
UTF-8
219
2.53125
3
[]
no_license
<?php header("Content-Type: application/json"); $var1 = $_POST['var1']; $var2 = $_POST['var2']; $jsonObj = '{ "obj1" : { "eigenschapA" : "'.$var1.'" , "eigenschapB" : "'.$var2.'"} }'; echo $jsonObj; ?>
true
29fd09781ec1c1dcf625cd128085d52492234b4e
PHP
gorandam/kptask
/kptask/src/Core/src/Validator/AbstractValidationManager.php
UTF-8
1,681
2.921875
3
[]
no_license
<?php declare(strict_types=1); namespace Kptask\Core\Validator; /** * Class AbstractValidationManager * @package Kptask\Core\Validator */ abstract class AbstractValidationManager { /** * @var array */ private $valConfig; /** * AbstractValidationManager constructor. * @param array ...
true
1b4b3c6f360c7165dc080624e9f2450db04b5114
PHP
Monitch/Test
/Repead.php
UTF-8
1,107
3.296875
3
[]
no_license
<?php session_start(); header("Content-Type: text/plain; charset=utf-8"); if (!isset($_SESSION['time'])&& !isset($_SESSION['$age'])) { require_once("htmltest.html"); $_SESSION['$name'] = $_POST['name']; $_SESSION['$age'] = $_POST['age']; echo $_SESSION['$name'] . " " . $_SESSION['$age']; } else { ...
true
ca2e69bae27a5242717b2641c0a3ffd5680fd7b5
PHP
duytc/ur-api
/src/UR/Model/Core/ReportSchedule.php
UTF-8
1,780
2.828125
3
[ "MIT" ]
permissive
<?php namespace UR\Model\Core; class ReportSchedule implements ReportScheduleInterface { /** * @var int */ protected $id; /** * @var ReportViewInterface */ protected $reportView; /** * @var array */ protected $emails; /** * @var */ protected...
true
41fae9056e8dc43f7896103c43c7fb928fcc3141
PHP
interaapps/lehr.ga
/databases/migrate/ChatUsersTable.php
UTF-8
494
2.5625
3
[]
no_license
<?php namespace databases\migrate; use modules\uloleorm\migrate\Migrate; class ChatUsersTable extends Migrate { public function database() { $this->create('chat_users', function($table) { $table->int("id")->ai(); $table->int("chat_id"); $table->int("user_id"); ...
true
7d12c14d40d34fec8f4b4807efe2b5cfb2c31832
PHP
LissetteHuilca/leccionPHP
/leccion/actualizarUsuario.php
UTF-8
606
2.65625
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE HTML> <html> <head> <title></title> </head> <body> <div id="main"> <?php $fechaNacimiento=$_POST["fechaNacimiento"]; $tipo=$_POST["tipo"]; $nombre=$_POST["nombre"]; $id_demo=$_POST["id_demo"]; echo "Edicion en proceso... </br>"; include_once("usuariosCollector.php"); $UsuarioCo...
true
db05738208cc9d770fa2653ad0217ae69986a842
PHP
Aksi0/concurrent-requests
/AmpHttpRequestsClass.php
UTF-8
2,642
2.890625
3
[]
no_license
<?php use Amp\Artax\DefaultClient; use Amp\Artax\Request; use Amp\Artax\Response; use Amp\Coroutine; use Amp\Promise; use Amp\Loop; use function Amp\call; /** * Class AmpClass */ class AmpHttpRequestsClass { /** @var array */ protected $urls = []; /** @var DefaultClient */ protected $client; p...
true
0df1e990025b394965e3a3dbb242553776ab7132
PHP
Matthew32/twitter_games_project
/app/Console/Commands/tweet.php
UTF-8
1,645
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use \Twitter; use App\games; class tweet extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'sms:tweet'; /** * The console command description. ...
true
cf889dc95ddd87709c66b420e74cb9372eb78e40
PHP
wuhaiyans/zuji_order
/app/Warehouse/Modules/Func/WarehouseHelper.php
UTF-8
799
2.578125
3
[ "MIT" ]
permissive
<?php /** * User: wansq * Date: 2018/5/24 * Time: 19:52 */ namespace App\Warehouse\Modules\Func; use App\Lib\Curl; use App\Warehouse\Config; class WarehouseHelper { /** * 生成单号(发货单/收货单) */ public static function generateNo() { return date('YmdHis') . rand(1000, 9999); } pu...
true
37d9fc8ecbb16b1b77eaea42526f6c32e5aa76df
PHP
sumbochao/PTUD_CT_N2
/lib/Loader.php
UTF-8
1,344
2.53125
3
[]
no_license
<?php class Loader { protected $controller = "trangchu"; protected $action = "index"; protected $params = []; function __construct() { $url = $this->UrlProcess(); // print_r($url); if($url[0] == 'dangxuat') { // $nutdangxuat=$_REQUEST['dangxuat']; session_destroy(); ech...
true
415e9b1f0345e78f0ad6fd564b596e8c828c8191
PHP
zwssd/shennongphp
/system/lib/pag.php
UTF-8
3,268
2.828125
3
[ "MIT" ]
permissive
<?php // 框架根 defined('SYSTEM_PATH') or exit('没有有效的根路径!'); class Pag { public $url = ''; public $total = 0; public $page = 1; public $limit = 20; public $num_links = 8; public $first = '|&lt;'; public $last = '&gt;|'; public $next = '&gt;'; public $prev = '&lt;'; public $full_start = '<div class="pag">'; p...
true
c8185a1ffeed8b51ec4570a5cb4e12007f82e7af
PHP
bhoover10001/Jurgensville
/classes/ComboDeal.php
UTF-8
915
3.703125
4
[]
no_license
<?php /** * Created by PhpStorm. * User: bhoover * Date: 7/12/2014 * Time: 10:12 AM * * a Combo Deal is when a set of items are combined with a special price point. */ class ComboDeal { // The price of the packageMeal private $price; // This is going to be a set of items. Since this is a set, the ...
true
f94a69c8952c3ce7667ca65b035ed00fab4dbff9
PHP
jessyfouace/easyBuyRewrite
/entities/Ticket.php
UTF-8
2,239
3.296875
3
[ "MIT" ]
permissive
<?php class Ticket { protected $idTicket; protected $idCreatorTicket; protected $idUserTicket; protected $idAppartmentsTicket; public function __construct(array $array) { $this->hydrate($array); } public function hydrate(array $donnees) { foreach ($donnees as $key => $val...
true
89c9af67773f7dd490dafdf87b79530cc932ae46
PHP
KanchanaThiliniAbeyrathna/OnlineGPACalculator
/semester.php
UTF-8
7,001
2.609375
3
[]
no_license
<?php ob_start(); session_start(); require_once 'dbconnect.php'; if(isset($_GET['delete_id'])) { mysql_query("DELETE FROM semester WHERE semesterId=".$_GET['delete_id']); header("Location: semester.php"); } if(isset($_GET['edit_id'])) { $result_set=mysql_query("SELECT * FROM semester WHERE se...
true
d22ddcc67e4677aa0709f51e151c03b849654c06
PHP
filip179/aledruhu_base
/src/Bundle/AppBundle/Security/User/AdminUserProvider.php
UTF-8
917
2.703125
3
[]
no_license
<?php namespace AppBundle\Security\User; use AppVerk\UserBundle\Security\User\AbstractUserProvider; use AppBundle\Entity\User; use Symfony\Component\Security\Core\Exception\UsernameNotFoundException; use Symfony\Component\Security\Core\User\UserInterface; class AdminUserProvider extends AbstractUserProvider { /*...
true
bf326de1a04ac57143b39b09e86b7f92113411ed
PHP
anjipavuluri21/ambition
/application/models/Chapters_model.php
UTF-8
1,352
2.71875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Chapters_model extends CI_Model { public function __construct() { parent::__construct(); } public function insertChapters($insert_data) { $chapters_list = array( 'subject_id ' => $insert_data['subject_id'], 'chapter_name' => $insert_data['chapter_name']...
true
614e718b8b67d7f84cdc3c1a93441e115b3740e0
PHP
Vanessa-D/PHP-Part5-Exo2
/info.php
UTF-8
2,006
3
3
[]
no_license
<!DOCTYPE html> <html lang="fr"> <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"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrit...
true
c958f4627ec84d7cc0464ecca028e400ad55eeea
PHP
NatriumTrioksida/IF3110-01-Simple-Blog
/assets/php/module/PostDataManager.php
UTF-8
4,741
3.015625
3
[]
no_license
<?php class PostDataManager { const ID_LENGTH = 10; const INDEX_FILENAME = "/index.json"; protected $post_path; protected $index_path; public function __construct($post_path, $index_path) { $this->post_path = $post_path; $this->index_path = $index_path; } /*POSTING PART*/ public function get_po...
true
7ab2fa14b95fe2667a4c271588bd6060f6def548
PHP
hogejiro/study_books
/an_introduction_to_design_pattern_by_java/php/02_adapter/Banner.php
UTF-8
312
3.515625
4
[]
no_license
<?php class Banner { private $string; public function __construct($string) { $this->string = $string; } public function showWithParen() { printf("(%s)\n", $this->string); } public function showWithAster() { printf("*%s*\n", $this->string); } }
true
d14b9a0c94a5308b592a6df905ac1158c6b0bfce
PHP
wbj307542607/php-ide-helper
/src/Yaf/Session.php
UTF-8
4,579
2.9375
3
[]
no_license
<?php /** * Yaf自动补全类(基于最新的3.0.7版本) * @author shixinke(http://www.shixinke.com) * @modified 2018/05/20 */ /** *yaf的会话对象 */ namespace Yaf; final class Session implements \Iterator,\Traversable,\ArrayAccess,\Countable { /** * @var Yaf_Session $_instance * session对象 * @access protected */ prot...
true
caa5414f8c74d055c32e1eb8ce6dde2d5e3cc08f
PHP
3jFernando/ManageSMB
/example.php
UTF-8
602
2.546875
3
[ "MIT" ]
permissive
<?php require('vendor/autoload.php'); $user= $_POST['user']; $password= $_POST['password']; $host= $_POST['host']; $workgroup= $_POST['workgroup']; $share= $_POST['share']; try { $auth = new \Icewind\SMB\BasicAuth($user, $workgroup, $password); $serverFactory = new \Icewind\SMB\ServerFactory(); echo "Conectando....
true
34cbb2004dfe249947d2aa15e8bd6b945a63ba2f
PHP
Kyrst/MBS
/app/Models/User_Song.php
UTF-8
1,460
2.65625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Support\Facades\DB; class User_Song extends \Illuminate\Database\Eloquent\Model { const STATUS_PROCESSING = 'processing'; const STATUS_PROCESSED = 'processed'; const URL_VIEW = 1; public $table = 'user_songs'; public function versions() { return $this->hasMany('\A...
true
13b115e159c7b17f5cab2ba0aa2caf09b425664f
PHP
dabadieng/baseAvion
/www/ville_edit.php
UTF-8
1,598
2.5625
3
[]
no_license
<?php require "../_include/inc_config.php"; if (isset($_POST["btsubmit"])) { $_POST=array_map("cb_mres",$_POST); extract($_POST); if ($vi_id==0) $sql = "insert into ville values (null,'$vi_nom')"; else $sql = "update ville set vi_nom='$vi_nom' where vi_id=$vi_id"; i...
true
b1418884a118f028fd45181122598668cc7b5863
PHP
reuvenc770/mt2-demo
/app/Services/MT1ApiService.php
UTF-8
3,153
2.546875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: pcunningham * Date: 2/10/16 * Time: 1:30 PM */ namespace App\Services; use App\Services\API\MT1Api; use Cache; use Log; class MT1ApiService { protected $api; protected $response; protected $cache; public function __construct(MT1Api $api, Cache $cache) ...
true
8dff15c826c18eb4ac5ab2470b8ed4addaefc801
PHP
CuongMark/AngelAuction
/app/code/Angel/Auction/Api/BidRepositoryInterface.php
UTF-8
1,562
2.609375
3
[]
no_license
<?php namespace Angel\Auction\Api; use Magento\Framework\Api\SearchCriteriaInterface; interface BidRepositoryInterface { /** * Save Bid * @param \Angel\Auction\Api\Data\BidInterface $bid * @return \Angel\Auction\Api\Data\BidInterface * @throws \Magento\Framework\Exception\LocalizedException...
true
413d074d785bde112909349afe4fb725886d20f6
PHP
codeofvenom/php-cronjob-postgresql-example-openshift
/php-cronjob/koneksi.php
UTF-8
526
2.5625
3
[]
no_license
<?php $servername = getenv(strtoupper(getenv("DATABASE_SERVICE_NAME"))."_SERVICE_HOST"); $dbname = getenv("DATABASE_NAME"); $username = getenv("DATABASE_USER"); $password = getenv("DATABASE_PASSWORD"); $conn_string = "host=".$servername." dbname=".$dbname." user=".$username." password=".$password.""; $connection = pg...
true
4f410450c56ae66251766cbb440c376b027304e5
PHP
EfratSeneor/PPE_BTS_SIO_GSB_PHPMySql
/controleurs/c_validerFrais.php
UTF-8
5,810
2.546875
3
[]
no_license
<?php /** * Gestion de l'affichage des frais * * PHP Version 7 * * @category PPE * @package GSB * @author Efrat Seneor * @author Beth Sefer */ $action = filter_input(INPUT_GET, 'action', FILTER_SANITIZE_STRING); $id = $_SESSION['id']; $mois=getMois(date('d/m/Y')); switch ($action) { case 'selec...
true
c615fff74fe4cb0c6e2440bd9f05d4d5455c1ac7
PHP
dpertal/morfy-admin-panel
/admin/api/Morfy.panel.php
UTF-8
6,038
2.515625
3
[ "MIT" ]
permissive
<?php defined('PANEL_ACCESS') or die('No direct script access.'); /** * Panel * * @package Panel * @author Moncho Varela / Nakome <nakome@gmail.com> * @link http://monchovarela.es * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source c...
true
2be976e7ac13ff1762f606427fe8addb0ee81bbd
PHP
masumskaib396/doop-companion-
/inc/helper-functions.php
UTF-8
2,644
2.59375
3
[]
no_license
<?php /** * Meta Output * * @since 1.0 * * @return array */ if ( ! function_exists( 'doop_get_meta' ) ) { function doop_get_meta( $data ) { global $wp_embed; $content = $wp_embed->autoembed( $data ); $content = $wp_embed->run_shortcode( $content ); $content = do_shortcode...
true
ae409b1e272ee36ec63453716656779405c033ed
PHP
CubeBlack/EddysWorld-old
/server/eddysworld_server.php
UTF-8
760
2.71875
3
[]
no_license
<?php function __autoload($className){ $url = "engine2/$className.class.php"; require_once $url; } // variaveis globais $config = new Config(); $dbl = new DataLocal(); $db = new Database (); $user = new User(); $go = $gameObject = new GameObject(); $inert = new Inert(); $world = new World(); $grimorio = new Grimori...
true
bdc2f8ef9794b9d07cd368bfac49ec300c6ea3c5
PHP
maweizhuo/lc
/php/412.php
UTF-8
536
3.671875
4
[]
no_license
class Solution { /** * @param Integer $n * @return String[] */ function fizzBuzz($n) { $arr = []; for($i=1;$i<=$n;$i++){ switch($i){ case $i %3 ==0 && $i%5==0: $arr[]='FizzBuzz'; break; case $i %3 ==0: $...
true
b2fbc58b2cce53cae5f5dc4d18db8a7c8ea97e49
PHP
zerocool17/finalProject
/final/includes/config.php
UTF-8
812
2.875
3
[ "MIT" ]
permissive
<?php $username = 'englandg1'; $password = 'faj3sWef'; $database = new PDO('mysql:host=localhost;dbname=db_spring18_englandg1', $username, $password); //autoload function my_autoloader($class) { include 'Classes/class.' . $class . ".php"; } spl_autoload_register('my_autoloader'); // Start the s...
true
a0f236b656543892978224902835cacddc7789a7
PHP
webteractive/expressionengine-env
/system/ee/legacy/libraries/Messages_send.php
UTF-8
30,077
2.59375
3
[ "LGPL-2.1-only", "OFL-1.1", "LicenseRef-scancode-unknown-license-reference", "Swift-exception", "Apache-2.0", "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
permissive
<?php /** * This source file is part of the open source project * ExpressionEngine (https://expressionengine.com) * * @link https://expressionengine.com/ * @copyright Copyright (c) 2003-2019, EllisLab Corp. (https://ellislab.com) * @license https://expressionengine.com/license Licensed under Apache License...
true
a796d3038ba2204cf75e1b47ff1b9d1c7b4037ae
PHP
jeromecc/tuv2
/formx/functions/GetAge2.php
UTF-8
273
2.625
3
[]
no_license
<?php function getAge2($formx) { global $patient ; global $tool; $dateToday = new clDate(); $dateNaiss = new clDate($patient->getDateNaissance()); $ageSec = $dateToday->getDifference($dateNaiss); return floor($ageSec/(365.25*24*3600)).' ans'; } ?>
true
7614de0941cf407676e89b8585cc1c75da008e42
PHP
UseAllFive/php-oara
/Oara/Network/Publisher/LinkShare.php
UTF-8
16,571
2.546875
3
[]
no_license
<?php /** * Export Class * * @author Carlos Morillo Merino * @category Oara_Network_Publisher_Ls * @copyright Fubra Limited * @version Release: 01.00 * */ class Oara_Network_Publisher_LinkShare extends Oara_Network { /** * Client * @var unknown_type */ private $_client = null;...
true