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
4861083e8f0c85b1481f3b6ffbf599596f0eb3e0
PHP
verplancken/EagoSubastas
/vendor/laravel/framework/src/Illuminate/Foundation/Auth/SendsPasswordResetEmails.php
UTF-8
2,648
2.71875
3
[ "MIT" ]
permissive
<?php namespace Illuminate\Foundation\Auth; use Illuminate\Http\Request; use Illuminate\Support\Facades\Password; trait SendsPasswordResetEmails { /** * Muestre el formulario para solicitar un enlace de restablecimiento de contraseña. * * @return \Illuminate\Http\Response */ public functi...
true
783c15296b3048f5bebc87adf791c23e14424c92
PHP
robertovz/vue-laravel-shop
/database/migrations/2019_07_05_025849_create_products_table.php
UTF-8
1,123
2.640625
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateProductsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('products', fun...
true
c2d0796fab5eed782c777424d216049ea997fe3f
PHP
albernaz/edemocracia
/app/Http/Controllers/VueItemController.php
UTF-8
2,827
2.515625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: falbernaz * Date: 13/09/2016 * Time: 15:52. */ namespace App\Http\Controllers; use App\Repositories\DataRepository; use App\Repositories\UsersRepository; use App\User; use Illuminate\Http\Request; class VueItemController extends Controller { private $dataRepository; ...
true
86601f0a30f14c056115f574e980598ad93f0777
PHP
Joseph-JL/seckill
/互联网开发技术与实践/05_www.liujie.site_秒杀系统改校园二手交易系统/application/admin/widget/Menu.php
UTF-8
3,998
2.6875
3
[ "Apache-2.0" ]
permissive
<?php /** * 布居 * @file menu.php * @date 2016-9-2 16:18:45 * @author Zhenxun Du<5552123@qq.com> * @version SVN:$Id:$ */ namespace app\admin\widget; class Menu { public function __construct() { if (!session('user_id')) { return false; } } public function index() ...
true
fa0fb32a7bbd424b8a39e40b10d2224e904b1079
PHP
haravinth/FiniteStateAutomata
/State.php
UTF-8
1,171
3.3125
3
[]
no_license
<?php require_once "StateInterface.php"; class State implements StateInterface { private $type; private $name; private $outputValue; /** * @param string $name * @param array $type * @param string $outputValue */ public function __construct($name, $type = array(self::TYPE_CU...
true
9bc1a2023bf072a9c63e8eacd2d5c81b4e299d2d
PHP
AStilphen000/PokeAPI
/views/layouts/PHPCodeBlocks.php
UTF-8
603
3.125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>PHP Code Blocks</title> <!-- Exercise 02_02_01 Author: Angelina Stilphen Date: 1.15.20 --> </head> <body> ...
true
3eb00d16c9b07fcd8c8ffedb2a49580ed028299d
PHP
erikz99/MeetUp
/src/QueueRequestHandler.php
UTF-8
6,760
2.765625
3
[]
no_license
<?php date_default_timezone_set('Europe/Sofia'); require_once("AppBootStrap.php"); AppBootStrap::init(); class QueueRequestHandler { const secondsInMinute = 60; public static function startQueue($roomId) { if (!$roomId) { throw new BadRequestException("Room...
true
0f73ff767b0e745b602381272539fad011d21ac0
PHP
leeviko/e-kirjasto
/php/login.php
UTF-8
1,973
2.703125
3
[]
no_license
<?php // Katso onko jo kirjautuneena if(isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true){ header("location: index.php"); exit; } require_once "../config.php"; if($_SERVER["REQUEST_METHOD"] == "POST") { $username = $password = ""; $username_err = $password_err = $login_err = ""; if(empty(t...
true
89a473cb450864fb888a5157ef1c42b460a1ee75
PHP
mycroft84/kohana-mptt
/acl/libraries/ORM_Mptt.php
UTF-8
3,395
2.6875
3
[]
no_license
<?php class ORM_Mptt_Core{ protected $model; protected $class; protected $table; protected $left_column = 'lft'; protected $right_column = 'rgt'; protected $parent_column = 'parent_id'; protected $scope_column = 'scope'; public function __construct(ORM $model) { $this-...
true
97264a1c7a9de95ec9e9824321a296809c681a26
PHP
TruongDuyHung/-study-exampleSort
/index.php
UTF-8
496
3.359375
3
[]
no_license
<?php function selection_sort($arr) { for($i=0; $i<count($arr)-1; $i++) { $min = $i; for($j=$i+1; $j<count($arr); $j++) { if ($arr[$j]<$arr[$min]) { $min = $j; } } $arr = swap_positions($arr, $i, $min); } return $arr; } function swap_positions($arr1, $left, $right) { $backup_old_arr_right_value = $arr1[$right]; $arr1[...
true
95f9feb33e0d12ab2984edc6c45e2fa0ff4e4e06
PHP
HuSchKa2020/huschka-backend
/include/MailSender.php
UTF-8
706
2.5625
3
[]
no_license
<?php class MailSender { function __construct(){ } function sendVerficationMail($mail, $vorname, $nachname, $vkey) { $betreff = "Ihre HuSchKa Verifizierungsmail!"; //$message = "Hallo '$vorname', bitte klicke <a href="huschka.ddnss.de/jan/verifizierung/verify.php?vkey=$vkey...
true
d0d682115e0ad944d45b0ceaff1a9b1601845e74
PHP
bitmovin/bitmovin-api-sdk-php
/src/Models/AnalyticsInterval.php
UTF-8
1,177
3.09375
3
[ "MIT" ]
permissive
<?php namespace BitmovinApiSdk\Models; class AnalyticsInterval extends \BitmovinApiSdk\Common\Enum { /** @var string */ private const MINUTE = 'MINUTE'; /** @var string */ private const HOUR = 'HOUR'; /** @var string */ private const DAY = 'DAY'; /** @var string */ private const MON...
true
67c32d50ef96e13b758a3df821047b92fbcd844d
PHP
dbos1504/blog
/classes/Categorie.php
UTF-8
419
2.796875
3
[]
no_license
<?php class Categorie { public function categories() { $cat_result = Database::$connection->query("SELECT * FROM categories"); while ($rw_cat = $cat_result->fetch_object()) { ?> <li><a href="?categorie=<?php echo $rw_cat->id; ?>"><b><?php echo $rw_cat->cat_name; ?></...
true
d8bd9ba75b4a8ec7a70a599b3f7e4c134341b7f5
PHP
hoa7602/testgit
/modules/right/cart.php
UTF-8
1,427
2.59375
3
[]
no_license
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> </head> <body> </body> </html><?php session_start(); ?> <h1>Giỏ hàng</h1><h3 style="float:right"> <?php if(isset($_SESSION['dangnhap'])){ echo 'Xin chào :'.$_SESSION['dangnhap']; } ?> </h3> <?php //them san pham mới if(is...
true
b6f8ebaa013d6cc9b5bfdecd349f71a12c236607
PHP
olive007/swad
/src/Swad/Modeler/Generator/Html/Node/Image.php
UTF-8
739
2.65625
3
[]
no_license
<?php namespace Modeler\Generator\Html\Node; use Modeler\Parser\Ui\Node as Parser; class Image extends Parser\Image { use HtmlCommon; // Constructor public function __construct(\SimpleXMLElement $xmlNode, string $xmlFileName, Parser\AbstractContainer $container) { $this->initHtmlCommon(); // Call contruc...
true
3cde0ef89634bfeacbe63e472d184bb6d19205af
PHP
formya/ms-tenant
/database/migrations/2021_05_11_130213_create_projects_table.php
UTF-8
759
2.515625
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateProjectsTable extends Migration { public function up() { Schema::create('projects', function (Blueprint $table) { $table->id()->startingValue(1000001); ...
true
c4fbc4b60d7ab35b711ae2c067257b5fe145ef48
PHP
bec-fr/website-bec
/requete.php
ISO-8859-1
1,384
2.65625
3
[]
no_license
<?php //Numro de la rgion if(isset($_POST["pays"]) && $_POST["pays"] != 'vide'){ /*Si la variable $include n'existe pas c'est que le numro de la rgion passe par AJAX. On a donc besoin d'avoir une connexion avec la base de donnes.*/ /*Quand on poste le formulaire, cette page est inclue directement dans le div "blocville...
true
26baf2f655f65f542f706a9ef80a76cc0836ca43
PHP
RafaelKeramidas/Wololo
/classes/wololo.class.php
UTF-8
1,111
2.875
3
[ "MIT" ]
permissive
<?php /*** * Wololo - Main class * * @Author Rafael Keramidas <rafael@keramid.as> * @Version 1.0 * @Date 4th November 2013 * @Licence MIT <Look at license.txt> ***/ class Wololo { public function wake($sBroadcast, $sMac) { $sMagicPacket = null; $sHwAddr = null; $aMac = e...
true
8775d8007e39f6abbb9f5ffbde707ab63bf76902
PHP
ObaidullahSupto/Bengal-Arts
/Bengal_Arts/connection_class.php
UTF-8
5,128
3.125
3
[]
no_license
<?php class Database{ private $db_host = "localhost"; // Change as required private $db_user = "wwwbijoy_bengal"; // Change as required private $db_pass = "ckk(F)K@L!]u"; // Change as required private $db_name = "new_bijoy_bangla"; // Change as required private $con = false; private $myconn...
true
54eab9c6708d3ae2ce20a216ec4c9b8c061b9647
PHP
ztl8702/views_polyglot
/src/Plugin/views/filter/PolyglotFilter.php
UTF-8
7,521
2.515625
3
[]
no_license
<?php /** * @file * Contains \Drupal\views_polyglot\Plugin\views\filter\PolyglotFilter. */ namespace Drupal\views_polyglot\Plugin\views\filter; use Drupal\Core\Language\LanguageInterface; use Drupal\Core\Language\LanguageManagerInterface; use Drupal\views\Plugin\views\filter\FilterPluginBase; use Drupal\Core\Form...
true
c6a45b1614fec4f939b5075dc7cb80880cc944b2
PHP
ctec-127/ctec-227-final-project-navneet7393
/admin/admin_includes/edit_post.php
UTF-8
5,894
2.640625
3
[]
no_license
<?php require_once './admin_includes/header.php';?> <?php require_once './admin_includes/nav.php';?> <?php // if it is set to post id in the url if (isset($_GET['p_id'])) { $post_id = $_GET['p_id']; // do the sql for post id $sql = "SELECT * ...
true
a5bc2a952d9db763468ff5a6385b7fb751083d25
PHP
tito10047/gwt-phpcallback
/Dev/phpRpcLibTest/war/server/TestServiceImpl.class.php
UTF-8
527
2.671875
3
[]
no_license
<?php //include_once 'jsonrpcphp/jsonRPCServer.php'; //include_once 'jsonrpcphp/rpc_server_wrapper.php'; /* class GwtRpcObject{ function __toString(){ return "<br />ssssss"; } } class TestServiceImpl{ public function search(Array $indikacka,GwtRpcObject $sss){ echo $indikacka[0]; ...
true
413fa6ee344bc6b107c6a2ecb01c254c0acb4b59
PHP
mamatty/web-site-migration
/login_website/logout.php
UTF-8
1,270
2.671875
3
[]
no_license
<?php /* Log out process, unsets and destroys session variables */ session_start(); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Logout</title> </head> <?php include 'css/css.html'; require_once "../DbOperations/DbOperationLogin.php"; $conn = new DbOperation(); $req = $conn-> logout(); ...
true
43dad638594fececb9f9f6548c364cebff8e7e73
PHP
Pcartertracy/Class_PostModern_Misc_swift-ios-php-ruby
/project_3.2/confirmdelete.php
UTF-8
824
2.515625
3
[]
no_license
<? include "dbinfo.php"; $sel_record = $_POST[sel_record]; $sql = "SELECT * FROM examples WHERE filmID = $sel_record"; $result = mysql_query($sql, $db); if (!$result) { print "<h1>Something has gone wrong!</h1>"; } else { while ($record = mysql_fetch_array($result)) { $id = $record['contactID']; $title ...
true
ba0baacdc7dafecf014fa1f7f768a301f3da7dc7
PHP
gabrieljo/FileScanner
/csd4/openmarket/tests/case/CmdOmProductSend.php
UTF-8
3,123
2.546875
3
[]
no_license
<?php /*************************************************************************************** * * 1. 프로그램명 : /home/echost/system/class/command/CmdOmProductSend.php * 2. 최종 작성일 : 2011-05-25 * 3. 최종 수정일 : * 4. 작성자 : hhchoi * 5. 특기 및 유의사항 * - * 6. 수정사항 * - hjkim08 : use_type 파라미터 run_om_pro...
true
a6d8ff79dd40a19d934408707e5d044b16ad0ba6
PHP
JoshBrodieNZ/miscellany
/app/Console/Commands/GenerateCampaignPublic.php
UTF-8
1,113
2.875
3
[]
no_license
<?php namespace App\Console\Commands; use App\Models\Campaign; use App\Models\CampaignRole; use Illuminate\Console\Command; class GenerateCampaignPublic extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'campaign:public'; ...
true
a9b8f3b9c593552bd2d999132e2780a72a644674
PHP
flexphp/flex-payroll-bundle
/src/Domain/Paysheet/UseCase/CreatePDFUseCase.php
UTF-8
1,858
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of FlexPHP. * * (c) Freddie Gar <freddie.gar@outlook.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace FlexPHP\Bundle\PayrollBundle\Domain\Paysheet\UseCase; // req...
true
885dfcc26f6c3f5c972a13567069f1325d751680
PHP
FrederikT/HomeStreamingService
/includes/NullClasses.inc.php
UTF-8
1,013
3.140625
3
[]
no_license
<?php include_once 'autoloader.inc.php'; /** * since Variables need instance of object and null is not possible - return sample object, which is "Invalid" and therefore can be handled as default/null */ class NullClasses{ static function getAdaptation(){ $adaptationObj = new Adaptation(-1, ""); r...
true
b8a1af17a43152371125c1f01105b52a5f889124
PHP
Aeroponz/SOEN341
/src/tests/LogoutTest.php
UTF-8
720
2.53125
3
[]
no_license
<?php declare(strict_types=1); namespace UnitTesting\Login; $root = dirname(__FILE__, 3); require_once($root . '/src/db/DBConfig.php'); require($root . '/src/pages/LoginPage/LogIn.php'); //Account Used for testing define('__TESTUSERNAME__', 'TestUser', true); define('__TESTPASSWORD__', 'Tr4v!sCI', true); use PHPUni...
true
8bba0fe5fd1da15a7f954ccc1621a204f9e3bca5
PHP
lyhuoth/book_store
/app/Http/Controllers/BackEnds/UserController.php
UTF-8
2,848
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\BackEnds; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Models\BackEnd\Role; use App\Models\BackEnd\User; class UserController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response *...
true
d517527587d4dd0850b1ab64e87ab89c62440126
PHP
Rutxu/ejerciciosphp
/ejerciciosphp/ejerciciosphp/UT2-Ejercicio5/Ejercicio5/form.php
UTF-8
783
2.734375
3
[]
no_license
<?php $email = $_POST["email"]; echo '<html> <head> <title>Ejercicio 5 Resultado</title> <meta http-equiv="Content-Type" content="text/html" charset="UTF-8" /> <link rel="stylesheet" type="text/css" href="estilo/estilo.css" media="screen"/> </head> <body> ...
true
067e5a33dbc75d37331eb8a5848939ef7d145368
PHP
titiyoyo/fs-client
/src/FsClient/Utilities/Validation.php
UTF-8
468
2.640625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: terencepires * Date: 20/03/2017 * Time: 07:59 */ namespace Titiyoyo\FsClient\Utilities; class Validation { /** * checks if $idx exists in $array and is not empty * @param $idx * @param $array * @return bool */ public static function checkI...
true
3bd8cfb14b87dd31958930c401ddcbbc6bfb6319
PHP
aUsABuisnessman/php-linode-api
/src/endpoints/Managed/Contact.php
UTF-8
2,172
2.5625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace HnhDigital\LinodeApi\Managed; /* * This file is part of the PHP Linode API. * * (c) H&H|Digital <hello@hnh.digital> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use HnhDigital\LinodeApi\Foundation\Base; /** ...
true
cc29695971544e1cd7842214b1757ac53ee12806
PHP
ericalexandre/peaa
/src/TransactionScript/Gateway.php
UTF-8
2,174
2.875
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of Gateway * * @author Asus */ class Gateway { private $cnx; function __construct(PDO $cnx) { $th...
true
fafc79266c968ee51998edcf11b9c5a483f06db0
PHP
MarkMarzeotti/easy-acf-blocks
/plugin-blocks/testimonial/testimonial.php
UTF-8
1,725
2.578125
3
[]
no_license
<?php /** * Testimonial Block. * * Title: Testimonial * Description: A custom testimonial block. * Category: widgets * Icon: admin-comments * Keywords: client, testimony * Post Types: all * Multiple: true * Active: true * * @param array $block Block settings and attri...
true
75c2d7182af99cf49512944c25ae853070c67bd3
PHP
hammerlabs/universal-lonesurvivor-epk
/application/core/HLabs_Controller.php
UTF-8
2,325
2.59375
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* Copyright 2013 Hammer Technology Services, Inc. */ /** * CodeIgniter HLabs Starter Kit Controller * */ class HLabs_Controller extends CI_Controller { protected $css_groups=array(); protected $js_groups=array(); protected $default_js_optio...
true
5acb924f3ff3008585e66cef4c57b1fdc78a4579
PHP
limweb/photoncmsdocker
/app/PhotonCms/Core/Entities/Seed/Contracts/SeedGatewayInterface.php
UTF-8
268
2.609375
3
[]
no_license
<?php namespace Photon\PhotonCms\Core\Entities\Seed\Contracts; interface SeedGatewayInterface { /** * Uses a seed template to create a seed. * * @param SeedTemplateInterface $seed */ public function create(SeedTemplateInterface $seed); }
true
80d7673a05866edeeba8534441d4b62e4a25c332
PHP
tonyhokas113/bit-php
/namu-darbai/general/kintamieji-salygos.php
UTF-8
11,049
3.125
3
[]
no_license
<?php # 1 // $vardas = 'Vaigaudas'; // $pavarde = 'Kacenauskas'; // $gimimo_metai = 1993; // $einamieji_metai = 2021; // $kiekManMetu = $einamieji_metai - $gimimo_metai; // echo "Aš esu $vardas $pavarde. Man yra $kiekManMetu metai."; // echo '<br>'; // echo '<hr>'; # 2 // $random_reiksme = rand(0, 4); // $random...
true
bcad80613e26ad285141a21627c07d539844e40b
PHP
filippopov/PHP-Design-Patterns
/4-StructuralDesignPatterns/Facade/ToyShop.php
UTF-8
729
3
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Popov * Date: 14.4.2018 г. * Time: 11:51 */ namespace Facade; class ToyShop { private $courier; /** * @var Manufacturer */ private $manufacture; private $sms; public function __construct(string $factoryAdress, string $contactNumber, int $ca...
true
8af5a5873c8c14b0fc31c0666779fdd74977308a
PHP
anindyadn/Final-Project-Pemweb-Ann-s-Clothing
/form_sewa.php
UTF-8
23,722
2.59375
3
[]
no_license
<!DOCTYPE html> <html> <header> <title> Ann's Clothing </title> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="an...
true
a778b42e7e2881c1e034898cc6c9d9eb67b3675a
PHP
RodrigoBarrios88/inversiones
/SISTEM/promts/ventas/detalle_venta.php
UTF-8
3,876
2.59375
3
[]
no_license
<?php include_once('../../html_fns.php'); $nombre = $_SESSION["nombre"]; $empresa = $_SESSION['empCodigo']; $empCodigo = $_SESSION["empCodigo"]; $gremial = $_SESSION["gremial"]; $pensum = $_SESSION["pensum"]; //$_POST $venta = $_REQUEST["venta"]; ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Conten...
true
82d053be62e3c898df8969e246000e5e785e9487
PHP
ashokbitmatix/newKryptova
/app/Article.php
UTF-8
1,287
2.5625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Article extends Model { use SoftDeletes; protected $fillable = [ 'category_id', 'tag_id', 'slug', 'title', 'image', 'description', 'meta_ke...
true
f5761faf3e981d74cfd7d6f58c35644f1fa5b842
PHP
aleosina12/php17_module
/main.php
UTF-8
4,760
2.8125
3
[]
no_license
<?php $example_persons_array = [ [ 'fullname' => 'Иванов Иван Иванович', 'job' => 'tester', ], [ 'fullname' => 'Степанова Наталья Степановна', 'job' => 'frontend-developer', ], [ 'fullname' => 'Пащенко Владимир Александрович', 'job' => 'ana...
true
bdfdca0a78d09d9b9a942f15fd3f4749a2dd3690
PHP
asifraaja/siragugal
/models/Volunteer/PersonalInfo.php
UTF-8
4,869
3.15625
3
[]
no_license
<?php include_once '../../config/Properties.php'; include_once '../../config/Validator.php'; class PersonalInfo{ private $conn; private $props; /** * constructor for User * @param db - database connection */ public function __construct($db){ ...
true
369630ecd1f09a04a2bd51bc83632ce5db984f25
PHP
JVZoo/laravel-model-generator
/src/Meta/MySql/Database.php
UTF-8
1,253
2.6875
3
[ "MIT" ]
permissive
<?php namespace Reliese\Meta\MySql; use Reliese\Meta\DatabaseInterface; use function array_diff; /** * Class Database */ class Database implements DatabaseInterface { /** * @var Schema[] */ private $schemaAdapters = []; /** * @var \Illuminate\Database\MySqlConnection */ privat...
true
fc9bcb1b1e57d9d65c1cce5626d7e393987ee3c0
PHP
taniapav/phpPart3
/phpp3e6/index.php
UTF-8
378
3.109375
3
[]
no_license
<!DOCTYPE html> <html lang="fr" dir="ltr" /> <head> <meta charset="utf-8" /> <title>PHP part3 exo6</title> </head> <body> <p>En allant de 20 à 0 avec un pas de 1, afficher le message C'est presque bon. </p> <?php for($x = 20; $x >=0; $x--){ ?> <p>C'est presq...
true
29dd11d30e6839737f787a8d06dde89ad412d297
PHP
anas1478/support.poissy
/php/php objet/BA/POO/POO/02-getter-setteur-constructeur/exo_membre.class.php
UTF-8
773
3.8125
4
[]
no_license
<?php //Au vu de cette classe, vous allez renseigner les propriétés : pseudo et mdp (getteurs et setteurs) et faites les affichages nécessaires class Membre { private $pseudo; private $mdp; public function setPseudo($pseudo) { $this->pseudo = $pseudo; } public function getPseudo() //j...
true
737d205827af44c941ed2a938aa78718c282c08c
PHP
nadiaaamand/php-menu
/menu.php
UTF-8
933
2.953125
3
[]
no_license
<?php $curpage = basename ($_SERVER['PHP_SELF']); //Using this cause you can't use a class directly since the class is on all pages - instead I have used an if statement --> if the current page is e.g. p5 the echo (show) that the class active. The $_server is a super global variable which holds information about header...
true
22e3cc3cb1ae42f89fbaf63529fb0a74895983cc
PHP
networking/init-cms-bundle
/src/Model/MenuItemManagerInterface.php
UTF-8
1,164
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * Created by PhpStorm. * User: marcbissegger * Date: 10/24/13 * Time: 3:24 PM. */ namespace Networking\InitCmsBundle\Model; /** * Class MenuItemManagerInterface. * * @author Yorkie Chadwick <y.chadwick@networking.ch> */ interface MenuItemManagerInterface { /** * @...
true
967410d63b3b0ffe4019a93838c32d4a511919f1
PHP
eurosender/dhl-sdk-api-express
/src/Api/Data/Request/InternationalDetailInterface.php
UTF-8
692
2.5625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace Dhl\Express\Api\Data\Request; use Dhl\Express\Model\Request\ExportLineItem; /** * International detail interface. * * @api * @author Marko Slavec <marko.slavec@eurosender.com> * @link https://eurosender.com */ interface InternationalDetailInterface { /** * @return string */ public f...
true
1a504bf2c796df6232258b74f52498707753f892
PHP
hamzahanfi94/ProjetAmadeus
/Amadeus3/Vue/Administrateur/ModifierChef.php
UTF-8
1,789
2.703125
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <?php require_once '../../connexion.php'; global $connexion; $id=$_GET['id_emp']; $req="select * from employees where id_emp='$id'"; $res=$connexion->query($re...
true
4f294b92462b0738d1b32fdddf5d44cc38333064
PHP
jasny/mvc
/tests/IntegrationTest.php
UTF-8
2,274
2.828125
3
[ "MIT" ]
permissive
<?php namespace Jasny\MVC; use Jasny\HttpMessage\Uri; use Jasny\HttpMessage\ServerRequest; use Jasny\HttpMessage\Response; use Jasny\Router; /** * Test combining all packages */ class IntegrationTest extends \PHPUnit_Framework_TestCase { /** * @var Router */ protected $router; public fun...
true
ee3a489f9d23141a25fdaac19227724da89fd68b
PHP
aminata1995/projet-individuel
/miniphp/modifierpro.php
UTF-8
2,523
2.625
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css"> <link rel="stylesheet...
true
bb9acb65f9a4b31d17521c9b3181ba719d7ddf44
PHP
artsmoura/aulas_PHP
/lista7/ex3.php
UTF-8
124
3.109375
3
[]
no_license
<?php $num = $_GET['numero']; for($i = 1; $i <= 10; $i++){ echo "$num * $i = ", $num * $i, "<br>"; } ?>
true
37766eef70c3d986a4432ad557562e86985c4bba
PHP
haatt/app-shop
/app/Http/Controllers/CartDetailController.php
UTF-8
2,756
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Produc; use App\CartDetail; class CartDetailController extends Controller { //add new products from the store public function store(Request $request){ $description = ([ "idProduc.required" => "Pleace do not move t...
true
d6907a757cc4714451dae8ac5d87d47f50417fd2
PHP
7hong13/FillingGood
/src/query/InsertTT.php
UTF-8
376
2.75
3
[]
no_license
<?php include('connect.php'); $gname = $_GET['gname']; $day = $_GET['day']; $time = (int)$_GET['time']; $value = (double)$_GET['value']; $sql = "insert into timetable(groupname, day, timeindex, value) values(\"$gname\", \"$day\", $time, $value)"; #쿼리 결과 확인 if($mysqli->query($sql) == TRUE) echo "insert"; else echo...
true
7066fea28070b9c31e7d688fe448091e8b452aed
PHP
baubyte/app-shop
/app/Http/Controllers/CartDetailController.php
UTF-8
2,005
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\CartDetail; class CartDetailController extends Controller { public function store(Request $request) { /**Instanciamos la Clase del Modelo */ $cartDetail = New CartDetail(); /**ID del Carrito del Usuario */ ...
true
89cbdddf4a221f75273c95d9992f6c1f5cb07641
PHP
ahmadRMusa/BookAchoy
/application/models/google_model.php
UTF-8
2,435
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Created by PhpStorm. * User: Owner * Date: 23/05/14 * Time: 23:12 */ class google_model extends CI_Model { /* * Example of return object: * stdClass Object ( [GsearchResultClass] => GbookSearch [unescapedUrl] => http://books.google.com/books?id=TShokNWOGy8C&printsec=frontcover&dq=the+ho...
true
6d13fbd8dd7145b54ecb084662e32e821bdbbece
PHP
Qybercom/Thinkscape
/Views/Post/Index.php
UTF-8
1,967
2.515625
3
[]
no_license
<article> <?php echo $post->content; ?> <div class="summary"> <a class="quark-button fa fa-comments" href="/post/comment/list/<?php echo $post->_id; ?>"> <?php echo sizeof($post->comments); ?></a> <a class="quark-button fa fa-user" href="/user/<?php echo $post->author->nickname; ?>" title="<?php echo $post->autho...
true
c439f7a33e39f3aa6e7c07771daca13c8cd41577
PHP
incube/Events
/lib/Event/EventManager.php
UTF-8
3,217
3
3
[]
no_license
<?php namespace Incube\Event; /** @author incubatio * @licence GPLv3.0 http://www.gnu.org/licenses/gpl.html */ class EventManager { protected $_events = array(); protected $_listeners = array(); protected $_options = array(); protected $_separator = '.'; /** trigger an event to list of ev...
true
5b152b8485022d1a7b264ef92172f32459e052fe
PHP
andreyaici3/daarulquran
/application/libraries/Backend.php
UTF-8
785
2.546875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php class Backend { protected $ci; function __construct(){ $this->ci = &get_instance(); } function view($template = NULL, $data = NULL){ $newView = "_backend/" . $template; $data = [ '_head' => $this->ci->load->view('_template/_backend/_head', $data, TRUE), '_libfooter' => $this->ci->load->view(...
true
fa21d980ab51dab2bdd96302d278a1e31c52cbfb
PHP
tevnin/databases
/sql/mySql_2.php
UTF-8
2,361
2.71875
3
[]
no_license
--five places in the databases, 10 tags, connected to places, add notes, do it in SQLPro -------------------------------------------------------------------------- --This is a SQL statement or query SELECT superheroes.*, secret_identities.name AS kitten JOIN ON superheroes.id=hero_to_secret_hero.id JOIN ON hero_to_...
true
5cf818a7908fa5a05f9a3e78a9cfdc393634b514
PHP
Logovisual/Photographers-Toolbox
/classes/class-ptx-watermark.php
UTF-8
5,283
2.6875
3
[]
no_license
<?php /** * Watermark * * Watermark gallery photos on upload and save original in safe location. * * @package Photographers Toolbox * @subpackage Classes * @since 0.1.0 */ // Direct access not allowed. if ( ! defined( 'WPINC' ) ) { die; } /** * Watermark * * Watermark gallery photos on upload and save ori...
true
5ca63f17db26996f2aaa28e554834f15188f1620
PHP
zajacpiotr/CRUD-Aplication-OOP
/edit.php
UTF-8
3,575
2.84375
3
[]
no_license
<?php include_once("Class/Crud.php"); include_once("Class/validation.php"); $crud = new Crud(); $validation = new Validation(); session_start(); if(!isset($_SESSION["sessionVar"])) { header("Location:table.php"); } else { if(!isset($_POST['update'])) { $nameErr = $lastNameErr = $error = $m...
true
edf4aa43df6c65320a19fbc6b392511b3c0ed2f4
PHP
PlatoCreative/silverstripe-typekit
/code/TemplateGlobalProviders/TypeKitTemplateGlobalProvider.php
UTF-8
1,183
2.5625
3
[ "MIT" ]
permissive
<?php namespace PlatoCreative\SilverStripe\TypeKit\TemplateGlobalProvider; use Config; /** * Provide $TypeKit global template variable for inserting TypeKit javascript. */ class TypeKitTemplateGlobalProvider implements \TemplateGlobalProvider { public static function get_template_global_variables() { ...
true
efddbe700dca7e1cb9ab371e9e4eee33006e2800
PHP
MichalGorczyca/myWebSite
/cms/admin/includes/view_all_users.php
UTF-8
2,132
2.53125
3
[]
no_license
<table class = "table table-bordered table-hover"> <thead> <th>Id</th> <th>Username</th> <th>First Name</th> <th>Last Name</th> <th>E-mail</th> <th>Role</th> <th>Edit</th> <th>Delete</th> </thead> <tbody> <?php ...
true
c839cbd62bb629637686a0506ded2b098f8acfdf
PHP
EaintHmoo/school_project
/otherphoto.php
UTF-8
792
2.65625
3
[]
no_license
<?php //get all Photo include_once 'controller/gallery_controller.php'; $gControler = new GalleryController(); $results = $gControler->showOtherPhoto(); $output=""; foreach($results as $result){ //Variable Type $output.="<div class='col-md-3 col-sm-6'>"; $output.="<div class='card'>"; $output.="<img s...
true
73d9a48837c09db34225b85dfc886157eb499a4d
PHP
DPDBaltics/PrestaShop-1.6
/src/Provider/ProductAvailabilityProvider.php
UTF-8
1,677
2.6875
3
[]
no_license
<?php namespace Invertus\dpdBaltics\Provider; use Country; use Exception; use Invertus\dpdBaltics\Repository\ProductAvailabilityRepository; use Language; use DPDZone; use Tools; use Validate; class ProductAvailabilityProvider { /** * @var Language */ private $language; /** * @var Product...
true
bf8e21666b6e7dca950ad64cf35c822a19ba630e
PHP
zisoft/oc-comments-plugin
/models/Comment.php
UTF-8
1,289
2.703125
3
[]
no_license
<?php namespace Zisoft\Comments\Models; use Model; /** * comment Model */ class Comment extends Model { use \October\Rain\Database\Traits\SimpleTree; use \October\Rain\Database\Traits\Validation; use \October\Rain\Database\Traits\Nullable; /** * @var string The database table used by the model...
true
bfb6c4356db98e4841a2cabf5c60ed7033031fb4
PHP
IsmaelOr/PHP-8-y-MySQL
/fundametos_php/hola_mundo.php
UTF-8
505
3.109375
3
[]
no_license
<?php // echo nos sirve para mostrar información en pantalla # Otro comentario /* Otro comentario de varias lineas */ echo "Hola Mundo!"; // Esto es un comentario, Mi primer programa en PHP ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE...
true
65577c892d80f6522cd97f32e89e45d863d81f9c
PHP
conqueror23/c5LocalPractice
/concrete/vendor/phpunit/dbunit/src/Extensions/Database/Operation/Exception.php
UTF-8
2,070
2.9375
3
[ "MIT" ]
permissive
<?php /* * This file is part of DBUnit. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Thrown for exceptions encountered with database operations. Provides * information r...
true
b714fba28fc87a2d3517545183e6206957e7a71e
PHP
firebrandhq/silverstripe-hail
/src/Models/Color.php
UTF-8
1,100
2.78125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Firebrand\Hail\Models; /** * Hail Color DataObject * * There is no endpoint on Hail API to get colors, they come from other objects * * @package silverstripe-hail * @author Maxime Rainville, Firebrand * @author Marc Espiard, Firebrand * @version 2.0 * * @property int $Red * @property int $G...
true
ec4e73566eff31f5a61860463a8aaa0e3b5bfecb
PHP
ValerieJardin/Exercices_JavaScript
/www/partie7/exercice3/user.php
UTF-8
787
2.625
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.o"/> <link href="../style.css" rel="stylesheet" type="text/css"/> <title>Transcription du formulaire</title> </head> <body> <!-...
true
0769c310491d04262f94d36efbb68496a16b8702
PHP
didattica/his-2016-17
/src/php/db-connection.php
UTF-8
202
2.625
3
[ "MIT" ]
permissive
<?php $conn = new mysqli($DBServer, $DBUser, $DBPass, $DBName); // check connection if ($conn->connect_error) { trigger_error('Database connection failed: ' . $conn->connect_error, E_USER_ERROR); }
true
923d132f42b2d148746503bcc7497911cb6577ff
PHP
daaaabeen/framework-old
/demo/site/model/log.php
UTF-8
3,656
2.5625
3
[ "MIT" ]
permissive
<?php //插入一条日志,获取用户登录记录(查看一条,查看多条),按时段查看网站浏览量 class log extends \Been\Model{ private $__userlogin=1; private $__sitevisite=0; /** * 选取用户上次的登录信息 * @param unknown_type $userid * @return Ambigous <boolean, multitype:> */ public function getLastLoginLog($userid){ $sql = "SELECT * FROM `log...
true
9fc72f9815bfc31e86a37c0342460894f647c83d
PHP
AlQattana/smart_methods
/Task1/motors.php
UTF-8
4,335
2.53125
3
[]
no_license
<?php session_start(); require_once 'config.php'; $sql = "SELECT id, value FROM motors"; $result = mysqli_query($conn, $sql); $i = 0; $values_array = []; while($row = mysqli_fetch_array($result)){ $values_array[$i] = $row['value']; $i++; } mysqli_close($conn); ?> <!DOCTYPE html> <html> <head> <meta cha...
true
17bdcceb7dafbc0b85a87e89aa3cd6999b4d5105
PHP
gabriel1680/enactus-App
/app/Core/Mail.php
UTF-8
3,627
2.890625
3
[ "MIT" ]
permissive
<?php namespace App\Core; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; /** * Class Mail * @package App\Core */ class Mail { /** @var array $data*/ private $data; /** * @var PHPMailer */ private $mail; /** * @var string */ private $message; ...
true
ce5b75dcb1ee6cac9222d09d46b76f46d6cc4d4f
PHP
hazardland/db.php
/samples/013.model.php
UTF-8
1,245
3.21875
3
[]
no_license
<?php namespace galaxy { //ignore - ignore this class on scan /** * ignore */ class galaxy { public $stars = array(); } class star { public $id; public $name; public $size; public function __construct ($name=null, $size=null) { $this->name = $name; $this->size = $size; ...
true
f14025a8959048d21fbc79185f87bb89fd146972
PHP
mahabdelaziz/Events_manager
/assets/events/db_functions.php
UTF-8
4,241
2.734375
3
[]
no_license
<?php include 'config.php'; function get_conn(){ $db = new PDO('mysql:host=' . db_host . ';dbname=' . db_name, db_user_name, db_password); //$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); return $db; } function get_all($table, $from_page, $order){ $conn = get_conn(); $start_value = $from_page * 10...
true
c16a66a13cef1421bbe86c6a1495593b3d84d4c3
PHP
Luminations/modul133
/php/savedata.php
UTF-8
1,539
2.703125
3
[]
no_license
<?php session_start(); include("sql.php"); if(isset($_SESSION['login'])){ if(!empty($_FILES)){ if($_FILES["image"]["error"] !== 4){ if($_FILES["image"]["error"] !== 1){ $name = $_POST['title']; $desc = $_POST['description']; $file = $_FILES["image"]; switch($file["type"]){ case "image/png": ...
true
27cca5073cfb76ac32f70e9f83336e5e72fa8c0e
PHP
khaiars/webkhachsan
/module/Khachhangs/src/Entity/Khachhangs.php
UTF-8
2,880
2.515625
3
[]
no_license
<?php namespace Khachhangs\Entity; use Doctrine\ORM\Mapping as Mapping ; /** * @Mapping\Entity * @Mapping\Table(name="khachhang") */ class Khachhangs{ // `idKhachHang`, `TenKhachHang`, `DienThoaiKH`, // `DiaChiKH`, `GioiTinh`, `SoCMND`, `Email`, `Password`, `NgaySinh` /** * @Mapping\Id * @Mappi...
true
f55fc3ee0d81f23d7735daf6d81a9214882904a7
PHP
vnhabittracker/VHT-Server
/SorceCode/dev_api/php_rest_vnhabit/api/user/social_login.php
UTF-8
1,685
2.578125
3
[]
no_license
<?php // Headers header('Access-Control-Allow-Origin: *'); header('Content-Type: application/json'); header('Access-Control-Allow-Methods: POST'); header('Access-Control-Allow-Headers: Access-Control-Allow-Headers,Content-Type,Access-Control-Allow-Methods, Authorization, X-Requested-With'); include_once '../../config...
true
ed8fd501911133d5c72a78b2daf96b5b26b11eef
PHP
justasLab/My-tasks
/app/Http/Controllers/WeatherController.php
UTF-8
1,672
2.765625
3
[]
no_license
<?php namespace App\Http\Controllers; use Carbon\Carbon; use Illuminate\Http\Request; use Illuminate\Support\Facades\Http; class WeatherController extends Controller { /** * Display a weather index page * * @return \Illuminate\Http\Response */ public function index() { return...
true
95fa5d7c4127e7203aed2d50a39138dcf17df00e
PHP
gutizar/sandbox
/src/Bukzine/MagentoBundle/Controller/DemoController.php
UTF-8
1,258
2.671875
3
[ "MIT" ]
permissive
<?php namespace Bukzine\MagentoBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Bukzine\MagentoBundle\Entity\Task; use Bukzine\MagentoBundle\Entity\Tag; use Bukzine\MagentoBundle\Form\Type\TaskType; class DemoController extends Controller ...
true
3952f6273f2a53f35aa49dc33c87ece610818e9c
PHP
lazaknez/IOT
/obradiKomentare.php
UTF-8
1,953
2.515625
3
[]
no_license
<?php include 'init.php'; include 'dbConnection.php'; if($_SESSION['status'] == false || !isset($_GET['operacija'])) { exit(); } $operacija = $_GET['operacija']; switch($operacija) { case 'ucitavanje': $stan = $_GET['stan']; $upit = "SELECT kom.id as id, kom.tekst as tekst, kor.id as korisnik...
true
b6496bfc6dc8962e68e42cb69754b0e961c5bde8
PHP
shuvoenr/Magestudy
/Crud/Block/Index/Index.php
UTF-8
2,263
2.640625
3
[ "MIT" ]
permissive
<?php namespace Magestudy\Crud\Block\Index; use Magento\Framework\View\Element\Template; use Magento\Framework\View\Element\Template\Context; use Magestudy\Crud\Model\ResourceModel\Post\Collection as PostCollection; use Magestudy\Crud\Model\ResourceModel\Category\Collection as CategoryCollection; class Index extends...
true
c72c9a5a0903c54d19fea982065d6bacf53190c5
PHP
muhammad6535/Queue-management-system
/dbClass.php
UTF-8
72,761
2.859375
3
[]
no_license
<?php require_once("appointmentClass.php"); require_once("organizationClass.php"); require_once("org_representClass.php"); require_once("serviceClass.php"); class dbClass { private $host; private $db; private $charset; private $user; private $pass; private $opt = array( PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCE...
true
629cbe78757244a1564bc013b364695411a59927
PHP
saumya/SlimAPI-1
/public/util/util_up.php
UTF-8
613
2.828125
3
[]
no_license
<?php namespace App\Util; class UtilUp { // property declaration public $var = 'a default value'; public $name = 'UtilUp'; // method declaration public function displayVar() { //echo $this->var; return $this->var; } public function className() { return $this->name; ...
true
fb5422352a60a1e7f941adada8db0fb682123d6c
PHP
silasrm/MyZendAssets
/CORE/Profiler/File.php
UTF-8
3,490
2.8125
3
[]
no_license
<?php /** * Faz Profiler para arquivo de log * * @usage Adicionar no application.ini * resources.db.params.profiler.class = "CORE_Profiler_File" * resources.db.params.profiler.path = APPLICATION_PATH "/../data/logs/" * @package CORE * @subpackage CORE_Profiler */ class CORE_Profiler_File extends Zend_Db_Profil...
true
4c7e8430e8df017d493b8e296a2dcdf063cf0160
PHP
gmattworld/adaptivelearning_laravel
/app/Repositories/Interfaces/IClientRepository.php
UTF-8
852
2.6875
3
[]
no_license
<?php namespace App\Repositories\Interfaces; interface IClientRepository { public function SaveClient(string $dob, string $brief, string $gender, string $skills, string $occupation, string $lastName, string $otherNames, string $username, string $email, string $phone, string $address, string $dp_image, bool $statu...
true
62d3400b6b2053f4b815de7867acb070a113ed32
PHP
kimiyao/department
/app/models/Course.php
UTF-8
337
2.65625
3
[ "MIT" ]
permissive
<?php class Course extends Eloquent { public $table; public function __construct() { $this->table = 'courses'; } public function department() { return $this->belongsTo('Department', 'department_id'); } public function instructors() { return $this->belongsToMany('User', 'instr_course', 'course_id', 'i...
true
3a0a26a93cc156860f6bda2e15f020629739124f
PHP
ButteryCrumpet/otoi
/app/tests/Parsers/ArrayMailParserTest.php
UTF-8
1,065
2.734375
3
[ "MIT" ]
permissive
<?php use PHPUnit\Framework\TestCase; use Otoi\Parsers\ArrayMailParser; class ArrayMailParserTest extends TestCase { public function testItInitializes() { $template = $this->createMock(\Otoi\Templates\TemplateInterface::class); $checker = $this->createMock(stdClass::class); $this->asse...
true
e8d08c81dcb7439c073290576c4c4ff20962dd94
PHP
orlk/hopitrepo
/src/Users/UsersBundle/Entity/Patient.php
UTF-8
6,389
2.609375
3
[ "BSD-3-Clause", "MIT" ]
permissive
<?php namespace Users\UsersBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Patient * * @ORM\Table(name="patient") * @ORM\Entity */ class Patient { /** * @var integer * * @ORM\Column(name="idPatient", type="integer", nullable=false) * @ORM\Id * @ORM\GeneratedValue(strategy="IDE...
true
48a26b836ef53aea56727916dfc5cf16841d520e
PHP
eltoraz/PUG
/server/joingame.php
UTF-8
464
2.625
3
[]
no_license
<?php //Database connection $con = mysql_connect("localhost","martin3","pickup"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("martin3_pug", $con); //Get inputed user and game $user = $_GET["user"]; $game = $_GET["game"]; //Add pair to DB, joining player to game $query = "Insert ...
true
c3b7799eafee1981d9771c8fb80e5aaed677a5d3
PHP
ultrasaber/webdev2-final
/logins/adminIndex.php
UTF-8
1,558
2.84375
3
[]
no_license
<?php require('../php-utility/connect.php'); require('verifyAdmin.php'); // Get user list. $hashQuery = "SELECT UserID, Username, Password, IsStaff FROM users"; $statement = $db->prepare($hashQuery); $statement->execute(); $userData = $statement->fetchAll(); if(isset($_GET['error'])) { if($_G...
true
e7fe9072d11c1ae6a76fab7c8ad108da36db6f23
PHP
PcComponentes/lexicographic-ranking
/tests/RankingCalculatorTest.php
UTF-8
1,709
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace PcComponentes\LexRanking\Tests; use PcComponentes\LexRanking\Exception\InvalidPositionException; use PcComponentes\LexRanking\Position\FixedEndPosition; use PcComponentes\LexRanking\Position\FixedStartPosition; use PcComponentes\LexRanking\RankingCalculator; use PcComponentes\...
true
ce255ad8032363b75ae8a86661454f1477ccdeac
PHP
rodrifarias/blog
/src/Domain/UseCase/Auth/AuthenticateUser.php
UTF-8
907
2.890625
3
[]
no_license
<?php namespace Rodrifarias\Blog\Domain\UseCase\Auth; use Rodrifarias\Blog\Domain\UseCase\Auth\Exception\InvalidUsernamePasswordException; use Rodrifarias\Blog\Domain\UseCase\Auth\InputOutputData\AuthUserCredentialsInputData; use Rodrifarias\Blog\Domain\UseCase\User\Repository\UserRepositoryInterface; class Authenti...
true
117a4af4ec7f047db862ac82e92386a92b4ae19f
PHP
Utshaw/BUET-Interplanetar-Website
/model/message.php
UTF-8
331
2.875
3
[]
no_license
<?php class Message { private $MESSAGE_ID; private $NAME; private $EMAIL; private $MESSAGE; private $FIND_SOURCE_ID; private $RECORD_CREATED; public function __get($name) { return $this->$name; } public function __set($name, $value) { $this->$name = $val...
true
10f16cc66e81d71504e5ccaa19b9e9a7ca99d454
PHP
sunnySinghD/seniorProject
/ATS Timecard/editing.php
UTF-8
595
2.921875
3
[]
no_license
<!--Backend php script for editing users in the system--> <?php include('variables/User.php'); header('Location: viewUsers.php'); session_start(); $user = new User(); // get user input from previous php form $username = $_POST['Username']; $type = $_POST['SetToType']; if ($username && $type) { // some...
true
ba3ec9af0c32e648ec451283e0d9cf08a5f06cbc
PHP
kir4ik/flabers
/core/Cleaner.php
UTF-8
1,533
3.328125
3
[]
no_license
<?php namespace core; /** * Статический класс * предоставляет статические методы с ключевым словом "filter"+ название фильтра */ class Cleaner { // дефолтный filter const FILTER_DEF = [ 'htmlspecialchars' => true, 'trim' => true ]; // очистка значения по фильтру public static fu...
true