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
5d0665cf79abfc375b9ede8450316c9f5d35bd8c
PHP
pvkshanuka/PHP-Laravel-Projects
/TimeTableManagement/TimeTableManagement/app/Http/Controllers/TimetableController.php
UTF-8
1,969
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\subject; use App\periodtime; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Log; use Validator; class TimetableController extends Controller { public function index() { Log::info("index awa"); return view('timetable'); } ...
true
93a2397428c9632fd2b07c6b1deaf7fd1697d19f
PHP
iamclifford321/voting-system
/ui/php_files/getElectionDetails.php
UTF-8
980
2.828125
3
[]
no_license
<?php include 'config.php'; $sql = mysqli_query($conn, "SELECT * from election where electionId = '".$_POST['electionId']."'"); $data = mysqli_fetch_array($sql); $electionForArr = [ 'junior', 'senior', 'college' ]; foreach ($electionForArr as $electionForArrValue) { if ($electionForArrValue == $data['electionFo...
true
1657065517fa70029a5911b1c986a43d99816775
PHP
checkincash/analisar_codigo
/public_html/dashboard/model/upload.class.php
UTF-8
7,068
3.0625
3
[]
no_license
<?php /* Classe: Upload Função: Objeto responsavel por realizar upload de arquivos. Programada por: Rafael Wendel Pinheiro - Email: rafaelwendel@hotmail.com Adaptada por: Guilherme Pacheco Aparício - Email: guiaparicio@gmail.com Data: 21/06/2014 */ class Upload { protected...
true
6d81ee1df9a3a8540222d4ffcd0abcaf92b22401
PHP
kopejtko/KIV-WEB
/app/Controllers/AddTopicController.class.php
UTF-8
6,027
2.71875
3
[]
no_license
<?php // nactu rozhrani kontroleru require_once(DIRECTORY_CONTROLLERS."/IController.interface.php"); /** * Ovladac zajistujici vypsani uvodni stranky. */ class AddTopicController implements IController { /** @var DatabaseModel $db Sprava databaze. */ private $db; /** * Inicializace pripojeni k da...
true
590a710655fb5b615bf78d9ea0fd49b1183d5420
PHP
fracz/refactor-extractor
/results/splitbrain--dokuwiki/38479cbba628ee76a92ff5f3c974cfa8e6ce9e61/before/ap_manage.class.php
UTF-8
6,708
2.5625
3
[]
no_license
<?php class ap_manage { var $manager = NULL; var $lang = array(); var $plugin = ''; var $downloaded = array(); function ap_manage(&$manager, $plugin) { $this->manager = & $manager; $this->plugin = $plugin; $this->lang = & $manager->lang; } function process() { ...
true
5e3df3c15bb0d66e72eb944b1e74ccea67fa3daf
PHP
jetimob/juno-sdk-php-laravel
/src/Entity/CreditCardDetails.php
UTF-8
1,952
2.953125
3
[ "MIT" ]
permissive
<?php namespace Jetimob\Juno\Entity; use Jetimob\Http\Traits\Serializable; class CreditCardDetails implements \JsonSerializable { use Serializable; /** * @var string $creditCardId Id do cartão de crédito gerado a partir da Tokenização. Caso seja utilizado esse * parâmetro, não deve ser enviado o c...
true
186e016ca4ab1a5c3c27d3530f6242e8231a4bc4
PHP
pkeane/stvtools
/calculate_approval.php
UTF-8
828
2.625
3
[]
no_license
<?php function getApproval($result,$filepath) { $cands = array(); $data = json_decode(file_get_contents($filepath),1); $seats = (int) $data['ELECTION']['seats']; foreach ($data['BALLOTS'] as $ballot) { foreach (range(0,$seats-1) as $num) { if (isset($ballot[$num])) { $cname = $ballot[$num]; ...
true
7251bc3ec1c9e7b416f236b4dc7cb9d8cd495a35
PHP
CoinHealth/CoinHealth
/app/Commands/Quotes/GetTaxFineCommand.php
UTF-8
922
2.953125
3
[]
no_license
<?php namespace App\Commands\Quotes; use App\Commands\Command; class GetTaxFineCommand extends Command { private $applicants; private $income; /** * Create a new command instance. * * @return void */ public function __construct($applicants, $income) { $this->applicants = $applicants; $this->income...
true
3c33d4096cbd57f9bf6ee9d744fa97d3b39b65d3
PHP
Djang0/limba
/cgi/dao/CategoryInfoDAO.php
UTF-8
3,261
2.84375
3
[ "Apache-2.0" ]
permissive
<?php /** * @package limba.dao * @author Ludovic Reenaers * @since 24 janv. 2009 * * @link http://code.google.com/p/limba */ class CategoryInfoDAO extends DAO{ function getById($id){ try { $id = StringHelper::escapeSql($id); $query="select * from CATEGORIES_INFO where id=$id;"; $...
true
206b812f762cb595e2311e73487a9ad88314cc1c
PHP
andboson/YTLR
/index.php
UTF-8
7,179
2.59375
3
[]
no_license
<?php error_reporting(0); $getVideo = "YT/getvideo.php"; $format = 'free'; $q = $_GET['q']; $maxResults = 50; $htmlBody = ''; require_once 'funcs.php'; if ($_GET['plist']=='yes') { echoPlaylist($_GET['ids'], $getVideo); exit; } // This code will execute if the user entered a search query in the form // and ...
true
e2fddcd5d478571c0a3e399f422e878d2e9f67b8
PHP
datopian/viderum-theme
/inc/class-viderum-theme-settings.php
UTF-8
3,535
2.671875
3
[]
no_license
<?php /** * Template snippet for custom theme settings * * @link https://github.com/ViderumGlobal/viderum-theme * * @package WordPress * @subpackage Viderum */ /** * Theme class used to implement custom theme settings. */ class Viderum_Theme_Settings { /** * Holds the values to be used in the fields callb...
true
d7b3d68b63c5b808ad49f307ac6180a2498a5a77
PHP
LyNNe-12/PhPsite
/valid.php
UTF-8
274
2.765625
3
[]
no_license
<?php if ($_SERVER['REQUEST_METHOD'] == 'POST'){ $name = $_POST['name']; $surname = $_POST['name']; echo("Ваше имя: $name"."Ваша фамилия: $surname"); } else { echo('Ошибка в получении данных из формы ввода'); } ?>
true
ffe010c9c7f788496c1211c798304537410bd257
PHP
WillianDouglasDeMelo/Calculadora-PHP
/indexoo.php
UTF-8
235
3.234375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Toni * Date: 23/08/2018 * Time: 21:22 */ class People { public function getHello($name) { return "Hello {$name}!"; } } $p = new People; echo $p->getHello("Toni"); ?>
true
e9fe8976cd77b0ee3e4aaa9b5ab18922d807efc7
PHP
silnose/guiar
/app/Models/Category.php
UTF-8
529
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Category extends Model{ use Uuids; protected $dates = ['created_at', 'updated_at', 'deleted_at']; protected $fillable = [ 'name', ]; protected $hidden = ['created_at', 'updated_at', 'deleted_at']; /* Mutators...
true
4922821d59ba3c5fad8f939baffb834bf8fbdb80
PHP
eytanfb/AgileBoardProject
/WebApp/adm.php
UTF-8
2,336
2.515625
3
[]
no_license
<?php require_once('includes/session.php'); ?> <?php require_once('includes/connection.php'); ?> <?php echo "<script language='javascript' type='text/javascript'>"; # comment next line for development mode. This line works only on the greenbay server. #echo "window.location.href=(\"../../cs577auth/aut...
true
f549ed6d1519250c29d68c3ab5abc220c302bb58
PHP
zhangfengjin/php-session
/src/Session/SessionStoreInterface.php
UTF-8
1,767
2.890625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: fengjin1 * Date: 2017/12/11 * Time: 17:09 */ namespace XYLibrary\Session; interface SessionStoreInterface { /** * 获取存储sessionId的cookie名称 * @return mixed */ function getName(); /** * session id * @return mixed */ function get...
true
0533c2617f99f3a701009e9c277b3293e35bbc8c
PHP
kreatifIT/feeds
/vendor/php-instagram-api/php-instagram-api/Tests/TagTest.php
UTF-8
758
2.5625
3
[ "MIT" ]
permissive
<?php require_once( '_autoloader.php' ); class TagTest extends PHPUnit_Framework_TestCase { protected $access_token = '11007611.f59def8.4f942a67c9174159a1601a037490d3ea'; protected $instagram; protected $tag; protected $valid_tag = 'almostdied'; protected function setUp() { $this->instag...
true
7224088eeb8e6dab9cc1d2ddb3892d71ea1ddc5f
PHP
Sammaye/stagex
/glue/Session.php
UTF-8
5,080
3.03125
3
[]
no_license
<?php /** * Default Session Class * * This is the default session class of the framework. */ namespace glue; use glue; class Session extends \glue\Component{ /** * This decides the lifetime (in seconds) of the session * * @access private * @var int */ public $lifeTime='+2 weeks'; public $sessionCo...
true
9406ed61f65a77d162f939d2613a9a0a9748c7a6
PHP
arminbayat/afra
/app/Repository/BaseRepository.php
UTF-8
5,957
2.953125
3
[ "MIT" ]
permissive
<?php namespace App\Repository; use App\Common\Exception\RepositoryException; use App\Common\Tools\Setting; use Illuminate\Container\Container; use Illuminate\Contracts\Container\BindingResolutionException; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; use Illuminate\Pagination\Len...
true
bfccb7021a9fea92a062d620a4aa836537c96e11
PHP
simonearata/deliveboo-team6-master
/database/seeds/TypesTableSeeder.php
UTF-8
630
2.71875
3
[ "MIT" ]
permissive
<?php use App\Type; use Illuminate\Database\Seeder; class TypesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $types = [ 'Ristorante', 'Pizzeria', 'Osteria', 'Trattoria', ...
true
a374409917806da385faaee537796dbf6ffa2c4f
PHP
extremedawson/CS360-DB-Project
/docPatients.php
UTF-8
6,341
2.671875
3
[]
no_license
<?php session_start(); error_reporting(0); include("includes/dbconn.php"); include("functions.php"); $con = new mysqli($servername, $username, "", "db1", $sqlport, $socket); if ($con->connect_error) { die("Failed to connect: " . $con->connect_error); } $user_data = check_login($con...
true
9dd0124b210484571568261dafe4e743b67fd8db
PHP
swwinslow/capstone-backend
/GetAllStations.php
UTF-8
2,670
2.71875
3
[]
no_license
<?php // For 4.3.0 <= PHP <= 5.4.0 if (!function_exists('http_response_code')) { function http_response_code($newcode = NULL) { static $code = 200; if($newcode !== NULL) { header('X-PHP-Response-Code: '.$newcode, true, $newcode); if(!headers_sent()) ...
true
149558180fe0615d008c12c5b2e434d670cccd90
PHP
nsatheesh87/escraper
/app/Scraper/Services/EmailScraper.php
UTF-8
777
3.03125
3
[ "MIT" ]
permissive
<?php // app/Scraper/Services/LinkScraper.php namespace App\Scraper\Services; class EmailScraper implements ScrapServiceInterface { /** * @var */ protected $url; /** * @param string $url * @return array */ public function scrap($url = '') { $this->...
true
9541b935e16f9691c8b57109794d082670b5fd26
PHP
zohurulislambd/faculty
/mzi_apps/models/Publication_model.php
UTF-8
1,526
2.5625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: web developer * Date: 12/18/2018 * Time: 11:49 AM * @property CI_Input input * @property CI_DB_query_builder db * @property CI_Upload upload */ class Publication_model extends CI_Model { public function __construct() { parent::__construct(); } ...
true
fa28d092a4c461870d5ed3ce2ce88006395fbfde
PHP
hihydra/yuecms
/app/Service/Api/BaseService.php
UTF-8
638
2.609375
3
[]
no_license
<?php namespace App\Service\Api; /** * 基类service */ class BaseService { public function __construct(){ $this->url = env('API_URL'); $this->client = new \GuzzleHttp\Client(['base_uri' => env('API_URL')]); //api接口地址 } public function http_curl($path,$query,$mothod="GET"){ $response = $this->client->re...
true
c9c3162a6abca267144b556bb06901cf410128de
PHP
riboni/myTMDb-V3
/classes/tmdbCollection.php
UTF-8
2,036
3.25
3
[]
no_license
<?php class TMDBCollection{ //Variables; var $id; var $name; var $posterPath; var $backdropPath; //Lists; var $parts = array(); var $images = array(); //Constructor; function TMDBCollection($basicValues = false){ if( is_array( $basicValues ) ){ $this -> loadBasicValues($basicValues); ...
true
e8777d0122a545f33e16dd8bed39fa60e09700c9
PHP
Charwillbro/PHP
/testDatabase.php
UTF-8
259
2.546875
3
[]
no_license
<?php include 'Database.php'; $db = new Database("wdv341","root","","localhost"); $sql = "SELECT * FROM wdv341_events"; //$sql = "#)(@#)(#@$)(@#$)(@#)#)($"; $db->preparePDO($sql); $rowCount = $db->executePDO(); echo "<h3>$rowCount</h3>"; ?>
true
bf49a3404eed64061d070b0a38399703fc032e43
PHP
PatBass/bambou-afrique
/src/InvoiceBundle/Security/ComptabiliteAuthenticator.php
UTF-8
2,859
2.578125
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace AFMP\InvoiceBundle\Security; use Symfony\Component\Security\Core\Authentication\SimplePreAuthenticatorInterface; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\Exception\AuthenticationException; use Symfony\Component\Security\Core\Authentica...
true
885d885845dc244e1468db99c9d842db576b6a64
PHP
arthur-dev/vinologies
/src/Vinologie/ServiceBundle/Entity/Degustation.php
UTF-8
2,249
2.75
3
[]
no_license
<?php /** * Created by PhpStorm. * User: arthur * Date: 18/02/16 * Time: 17:05 */ namespace Vinologie\ServiceBundle\Entity; use Vinologie\UtilsBundle\Entity\Address; use Vinologie\UtilsBundle\Entity\UserRichResource; class Degustation extends UserRichResource { /** * @var Address */ protect...
true
8c643401614f92242d3cbdcd2f1d886508d61e94
PHP
essential-php/php-di
/tests/ContainerTest.php
UTF-8
2,628
2.703125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Essential\Test\Di\Component; use PHPUnit\Framework\TestCase; use Essential\Di\Container; use stdClass; /** * Class ContainerTest * * @package Essential\Test\Di * @author Jamil Malek <jamil.malek@gmail.com> */ class ContainerTest extends TestCase { /** * @var Container */ priva...
true
fbfc1a141d48d06162e20fee3fff1b62487869e9
PHP
maxbeutel/ext.riak
/tests/unit/RiakClientTest.php
UTF-8
1,524
2.609375
3
[]
no_license
<?php class RiakClientTest extends PHPUnit_Framework_TestCase { public function testDefaultValues() { $client = new riakClient(); $this->assertSame(2, $client->getR()); $this->assertSame(2, $client->getW()); $this->assertSame(2, $client->getDW()); } public ...
true
ae6eb5d05a07f7bd80ed62982197526416c07653
PHP
capci/Collections
/Collections/src/Capci/Collections/HashMap.php
UTF-8
8,362
2.875
3
[ "MIT" ]
permissive
<?php /** * @package Capci\Collections * @version 0.9 * @author capci https://github.com/capci * @link https://github.com/capci/Collections Capci\Collections * @license http://www.opensource.org/licenses/mit-license.php MIT License */ declare (strict_types = 1); namespace Capci\Collections; /** * ハッシュテーブルで実装さ...
true
90b6017dc1a10e00bc83624be5e777cb4b92b3d8
PHP
Jawgo/School
/www/addAppointment.php
UTF-8
419
2.6875
3
[]
no_license
<?php include 'config.php'; if (!$link) die("Connection failed: " . mysqli_connect_error()); $query = "INSERT INTO appointment (Date, Time, PID, Prac_ID) Values($Date, $Time, $PID, $Prac_ID)"; if (mysqli_query($link, $query)) { echo "New record created successfully"; } else { ...
true
c451a8efdccff17ff4a6b86b8df858dbb053e0bf
PHP
Pfillip/ilias
/Services/WebServices/ECS/classes/Course/class.ilECSCmsCourseCommandQueueHandler.php
UTF-8
4,748
2.59375
3
[]
no_license
<?php /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */ include_once './Services/WebServices/ECS/interfaces/interface.ilECSCommandQueueHandler.php'; include_once './Services/WebServices/ECS/classes/class.ilECSSetting.php'; include_once './Services/WebServices/ECS/classes/class.ilECSParti...
true
2f86d0f989ae2c636b037cc520f24311ab9ee7db
PHP
DavidMza/biblioteca
/controladores/gestorContenido/controladoresEspecificos/ControladorUsuario.php
UTF-8
5,548
2.578125
3
[]
no_license
<?php require_once 'ControladorGeneral.php'; class ControladorUsuario extends ControladorGeneral { function __construct() { parent::__construct(); } public function agregar($datos) { try { session_start(); $parametros = array("nombre" => $datos["nombr...
true
bb66e7859e95431c8a78cafbda7656016dc17523
PHP
vantai95/Shoo-Laravel
/source/cms/app/Http/Controllers/Admin/AboutUsController.php
UTF-8
4,175
2.609375
3
[]
no_license
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\AboutUs; use Illuminate\Support\Facades\Session; use File; class AboutUsController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\View...
true
6728585dd09c42d4fc0bef6b0e8feb1af68a4fe5
PHP
ljjiong/xiaogu
/application/common/model/ActivityFullRules.php
UTF-8
2,243
2.515625
3
[ "Apache-2.0" ]
permissive
<?php namespace app\common\model; /* * 【满减促销活动规则模型】 */ class ActivityFullRules extends BaseModel { // 指定数据表 protected $table = 'work_activity_full_rules'; //类型转换 protected $type = [ 'id' => 'integer', 'market_activity_id' => 'integer', 'user_level_ids' =>...
true
697b6366f7e082fb7aeae17fbb3f114b9729f7fa
PHP
khoallaby/bsc-brinkman
/functions/class.base.php
UTF-8
492
2.75
3
[]
no_license
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly abstract class base_plugin { private static $instance = array(); protected function __construct() { } public static function get_instance() { $c = get_called_class(); if ( !isset( self::$instance[$c] ) ) { ...
true
23f89fba2c452a17af7a7cad4da81bae704de4bc
PHP
GiorgioBertolotti/hashcode-framework
/rounds/2020-reply/reader-seb.php
UTF-8
2,628
2.9375
3
[]
no_license
<?php use Utils\Log; use Utils\FileManager; use Utils\Stopwatch; require_once '../../bootstrap.php'; // Classes class Employee { public $type; public $id; public $company; public $bonus; public $numSkills; public $skills; public $coordinates = []; public function __construct($type, ...
true
f6db2466dfaaeb5a50c8853a38db5479549ee07d
PHP
konecnyjakub/html
/src/Container.php
UTF-8
544
3.0625
3
[]
no_license
<?php declare(strict_types=1); namespace HTML; /** * Container * * @author Jakub Konečný */ class Container extends BaseElement { use TContainer; public function __construct(string $name, string $id = "") { $this->name = $name; $this->attributes["id"] = $id; } protected function renderOpening():...
true
0032c23eac9fe69694cce7882bfa04404c1bb74f
PHP
cocoonprojects/ora
/module/Accounting/test/unit/Accounting/Service/EventSourcingAccountServiceTest.php
UTF-8
2,079
2.515625
3
[]
no_license
<?php namespace Accounting\Service; use Prooph\EventStoreTest\TestCase; use Prooph\EventStore\Stream\Stream; use Prooph\EventStore\Stream\StreamName; use Rhumsaa\Uuid\Uuid; use Application\Entity\User; use People\Organization; class EventSourcingAccountServiceTest extends TestCase { /** * * @var AccountService ...
true
e0e4c0da3419e2eedc6dc9af2aac8e528878f874
PHP
mehmeteyupkatirci/NarMuzik
/app/Console/Commands/AlbumTracks.php
UTF-8
1,354
2.703125
3
[]
no_license
<?php namespace App\Console\Commands; use App\Album; use Illuminate\Console\Command; use App\Services\SpotifyService; use Illuminate\Support\Facades\Artisan; class AlbumTracks extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = ...
true
ae71a42f7b5443c39cc9b53bbfc487f055e34d0f
PHP
y18272609659/testR
/app/helpers.php
UTF-8
2,545
3.171875
3
[]
no_license
<?php /** * 转换时间戳为游戏内时间 * @param int $timestamp 游戏时间戳 * @return string */ function gameTime($timestamp) { if (!is_numeric($timestamp)) { return 'Error time revert process.'; } $year = 1; $month = 1; $day = $timestamp / 15; if ($day >= 360) { $year += intval($day / 360); ...
true
a7197f91e86cbafabef23e4be217f698eb09e5ad
PHP
edwinflores/phpExercises
/_Strings/sqlSlashTest.php
UTF-8
186
3.203125
3
[]
no_license
<?php $string = <<< EOF "It's never going to work," she cried, as she hit the backslash (\) key. EOF; $string = addslashes($string); echo $string; echo stripslashes($string) . "\n"; ?>
true
e89c8043830db0ce70b37d1c9c3a4a8612a5cee8
PHP
jstewmc/evaluate-number
/src/EvaluateNumber.php
UTF-8
12,986
2.90625
3
[ "MIT" ]
permissive
<?php /** * The file for the evaluate-number service * * @author Jack Clayton <clayjs0@gmail.com> * @copyright 2016 Jack Clayton * @license MIT */ namespace Jstewmc\EvaluateNumber; /** * The evaluate-number service * * @since 0.1.0 */ class EvaluateNumber { /* !Constants */ /** * @var in...
true
03f6c8d45284593ab5a23da518c1c83369d4bffa
PHP
nikos-glikis/symfony-bootstrap
/rename.php
UTF-8
3,715
2.546875
3
[]
no_license
<?php #bundle import does not work. echo "Company Part of Namespace: "; $company = ucfirst(trim(fgets(STDIN))); printLine("Company: " . $company); echo "Package name of Namespace: "; $package = ucfirst(trim(fgets(STDIN))); $folder1 = $company; $folder2 = $package; printLine("Package: " . $package); $currentBundleDir...
true
a673090c8b25bc5024b1429a229860f5a18caf3d
PHP
AriaAv/PHP-Samples
/5-System/chap_21/sample6.php
UTF-8
345
2.890625
3
[ "MIT" ]
permissive
<?php $command = "users"; $logged_in = explode(' ', shell_exec($command)); for ($i = 0; $i < count($logged_in); $i++) { if ($argv[1] == trim($logged_in[$i])) { $found_user = 1; } } if($found_user) { print "User $argv[1] is currently logged in\n"; } else { print "User $argv[1] is NOT current...
true
bf150e4b0744f6364157eebab16800a76a26efcd
PHP
paulcacheur/sauvegarde_PHP
/tests et back up/exercice/bonjour.php
UTF-8
2,469
2.71875
3
[]
no_license
<!DOCTYPE html> <html lang="fr"> <head> <!-- nomenclature caractères--> <meta charset="UTF-8"> <!-- titre du doc --> <title>index.html</title> <!-- interface responsive --> <meta name="viewport" content="width=device-width, initial-scale=1.0 shrink-to-fit=no"> <!-- lien avec CDN bootstrap...
true
fbd37ecf3d09b1a8c525edfe2a3166908b98ecbe
PHP
OpenConextApps/OpenConextApps-WordPress
/conext-groupauthz-plugin/conext-group-authz/CozmanovaPHPCommons/lib/Logger/Log.php
UTF-8
1,860
2.671875
3
[]
no_license
<?php /** * Logger::Log logging functions * * @copyright 2011 * Cozmanova bv * http://www.cozmanova.com * */ if ( ! defined('__CPC_LOGGER_LOG_PHP') ) { define( '__CPC_LOGGER_LOG_PHP', 1 ); class Logger_Log { public static $LOG_LEVEL_TRACE = "trace"; public static $LOG_LEVEL_DEBUG = "debug"; public...
true
65de0e42187bc9dfae4a90120119368e72cdfa00
PHP
kevin1193/contact-info
/api/app/Essentials/Abstracts/AbstractResourceCollection.php
UTF-8
859
2.5625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: kevin * Date: 05/02/2018 * Time: 11:00 PM */ namespace App\Essentials\Abstracts; use Illuminate\Http\Resources\Json\ResourceCollection; class AbstractResourceCollection extends ResourceCollection { public function __construct($resource) { $resource = $thi...
true
f63d48dbe0095fa99b9114792ff9e14081b7e665
PHP
KohoVolit/KohoVolitAPI
/projects/data/resources/ParliamentInfo.php
UTF-8
2,768
3.171875
3
[]
no_license
<?php /** * \ingroup data * */ class ParliamentInfo { /** * Read the info about parliament * * \param $params An array of pairs <em>column => value</em> specifying the countries to select. * * \return An array of countries that satisfy all prescribed column values. * * \ex * \code * read(array('...
true
4ae95152fb7cd98a3da6240e705906cd1fea0423
PHP
170100280/PicsBot
/AcaAmUtil.php
UTF-8
4,427
2.765625
3
[]
no_license
<?php class AcaAmUtil { const BOT_SIGNATURE = "For educational tests only"; // função para consumo de um URL public static function consumeUrl($pUrl) { $ch = curl_init($pUrl); if ($ch) { curl_setopt( $ch, CURLOPT_HTTPGET, tru...
true
a0776c3f2d15cc70206b0321ddd2c3a790711a19
PHP
EdgarIn64/toy_store
/controlador/mostrarMensajes.php
UTF-8
3,135
2.703125
3
[]
no_license
<?php require("../modelo/AccesoDatos.php"); function verMensajes($usuario,$conversacion){ //MUESTRA LOS MENSAJES DE LA CONVERSACION (NO MUESTRA NADA PORQUE NO HAY REGISTROS) if($usuario!=" "|| $conversacion!=" "){ $idSesion= $_SESSION['datos'][0][0]; $db = new AccesoDatos(); $db->c...
true
6706f642cf80dd8bbb6ecd50a1f7a86fbfe74800
PHP
PLATYPUSCO007/Proyecto_Amarey
/import-export-legacy/src/LegacyFile/Import.php
UTF-8
6,970
2.890625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * Class file Import file * * PHP version 5.3 * * * @category LegacyFile * @package src * @subpackage Import * @author Moises Barquin <moises.barquin@gmail.com> * @copyright Moises Barquin 2016 * @version GIT: $Id$ */ namespace mbarquin\LegacyFile; /** * Class to help on importation...
true
046bc39d1e8ce64a8eea595f85f404d54fbb89a1
PHP
renzy/php_alphager
/alphager.class.php
UTF-8
881
3.078125
3
[]
no_license
<?php class alphager { public $base_chars_default = array( 'a','b','c','d','e','f','g','h','i','j','k','l','m', 'n','o','p','q','r','s','t','u','v','w','x','y','z' ); public function __construct($base_chars_custom=false){ $this->chars = ($base_chars_custom) ? $base_chars_custom : $this->base_chars_default; ...
true
c899fad40e6a1ee8facf38ee8f1dbd287f677c1e
PHP
fly-studio/laravel
/vendor/addons/core/src/helpers.php
UTF-8
1,142
2.5625
3
[ "MIT" ]
permissive
<?php if (! function_exists('delay_unlink')) { function delay_unlink($path, $delay) { return; if (!file_exists($path)) return FALSE; $md5 = is_file($path) ? md5_file($path) : NULL; //Queue $job = (new Addons\Core\Jobs\DelayUnlink($path, $md5))->delay($delay); app('Illuminate\Contracts\Bus\Dispatcher')->...
true
4aa50428f4d759e127ee2a4c702bc1a68f42dd73
PHP
Webist/InterServices
/handler/Statement/DataObject.php
UTF-8
103
2.5625
3
[]
no_license
<?php namespace Statement; interface DataObject { function getId(); function setId($id); }
true
c8921436788c3dbd22f6749cd60d4efc182a11ab
PHP
dzoukou/xccm
/app/Http/Controllers/SectionController.php
UTF-8
2,801
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Section; use Illuminate\Http\Request; class SectionController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // } /** * Show the form f...
true
4a087bb93e2127b295099e499da0e3ae34b1fd7e
PHP
gonzalophp/TimePriceOpportunities
/class/chart/graphicalchart.class.php
UTF-8
12,128
2.625
3
[]
no_license
<?php require_once('class/chart/realchart.class.php'); require_once('class/chart/imageChart.class.php'); class graphicalChart { private $_aCharts; private $_aImageSize; private $_oRealChart; private $_aAvailableIndicatorsCharts = array('rsi','sto'); const GRAPH_MARGIN=20; ...
true
3827118a87fd76c47c8d1a4273c2dfde5fbf85c2
PHP
wdvill/fang
/apps/weibo/Lib/Model/TopicsModel.class.php
UTF-8
2,702
2.546875
3
[]
no_license
<?php class TopicsModel extends Model{ var $tableName = 'weibo_topics'; // 专题列表 public function topicsList($post = array()) { $post['topics_id'] && $map['topics.topics_id'] = array('in', t($post['id'])); $post['name'] && $map['topic.name'] = array('like', '%' . t($post['name']) . '%'); ...
true
6e3eada05a722108bb1d237164cba7acac940511
PHP
tonatiuh19/arcvii
/admin/action_search.php
UTF-8
727
2.65625
3
[]
no_license
<?php // define variables and set to empty values session_start(); require_once('cn.php'); if (isset($_POST['query'])) { $inpText = $_POST['query']; $sql = "SELECT a.nombre, a.apellido FROM user as a WHERE a.active=1 and a.nombre LIKE '%$inpText%' LIMIT 5"; $result = $conn->query($sql); if ($result->num_rows > 0)...
true
ea4c1fb4e1337355ac43058e1443f0017ad6e700
PHP
MariusGi/KCS
/homework/PHP/PHP3/index12.php
UTF-8
749
3.28125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>PHP 12 | Exercise</title> </head> <body> <?php if(isset($_GET['first_name']) && isset($_GET['last_name'])) { printFullName($_GET['first_name'], $_GE...
true
ebfe7920f6f01be213eae6c506c15c975b5633fe
PHP
vainyl/operation
/src/Collection/Factory/SetCollectionFactory.php
UTF-8
1,050
2.78125
3
[ "MIT" ]
permissive
<?php /** * Vainyl * * PHP Version 7 * * @package Operation * @license https://opensource.org/licenses/MIT MIT License * @link https://vainyl.com */ declare(strict_types=1); namespace Vainyl\Operation\Collection\Factory; use Vainyl\Core\Storage\StorageInterface; use Vainyl\Operation\Collection\Collec...
true
5e349e841e23d251ed78abfccce8dd3887934acc
PHP
luisarns/saspa
/lib/model/map/ParametrosMapBuilder.php
UTF-8
737
2.546875
3
[]
no_license
<?php class ParametrosMapBuilder { const CLASS_NAME = 'lib.model.map.ParametrosMapBuilder'; private $dbMap; public function isBuilt() { return ($this->dbMap !== null); } public function getDatabaseMap() { return $this->dbMap; } public function doBuild() { $this->dbMap = Propel::getData...
true
74ba7b64733bbff9282d6cd4e0d6bae3f3cafcfe
PHP
beulathamban/mysql
/createmembers.php
UTF-8
630
3.140625
3
[]
no_license
<?php $servername = "localhost"; $username = "root"; $password = "root"; $dbname = "club"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } // sql to create table $sql = "CREAT...
true
bc85f9e21c4dcc9973f0baaad42b33311289c908
PHP
silvasur/ste
/src/ste/ParseCompileError.php
UTF-8
789
2.953125
3
[ "MIT" ]
permissive
<?php namespace r7r\ste; /** * An exception thrown by the parser or compiler */ class ParseCompileError extends \Exception { public $msg; public $tpl; public $off; public function __construct($msg, $tpl, $offset, $code = 0, $previous = null) { $this->msg = $msg; $this->tpl = $tp...
true
ac1b9e00ff31d312c0a82317a3b85c1690b3f4ce
PHP
hamzaubi/geatransport
/app/Console/Commands/updateusers.php
UTF-8
1,074
2.875
3
[]
no_license
<?php namespace App\Console\Commands; use App\Vehicule; use Illuminate\Console\Command; class updateusers extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'update:users'; /** * The console command description. ...
true
f1b4602c55c13cd68e037e2f490631aee758f9ad
PHP
Jeremie-de-Vos/BookOnShelf
/Code/php/login.php
UTF-8
1,228
2.6875
3
[]
no_license
<?php session_start(); require('connect.php'); //If the form is submitted if (isset($_POST['username']) and isset($_POST['password'])){ //Assigning posted values to variables. $username = $_POST['username']; $password = $_POST['password']; //Checking the values are existing in the database or not $query = "SEL...
true
f37a0c090d9b132e5c86fc52cae18d5b36cadb39
PHP
10xjzheng/design-patterns-php
/creational/builder/InterfaceBuilder.php
UTF-8
307
2.734375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2018/1/18 * Time: 17:31 */ namespace designPatterns\creational\builder; Interface InterfaceBuilder { public function buildBody(); public function buildPart1(); public function buildPart2(); public function getResult(); }
true
a950ca5076537fbc324a94004c94aa21425eec11
PHP
javier4mar/publiautos
/login/model/mdl_login.php
UTF-8
2,043
2.6875
3
[]
no_license
<?php class mdl_login { public function __construct(&$db) { $this->db = $db; } function loginUser($username, $password, $ip) { try { $sql = "CALL `pr_login_user`( :vUsername , :vPassword , ...
true
a9b661e5ddc771023b7aa3b0d3a06df8bbd454dc
PHP
alifrizki250700/tugasweb
/perwalian/edit.php
UTF-8
1,485
2.625
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>update Perwalian</title> <link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css"> </head> <body> <?php require '../koneksi.php'; $query = "SELECT * FROM perwalian where id"; $perwalian = mysqli_query($link, $query); $isi = mysqli_fetch_object($perwalian); ...
true
00ea6e89d24f3a80b363b4bc142d4cfb0cafc22f
PHP
Caseynorth182/PHP-practice-OOP-MVC
/app/Services/App.php
UTF-8
1,150
2.9375
3
[]
no_license
<?php namespace App\Services; class App { /** * //Подключаем файл config.php который в возвращает данные */ public static function start() { self::libs(); self::db(); } /** * перебирает все библиотеки и прикреплять к index.php */ public static function li...
true
0c2ff88b202e36f1a0b8074f2cf62d722c9e91dd
PHP
juaco93/registromipymes
/app/Rules/CUITValido.php
UTF-8
1,395
2.984375
3
[ "MIT" ]
permissive
<?php namespace App\Rules; use Illuminate\Contracts\Validation\Rule; use Illuminate\Support\Facades\Log; class CUITValido implements Rule { /** * Create a new rule instance. * * @return void */ public function __construct() { // } /** * Determine if the validatio...
true
3045326847c38bbfdea7ae0061056f63d6a69e7e
PHP
paullewallencom/php-978-1-8495-1134-6
/_src/Chapter07/aliroAuthorisationAdmin.php
UTF-8
14,667
2.546875
3
[ "Apache-2.0" ]
permissive
<?php /******************************************************************************* * Aliro - the modern, accessible content management system * * This code is copyright (c) Aliro Software Ltd - please see the notice in the * index.php file for full details or visit http://aliro.org/copyright * * Som...
true
41aa310fc4960658b2cd0ecf5cd921147cae6d1e
PHP
Hobbi5g/4win
/siteditor/padlib.php
UTF-8
20,350
2.65625
3
[]
no_license
<?php $tagarray = array(); $tagstack = ''; $lasttag = ''; function GetData($parser,$data) { global $tagstack, $tagarray, $lasttag; if ($lasttag == $tagstack) $tagarray["$tagstack"] .= $data; else $tagarray["$tagstack"] = $data; $lasttag = $tagstack; } function GetEndTag($parser,$element_name) { glob...
true
f40f7f3041b82f28ab7e65d6841bc6fda5294cf8
PHP
esantra/RabbitMQWebPageExamples
/index.php
UTF-8
760
2.578125
3
[]
no_license
<?php /** * Front to the WordPress application. This file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads ...
true
e78a948a1b5f33a0acc2b7f24f82c41ab39edd14
PHP
camifaraone/Proyecto-UnAventon
/UnAventon/model/respuesta.php
UTF-8
1,735
2.515625
3
[]
no_license
<?php function realizarrespuesta($preg, $respuesta, $id, $idviaje){ require("db.php"); try{ $sql= $conn->prepare("INSERT INTO respuesta (idpregunta, descripcionr, idautoincremental, idviaje) VALUES(?, ?, ?, ?)" ); $sql ->execute(array("$preg", "$respuesta", "$id", "$idviaje")); ...
true
e0c5cd21e9dfc472d664cec4248a81cc3f70444f
PHP
Jen456/woocommerce-eu-vat-number
/includes/class-wc-eu-vat-report-eu-vat.php
UTF-8
12,292
2.59375
3
[]
no_license
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } /** * WC_EU_VAT_Report_B2C_Sales class */ class WC_EU_VAT_Report_EU_VAT extends WC_Admin_Report { /** * Get the legend for the main chart sidebar * @return array */ public function get_chart_legend() { return array(); } /** * Output an export link */ ...
true
6aed5d6e73b96bb6c275a808f0e2c9eee8c8ef55
PHP
balpreetpunia/branet
/output.php
UTF-8
375
3
3
[]
no_license
<?php $array = array('id', 'model', 'brand', 'category', 'subcategory', 'company', 'quantity', 'price'); foreach ($array as $item) { echo '$inventory[\''.$item.'\'] = $'.$item.';<br>'; } $numStories = 30; $x=$numStories; $y=$x%10; $z=($x-$y)/10; echo "$x<br>"; echo "$y<br>"; echo "$z<br>"; if($y!=0){ $numP...
true
3531a4131a09388b39713c996d41027f1e910ec3
PHP
amranidev/FormMaker
/src/Commands/stubs/form.php
UTF-8
896
2.6875
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
<?php namespace DummyNamespace; use Grafite\FormMaker\Forms\ModelForm; class DummyClass extends ModelForm { /** * The model for the form * * @var \Illuminate\Database\Eloquent\Model */ public $model = DummyModel::class; /** * Required prefix of routes * * Can be `user`...
true
990841833e074d1f738f1d019dfff3142a9fa809
PHP
mohamadrizki725/pw2020_193040016
/praktikum/P5_PW_193040016/latihan5c/index.php
UTF-8
770
2.71875
3
[]
no_license
<?php // menghubungkan dengan file php lainnya require 'php/functions.php'; //melakukan query $elektronik = query ("SELECT * FROM elektronik"); ?> <!DOCTYPE html> <head> <title>Elektronik</title> <link rel="stylesheet" type="text/css" href="css/index.css"> </head> <body> <div class="contai...
true
1edbff0bc7dc1f7681e404557f71bf5174b516f9
PHP
Darkry/nette-quickstart
/docs/test.php
UTF-8
234
2.84375
3
[]
no_license
<?php /** * @property int $property */ class PropertyTest extends \Nette\Object { private $property; public function getProperty() { return $this->property; } } $test = new PropertyTest(); echo $test->property;
true
72e119923e3dc62dd7e8a4ff5fa882a0c6c4e31b
PHP
jaffle-be/framework
/modules/Theme/ThemeManager.php
UTF-8
2,757
2.5625
3
[ "MIT" ]
permissive
<?php namespace Modules\Theme; use Exception; use Illuminate\Database\Eloquent\Collection; use Illuminate\View\Factory; /** * Class ThemeManager * @package Modules\Theme */ class ThemeManager { protected $view; protected $events; protected $selector; protected $theme; protected $current; ...
true
27c4661dce64fb9dbab085a15d7b3f271146803a
PHP
rf26538/myphplerning
/oops/validateint.php
UTF-8
434
2.953125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>validatePHP</title> </head> <body> <?php $int = 200; if (!filter_var($int,FILTER_VALIDATE_INT) ==false) { echo "initiger is valid"; } else { echo "intiger is not valid"; } $int = 0; if (!filter_var($int,FILTER_VALIDATE_INT) == 0)|| (!filter_var($int,FILTER_VALIDAT...
true
75a98d0925240524fe9b56d8afd2eaba8075dd45
PHP
vasily-kartashov/alexa-skills-kit-model
/src/Services/ListManagement/ListItemBody.php
UTF-8
1,701
2.859375
3
[]
no_license
<?php namespace Alexa\Model\Services\ListManagement; use JsonSerializable; final class ListItemBody implements JsonSerializable { /** @var string|null */ private $listId = null; /** @var string[] */ private $listItemIds = []; protected function __construct() { } /** * @return ...
true
4e5009bfcad7024ab50f348f5a42ddc21e2ca7c6
PHP
mehr-it/lara-cron
/test/Cases/Unit/Cron/Field/HourFieldTest.php
UTF-8
12,440
2.75
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: chris * Date: 28.03.19 * Time: 16:25 */ namespace MehrItLaraCronTest\Cases\Unit\Cron\Field; use Carbon\Carbon; use MehrIt\LaraCron\Contracts\CronField; use MehrIt\LaraCron\Cron\Field\HourField; class HourFieldTest extends FieldTest { protected function mat...
true
80d358e8a48bb156755c8bb724ff57ec5d6e33da
PHP
hendrikreimers/nn_address
/Resources/Private/GoogleStaticImage/user_getextimage.class.php
UTF-8
946
2.546875
3
[]
no_license
<?php class user_getextimage { function main($content, $conf) { // Parse with TypoScript if ( isset($conf['url.']) ) { $conf['url'] = $this->cObj->cObjGetSingle($conf['url'], $conf['url.']); unset($conf['url.']); } if ( isset($conf['filename.']) ) { $conf['filename'] = $this->cObj->cObjGetS...
true
c93627298c9b160c10734537cb2568be64c21692
PHP
adefemi/adefemiconsult_backend
/applications/messageBoard/model.php
UTF-8
2,777
2.796875
3
[]
no_license
<?php require_once $_SERVER['DOCUMENT_ROOT'].'/'.'extras/misc.php'; class MessageModel{ function __construct($state=null) { $this->message = 'message'; $this->user = 'user'; $this->course = 'course'; $this->misc = new Miscellaneous(); $thi...
true
ecd52ffa60a5d7536c98b813da154bfc9f7b0408
PHP
evasbm/jiankangdu
/index.php
UTF-8
3,443
2.625
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>健康度计算器</title> <link rel="stylesheet" type="text/css" href="style...
true
d8e1baa143f16f5a506f29b1448e9a2d70e11f73
PHP
Aaron3/laravel-smart-seed
/src/Contracts/ProviderInterface.php
UTF-8
357
2.75
3
[ "MIT" ]
permissive
<?php namespace LaravelSeed\Contracts; interface ProviderInterface { /** * Get an array of data ... * * @return mixed */ public function getData(); /** * Make an file source .. * * @param $source * @param string $seeder * @return mixed */ public funct...
true
bd1592e82ab571e3760f7ddef2e7ed2d2bbebaa6
PHP
underser/module-shops
/Api/Data/ShopsInterface.php
UTF-8
5,782
2.65625
3
[]
no_license
<?php /** * Underser shops interface. * * @category Underser * @package Underser\Shops * @author Roman Sliusar <roman.slusar95@gmail.com> * @copyright 2019 Underser */ declare(strict_types=1); namespace Underser\Shops\Api\Data; use Magento\Framework\Api\ExtensibleDataInterface; /** * Interface ShopsInt...
true
8d015e863e92779572f069292a20a48eb6215be0
PHP
masahiraishi/php_text
/3-3input.php
UTF-8
3,247
2.59375
3
[]
no_license
<html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/> <title>アンケートフォーム</title> </head> <body> <h1>アンケートフォーム(1.回答画面)</h1> <p>アンケートに回答して「確認する」ボタンをクリックしてください</p> <form method="POST" action="3-3check.php"> <table border="1"> <tr> <td>お名前</td> ...
true
5c3d6fbf134ce39aa114f695cf2076ce991654f9
PHP
fracz/refactor-extractor
/results/backup-manager--backup-manager/7fdbdc276606f0c3705b9ba1eab2cdb49d4c5b74/after/CompressorProvider.php
UTF-8
546
2.6875
3
[]
no_license
<?php namespace BigName\DatabaseBackup\Compressors; class CompressorProvider { public function get($name) { $class = $this->getClassName($name); if ( ! class_exists($class)) { throw new CompressorTypeNotSupported('The requested compressor type "' . $class . '" is not currently suppo...
true
6faa6537ecd6479e451c78c680d1aab0bdc51fb8
PHP
MyProject-dev/alphatest
/fs_folders/modals/Server/db/InvitedLocation.php
UTF-8
3,628
2.765625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: jesus * Date: 1/23/2015 * Time: 3:07 PM */ namespace FashionSponge; class InvitedLocation { private static $locationName = '' , $locationTime1 = '', $locationTime2 = '', $locationTime3 = ''; private static $locationId = ''; function __construct() { }...
true
ab453c8f18771b198d49e49e1e157552fb3de9e8
PHP
Archer70/desmond
/test/functions/core/EqualTest.php
UTF-8
713
2.703125
3
[ "MIT" ]
permissive
<?php namespace Desmond\test\functions\core; use PHPUnit\Framework\TestCase; use Desmond\test\helpers\RunnerTrait; class EqualTest extends TestCase { use RunnerTrait; public function testEquals() { $this->assertTrue($this->valueOf('(= 1 1 1 1)')); $this->assertFalse($this->valueOf('(= 1 2)...
true
1239c00be549e1f9f816c2ca3e12ab907b98d163
PHP
OilPony/testphp
/report.php
UTF-8
1,981
2.734375
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap 4 Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"> <script src="https://ajax.googleapis....
true
c43bc6007c471a85b51f9ace4a7e0f199ede5057
PHP
juanjesus260393/FINBA
/models/mdlconection.php
UTF-8
1,133
2.609375
3
[]
no_license
<?php /* * proyecto FINBA * Nombre: mdlconection * Autor: Juan Jesus Garcia Centeno * Fecha: 08-03-2011 * Versión: 1.0 * Descripcion: modelo en el que se configura la coneccion con la base de datos, para ser usada en donde se requiere * * por Fabrica de Software, CIC-IPN */ class mdlconection ...
true
f9fec65d2e5d992445269dbb50bf567862f9d41c
PHP
unitiweb/ub-laravel-demo
/app/Services/SettingsService.php
UTF-8
649
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Models\Settings; use App\Models\User; /** * Settings service class for user settings tasks * * @package App\Services */ class SettingsService { /** * Get the given user's settings and if the settings haven't been created yet * then create it and add defaults ...
true
4d105b73044dc9c2a1defa7640da2deb8e7dff14
PHP
eximiaco/site_eximiaco
/src/template-parts/blog/single/post-nav.php
UTF-8
2,476
2.640625
3
[]
no_license
<?php /** * The post navigation. * * @package WordPress * @subpackage ElemarJr * @since 0.1.0 * @version 0.1.0 */ global $container; ?> <div class="posts-nav-link"> <?php $taxonomy = 'category'; if ( 'private' === get_post_status() ) { $taxonomy = 'index'; } $previous_post = get_previous_post( false, ...
true
622055557692ae2613facd48d48393fe3a877bf2
PHP
DarkSeraphim/Connect-It
/includes/lib/Database.class.php
UTF-8
7,024
2.953125
3
[]
no_license
<?php class Database { private static $instance; private $connection; private function __construct() { } private function initialize() { // TODO: convert to OO $this->connection = new mysqli(DB_HOST . ":" . DB_PORT, DB_USERNAME, DB_PASSWORD, DB_DATABASE); if($this...
true