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
46577ddb7ce444595658936ea5bd679248590698
PHP
Shofiul-Alam/magento-app
/src/vendor/temando/module-shipping-m2/Rest/Response/Fields/Order/Fee.php
UTF-8
1,134
2.578125
3
[ "LicenseRef-scancode-unknown-license-reference", "OSL-3.0", "AFL-2.1", "AFL-3.0", "MIT" ]
permissive
<?php /** * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license */ namespace Temando\Shipping\Rest\Response\Fields\Order; /** * Temando API Order Fee Field * * @package Temando\Shipping\Rest * @author Christoph Aßmann <christoph.assmann@netresearch.de> * @license https://ope...
true
802fe26fe4ee3dd42922f136706a632fa855ea32
PHP
sakshigc/Project_Management
/new.php
UTF-8
946
2.625
3
[]
no_license
<?php $servername="localhost"; $username="root"; $password=""; $dbname="test1"; $conn=mysqli_connect($servername,$username,$password,$dbname); if($conn) { echo "Connection Successful"; } else { echo "Connection Failed"; } $name=$_POST["name"]; $prn = $_POST["prn"]; $dob = $_POST["dob"]; $gm1 = $_POST["gm1"]; $gm...
true
c852aaa9d8676249d4e474cc781d481b339133a9
PHP
nogsantos/sis
/app/controllers/musica/pcadmodalidades.php
ISO-8859-1
4,432
2.515625
3
[]
no_license
<?php session_start(); /** * Descrio: Controler Cadastro de Modalidades. * @author Rodolfo Bueno * @release Criao do arquivo. * Data 26/09/2010 */ require_once("../../funcoes.php"); require_once("../../models/Erro.php"); require_once("../../Oad.php"); require_once("../../models/musica/Modalidade.php"); ...
true
8cfedeb52deac1730f53d131843391c94db899d5
PHP
dapc21/scomat
/saecomat/reportes/ImprimirRep_recormov.php
ISO-8859-2
7,576
2.515625
3
[]
no_license
<?php require('../include/FPDF/fpdf.php'); require_once "../procesos.php"; $valor= $_GET['id_dep']; class PDF extends FPDF { //Cabecera del Reporte aparecera en todas las paginas function Header() { $this->cabecera_esp(); $this->Ln(); } //para mostrar las fecha de impresion del reporte function Fecha() { ...
true
001873aabf9f0e21b4c97af836535b4dcf9b964a
PHP
abetterstory/abetter-wordpress
/plugins/wpml-string-translation/classes/MO/Generate/StringsRetrieveMOOriginals.php
UTF-8
354
2.546875
3
[ "GPL-3.0-only", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace WPML\ST\MO\Generate; use WPML\ST\TranslationFile\StringsRetrieve; class StringsRetrieveMOOriginals extends StringsRetrieve { /** * @param array $row_data * * @return string|null */ public static function parseTranslation( array $row_data ) { return ! empty( $row_data['mo_string'] ) ? $ro...
true
587f629edbf53f1827cc4a77de8001ef564887bc
PHP
meenashita/works
/php/php40.php
UTF-8
122
2.8125
3
[]
no_license
<?php $cha = 'a'; $next_cha = ++$cha; if (strlen($next_cha) > 1) { $next_cha = $next_cha[0]; } echo $next_cha."\n"; ?>
true
dec884ae8a29a9fdea93c341eaa9fac39d9a222d
PHP
SuRaMoN/dbviz
/src/DbViz/DbInfoExtractor/TableRelationExtractor/SqlbaseTableRelationExtractor.php
UTF-8
828
2.78125
3
[]
no_license
<?php namespace DbViz\DbInfoExtractor\TableRelationExtractor; use DbViz\Entity\ConnectionCredentials; use DbViz\Entity\TableRelationCollection; use PDO; class SqlbaseTableRelationExtractor implements TableRelationExtractor { public function getTableRelations(ConnectionCredentials $connectionCredentials) { $rela...
true
ce535e42c3305f3f3a5acbb46636714f6afb1597
PHP
berendakova/php_registration
/reg-v1000/src/Entity/User.php
UTF-8
2,173
3.171875
3
[]
no_license
<?php namespace UserRegistration\Entity; /*require_once '../../vendor/autoload.php';*/ class User { private $user_name; private $user_email; private $user_password; private $user_age; private $country; private $user_bio; /** * User constructor. */ public function __construct() ...
true
f3cd405f645c19844b03a38cf2ace5043d083697
PHP
Berdir/dnd
/DnDEngine/Level.php
UTF-8
7,083
2.5625
3
[]
no_license
<?php /** * Short description for file * * Long description (if any) ... * * PHP version 5 * * All rights reserved. * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * + Redistributions of source code must retain ...
true
050bc5e65ee6ea14348d38efcca6be3c095044f2
PHP
MarkVilludo/nba-api
/src/Constraints/ApiChoice.php
UTF-8
778
2.796875
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace JasonRoman\NbaApi\Constraints; use Symfony\Component\Validator\Constraint; /** * Custom Choice constraint based on Symfony constraint. Used to display the available choices in the error message. * * @Annotation */ class ApiChoice extends Constraint { const DEFAULT_O...
true
057f19fd675f293afa41ead8fb1fa3ce06810234
PHP
sajjad-yazdanparast/MailRoom
/API/position.php
UTF-8
8,782
3.0625
3
[]
no_license
<?php require 'connect.php' ; require 'utills.php' ; class PositionModifier{ private $db = null; public function __construct() { $this->db = (new DataBaseConnector())->get_connection(); } public function get_all_records($order){ $tsql = "EXEC get_al...
true
1bb046ddd192221a4953cebec75c58a8fd82cfe8
PHP
RedNekus/magic
/public/parsejson.php
UTF-8
1,076
2.5625
3
[]
no_license
<?php ini_set('error_reporting', E_ALL); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); require __DIR__.'/../vendor/autoload.php'; use Illuminate\Database\Capsule\Manager as Capsule; $capsule = new Capsule; $capsule->addConnection([ 'driver' => 'mysql', 'host' => 'localhost', 'database' => 'ksby_m...
true
05b21fcdf4ecb0e6a589b44ec3f5818f15972563
PHP
a-lenka/symfoapp
/src/DomainManager/TaskDomainManager.php
UTF-8
3,488
2.734375
3
[]
no_license
<?php namespace App\DomainManager; use App\Entity\Task; use App\Entity\User; use App\Repository\TaskRepository; use App\Service\FileUploader; use Doctrine\Common\Persistence\ObjectManager; use League\Flysystem\FileNotFoundException; /** * Class TaskDomainManager * @package App\DomainManager */ class TaskDomainMan...
true
616bcdcd6f9dfd04214c9376e8d063592b6b2581
PHP
bokix/sinaapp-wechat
/protected/cache/CompanyId2AppIdCache.php
UTF-8
1,379
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: bokix * Date: 14-2-24 * Time: 16:07 */ class CompanyId2AppIdCache extends BaseCache { const KEY_OF_TEST = "1"; function makeKey($s) { return $s . "-match"; } public function __construct() { parent::__construct(); $alreadyLoad = $t...
true
80b204ed5299a8b0000f1ca674625cfb316ec342
PHP
jaimeirazabal1/Sistema-de-Informaci-n-TEXTILES-DEL-PACIFICO
/models/StockImpl.php
UTF-8
66,646
2.6875
3
[]
no_license
<?php /* function para ordenar por fechas el resultado del metodo this->reporte_de_movimientos_kardex_comprimido */ function sortFunction( $a, $b ) { var_dump($a); var_dump($b); // /die; return strtotime($a["FECHA"]) - strtotime($b["FE...
true
a0e395f8ab94bb6332de70211c2b3d359b4dc678
PHP
surya3997/HA17
/includes/user.php
UTF-8
2,359
3.125
3
[]
no_license
<?php /* * This class contains all the things related to the user. */ class User { private $userId; private $userName; private $userType; public function __construct() { //This inits the user id with which most of the operations will be done. global $session, $db; if($session->isLoggedIn()) { ...
true
db792b9c7c91619f122e5f0a1eae17b822dfd7a9
PHP
JStephenD/ECommerce-PhpStore
/models/Orders.php
UTF-8
622
2.96875
3
[ "MIT" ]
permissive
<?php class Orders { function __construct($db, $table = 'orders') { $this->db = $db; $this->table = $table; } function add($data) { $query = $this->db->prepare( "INSERT INTO $this->table( customer_id, address, ...
true
848c5b5f81c6b3df45a580d68c70669774faf331
PHP
ytake/example-laravel-aspect-ddd
/app/Http/Controllers/IndexController.php
UTF-8
803
2.515625
3
[]
no_license
<?php declare (strict_types=1); namespace App\Http\Controllers; use App\AppService\MyTaskApplicationService; use Illuminate\Routing\Controller as BaseController; /** * Class Controller * @Middleware("web") */ class IndexController extends BaseController { /** @var MyTaskApplicationService */ protected $s...
true
236cd6dde2f4888dd344a4614b05259afdeb0a1b
PHP
ehgarcia25/DebeHaber
/app/Ciclos.php
UTF-8
531
2.546875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use DateTime; class Ciclos extends Model { public $timestamps = false; protected $table = 'cycles'; protected $fillable = ['name', 'start_date', 'end_date','company_id'];// // public function scopeAnno($...
true
9ea33b3e5078103777f4e22b42a6e40bd145065a
PHP
jgondellier/universign-bundle
/src/Service/StandaloneRegistrationRequestService.php
UTF-8
1,198
2.609375
3
[]
no_license
<?php namespace Gondellier\UniversignBundle\Service; use Gondellier\UniversignBundle\Classes\StandaloneRegistration; use GuzzleHttp\Client; class StandaloneRegistrationRequestService{ private $uri; public $client; private $originalResult; public $fault; /** * ValidationRequest constructor. ...
true
8b7472ed403d29e87e6673d921741cf3df3bb70d
PHP
Rifell/OOP
/Design_Patterns/Strategy.php
UTF-8
700
3.8125
4
[]
no_license
<?php interface Payment { public function pay($sum); } class Robokassa implements Payment { public function pay($sum) { echo "Оплата через Robokassa суммы: ". $sum . "<br>"; } } class Card implements Payment { public function pay($sum) { echo "Оплата картой сумм...
true
91a09c789c6c405eda81121d96988c87c16e2af5
PHP
dmvolt/im_yii2
/modules/order/models/Order.php
UTF-8
4,366
2.5625
3
[]
no_license
<?php namespace app\modules\order\models; use Yii; use app\components\helpers\Text; use app\modules\order\Module; use yii\helpers\ArrayHelper; /********** USE MODELS *********/ use app\modules\order\models\OrderProduct; use app\modules\shipping\models\Shipping; use app\modules\payment\models\Payment; /** * This is ...
true
e69e95ca988f448a6698a4be63cb7d7407243f69
PHP
ionutmilica/assignments
/year 2 - 2014-2015/Compilation Techniques/regex_nfa/index.php
UTF-8
334
2.90625
3
[]
no_license
<?php $html = '<h1>Tehnici de compilare</h1><ul>'; $directories = new DirectoryIterator('.'); foreach ($directories as $directory) { $name = $directory->getBasename(); if ($directory->isDir() && $name[0] != '.') { $html .= sprintf('<li><a href="%s">%s</a></li>', $name, $name); } } $html .= '</ul>'...
true
af0a8ad148925ae8c914eae89867cebad07f0f56
PHP
fokazaki2/tategaki
/src/index.php
UTF-8
3,427
2.53125
3
[]
no_license
<?php $type = "m"; $size = "20"; $len = "30"; $text = ""; $str=""; if(isset($_POST["type"])){ $type = $_POST["type"]; $size = $_POST["size"]; $len = $_POST["len"]; $text = $_POST["text"]; $str = sprintf("?type=%s&size=%s&len=%s&text=%s",$type,$size,$len,urlencode($text)); } ?> <!DOCTYPE html> <ht...
true
b659e7735b88a536824537a8e7c8618a246a1dfc
PHP
RamoniDias/Codigo-Fonte-PHP
/Meus_Proj/tipos.php
UTF-8
176
2.796875
3
[]
no_license
<?php //$idade = 30; //$texto = "Ola Mundo"; //$divisao = 10 / 3; //$verdadeiro = true; //$falso = false; //echo gettype($verdadeiro); $restoDivisao = 10 % 3; echo $restoDivisao;
true
11eb3f3a019c13dc43474adbc0f327b7b4e06d44
PHP
alexandr-stifanenkov/20190921_catalog
/dz.php
UTF-8
148
2.921875
3
[]
permissive
<?php $human = new Human('Наталья', 'Краснова', Human::GENDER_FEMALE); $human->age = 30; echo $human->name; echo $human->getProps();
true
ddd2b62701ff49f2b435b6dee15cd507dc9dc657
PHP
heikokrebs/laravel-postal-code-validation
/tests/Constraints/Passes.php
UTF-8
1,806
2.65625
3
[ "MIT" ]
permissive
<?php namespace Axlon\PostalCodeValidation\Tests\Constraints; use Illuminate\Contracts\Validation\Factory; use Illuminate\Support\Str; use PHPUnit\Framework\Constraint\Constraint; class Passes extends Constraint { /** * @var \Illuminate\Contracts\Validation\Factory */ protected $factory; /** ...
true
cb65e3715866968393781eae0fb2f9e7ee0ad8d4
PHP
cristianstocco/SoScraper
/database/migrations/2016_07_06_181913_create_access_token_table.php
UTF-8
576
2.59375
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateAccessTokenTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('access_token', function( Blueprint $table ) { ...
true
caedd97a5f64d897a4469ab98a24e46d64e0f1d6
PHP
rinatsafin/myshop
/src/MyShop/AdminBundle/ImageUtils/UploadImageService.php
UTF-8
2,117
2.546875
3
[]
no_license
<?php namespace MyShop\AdminBundle\ImageUtils; use Eventviva\ImageResize; use MyShop\AdminBundle\DTO\UploadedImageResult; use Symfony\Component\HttpFoundation\File\UploadedFile; class UploadImageService { /** * @var CheckImg */ private $checkImg; /** * @var ImageNameGenerator */ pr...
true
79c952d726b06ab72900895bb21b9f4d66550b6f
PHP
Gueststream-Inc/iqware
/src/API/PdfDocuments.php
UTF-8
1,369
2.765625
3
[ "MIT" ]
permissive
<?php namespace Gueststream\PMS\IQWare\API; class PdfDocuments { /** * @var boolean $StatementGenerated */ protected $StatementGenerated = null; /** * @var boolean $ActivityGenerated */ protected $ActivityGenerated = null; /** * @param boolean $StatementGenerated *...
true
6f993421f8b12cfe3ecce390fd742e71301d6108
PHP
josemaranan/rscan
/ADPCFiles/global.php
UTF-8
657
2.53125
3
[]
no_license
<?php class GlobalVariable { protected $htmlTagObj; protected $htmlTextElement; protected $headerObj; protected $htmlForm; protected $tableObj; protected $jsFilesAjax; protected $commonListBox; public function __construct() { global $htmlTagObj; $this->htmlTagObj = $htmlTagObj; global $htmlTextEle...
true
fd303518519771a5de65795ff43689beab4840e4
PHP
RealNode/Database
/src/Database/ExtendedOperations/DatabaseSupportOperations.php
UTF-8
8,214
2.765625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* * This file is part of the UCSDMath package. * * (c) 2015-2017 UCSD Mathematics | Math Computing Support <mathhelp@math.ucsd.edu> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace UCSDMa...
true
4114b01fbfa6e8ab7641557a7b45b466da60fe8b
PHP
codenetix-ltd/document-management-system-backend
/app/Commands/Document/DocumentsDeleteCommand.php
UTF-8
2,082
2.65625
3
[]
no_license
<?php namespace App\Commands\Document; use App\Contracts\Commands\ACommand; use App\Contracts\Commands\Document\IDocumentsDeleteCommand; use App\Contracts\Exceptions\ICommandException; use App\Document; use App\Events\Document\BulkDocumentArchiveEvent; use App\Events\Document\BulkDocumentDeleteEvent; use App\Exceptio...
true
67a7d369a02d467b6343c9427965555f1d46034e
PHP
SamiraBelkhiri/mysql
/Model/Authentication.php
UTF-8
1,644
3.140625
3
[]
no_license
<?php class Authentication { private $isEmailValid; private $validEmail; private $isPasswordValid; private $validPassword; public function checkMail($mail): bool { $email = $mail; if (filter_var($email, FILTER_VALIDATE_EMAIL)) { $this->isEmailValid = true; ...
true
03909c4faebc65942ae4605fde447186d203a2a6
PHP
IrealiTY/destiny-api
/website/api/Objects/Destiny/Definitions/DestinyEquipmentSlotDefinition/DestinyEquipmentSlotDefinition.php
UTF-8
3,073
2.609375
3
[]
no_license
<?php namespace Destiny2\Api\Objects\Destiny\Definitions\DestinyEquipmentSlotDefinition; /** * DestinyEquipmentSlotDefinition * * Characters can not only have Inventory buckets (containers of items that are * generally matched by their type or functionality), they can also have Equipment * Slots. * The Equipme...
true
f76902487a22b22abf64db61b7acab1004bb8ddc
PHP
ViniciusRio/todo
/src/core/Request.php
UTF-8
1,130
2.921875
3
[]
no_license
<?php namespace core; class Request { public static function uri(): string { $uri = trim( parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), '/' ); if (empty($uri)) { return '/'; } return $uri; } public static function param...
true
d75166bd6607f977719de441d5a48a306f0d3e2a
PHP
reuvenc770/mt2-demo
/app/Library/Campaigner/ContactResultData.php
UTF-8
2,147
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\Library\Campaigner; class ContactResultData { /** * @var int $RowIndex */ protected $RowIndex = null; /** * @var ContactKey $ContactKey */ protected $ContactKey = null; /** * @var string $ResultCode */ protected $ResultCode = null; /** ...
true
d6d403b7a253f8e805362bbb9b0a81b59666be8b
PHP
DyanaMTBG/Mini_Libreria_Con_Symfony5
/src/Entity/Libro.php
UTF-8
1,521
2.53125
3
[]
no_license
<?php namespace App\Entity; use App\Repository\LibroRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=LibroRepository::class) */ class Libro { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type=...
true
d2ccb26cf4067bcc4c470b49bd2ca6ddf22b1f0b
PHP
shaileshkumarcs/laravelMultiAuth
/database/migrations/2021_03_17_123509_create_products_table.php
UTF-8
2,068
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateProductsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('products', fun...
true
aee6f9e94f8b46b63794c5b3b68b29692cd99f00
PHP
charlesdccti/wordpress-docker-compose
/wp-app/wp-content/plugins/bdthemes-element-pack-lite/modules/contact-form/module.php
UTF-8
5,548
2.5625
3
[ "GPL-3.0-only", "MIT", "GPL-1.0-or-later", "LicenseRef-scancode-unknown-license-reference", "GPL-2.0-only", "GPL-2.0-or-later" ]
permissive
<?php namespace ElementPack\Modules\ContactForm; use ElementPack\Base\Element_Pack_Module_Base; use ElementPack\Classes\Utils; if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly class Module extends Element_Pack_Module_Base { public function get_name() { return 'contact-form'; } public function ...
true
b79d0da127252b2fd9f5b98173a2845fa35818f2
PHP
code4interactive/menu
/tests/MenuCollectionTest.php
UTF-8
2,684
2.65625
3
[ "MIT" ]
permissive
<?php namespace Code4\Menu\Test; use \Code4\Menu\MenuCollection; class MenuCollectionTest extends TestCase { /** * Test that true does in fact equal true */ public function testHas() { $menuCollection = new MenuCollection($this->exampleMenu); $this->assertEquals(true, $menuCol...
true
4082b2171ea80a14980e16aae2e88f85f3537146
PHP
Mayank-Khurmai/JSON-Database-with-PHP
/Add Live Comment/index2.php
UTF-8
1,449
2.78125
3
[]
no_license
<html> <head> <title>JSON Database</title> </head> <body> <form method="POST" action="index2.php"> <h2>Username</h2> <input type="text" required="required" placeholder="Username" name="username"> <br> <h2>Comment </h2> <input type="text" required="required" placeholder="Comment" name="comme...
true
49cfadc849fd2d75921161f3cc1b3ae3af84327e
PHP
codedsultan/SmartAccountant
/app/Http/Controllers/Admin/ExpensesSubCategoryController.php
UTF-8
4,514
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use App\DataTables\Admin\ExpensesSubCategoryDataTable; use App\Http\Requests\Admin; use App\Http\Requests\Admin\CreateExpensesSubCategoryRequest; use App\Http\Requests\Admin\UpdateExpensesSubCategoryRequest; use App\Repositories\Admin\ExpensesSubCategoryRepository; use Flas...
true
dc683ddadaac06fa807ca3baf57693d3732841bc
PHP
MrWazaby/gestion-autoroute
/controllers/index.php
UTF-8
2,240
2.921875
3
[]
no_license
<?php require_once('controllers/dijkstra.php'); // Index Controller $page = "index"; // Function who generate the solution function getSolution($path, $db) { $i = -1; foreach ($path as $value) { if(substr( $value, 0, 5 ) == "exit_") { $i++; $exit = getExit($value, $db); ...
true
f3e4e6fcb4f74eb8e51961edba8a0b7f696b1a59
PHP
YASUO0715/PHP_exersice
/01_study/04/if_5.php
UTF-8
635
3.40625
3
[]
no_license
<?php // 2種類のテストの得点により合否判定を行う // どちらのテストも80点以上: 合格 // どちらかのテストが50点以上: 追試 // 上記2つの条件を満たさない: 不合格 $score_1 = 79; $score_2 = 803; if ($score_1 >= 80 && $score_2 >= 80) { echo '合格'; } elseif ($score_1 >= 50 || $score_2 >= 50){ echo '追試'; } else { echo '不合格'; } echo '<hr>'; echo '<br>'; ?> <?php $score_1 =...
true
a10389f75975cb716067985f66b5bc8614a7ae64
PHP
EncryptDB-Research/cryptdb_supp
/webview/create.php
UTF-8
880
2.671875
3
[]
no_license
<html> <head> <title>creating</title> </head> <body> <?php session_start(); $type=$_REQUEST['type']; $name=$_REQUEST['name']; $link = mysqli_connect($_SESSION['host'], $_SESSION['user'], $_SESSION['pass'], NULL, $_SESSION['port']); if($link == false) { echo 'ERROR: Could not connect. ' ....
true
20e69b8e0d13187946e1af68b3952bdb283a25c6
PHP
bapplistudio/SAF
/php/Reflection_Property.php
UTF-8
10,141
2.78125
3
[ "MIT" ]
permissive
<?php namespace SAF\Framework\PHP; use SAF\Framework\Reflection\Annotation\Annoted; use SAF\Framework\Reflection\Interfaces; use SAF\Framework\Reflection\Type; /** * The same as PHP's ReflectionProperty, but working with PHP source, without loading the class */ class Reflection_Property implements Interfaces\Has_Do...
true
f945a78b94092bec3b56e4667da6118fc56cecf8
PHP
scportela/Traepaka
/model/ChatMapper.php
UTF-8
7,292
2.828125
3
[]
no_license
<?php require_once(__DIR__."/../core/PDOConnection.php"); require_once(__DIR__."/Chat.php"); class ChatMapper{ private $db; public function __construct() { $this->db = PDOConnection::getInstance(); } public function getList(){ $stmt=$this->db->prepare("SELECT * FROM chat"); $s...
true
1fa980bb087e760383f15f97bfee13f897f4e603
PHP
gall314/semiapp
/class/toggleSpam.php
UTF-8
1,664
2.640625
3
[]
no_license
<?php require_once '../include/sessionhandler.php'; require_once '../include/settings.php'; $c = $_REQUEST["c"]; # Connect with DB try { $pdo = new PDO("$DBEngine:host=$DBServer;dbname=$DBName", $DBUser, $DBPass); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (PDOException $e) { ...
true
6ff070d33ab667c3dfb1699a33d32bccb5d36789
PHP
babaraniruddha009/MeerNTweet
/search.php
UTF-8
3,619
2.71875
3
[]
no_license
<?php include("include/header.php"); if(isset($_GET['q'])){ $query=$_GET['q']; }else{ $query=""; } if(isset($_GET['type'])){ $type=$_GET['type']; }else{ $type="name"; } ?> <div class="main_column column" id="main_column"> <?php if($query=="") echo "You must enter something in search box."; else{...
true
ade9af9e6c0670d05f4008faa283c11892b824ef
PHP
doctore/FunctionalPHP
/iterable/collection/set/Set.interface.php
UTF-8
306
2.9375
3
[]
no_license
<?php namespace FunctionalPHP\iterable\collection\set; use FunctionalPHP\iterable\collection\Collection; /** * A collection that contains no duplicate elements. More formally, sets contain no pair of * elements e1 and e2 such that * * e1->equals(e2) */ interface Set extends Collection { } ?>
true
b1b55a4e452da7ea58e3945fffc818340fc7e2b4
PHP
ritwikmathlearner/Laravel-TDD-Libraray-System
/app/Http/Controllers/AuthorsController.php
UTF-8
658
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Author; use Illuminate\Http\Request; class AuthorsController extends Controller { public function index() { $authors = Author::all(); return view('authors.index', compact('authors')); } public function add() { return view('auth...
true
52e1f5194994bb1f06dee7949a92c99f88e80f6b
PHP
surest-sky/shop_surest
/app/Notifications/MsgToMailNotification.php
UTF-8
1,429
2.609375
3
[]
no_license
<?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; class MsgToMailNotification extends Notification { protected $msg; public $tries = 2; /** * Cr...
true
de580506b4870f571073682d7ac4cafcb1d72098
PHP
EvanDotPro/trove
/src/Tv/Db/DoctrineDbalConnectionFactory.php
UTF-8
1,141
2.546875
3
[]
no_license
<?php namespace Tv\Db; use Doctrine\DBAL\DriverManager; use Interop\Config\ConfigurationTrait; use Interop\Config\RequiresConfigId; use Interop\Config\RequiresMandatoryOptions; use Interop\Container\ContainerInterface; /** * Class DoctrineDbalConnectionFactory * * @package src\Infrastructure\Container */ final cl...
true
62ed7e701c75ddcf3758add55fc2ca83389ff1ee
PHP
waiter-coders/app
/router/Api.php
UTF-8
478
2.515625
3
[ "MIT" ]
permissive
<?php namespace router; class Api extends Base { public function route() { if (!isset($_SERVER['PATH_INFO'])) { throw new \Exception('request error'); } // 路由用户请求 $path = trim($_SERVER['PATH_INFO'], '/'); return $this->router->set([ ['(\w+)/(\w+...
true
4cdb707e558c5e6511c9e70ed642538f250ee81a
PHP
gvidasku/SportOrganiser
/vendor/laravel/framework/src/Illuminate/Bus/BatchRepository.php
UTF-8
2,261
2.59375
3
[ "MIT" ]
permissive
<?php namespace Illuminate\Bus; use Closure; interface BatchRepository { /** * Retrieve a list of batches. * * @param int $limit * @param mixed $before * @return \Illuminate\Bus\Batch[] */ public function get($limit, $before); /** * Retrieve information about an ex...
true
b2fe86fa3ef3fa7cb4dbbbc4b3575d294c1c557a
PHP
MorisPae/Paiza
/20170516/D_059.php
UTF-8
221
2.640625
3
[]
no_license
<?php //トランプ占い $stdin = trim(fgets(STDIN)); $f_tell = explode(" ", $stdin); if($f_tell[0] == "J" && $f_tell[1] == "J") { $f_tell[1] = "Q"; } echo $f_tell[0]." ".$f_tell[1]; ?>
true
02756092f00eff97b9c073c2f3827fe355b74afe
PHP
gpYang/ygp
/Application/Library/DataFile/Classes/Excel.php
UTF-8
2,303
3.078125
3
[]
no_license
<?php /** * Excel操作类 * * @author yangguipeng<hi121073215@gmail.com> * @package Library.DataFile */ namespace Library\DataFile; /** * @package Library.DataFile * @subpackage Classes */ class Excel implements DataFileInterface { public $row = 0; public $column = 0; /** ...
true
5c948010a2411e121a50b02b195de285bf860a87
PHP
lwitzand/Chessboard
/app/Models/Chessboard.php
UTF-8
426
2.515625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use App\Models\Tile; class Chessboard extends Model { use HasFactory; protected $primaryKey = 'id'; protected $table = 'chessboards'; protected $fillable = [ 'id', ...
true
89b6289d44af5d806d84f8003970d2e33dc467ee
PHP
gitgrupoift/ift-comercial
/wp-content/plugins/ift-at/MySdk/src/StructType/Erros.php
UTF-8
3,701
2.84375
3
[]
no_license
<?php namespace StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for erros StructType * @subpackage Structs */ class Erros extends AbstractStructBase { /** * The erro * Meta information extracted from the WSDL * - maxOccurs: unbounded * - minOccurs: 1 ...
true
8c6f15d995a50b69824852a1867dc1e01a58e0c1
PHP
andreyserdjuk/lumen-auth
/src/Core/Authenticator.php
UTF-8
2,137
2.765625
3
[]
no_license
<?php namespace LumenAuth\Core; use Doctrine\Persistence\ObjectManager; use InvalidArgumentException; use LumenAuth\Documents\Account; use UnexpectedValueException; class Authenticator { /** * @var ObjectManager */ protected $om; public function __construct(ObjectManager $om) { $th...
true
daaa956e7f0c8fd7e94789de42a1eb345ab6cff2
PHP
ra1amx/adadminphpserver
/src/componenti/7banner/_include/banner.class.php
UTF-8
34,302
2.59375
3
[ "MIT" ]
permissive
<?php /* classe per la gestione degli asili. */ class Banner { var $tbdb; //tabella del database che contiene i dati var $start; // posizione del primo record visualizzato var $omode; // asc|desc var $oby; // campo della tabella $tbdb utilizzato per ordinare var $ps; // numero di righe per pagina nell'elenco ...
true
432b946184240d856db23b239f1c675872df5a59
PHP
helloworld11001011/SolidLight
/webarena_group_si3-04-BE/src/Model/Table/GuildsTable.php
UTF-8
597
2.625
3
[]
no_license
<?php namespace App\Model\Table; use Cake\ORM\Table; use Cake\ORM\TableRegistry; class GuildsTable extends Table { function addANewGuild($arg) { $guildData = $arg; $guildTable = TableRegistry::get('guilds'); $guild = $guildTable->newEntity(); $guild->name = $guildData['name']; ...
true
37352b0227d6737085642c723202a6ad2699ed48
PHP
runcore/EzzForms
/Ezz/autoexec.php
UTF-8
1,854
2.734375
3
[ "MIT" ]
permissive
<?php /** * Forms for easy embedding * * @package Ezz * @created 01.01.2017 * @author runcore */ namespace Ezz; // todo: support for composer // todo: server, custom template engine // todo: server, support ajax-request validation // todo: client, support for client validation session_start(); // system dirs d...
true
6d4cdc01c53e4551788bf588f3d20af33a73ac1c
PHP
Gelvanne/Atividades-PHP
/Aula05/variaveis.php
UTF-8
495
3.21875
3
[]
no_license
<?php // Criar uma variável $php_nome = $_GET["HTML_titulo"]; $php_tel = intval($_GET["HTML_tel"]); $php_peso = floatval($_GET["HTML_peso"]); ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>VARIAVEIS PHP</title> </head> <body> <br> <br> <a href="/atividades"> Home </a> <hr> <br> <h1> Seja bem vindo...
true
90b3e3f2a43696f1c593458f06f8688efd6af6e6
PHP
whizline/final
/details.php
UTF-8
1,530
2.53125
3
[]
no_license
<?php include ('config/db_connect.php'); //check get request if(isset($_GET['id'])){ $id = mysqli_real_escape_string($conn,$_GET['id']); //make sql $sql = "SELECT * FROM product WHERE id = $id"; //get results $results = mysqli_query($conn, $sql); //fetch results $products = mysqli_fetch...
true
2b9205850569b08cb30fc397a660ae2bd05a0af0
PHP
shanghaif/lkmotion
/common/models/DriverBindChangeRecord.php
UTF-8
1,421
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\models; use Yii; /** * This is the model class for table "{{%driver_bind_change_record}}". * * @property int $id * @property int $driver_info_id 司机ID * @property string $bind_tag 绑定类型 * @property string $create_time 记录时间 * @property string $bind_value 绑定内容 * @property int $bind_type 0绑...
true
601977bddeedd04819e2a9ca092bc061faed71cb
PHP
Henrado/videregaaendeIT1-2
/IT1 Databaser/www/Nettsider_m_databaser/Phus/biler.php
ISO-8859-15
2,853
2.671875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Phus</title> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="./test.css"> </head> <body> <div class="Main"> <?php include "./php/tilkobling.php"; include "./php/bannerogmeny.php"; ...
true
84b6d0864776cf08d8025d91702cadc2dad3fd2e
PHP
alita-battle-angel/alita-battle-angel.github.io
/server/TwitterAPI.class.php
UTF-8
871
2.578125
3
[]
no_license
<?php global $config; $config = parse_ini_file(__DIR__ . '/twitter.config.ini'); class TwitterAPI { public static function fetch ($end_point, $params = []) { global $config; $http_headers = [ 'Content-Type: application/json', "Authorization: Bearer {$config['BEARER_TOKEN']}" ]; $query =...
true
24d803b5e06d26efefed4798127a9273c3fd040d
PHP
nomius2016/backup
/system/core/CIAutoLoad.php
UTF-8
646
2.53125
3
[]
no_license
<?php spl_autoload_register ( array ( 'CIAutoLoad', 'loadclass' ) ); abstract class CIAutoLoad { private static $load_classes = array (); static final function loadClass($className = NULL) { $strict_loads = array ( "base_model", "base_gaming", "base_pay", ); if (in_array ( strtolower ( $classNa...
true
462abe9503499ddf3d059c15b520417fb03ca909
PHP
RodrigoBalabasquer/ESTACIONAMIENTO_2017
/CLASES/Cochera.php
UTF-8
1,760
3.109375
3
[ "MIT" ]
permissive
<?php class Cochera { private $Fecha; private $Numero; public function __construct($fecha,$numero) { $this->Fecha = $fecha; $this->Numero = $numero; } //Propiedades public function getFecha() { return $this->Fecha; } public function getNumero() { ...
true
2f8305e4ed644929417575ef51b05cd8780e7e81
PHP
kikino1989/kexelisNails_mvc
/controllers/EmployeeAccount.php
UTF-8
6,658
2.75
3
[]
no_license
<?php class EmployeeAccount extends Account { function __construct() { parent::__construct(); } /** * |----------------------| * | Controllers | * |----------------------| */ /*---------------------user controllers----------------------*/ /** * @desc : redirect user if not user exist *...
true
e13694dd5d9ab9881691fecf059c99be021277ef
PHP
seans888/Project---APC-Pre-Reg
/Application/apcprereg/core/subclasses/xrefstudentcourse.php
UTF-8
6,201
2.78125
3
[]
no_license
<?php require_once 'xrefstudentcourse_dd.php'; class xrefstudentcourse extends data_abstraction { var $fields = array(); function __construct() { $this->fields = xrefstudentcourse_dd::load_dictionary(); $this->relations = xrefstudentcourse_dd::load_relationships(); $this->subc...
true
d37ff850bca0fbb1dbd789cf684fe39f53cbaacc
PHP
Douglas-Verheijen/Projects
/LiquidDoses/Server/dev_command.php
UTF-8
197
2.546875
3
[]
no_license
<?php foreach (glob("dev_commands/*.php") as $filename) require_once($filename); interface DevCommand { /** * Executes the dev command. */ public function Execute(); } ?>
true
119de572c9bc21a70490a3514ca44c3182190511
PHP
SamHennessy/mist
/tests/MistTest/Log/_1_0/Monolog1Test.php
UTF-8
1,452
2.75
3
[]
no_license
<?php namespace MistTest\Log\_1_0; class Monolog1Test extends \MistTest\Log\PsrLoggerInterfaceTest { protected $logger; protected function setUp() { $this->logger = new \Mist\Log\_1_0\Monolog1(); $this->logger->setBuilder( function () { $log = new \Monolog\Logger('test'); $handler = new \Mon...
true
85c9d2aac3e3e0d2aa3e3e12469058883d517674
PHP
MmmarRTha/CRUDwithPHPandRestAPI
/app/models/User.php
UTF-8
2,384
3.359375
3
[]
no_license
<?php class User { private $conn; private $table = 'user'; //User properties public $id; public $name; //constructor with DB public function __construct($db) { $this->conn = $db; } //Get Users public function getAll() { $query = 'SELECT id, name FROM u...
true
e5ad489b9942296a3fb9dfa8e446034f98f2517e
PHP
adrigonz/Actividad-Control-Vehicular-de-la-Instituci-n
/Control Vehicular/Usuario.php
UTF-8
3,001
3.203125
3
[]
no_license
<?php /** * Objetivo: * Definir una clase de usuario de la que puedan heredar los usuarios * que acceden al estacionamiento y comparttan los atributos principales. * * @author Adriana de Jesús González Guerrero. * @author Carlos Uriel Arriaga Corona. * @version 1.0 */ abstract class Usuario { ...
true
003c177622e403e97237b7f1986d131c66f89c3d
PHP
evaisse/php-linearizer-reviews
/src/Utils_Dumper.php
UTF-8
808
3
3
[]
no_license
<?php /** * Clone any var (even most complex ones) into a simpler representation with array & scalar only, * removing references, objects & resources and other complex types * * @see https://github.com/bd808/php-unserialize-js/blob/master/phpUnserialize.js * @author evaisse */ class Utils_Dumper { /** ...
true
a73626b0d4adc37a9ae620431ea48e146b1220c9
PHP
TiguerchaD/p5
/src/lib/Model/CommentManager.php
UTF-8
541
2.75
3
[]
no_license
<?php namespace Model; use Entity\Comment; use Entity\Post; use http\Exception\RuntimeException; use OpenFram\Manager; abstract class CommentManager extends Manager { abstract protected function add(Comment $comment); abstract protected function getListOf(Post $post); public function save(Comment $com...
true
faae844c8e12515ed294a931dc886347ab5371f0
PHP
Ryanc1256-zz/pcinsight
/views/home.php
UTF-8
3,467
2.53125
3
[]
no_license
<?php include ('classes/mobileDetect.php'); class Page extends view{ function displayContent(){ $html = '<div id="mainContent">'."\n"; $html .= '<h2> Technology Articles </h2>'."\n"; $html .= ' <div id="gallery">'."\n"; $html .= $this->getSliderImages(); $html .= ' </div>'."\n"; $html .= ' <d...
true
f98ab302ab6cf57c4460911652ccdb3a30f56b56
PHP
TomaszKr/appForTest
/src/AppBundle/Controller/BaseController.php
UTF-8
4,231
2.53125
3
[ "MIT" ]
permissive
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace AppBundle\Controller; use AppBundle\Errors\ErrorForms; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use S...
true
4f2c1abb91904849d05f638f203b8a1d59d6edf9
PHP
Aspirisha/preferans_online
/PrefSite_new/NotificationManager.php
UTF-8
6,392
2.640625
3
[]
no_license
<?php include_once 'mysql.php'; include_once 'GameLogic.php'; include_once 'DebugManager.php'; include_once 'Enumerations.php'; $regId = $_POST["reg_id"]; // this will be empty if not online notificatiion $id = $_POST["id"]; $link = openMysqlConnection(); $result = mysql_query("SELECT *...
true
b20e06b83acd36e6cf87b95cf6cd7afa1a0abf93
PHP
ThibaudLafont/BMalfray
/src/Service/Sluggifier.php
UTF-8
1,870
3.34375
3
[]
no_license
<?php namespace App\Service; /** * Class Sluggifier * This class replace every special character with a "-" * Here, special characters are mostly french accents * * @package AppBundle\Service */ class Sluggifier { /** * Sluggify the given string * Replace every special character with a "-" * ...
true
a515a9778206c016fe34e934316b2054b3f3df14
PHP
jlaute/JodaYellowBox
/Components/Strategy/TicketStrategyInterface.php
UTF-8
510
2.796875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace JodaYellowBox\Components\Strategy; use JodaYellowBox\Components\API\Struct\Project; interface TicketStrategyInterface { /** * Call remote API and fetch external data with local data * * @param Project $project */ public function fetchData(Project $...
true
fb895c34b97c69b157fa38ac491409536295643f
PHP
cosminstaicu/antheia
/src/Antheia/Classes/Input/NewInput.php
UTF-8
5,369
2.984375
3
[ "Apache-2.0" ]
permissive
<?php namespace Antheia\Antheia\Classes\Input; /** * A shortcut class for generating any input without adding the namespace * to the document use section (as a form uses many types of inputs, the * namespace declaration section can become crowded) * @author Cosmin Staicu */ abstract class NewInput { priv...
true
cc89869a6eca68c87243f2f63ce0659c7c74c533
PHP
digideskio/phpspamdetection
/vectorspace.php
WINDOWS-1252
3,004
3.15625
3
[]
no_license
<?php /* **NB** This is still in active development and is not ready for use. Copyright 2007 Ben Boyter (http://www.boyter.org) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either...
true
4bd81e58de914de4da1d56ccc6277f533fe26141
PHP
manicki/mediawiki-extensions-WikibaseLexeme
/src/Api/RemoveFormRequestParser.php
UTF-8
1,173
2.53125
3
[]
no_license
<?php namespace Wikibase\Lexeme\Api; use Wikibase\DataModel\Entity\EntityIdParser; use Wikibase\DataModel\Entity\ItemIdParser; use Wikibase\Lexeme\Api\Constraint\RemoveFormConstraint; /** * @license GPL-2.0-or-later */ class RemoveFormRequestParser { const PARAM_FORM_ID = 'id'; /** * @var EntityIdParser */ ...
true
750eba7832fff4f08446971fb19adea70b5601a7
PHP
t3rryw1/rs-queue
/tests/TestStaticJob.php
UTF-8
498
2.65625
3
[]
no_license
<?php namespace Laura\Module\Queue\StreamQueue; use Laura\Lib\Queue\BaseJob; class TestStaticJob extends BaseJob { private static $staticValue = 0; private $value; public function __construct($value) { $this->value = $value; } /** * @return bool */ public function han...
true
41ddf6626e7093bac86cee6032877c524cf1504c
PHP
ferdeu/sprint3
/registro.php
UTF-8
4,287
2.59375
3
[]
no_license
<?php require_once ('./include.php'); if($session->estaLogeado()) { header("Location: perfil.php"); exit; } $existeUsuario = false; $error = false; $nombre = traerValorDeParametro('nombre',$_POST); $apellido = traerValorDeParametro('apellido',$_POST); $edad = traerValorDeParametro('edad',$_POST); $email = traerVal...
true
149691bcf01cbf44b0c87f49893cef0ca6d1c7ad
PHP
rt860113/The_Wall
/index_1.php
UTF-8
3,462
2.578125
3
[]
no_license
<?php session_start(); // var_dump($_SESSION); // var_dump($_FILES); require_once('connection.php'); ?> <!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta charset='utf-8'> <title>Login and Registration</title> <link rel="stylesheet" type="text/css" hre...
true
5894df19ffe0e144819511fba9e787a4afa3f590
PHP
hideyukisugamata/MockProjectApi
/app/Models/Manager.php
UTF-8
1,692
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; use App\Models\Restaurant; class Manager extends Model { use HasFactory; protected $fillable=[ 'employee_number...
true
10f802a2fa469358d20e1a13b5f5cc080183330d
PHP
ezequiellagos/WebDptoInformatica
/app/core/Controller.php
UTF-8
1,186
2.65625
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') or exit('No se permite el acceso directo'); /** * */ class Controller { private $load; public function __construct() { // } // Cargar model public function model($model) { $model .= 'Model'; require_once PATH_MODELS . "{$model}.php"; return new $model(); } // Cargar vie...
true
5088b7599def8bac62e69bb849960aa7c0add808
PHP
vinhcd/simple-crm
/app/Module/Acl/Models/AclChecker.php
UTF-8
3,984
2.59375
3
[]
no_license
<?php namespace App\Module\Acl\Models; use App\Module\Acl\Api\AclCheckerInterface; use App\Module\Acl\Models\Data\RolePermission; use App\Module\User\Models\Data\User; use Illuminate\Database\Eloquent\Collection; class AclChecker implements AclCheckerInterface { /** * @var User */ private $user; ...
true
9c73903d478deac936d74d85e60bec93d21245ed
PHP
cryptobuks1/oneblock-server-php
/api/index.php
UTF-8
6,613
2.609375
3
[ "MIT" ]
permissive
<?php require 'vendor/autoload.php'; require 'DAO.php'; use BitcoinPHP\BitcoinECDSA\BitcoinECDSA; $DAO = new \OneBlock\DAO(); $app = new \Slim\Slim(); $app->get('/', function () { echo "API"; }); /** API endpoint: /login method: GET Web page requests a new challenge URI. Create one and send. **/ $app->get('...
true
3a672b5e72e0c4ae4792aca25524c689763c5ba3
PHP
bartucci26/StoreGame_SelfStudy_IDPA2
/private/classes/orders.class.php
UTF-8
911
2.890625
3
[]
no_license
<?php class Orders extends DatabaseObject{ static protected $table_name = 'cart'; static protected $db_columns = ['id', 'date', 'user_id', 'status', 'games']; public $id; public $date; public $user_id; public $status; public $games; public function __construct() { $th...
true
3d647926ba04a782acded73a30797003b6589d31
PHP
vtshark/test-dishes
/models/Dishes.php
UTF-8
1,679
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "dishes". * * @property int $id * @property string $name * @property int $cooking_time * @property string $description * @property Products $products */ class Dishes extends \yii\db\ActiveRecord { /** * {@inheritdoc} ...
true
ebe872015ac3baa789eafd8d449f9bd55881be64
PHP
GeorgeGunin/cars-laravel-app
/app/User.php
UTF-8
5,346
2.625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; use Illuminate\Database\Eloquent\Model; use Session, DB, Image; class User extends Model { public function posts(){ return $this->hasMany(Post::class); } public static function verify($request) { $auth =...
true
0c923849bef0eee38829b8d9bcaba16d29c810e2
PHP
vanthinhit310/crawl
/app/Http/Controllers/PageController.php
UTF-8
548
2.75
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Repositories\Interfaces\Page\PageInterface; /** * @property PageInterface crawl */ class PageController extends Controller { private $crawl; public function __construct(PageInterface $crawl) { $this->crawl = $crawl; } /** * @return \I...
true
2fed87f3c45484436c59152d7ab35312f7e28895
PHP
chrisadbr/Diploma_FYP_2019
/process/deleteBook.php
UTF-8
447
2.515625
3
[]
no_license
<?php include '../db_connect.php'; if(isset($_POST['book'])){ $book = $_POST['book']; } if(empty($book)){ echo "The field cannot be empty"; }else{ mysqli_query($conn, "DELETE FROM addbook WHERE id = '$book'"); if ( mysqli_affected_rows($conn) > 0 ) { ...
true
055d42dce72920ea2e8bde37b7fa19341ee532a5
PHP
doduyphat910/webphp
/FN/admin/classes/login.class.php
UTF-8
217
2.53125
3
[]
no_license
<?php class login extends Db{ function Login ($un, $pw){ $arr = array(":UN"=>$un,":PW"=>$pw); $sql = "SELECT * FROM User WHERE UserName like :UN AND Password like :PW"; return $this->query($sql, $arr); } } ?>
true