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
0b7044bf765d59e31e920b4cee538e0076203318
PHP
JohnGanem/eve-mile
/src/Common/ValueObject/IntValue.php
UTF-8
742
2.796875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Mile\Common\ValueObject; use Assert\Assert; abstract class IntValue extends CommonValueObject { private int $value; final public function __construct(int $value) { $this->baseValidation($value); $this->validate($value); $this->value = $...
true
fb58697911ba93e66ea029e2423bf4091287315e
PHP
ryanrishi/coen161-edcamps
/public/activities.php
UTF-8
1,451
2.6875
3
[]
no_license
<?php require_once("../resources/config.php"); require_once(TEMPLATES_PATH . "/header.php"); ?> <div class="container container-fluid"> <h1>Activities</h1> <hr> <div class="row"> <p>We offer a wide range of indoor and outdoor activities.</p> <p>To get a taste of what we offer, check out some examples such...
true
0cfe73fb924e0a935ecb472d6c0aa343130671c7
PHP
DarkUliana/stayalive
/database/migrations/2018_09_28_115725_create_ship_stuffs_table.php
UTF-8
688
2.59375
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateShipStuffsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('ship_stuffs'...
true
4918d45bcad8053b8a761049ed2a213ce00c89c9
PHP
techotron/stats
/index.php
UTF-8
5,769
2.796875
3
[]
no_license
<html> <head> <title>Stats Site</title> <link type="text/css" rel="stylesheet" href="styles.css"/> </head> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"><META http-equiv="refresh" content="5"> <body> <?php $myServer = "SQL SERVER NAME"; $myUser = "DBUSER"; $myPass = "DBPASS"; $myDB = "DATABASE"...
true
bcc13850ba25f3577f0e09d09d88cd3919c75468
PHP
Romakita/JavalyssLeckye
/plugins/expomanager/inc/class_exposition.php
UTF-8
25,994
2.796875
3
[]
no_license
<?php /** * class Exposition **/ class Exposition extends Post{ const PRE_OP = 'exposition.'; /** * Exposition.TABLE_NAME -> String * Nom de la table gérée par la classe. **/ const TABLE_NAME = 'exposition'; /** * Exposition.PRIMARY_KEY -> String * Clef primaire de la table Exposition.TABLE_NAME gérée p...
true
04e1127c5ad8c2077f7d358155d4721941cc0456
PHP
sirgalleto/import.bool
/templates/lgc/servicio.php
UTF-8
2,458
2.828125
3
[]
no_license
<?php class servicio(){ private $id; private $pedido; private $infopedido; private $precioArticulo; private $precioServicio; private $precioTotal; private $fechaPedido; private $fechaFinal; private $otraInfo; private $cliente_id; private $administrador_id; pr...
true
81fe34a2a533df2c9a676e8a9468ec4ba8009a0d
PHP
luga-ev/website
/html/vortrag.php
UTF-8
1,636
2.78125
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Vorträge übernehmen</title> </head> <body> <h1>Vorträge übernehmen</h1> <pre> <?php ini_set('Display-Errors', 'On'); $myVortrag = new vortrag(); class vortrag { private $removable = array( 'Pinguin', 'corner_bl', 'corner_br', 'corner_tl', ...
true
70b1e17414a8c050b2c7cea82befc982b544f636
PHP
Tkmanga/DH
/2PHP7/PracticaPHP02/php2.php
UTF-8
6,532
3.796875
4
[]
no_license
<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title></title> </head> <body> <?php // Mostrar la tabla de multiplicar del 2 utilizando un for. // for ($i=1; $i <= 20 ; $i++) { // if (($i%2)==0) { // echo $i; // } // } //Un b...
true
75f67246d369326d512f0dfff8a847a0341723f7
PHP
EmonMajumder/All-Code
/PHP/Lab 2/Part_B/FahrenheitConversion.php
UTF-8
190
4.09375
4
[]
no_license
<?php for ($i=0; $i<=100; $i++) { $celsius = round((5*($i-32))/9); echo "$i degree(s) of fahrenheit equals $celsius degrees of celsius"; echo "<br>"; } ?>
true
1426ec540456f6ca7cdca68a5ffa5e6871e44ea9
PHP
CyrilDenoyelle/php-exercise
/loop/exercice2.php
UTF-8
267
3.15625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <?php echo "<br /> Exercice 2 <br />"; $j = 0; $k = random_int(1, 100); while($j < 20){ echo $j*$k . "<br />"; $j++; } ?> </body> </html>
true
03ef054a211438fea84aa34e60a34eab5e5f74a5
PHP
Color-Kat/colorShopBack
/core/classes/Chat.php
UTF-8
8,458
3.015625
3
[]
no_license
<?php namespace ColorCore; require_once('connect.php'); class Chat extends Connect{ // получить соединение с бд protected $conn; private $buyer; private $seller; private $goodId; public function openChat($buyer, $seller, $goodId) { $conn = parent::co...
true
4f3f2930c9c2984dad0a1650383d5d40fae993bc
PHP
vaivaivai/rent-collector
/src/AppBundle/Request/TomitaRequest.php
UTF-8
627
2.921875
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Request; use GuzzleHttp\Psr7\Request; class TomitaRequest { protected $client; protected $url; /** * TomitaRequest constructor. * @param Client $client * @param string $url */ public function __construct(Client $client, string $url) { $this->...
true
80ad177fe0decf1d502b1f4baa3f99c77c624b7b
PHP
mpyw/laravel-mysql-system-variable-manager
/src/SystemVariableAssigner.php
UTF-8
4,880
2.875
3
[ "MIT" ]
permissive
<?php namespace Mpyw\LaravelMySqlSystemVariableManager; use Closure; use LogicException; use Mpyw\LaravelMySqlSystemVariableManager\Replacers\BooleanReplacerInterface; use Mpyw\LaravelMySqlSystemVariableManager\Replacers\FloatReplacerInterface; use Mpyw\LaravelMySqlSystemVariableManager\Replacers\IntegerReplacerInter...
true
ee4eae8efc2ce12cc0a9c193a8621ffa5493949a
PHP
maboiteaspam/slim-test
/local/C/Php/Php.php
UTF-8
3,439
2.96875
3
[]
no_license
<?php namespace C\Php; use C\Renderer\RendererInterface; use C\Symbol\SymbolResolverInterface; class Php implements \ArrayAccess, RendererInterface { /** * Default view variables * * @var array */ protected $defaultVariables = []; /** * @var SymbolResolverInterface */ pr...
true
aa58b2c5aaa0ddb8d8bb4428ec67f8a0172564b0
PHP
romain-gautier/cours-php
/exercices/exercice4.php
UTF-8
890
3.921875
4
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Les variables</title> </head> <body> <p> Le but de l'exercice est d'afficher une variable <br> <?php $maVariable = 13; if ($maVariable >= 0 && $maVariable <= 5) { echo 'je commence juste...
true
7e5d2ab063762cec14024419e8faf438bdc51f3d
PHP
riponahmed2201/student-information-in-php
/update.php
UTF-8
3,974
2.859375
3
[]
no_license
<?php session_start(); include'dbConnection.php'; $id = $_GET['id']; $singleQuery = "SELECT * FROM `students` WHERE id=$id"; $query = mysqli_query($conn,$singleQuery); $resultData = mysqli_fetch_array($query); // echo '<pre>'; // var_dump($resultData); // exit; if(isset($_POST['d...
true
d8af425a324f00cab0b29cc1e2f61c347f5c8800
PHP
cbccb8/expweb-v1.0
/corephp/bases/Model.class.php
UTF-8
4,940
2.828125
3
[]
no_license
<?php //数据库操作类 //数据库类Model的定义 class Model{ protected $tabname; //表名 protected $link; //数据库的连接 protected $pk = "id"; //当前表的主键名 protected $fields=array(); //当前表的字段信息 protected $where=array(); //封装where条件属性 protected $order=null; //排序条件 protected $limit=null; //分页条件 protected $field=null; ...
true
67f87e6b1772ad8bcd279503617af25093e2f5d0
PHP
afzalazeez09/WorksManagement
/protected/models/DutyStep.php
UTF-8
3,797
2.546875
3
[]
no_license
<?php /** * This is the model class for table "tbl_duty_step". * * The followings are the available columns in table 'tbl_duty_step': * @property integer $id * @property string $action_id * @property string $auth_item_name * @property string $description * @property integer $lead_in_days * @property string $l...
true
f7f159be296803905c703dfe491005af704cfbc3
PHP
Parkerps/Project467
/update-order.php
UTF-8
2,252
2.609375
3
[]
no_license
<?php //finished file include('Session.php'); include('Config.php'); if(count($_POST)>0) { mysqli_query($db,"UPDATE PurchaseOrder set order_id='" . $_POST['order_id'] . "', customer_id='" . $_POST['customer_id'] . "', item='" . $_POST['item'] . "', order_amt='" . $_POST['order_amt'] . "' ,discount='" . $_POST['di...
true
d3c106a4ebfebbb01af39a9f75c5a5139a8b7c1a
PHP
filozofer/EasyAdminTranslationsBundle
/Entity/Translatable.php
UTF-8
488
2.65625
3
[ "MIT" ]
permissive
<?php namespace EasyAdminTranslationsBundle\Entity; /** * Class Translatable * Allow to retrieve all public and protected when using on a subclass outside of this subclass * @package EasyAdminTranslationsBundle\Entity */ abstract class Translatable { /** * Get all PUBLIC and PROTECTED params with theirs...
true
bdb4a9efe408fa0e02c92fabb2d8c17ecdb27370
PHP
Hein-Z/CRUD
/add.php
UTF-8
1,576
2.53125
3
[]
no_license
<?php require('crud.php'); $pdo=new dataBase(); $pdo->add($_POST,$_FILES); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstra...
true
626a49cc5fbca74634e526c9fffc3614c4adb4d0
PHP
raheemdawar/twitter-trending-topics
/core/sources/twitter.php
UTF-8
7,078
2.65625
3
[ "MIT" ]
permissive
<?php // If you're trying to run this script from a browser, I'll redirect you to // the homepage. // This will vener happen since this script isn't in the available routes. if ( !M_CLI ) { // Prevent executing from web SL\Utilities\Http::redirect( M_BASE_URL ); } $start = time(); // Do not create a new ru...
true
66f245dd9cae9d1b1cc256e8a2d1194e53f5feb8
PHP
Bijirita/HERE
/controller/functions/create.php
UTF-8
2,922
2.71875
3
[]
no_license
<?php //===including html page with defined vars for $_POST=====// //include 'check.php'; // function create ($route) { // global $conn; include '../DB/queries/insert.php'; include '../DB/queries/compare.php'; // if ($route == 'createAdmin') { // $username = $_POST['user']; // $pa...
true
289ae98bc887b6aee166f5bc9673b80faee802ca
PHP
ylorant/twitch-php-client
/tests/API/Kraken/KrakenStreamsTest.php
UTF-8
3,241
2.71875
3
[ "MIT" ]
permissive
<?php namespace TwitchClient\Tests\API\Kraken; use PHPUnit\Framework\TestCase; use TwitchClient\API\Kraken\Kraken; use stdClass; use Faker; use TwitchClient\Tests\LoadConfigTrait; class KrakenStreamsTest extends TestCase { use LoadConfigTrait; /** * Tests to get stream info for a channel that is suppose...
true
4f355228afb8357b10163b1f9bb8034f51b7d931
PHP
HananMohammed/Future-Academy-institute
/app/Http/Requests/Admin/LessonRequest.php
UTF-8
1,898
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests\Admin; use Illuminate\Foundation\Http\FormRequest; class LessonRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * G...
true
d454f7d9df13cd74e8e249b0228c91b6131370f9
PHP
samjf/silverstripe4-docker-example
/framework/src/i18n/i18nTextCollector_Writer_RailsYaml.php
UTF-8
1,692
2.78125
3
[ "CC-BY-3.0", "BSD-3-Clause" ]
permissive
<?php namespace SilverStripe\i18n; use SilverStripe\Assets\Filesystem; use Symfony\Component\Yaml\Dumper; use LogicException; /** * Writes files compatible with {@link i18nRailsYamlAdapter}. */ class i18nTextCollector_Writer_RailsYaml implements i18nTextCollector_Writer { public function write($entities, $locale...
true
3e8dc5c2c1065fb6732f417deef708e90c62cdbd
PHP
sumitdhiman1/yii
/backend/models/SignupForm.php
UTF-8
1,139
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\models; use yii\base\Model; use common\models\record; /** * ContactForm is the model behind the contact form. */ class SignupForm extends Model { public $name; public $email; public $password; public $gender; public $Hobbies; public $country; public $Address; ...
true
6d4416af8e0d0e4294561603990fca3b8e07ed98
PHP
symfony/symfony
/src/Symfony/Component/Config/Tests/Builder/Fixtures/AddToList/Symfony/Config/AddToList/MessengerConfig.php
UTF-8
2,650
2.609375
3
[ "MIT" ]
permissive
<?php namespace Symfony\Config\AddToList; require_once __DIR__.\DIRECTORY_SEPARATOR.'Messenger'.\DIRECTORY_SEPARATOR.'RoutingConfig.php'; require_once __DIR__.\DIRECTORY_SEPARATOR.'Messenger'.\DIRECTORY_SEPARATOR.'ReceivingConfig.php'; use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException; ...
true
02137ffe7dc8a99fd54a3147f297839dcbb29edb
PHP
khovisfersa/edrctfghbjnk
/add_curso.php
UTF-8
538
2.734375
3
[]
no_license
<html> <head>adicionar curso</head> <body> Nome do curso:<br> <input type = "text" name = "nome"> <input type = "submit" name ="adicionar"> <?php $conn = new mysqli("localhost", "root",'','cvdd'); if($conn->connect_error) die("connection failed".mysqli_connect_error()); $sql...
true
7b6d4e5d19a87ba75e5be76c23899e92be8070e9
PHP
ahundiak/zayso2010
/osso2012x/src/Zayso/CoreBundle/Component/OpenidRpx.php
UTF-8
1,323
2.609375
3
[]
no_license
<?php namespace Zayso\CoreBundle\Component; use Symfony\Component\HttpFoundation\Request; class OpenidRpx { public function __construct(Request $request, $rpxApiKey) { $this->request = $request; $this->rpxApiKey = $rpxApiKey; } public function getProfile() { $token = $this-...
true
5249bf1b43f235ce3fb89e7b2b1a48ef43e40dc6
PHP
red-balloon-web/rb_biling
/inc/class-client.php
UTF-8
6,096
2.71875
3
[]
no_license
<?php class Client { // Define properties // Constructor function function __construct($id = null) { // if there is an id if ($id) { $this->id = $id; // set form fields from database foreach ($this->properties as $property => $values) { ...
true
4ea420bce69cc52d6d09a6b594028c032a929484
PHP
csapplatech/csapp
/application/models/Advising_appointment_model.php
UTF-8
10,128
2.90625
3
[]
no_license
<?php class Advising_appointment_model extends CI_Model { private $advisingAppointmentID = null; private $advisingScheduleID = null; private $startTime = null; private $endTime = null; private $advisingAppointmentStateID = null; private $studentUserID = null; // Constants to represent the various ...
true
76e55a0987650178ad2b794cfca663e956536a32
PHP
wgx954418992/rapid-php
/vendor/wgx954418992/rapid-framework/src/rapidPHP/modules/server/classier/interfaces/task/SwooleTask.php
UTF-8
567
2.734375
3
[ "MIT" ]
permissive
<?php namespace rapidPHP\modules\server\classier\interfaces\task; use rapidPHP\modules\server\classier\interfaces\server\SwooleServer; use rapidPHP\modules\server\classier\interfaces\Task; abstract class SwooleTask extends Task { /** * TaskInterface constructor. * @param SwooleServer $swooleServer ...
true
0b757fa86edafea6aa0042780bc70dfe23f734d2
PHP
spacemudd/LaravelMetaTags
/src/MetaTags/Concerns/ManagePackages.php
UTF-8
1,706
2.71875
3
[ "MIT" ]
permissive
<?php namespace Butschster\Head\MetaTags\Concerns; use Butschster\Head\Contracts\MetaTags\PlacementsInterface; use Butschster\Head\Contracts\Packages\PackageInterface; use Butschster\Head\Contracts\WithDependencies; trait ManagePackages { /** * @var array */ private $packages = []; /** * ...
true
8377fe40f4cdc16a371bc98ef686055f0da1ad96
PHP
sandervanmook/PHPDesignPatterns
/Decorator/Soy.php
UTF-8
831
3.390625
3
[]
no_license
<?php declare(strict_types=1); namespace Code\Decorator; class Soy extends CondimentDecorator { public $beverage; public function __construct(Beverage $beverage) { $this->beverage = $beverage; } public function getDescription(): string { return $this->beverage->getDescriptio...
true
b41ed84bc6ff72f06fcf75650ce194e6efcb8e4d
PHP
varunvkudachi/vvklinio
/vvklinio/app/classes/Main.php
UTF-8
589
3.3125
3
[]
no_license
<?php namespace App\Classes; class Main { public function execute() { for ($i = 1; $i <= 100; $i++) { $result = new Result; $display = new Display; $num_check = new Check; $result->number = $i; $result->three_divisible = $num_check-...
true
24fdb2a5c6fda2ce7ab35be36ccecfbd9e5a105f
PHP
yura-sutnuk/guestbook
/src/Controller/guestbookController.php
UTF-8
12,945
2.5625
3
[]
no_license
<?php namespace App\Controller; use App\Entity\GuestBookTable; use Symfony\Component\Form\Extension\Core\Type\ButtonType; use Symfony\Component\Form\Extension\Core\Type\FileType; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Bundle\Fram...
true
db93bd391100ce0c1e813a5d4015a553390eb66a
PHP
JohnatanT/EasyMoney
/Controller/DescontoController.php
UTF-8
662
2.84375
3
[]
no_license
<?php require_once '../Model/Desconto.class.php'; $srv = new Desconto(); $nome = $_POST['nomeDesconto']; if(is_string($nome)): echo 'É do tipo String.'; else: echo 'Não é do tipo String.'; endif; $valorDesconto = $_POST['valorDesconto']; $valorDesconto = intval($valorDesconto); if(is...
true
6dd5c7683e21eaa390820b105434df8d424ca931
PHP
sokhunter/rfid
/app/Database/Migrations/2021-06-22-011224_Alert.php
UTF-8
1,234
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Database\Migrations; use CodeIgniter\Database\Migration; class Alert extends Migration { public function up() { $this->forge->addField([ 'id' => [ 'type' => 'INT', 'constraint' => 11, 'unsigned' => true, 'auto_increment' => true, 'null' => false, ...
true
912a5fcf64f3258ab3da60fcfb286fbb54cf26d8
PHP
Myystery/fastnetbd
/application/models/AuthModel.php
UTF-8
679
2.6875
3
[ "MIT" ]
permissive
<?php /* * Created by suraiya mim * at 9:14pm on 29/03/2020 */ /** * @property CI_DB $db Description */ class AuthModel extends CI_Model { public function __construct() { parent::__construct(); } public function loginAuth($email) { $this->db->from(TABLE_EMPLOYEES); $th...
true
4bcc99657c1dbc53b3c3cd7dd13ff4f5a39a54ec
PHP
kevinblack006/SimpleRestAPI
/database/seeders/ProductSeeder.php
UTF-8
1,136
2.546875
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; class ProductSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('products')->inser...
true
9729a48b537f51c5de7176764687c204f1a1c872
PHP
davesuy/dave-gig-b1eebab198ee
/app/Mail/MailMessage.php
UTF-8
785
2.53125
3
[]
no_license
<?php namespace Gigtrooper\Mail; use Gigtrooper\Models\Message; use Gigtrooper\Models\QuoteMessage; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; class MailMessage extends Mailable { use Queueable, SerializesModels; public $quoteMessage; public $to; ...
true
431b0df7cfcced7a2c702927e68cea367682967c
PHP
tautvydascoding/2017-10-09-kurso-medziaga
/uzduotys_visos/MAMP/Projektai/valdas/src/add_product.php
UTF-8
4,552
2.90625
3
[]
no_license
<?php include "./db.php"; // FILE UPLOAD $images = array(); $target_dir = "./assets/furniture/"; $image_name = time(). basename($_FILES["main-image"]["name"]); $images[] = $image_name; $target_file = $target_dir . $image_name; $uploadOk = 1; $imageFileType = pathinfo($target_file,PATHINFO_EXTENSION); if(iss...
true
f43a39ef5d0dab9a1152f13991d51a60af3ca260
PHP
ruby-ann-y-matias/fliq-critiq
/database/seeds/CommentsTableSeeder.php
UTF-8
540
2.65625
3
[]
no_license
<?php use Illuminate\Database\Seeder; use App\Comment; class CommentsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker = Faker\Factory::create(); $flix = 102; for ($i = 1; $i <= $flix; $i++) { ...
true
5afa29d8902448c964223aab26c4babe91efa967
PHP
Hopopgit/Webteam
/hopop20/register.php
UTF-8
3,012
2.53125
3
[]
no_license
<?php require_once 'dbconfig.php'; if($_POST) { $name = $_POST['name']; $email_id = $_POST['email_id']; $contact_number = $_POST['contact_number']; $location = $_POST['location']; $mode_of_transport = $_POST['mode_of_transport']; $coupon_code = $_POST['coupon_code']; try { $url = 'https:/...
true
37790866d4086f8fa1832274e0982bd69395d946
PHP
SCI-TSIAI/3C
/backend/App/User/Controller/UserController.php
UTF-8
1,523
2.703125
3
[]
no_license
<?php namespace App\User\Controller; use App\Router\RestBodyReader; use App\Serializer\JsonSerializer; use App\User\Model\UserRequest; use App\User\Service\UserService; /** * @Controller(path="/user") */ class UserController { private $userService; /** * UserController constructor. */ publ...
true
3530ebd2378c539943700762c165451592d54ab8
PHP
miatto88/study
/task8-2.php
UTF-8
1,501
3.953125
4
[]
no_license
<?php // 25, // 配列を宣言してください // Integer(整数) 1個の配列  // String(文字列) 3個の配列 $nums = [7]; // 」変更 変数名 $words = ['あ', 'い', 'う']; // 26, // 配列は初期化の際に初めから配列の値の代入までまとめて行う事ができます。 // Integer(整数) 3個の配列で  1,2,3という数字を値に持たせたい。 // 宣言、要素の確保ののちそれぞれに代入する配列の用意の仕方と // 代入までまとめて行う書き方で用意する仕方にて配列を用意してください $nums = []; // 変更 変数名 $...
true
495ddd8bbb26862f92e3e898ae609b6ca07ca72a
PHP
GoodyIT/ItalianBeach---PHP
/_protected/frontend/models/BookLookup.php
UTF-8
21,853
2.625
3
[]
no_license
<?php namespace frontend\models; use Yii; /** * This is the model class for table "tbl_book_lookup". * * @property integer $id * @property string $sunshade * @property integer $bookinfo_id * @property integer $book_id * @property integer $guest_id * @property integer $milestonegroup_id * @property string $b...
true
d11c97258794f65ae4ec6b9c0077dfc8c03b5e8d
PHP
PedroJesuino/TCC
/tccSpotlight/classes/Usuario.php
UTF-8
2,425
2.921875
3
[]
no_license
<?php class Usuario { private $idusuario; private $nomeusuario; private $emailusuario; private $user_pass; private $username; private $idpost; private $idtelefone; public function getIdUsuario(){ return $this->$idusuario; } public function setIdUsua...
true
1d06c6521446cbf3abf1df0e179e37ca6d8d9a38
PHP
TKutsaeva/tic-tac-toe
/View_play.php
UTF-8
1,018
2.875
3
[]
no_license
<html> <title>XO Play</title> <body> <form action="index.php?action=play&file=<?php echo $_GET['file'] ?>" method="post"> <label for="currentGamer">Ход игрока: <?php echo $game->getCurrentGamer() ?></label> <br><br> <table> <?php foreach($rows as $rowIndex => $row): ?> <tr> <?php foreach($ro...
true
79e0fc0de07142da5f84c4790c2f226f42652bda
PHP
Larium/larium-pay
/src/Transaction/Commit.php
UTF-8
775
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Larium\Pay\Transaction; use Larium\Pay\TransactionException; trait Commit { /** * @var bool */ private $committed = false; abstract public function canCommit(); /** * {@inheritdoc} */ public function commit() { if (!$this...
true
5c50e14eb7f7eea17b8fe5e02fbb4e320b9035d2
PHP
slavkoss/fwphp
/fwphp/glomodul/z_examples/php_patterns/p01_facade.php
UTF-8
2,699
3.046875
3
[ "MIT" ]
permissive
<?php // https://refactoring.guru/design-patterns/catalog // https://refactoring.guru/design-patterns/php // https://phpenthusiast.com/blog/design-patterns // https://github.com/domnikl/DesignPatternsPHP // https://designpatternsphp.readthedocs.io/en/latest/README.html ?> <a href="https://phpenthusiast.com/blog/simpli...
true
f71a6387dd1ce0bace1b08642913bcf46d016a4d
PHP
heckme/Restaurant-Management-System-2
/inc_logindetailsgeneral2.php
UTF-8
1,266
2.75
3
[]
no_license
<?php $pw = $_POST["pw"]; $oldpw = $_POST["oldpw"]; $valid = true; if( strlen($pw) < 6 || strlen($pw) > 20 ) { $valid=false; goto x; } if( !preg_match("#[0-9]+#", $pw) ) { $valid=false; goto x; } if(empty($_POST["pw"]) || empty($_POST["oldpw"])) { $valid=false; ...
true
3bc2b63745fb51403c25842f6623c936600712a1
PHP
floppycms/floppy
/core/Load.php
UTF-8
1,890
2.75
3
[]
no_license
<?php namespace Core; class Load { const MASK_MODEL_REPOSITORY = '\%s\Models\%s\%sRepository'; const MASK_FILE_LANGUAGE = 'Language/%s/%s.json'; public $di; public function __construct(\Core\DI\DI $di) { $this->di = $di; return $this; } /** * Создание экземпляра ...
true
6a8eef478d4ec31b62ef6b719aff75e3cadf46e3
PHP
eKristensen/beer
/tests/Feature/ViewRoomByIdTest.php
UTF-8
4,479
2.53125
3
[ "MIT" ]
permissive
<?php namespace Tests\Feature; use App\Beer; use App\Product; use App\Room; use App\User; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Tests\TestCase; class ViewRoomByIdTest extends TestCase { /** * A basic feature test example. * * @return void */ public ...
true
45e5bcac502c0bc1bbf9a26b3a65effbaeb15c73
PHP
deemawoyo/ksms
/admin/backup.php
UTF-8
2,817
3
3
[]
no_license
<?php require_once("../configuration.php"); require_once("../php/database.php"); $db->connect(); //backup_tables('127.0.0.1','root','toor','school'); backup(); function backup(){ $data = backup_tables($config->db_host,$config->db_user ,$config->db_password,$config->db_name); //write data to file $name = "/admin/db-...
true
54add160e466c3f0d746c870d78b88fbcb07adab
PHP
abdessamadjalalinfo/uncleas
/public/php/contact.php
UTF-8
1,444
2.625
3
[ "MIT" ]
permissive
<?php require 'MailSender.php'; if($_SERVER['REQUEST_METHOD'] === 'POST'){ $your_email = 'loganbb87@gmail.com'; // enter your email address extract($_POST); $response = array( 'status' => 'fail', 'errors' => null ); $message = ''; if(isset($cf_name)){ $cf_name = htmlspecialchars(filter_v...
true
4a815ee26ba18005f01fc2140b570e348953126c
PHP
ntrv/slim-sample-app
/app/Controller/Sample/HelloController.php
UTF-8
1,051
2.734375
3
[ "Apache-2.0" ]
permissive
<?php namespace App\Controller\Sample; use \Psr\Http\Message\ServerRequestInterface as Request; use \Psr\Http\Message\ResponseInterface as Response; use App\Controller\HtmlController; use \Psr\Container\ContainerInterface; use App\Model\HelloInterface; use App\Model\Hello; class HelloController extends HtmlControl...
true
413a9f62d49b5112baa95fc097075866485021aa
PHP
itmarkpz/sms-api
/src/Collection.php
UTF-8
1,035
2.90625
3
[ "MIT" ]
permissive
<?php namespace CodeHub\SMS; use GuzzleHttp\Client; /** * Abstract Class Collection */ abstract class Collection { protected $base_uri; private $params = []; protected $method = 'get'; protected $segment; protected function fire() { $result = []; $method = $this->method; $params = []; $client ...
true
cfa2e7deb0bcb06511aa75a65aba296c84f855ce
PHP
VladBcu/learning
/strpos2.php
UTF-8
460
3.640625
4
[]
no_license
<?php //string position. find a position within a string //best to test for email would be function REGEX // = assign // == compare // === identical operator. if 2 values have are same value and data type $sentence = 'This is tutorial number 21'; $needle = 'n'; //looking for 'n' in the above string $search = strpos...
true
391d87258c190297d9f355e541ab2e3b04fd42e8
PHP
DarioSiroki/webdip
/api/controllers/moderator.controller.php
UTF-8
971
2.625
3
[]
no_license
<?php namespace Znamenitosti; require_once("models/moderator.model.php"); class ModeratorController { public function dohvati_moderatore() { $moderator_model = new ModeratorModel(); $moderatori = $moderator_model->dohvati_moderatore(); echo json_encode($moderatori); } publi...
true
2e9cd65f33d22ef9407412c50689d406f4bf5770
PHP
ismaelfac/vidverdadera
/database/seeds/MemberTableSeeder.php
UTF-8
1,838
2.59375
3
[ "MIT" ]
permissive
<?php use App\Member; use Illuminate\Database\Seeder; class MemberTableSeeder extends Seeder { public function run() { $data = file_get_contents("database/Queries/members.json"); $members = json_decode($data, true); foreach ($members as $value) { //dd($value); Me...
true
a5d8f07db4ceba83febbb61e52adfbdc709afcce
PHP
awesome-academy/php_hn_recruitment_system
/app/Repositories/Field/FieldRepository.php
UTF-8
404
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Repositories\Field; use App\Models\Field; use App\Repositories\Repository; class FieldRepository extends Repository implements FieldRepositoryInterface { public function getModel() { return Field::class; } public function searchByName($keyword) { return Field:...
true
5e0580078aa0c898528696a84c14b92611e2fdbf
PHP
AsgardCms/Platform
/Modules/Core/Internationalisation/BaseFormRequest.php
UTF-8
3,081
2.53125
3
[ "MIT" ]
permissive
<?php namespace Modules\Core\Internationalisation; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Support\Arr; use Mcamara\LaravelLocalization\Facades\LaravelLocalization; abstract class BaseFormRequest extends FormRequest { /** * Set the translation key prefix for attributes. * @var string...
true
6d450a34fa24d6cee378ca9f873dc805f5300cdd
PHP
VishruthaSatish/EmployeeDBFiles-
/delete.php
UTF-8
2,219
2.875
3
[]
no_license
<?php if (isset($_GET["id"]) == FALSE) { // missing an id parameters, so // redirect person back to add employee page header("Location: " . "employees.php"); exit(); } $id = $_GET["id"]; // check for a POST request if ($_SERVER['REQUEST_METHOD'] == 'POST') { $dbhost = "localhost"; $d...
true
aa0a781ace4d87342a0cc5323fe9e180e61f9d4f
PHP
anurag3386/cakemultilangauge
/webroot/migration_insert.php
UTF-8
5,733
2.53125
3
[]
no_license
<?php $db = new mysqli('astrowow-mysql.cwlq0bny8ltt.us-west-1.rds.amazonaws.com', 'awswow', 'Main4itl123', 'astronew_db'); if ($db->connect_error) { die('Connect Error (' . $db->connect_errno . ') '); } $db->set_charset('utf8'); $content = file_get_contents("http://216.245.193.174/results.json"); $data = j...
true
22d3d059bbfc86d7efd513c3ddc5b31925b430a8
PHP
firstmentor/oops
/oops1/magicfunction.php
UTF-8
260
3.578125
4
[]
no_license
<?php class rjit { public $name ="vikasjain"; public $age = 34; public function __construct(){ echo $this->name ."".$this->age; } public function hello(){ //user define echo "hello world"; } } $a = new rjit(); //$a->hello();
true
72a593a36268b39e55152883172719c715ab2c5d
PHP
all-ride/ride-lib-validation
/src/ride/library/validation/filter/AbstractCaseFilter.php
UTF-8
1,911
3.296875
3
[]
no_license
<?php namespace ride\library\validation\filter; use \InvalidArgumentException; /** * Abstract filter to lower or uppercase scalar values */ abstract class AbstractCaseFilter implements Filter { /** * Mode to case everything */ const MODE_NORMAL = 'normal'; /** * Mode to case the first ...
true
ba117b2105958c0bb50b70136509a28d4f7c2870
PHP
josephjlee/neat-php
/objects/self.php
UTF-8
857
3.390625
3
[ "MIT" ]
permissive
<?php class A { public static function newStaticClass() { return new static; } public static function newSelfClass() { return new self; } public function newThisClass() { return new $this; } } class B extends A { public function newParentClass() { return new parent; } } ...
true
30c376eeb38afe31bea90ea985589598ac1cdcc4
PHP
vvk/laravel_blog
/database/migrations/2017_08_21_235626_create_links_table.php
UTF-8
1,249
2.640625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateLinksTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('links', function ...
true
6de5e055be6ec7c99510c19d6c1c4657d62fcf79
PHP
EnriqueHormilla/SegundoDAW
/DesarrolloServidorWeb/Funciones/Funciones3.php
UTF-8
583
3.21875
3
[]
no_license
<!DOCTYPE html> <!-- 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. --> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php ...
true
1fdfffb6f52d334ce475ac5e57234faaa2caa824
PHP
jbchurchill/widget_corp
/includes/functions.php
UTF-8
6,433
2.953125
3
[]
no_license
<?php // This file is a place to store all our functions function mysql_prep ($value) { $magic_quotes_active = get_magic_quotes_gpc(); $new_enough_php = function_exists("mysql_real_escape_string" ); // i.e. PHP >= 4.3.0 if ( $new_enough_php ) { // PHP 4.3.0 or higher // undo any magic quote effec...
true
e962908fb1e5c4e5de403901d1591bdba051d3a4
PHP
vilmetemota/mvcexample
/scr/Controller/controllerEditar.php
UTF-8
1,806
2.671875
3
[]
no_license
require_once ("../ model / livroDb.php"); classe ControllerEditar { private $ nome; private $ autor; private preco $; private $ livroDb; private $ id; função pública __construct ($ id) { $ this- > livroDb = new LivroDB (); $ this- > id = $ id; $ this- > criarFormulario ...
true
8a51005462379d7947a040a766013a1820847769
PHP
rueroby/phpProject
/src/dbTable/DBTable.php
UTF-8
1,350
3.140625
3
[]
no_license
<?php namespace dbTable; class DBTable { protected $tableName; protected $columns; protected $foreignKeys; public function __construct($tblName){ $this->tableName = $tblName; } public function getTableName(){ return $this->tableName; } public function getColumn...
true
5d48fed29cc3391ab72925a3ad97012e20a333f1
PHP
lala-codes/WordPress-HMVC-Framework
/src/Config/Factory.php
UTF-8
1,510
2.796875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: rburnfield * Date: 11/10/2014 * Time: 11:57 AM */ namespace WordPressSolid\Config; use Zend\Config\Config as ZendConfig; class Factory extends \Zend\Config\Factory { /** * Read a config from a file. * * @param string $filename * @param bool $returnConfigObject...
true
ae61d48df3f241a19135f5804de174713744a8fd
PHP
cldlife/work
/web/wx/protected/controllers/BaseController.php
UTF-8
6,820
2.625
3
[]
no_license
<?php class BaseController extends CController { public function getCommonService() { return ServiceFactory::getInstance ()->createCommonService (); } /** * 拦截器(client_id, client_secret验证)及初始化参数 * * @return boolean */ public function filters() { // 域名分组级别隔离 if ($this->getId () == 'site') return F...
true
33b9c6ee3469da163ef9e154179ee8360471b845
PHP
tam35/css-crush
/lib/Regex.php
UTF-8
2,327
2.921875
3
[ "MIT" ]
permissive
<?php /** * * Regex management * */ class csscrush_regex { public static $patt; // Character classes public static $class; public static function init () { self::$patt = $patt = new stdclass(); self::$class = $class = new stdclass(); // Character classes $class->name = '[a-zA-Z0-9_-]+'; $cla...
true
91aaba4264953003e101f115745e075dda0e218f
PHP
mateusroccha/controleunb
/modelos/Estudante.php
UTF-8
289
2.5625
3
[]
no_license
<?php class Estudante extends Pessoa { public $anoIngresso; public function __construct($matricula, $foto, $nome, $endereco, Login $login, $anoIngresso) { parent::__construct($matricula, $foto, $nome, $endereco, $login); $this->anoIngresso = $anoIngresso; } }
true
52f5ac0dd0abbf7510509da22eb671f4d08e3eb3
PHP
nlreturns/inceptio
/app/classes/db/DbAnswer.php
UTF-8
3,686
2.984375
3
[]
no_license
<?php namespace inceptio\app\classes\db; use inceptio\app\classes\Question as Question; use inceptio\app\classes\db\Database as Database; /** * @access public * @author janwillem * @package Scansysteem */ class DbAnswer extends Database { /** * @AttributeType Scansysteem.Database */ private $d...
true
2712d1c446218de05ff30c65a599cb403704dafa
PHP
grizz-it/log
/src/Component/Logger/ConfigurableTransitLogger.php
UTF-8
2,155
2.875
3
[ "MIT" ]
permissive
<?php /** * Copyright (C) GrizzIT, Inc. All rights reserved. * See LICENSE for license details. */ namespace GrizzIt\Log\Component\Logger; use PhpUnified\Log\TransitLogger; use PhpUnified\Log\Common\LoggerInterface; class ConfigurableTransitLogger extends TransitLogger { /** * Contains the allowed log l...
true
5548167ef14d39189b22652aa3cdf2a1e0da8348
PHP
fchicaiza/FcSysLibreria
/modelos/Editorial.php
UTF-8
1,584
2.90625
3
[]
no_license
<?php //Incluímos inicialmente la conexión a la base de datos require "../config/conexion.php"; Class Editorial { //Implementamos nuestro constructor public function __construct() { } //Implementamos un método para insertar registros public function insertar($descripcion) { $sql="INSERT INTO fc_tbl_editori...
true
3943d1d596a5d38186217e56e5b8d6ca5c9a15e6
PHP
tamsircisse/trottinette
/functions/parameter.php
UTF-8
609
3.109375
3
[ "Apache-2.0" ]
permissive
<?php // Demarre la session session_start(); // SESSION pour l'identification des utilisateurs if ($_SESSION['id'] == null) { $_SESSION['id'] = null; $_SESSION['nom'] = null; $_SESSION['prenom'] = null; $_SESSION['role'] = null; } // Pour les messages d'erreur $data = [ 'reponse' => null, 'message' => '' ]; ...
true
be19e72a3e4720d38e277b853162635a1f2ad2d5
PHP
yfix/yf_extra_plugins
/plugins/forum/modules/forum/yf_forum_print.class.php
UTF-8
2,340
2.640625
3
[]
no_license
<?php /** * Print view methods here * * @package YF * @author YFix Team <yfix.dev@gmail.com> * @version 1.0 */ class yf_forum_print { /** * Show Topic */ // TODO: move this into template function _show_topic() { $_posts_per_page = !empty(module('forum')->USER_SETTINGS['POSTS_PER_PAGE']) ? module('forum')->U...
true
49e7a82aa1232205ff3629403ff2a42e9faddc57
PHP
michnaadam33/symfony_kurs
/13/new_project/src/Command/UsersCommand.php
UTF-8
1,812
2.78125
3
[]
no_license
<?php namespace App\Command; use App\Entity\User; use Doctrine\ORM\EntityManagerInterface; use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerAwareTrait; use Psr\Log\LoggerInterface; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\...
true
ee97d1fe173cb5ba77fe48846fc4f1ef0992e4fc
PHP
nashiko37/tech_repo
/mission3-02.php
UTF-8
1,887
3.328125
3
[]
no_license
<html lang="ja"> <head> <meta charset="UTF-8"> <title>mission_3-02</title> </head> <body> <form action = "" method="post"> お名前 : <input type="text" name="name" required = "required" placeholder="入力してください"> <br> コメント:<input type="t...
true
85124fd182babd9de010596972595fbe964b53ef
PHP
DolglasMesquita/mealplan
/app/Http/Controllers/OrderController.php
UTF-8
1,073
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Order; class OrderController extends Controller { public function store(Request $request) { $quantidade = $_POST['quant']; $observacao = $_POST['description']; $nome_prato = $_POST['nome-prato']; ...
true
139f266720d31d39bcd8785acb2860b5b2d4dc32
PHP
huazi736/php-simple-sns
/api/WebpageApi.php
UTF-8
791
2.640625
3
[]
no_license
<?php /** * 网页信息接口 * @author shedequan */ class WebpageApi extends DkApi { protected $webpage; public function __initialize() { $this->webpage = DKBase::import('Webpage', 'webpage'); } public function test() { return $this->webpage->test(); } /** * 设置网页应用区菜单的封面 ...
true
25f742b0f43a20d4a32e7fc8f4e931169af41a85
PHP
pardeepInext/react-blogging
/app/Http/Controllers/AuthController.php
UTF-8
2,506
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\Hash; class AuthController extends Controller { function login(Request $request) { $validator = Validator::make($request->input(), [ ...
true
e03cd55d8b9071019cb85e73b4312a5f4aea5cf9
PHP
grunk/Pry
/Pry/File/Decorator/Filter.php
UTF-8
1,269
3.046875
3
[ "MIT" ]
permissive
<?php /** * Pry Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * */ namespace Pry\File\Decorator; use Pry\File\Util; /** * Decorator permettant de filtrer les éléments listés * @category Pry * @package File * @su...
true
3782b7e621f910c2876ba05943f4d921b465c385
PHP
a-lenka/symfoapp
/src/Migrations/Version20190502132302.php
UTF-8
2,011
2.546875
3
[]
no_license
<?php declare(strict_types=1); namespace DoctrineMigrations; use Doctrine\DBAL\DBALException; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; /** * Class Version20190502132302 * @package DoctrineMigrations */ final class Version20190502132302 extends AbstractMigration { /** *...
true
a6a45948862d550ff5ff2bc7f159754864c76376
PHP
amte-imss/encuestas_descarga_archivos
/application/core/MY_Controller.php
UTF-8
3,692
2.59375
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * @author: LI. Miguel Guagnelli * @version: 1.0 * @desc: Clase padre de los controladores del sistema * */ class MY_Controller extends CI_Controller { function __construct() { parent::__construct(); //d...
true
277071c65d130562863bf25c4d1febfa42ba1637
PHP
samdubey/ads2
/controller/profilectrl.php
UTF-8
2,548
2.546875
3
[]
no_license
<?php require_once "../db/general.php"; class ProfileCtrl{ public static function index(){ return function($request,$response){ if($request->session('admin')){ $profiles = Profile::all(); $response->json($profiles->as_array()); }else{ $response->code(403); } }; } public static functi...
true
d5035a6ee891c4b4120b15a2ca2ba1b676fed395
PHP
sewinduputro/pwl7985
/algoritmafunc.php
UTF-8
439
2.609375
3
[]
no_license
<?php /* Function Of Certainty Factor */ /* Function Of Certainty Factor Perubahan */ function cekrule($cf1,$cf2){ if ($cf1 >=0 && $cf2 >=0){ return $combine = $cf1 + $cf2*(1-$cf1); } else if ($cf1 < 0 || $cf2 <0 ) { return $combine = ($cf1+$cf2)/(1 -min(abs($cf1),abs($cf2))); } ...
true
436b6dfb0605e5b1a27bc0628a001a4622d5312e
PHP
KIZI/EasyMiner-EasyMinerCenter
/app/model/rdf/serializers/XmlUnserializer.php
UTF-8
11,215
2.765625
3
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
<?php namespace EasyMinerCenter\Model\Rdf\Serializers; use EasyMinerCenter\Model\Rdf\Entities\Attribute; use EasyMinerCenter\Model\Rdf\Entities\Cedent; use EasyMinerCenter\Model\Rdf\Entities\Format; use EasyMinerCenter\Model\Rdf\Entities\Interval; use EasyMinerCenter\Model\Rdf\Entities\IntervalClosure; use EasyMinerC...
true
99fddbcbe967b31e1f67d9a2a300ae0c66b713b7
PHP
marcianobarros20/ninja
/modules/setup/helpers/setup.php
UTF-8
751
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Setup helper functions */ class setup { /** * Determines whether the Setup controller is available for usage, * i.e. there is no auth module that does not require user * configuration and there are no users configured for the ones that * do. * * @thr...
true
2341a3656d192fb35a5da0e7ca4278ae8f829190
PHP
LilyDubas/Nimbl2.0
/Model/new_user.php
UTF-8
854
2.921875
3
[]
no_license
<?php function add_new_user($email, $password, $lastname, $firstname){ require 'params.php'; $db = connectDb(); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $password = password_hash($password, PASSWORD_DEFAULT); try { // declarer la requête sql avec des paramètres $statement = $db->p...
true
760225eb3bcaec9b19ad271dfc7b82f03fb3859a
PHP
SanfR/LogCentral
/html/index.php
UTF-8
2,548
2.828125
3
[]
no_license
<?php include('includes/config.php'); include('autoload.php'); $message = ''; //init just if its posted if (isset($_POST) ){ $common = new Common(); $logError = new Logs($logserror); $connection = new Database($base, $server, $user, $pass); $userClass = new Users($connection); $authent = new Authentificati...
true
e89ab4dd2a15eba35057eabc76167d2ecf473b30
PHP
Rmyf/blog2
/index.php
UTF-8
808
3.0625
3
[ "Apache-2.0" ]
permissive
<?php $array = scandir ('post', SCANDIR_SORT_NONE); $posts= []; // On trie foreach ($array as $file){ if (is_dir($file)){ continue; } array_push($posts,$file); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, ini...
true
4d7e278b4ad3e5d29918ddd20837740d8eecae33
PHP
flagshipcompany/flagship-api-sdk
/Shipping/Tests/EditPickupTests.php
UTF-8
7,826
2.515625
3
[ "MIT" ]
permissive
<?php namespace Flagship\Shipping\Tests; use \PHPUnit\Framework\TestCase; use Flagship\Shipping\Objects\Pickup; class EditPickupTests extends TestCase{ public function testGetId(){ $this->assertNotEmpty($this->editPickup->getId()); $this->assertNotNull($this->editPickup->getId()); $this->as...
true
22e962b2656d464cd6e665724992f73e3346ad50
PHP
n4zim/IUT_PHP_AFK
/app/Helpers.class.php
UTF-8
4,454
2.96875
3
[]
no_license
<?php class Helpers { public static function toFullGender($gender) { switch(strtoupper($gender)) { case 'M': return 'homme'; break; case 'F': return 'femme'; break; default: return 'autre'; ...
true