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
7e2a176acfe0e73608fc86f40a8986336bccd900
PHP
manwolf/test
/sicai/PHP/trunk/srvapi/framework/controller/JS_classStatistics.php
UTF-8
11,309
2.515625
3
[]
no_license
<?php include_once 'base/crudCtr.php'; /** * 功能:教师请假及课程安排 * 作者: 黄东 * 日期:2015年8月31日 */ class JS_classStatistics extends crudCtr { public function __construct() { $this->tablename = 'teacher_info'; } // 教师上课统计 ---教师端现在主页 function teacherIndex() { $msg = new responseMsg (); $capturs = $this->ca...
true
9c9e2e1cf832bc30efce4d68cc8e91506ff8ada8
PHP
labelexe/PHP-Challenges
/List Of Challenges/71. Build Tower.php
UTF-8
1,804
3.765625
4
[]
no_license
<?php /* 71. Build Tower >Build Tower Build Tower by the following given argument: number of floors (integer and always greater than 0). Tower block is represented as * EXAMPLE: for example, a tower of 3 floors looks like below [ ' * ', ' *** ', ...
true
e72dfb44ca1d31591f9d2984d2552134b06027e0
PHP
mariovalney/rpg-companion-for-discord
/app/Support/Traits/Livewire/HasRollingParts.php
UTF-8
1,352
2.640625
3
[]
no_license
<?php namespace App\Support\Traits\Livewire; use App\Models\Rolling\RollingPart; use App\Models\Variable; trait HasRollingParts { /** * Get rolling parts * * @param string $value * @return Collection */ public function getRollingAttribute($parts) { $parts = json_decod...
true
83d40b0870171c13008e49388fb833361b55e5d6
PHP
dsansyzbayev/phpCourseHW
/lab8/index.php
UTF-8
1,106
2.796875
3
[]
no_license
<?php include "Player.php"; include "Hero.php"; include "Logger.php"; $heroNames1 = ['Thanos', 'Galactus', 'Dormamu', 'Altron', 'Hitler']; $heroNames2 = ['Thor', 'Hulk', 'IronMan', 'Dr.Strange', 'Bakhtiar']; $heroes1 = $heroes2 = []; for($i = 0; $i < 5; $i++){ $heroes1[] = new Hero($heroNames1[$i], rand(1000,25...
true
344e514c35618098522fefb8f416f1512ff3e020
PHP
zhangxiaoqqi/phpDesign
/sort.php
UTF-8
3,652
3.515625
4
[]
no_license
<?php /** * Created by PhpStorm. * User: Admin * Date: 2018/3/20 * Time: 17:40 */ //排序算法 /* * 冒泡排序 (效率比较低) * * 外层循环决定循环层数 * 内层,两两比较,交换位置 * 每层循环过后,后面的值总是有序的最大(最小)的值,下次就无需去比较他们。 * 加入变量flag,如果没有交换位置,则说明顺序是对的,可以跳出循环结束了 */ $arr = array(); $arr = array(1,98,5,34,23,87,54,23,12,0,456,123,45); $len = count($...
true
9d67043e71a88e49e2889e3079da06c781deb60b
PHP
mozartbrito/ci-start
/application/helpers/funcoes_helper.php
UTF-8
2,304
3.015625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php function gravaDateDB($data) { //dd/mm/aaaa => dd-Mes-aa //return date('d-M-y', strtotime($data)); //padrão para Oracle //dd/mm/aaaa => aaaa-mm-dd $data = date('d/m/Y', strtotime($data)); return date('Y-m-d', strtotime($data)); // padrão para MySQL } function viewDate($data) { return date('d/m/Y', strtotim...
true
8a0a067d601c74035a80ec0419da937d11b6685f
PHP
hxxy2003/backend
/backend/app/Models/AffiliateExtend.php
UTF-8
2,995
2.578125
3
[]
no_license
<?php namespace App\Models; /** * This is the model class for table "affiliates_extend". * @property integer $id int 自增ID * @property integer $affiliateid int 媒体ID * @property integer $ad_type tinyint * 广告类型 * 0(应用市场) * 1(Banner图文) * 2(Feeds) * 3 插屏半屏) * 4(插屏全屏) * 5(Banner文字链) * @property integer $revenue...
true
488d433deae8fc8eb7091fdf96595d161efe4ae9
PHP
pelincicek/laravelblog
/app/Http/Controllers/ArticleController.php
UTF-8
1,276
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Article; class ArticleController extends Controller { public function list() { $articles = Article::all(); return view('articles.list', compact('articles')); } public function create() { return vie...
true
26048b3fec22ee5ae1694d653bfea6132011ed37
PHP
aptaq/CDV
/Technologie internetowe/PHP/1_zmienne.php
UTF-8
537
2.890625
3
[]
no_license
<?php //boolen $prawda = true; $falsz = false; $calkowita = 200; $hex =0xA; $oct =010; $bin = 0b1010; echo "$hex"; echo '$hex'; echo "<br>$bin"; //skladnia herdoc $imie = 'Filip'; $napis = <<< TEKST Mam na imię :$imie TEKST; echo $napis; echo<<<X <br>Mam na imie: $i...
true
d88f294b983a60184170a3f79fcbda1142d8e28c
PHP
akononykhin/trustcare
/include/TrustCare/Model/Pharmacy.php
UTF-8
4,783
2.78125
3
[]
no_license
<?php /** * * Alexey Kononykhin * alexey.kononykhin@gmail.com * */ class TrustCare_Model_Pharmacy extends TrustCare_Model_Abstract { protected $_id; protected $_name; protected $_is_active; protected $_address; protected $_id_lga; protected $_id_country; protected $_id_...
true
3929eb2ee5ffb473daaa21572d0d5e59e31ac8b5
PHP
rovast/design-pattern-talk
/src/Chapter16/v2/Work.php
UTF-8
1,195
3.203125
3
[ "MIT" ]
permissive
<?php namespace Rovast\DesignPatternTalk\Chapter16\v2; /** * Class Work. */ class Work { // 当前的工作时间 protected $hour; // 当前工作是否完成 protected $finished; /** * @var \Rovast\DesignPatternTalk\Chapter16\v2\State state */ protected $state; /** * 初始化为上午的状态 * Work construct...
true
4a4e965e27b471357f7091dd9435f9e752609357
PHP
luigif/WsdlToPhp
/samples/xignite-security/Map/XiSecurityServiceMap.php
UTF-8
5,459
2.59375
3
[]
no_license
<?php /** * Class file for XiSecurityServiceMap * @date 08/07/2012 */ /** * Class XiSecurityServiceMap * @date 08/07/2012 */ class XiSecurityServiceMap extends XiSecurityWsdlClass { /** * Method to call MapSecurity * Meta informations : * - documentation : Get the symbol, name, CUSIP, and CIK for a securi...
true
6eda8523c326afb098872cd3bb0f020a6c9abf01
PHP
w4x51m/QuiverCore
/src/Quiver/ChatFilter/ChatFilter.php
UTF-8
2,667
2.984375
3
[]
no_license
<?php namespace Quiver\ChatFilter; use Quiver\ChatFilter\chat\ChatClasser; use pocketmine\utils\TextFormat; /** * Class to check for allowed message * (prevent passwords in chat, prevent dating, short and repeating messages) */ class ChatFilter { /**@var ChatClasser*/ protected $profanityChecker; ...
true
8ebece1a69b91ceef502ce3dd5b9871db23a0106
PHP
yfix/yf
/.dev/console/commands/yf_console_core_generate.class.php
UTF-8
1,206
2.5625
3
[]
no_license
<?php use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class yf_console_core_generate extends Command { protected function configure() { $this ...
true
4edac8ab7c35a1a3c65055f659b2ba05a88634be
PHP
MatheusCruz1/Projects
/projects/cadastrar/cadastrarProjeto.php
UTF-8
1,580
2.703125
3
[]
no_license
<?php require ('conexao.php'); if(!isset($_SESSION)) // Verifica se existe alguma sessão. Senão existir, a função cria uma { session_start(); } if (!isset($_SESSION['id2'])) { // Destrói a sessão por segurança session_destroy(); // Redireciona o visitante de volta pro lo...
true
fced36be6daab3bfb788bdfdd34269438d5ba207
PHP
Iuliana12/timesheet-test
/classes/Collection.php
UTF-8
2,984
3.625
4
[]
no_license
<?php //this is a generic collection of objects class Collection { public $name;//a name for this collection, this can be anything, including a refid to identify the collection private $items;//this is an array of objects public $length;//this is the length public function __construct($name = null,$items = nul...
true
83e0c5e2ebdd2b2e91c2894238c8b0c17db6ce63
PHP
spidfire/API-Generator
/src/DocParser.php
UTF-8
866
2.84375
3
[]
no_license
<?php class DocParser{ var $storage = null; function __construct(){ $this->storage = new DocParserStorage(); } function nextFile($filename){ $this->storage->addItem("file",$filename); } function nextDoc($doc_array,$extra_attr=array()){ list($full,$doc,$code) = $doc_array; $attr = $this->getAttributes($...
true
536e8ddb5e845807dabbf6cba41685ad53ef848c
PHP
Mauriciozx1/Problock--Soporte-Metacognitivo
/app/AnswerQuestion.php
UTF-8
1,007
2.609375
3
[]
no_license
<?php namespace CSLP; use Illuminate\Database\Eloquent\Model; class AnswerQuestion extends Model { protected $table = 'questions_answer'; public static function getAnswer($idQuestion){ $answerQuestion = AnswerQuestion::where('question_id', '=',$idQuestion)->get(); $dataAnswer = []; ...
true
a2a01d847083e8aa13b4c371588dcf00f213e873
PHP
arwinvdv/eBoekhoudenApi
/src/ValueObjects/AccountLedgerCode.php
UTF-8
908
3.125
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php namespace bobkosse\eBoekhouden\ValueObjects; /** * Class AccountLedgerCode * @package bobkosse\eBoekhouden\ValueObjects */ class AccountLedgerCode { /** * @var */ private $accountLedgerCode; /** * AccountLedgerCode constructor. * @param $accountLedgerCode * @throws \Exc...
true
29fb56d0e377efe5dc069a53b5b4c27551c8f3c5
PHP
darknes94/P6
/includes/functions.php
UTF-8
21,464
2.65625
3
[]
no_license
<?php require_once('admin/db.inc'); function FormatearFechaBarras($fecha) { $date = new DateTime($fecha); $fechaNueva = $date->format('d/m/Y'); return $fechaNueva; } function FormatearFechaGuiones($fecha) { $date = new DateTime($fecha); $fechaNueva = $date->format('Y-m-d'); return $fecha...
true
d2df7e0add99de823c994332fd8b4231292c9dd1
PHP
ztao8/thankcms
/project/Application/Admin/Model/MenuModel.class.php
UTF-8
3,424
2.515625
3
[]
no_license
<?php /** * 菜单模型 */ namespace Admin\Model; use Common\Model\Model; class MenuModel extends Model { //自动验证 protected $_validate = array( //array(验证字段,验证规则,错误提示,验证条件,附加规则,验证时间) array('title', 'require', '菜单名称不能为空!', 1, 'regex', 3), array('app', 'require', '模块不能为空!', 1, 'regex', 3), array('controller...
true
448ec2c2a1726b9e63a5c2abbe18b70a2ef21f2f
PHP
Ceive/view-layer
/src/BlockType/BlockType.php
UTF-8
1,880
2.75
3
[]
no_license
<?php /** * @Creator Alexey Kutuzov <lexus27.khv@gmail.com> * @Author: Alexey Kutuzov <lexus27.khv@gmai.com> * @Project: ceive.view-layer */ namespace Ceive\View\Layer\BlockType; use Ceive\View\Layer\Block; use Ceive\View\Layer\Composition; use Ceive\View\Layer\Holder; use Ceive\View\Layer\Layer; use Ceive\View\...
true
9474500260c30c1065ffd0b4449deb4c2a2b2a18
PHP
pauloserafimtavares/lumen-with-mongodb
/lumen/app/ViewModels/v1/ResultViewModel.php
UTF-8
813
2.921875
3
[ "MIT" ]
permissive
<?php namespace App\ViewModels\v1; use App\ViewModels\v1\ViewModel; use Exception; class ResultViewModel extends ViewModel { public $success; public $data; public $errors; public $warnings; public function __construct() { $this->success = true; $this->errors = []; $t...
true
5c218545130a4f05d57aff75cb67468888b50e31
PHP
Pugigugi26/grupo2ecommerceLARAVEL
/database/factories/DriverFactory.php
UTF-8
886
2.65625
3
[ "MIT" ]
permissive
<?php /** @var \Illuminate\Database\Eloquent\Factory $factory */ use App\Driver; use App\Family; use Faker\Generator as Faker; $factory->define(Driver::class, function (Faker $faker) { $families = Family::all(); // ACA ESTA TRAYENDO TODAS LAS FAMILIAS , TRAEME DE LA TABLA LAS FAMILIAS EXISTENTES // ret...
true
0a71e40f9d6c0ffff69b85ab7592052aceb30f1f
PHP
PoturovicAnel/ClothingStore
/inc/Database.php
UTF-8
1,193
3.359375
3
[]
no_license
<?php class Database{ private $host = "localhost"; private $user = "root"; private $pass =""; private $dbname = "clothingstore"; private $dbh; private $error; private $stmt; public function __construct(){ // Set DSN $dsn = 'mysql:host=' . $this->host . ';dbname=' . $this-...
true
456c0543401e33bc109b38ee523ceea4c820842b
PHP
alfredostochiero/JWT_Hash
/jwt.php
UTF-8
756
3.28125
3
[]
no_license
<?php class JWT { public function create($data) { // Method that create the JWT. $header = json_encode(array("typ"=>"JWT", "alg"=>"HS256")); $payload = json_encode($data); $hbase = $this->base64url_encode($header); $pbase = $this->base64url_encode($payload); $signature = hash_hmac("sha256", $hbase.".".$...
true
84ce29b30a57d496b8b19c9e3a7fb979ef083b51
PHP
tonyho96/pms
/painttrack/service/ItemService.php
UTF-8
343
2.6875
3
[]
no_license
<?php class ItemService { public static function uploadImage( $file ) { $targetDir = PMS_UPLOAD_PATH; $targetFile = md5(uniqid(rand(), true)) . basename( $file["name"] ); $fullPath = $targetDir . $targetFile; if ( move_uploaded_file( $file["tmp_name"], $fullPath ) ) { return "/uploads/$targetFile"...
true
22eec0866f435c57bb7c92772ea9d1fa776dd2fd
PHP
DarkGhostHunter/RutUtils
/src/HasCallbacks.php
UTF-8
1,206
2.984375
3
[ "MIT" ]
permissive
<?php namespace DarkGhostHunter\RutUtils; use Closure; trait HasCallbacks { /** * Callbacks to execute after making many Ruts * * @var array */ protected static array $after = []; /** * Register a callback to be executed after making many Ruts * * @param \Closure $cal...
true
888924bf03b8ede898f1a99b0acbd00768362229
PHP
Jimmy-JS/skripsibackend
/database/seeds/QuestionnaireQuestionSeeder.php
UTF-8
2,058
2.609375
3
[ "MIT" ]
permissive
<?php use App\Models\QuestionnaireQuestion; use Illuminate\Database\Seeder; class QuestionnaireQuestionSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // Built In Question QuestionnaireQuestion::create([ 'id' => 99...
true
682d4498bc539c459f052a39358c71d784446939
PHP
MatrenDev/CSV-chart-generator
/data.php
UTF-8
1,276
2.8125
3
[ "MIT" ]
permissive
<?php //JSON header('Content-Type: application/json'); //Baza $db_host = 'localhost'; $db_user = 'root'; $db_password = ''; $db_name = 'panda_rek2'; //Połączenie $mysqli = new mysqli($db_host, $db_user, $db_password, $db_name); if(!$mysqli) { die("Brak połączenia z bazą" . $mysqli->error); } $file = 'MOCK_DATA.csv...
true
a6f5221d88680a1ce42d510d3b54d5c8f883a3d2
PHP
nboldar/phplesson
/example3/engine/products.php
UTF-8
319
2.828125
3
[]
no_license
<?php function getAllProducts(){ return queryAll("SELECT * FROM products"); } function getProductById($id){ return queryOne("SELECT * FROM products WHERE id = {$id}"); } function getProductsByIds(array $ids){ $in = implode(", ", $ids); return queryAll("SELECT * FROM products WHERE id IN ({$in})"); }
true
2416e5c06f106cca681a2d2b0bd4a2273c6a0905
PHP
tasfe/my-weixin-api
/Common/common.php
UTF-8
4,212
2.53125
3
[]
no_license
<?php /** * 由数据库取出系统的配置 * * @access public * @param mix $name * * @return mix */ function MC($name) { $name = strtolower($name); if (S('cache_config')) { $sys_conf = S('cache_config'); } else { $sys_conf = M("Config")->where("status=1")->getField("name,val"); S("cache...
true
19e5411a588eeadfce5b3ac084648ea3a324f097
PHP
brucewu16899/SingleSignOn
/app/Disk.php
UTF-8
2,551
2.8125
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * App\Disk * * @property integer $id * @property integer $order * @property string $path * @property integer $capacity * @property integer $free_space * @property \Carbon\Carbon $created_at * @property \Carbon\Carbon $updated_at * @property-...
true
57dfcd905038e29bad887c28c5c96f5eda9b2c06
PHP
HagemanFulfilmentBV/wics-servicelayer-php-sdk
/src/Auth/Basic.php
UTF-8
303
2.78125
3
[ "MIT" ]
permissive
<?php namespace Hageman\Wics\ServiceLayer\Auth; class Basic { /** * @param string $key * @param string $secret * * @return string */ public static function hash(string $key, string $secret): string { return 'Basic ' . base64_encode("$key:$secret"); } }
true
7a91d8b0094a0cb989ea732d423f357d9d2e52f4
PHP
bazo/php-orientdb
/src/OrientDB/Protocols/Binary/Operations/AbstractOperation.php
UTF-8
7,693
3
3
[ "MIT" ]
permissive
<?php namespace OrientDB\Protocols\Binary\Operations; use OrientDB\Common\Binary; use OrientDB\Common\ConfigurableInterface; use OrientDB\Common\ConfigurableTrait; use OrientDB\Common\Math; use OrientDB\Exceptions\Exception; use OrientDB\Protocols\Binary\Socket; use OrientDB\Records\Deserializer; abstract class Abst...
true
de46849f90bd7228cdbba9eaa5a17a5cdb8daeb9
PHP
sasigit7/PersonalHomePHP
/PHP-Tasks/07.Task7 /Task7.php
UTF-8
835
4
4
[]
no_license
<h1>Local and Global Scope</h1> <?php $number = 10; // global scope echo $number."<br/>"; // outputs 10 /*This function accepts a parameter which needs to multiplied with a global variable*/ function multiply ($multiplyBy) { global $number; // Import global variable $number using "global" keyword insid...
true
c52d3637a93c7931f644d85761ca6af68082cfaf
PHP
SinenhlanhlaKhumalo/Smart-Schools-Communicator
/scripts/filtering_functions.php
UTF-8
3,225
2.6875
3
[]
no_license
<?php function filtering_vehicles($conn,$province,$make,$minPrice,$maxPrice,$minYear,$maxYear) { $post=array(); $count=0; $sql=""; $response="nodata"; if($make=='Any' && $province=='All') { $sql ="SELECT * FROM vehicles where (vehicle_price BETWEEN $minPrice AND $maxPric...
true
0925b3877d6ccf426e1bdcd9b336969c56f5a009
PHP
foxluck/otdelstroy
/system/lib/Registry.class.php
UTF-8
939
3.5
4
[]
no_license
<?php /** * Static class registry * */ class Registry { protected static $store = array(); /** * Security on new Registry * */ protected function __construct() {} /** * Check data exists by key * * @param string $name * @return bool ...
true
7793750e9f38340ba41cdb10284efcb184dadc8e
PHP
zbigniewcichanski/reserve
/core/src/Service/Dm/Repository/LessonRepository.php
UTF-8
1,608
2.625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * @author: Zbyszek Cichanski * Date: 07.01.2017 * Time: 16:24 */ namespace Core\Service\Dm\Repository; use Core\Core\Repository; use Core\Service\Inf\LessonConvert; class LessonRepository extends Repository { /** * @var LessonConvert */ private $repository; ...
true
9a3e4f4904c4f9ef4e32829a43687598c18deb0a
PHP
sabtain-sarwar/learningLaravel
/database/migrations/2019_06_18_094449_create_posts_table.php
UTF-8
1,481
2.84375
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePostsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('posts', function (Blueprint $table) { $table...
true
7263339577561fff3bcbf4c2af5da828d295d0e4
PHP
votch18/NoteThis
/controllers/accounts.controller.php
UTF-8
545
2.515625
3
[]
no_license
<?php class AccountsController extends Controller { public function __construct($data = array()) { parent::__construct($data); $this->model = new Account(); } public function logout() { Session::destroy(); setcookie("email", "", time()-86400, "/"); Router::redir...
true
15e8fa0c7d2d418f9411f7b10bb8d30b0f00d52a
PHP
gemeiosi/CustomCMSLoginSite
/includes/backend-search.php
UTF-8
1,458
2.84375
3
[]
no_license
<?php // Attempt server connection. include_once("config.php"); session_start(); if(isset($_SESSION['u_id'])){ if(isset($_REQUEST['term'])){ // Set parameters $param_term ='%'. $_REQUEST['term'] . '%'; // Prepare a select statement $sql = "SELECT * FROM kids_book WHE...
true
c7f0ce7b3b49d5c799617b6969f0c66897c57e53
PHP
rhapsony/vm-hydrator
/tests/Fixtures/TestNestedViewModel.php
UTF-8
1,480
2.796875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Rhapsony\ViewModelHydrator\Tests\Fixtures; /** * @todo after the release of Symfony 5.4: remove initial property values */ class TestNestedViewModel { private string $string = ''; private int $int = 0; private float $float = 0; private bool $bool = false; ...
true
aa2f08cc2309170abc77396548c8da13219eb715
PHP
010Minds/api
/module/Stock/src/Follows/Model/FollowsTable.php
UTF-8
4,939
2.84375
3
[]
no_license
<?php namespace Follows\Model; use Zend\Db\TableGateway\TableGateway; /** * Class FollowsTable Model * @api * @author Alexsandro Andre <andre@010minds.com> */ class FollowsTable{ /** * propriedade que recebe o objeto */ protected $tableGateway; /** * Construtor */ public function __constr...
true
f8f1ef48896f7428b176fba1bce4b4ac3418cfec
PHP
vorobey9/english
/models/ConsultPoints.php
UTF-8
6,248
2.796875
3
[]
no_license
<?php class ConsultPoints { private function checkIdTeacher($id) { $id = intval($id); if(isset($id)) { $db = Db::getConnection(); $result = $db->query("SELECT * FROM `teachers` WHERE id='$id'"); $result->setFetchMode(PDO::FETCH_ASSOC); $result = $resu...
true
660dc434074c1dadeaa1e57368ae1ff5fdae7305
PHP
paulsnar/b3
/src/Db/SqlPlaceholder.php
UTF-8
362
2.90625
3
[ "ISC" ]
permissive
<?php declare(strict_types=1); namespace PN\B3\Db; class SqlPlaceholder { protected $sql, $values; public function __construct(string $sql, array $values) { $this->sql = $sql; $this->values = $values; } public function getSql(): string { return $this->sql; } public function getValues(): ...
true
86bac78c3d41e71c0c8f13b14f97c538b238d44f
PHP
piojo-zz/mimic
/components/node-spec.inc.php
UTF-8
1,246
2.875
3
[]
no_license
<?php class pSpec { function header($node, $short) { return("System Details"); } function detail($NODE, $SHORT) { //Look for node spec info $got = mysql_query("select os, cpus, speed, memory, disk, pbsscale, mac, date_format(time, '%e/%c/%Y at %H:%i'), INET_NTOA(ipmi_ip) from nodeinfo where name...
true
97186c4fe58b1b3cf5a72df306b73ac5cb2086b6
PHP
kevintweber/KtwDatabaseMenuBundle
/Repository/MenuItemRepository.php
UTF-8
1,822
2.75
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* * This file is part of the KtwDatabaseMenuBundle package. * * (c) Kevin T. Weber <https://github.com/kevintweber/KtwDatabaseMenuBundle/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace kevintweber\KtwDatabaseMe...
true
055b93c66fe85fed806356f6a6ad318354c03afb
PHP
kevincaicedo2020/ProyectoNutricional
/Modelo/Php/Alimento.php
UTF-8
441
3.0625
3
[]
no_license
<?php namespace Modelo\Php; class Alimento{ public $nombreAlimento = ""; public $kcalAlimento = 0; const GRAMO_ALIMENTO = 100; public $nombreCategoria = ""; function __construct(string $nombreAlimento, int $kcalAlimento, string $nombreCategoria) { $this->nombreAlimento = $nomb...
true
912a8705a45d9d4b6ef488504ffdff4d3e8566b8
PHP
FernandoNieto71/clase02rp2
/app/trans_F_C.php
UTF-8
705
3.671875
4
[]
no_license
<?php /* funciones para transformar temperatura de celsius a fahrenheit */ function fahrenheitCelsius($temperatura){ return ($temperatura-32)*5/9; } function celsiusFahrenheit($temperatura){ return ($temperatura * 9/5) + 32; } function mostrarTemperatura($valortermico, $operacion){ $valor = transformarA($valorterm...
true
19bd633e2f390435102ce6b405b7b0936d0ac277
PHP
vipsoft/ContextInitializerExtension
/src/VIPSoft/ContextInitializerExtension/Context/Initializer/ContextInitializer.php
UTF-8
2,193
2.8125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * @copyright 2012 Anthon Pang * @license MIT */ namespace VIPSoft\ContextInitializerExtension\Context\Initializer; use Symfony\Component\DependencyInjection\ContainerInterface; use Behat\Behat\Context\Initializer\InitializerInterface, Behat\Behat\Context\ContextInterface; /** * A Context Initializ...
true
1a8dfe90834a7d39f0cfd24308cbb60cf7b4740e
PHP
siripat1997/project-steps
/secret.php
UTF-8
1,294
2.9375
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> </head> <body> <center> <br><br><br><br><br><br><br><br><br><br><br> <?php if(!$_SESSION['member']){ header("Location: login.php"); } else{ $servername = "localhost"; $username = "root"; $...
true
77031ba8b254957c944469181c541fe402da7d20
PHP
lc-apps/2ipcb
/app/classes/Upload.php
UTF-8
1,257
2.890625
3
[]
no_license
<?php namespace app\classes; use app\classes\Config; use app\classes\Image; use PDO; class Upload { /** * @var mixed */ private $file; /** * @var mixed */ private $type; /** * @param $local * @param $field */ public function upload($local, $field) { $key = $local; $fields = $field; $...
true
7b9049753cadd70cca3c2f2a54814d27a0798da8
PHP
edujudici/imagerepository
/app/Http/Api/CompanyInterface.php
UTF-8
283
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Api\Company; interface CompanyInterface { public function getAll(); public function save($request); public function delete($companyId); public function findById($companyId); public function findByToken($token); }
true
f3004e0258e1ec7ee68c2e14feea0abdd2f795cb
PHP
yanhub/ValueObject
/tests/unit/Web/PathTest.php
UTF-8
595
2.640625
3
[]
no_license
<?php declare(strict_types=1); namespace AdgoalCommon\ValueObject\Tests\Unit\Web; use AdgoalCommon\ValueObject\Tests\Unit\TestCase; use AdgoalCommon\ValueObject\Web\Path; class PathTest extends TestCase { public function testValidPath(): void { $pathString = '/path/to/resource.ext'; $path = ...
true
1eebb01744898de971810f569c00e569237d4c91
PHP
langeland/S9.Quayo
/Classes/S9/Quayo/Controller/AuthenticationController.php
UTF-8
1,516
2.59375
3
[]
no_license
<?php namespace S9\Quayo\Controller; /* * * This script belongs to the TYPO3 Flow package "S9.Quayo". * * * * ...
true
88b1fbb17f20e310d8536adb328433c39b91b8e0
PHP
zhangdebiao/TeamCenter
/Application/User/Model/UserModel.class.php
UTF-8
1,904
2.78125
3
[]
no_license
<?php namespace User\Model; use Think\Model; class UserModel extends Model{ /* 用户模型自动验证 */ protected $_validate = array( /* 验证用户名 */ array('username', '1,8', -1, self::EXISTS_VALIDATE, 'length'), //用户名长度不合法 //array('username', 'checkDenyMember', -2, self::EXISTS_VALIDATE, 'callback'), //用户名禁止注册 array('u...
true
a475523566e529352e324fb6b3b8624c75b7b550
PHP
Yarogithub/System-for-creating-reports
/entities/ReportEnt.php
UTF-8
2,312
2.90625
3
[]
no_license
<?php class ReportEnt { protected $completedTasks; protected $numberOfHours; protected $updatedAt; protected $createdAt; protected $reportDate; protected $userid; protected $reportid; /** * @return mixed */ public function getReportDate() { ...
true
c986172dc49b845236c1302d50bdb62f0e889496
PHP
konstantinB1/portfolio
/myblog/module/Application/src/Service/AdminPostsService.php
UTF-8
6,141
2.78125
3
[]
no_license
<?php namespace Application\Service; use Application\Mapper\PostsMapper; use Application\Filter\AdminPostAddFilter; use Application\Entity\Posts; use Zend\Authentication\AuthenticationService; class AdminPostsService { /** * @var $mapper; */ public $mapper; /** * @var $filter; */ public $filter; /*...
true
1998ff593e4a529f46eb4b11963cf7bb50b9c236
PHP
AngryChimps/ac2
/src/AngryChimps/NormBundle/realms/Norm/mysql/base/MemberBase.php
UTF-8
3,325
2.71875
3
[ "MIT" ]
permissive
<?php namespace Norm\mysql\base; use norm\core\NormBaseObject; class MemberBase extends NormBaseObject { /** @var string */ protected static $primaryDatastoreName = ''; /** @var string */ protected static $cacheDatastoreName = ''; /** @var string */ protected static $realm = 'mysql'; ...
true
5c47b18d6fac6e250a4c2e1f68555a79e7ccc345
PHP
phucvinhnguyen/bistro-cafe
/app/Http/Controllers/EmployeeController.php
UTF-8
3,286
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; use App\Repositories\Interfaces\EmployeeRepository; use App\Repositories\Interfaces\RolesRepository; use Gate; use Toastr; class EmployeeController extends Controller { private $empRepo; private $empRoleRe...
true
bdbe2f94b713699353dabb3f906f700e8ab8fc8f
PHP
darinelcruzz/brica
/app/helpers.php
UTF-8
852
2.9375
3
[]
no_license
<?php use Jenssegers\Date\Date; function printPublic($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); $data = curl_exec($ch); curl_close($ch); return $data; } function usesas($ctrl, $fun, $as = null) { if ($as) { retu...
true
356eba200597bff391b9f6500655bf5fe94e3e30
PHP
AnnotateFramework/annotate
/packages/Collections/src/NestedSet.php
UTF-8
2,320
3.03125
3
[]
no_license
<?php namespace Annotate\Collections; use Annotate\Collections\Exceptions\DuplicateItemException; use ArrayAccess; use IteratorAggregate; use Nette\Object; use Nette\Utils\ArrayHash; use RecursiveArrayIterator; use UnexpectedValueException; /** * @method onAddItem */ class NestedSet extends Object implements Arra...
true
f59ebd6bfdd44822e7fc295498dd27c753307bf9
PHP
JBalkhamishvili/PHP_Blog
/src/Blog/BlogController.php
UTF-8
703
2.5625
3
[]
no_license
<?php namespace App\Blog; use App\Core\AbstractController; use App\Blog\BloggerRepository; class BlogController extends AbstractController { /** * BlogController constructor. * @param BloggerRepository $bloggerRepository */ public function __construct(BloggerRepository $bloggerRepository) ...
true
82f42a39d31f322a7f5443a1bff32e7b347e8769
PHP
ker0x/messenger
/src/Model/ProfileSettings/HomeUrl.php
UTF-8
1,845
2.71875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Kerox\Messenger\Model\ProfileSettings; use Kerox\Messenger\Helper\ValidatorTrait; use Kerox\Messenger\Model\Common\Button\WebUrl; class HomeUrl implements \JsonSerializable { use ValidatorTrait; /** * @var string */ protected $url; /** * @var...
true
e1fd8c4b2781555533dc3c6b1f73b7d9670f8e09
PHP
HueJack/logicasoft.cashback
/lib/usercashbackhandler.php
UTF-8
3,058
2.578125
3
[ "MIT" ]
permissive
<?php /** * Created by: Nikolay Mesherinov * Email: mnikolayw@gmail.com **/ namespace Logicasoft\Cashback; use Bitrix\Main\Event; use Bitrix\Main\Localization\Loc; /** * Класс предоставляет методы для добавления и отмены кэшбека * * Class UserCashbackHandler * @package Logicasoft\Cashback */ class UserCashb...
true
f6963090dec0d55025b8d0c6a81aaa3370c04618
PHP
adamelso/ordering-test
/src/Offer/OfferContainer.php
UTF-8
5,711
3.046875
3
[]
no_license
<?php namespace FeelUnique\Ordering\Offer; use FeelUnique\Ordering\Model\Rule; use FeelUnique\Ordering\Model\Action; use FeelUnique\Ordering\Model\ProductOffer; use FeelUnique\Ordering\Model\Category; /** * @author Adam Elsodaney <adam.elso@gmail.com> */ class OfferContainer implements \ArrayAccess, \IteratorAggre...
true
265d7b80ee1512a3d1a188874a792d53e5453c3d
PHP
RedaMALI/HelloLaravel
/app/Library/Services/GoogleLoginService.php
UTF-8
1,484
2.6875
3
[]
no_license
<?php namespace App\Library\Services; class GoogleLoginService { protected $client; public function __construct(\Google_Client $client) { $this->client = $client; $this->client->setClientId(\Config::get('google.client_id')); $this->client->setClientSecret(\Config::get('google.client_secret')); ...
true
24cf0d9f70d7da80714bd545026c2a7e5e4156f3
PHP
chkir/humhub
/protected/humhub/commands/MessageController.php
UTF-8
3,623
2.515625
3
[]
no_license
<?php /** * @link https://www.humhub.org/ * @copyright Copyright (c) 2015 HumHub GmbH & Co. KG * @license https://www.humhub.com/licences */ namespace humhub\commands; use Yii; use yii\console\Controller; use yii\console\Exception; use yii\helpers\Console; use yii\helpers\FileHelper; use yii\helpers\VarDumper; u...
true
64d3535d990510fc31465293f01c39301dd8a1de
PHP
apachish/b2b
/database/seeds/MembershipSeed.php
UTF-8
1,458
2.53125
3
[]
no_license
<?php use App\Membership; use Illuminate\Database\Seeder; class MembershipSeed extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $memberships = array( array('id' => '1','plan_name' => 'Gold','price' => '150','duration' => '8'...
true
c348609781c95b6588f4b0e902b1222503374357
PHP
ProfessorFrancken/ProfessorFrancken
/tests/Francken/Association/Members/BirthdateTest.php
UTF-8
1,752
3.015625
3
[]
no_license
<?php declare(strict_types=1); namespace Francken\Tests\Association\Members; use DateTimeImmutable; use Francken\Association\Members\Birthdate; use InvalidArgumentException; use PHPUnit\Framework\TestCase; class BirthdateTest extends TestCase { /** @test */ public function it_can_be_constructed_from_a_strin...
true
5122a6262f7864244f59171270f47253815c7fe8
PHP
esirbis5732/LS
/DZ1/Zadanie1.php
UTF-8
158
3.265625
3
[]
no_license
<pre> <?php $name = 'Sergei'; $age = '25'; echo "Меня зовут: $name" . PHP_EOL; echo "Мне '.$age.' лет" . PHP_EOL; echo "\"!|\/'\"\\" .PHP_EOL;
true
7b9b345a06cbf3c29c377138fc9d992161f33e86
PHP
marianna-stiller/forraskod_serulekenyseg_elemzes
/machine_learning_app/tanulo_adatok/sql-injection-in-php_safeupdate.php
UTF-8
921
2.96875
3
[]
no_license
<?php if ( isset( $_GET['first_name'], $_GET['last_name'], $_GET['birth_date'] ) ) { $update_query = "UPDATE students SET first_name=:first_name, last_name=:last_name, birth_date=:birth_date WHERE id=:id"; $prepared_statement = $pdo->prepare( $update_query ); $prepared_statement->bindParam( 'first_name', $_GET['fi...
true
a6f671a91189423e01087693ed115c7db033940c
PHP
codemossaka/pandora-2.0
/core/libs/lib.rules.php
UTF-8
2,566
2.953125
3
[]
no_license
<?php namespace core\libs; use Exception; use debug; class rules { private static $rules = []; public static function ruleInt(&$value, $params) { $valid = preg_match('/^[+-]?[0-9]+$/', $value); $message = ''; if (!$valid) { $message = 'Введите целое число'; } else { $value = (int) $value; } retu...
true
3827037c659cf1946f815afaef4af82d832fcba1
PHP
Koc/portfolio
/3-services/src/Reporting/Report/Weekly/WeeklySpreadsheetStyler.php
UTF-8
4,081
2.5625
3
[]
no_license
<?php namespace App\Reporting\Report\Weekly; use App\Reporting\Generated\Cell; use App\Reporting\Renderer\SpreadsheetStyler; use App\Reporting\Renderer\SpreadsheetStylerUtil; use PhpOffice\PhpSpreadsheet\Cell\Cell as ExcelCell; use PhpOffice\PhpSpreadsheet\Style; use PhpOffice\PhpSpreadsheet\Worksheet\Worksheet; cla...
true
6863a78d345d0e1de01ed2f3be103431babe6309
PHP
qingsongsun/vgj
/system/library/session.php
UTF-8
800
2.6875
3
[]
no_license
<?php class Session { public $data = array(); public function __construct() { // $redis=new Redis(); // $redis->connect('127.0.0.1',6379); if (!session_id()) { ini_set('session.use_only_cookies', 'Off'); ini_set('session.use_trans_sid', 'On'); ini_set('session.cookie_httponly', 'Off'); // ini_set(...
true
e7a6ba77757e11a2bbf2001e9dd1d2b16bfb6dc5
PHP
CorinaHebristean/crud-application
/list.php
UTF-8
868
2.53125
3
[]
no_license
<?php require_once "dbconfig.php"; require_once "functions.php"; if (isset($_SESSION['user_id'])) { $user_id = $_SESSION["user_id"]; } $users = get_all_users(); session_message(); logged_in_user_header(); ?> <p> <a href="register_form.php">Register users</a> </p> <?php if (check_authentication()): ?> <p...
true
42040c569b0fe5db864cc35fc5e961d4553ae15b
PHP
yubinchen18/blackjackproject
/includes/functions.php
UTF-8
3,257
3.046875
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ $originalCardDeck = array ( "diamonds" => array ( ...
true
cbbb887351ed05b921060a1292d1220b9b100b33
PHP
jesusrv1103/blog
/database/seeds/PostsTableSeeder.php
UTF-8
1,693
2.703125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Post; use Carbon\Carbon; class PostsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { Post::truncate(); $post = new Post; $post->title = "Mi primer Post"; $...
true
0f2afd48db1af4c3e0e38a97558617a080ca87a9
PHP
9feed/senses-engine
/modules/Template.php
UTF-8
4,778
3.171875
3
[ "MIT" ]
permissive
<?php /** * Template constructor (template param in messages.send) * @author slmatthew * @package keyboard */ class Template { /** * @ignore */ private $type = 'carousel'; /** * @ignore */ private $elements = []; /** * Template constructor * @param string $type Template type * @return void ...
true
79eb55a2c0b034e90576e97c3fb81e77d93f234a
PHP
ministryofjustice/opg-use-an-lpa
/service-front/app/src/Common/src/Service/Csrf/SessionCsrfGuard.php
UTF-8
1,875
2.734375
3
[ "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
<?php declare(strict_types=1); namespace Common\Service\Csrf; use Mezzio\Csrf\CsrfGuardInterface; use Mezzio\Session\SessionInterface; use function bin2hex; use function random_bytes; class SessionCsrfGuard implements CsrfGuardInterface { private string $requestId; public function __construct(private Sess...
true
53d0e87688b5b95c104e32b21a7b8df66e837923
PHP
doctor2/mySiteMvc
/www/controllers/articlesController.php
UTF-8
1,510
2.53125
3
[]
no_license
<?php class ArticlesController extends Controller { private $modelComment; private $modelRate; private $path = 'article/'; function __construct() { parent::__construct(); $this->model = new ArticleModel(); $this->modelComment = new CommentModel(); $this->modelRate = new RateModel(); } function index()...
true
7dd89baf48d1cbea4beb957fc27f6d1e2ae271d3
PHP
cstromquist/Appointment-Reminder
/app/models/reminder.php
UTF-8
2,248
2.6875
3
[]
no_license
<?php /** * Reminder model * * Email reminders which are generated using GD * * @package appointment reminder */ class Reminder extends AppModel { public $belongsTo = array( 'Technician', 'Company', 'CompanyService' ); public $validate = array( 'fname' => array( 'rule' => 'notEmpty',...
true
9aff81c1957bc2cfea9a6570ff2b1094e6d5e759
PHP
hyperzecters/denliner
/ticket.php
UTF-8
451
2.515625
3
[ "MIT" ]
permissive
<?php function addTicket($noTicket,$ticketName,$departure_date,$ticketType,$seat){ $koneksi = mysql_connect('localhost','root',''); mysql_select_db('mtrain', $koneksi); $query = "INSERT INTO `ticket` (no_ticket, ticketname, departure_date, ticket_type, seat) VALUES ". "('$noTicket', '$ticketName', '$departure_d...
true
98b96badac6509e089c5f0227e20462e5bf77f44
PHP
corwien/digtime
/app/Models/Article.php
UTF-8
1,229
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Auth; use Carbon\Carbon; class Article extends Model { protected $fillable = [ 'title', 'content', 'user_id', 'category_id', 'slug', 'subtitle', 'published_at', 'views_count', ...
true
c4b6d81483117844506dade0edf8549c1d27ef37
PHP
huarachiabi/practica_5
/ejercicio3.php
UTF-8
627
3.09375
3
[]
no_license
<html> <head lang ="es"> <meta charset="utf-8" /> <title>ejercicio_3</title> </head> <body> <h1>TABLA DE AJEDREZ </h1> <table border="1"> <?php define("n", "10"); $a=1; $sw=0; for($j=1; $j<=n;$j++) { ?> <tr> <?php for($i=1; $i<=n;$i++) { if($sw==0) { if($i%2==0) { echo "<td bgcolor='white'>...
true
306c65a5c5a6667c474393e59842ff2ca848a74d
PHP
elektricmaster7/IE-Admin
/app/Model/Setting.php
UTF-8
1,806
2.546875
3
[ "MIT" ]
permissive
<?php App::uses('AppModel', 'Model'); class Setting extends AppModel { var $name = 'Setting'; //TRANSLATION /* * function getTablesList($ignore_sys_tables) * This function gets all the tables from the database * @param $ignore_sys_tables This param ignores the system tables when returning the * result t...
true
404a54d2b61a64cd8f04f54d21fcd5c399b5b1e4
PHP
BerilBBJ/scraperwiki-scraper-vault
/Users/H/hubscraper/pitchfork-reviews.php
UTF-8
2,452
2.90625
3
[]
no_license
<?php $url = sprintf('/reviews/albums/1/'); do { $dom = new DOMDocument; @$dom->loadHTMLFile('http://pitchfork.com' . $url); $xpath = new DOMXPath($dom); $nodes = $xpath->query('//a[starts-with(@href, "/reviews/albums/")]'); print "{$nodes->length} nodes\n"; if (!$nodes->length) { b...
true
a8b4e4acf0516c934ab17abab6ec949accb41837
PHP
ramonsodoma/omp
/controllers/modals/editorDecision/form/InitiateReviewForm.inc.php
UTF-8
2,596
2.578125
3
[]
no_license
<?php /** * @file controllers/modals/editorDecision/form/InitiateReviewRoundForm.inc.php * * Copyright (c) 2003-2008 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * @class InitiateReviewForm * @ingroup controllers_modal_editorDecision_form * * @brief Form for c...
true
ea98e4701cbab065366d93ab0601c85d57d40653
PHP
johnnyGZG/PruebasCodigo
/database/migrations/2017_02_15_023715_crear_productos_tabla.php
UTF-8
921
2.6875
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CrearProductosTabla extends Migration { /** * Run the migrations. * * @return void */ public function up() { // Realizar Cambios S...
true
1cfc8ffe0856bb16f61960bb12c6a44ed1e9d937
PHP
FdoEstefania/proyecto_oee
/inc/tblOrdenes.php
UTF-8
757
2.703125
3
[]
no_license
<?php $id = $_SESSION['fk_empresa']; $control = new OrdenesControl(); $retorno = $control->getOrdenes($id); ?> <!-- Tabla HTML que muestar los datos de ordenes existentes--> <table class="table table-hover table-bordered table-striped" id="tblOrden"> <thead> <tr> <th scope="col">N° orden</th...
true
9c774b2b4e908c3de03f0361dc9c28252f339c2c
PHP
kukurykum/tsai
/master/backend/App/Model/Entity/ModelEntity.php
UTF-8
473
2.921875
3
[]
no_license
<?php namespace App\Model\Entity; use App\Database\Entity\Entity; class ModelEntity extends Entity { private $id; private $name; /** * @return mixed */ public function getId() { return $this->id; } /** * @return mixed */ public function getName() { ...
true
2664616b3932a5606c1bf4af2c2375403e0bf83b
PHP
eduardaarosaa/SystemCS
/api_bistamp.php
UTF-8
1,122
2.859375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php $link = mysqli_connect("localhost", "root", "", "sistema"); $url= "https://www.bitstamp.net/api/ticker/"; $request_headers = array(); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_HTTPHEADER, ...
true
c1479e3ca1503be995e5973e0664a9685844f4dd
PHP
nxwzj0/INCIDENT
/dto/ConditionDtDto.php
UTF-8
1,100
2.59375
3
[]
no_license
<?php //***************************************************************************** // システム名   :インシデント管理システム // サブシステム名 : // 処理名     :ConditionDtDto // 作成日付・作成者:2018.01.19 NEWTOUCH)newtouch // 修正履歴    : //***************************************************************************** require_once('./dto/CommonDto.php'...
true
37cad39e5a4925deb32a24047f8c79be715a1082
PHP
zhenxun/psychol
/app/Controllers/Admin/LocationController.php
UTF-8
4,573
2.640625
3
[]
no_license
<?php namespace Leopard\Controllers\Admin; use Slim\Router; use Slim\Flash\Messages; use Slim\Views\Twig; use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ServerRequestInterface as Request; use Leopard\Controllers\Admin\Contracts\HandlerInterface; use Leopard\Models\Admin\Locations; class Loca...
true
51640143519205d76b5aa8eeeb28f815a3b9ead5
PHP
khinezarthwe/php_learning_in_DL
/loop.php
UTF-8
109
3.109375
3
[]
no_license
$f = -50; while ($f <= 50){ $c = ($f - 32)*(5/9); printf ("%d degrees F = %d degree C \n",$f,$c); $f+=5; }
true
abc62758ce3bf908794e975b2be5ccf09a9ab7ee
PHP
jstucken/Python-Overdrive
/www/html/includes/classes/car.class.php
UTF-8
2,672
3.484375
3
[ "MIT" ]
permissive
<?php /** * Our car class * handles GUI car related tasks */ class car { //public $db_name; /* * Gets all the Anki cars in the database * returns multidimensional array of all cars */ public function getAllSavedCars() { // make a custom field (type_readable) which replaces underscores with s...
true
3c65efc312dd9cb76d8c037cbb68ea696cc2f72f
PHP
OpenPHPCMS/prototype
/admin/menu.php
UTF-8
2,866
2.53125
3
[]
no_license
<?PHP /* * * Import init * **/ if(!defined('__SITE_PATH')) require('admin_init.php'); if( !secure()->hasUserAccess(__ROLE_DEV) ){ display_error('no access!'); load_view(); die(); } $data['id'] = ''; $data['name'] = ''; $data['link'] = ''; $data['parent'] = ''; load_class('Menu', 'core'); $db = new OPC_Databa...
true
2dd0e68c34dae85d9c1d6f7ce4de37d59e8a374c
PHP
eternalphp/framework
/src/framework/Util/Html/Form.php
UTF-8
1,708
3.046875
3
[]
no_license
<?php namespace framework\Util\Html; class Form { private $name; private $id; private $action; private $method; private $type; private $options = array(); public function __construct($id,$action = ''){ $this->id = $id; $this->name = $id; $this->value = $value; $this->type = 'form'; $this->method...
true
58466e181cea5d0df151b7676628be7c31824ed2
PHP
guoyu07/pretty-sms
/src/Middleware/TencentyunMiddleware.php
UTF-8
3,470
2.59375
3
[]
no_license
<?php namespace Godruoyi\PrettySms\Middleware; use Closure; use Godruoyi\PrettySms\Client; use Godruoyi\PrettySms\Support\Collection; use Godruoyi\PrettySms\Support\Response; class TencentyunMiddleware { /** * Client Instance * * @var Client */ protected $app; /** * Register Cl...
true