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
7a70352b86a19dd5a85965617857328d4b0b9c78
PHP
mheinzmann-cloud/questlab
/agents/IntermediateAgent.inc
UTF-8
1,109
2.578125
3
[]
no_license
<?php /** * NRE * * @author coderkun <olli@coderkun.de> * @copyright 2013 coderkun (http://www.coderkun.de) * @license http://www.gnu.org/licenses/gpl.html * @link http://www.coderkun.de/projects/nre */ namespace nre\agents; /** * The Intermediat...
true
a0fa46e4e3f652f8fa61cad57721caa09c9fe458
PHP
carlochess/uvshop
/aplicacion/modelo/modelfactura.php
UTF-8
1,504
2.734375
3
[]
no_license
<?php class ModelFactura { /* Clase encargada de las consultas a la bd */ public $oMySQL; /* */ function __construct(MySQL $db) { $this->oMySQL = $db; } /** Devuelve todas las facturas de la base de datos */ function /* array(stdObject) */ getFacturas() { $consulta = ...
true
c556ad5500145b136bb8ade97895294527938897
PHP
chana-chh/it
/app/Modeli/Licenca.php
UTF-8
882
2.515625
3
[]
no_license
<?php namespace App\Modeli; use Illuminate\Database\Eloquent\Model; use Carbon\Carbon; class Licenca extends Model { protected $table = 'licence'; protected $appends = ['formatiran_pocetak', 'formatiran_prestanak']; public $timestamps = false; public function getFormatiranPocetakAttribute() { ...
true
2a145cc45a32543a8d1b6ddfbe412e6f5a1b06d2
PHP
kwangchuk1002/website
/app/Models/Contact.php
UTF-8
631
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Contact extends Model { protected $table = 'contacts'; //Db table name public $dates = ['created_at', 'updated_at']; const CREATED_AT = 'created_at'; const UPDATED_AT = 'updated_at'; protected $primaryKey = 'i...
true
6c4e4601a087eeefd0d2ba1d0a59c9e13cc5bd00
PHP
oakfox/itm_tbb
/common/models/Estudiante.php
UTF-8
959
2.640625
3
[]
no_license
<?php namespace common\models; use Yii; /** * This is the model class for table "estudiante". * * @property string|null $nombre * @property string|null $ap * @property string|null $am * @property string $no_de_control */ class Estudiante extends \yii\db\ActiveRecord { /** * {@inheritdoc} */ ...
true
20a53ca786dca6344f6a5d281bc1d8ff9dce409b
PHP
Lilla-24/solid
/app/Classes/S/TemplateInterface/TemplateInterface.php
UTF-8
198
2.8125
3
[]
no_license
<?php namespace App\S\TemplateInterface; /** * Interface TemplateInterface */ interface TemplateInterface { /** * @param string $data */ public function render(string $data); }
true
63859332f583fcc4d86096ef06a1a40241fc06cb
PHP
chege-kimaru/php-intro
/exceptions/exceptions.php
UTF-8
751
3.890625
4
[]
no_license
<?php class NameException extends Exception { public function showError() { return "Error on line {$this->getLine()} in {$this->getFile()}"; } } function sayName($name) { if(strlen($name) < 3) { throw new NameException('Name must be more than 3 characters.'); } return "My name is ...
true
3e70f05cc7120402b24b5e502eb803b2a5aac295
PHP
AlexAPPi/look-php
/look/crypt/rsa/protectedstringdata.php
UTF-8
3,333
2.96875
3
[]
no_license
<?php namespace Look\Crypt\RSA; use JsonSerializable; use Look\Crypt\RSA\PublicKey; use Look\Crypt\RSA\PrivateKey; use Look\Crypt\RSA\Exceptions\RSAExcepton; use Look\API\Type\Interfaces\APIResultable; /** * Структура защищенный данных */ class ProtectedStringData implements JsonSerializable, APIResultable { ...
true
96feab6e80e730c9cdd92adeb273bba419dc1fbc
PHP
Mariusz11/xlab-3
/src/Xlab/ProductsManager.php
UTF-8
876
3.171875
3
[]
no_license
<?php namespace Xlab; class ProductsManager { /** * @param Product[] $products * * @return string */ public function showProducts(array $products) { usort($products, function (Product $productA, Product $productB) { return $productA->getPrice() > $productB->getPrice...
true
3e42f4040f9c992cb923d5b8859b5bada2bf6509
PHP
atpollmann/HTTP-Resource-Server
/src/cl/pcorp/ResourceServer/app/Dispatcher.php
UTF-8
1,042
2.71875
3
[ "MIT" ]
permissive
<?php namespace cl\pcorp\ResourceServer\app; use cl\pcorp\ResourceServer\agents\AgentFactory; use cl\pcorp\ResourceServer\business\model\ifResource; use cl\pcorp\ResourceServer\business\model\ResourceRequest; use cl\pcorp\ResourceServer\business\services\ifResourceService; use cl\pcorp\ResourceServer\common\Config; c...
true
69ef3c2f73a31396eb590356bb8c2bcfefbd7b6f
PHP
zahidul1994/bloog
/create.php
UTF-8
6,972
2.578125
3
[]
no_license
<?php require __DIR__ . '/vendor/autoload.php'; use App\Database; use App\Session; use Intervention\Image\ImageManagerStatic as Image; $conn = new Database(); $userinfo = Session::user(); if(!$userinfo){ header("location: login.php"); } //get all categories $conn->table_name = "categories"; $all_cat = $conn->get_all()...
true
9c811f87c841d733911f45d5bf077cb7b950b8e4
PHP
luxifeo/Magento-Table
/Setup/InstallSchema.php
UTF-8
4,160
2.59375
3
[]
no_license
<?php namespace Packt\Table\Setup; use Magento\Framework\DB\Ddl\Table as Table; /** * DB setup script for TokenBase */ class InstallSchema implements \Magento\Framework\Setup\InstallSchemaInterface { /** * DB setup code * * @param \Magento\Framework\Setup\SchemaSetupInterface $setup * @param \...
true
557cade08329be902eaa15c91628da60b8a8742c
PHP
douglas-bernardo/api_cmtsharing
/boot/Helpers.php
UTF-8
489
2.671875
3
[]
no_license
<?php /** * ######################## * ### STATEMENTS CM ### * ######################## */ /** * Lê as consultas CM localizadas na pasta padrão 'resources' * * @param string $queryName * @return string|null */ function file_get_string_sql(string $queryName): ? string { $path = __DIR__ . "/....
true
b2cca59918fc06911a5d0674faba88c71ab7ee99
PHP
shuvojittechpro/ealarm911-laravel
/app/Http/Controllers/UserController.php
UTF-8
1,955
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\User; use Session; use DB; class UserController extends Controller { public function response_user_list(Request $request){ $params = $_REQUEST; $columns = $totalRecords = $data = array(); //define index of column ...
true
4da8e0e47a0c2c5660d638a613f158d432bbb226
PHP
osamashaheen/gateways
/gateways/SMS/InfoBIP.php
UTF-8
1,528
2.828125
3
[ "MIT" ]
permissive
<?php namespace Phpanonymous\Gateways\SMS; class InfoBIP { // Sandbox or Live Link private $link; /** * links method to collect and prepare all link with fawry * @return array */ private $links = []; // Params binding to Guzzel POST & GET private $params = []; // with Headers private $headers; // M...
true
823333de56721e1733180a3625b62267bbe031f4
PHP
mkdir404/ERP
/loginrequest.php
UTF-8
3,550
2.546875
3
[]
no_license
<?php /******************************************************************************/ /* ez sql includes*/ /******************************************************************************/ // Include ezSQL core include_once "clases/ez_sql_core.php"; // Include ezSQL database s...
true
df867e979c9e911cbf216ff8c2a9369dbe80dd71
PHP
minus17/lottery
/src/DaletouWinning.php
UTF-8
3,591
2.828125
3
[ "MIT" ]
permissive
<?php /* * 大乐透命中计算 * * (c) wangtao <wangtao@p2peye.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace Lottery; class DaletouWinning{ use LotteryCombine; static $winnings= array( 1 => array(array(5,2)), 2 =>arr...
true
8cd19a397213c4d10cfeff1ff9af04040be673a6
PHP
luckydimdim/bobel-algo
/php/tree/Tree.php
UTF-8
613
3.09375
3
[]
no_license
<?php declare(strict_types=1); namespace bobel\tree; class Tree { public ?Node $root = null; public function traverseBF(callable $fn): void { $list = [$this->root]; while (count($list)) { $node = array_shift($list); array_push($list, ...$node->children); ...
true
aa4b22826e0edb70fd2f59f49058d5951201b49b
PHP
firzenvn/game-portal
/app/models/EModel/Category.php
UTF-8
3,242
2.75
3
[]
no_license
<?php namespace EModel; use Util\Model\EloquentBaseModel; class Category extends EloquentBaseModel { /** * The table to get the data from * @var string */ protected $table = 'category'; public $timestamps = false; /** * These are the mass-assignable keys * @var array ...
true
39ebc1c26f3218d79c56af7710e411a257d8f744
PHP
firyalff/streaminterface
/src/Firyalff/Streaminterface/Streaminterface.php
UTF-8
179
2.515625
3
[]
no_license
<?php namespace Firyalff\Streaminterface; class Streaminterface extends \fennb\phirehose\lib\Phirehose{ public static function greeting(){ return "What up dawg"; } }
true
45e0f65b753299e22362c9e4684bb2d731697d29
PHP
vdedyukhin/dru
/diva/connection/sql_conn.php
UTF-8
370
2.609375
3
[ "MIT" ]
permissive
<?php //MySQL connection information. This is the root database that contains //all the tables used for DRU. $dbserver = "localhost"; $dbuser = "root"; $dbpass = ""; $dbname = "dru"; $conn = new mysqli($dbserver, $dbuser, $dbpass, $dbname); if ($conn->connect_error) { die("Conn...
true
4d5ea0295871c9bde28d43d791f734374fe0ef64
PHP
igruliuli/game_kassa
/modules/api/controllers/UserController.php
UTF-8
776
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\modules\api\controllers; use app\modules\user\models\User; class UserController extends ApiController { public function actionLogin() { $request = \Yii::$app->request; $login = $request->post('login'); $password = $request->post('password'); /** @var User...
true
403296a1b6eec40c1fc8d5a15e49249031b54acb
PHP
agapova6/INST377-agapova
/assignment_2/form_display.php
UTF-8
3,964
3.078125
3
[]
no_license
<!DOCTYPE html> <html> <head> <style> div { margin-top: 20px; margin-bottom: 20px; } td { border: 1px solid #dddddd; text-align: left; padding: 8px; } td.key { background-color: #f95ca2; } td.value { background-color: pink; } td.exist { bac...
true
4e6c6d7eb2bf3941cfdc2d7c7c2a5ef712424fbd
PHP
JonaaFernandez/TPWEB2-PARTE2
/Controller/PropertiesTypesController.php
UTF-8
3,719
2.796875
3
[]
no_license
<?php require_once "UserController.php"; require_once "./View/PropertiesTypesView.php"; require_once "./Model/PropertiesTypesModel.php"; class PropertiesTypesController{ private $cont; private $view; private $model; private $admin = 0; function __construct(){ $this->view = new Propertie...
true
a326a5cd9183b09f01eb5d56189bfc147cdd57bf
PHP
silverstripe/silverstripe-dms
/code/interface/DMSDocumentInterface.php
UTF-8
3,581
2.8125
3
[]
permissive
<?php /** * Interface for a DMSDocument used in the Document Management System. A DMSDocument is create by storing a File * object in an instance of the DMSInterface. All write operations on the DMSDocument create a new relation, so we * never need to explicitly call the write() method on the DMSDocument DataObject ...
true
85faf53aaa70dd8f82ddee7dbdfb86aeec60e643
PHP
nilsenj/lablog
/database/seeds/PostsTableSeeder.php
UTF-8
781
2.578125
3
[]
no_license
<?php use Illuminate\Database\Seeder; class PostsTableSeeder extends Seeder { private $images = [ '1.png', '2.jpg', '3.png', '4.jpg', '5.png', '6.jpg', '7.png', '8.png', '9.jpg' ]; /** * Run the database seeds. * * @re...
true
d8f05bac902778459634f5dd5e7c40a063d2b3c8
PHP
aleksaP98/Miniblog
/app/Services/CommentService.php
UTF-8
1,766
2.6875
3
[ "MIT" ]
permissive
<?php namespace App\Services; use App\Models\CommentsModel; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Log; class CommentService { private $commentsModel; public function __construct() { $this->commentsModel = new CommentsModel(); } pub...
true
800cdcd25648dab4c6da128576c0127c5b9223ce
PHP
mourhafkz/semiautomatic_source_code
/ai/lookup_noun.php
UTF-8
326
3.203125
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php $contents = file('nouns.txt'); // read file as array $data = array(); foreach($contents as $line) { // iterate over file preg_match($regex, $line, $match); // pull out key and value into $matches if (!empty($match)){ $data[] = $match[0]; break; }; } print_r($data);...
true
ac51d6faee3b23b1bf6e6caad8733965f07fee0f
PHP
itarvin/leetcode
/php/535Codec.php
UTF-8
1,934
3.390625
3
[]
no_license
<?php /* * 535. TinyURL 的加密与解密 TinyURL是一种URL简化服务, 比如:当你输入一个URL https://leetcode.com/problems/design-tinyurl 时,它将返回一个简化的URL http://tinyurl.com/4e9iAk. 要求:设计一个 TinyURL 的加密 encode 和解密 decode 的方法。你的加密和解密算法如何设计和运作是没有限制的,你只需要保证一个URL可以被加密成一个TinyURL,并且这个TinyURL可以用解密方法恢复成原本的URL。 */ class Codec { static $url_dics = []; ...
true
b749950606431a3f1bab2000225211ebddffd67d
PHP
WilliamTiago/northwind_POO
/Persistencia/PersistenciaTerritorio.php
UTF-8
2,882
3
3
[ "MIT" ]
permissive
<?php /** * Classe Controladora de todas as funcções utilizadas na aplicações. * * @author William Tiago Velho da Silva Goebel * @since 28/04/2018 */ class PersistenciaTerritorio { private $oFuncao; /** * Construtor da Classe. * * @param type $oConexao */ public funct...
true
9b203a80a7b19c1da740d5c257ce546314217ad3
PHP
murat11/todo-list
/src/Domain/RepositoryInterface.php
UTF-8
474
2.953125
3
[]
no_license
<?php declare(strict_types=1); namespace App\Domain; interface RepositoryInterface { /** * @param $entity */ public function addNew($entity): void; /** * @param $entity */ public function save($entity): void; /** * @param string $listId */ public function delet...
true
c90d4c5306daa509a5f93dbb9ce7b811e11a90cf
PHP
prewk/snapper-php
/src/Snapper/Serializer/Serialization.php
UTF-8
1,254
2.65625
3
[ "MIT" ]
permissive
<?php /** * Serialization * * @author Oskar Thornblad */ declare(strict_types=1); namespace Prewk\Snapper\Serializer; /** * Serialization */ class Serialization { /** * @var array */ private $ops; /** * @var SerializationBookKeeper */ private $books; /** * Seriali...
true
1ea03fdbd71aac3bcf9b786eed26a15fb22a8603
PHP
robbixc/SubRipManagerBundle
/Manager/SrtManager.php
UTF-8
460
2.609375
3
[ "MIT" ]
permissive
<?php namespace Robbixc\SubRipManagerBundle\Manager; use Captioning\Format\SubripFile; class SrtManager { /** * Load an instance of the srt file parser * @param string $filename location of the file you want to read * @param string $encoding custom encoding definition * @return SubripFile ...
true
29a4e95d4fe0547ee717d090230a491e68c88f0a
PHP
shuhongfan/PHP
/10.php
UTF-8
405
3.09375
3
[]
no_license
<?php //query方法 返回PDOstatement类型对象 //数据遍历 //PDO::FETCH_ASSOC 关联数组 //PDO::FETCH_NUM 索引数组 //PDO::FETCH_BOTH echo "<pre/>"; $pdo=new PDO("mysql:host=localhost;dbname=php","root","root"); $sql = "select * from usernew"; $rst=$pdo->query($sql); while ($row=$rst->fetch(PDO::FETCH_BOTH)){ foreach ($row as $item) { ...
true
b765632667b4d891a0c7ca5aacf97377a9ecc281
PHP
olshop-io/core
/app/receive_chat-update.php
UTF-8
8,283
2.9375
3
[]
no_license
<?php // Include config file require_once "config.php"; require_once "helpers.php"; // Define variables and initialize with empty values $id_pesan = ""; $nomor = ""; $pesan = ""; $from_me = ""; $nomor_saya = ""; $tanggal = ""; $id_pesan_err = ""; $nomor_err = ""; $pesan_err = ""; $from_me_err = ""; $nomor_saya_err = ...
true
d84c88dc33e173ec9333fd40a7bffcf85c04f80f
PHP
mvenkat777/server-api
/se/Customer/Commands/DeleteCustomerBrandCommand.php
UTF-8
336
2.734375
3
[]
no_license
<?php namespace Platform\Customer\Commands; class DeleteCustomerBrandCommand { /** * @var integer */ public $customerId; /** * @var integer */ public $brandId; function __construct($customerId, $brandId) { $this->customerId = $customerId; $this->brandId = $br...
true
f2e358d94d9b8181c5469d3b390037836bf80e44
PHP
UbikZ/api-export
/src/Module/App/Model/DTO/FeedType.php
UTF-8
944
2.796875
3
[ "MIT" ]
permissive
<?php namespace ApiExport\Module\App\Model\DTO; /** * Class FeedType. */ class FeedType { /** @var int */ private $id; /** @var string */ private $label; /** @var bool */ private $isEnabled; /** * @return int */ public function getId() { return $this->id; ...
true
43c186f76dcb8d8dcc3da9fd2d74409ed19a23e1
PHP
myfishnameisqwerty/BuyMeBack
/app/Http/Controllers/TaskController.php
UTF-8
1,835
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Task; use Illuminate\Http\Request; class TaskController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $tasks = Task::all('id', 'name', 'done'...
true
e199d1c80ec23301431353a72aef08d94f2a1322
PHP
Vinesma/Site-Imobiliaria
/db_popProprietario.php
UTF-8
430
2.578125
3
[]
no_license
<?php populateProprietario(); function populateProprietario(){ $conn = ConnectTo(); $id = $_SESSION['id']; $sql = "SELECT * FROM cliente"; if ($result = $conn->query($sql)) { while ($row = $result->fetch_assoc()) { echo ("<option value=".$row["ID_CL"].">".$row["login"]."</option>");...
true
f76e3ad0bb9d3230d9c64bfe192a4c1db77bb3f7
PHP
99lalo/PHP-Practice
/tut3.php
UTF-8
541
3
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>PHP Tutorial</title> </head> <body> <?php $request = "Coke"; switch($request){ case "Coke": echo "Here is your Coke<br/>"; break; c...
true
750fdf610980352ba2a554f25dff9861fea35ae0
PHP
abdulsamad234/htmlprojects
/public/take_exam.php
UTF-8
1,144
2.546875
3
[]
no_license
<?php require("../includes/config.php"); $class = ""; $row2 = CS50::query("SELECT * FROM students WHERE id = ?", $_SESSION["id"]); $positions = []; foreach ($row2 as $row){ $positions[] = [ "first_name" => $row["first_name"], "last_name" => $row["last_name"] ...
true
cedd93f53e7b90b8b535266a9287c948d6d08c7f
PHP
AiratS/YiiNetwork
/controllers/AuthController.php
UTF-8
2,073
2.578125
3
[]
no_license
<?php namespace app\controllers; use app\components\repository\UserRepository; use app\models\LoginForm; use app\models\RegisterForm; use app\models\User; use Yii; use yii\helpers\Url; use yii\web\Controller; class AuthController extends Controller { private $userRepository; public function __construct($id,...
true
404215321ce3d760061837eae58bbfee515a287e
PHP
nathanooley/new-novo
/php/get-language.php
UTF-8
1,020
2.515625
3
[]
no_license
<?php $langPath = "../lang/"; $allDataPath = $langPath . "languages.json"; if (!file_exists($allDataPath)){ exit(); } $allLang = json_decode(file_get_contents($allDataPath), true); if (isset($allLang['en'])){ $enLang = $allLang['en']; $enFile = $enLang["file"...
true
e16443bd919de2be7325f8ba2e2a1dcfe25d749a
PHP
ilmuberbagi/adminportal
/application/core/My_Output.php
UTF-8
2,320
2.828125
3
[]
no_license
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * Cache file naming routine factored out to allow for manual deletion. * * Responsible for sending final output to browser * * @package CodeIgniter * @subpackage Libraries * @hacked-by Bradford Mar */ class MY_Output ext...
true
4debc55753f844f6a4cb59a78f9722528d0be34c
PHP
TheRatG/linode-bundle
/src/LinodeClient.php
UTF-8
1,918
2.53125
3
[ "MIT" ]
permissive
<?php namespace TheRat\LinodeBundle; use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; use Psr\Http\Message\RequestInterface; use TheRat\LinodeBundle\Model\ErrorCollection; use TheRat\LinodeBundle\Response\ErrorsResponse; use TheRat\LinodeBundle\Response\ItemResponse; use TheRat\LinodeBundle\Response\ListRespons...
true
864ac9d7702269cc585b077a700900607b0e3a86
PHP
bgarner/demo
/app/Models/Flyer/Flyer.php
UTF-8
5,315
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Models\Flyer; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use App\Models\Flyer\FlyerItem; use App\Models\Utility\Utility; use App\Models\Validation\FlyerValidator; use Carbon\Carbon; class Flyer extends Model { use SoftDeletes; protected $dates = ['...
true
e0da9c79fdf48977400d4aeb08f36f8f7fc29bc9
PHP
Snoradbe/mine
/app/Http/Middleware/Auth.php
UTF-8
1,318
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use App\Services\Auth\AuthService; use Illuminate\Http\Request; class Auth { public const LOGGED = 'logged'; public const GUEST = 'guest'; public const IN_TEAM = 'in_team'; private $authService; public function __construct(AuthService $authService) { ...
true
a1a54b8303b9302aa8aba81efe2677393a212f98
PHP
PalominoVega/conductor
/app/Http/Controllers/ConsultaController.php
UTF-8
1,108
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Peru\Http\ContextClient; use Peru\Jne\{Dni, DniParser}; use Peru\Sunat\{HtmlParser, Ruc, RucParser}; class ConsultaController extends Controller { public function buscar(Request $request){ if (strlen($request->get('documento'))==8) { ...
true
de786607e0a1163ca0d0c38151c3d128e1780f4e
PHP
KennethPillet/LaravelValidation_KennethPillet
/data/bandeDessinees/app/Models/Drawer.php
UTF-8
306
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use App\Models\Character; class Drawer extends Model { public function characters() { return $this->hasMany(Character::class); } public static function getDrawer($id){ return Drawer::find($id); } }
true
0933abe092f822f6973fdba987ef004e18c12d02
PHP
mcamocci/desapoint_rest
/addUserSubject.php
UTF-8
654
2.59375
3
[]
no_license
<?php require_once("Database.php"); //the login process is executed// prepare(); function prepare(){ if(isset($_POST['user_id']) && isset($_POST['username']) && isset($_POST['subject_id'])){ $database=new Database(); $connection=$database->connection; $user_id=mysqli_real_escape_s...
true
2d6a214e79cdba78abf8b52f77fb717f765af54d
PHP
throwAwayAccount695/hotel_management
/classes/Hotel_model.php
UTF-8
2,937
3.328125
3
[]
no_license
<?php require_once('Database.php'); /** * Model class. */ class Hotel_model{ /** * database connection. */ private $conn; /** * Salt string used at the end of passwords in the password hashing proccess. */ private $salt = "JK23!"; ...
true
594cbecf1ccd9bcfdc2d08081107c45c83376bce
PHP
INTELLITECH-NG/School-Manager-4.0
/application/views/student/show_marks_home.php
UTF-8
4,111
2.578125
3
[]
no_license
<?php //echo "<pre>"; print_r($info3); ?> <section class="content-header"> <section class="content"> <div class="box box-info custom_box"> <div class="box-header"> <h3 class="box-title"> <i class="fa fa-money"> </i> <?php echo $this->lang->line('marks');?> ...
true
94f764a2b2fac215ec0b914e1c596b24beb54d5f
PHP
soipon05/PHPpractice
/www/phppractice/public/13.php
UTF-8
296
3.03125
3
[]
no_license
<?php // 配列 // key value // $sales = array( // "jun" => 200, // "fkoji" => 800, // "dotinstall" => 600, // ); // PHP 5.4 $sales = [ "jun" => 200, "fkoji" => 800, "dotinstall" => 600, ]; var_dump($sales["fkoji"]); //800 $sales["fkoji"] = 900; var_dump($sales["fkojia"]); //900
true
840fd42a0654c0d0ec7211bbb6afd7bd93c840d0
PHP
chinna417/Adldap2
/src/Adldap.php
UTF-8
1,520
2.875
3
[ "MIT" ]
permissive
<?php namespace Adldap; use Adldap\Connections\Manager; use Adldap\Contracts\AdldapInterface; use Adldap\Contracts\Connections\ManagerInterface; use Adldap\Contracts\Connections\ProviderInterface; class Adldap implements AdldapInterface { /** * Stores the current Manager instance. * * @var Manager...
true
7e7301aa122800b6152a2e8ba17d3d54001b48da
PHP
outafrica/cms
/admin/edit_posts.php
UTF-8
5,946
2.625
3
[]
no_license
<h1 class="page-header"> Welcome Admin <small>Author</small> </h1> <ol class="breadcrumb"> <li> <i class="fa fa-dashboard"></i> <a href="../admin">Dashboard</a> </li> <li class="active"> <i class="fa fa-file"></i> Edit Post </li> </ol> <?php if(isset($_GET['post_id'])...
true
9108d5e356343c211f3ca2c4ecd1e7c96d3fcb60
PHP
vitoriaalves86/projeto-integrador-3-semestre
/php/postDAO.php
UTF-8
953
2.65625
3
[]
no_license
<?php $method= $_GET['method']; switch($method){ case 'delete' : $parameter= $_GET['parameter']; delete($parameter); break; case 'update' : //$parameter= $_GET['parameter'];s $parameter= $_GET['parameter']; $parameter1= $_GET['parameter1']; update($pa...
true
0f7baa0427453dbd6f7f1ee83c53fb37fb869c1d
PHP
unisys12/palamon
/src/Destiny/Requests/TalentNodes.php
UTF-8
509
2.546875
3
[]
no_license
<?php namespace Palamon\Destiny\Requests; class TalentNodes { private const TALENT_NODES = 'http://www.bungie.net/Platform/Destiny/Explorer/TalentNodeSteps'; public function getTalentNodes($params) { $client = new \GuzzleHttp\Client(['headers' => ['X-API-KEY' => $_ENV['BUNGIE_KEY']]]); ...
true
7edb1bf2622b4d54679c2d915c2d9157133afac4
PHP
tectronics/xerxes-portal
/commands/collections/RenameUserCategory.php
UTF-8
2,356
2.9375
3
[]
no_license
<?php /** * Rename a user-created category or subcategory. Expects request param * 'new_name', subject=>normalized-name, and possibly subcategory=>id. If * subcategory is present, subcategory will be renamed. * * Redirects back to 'return' request param, or user created category * edit page. * ...
true
b74b6942c8e85df555bb9d5e7fdd6ce64d226b25
PHP
raf187/pro4_Amorim
/App/Model/database.php
UTF-8
733
2.9375
3
[]
no_license
<?php namespace App\Model; use \PDO; class DataBase{ private $host; private $user; private $passW; private $dbName; private $charset; public function connect(){ $this->host = 'localhost'; $this->user = 'root';//'rafaueuu_Forteroche'; $this->passW = '';//'s9SEhKoz4xHpG...
true
fad9d672ab4c4685d50af629e2a0c013e62cee2a
PHP
Dhinihan/api-zend-doctrine-example
/module/Infrastructure/src/Repository/AbstractDoctrineRepository.php
UTF-8
1,811
2.765625
3
[]
no_license
<?php namespace Infrastructure\Repository; use Doctrine\ORM\EntityManager; use DoctrineModule\Paginator\Adapter\Selectable; use Infrastructure\Exception\EntityNotFoundException; use Infrastructure\Exception\InvalidEntityType; use Library\Entity\EntityInterface; use Zend\Paginator\Paginator; abstract class AbstractDo...
true
b995527607c633eab2b17fb8f0d88e808ef3b550
PHP
LuisNet7/PHP0ouPro
/phpnivel1/06aula/aula3.php
UTF-8
538
2.78125
3
[]
no_license
<?php /* SOLID O - Open-Closed Principle (princípio Aberto-Fechado) */ interface Remuneravel { public function remuneracao(); } class ContratoClt implements Remuneravel { public function remuneracao(){} } class Estagio implements Remuneravel { public function remuneracao(){} } class Contratopj implement...
true
9624998ed25c55ea2d4e63ce1e7f4600419f1cbd
PHP
lcallarec/Fishery
/src/Fishery/Http/ApiResponse.php
UTF-8
666
2.53125
3
[ "MIT" ]
permissive
<?php namespace Lc\Fishery\Http; use Lc\Fishery\Schema\EntityManager; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; /** * Class Container * * @package Lc\Fishery * * @author Laurent Callarec <l.callarec@gmail.com> */ class ApiResponse { public function ...
true
8b1a796e88ec88a606bbc69eb04146b3c4d38737
PHP
FrancisVarga/processus
/core/Processus/Interfaces/InterfaceDto.php
UTF-8
372
2.59375
3
[]
no_license
<?php /** * @author fightbulc * * */ namespace Processus\Interfaces { interface InterfaceDto { /** * @abstract * * @param $data */ public function setData($data); /** * @abstract * * @param $rawData */ ...
true
bd9147982bf195b789962cc0f383a3d01b683cd1
PHP
surayborys/ishop
/controllers/UserController.php
UTF-8
4,280
2.921875
3
[]
no_license
<?php namespace Controllers; use Models\User; use Models\SignUpForm; use Models\LoginForm; use Models\Brand; use Models\Category; use Controllers\BaseController; /** * User Controller * * @author suray */ class UserController extends BaseController { public $mainCategories; public $brands; public f...
true
335cd2fa3002a8ce51f5d74b7c4de4004577c30b
PHP
hamedouldhamou/WebDevProj
/viewcart.php
UTF-8
3,633
2.71875
3
[]
no_license
<?php session_start(); include_once('db.php'); //Go to home page if no user is logged in if (isset($_SESSION['username']) == "") { header("Location: login.php"); } $total = 0; $_SESSION['total'] = $total; ?> <!DOCTYPE html> <html> <head> <title>View Cart</title> <link rel="stylesheet" href="style.css"/...
true
25bb4558e64f717f4f842984264c120e9efa330a
PHP
liquuid/experimentos
/phool/index.php
UTF-8
3,357
2.53125
3
[]
no_license
<?php include"conexao.php"; $ip = $_SERVER['REMOTE_ADDR']; $sql = mysql_query("SELECT * FROM pergunta"); while ($linha = mysql_fetch_array($sql)){ $pergunta = $linha['pergunta']; } ?> <?php echo $pergunta ?> <form name="form1" method="get" action="processa.php"> <?php $sql = mysql_query("SELECT * FROM respo...
true
02cd3ad04e94c15eb2329969f5245b82d1abf2d4
PHP
bnjunge/phpTutorials
/Tutorial 7 - Operation on Variables - Arithmetic/exponent7.php
UTF-8
243
3.21875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title> </title> </head> <body style="font-size: 4em;"> </body> </html> <?php // exponent // print(2^7); //print(2*2*2*2*2*2*2); print("2<sup>7</sup> is :".(2**7)); //Quiz: x^2 + 5x + 3 = ? given x = 6 ?>
true
565d80249a40e8750f6458ea7d0f31889f6dc62e
PHP
novuso/system
/src/Exception/ErrorException.php
UTF-8
625
3.015625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Novuso\System\Exception; use Throwable; /** * Class ErrorException */ class ErrorException extends RuntimeException { protected array $errors; /** * Constructs ErrorException */ public function __construct( string $message = '', array...
true
ba65cb1c3f4f19dcd42dc5f9357a8b5bb652b650
PHP
Fady07/S7ab-l-jame333
/admin/sous_categorie.php
UTF-8
1,982
2.59375
3
[]
no_license
<?php $title= 'categorie'; include 'includes/header.php'; include 'includes/connect.php'; include 'includes/navbar.php'; if(isset($_POST['submit'])) { $categorie = mysql_real_escape_string(htmlentities($_POST['categorie'])); $sous_cat = mysql_real_escape_string(htmlentities($_POST['nom_sous_cat']));...
true
d63952fb9db3aeeaf5dd74928032cb4a15de7951
PHP
utaminuk/design_pattern
/Decorator/php/SideBorder.php
UTF-8
1,502
3.359375
3
[ "MIT" ]
permissive
<?php namespace Decorator; require_once "Border.php"; require_once "Display.php"; /** * 左右にのみ飾り枠をつけるクラス * * @access public * @extends Border * @author ku2ma2 <motorohi.tsumaniku@gmail.com> * @copyright ku2ma2 */ class SideBorder extends Border { private $borderChar; /** * コンストラクタ * * @a...
true
ee52a407044bec7660e90d32fde1dc5266cef0d6
PHP
pcodo/pmvc
/conf/Intervenant.class.php
ISO-8859-1
1,772
2.6875
3
[]
no_license
<?php class Intervenant{ var $db; var $data=array('id'=>0); function __construct($id_intervenant){ $this->db = new DataBase(); if(is_numeric($id_intervenant)&&$id_intervenant>0) { $this->data = $this->db->queryOneRecord('select inter.*, p.designation poste from `intervenant` inter left join `poste`...
true
914aa6b89b443bf4937c7be80b36d926d0061d0f
PHP
Jesdax/temanureva
/src/Service/BirdsManager.php
UTF-8
1,208
2.71875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: rozenn * Date: 22/08/18 * Time: 16:05 */ namespace App\Service; use App\Entity\Bird; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; c...
true
d333df9ddff7aa4d097c17e1ae56b8ae1b681553
PHP
FerrrazSenpai/ProjetoInformatico
/testServer/app/Http/Controllers/LocationController.php
UTF-8
1,672
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Location; use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\Support\Facades\DB; class LocationController extends Controller { public function location(Request $request) { $data = new Location; $data->latitude = $request...
true
6601a522b5cdc2ff6577d96994d56203e409ae26
PHP
discoball294/riverstone
/database/seeds/ReservationSeeder.php
UTF-8
1,238
2.75
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class ReservationSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $transfer = ['bca','mandiri','bni','bri']; $faker = Faker\Factory::create('id_ID'); foreach (range(1,300) a...
true
081b3cc3930b1562690d976339c1ab59729a40b2
PHP
DeDmytro/ESTO
/app/Services/UserTransactionsService.php
UTF-8
1,486
2.984375
3
[]
no_license
<?php namespace App\Services; use App\Models\Transaction; use App\User; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Model; class UserTransactionsService { /** * Current user * @var User */ protected $user; /** * Transaction query * @var Builder ...
true
bfe8d1dce46a551c08d203c9b7440acb652f39b4
PHP
HelisLT/eneba-client
/src/Denormalizer/Object/PageInfoDenormalizer.php
UTF-8
634
2.640625
3
[]
no_license
<?php declare(strict_types=1); namespace Helis\EnebaClient\Denormalizer\Object; use Helis\EnebaClient\Denormalizer\DenormalizerInterface; use Helis\EnebaClient\Model\Relay\Connection\PageInfo; class PageInfoDenormalizer implements DenormalizerInterface { public function denormalize($data, string $class): PageInf...
true
0ffd30184563f270639a9238e8d4c5229a9fda30
PHP
Pnamy-Mendes/Temp
/src/AppBundle/Controller/ClubeController.php
UTF-8
3,808
2.515625
3
[]
no_license
<?php namespace AppBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\R...
true
fb773e8ad0423f3e54acbaa27a8de498aa42536c
PHP
anubissmile/foodsystem
/database/seeds/DatabaseSeeder.php
UTF-8
8,637
2.640625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\User; use App\Ingredient; class DatabaseSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $this->call(IngredientTableSeeder::class); } } class IngredientTableSeeder extends Seeder...
true
8e2ca35614a947a4c9281ac3077be67e76eb3205
PHP
SCS-Labs/eramba_community
/app/View/Helper/UxHelper.php
UTF-8
8,203
2.71875
3
[]
no_license
<?php App::uses('AppHelper', 'View/Helper'); App::Uses('CakeNumber', 'Utility'); App::Uses('CakeTime', 'Utility'); App::uses('CakeSession', 'Model/Datasource'); class UxHelper extends AppHelper { public static $infoFlashTimeout = 15000; public $helpers = array('Html', 'Text', 'Flash', 'Content', 'FieldData.Fi...
true
7dfec195cb513056c001a0c724bd5737398ea4bd
PHP
arturoverbel/polimorfismo_php
/Cuadrado.php
UTF-8
330
2.828125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: artur * Date: 17/12/2017 * Time: 1:34 PM */ class Cuadrado extends Figura_equilatero{ public function perimetro(){ return "Cuadrado, perímetro: " . (4*$this->lado); } public function area(){ return "Cuadrado, área: " . ( pow($this->lado,2) ); ...
true
f6bd6417691e761ac0728d26ffd2a0e9fe21473a
PHP
SkyllerXBruce/aleph
/application/views/admin_sistema/show_users.php
UTF-8
986
2.546875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<!-- Titulo de los Usuarios registrados --> <h3>Lista de Usuarios Registrados</h3> <!-- Creamos la Tabla --> <table class="table"> <!-- Titulo de las Columnas con Estilo para la Tabla --> <thead class="thead-dark"> <tr> <th scope="col">Id</th> <th scope="col">Usuario</th> <th scope="col">Correo...
true
bc06f617e63ea1b28c7a1b253c968ca936b16008
PHP
IrfanRajput/Book-Record-Managment-System
/deleteform.php
UTF-8
3,133
2.765625
3
[]
no_license
<?php session_start(); require_once('db.php');?> <?php $query = "SELECT * FROM book"; $result = mysqli_query($connection,$query); $num = mysqli_num_rows($result); // if($row = mysqli_num_rows($result)){ // echo "<pre>"; // print_r($row); // }else{ // mysqli_con...
true
d21e74e603b7a7a079c6edad1bc15d77356d5083
PHP
Msagusa/bdd_projects
/chits-master/chits_query/pdf_reports/dental_quarterly.php
UTF-8
11,798
2.9375
3
[]
no_license
<?php session_start(); ob_start(); require('./fpdf/fpdf.php'); $db_conn = mysql_connect("localhost","$_SESSION[dbuser]","$_SESSION[dbpass]"); mysql_select_db($_SESSION[dbname]); // Comment date: Jan 05, 2010, JVTolentino // The following are member functions of the PDF class. These functions are need...
true
e730c8333074d8fd7df10f6e958b0740ee5b8a43
PHP
tarnawski/ratebtn-api
/src/Domain/RatingRepositoryInterface.php
UTF-8
225
2.5625
3
[]
no_license
<?php namespace App\Domain; use App\Domain\Rating\Rating; use App\Domain\Vote\Url; interface RatingRepositoryInterface { public function getByUrl(Url $url): Rating; public function update(Rating $rating): void; }
true
cccdf668b09c274d196a6e9d843b78fed10f974d
PHP
danimoncerro/CursPHP
/Curs33/laravelnew/nou/View/layout-guest.php
UTF-8
668
2.578125
3
[ "MIT" ]
permissive
<!DOCTYPE html> <html> <title>Produse disponibile.</title> <body> <h1>Produse disponibile.</h1> <p>This is a paragraph.</p> <!-- Afiseaza cu foreach produsele folosind <table> --> <table class="table table-bordered table-striped" border="1" width="800"> <tr> <th>Tip</th> <th>Soi</th> <th>Culoare</t...
true
7dfdf6ea8b55f4c2edd984b83b1b9657deef2f18
PHP
borodulin/FastORM
/tests/Domain/Entity/Track.php
UTF-8
3,314
2.75
3
[]
no_license
<?php declare(strict_types=1); namespace Borodulin\ORM\Tests\Domain\Entity; class Track { /** * @var int */ private $trackId; /** * @var string */ private $name; /** * @var int|null */ private $albumId; /** * @var int */ private $mediaTypeId; ...
true
76c39db4e8164badf2c16827bdff774bf1aa5911
PHP
jphp-group/jphp-telegram-bot-api
/src/telegram/query/TGetFileQuery.php
UTF-8
718
2.65625
3
[ "Apache-2.0" ]
permissive
<?php namespace telegram\query; use php\lib\str; use telegram\object\TFile; use telegram\TelegramBotApi; class TGetFileQuery extends TBaseQuery{ public function __construct(TelegramBotApi $api){ parent::__construct($api, 'getFile', false); } /** * @return TGetFileQuery */ public f...
true
905da210da80de1fc90bd809df8a699ca5b75078
PHP
drissnait/PHP_code_parse
/app/parser/ast.php
UTF-8
2,285
2.984375
3
[ "MIT" ]
permissive
<?php require_once "../../vendor/autoload.php"; use PhpParser\Error; use PhpParser\NodeDumper; use PhpParser\ParserFactory; /**** Import for the traverser ****/ use PhpParser\Node; use PhpParser\Node\Stmt\Function_; use PhpParser\NodeTraverser; use PhpParser\NodeVisitorAbstract; use PhpParser\PrettyPrinter; header('Con...
true
a1589b799d4276b3beec6bc5b8ecbbf2136248c9
PHP
shezz77/travellers-inn
/app/Models/Role.php
UTF-8
2,109
2.625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; /** * @property array|string description * @property array|string role_name */ class Role extends Model { use SoftDeletes; /** * The attributes that should be mutated to dates. * ...
true
2b641f6c1ad6fa9b1fc0097995c6702c1ebb43d4
PHP
reddigger/laravel_sarcina-1
/app/Http/Controllers/CountryController.php
UTF-8
708
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Country; use Illuminate\Http\Request; class CountryController extends Controller { public function showCountriesList() { $country = Country::all(); return view('country/countries_list', ['countries' => $country]); } public function showAddF...
true
862a00b08f20b9c1658e49a7215096c5bb698465
PHP
Atsuko0914/new_booktree
/app/Http/Controllers/ArticleController.php
UTF-8
6,431
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Article; use App\Http\Requests\ArticleRequest; use Illuminate\Http\Request; use Intervention\Image\Facades\Image; // interventionimageを使う(画像のリサイズ) use Illuminate\Support\Facades\Storage; // Storageファサードを使う(ユーザー画像を保存,削除) class ArticleController extends Controller { ...
true
82b05eaa0d16e9ed43e53d5c249584b945b6d4d9
PHP
ciptase/SemPelMas
/form/ganti.php
UTF-8
9,687
2.59375
3
[]
no_license
<?php require_once('../../Connections/koneksi.php'); ?> <?php if (!isset($_SESSION)) { session_start(); } $MM_authorizedUsers = ""; $MM_donotCheckaccess = "true"; // *** Restrict Access To Page: Grant or deny access to this page function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { // Fo...
true
bcb009167f1942e2a3d5a8fac7595f91a134ed9b
PHP
inverse/termin
/src/Filter.php
UTF-8
613
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Inverse\Termin; use Inverse\Termin\Config\Rules\RuleInterface; class Filter { private array $rules; /** * @param RuleInterface[] $rules */ public function __construct(array $rules) { $this->rules = $rules; } public function applyRu...
true
1419d9baf86628848135e14e1010cfe66ec39557
PHP
felipemarques/firefly-iii
/app/Import/Converter/TagsComma.php
UTF-8
2,606
2.703125
3
[ "MIT" ]
permissive
<?php /** * TagsComma.php * Copyright (C) 2016 thegrumpydictator@gmail.com * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ declare(strict_types = 1); namespace FireflyIII\Import\Converter; use FireflyIII\Repositories\Tag\TagRepositor...
true
e9fef0b9828f78d9edbddbada4dff141fba166f0
PHP
sheluvmateo/n-methm
/első/pages/fetch.php
UTF-8
1,402
2.625
3
[]
no_license
<?php if (!isset($_SESSION["USER:LOGGED"])) { Redirect("login", false); } if ($_SESSION["USER:DATA"]["admin"] <= 7) { Redirect("dash", false); } ?> <?php if (!isset($_SESSION["USER:LOGGED"])) { Redirect("login", false); } if (isset($_SESSION["USER:DATA"])) { $account_data = $_SESSION["USER:DATA"]; $ch...
true
97afac6227cb2cb130b01dceb7df908261db1a38
PHP
Alex-Serky/Back_End_PHP
/.history/Apprendre le PHP/2MiniProjet/blog/clean_20200731193343.php
UTF-8
638
2.734375
3
[]
no_license
<?php require_once '../elements/cnx.php'; /** * Gérer les transactions qui permettent de faire plusieurs requêtes les unes derrières les autres. * Le système de transaction va être très intéressant lors des suppressions, des insertions croisées à faire. */ $pdo->beginTransaction(); $pdo->exec('UPDATE posts SET name ...
true
42ce9da206c1d01928abe913e7e0b906eedc0b4a
PHP
takuyashimmen/gs_php2_shimmen22
/question.php
UTF-8
5,437
2.609375
3
[]
no_license
<?php //1. DB接続 try { //ID MAMP ='root' //Password:MAMP='root',XAMPP='' $pdo = new PDO('mysql:dbname=gs_db; charset=utf8;host=localhost','root','root'); } catch (PDOException $e) { exit('DBConnectError:'.$e->getMessage()); //できなかったときにエラーメッセージ出す } //2.質問取得SQL作成 $stmt = $pdo->prepare("SELECT * FROM ogiri_quest...
true
702c8619b5a6c3b7937dcb4aa7d71f40c108000a
PHP
diegobrbosa/hotel_dasboard
/config/login.php
UTF-8
1,358
2.65625
3
[ "MIT" ]
permissive
<?php //inclui o arquivo de inicialização require 'conexao.php'; //resgata váriaveis do formulário $cpf = isset($_POST['cpf']) ? $_POST['cpf'] : ''; $senha = isset($_POST['senha']) ? $_POST['senha'] : ''; if (empty($cpf) || empty ($senha)){ //echo "<script>window.location='../index.php';alert('Informe CPF e SENH...
true
acb5e4e153e20e2467595d1c78fcfa5c9243a83c
PHP
TheBaldWonder/itc250-p4
/feed_add.php
UTF-8
2,990
2.640625
3
[]
no_license
<?php /** * feed_add.php allows users to add the database new RSS feeds to use with feed.php * * @author Michael Rodgers <michael.rodgers312@gmail.com> * @version 2019-03-19 * @link http://michaelrodgers.azurewebsites.net/wn19/RSS/feed_add.php * @ * @see feed.php * @see config_inc.php * @todo none...
true
4913a5760123de0b9289caec462a561475969ed7
PHP
fiando/simple-sim-hotel
/simho/content/pelanggan.php
UTF-8
3,606
2.578125
3
[ "MIT" ]
permissive
<?php $pelanggan = mysqli_query($connect, "SELECT * FROM pelanggan ORDER BY idpelanggan DESC"); ?> <?php if(isset($_POST['submit'])) { $nama = $_POST['nama']; $no_ktp = $_POST['no_ktp']; $alamat = $_POST['alamat']; $telepon = $_POST['telepon']; $result = mysqli_query($connect, "INSERT INTO pel...
true