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
733a7f84b67799a58d1ddfaba28db78ad8180318
PHP
pregusia/pregusiaFW
/lib-utils/classes/metastring/classMetaStringElementTag.php
UTF-8
4,059
2.65625
3
[]
no_license
<?php /** * This file is part of PREGUSIA-PHP-FRAMEWORK. * PREGUSIA-PHP-FRAMEWORK is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any l...
true
6a20c14566edf74940a4961204d33c8e8904bec1
PHP
javaage/ichess
/other/test1.php
UTF-8
1,005
2.5625
3
[ "MIT" ]
permissive
<?php require '../header.php'; require '../common.php'; $day1 = dayBefore(1, 0); $day10 = dayBefore(10, 0); $sql = "select r.code,r.name from (select code,name,current from stockrecord where time = (select max(time) from stockrecord) and current < close) r inner join (select code, avg(current) as avg10 from dail...
true
23541140e408f5427150669eb6321882cb165c5f
PHP
davidnegrazis/HauntingOfMerchHill
/user_profile.php
UTF-8
2,063
2.828125
3
[ "MIT" ]
permissive
<?php session_start(); //check if session id is set require ("check_id.php"); //include user info tab at top of page include("head_profile.php"); ?> <html> <head> <title><?php echo $_SESSION['username'] . "'s profile."; ?></title> </head> <body bgcolor="#000000" link="red"> <font color="white"> <h1><font color="orange...
true
9210451fda75224f662a7a6fdbaab9c8f386634c
PHP
yks118/CoolSMS-API-PHP
/V4/SenderId/ResponseNumbersSenderIdsLog.php
UTF-8
701
2.734375
3
[ "MIT" ]
permissive
<?php namespace CoolSMS\V4\SenderId; use CoolSMS\V4\Coolsms; use DateTime; use DateTimeZone; use Exception; /** * Class ResponseNumbersSenderIdsLog * * @package CoolSMS\V4\SenderId */ class ResponseNumbersSenderIdsLog { /** * @var DateTime $createAt */ public DateTime $createAt; /** * @var string $messa...
true
ebbd155bc023b43ca6926f8b1f76faf40be4a88d
PHP
leymannx/mffe
/src/Plugin/Field/FieldFormatter/DownloadSlidesFormatter.php
UTF-8
1,454
2.546875
3
[]
no_license
<?php namespace Drupal\mffe\Plugin\Field\FieldFormatter; use Drupal\Core\Field\FormatterBase; use Drupal\Core\Field\FieldItemListInterface; use Drupal\media\Entity\Media; use Drupal\file\Entity\File; use Drupal\Core\Url; /** * Plugin implementation of the 'mffe_download_slides' formatter. * * @FieldFormatter( * ...
true
cf5f47821952a1378d9f0639f9d53fd653b12c81
PHP
flexsim/flexnet-operations
/flexnet/ProductPackagingService/Type/FailedMaintenanceStateDataType.php
UTF-8
1,621
2.859375
3
[ "MIT" ]
permissive
<?php namespace Flexnet\ProductPackagingService\Type; class FailedMaintenanceStateDataType { /** * @var \Flexnet\ProductPackagingService\Type\MaintenanceStateDataType */ private $maintenance; /** * @var string */ private $reason; /** * Constructor * * @param \...
true
0ceb16e4647e2736c76ec962ac2c32193d495796
PHP
martynbiz/wordup-cms
/app/library/Model/Folder.php
UTF-8
2,987
2.71875
3
[]
no_license
<?php namespace App\Model; use Handlebars\Handlebars; use App\Model\Formatter; class Folder extends Base { /** * @var array */ protected $fillable = array( 'name', 'description', 'dir_name', 'menu_link', 'active', 'parent_id', 'layout_id', )...
true
6baf73a348f218ec4645d4c3adf546fe3d5ceb0b
PHP
pkimconsulting/MBTA-Coding-Challenge
/modules/custom_http_client/src/ClientFactory.php
UTF-8
330
2.53125
3
[]
no_license
<?php namespace Drupal\custom_http_client; use GuzzleHttp\Client; class ClientFactory { /** * Return a configured Client object. */ public function get() { $config = [ 'base_uri' => 'https://example.com', ]; $client = new Client($config); return $client...
true
2d5cd320eaa272aabe82603a732351968de12539
PHP
kinaHaborat/p2
/Fichas/Ficha 3/Ex3/php/Ex3.php
UTF-8
3,203
2.9375
3
[ "MIT" ]
permissive
<?php /* ************ DESCRIÇÃO DO DOCUMENTO ************ * Nome do ficheiro: ex3.php * * UC: P2 * * @author <Tiago Baptista> * * @version 1.0 * * Data:...
true
f0ace68840ecc3cdcdf44ab928568b1582481990
PHP
hackflamy/ttsystem
/model/main.php
UTF-8
952
2.90625
3
[]
no_license
<?php class Main { public $user; public $role; public $pass; function __construct($user, $role, $pass) { $this->user = $user; $this->role = $role; $this->pass = $pass; } public static function login($username, $password) { ...
true
dc791b099c4e01fbd22ab70c5d0ea70304f8aa2e
PHP
joelwurtz/asynit
/src/Runner/FutureHttpPool.php
UTF-8
906
2.625
3
[ "MIT" ]
permissive
<?php namespace Asynit\Runner; use Doctrine\Common\Collections\ArrayCollection; class FutureHttpPool extends ArrayCollection { /** * Shift a future http of the beggining. * * @return FutureHttp */ public function shift() { $futureHttp = $this->first(); $this->removeEle...
true
89e2e9b6e084584f8ebfa3655817f1b0f4540fc6
PHP
phpbench/phpbench
/lib/Expression/NodePrinter/UnitPrinter.php
UTF-8
441
2.765625
3
[ "MIT" ]
permissive
<?php namespace PhpBench\Expression\NodePrinter; use PhpBench\Expression\Ast\Node; use PhpBench\Expression\Ast\UnitNode; use PhpBench\Expression\NodePrinter; use PhpBench\Expression\Printer; class UnitPrinter implements NodePrinter { public function print(Printer $printer, Node $node): ?string { if (...
true
9e1c1a059d097c0011037f0387f05c5d3e2fa3c3
PHP
yanmin1234/component
/src/Observer.php
UTF-8
888
2.78125
3
[]
no_license
<?php namespace Ymt\Component; /** * Created by PhpStorm. * User: ym * Date: 2020/5/13 * Time: 下午12:41 */ class Observer implements \SplSubject{ use Sington; private $observers = null; public function __construct() { $this->observers = new \SplObjectStorage(); } //add observer ...
true
73bcdf119d0643bb02d17eb4522b931dfe703642
PHP
tainanfernandes/sistema_chamada
/controller/fromajax.php
UTF-8
658
2.953125
3
[]
no_license
<?php namespace controller; class FromAjax { // Get arrays from ajax safely static function _process($list, ...$keywords) { $result = []; foreach($keywords as $kw) { if (array_key_exists($kw, $list)) { $result[$kw] = $list[$kw]; } else { ...
true
e1bb2301a9ff2daecb7d77e7afc1b022ac71a3bd
PHP
MizukiShigi/black_jack
/BlackJackPlayer.php
UTF-8
541
3.375
3
[]
no_license
<?php namespace BlackJack; require_once('BlackJackHandEvaluator.php'); require_once('BlackJackHand.php'); require_once('Player.php'); class BlackJackPlayer extends Player { public function __construct(private string $name) { parent::__construct($name); } public function drawCard(BlackJackDeck...
true
dea32c6ab3fe0193c64558dd8907df8f584685fa
PHP
pleminh/magento2-blog-product
/Model/Article/Url.php
UTF-8
2,136
2.59375
3
[ "MIT" ]
permissive
<?php namespace Gemtoo\Blog\Model\Article; use Magento\Framework\UrlInterface; use Gemtoo\Blog\Model\Article; use Magento\Framework\App\Config\ScopeConfigInterface; use Magento\Store\Model\ScopeInterface; /** * Class Url * @package Gemtoo\Blog\Model\Article */ class Url { const LIST_URL_CONFIG_PATH = 'gemtoo_b...
true
6190650ac566b6b8a9a6e16b291186a22bd9115c
PHP
geovani-pereira/Pos-Webdev-Alfa-PHPOO
/class/Usuario.php
UTF-8
1,302
3.25
3
[]
no_license
<?php declare (strict_types = 1); //checagem de tipos seja estrita , se passar o de dado errado int onde é string ou string onde é int script errado não funciona. date_default_timezone_set("America/Sao_Paulo"); class Usuario { //atributo da classe public static $arquivoLog; //stributo static é atributo da classe...
true
e8adb5f64a0086d6cb841330a65d8b91f321e8e1
PHP
zawiszaty/symfony-prooph-example
/symfony/src/Domain/Author/AuthorStore.php
UTF-8
247
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace App\Domain\Author; use App\Domain\Common\ValueObject\AggregateRootId; interface AuthorStore { public function save(Author $todo): void; public function get(AggregateRootId $todoId): ?Author; }
true
3ddb20d32641e91f74ea4a32fad38c5acaad845b
PHP
Mohamedeid11/Emcan_App
/system/en/functions/navigation_functions.php
UTF-8
1,943
2.671875
3
[]
no_license
<?php function navigationHomee($aTotal, $aStart, $aNum, $aUrl, $aItemsPerPage = 3, $aLinksPerPage = 5) { global $Lang; if ($aTotal && $aTotal > $aItemsPerPage) { $num_pages = ceil($aTotal / $aItemsPerPage); $current_page = (int) $_GET['page']; $current_page = ($current_page < 1) ? 1 :...
true
4a5979833107c5cfc734a6aee17cedfa9a00a2c6
PHP
SkyPressATX/bmo-google-oauth2
/bmo-google-oauth2.php
UTF-8
6,552
2.6875
3
[ "MIT" ]
permissive
<?php /* Plugin Name: BMO Google OAuth2 Description: Google OAuth2 Plugin Version: 0.8.5 Author: BMO ^_^ */ if( ! defined( 'WPINC' ) ) die(); /***** The Master Class to Rule them All *****/ class bmo_google_oauth { public $menu_slug = 'bmo-oauth'; public $option_slug = 'bmo_oauth'; public $section_slug = 'bmo_oa...
true
a7a8fa59dcbcfba5336099b6d85729d1467a39f4
PHP
ncowboy/hh_resume_refresh
/commands/RefreshController.php
UTF-8
701
2.546875
3
[]
no_license
<?php namespace app\commands; use app\models\HhData; use yii\console\Controller; use yii\httpclient\Client; /** * hh.ru resume refresh * @package app\commands */ class RefreshController extends Controller { public function actionIndex($id){ $data = HhData::findOne(1); $client = new Client(); $res...
true
60dc3001b3df6eea473596aa111cb8443e456a8f
PHP
imadchabounia/Kryptonite
/Algorithms/Stack.class.php
UTF-8
672
4.03125
4
[]
no_license
<?php /** * Implementaion of Stack Data Structure in PHP */ interface ds { public function push($data); public function pop(); public function isEmpty(); public function top(); } class Stack implements ds{ //properties private $top = -1; private $space = []; //methods public function push($data)...
true
e3fab64a99549c03b4749c8a3fd1e3acb49bea91
PHP
amrm121/PHP
/3_Strings_padroes.php
UTF-8
213
2.796875
3
[]
no_license
<?php /* NOWDOC $str= <<<'A' Usando nowdoc. A; /* HEREDOC $str= <<<"A" Usando nowdoc. A; */ $e = 'leandro@gmail.com'; //Retorna valor de $e a partir do parâmetro inicial print strstr($e, 'd');
true
85c58ceba14c9aa47ff3d13d3aeef268bd132b46
PHP
leinbg/AwesomePatterns
/src/AwesomePatterns/Adapter/LocalFileSystem.php
UTF-8
297
2.703125
3
[ "MIT" ]
permissive
<?php namespace AwesomePatterns\Adapter; /** * Class LocalFileSystem * * @package AwesomePatterns\Adapter */ class LocalFileSystem { /** * @param $filename * * @return string */ public function getFileByName($filename) { return 'Local File'; } }
true
b60a6d0864dfe10063449b983603559dc1960a87
PHP
osalabs/osafw-php
/www/php/models/Settings.php
UTF-8
1,947
2.78125
3
[ "MIT" ]
permissive
<?php /* Settings model class */ class Settings extends FwModel { /* static convenience functions, for easier use as: $var = Settings::read('icode'); $int = Settings::readi('icode'); $date = Settings::readd('icode'); Settings::write('icode', $var); */ public static function read($icode){...
true
a8b03c6f2cebe9ee0ed6e20baf4f51def2051ff4
PHP
mkwiro/dagadu-fpgrowth-php
/app/core/App.php
UTF-8
1,691
3.25
3
[]
no_license
<?php class App { //property class untuk default protected $controller ='home'; protected $method ='index'; protected $params = []; function __construct() { $url = $this->parseURL(); //controller if (file_exists('../app/controllers/' . $url[0] . '.php')) { //cek apakah filenya ada di folder control...
true
c00c315feebbdd563ba6e713613a8b0495efb046
PHP
HelmDefense/HelmDefense-Web
/www/components/com_captcha/CaptchaView.php
UTF-8
672
2.59375
3
[]
no_license
<?php namespace Component; class CaptchaView extends View { private static $catpchaId = 0; public function captcha($form, $sitekey, $classes) { self::$catpchaId++; if (self::$catpchaId == 1) { ?> <script> const captchaForm = {}; function loadCaptcha() { for (let [form, i] of Object.entries(captc...
true
f25432ec6b9322476d8098eb95ec00a6afcae62f
PHP
crunzphp/crunz
/tests/Unit/ScheduleTest.php
UTF-8
4,666
2.71875
3
[ "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
<?php declare(strict_types=1); namespace Crunz\Tests\Unit; use Crunz\Event; use Crunz\Schedule; use Crunz\Tests\TestCase\UnitTestCase; use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait; final class ScheduleTest extends UnitTestCase { use ExpectDeprecationTrait; /** @dataProvider runProvider */ public f...
true
86ab128b081036c7bae7d7afc07ff35516afc973
PHP
Otisz/Laravel-Billingo
/src/Services/Currency.php
UTF-8
688
2.9375
3
[ "MIT" ]
permissive
<?php namespace Otisz\Billingo\Services; use Otisz\Billingo\Facades\Billingo; class Currency { /** * Convert amount from to * * @example https://billingo.readthedocs.io/en/latest/currency/#convert-value * * @param int|float|double $value The amount to convert * @param string $f...
true
aa90aa12bd2bbc84401b9b2b09afb77977627293
PHP
CodeInDev/PHP-Test
/delete.php
UTF-8
579
2.71875
3
[ "MIT" ]
permissive
<?php error_reporting(0); $servername = "localhost"; $username = "root"; $password = ""; $dbname = "test"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Delete failed: " . $conn->connect_error); } $target = $_POST['target...
true
235bfd69bc1e79ea3f3351466dd499c5d2f5384f
PHP
ilkivv/test-task
/app/Http/Controllers/api/v1/RatingController.php
UTF-8
4,050
2.625
3
[]
no_license
<?php namespace App\Http\Controllers\api\v1; use App\Http\Controllers\Controller; use App\Models\Lesson; use App\Models\User; use App\Traits\ArrayJson; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; class RatingController extends Controller { use ArrayJson; public function getStatistics(User...
true
5e7c79421e2bb5aebda067f22468e9ebcf5d2abb
PHP
RWEngelbrecht/PHP-Bootcamp
/Day04/ex01/create.php
UTF-8
765
2.546875
3
[]
no_license
<?php if (!$_POST['login'] || !$_POST['passwd'] || $_POST['submit'] != "OK") { exit ("ERROR\n"); } else { $user = array('login'=>$_POST['login'], 'passwd'=>hash('whirlpool', $_POST['passwd'])); } $folder = "../private/"; $file = "passwd"; if (file_exists($folder) === false) { mkdir($folder, 0755, true); } if (file_e...
true
210fc7e026500982c719f34fb4a046ad1d088559
PHP
dave-d-code/homework
/Todo/FileHandler.php
UTF-8
2,711
2.953125
3
[]
no_license
<?php namespace App\APIService\Library\FileHandler; class FileHandler { public function splitFileIntoChunks( $filePath, $buffer, $chunkPath = null, $chunkExtension = '.part-' ) { $directory = trim( dirname( $filePath ) ); $fileName = trim( basename( $filePath ) ); $fileHa...
true
4223feb62fd66cf0f919ca601fce79b96d2a3df7
PHP
PSSABISHEK/spi_autonomy
/attendance.php
UTF-8
588
2.625
3
[]
no_license
<?php include ("connection.php"); if($_SERVER["REQUEST_METHOD"] == "POST") { $myusername = mysqli_real_escape_string($conn,$_POST['username']); $query="SELECT date,login_time,logout_time FROM timestamp WHERE username='$myusername' ORDER BY date,login_time"; $result = mysqli_query($conn,$query); $json=arr...
true
65a3f601a208fadeb91689d08fb08140dacd7433
PHP
lucaswxp/Html-Generator
/classes/GeneralTag.php
UTF-8
455
3.015625
3
[]
no_license
<?php class GeneralTag extends Tag { private $content; public function __construct($name, $content, $attributes){ $this->name = $name; $this->content = $content; $this->attributes = $attributes; } protecte...
true
5ee27be1be8514221902b583ff107011e96ba872
PHP
BonyGeorge/Move-Miu
/MoveRecruitment/php/controller/get_department_list.php
UTF-8
323
2.765625
3
[]
no_license
<?php include_once '../model/department.php'; $d1 = new department(); $result = $d1->read(array(1, 2)); for ($i = 0; $i < count($result); $i++) { if ($i == count($result) - 1) echo $result[$i]->id . "~" . $result[$i]->name . "~"; else echo $result[$i]->id . "~" . $result[$i]->name . "!^@"...
true
7f9d1e1b0d44da6ce9079a2ae817799f6c340b29
PHP
generalredneck/ga-referrer-spam-filters
/src/Command/ListViewsCommand.php
UTF-8
4,052
2.671875
3
[]
no_license
<?php namespace GeneralRedneck\GaReferrerSpamFilters\Command; use GeneralRedneck\GaReferrerSpamFilters\Service; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Helper\Table; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\C...
true
e9384ebe55c15c7be0ca379fafae6444e7e19f9b
PHP
Hirohisa2017/grad_work1
/zoom/index.php
UTF-8
2,643
2.71875
3
[ "MIT" ]
permissive
<?php session_start(); $meeting_time=$_POST['meeting_time']; var_dump($meeting_time); require_once 'vendor/autoload.php'; use \Firebase\JWT\JWT; use GuzzleHttp\Client; define('ZOOM_API_KEY', 'b6cmPJIuTdCFU0vLOTKU8Q'); define('ZOOM_SECRET_KEY', '8tOFEncOZPvDX371GiO5iKVmkefhOCjsfASt'); function getZoomAccessToken...
true
2b9f7bfefab6ab6aadb51e6765173315338ff1ff
PHP
offworks/logos
/src/Repositories/TypeFitRepository.php
UTF-8
666
2.78125
3
[]
no_license
<?php namespace Offworks\Logos\Repositories; use Offworks\Logos\Contracts\Quote; use Offworks\Logos\Contracts\Repository; class TypeFitRepository implements Repository { /** * @return string[] */ public function getTags() { return []; } /** * @return Quote[] */ pu...
true
5268d660bf30772d3a64c52964aaea0cd4cdc1ac
PHP
samarthesh/Secure-file-Storage-on-cloud-using-hybrid-Cryptography---image-steganography
/action.php
UTF-8
530
2.546875
3
[]
no_license
<?php $dir = 'uploads'; $file_data = scandir($dir); $output = ' <table class="table table-bordered table-striped"> <tr> <th>Image</th> <th>File Name</th> </tr> '; foreach($file_data as $file) { if($file === '.' OR $file === '..') { continue; } else { $path = 'uploads' . '/' . $file; ...
true
d36151899f88105a6b8e637fc273603e98bc0f96
PHP
Michael-Chacon/Peliculas
/models/pelicula.php
UTF-8
5,320
2.9375
3
[]
no_license
<?php class Pelicula { public $id; public $nombre; public $descripcion; public $img; public $fecha; public $genero; public $db; public function __construct() { $this->db = Database::conectar(); } ...
true
6cd82e36464f09ac0b591d4b61d0786d81481f97
PHP
f-nely/curso-php-oo-alura
/project/src/Modelo/Funcionario/ValidaNomeException.php
UTF-8
291
2.859375
3
[]
no_license
<?php namespace Alura\Banco\Modelo\Funcionario; use Throwable; class ValidaNomeException extends \DomainException { public function __construct(string $nomeTitular) { $message = "Nome precisa ter pelo menos 5 caracteres: "; parent::__construct($message); } }
true
031492f96090cd2557a41f2557a716bac023804c
PHP
benjaminhansen/workday-wsdl
/src/StructType/Sexual_Orientation_DataType.php
UTF-8
7,721
2.765625
3
[]
no_license
<?php namespace WorkdayWsdl\\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for Sexual_Orientation_DataType StructType * Meta information extracted from the WSDL * - documentation: The sexual orientation data for a worker. * @subpackage Structs */ class Sexual_Orientation_Dat...
true
af49cde5603db979ed6399674fbcb9af1503dcad
PHP
aespinel/familygraph-php
/samples/profile/ProfileSampleApp.php
UTF-8
13,243
2.96875
3
[]
no_license
<?php require_once '../CommonUtility.php'; /** * Profile sample app - this application shows data on a profile (Individual). * An Individual object contains lots of varied data and this application shows only a part of it including: * personal photo, events, photos where the person is tagged in, notes, citations a...
true
e5e32bbc1331819ad856a42f851310206780f8c1
PHP
freezyoff/accounting
/src/Freezyoff/Accounting/Console/Migrate.php
UTF-8
823
2.765625
3
[ "MIT" ]
permissive
<?php namespace Freezyoff\Accounting\Console; use Illuminate\Console\Command; class Migrate extends Command{ /** * The name and signature of the console command. * * @var string */ protected $signature = 'freezyoff-accounting:migrate {database : database connection to use}'; /** * ...
true
76365bfdc58b9663f0bf28b38dba431f8c7d3921
PHP
LouisYuBin/demo
/php/socket/single_select.php
UTF-8
4,130
2.953125
3
[]
no_license
<?php /** * 单进程IO复用select * 同时处理多个连接 */ class SingleSelectServer { public $socket = false; public $master = array(); public $onConnect = null; public $onMessage = null; public $onClose = null; function __construct($host="0.0.0.0",$port=1215) { $this->socket = stream_socket_server...
true
f14bbe5bf218d59cb385fa903e4d0d241e2c5956
PHP
harikrishna553/php_core
/escape_chars_demo.php
UTF-8
152
2.578125
3
[]
no_license
#!/usr/bin/php <?php $msg1 = "It's my book\n"; $msg2 = 'It\'s my book\n'; $msg3 = "\nHello Krishna,\nHi PTR"; echo $msg1; echo $msg2; echo $msg3; ?>
true
5486f11ade6f4fa48c01bba304a6ef496c6cbada
PHP
powersvolk/kafo
/gotoAndPlay/Utils/MailChimp/Batch.php
UTF-8
2,092
2.671875
3
[]
no_license
<?php namespace gotoAndPlay\Utils\MailChimp; use gotoAndPlay\Utils\MailChimp as MailChimp; class Batch { private $MailChimp; private $operations = []; private $batch_id; public function __construct(MailChimp $MailChimp, $batch_id = null) { $this->MailChimp = $MailChimp; $this->batch_...
true
35bc403c17430d0a202e876aaaa7e938cb5086b4
PHP
hnhdigital-os/laravel-datasets-okfn
/src/Models/DataCountryPopulation.php
UTF-8
949
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Bluora\LaravelDatasetsOkfn\Models; use Illuminate\Database\Eloquent\Model as EloquentModel; class DataCountryPopulation extends EloquentModel { /** * The database table used by the model. * * @var string */ protected $table = 'data_country_population'; /**v * The...
true
174ec069f851a15d398259e407ed9f4fa03bbd26
PHP
judgedim/RMSPushNotificationsBundle
/Service/Notifications.php
UTF-8
1,709
2.84375
3
[ "MIT" ]
permissive
<?php namespace RMS\PushNotificationsBundle\Service; use RMS\PushNotificationsBundle\Message\MessageInterface; use Monolog\Logger; class Notifications { /** * Array of handlers * * @var array */ protected $handlers = array(); /** * @var Logger */ protected $logger; ...
true
239b713ebe05936e167b8612cbde98f589627209
PHP
shivamanhar/gallery
/public/admin/login.php
UTF-8
1,944
2.875
3
[]
no_license
<?php require_once("../../includes/initialize.php"); //if( $session->is_logged_in()) { redirect_to("index.php"); } // Remember to give your form's submit tag a name="submit" attribute! if (isset($_POST['submit'])) { // Form has been submitted $username = trim($_POST['username']); $password = trim($_POST['password...
true
271f433e3000790aa61faaf21ad29d4dad9157f3
PHP
f500/elewant
/src/Elewant/Herding/DomainModel/SorryIDoNotKnowThat.php
UTF-8
424
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Elewant\Herding\DomainModel; use Exception; use Prooph\EventSourcing\AggregateChanged; final class SorryIDoNotKnowThat extends Exception { public static function event(object $aggregate, AggregateChanged $class): self { return new self( sprintf("S...
true
0780839e78f76b225d9cfaaae6f7b746fdbd0518
PHP
miracuthbert/laravel-royalty
/src/Console/RoyaltyAction.php
UTF-8
4,302
2.71875
3
[ "MIT" ]
permissive
<?php namespace Miracuthbert\Royalty\Console; use Illuminate\Console\ConfirmableTrait; use Illuminate\Console\GeneratorCommand; use Illuminate\Support\Arr; use Illuminate\Support\Str; use Miracuthbert\Royalty\Models\Point; use Symfony\Component\Console\Input\InputOption; class RoyaltyAction extends GeneratorCommand ...
true
7baeb91b7a40237707b3dc1b0b14dfaee137930a
PHP
ysnkreatinc/endpoints
/packages/kreatinc/l2l-bot/migrations/2019_07_24_205442_fix_bots_questions_text.php
UTF-8
1,885
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; use Kreatinc\Bot\Models\BotType; use Kreatinc\Bot\Models\LeadField; class FixBotsQuestionsText extends Migration { /** * Run the migrations. * * @return void */...
true
9c48a94cd7aaabb28d1655b45819088bb5a21968
PHP
AthaiIslam/University-Addmission-System
/project/admin/SaveDepartment.php
UTF-8
658
2.59375
3
[]
no_license
<?php session_start(); if(!isset($_SESSION["user_type"]) || $_SESSION["user_type"] !== 'AD'){ header("location: login.php"); exit; } include 'admin_header.php'; $department_name = mysqli_real_escape_string($link, $_REQUEST['department_name']); $description = mysqli_real_escape_string($lin...
true
82e6085851ca3081d1114e018ab2e1b683f729c5
PHP
RenHec/SISHRS
/backend/app/Models/V1/Catalogo/Municipio.php
UTF-8
1,514
2.703125
3
[]
no_license
<?php namespace App\Models\V1\Catalogo; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Municipio extends Model { use HasFactory; /** * The table associated with the model. * * @var string */ protected $table = 'municipalities'; ...
true
499a409a1af4d64c81951fe3b571ef8e12343f81
PHP
LarsWiegers/slijterij-webshop
/app/Http/Controllers/CartController.php
UTF-8
1,073
2.75
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Product; use Illuminate\Database\Eloquent\Collection; use Illuminate\Http\Request; class CartController extends Controller { // public function addToCart( Request $request, $productId ) { session()->push('cartItems',( new Product() )->find( $productId ) ); return b...
true
40251f38c7cc47b0fd47ed5b26fdc31149976bb9
PHP
UalissonRodrigues/Curso-Iniciante-PHP
/aula5.php
UTF-8
1,322
3.4375
3
[]
no_license
<?php // Comando de decisões IF e ELSE $qualSuaIdade = 65; $idadeMenor = 12; $idadeMaior = 18; $idadeMelhor =63; if( $qualSuaIdade < $idadeMenor){ echo "Criança"; } else if($qualSuaIdade < $idadeMaior){ echo "Adolecente"; }else if($qualSuaIdade < $idadeMelhor){ echo "Adulto"; }else{ echo "Idoso"; } echo ...
true
127fa9b48e82e9a7547ccd4f4583b5435fb2683c
PHP
wkra/userMenager
/dist/php/edit.php
UTF-8
1,166
2.609375
3
[]
no_license
<?php require_once('connect.php'); function filter($data) { $data = substr($data, 0, 30); $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } $table = $_POST['table']; if ($table == 'users'){ $password = $_POST['password']; $firstName = $_POST['firstName'...
true
357fe579cd7684a1d0d53fc3a6afa7874459a569
PHP
manniL/uuid-mysql-performance
/src/Benchmark/BenchmarkResult.php
UTF-8
680
3.1875
3
[]
no_license
<?php namespace Spatie\Benchmark; class BenchmarkResult { private $results; private $iterations; protected $averageInSeconds; public function __construct(array $results) { $this->results = $results; $this->iterations = count($results); $this->averageInSeconds = (float) (ar...
true
5195bacd84f882976bc13de4eb51bf9af47c61ef
PHP
frmcclurg/kirkwood
/courses/php/examples/chapter06/array_unshift.php
UTF-8
212
3.734375
4
[]
no_license
<?php $stooge = array( "Moe", "Larry" ); array_unshift( $stooge, "Shemp" ); for ( $i = 0; $i < count($stooge); $i++ ) printf( "\$stooge[%d]: %s<br>", $i, $stooge[$i] ); ?>
true
573b782380a501adf3d1a7b54bc2077e78c3eb3b
PHP
KonbXXL/gtyhyyiyedsrwvwrh
/models/statistic.php
UTF-8
311
2.703125
3
[]
no_license
<?php require_once __DIR__ .'/../classes/DB.php'; class statistic { public $Id; public $DataV; public $Servises; public $Card; public $Sotrudnik; public static function getAll() { $db=new DB; return $db->queryAll('SELECT *FROM magazinevisit', 'statistic'); } }
true
3e0955698e3a11980d6c6ecbc5f253a5c5be9e94
PHP
ngdhuy/SE_01_PHP
/PHP_myBlog/models/Account.php
UTF-8
3,071
3.203125
3
[]
no_license
<?php class Account { private $acc_id; private $username; private $password; private $display_name; private $email; private $is_active; private $errorID = 0; public function __get($name) { return $this->$name; ...
true
cc03079ec5406bd8659d23eed4be8880d0bf39b3
PHP
ayuberlianda/tugas_weekend.php
/tugas_weekend4.php
UTF-8
266
3.21875
3
[]
no_license
<?php function luas_tabung($jari,$tinggi){ return 2*3.14*$jari*($jari+$tinggi); } echo "Jari-jari sebuah tabung : 14 cm <br>"; echo "Tinggi sebuah tabung : 10 cm <br>"; echo "<b> Jadi luasnya adalah : ",luas_tabung(14,10)," cm<sup>2</sup> </b>"; ?>
true
2e600601463f0d1623207bfcd442ae33a0b8cfd9
PHP
nikfed280199/fku
/vendor/export.php
UTF-8
919
2.546875
3
[]
no_license
<?php require_once '../config/connect.php'; mysqli_query($con, "SELECT * INTO OUTFILE '/employees.csv' FIELDS ENCLOSED BY '\"' TERMINATED BY ';' ESCAPED BY '\"' LINES TERMINATED BY '\r\n' FROM `employees`;"); /* header("Content-Type: text/csv; charset=utf8"); header("Content-Disposition: attachment; filename=employe...
true
ad6dd850d47422475b9f8b2f42a1b3a389c7969d
PHP
wellmatt/druckplan
/libs/modules/personalization/personalization.order.class.php
UTF-8
13,989
2.515625
3
[]
no_license
<? // ----------------------------------------------------------------------------------- // Author: iPactor GmbH // Updated: 08.08.2013 // Copyright: 2013 by iPactor GmbH. All Rights Reserved. // Any unauthorized redistribution, reselling, modifying or reproduction of part // or all of the contents in any fo...
true
4f52e7b3d8f3f7774e9d3a6b45de6822e9f4211f
PHP
1naesis/asmpromo-mvc-advanced
/components/Db.php
UTF-8
892
2.875
3
[]
no_license
<?php namespace Component; use Component\RedbeanDb; use Component\PdoDb; /** * Класс Db * Компонент отвечающий за подключения к БД */ class Db { private static $db_config = []; private static $db; public static function __callStatic($name, $arguments) { if(!self::$db){ self::$d...
true
5e6e7b493399f6929620efa8bdc690fd1da41a28
PHP
Arul-/reactive-restler
/src/MediaTypes/Js.php
UTF-8
1,743
2.703125
3
[]
no_license
<?php namespace Luracast\Restler\MediaTypes; use Luracast\Restler\Contracts\ResponseMediaTypeInterface; use Luracast\Restler\Exceptions\HttpException; use Luracast\Restler\ResponseHeaders; class Js extends MediaType implements ResponseMediaTypeInterface { public const MIME = 'text/javascript'; public const EX...
true
9b8f5a9c77da3b9c5e499e9ba898a8cf05315c14
PHP
Lunesti/TokyoAPI
/Model/LocationManager.php
UTF-8
6,060
3.0625
3
[]
no_license
<?php namespace TokyoAPI\Model; /*La classe sera dans ce namespace*/ require_once('model/Manager.php'); require_once('Entity/Location.php'); /** * Gérer les enregistrements de la table Location * * @author Arben Peposi <arben.peposi@outlook.fr> * * @param int $example This is an example function/method para...
true
fb8ff458ffeba9131545600124bdb7227da17368
PHP
alexgkt/tripfez-test
/Q1/app/Http/Controllers/UserController.php
UTF-8
2,892
2.859375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\User; use Illuminate\Http\Request; class UserController extends Controller { /** * Login page */ public function login() { return view('login'); } /** * Login * * @param Request * @return Response */ ...
true
12cc5d1bf69b55b76cbcbaa030848cf6a23efe6e
PHP
cflynn07/clubbingowl
/main/application/controllers/worker.php
UTF-8
16,808
3.0625
3
[]
no_license
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Colors { private $foreground_colors = array(); private $background_colors = array(); public function __construct() { // Set up shell colors $this->foreground_colors['black'] = '0;30'; $this->foreground_colors['dark_gray'] ...
true
2607b04709891d2b78cbda1b14d0deb74c7524d1
PHP
redcrackle/redtest-core
/src/entities/Commerce/CommerceLineItem.php
UTF-8
6,057
2.84375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Anil * Date: 3/9/14 * Time: 4:00 PM */ namespace RedTest\core\entities\Commerce; use RedTest\core\entities\Entity; use RedTest\core\Response; use RedTest\core\Utils; /** * Class CommerceLineItem * * @package RedTest\core\entities\Commerce */ class CommerceLineItem ex...
true
eb579a3193179129e82ec4556b0788dfaca2e02f
PHP
audiophilesoft/organizer
/web/benchmark.php
UTF-8
240
2.546875
3
[]
no_license
<?php echo '<br> Memory usage: ', round(memory_get_peak_usage() / (1024 * 1024), 2, PHP_ROUND_HALF_EVEN), ' MB<br>'; echo 'Generation time: ', round((microtime(true) - $_SERVER['REQUEST_TIME_FLOAT']) * 1000, 0, PHP_ROUND_HALF_EVEN), ' ms';
true
166e5f1fc582f5cde85e201a85a83700fc5a3263
PHP
yukthi-isuranga/exam
/q2.php
UTF-8
612
3.71875
4
[]
no_license
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <?php /** * */ class animal { public $family; public $food; public function __construct($family, $food){ $this->family =$family; $this->food = $food; } public function decl() { $dec = "the ani...
true
cbe75711b0b790bced679609b587b42e7b161d77
PHP
llogan382/autotrader-parent
/theme_config/extensions/shortcodes/shortcodes/prettyPhoto.php
UTF-8
4,710
2.6875
3
[ "MIT" ]
permissive
<?php /** * prettyPhoto * * To override this shortcode in a child theme, copy this file to your child theme's * theme_config/extensions/shortcodes/shortcodes/ folder. * * Optional arguments: * title: * link: * type: link/button * gallery: * style: * class: * * http://www.no-margin-for-errors.com/projects/...
true
0f8e957a532451fcf43c76374325a7987ba92447
PHP
jcobban/Genealogy
/FamilyTree/Temple.php
UTF-8
11,580
2.609375
3
[]
no_license
<?php namespace Genealogy; use \PDO; use \Exception; /************************************************************************ * Temple.php * * * * Display a web page containing details of ...
true
6487fb68af122ddd06ca2367d2374531900e46e7
PHP
k-wth/makabeken2016
/php/Sample/sample7.php
UTF-8
1,054
3.734375
4
[]
no_license
<h2> 7.関数 </h2> <?php /* swiftの関数: func Test()->void { ... } */ // 関数(引数なし・戻り値なし) function Test() { echo "test<br/>"; } Test(); /* swiftの関数: func Test2(message:String)->void { ... } */ // 関数(引数あり・戻り値なし) /* * @pram $messgae:String; */ function Test2($message){ ...
true
7172336c12f97eeadb939d09071bcde10b7cbae7
PHP
yasaryousuf/profaili
/src/admin/PfmImport.php
UTF-8
3,022
2.609375
3
[]
no_license
<?php /** * */ namespace admin; class PfmImport { public function __construct() { // } public function generate($post, $target_file) { $dataType = esc_sql($_POST['import-data-type']); $importData = esc_sql($_POST['import-data']); if ($dataType == 'json' && $i...
true
73e98df18831945fb5b73cdda9982a728fcaf840
PHP
NguyenCongLuc2305/job-portal
/app/create-account.php
UTF-8
3,462
2.609375
3
[]
no_license
<?php date_default_timezone_set('Africa/Dar_es_salaam'); if (isset($_POST['reg_mode'])) { checkemail(); }else{ header("location:../"); } function checkemail() { try { require '../constants/db_config.php'; $conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password); $conn->setAttribut...
true
7b0c10e7f9d2b36f36aa9aac8b69a9c5be5a0065
PHP
andparsons/mage-app-start
/lib/internal/Magento/Framework/MessageQueue/ConsumerInterface.php
UTF-8
686
2.921875
3
[]
no_license
<?php namespace Magento\Framework\MessageQueue; /** * Consumers will connect to a queue, read messages, and invoke a method to process the message contents. * * @api * @since 102.0.3 * @since 100.0.2 */ interface ConsumerInterface { /** * Connects to a queue, consumes a message on the queue, and invoke ...
true
454428eaa3935050f459786020a5a8cddfa36be7
PHP
gehrisandro/php-cloneable
/src/Cloneable.php
UTF-8
490
2.796875
3
[ "MIT" ]
permissive
<?php namespace Spatie\Cloneable; use ReflectionClass; trait Cloneable { public function with(...$values): static { $clone = (new ReflectionClass(static::class))->newInstanceWithoutConstructor(); foreach (get_object_vars($this) as $objectField => $objectValue) { $objectValue = ar...
true
725d0f52133087dc215419f52c0929f41a9ffbb4
PHP
Timtenvoorde/bontemps
/info.php
UTF-8
1,493
2.65625
3
[]
no_license
<html> <?php require_once 'core/init.php'; include_once 'includes/header.php'; if($user->isLoggedin()) { if(isset($_GET['id'])){ $tafel_id = $_GET['id']; ?> <body> <center> <div class="container"> <h1><a href="index.php"> Info tafel <?php echo $tafel_id; ?></a></h1> <?php $bontemps = new Functions(); $bon...
true
f4ad0fe9b7f4a9a242c3b57be15cd4ce253d5b6b
PHP
lana297/katalogigara
/class.korisnik.php
UTF-8
4,840
2.6875
3
[]
no_license
<?php include_once('db.php'); class korisnik { public $korisnik_id; public $korisnicko_ime; public $lozinka; public $ime; public $prezime; public $email; public $slika; public $top; public $tip_id; public $tip_korisnika; public function tipKorisnikaNaziv() { $db = new baza(); $res = $db->query("S...
true
04adc082459d66041049d8a038eab265f0e79c26
PHP
kennedyeduardo1996/PHP-udemy
/php-com-mysql/public/unidade_08-inserir-no-banco/inserir_transportadoras.php
UTF-8
2,802
2.765625
3
[]
no_license
<?php require_once("../../conexao/conexao.php"); ?> <?php // insercao no banco if(isset($_POST["nometransportadora"])) { $nome = $_POST["nometransportadora"]; $endereco = $_POST["endereco"]; $cidade = $_POST["cidade"]; $estado = $_POST["estados"]; $cep = $_POST["cep"]; $cnpj = $_POST["cnpj"]; ...
true
61df0b5ea0f2fd4f199e9f032a61378e6743612e
PHP
NomanHameed/hafizbrother-cms
/database.php
UTF-8
839
3.125
3
[]
no_license
<?php // class Database { // public $servername = "localhost"; // public $username = "root"; // public $password = ""; // public $db = "hafiz"; function __construct() { try { $servername = "localhost"; $username = "root"; $password = ""; $db = "hafiz"; $conn = new PDO("mysql:host=$servername;d...
true
a6273f52f714908909f1cd3bcab51c14f90f6539
PHP
csernikmarton/laravel-auth0
/src/Events/TokenVerificationFailedContract.php
UTF-8
706
2.921875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Auth0\Laravel\Events; use Throwable; /** * @api */ interface TokenVerificationFailedContract extends EventContract { /** * AuthenticationFailed constructor. * * @param string $token an encoded bearer JSON web token * @param Throwable $excepti...
true
4df12ac1384816bdd92c5d7205553b7b7ac5ae1e
PHP
casidos/pickems
/app/Http/Controllers/ProfileController.php
UTF-8
2,131
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Validation\Rule; use App\Http\Requests\SaveProfileRequest; use App\Http\Requests\SavePasswordRequest; class ProfileController extends Controller { /** * Create a new controller instance. * * @return void */ ...
true
d42a312854568a71d7dfef58d39acc88caf37e89
PHP
AzriDelta/WebProgramming
/myPHP/Lab 3/Assignment3(031897)/TwoTrains.php
UTF-8
503
2.78125
3
[]
no_license
<html> <head><title>Request Test Distance Between Two Train</title></head> <body> <?php $speedA=$_GET['speedA']; $speedB=$_GET['speedB']; $distance=$_GET['distance']; echo "The distances traveled by Train A:".$distanceA."<br>"; echo "The distances traveled by Train B...
true
2d5ea057c045360fb7c4fca312b968a19bc4dd02
PHP
arojunior/barbecue-orders
/api/src/Repositories/ProductsRepository.php
UTF-8
414
2.765625
3
[]
no_license
<?php namespace BarbecueOrders\Repositories; use BarbecueOrders\Repositories\Contracts\ProductsInterface; use BarbecueOrders\Models\Product; class ProductsRepository implements ProductsInterface { protected $product; public function __construct(Product $model) { $this->product = $model; } ...
true
47ab727d177c997cdccacbaddf69450d811888b2
PHP
cri2net/sms-client
/src/SMSInterface.php
UTF-8
1,954
2.84375
3
[]
no_license
<?php namespace cri2net\sms_client; interface SMSInterface { /** * метод для проверки остатка на балансе в аккаунте на sms шлюзе * @return double */ public function getBalance(); /** * Проверка статуса отправки sms * @param mixed $campaignID ID отправки на sms шлюзе * ...
true
65329e18ce310d8146a88a4e13305e9f893fc2c5
PHP
cobieta/Web-Programming-Coursework
/capacity.php
UTF-8
2,022
2.640625
3
[]
no_license
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta name="robots" content="noindex, nofollow" /> <title>Capacity Task</title> <style type="text/css"> body { font-family: "Apple Chancery", Times, serif; background-color: #D6D6D6; } .c...
true
6e132141da0c902a7175c2d90914adf8eb9b82fd
PHP
afsk/zitec-bundles
/src/Zitec/ValidationBundle/Validator/ImageChecker/ImagickImageChecker.php
UTF-8
569
2.640625
3
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
<?php namespace Zitec\ValidationBundle\Validator\ImageChecker; /** * Image checker which relies on the Imagick extension. */ class ImagickImageChecker implements ImageCheckerInterface { /** * {@inheritdoc} */ public function isValid($path) { try { new \Imagick($path); ...
true
90de0090f7808e1b64d102a9bbdf10debdbc1df6
PHP
hyching02/wtlab108
/Desktop/ezenglish/ezenglish/login/php/login.php
UTF-8
2,317
2.90625
3
[ "MIT" ]
permissive
<?php include "src/JWToken.php"; // With algo(Algorithm) - RSA (Public Key/Private Key pair) include "DB_information.php"; $DBname = "wtlab109"; //connect to database $connection = mysqli_connect($DBhost, $DBuser, $DBpass); echo "connect correct"; mysqli_query($connection, "SET NAMES utf8"); mysqli_select_db($connecti...
true
493115c0e3916cc9679436920d51c29b5edc4e83
PHP
amneacsu/samegame
/score.php
UTF-8
1,247
2.65625
3
[]
no_license
<?php include 'config.php'; mysql_connect($sql['hostname'], $sql['username'], $sql['password']); mysql_Select_db($sql['database']); if (isset($_POST['op'])) $op = $_POST['op']; else die(); if ($op == 'set') { foreach (array('playername', 'ruleset', 'score', 'colors', 'moves') as $h) { if (isset($_POST[$h])) $$h ...
true
db054e3c06ceb0f351234bb71bd6887a153f4c0c
PHP
leemisterk/synprac1
/app/Http/Controllers/TodoController.php
UTF-8
569
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; class BController extends Controller { public $restful = true; public function postAdd() { $todo = new Todo(); $todo->title = Input::get("title"); $todo->save(); $last_todo = $todo->id; $todos = Todo::whereId($last_todo...
true
5c83b982695b34c6eb4523648d2738ab3b5a492c
PHP
silvinaguidobono/A1
/36/index.php
UTF-8
1,798
3.421875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Ejercicio 36</title> <meta charset="UTF-8"> </head> <body> <h1>Ejercicio 36</h1> <form action="<?= $_SERVER['PHP_SELF'] ?>" method="POST"> <p><label for="cadena1"> Ingrese cadena 1: </label></p> <br> <in...
true
8fb92aff6adfba193b04e5b879d806278f4db290
PHP
AdamEdelstein/dota2db
/database/migrations/2016_03_02_031208_items.php
UTF-8
702
2.546875
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class Items extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('items', function(Blueprint $items_table) { $items_table->incr...
true
1ce20110424ebf06138fe70628edc31727dd61b0
PHP
WebSystemsSolutions/admin-tools
/src/Server/Sensors/RamTotalSensor.php
UTF-8
483
2.71875
3
[ "MIT" ]
permissive
<?php namespace Sd1328\AdminTools\Server\Sensors; /** * Class RamTotalSensor * * Получение размера всей оперативной памяти (Кбайт) * * @package Sd1328\AdminTools\Server\Sensors * @author lex gudz sd1328@gmail.com */ class RamTotalSensor implements SensorInterface { /** * @return int * @throws \Exc...
true
6a6e08c9b47aa5404031fdb480ee6cc70c19ee88
PHP
ZaurZahid/my-awesome-php-projects-all
/for learning/az-yeni-php-dersler/CSRF/index.php
UTF-8
708
2.578125
3
[]
no_license
<?php require 'db.php'; $id=1; $sor=$db->prepare("SELECT * FROM uyeler where id=?"); $sor->execute([ $id ]); $cek=$sor->fetch(PDO::FETCH_ASSOC); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X...
true
74153eb3146bf690995ba2d3c2a8936e90a7c042
PHP
BackupTheBerlios/sotf-svn
/sotfstation/trunk/classes/pageSplit.class.php
UTF-8
6,459
3.015625
3
[]
no_license
<? //default error corrector... if(!isset($_GET['block'])){ $_GET['block'] = 1; $db_block = 0; }else{ $db_block = $_GET['block'] - 1; } /****************** * Class: Page Splitter * Author: Koulikov Alexey * Purpose: To create a sliding navigation bar when browsing multiple * page result sets. ...
true