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
a79b278c493e4c04868dae2e01cdf81f028ecb82
PHP
pressoholics/prso-clean-start-6
/plugins/multilingualpress/src/modules/Redirect/RedirectTarget.php
UTF-8
2,191
2.734375
3
[ "MIT" ]
permissive
<?php # -*- coding: utf-8 -*- /* * This file is part of the MultilingualPress package. * * (c) Inpsyde GmbH * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Inpsyde\MultilingualPress\Module\Redir...
true
68a53500fae176ed600bc6ec9df5a1e82be19d83
PHP
hi-noikiy/mini-programe-framework
/addons/longbing_card/core/extend/tencentcloud/vendor/guzzle/guzzle/src/Guzzle/Batch/FlushingBatch.php
UTF-8
676
2.96875
3
[ "MIT", "Apache-2.0" ]
permissive
<?php namespace Guzzle\Batch; class FlushingBatch extends AbstractBatchDecorator { protected $threshold = NULL; protected $currentTotal = 0; public function __construct(BatchInterface $decoratedBatch, $threshold) { $this->threshold = $threshold; parent::__construct($decoratedBatch); } public function setTh...
true
5a644bb649ffae79af83efd13c18fed357d128cb
PHP
sandisahdewo/BackendProjectD
/app/Helpers/datetime.php
UTF-8
1,121
2.890625
3
[ "MIT" ]
permissive
<?php Date::setLocale('id'); function date_now() { return Date::now(); } function date_plus($date, $counter) { return Date::parse("+$counter day"); } function date_minus($date, $counter) { return Date::parse("-$counter day"); } function date_db($date) { return Date::parse($date)->format('Y-m-d'); }...
true
656f3d5b4a8fd305cac610be02962aba6c93104c
PHP
hauserm3/hospital
/api/save_rooms.php
UTF-8
1,230
2.65625
3
[ "MIT" ]
permissive
<?php include 'settings.php'; $method = $_SERVER['REQUEST_METHOD']; if($method == 'GET'){ $id_room = array(); $room_id = array(); $rooms = json_decode(file_get_contents(Settings::$rooms_path)); foreach ($rooms -> rooms as $value){ $id_room[] = $value -> ID; } $room_ip_id = json_decod...
true
bccb1f981c0b9a29f987b33c1639837932c3325a
PHP
h-hamano/shifter-local_test
/volume/app/plugins/wppusher/Pusher/License/LicenseManager.php
UTF-8
1,053
2.609375
3
[ "LicenseRef-scancode-unknown-license-reference", "GPL-2.0-only", "Apache-2.0" ]
permissive
<?php namespace Pusher\License; class LicenseManager { /** * @var LicenseApi */ private $client; /** * @param LicenseApi $client */ public function __construct(LicenseApi $client) { $this->client = $client; } public function licenseKey() { $key = g...
true
552506639497009bea1e63ee5798239ac583f73e
PHP
mauriciocartagena/GranjaAvicola-php
/modelo/GalponModelo.php
UTF-8
1,330
2.71875
3
[]
no_license
<?php class GalponModelo{ function __construct(){ $this->pdo = new Conexion(); } public function insert($nombreGalpon){ $sql = 'INSERT INTO Galpones (nombreGalpon) Values(?)'; return $this->pdo->insertGetId($sql, array( $nombreGalpon)); } public function selectByName($nombreGalpon){ $sql = "SELECT idG...
true
4b25344ce52512609fd2c9dac0398a0d017da6af
PHP
AsukaRay/kadai-tasklist
/app/Http/Controllers/TasklistsController.php
UTF-8
3,104
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Tasklist; class TasklistsController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $dat...
true
e38f16de16f4277e5edcf9b8aeb459d2300ef32d
PHP
fcrsecurity/CMS-React
/src/CraftKeen/FCRBundle/Provider/RetailArtTranslationProvider.php
UTF-8
1,338
2.515625
3
[]
no_license
<?php namespace CraftKeen\FCRBundle\Provider; use Symfony\Bridge\Doctrine\ManagerRegistry; use CraftKeen\FCRBundle\Entity\RetailArt; use CraftKeen\CMS\AdminBundle\Entity\Language; use CraftKeen\Bundle\TranslationBundle\Registry\TranslationProviderInterface; /** * Property Translation Provider */ class RetailArtTra...
true
ef32de68895d948c3c8162334d1ded0a35b0124c
PHP
franzose/domain-stuff
/src/Event/PublishesEvents.php
UTF-8
434
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Franzose\DomainStuff\Event; trait PublishesEvents { private $domainEvents = []; /** * @return array|Event[] */ public function releaseEvents(): array { [$released, $this->domainEvents] = [$this->domainEvents, []]; return $released; ...
true
d4ce3107c0ebdd243bc1aebad10569d9d21d5a13
PHP
latenitesite/material-design-wp-theme
/inc/template-tags.php
UTF-8
6,572
2.734375
3
[ "GPL-1.0-or-later", "MIT", "Apache-2.0", "GPL-2.0-or-later" ]
permissive
<?php /** * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
true
cb3942360c9375fa6d73980c30079cbcc0c3ad8d
PHP
hazukyon/TECH-BASE
/mission_3-3.php
UTF-8
2,327
3.328125
3
[]
no_license
<!DOCTYPE html> <html lang = “ja”> <head> <meta charset="utf-8"> </head> <body> <!-名前、コメント入力欄と送信ボタン、削除番号入力欄と削除ボタンのフォーム-> <form action = "mission_3-3.php" method = "post"> 名前:<br /> <input type="text" name="name" size="30" value="" /><br /> コメント:<br /> <input type="text" name="comment" size="30" value="" /><br...
true
f35abc64ea6a682a078101d90ae1bd5f71f6f156
PHP
rsanchez/Deep
/tests/functional/AbstractModelSaveTest.php
UTF-8
4,167
2.71875
3
[ "MIT" ]
permissive
<?php use rsanchez\Deep\Model\Model; use Symfony\Component\Translation\Translator; use rsanchez\Deep\Validation\Factory as ValidatorFactory; use rsanchez\Deep\Validation\DatabasePresenceVerifier; abstract class AbstractModelSaveTest extends PHPUnit_Framework_TestCase { /** * {@inheritdoc} */ protect...
true
ba65aea5694e44722feca96ee1214cdfa3b4da37
PHP
danklassen/consh
/commands/help.php
UTF-8
1,112
3.078125
3
[]
no_license
<?php /** * output help * * @author Dan Klassen <dan@triplei.ca> * @package Commands * @since 0.2 */ class Help extends Command { public function __construct() { $this->name = "Help"; $this->description = "Display help about a command"; $this->help = "Run consh help <command> to ...
true
072dfbd7204daab527e262ad754808e56fed43c2
PHP
endaniel1/Segundo_Proyecto_Laravel
/app/Category.php
UTF-8
1,111
3.09375
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Category extends Model { //aqui creamos un atributo q se llama el nombre de la tabla protected $table = "categories"; //y otro q seria q carga los objetos Json permitidos para este modelo protected $fillable = ["name"]; //para ...
true
444bd4abf09c1ac8931383d5400d9fd6e350a698
PHP
MaximPereginka/velosophers
/database/migrations/2016_06_10_042915_create_user_type_table.php
UTF-8
986
2.671875
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUserTypeTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('user_type', function (Blueprint $table) { ...
true
70d98c46c4e86b308a2d2b553c8e19dac24f0d1a
PHP
NanoSoup/Nemesis
/src/ACF/FlexibleContent.php
UTF-8
1,205
2.65625
3
[]
no_license
<?php namespace NanoSoup\Nemesis\ACF; /** * Class FlexibleContent * @package NanoSoup\Nemesis\ACF */ class FlexibleContent extends BaseFields { /** * FlexibleContent init. * * Pass through the prefix of the field group along with the * min and max number of layouts * * @param $arg...
true
94990d5600df83dc11b02929f271cba5e4bcbfa5
PHP
darknrgy/avr_testing
/moodlamp/test.php
UTF-8
400
2.921875
3
[]
no_license
<?PHP define('RANGE', 512); $color = array(0,0,0); $offsets = array(0, RANGE * (2/3), RANGE * (4/3)); for (;;){ $a++; for ($phase = 0; $phase < 3; $phase ++){ $color[$phase] = abs(( ($a + $offsets[$phase]) % (RANGE * 2)) - RANGE) - RANGE/3; if ($color[$phase] < 0) $color[$phase] = 0; echo ...
true
b3d627e8404eb26aa3c2f4d3e5ef179c4ded2a20
PHP
sepans/010011
/search_table.php
UTF-8
1,155
2.703125
3
[]
no_license
<?php MySQL_connect("sepans.com", "sepan0_chrsmnn", "letmein11"); $link = MySQL_select_db("sepan0_chrsmnn"); $word = "borges"; if (!$link) { die('Not connected : ' . mysql_error()); } $query = "SELECT id, title , body, MATCH ( title, body ) AGAINST ( '$word' ) AS score, CONCAT_WS( ' ', ...
true
2b233fba3343a234a9becdfc5107da30ca0020f3
PHP
hswno/kofradia
/app/pages/bydeler.php
UTF-8
28,104
2.546875
3
[]
no_license
<?php class page_bydeler extends pages_player { /** * Energi for å reise med taxi */ const TAXI_ENERGY = 1000; const TAXI_PRICE_KM = 20000; const TAXI_POINTS_KM = 5; // multiplisert med ranknummer const GTA_ENERGY_LOW = 100; // energi avhengig av skade på bil const GTA_ENERGY_HIGH = 3000; const GTA_PRIC...
true
d03b94cd19460929c2bd43bb29bc2a023e821ecb
PHP
YuJiunLiu/seeding-lab-assets
/database/seeds/PostTableSeeder.php
UTF-8
755
2.734375
3
[]
no_license
<?php use Illuminate\Database\Seeder; class PostTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { //這是用Model的語法 \App\Post::truncate(); //這是使用比較正規的語法 //DB::table('posts')->truncate(); $faker = \Faker\Fa...
true
9ef9e183507a27fe91c7d1d8b7ba5a614ae2c4e2
PHP
mitchell-merry/twa_project
/allTables.php
UTF-8
2,538
3.25
3
[]
no_license
<?php /** * Allows one to view all tables and their data in a database */ require_once("conn.php"); $sql = "SHOW TABLES"; $tables = $dbConn->query($sql); $tablesAndTheirData = array(); while($tableName = $tables->fetch_array()) { $sql = "SELECT * FROM $tableName[0]"; $data = $dbConn->query($sql) or die ('Problem w...
true
b05884a117ee5dc70ff801d0e6bd33bcb85b19ff
PHP
teunissenstefan/topdesk
/web/models/incident.php
UTF-8
7,181
3.171875
3
[]
no_license
<?php class Incident { public $id; public $melder; public $melding; public $aangemaaktdoor; public $behandelaar; public $status; public $prioriteit; public $gesloten; public $hardware; public $software; public $datum_aangemaakt; public $datum_update; ...
true
723311bf3cebc8ad238ead2ea7a5a2b54c13aad8
PHP
wifidu/yl.back
/database/migrations/2020_03_25_092523_create_material_in_table.php
UTF-8
1,405
2.515625
3
[ "Apache-2.0" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateMaterialInTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('material_in', function(Blueprint $table) { $table->increments('id'); ...
true
c014fc747606a79db5e3383a6aeb1bd257b7f534
PHP
stubbles/stubbles-1.x
/src/test/php/net/stubbles/ipo/request/filter/stubFloatFilterTestCase.php
UTF-8
2,523
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Tests for net::stubbles::ipo::request::filter::stubFloatFilter. * * @package stubbles * @subpackage ipo_request_filter_test * @version $Id: stubFloatFilterTestCase.php 2320 2009-09-14 08:34:11Z mikey $ */ stubClassLoader::load('net::stubbles::ipo::request::filter::stubFloatFilter'); /** * Te...
true
e8dd98c922a830a81458a6de08eba050332e79df
PHP
fredriley/Globalhealth
/application/views/auth/profile_view.php
UTF-8
723
2.515625
3
[]
no_license
<div id="infoMessage" class="error"><?php echo $message;?></div> <p>This is your current user profile:</p> <p>User ID: <?php echo $id; ?></p> <p>Username: <?php echo $username; ?></p> <p>Email: <?php echo $email; ?></p> <p>First name: <?php echo $firstname; ?></p> <p>Last name: <?php echo $lastname; ?></p> <p><a href=...
true
0f61134c229a182e3717553ff81a4fd802041766
PHP
nhlm/calc
/src/InboundValue.php
UTF-8
568
2.859375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * CLI Calculator Project * * (c) 2018 by overwatch * * @author Matthias "Overwatch" Kaschubowski <https://nhlm.icu> * @package nhlm.Calculator */ namespace Calculator; use Calculator\Contracts\InboundValueInterface; use Calculator\Abstracts\AbstractValue; class ...
true
7920dc400d59253b183e1884670505a5700140c9
PHP
dylanbui/ducbui-cms
/library/Digitalus/View/Helper/general/RenderAlert.php
UTF-8
1,695
2.59375
3
[]
no_license
<?php class Digitalus_View_Helper_General_RenderAlert { /** * comments */ public function RenderAlert() { // $m = new Digitalus_View_Message(); $m = Digitalus_View_Message::getInstance(); // $ve = new Digitalus_View_Error(); $ve = Digitalus_View_Erro...
true
372fef513c14d153c61716c624e44e18c6a07bf1
PHP
chatterjeeshekhar/ap2019
/ajax/swapimg.php
UTF-8
823
2.609375
3
[]
no_license
<?php include '../session.php'; $id = $_REQUEST['id']; $a = $_REQUEST['a']; $b = $_REQUEST['b']; $t = $_REQUEST['t']; $img = mysqli_fetch_assoc(mysqli_query($con, "select images from listings where uniquekey='$id'"))['images']; //echo $img."<br>"; $img = explode(", ", $img); if($t==1){ if($a>0 && $b<=count($...
true
672a1c2e868762c69a39f81169d33c263d194213
PHP
lulco/phoenix
/testing_migrations/phoenix/21000000000000_check.php
UTF-8
5,652
2.546875
3
[ "MIT" ]
permissive
<?php namespace Phoenix\TestingMigrations; use Exception; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\Table; use Phoenix\Migration\AbstractMigration; class Check extends AbstractMigration { public function up(): void { $rowZero = $this->fetch('phoenix_log', ['*'], ['id' => 0]); ...
true
a784b71491346921de1d5dcdb992c32e5a1594dc
PHP
salted-herring/saltedherring-silverstripe
/app/src/Extensions/SortOrder.php
UTF-8
511
2.65625
3
[]
no_license
<?php /** * SortOrder * @author Simon Winter <simon@saltedherring.com> * * Add SortOrder field & orders records on a model. * * */ namespace App\Web\Extensions; use SilverStripe\Forms\FieldList; use SilverStripe\ORM\DataExtension; class SortOrder extends DataExtension { private static $db = [ 'SortO...
true
e3eb61618ea4c555fd989c058b4ba35e4b2c5dfb
PHP
stefanob26/Interlogica
/dolci_capricci/database/seeders/SweetsTableSeeder.php
UTF-8
1,612
2.640625
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use App\Models\IngredientsList; use App\Models\Sweet; use Faker\Factory; use Illuminate\Database\Seeder; class SweetsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { //Rimuove tutti i reco...
true
8755fac3bfdd6bfa19de00d7475b4c53018fdf78
PHP
coderlee/one
/src/Cache/SessionHandler.php
UTF-8
955
2.796875
3
[ "Apache-2.0" ]
permissive
<?php namespace One\Cache; use One\Facades\Cache; class SessionHandler implements \SessionHandlerInterface{ private $prefix = 'vic_sn_' ; private $expire_time = 1200; /** * Session constructor. * @param int $expire_time 过期时间 */ public function __construct($expire_time) { ...
true
24a0d3c244d4b7f2ed14611af80a27dbd616b8d1
PHP
skyhilam/clover-tg
/src/CloverTg.php
UTF-8
2,533
2.765625
3
[ "MIT" ]
permissive
<?php namespace Clover\CloverTg; use Clover\CloverTg\Traits\AttributesTrait; use GuzzleHttp\Client; use GuzzleHttp\Exception\ClientException; class CloverTg { use AttributesTrait; protected $client; public function __construct() { $this->token(config('clover-tg.token')); $this->client = new Client...
true
64056dc3993a1dd53a911c6bbfad4a90f5b43afd
PHP
Uriel-Medina05/github-upload
/obrapublica/php/prueb.php
UTF-8
1,664
2.640625
3
[]
no_license
<?php require 'obrapublica/php/modeloObra.php'; //$folio = $_POST["folio"]; $folio =$_GET['folio']; $consulta = 'SELECT * FROM obrapublica.obp WHERE folio='.$folio; echo $consulta; echo ($_FILES["file"]["type"]); //tomo lo proveniente del forObr if(isset($_FILES["file"]["type"])){ //Cond...
true
61c292ccf352f957aa3d5456a26227c6f391b547
PHP
AlexandrPuryshev/advanced-comments
/console/migrations/m161225_181536_post.php
UTF-8
1,218
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php use yii\db\Migration; use common\models\base\PostBase; class m161225_181536_post extends Migration { public function safeUp() { $this->createTable('{{%post}}', [ 'id' => $this->primaryKey(), 'title' => $this->string()->notNull(), 'anons' => $this->text()->not...
true
285ed35743cf5c00870aa9203996829aacd0eb37
PHP
hollodotme/analyze-github.org
/src/Infrastructure/Adapters/Http/AbstractHttpRequest.php
UTF-8
1,259
3.09375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace hollodotme\GitHub\OrgAnalyzer\Infrastructure\Adapters\Http; use hollodotme\GitHub\OrgAnalyzer\Infrastructure\Interfaces\ProvidesRequestData; abstract class AbstractHttpRequest implements ProvidesRequestData { /** @var string */ private $url; /** @var array */ private $he...
true
21348b56002ad0b652162f52af75eeae250605d9
PHP
websho/jack-jons
/multiversum/model/DataHandler.php
UTF-8
1,755
3.21875
3
[]
no_license
<?php class DataHandler { public $conn; /* connectie naar database */ function __construct($servername, $username, $password, $database_naam) { try { $this->conn = new PDO("mysql:host=$servername;dbname=$database_naam", $username, $password); // set the PDO error mode ...
true
ad55c0f0ad48745ed7fdfd30df8e138143a51c9c
PHP
WF3HBA/hebya
/src/Entity/Provider.php
UTF-8
3,005
2.953125
3
[ "MIT" ]
permissive
<?php namespace Entity; class Provider { /** * * @var int */ private $idprovider; /** * * @var string */ private $lastname; private $firstname; private $company; private $summary; private $description; private...
true
82b2edf94f9e5974af59e8668beae45184f80ca1
PHP
gabrielsilvagit/teste-php-puro
/EditarCliente.php
UTF-8
2,563
2.828125
3
[]
no_license
<?php require 'config.php'; session_start(); if(isset($_SESSION['id'])){ //Se ñ estiver sem id de sessão continua na pagina }else{//Caso contrario, destroi a sessão e redireciona para index.php header("Location: Index.php"); session_destroy(); } if (isset($_GET['id']) && empty($_GET['id']) == false){ $id = add...
true
bde0266eec28558f7e5cdcffa8c3ffff7e19e928
PHP
ashishakya/test
/update.php
UTF-8
1,369
2.8125
3
[]
no_license
<?php include 'header.php';?> <b>ENTRY OF EXISTING PRODUCT</b><hr> <form method="POST" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>"> <select name="product"> <option value="0">Choose...</option> <?php include 'connection.php'; $sql = "SELECT * FROM `tbl_inventory`"; $run = m...
true
76b1b0953d2cf1c0b3d6b9a266b38bd71ab580fa
PHP
omusico/jingbo
/led_web/system/models/auto_order_plan.php
UTF-8
884
2.6875
3
[]
no_license
<?php defined('SYSPATH') OR die('No direct access allowed.'); class Auto_order_plan_Model extends ORM { /** * Validates and optionally saves a new user record from an array. * * @param array values to check * @param boolean save the record when validation succeeds * @return boolean */ public static...
true
eb98fd043a40e20251fbcb8555efbb813b781ca4
PHP
Pierre90/symfony
/src/UserBundle/Entity/User.php
UTF-8
2,643
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: pierre * Date: 9/18/17 * Time: 10:42 AM */ namespace UserBundle\Entity; use FOS\UserBundle\Model\User as BaseUser; use Doctrine\ORM\Mapping as ORM; /** * Class User * @package UserBundle\Entity * * @ORM\Entity() * @ORM\Table(name="user") */ class User extends BaseUs...
true
4be2b531b99ba7f475697499b156b2bff32ac89c
PHP
Ti-webdev/pQL
/tests/pql_driver_pdo_mysql_test.php
UTF-8
4,403
2.625
3
[]
no_license
<?php require_once dirname(__FILE__).'/bootstrap.php'; class pQL_Driver_PDO_MySQL_Test extends pQL_Driver_PDO_Test_Abstract { function __construct() { $this->db = new PDO('mysql:host=localhost;dbname=test', 'test', 'test'); parent::__construct(); $this->tearDown(); } function testFindByPk() { $this->db->e...
true
ec435d36ad6660f3ff275b25ac0bac2ec03ee20e
PHP
albert4git/bTest
/DODO10/php1SQli.php
UTF-8
410
2.5625
3
[]
no_license
<?php /** * Short description for php10sel.php * * @package php10sel * @author red <red@red-Swift-SF113-31> * @version 0.1 * @copyright (C) 2019 red <red@red-Swift-SF113-31> * @license MIT */ $db = new SQLite3('./dodo10.db'); $stmt = $db->prepare('SELECT * FROM people WHERE id=:id'); $stmt->bindValue(':id', ...
true
c0cb7cb9cdd533632ead427cf8e4f5341efb971f
PHP
AfroBiscuit/CITS2232-Project-CL
/display_offices.php
UTF-8
724
2.84375
3
[]
no_license
<?php $connection = mysqli_connect('cits2232db.uwac2g.com', '20927611', '20927611'); mysqli_select_db($connection, "test"); $id = mysqli_query($connection, "SELECT userID FROM staff"); $query = "SELECT officeCode, name FROM offices"; //You don't need a ; like you do in SQL $result = mysqli_query($connection, $query);...
true
929c4276dea61a819f35f739530c3b4c34efff55
PHP
fracz/refactor-extractor
/results/gabordemooij--redbean/6b8e75d8366a4fbe16810531e50b84066f46eb18/after/Search.php
UTF-8
2,112
2.75
3
[]
no_license
<?php class RedBean_Mod_Search extends RedBean_Mod { /** * Fills slots in SQL query * @param $sql * @param $slots * @return unknown_type */ public function processQuerySlots($sql, $slots) { $db = $this->provider->getDatabase(); //Just a funny code to identify slots b...
true
5efc53b8359f719ab8dbc4a9f67e2d6644f33fc9
PHP
Alldebrid/alldebrid-php
/examples/magnets.php
UTF-8
4,300
2.671875
3
[ "MIT" ]
permissive
<?php /* Magnets methods, as documented here https://docs.alldebrid.com/v4/#magnet You can use this library with links in 2 ways : 1. With api methods directly 2. With magnet helper ( $alldebrid->magnet() ) and work with the Magnet object */ // /!\ /!\ This code is only to show how it works, i...
true
792c5d71d7b265237a99287e7bc1975103ea1e55
PHP
ProjetTechnoWeb/ToulouseCulture
/Models/messageManager.php
UTF-8
1,455
3.109375
3
[]
no_license
<?php require_once("connect.php"); require_once("Modules/message.php"); // Définition d'une classe permettant de gérer les quartierd // en relation avec la base de données class MessageManager { private $_db; // Instance de PDO - objet de connexion au SGBD // Constructeur = initialisation de ...
true
294a48281946aa6d9eee10427360ba641bf5f47a
PHP
RodionGork/TrollCms
/module/auth/BasicAuth.php
UTF-8
383
2.671875
3
[]
no_license
<?php namespace module\auth; class BasicAuth extends Auth { // data should be password function login($username, $data) { if ($username != 'admin' || $data != 'secret') { return false; } return parent::login($username, $data); } function check($role) { ...
true
55127d6332e944d372c8d0f1831270ec507bab24
PHP
chlandin/photo_gallery
/photo_gallery/public/admin/test.php
UTF-8
882
2.5625
3
[]
no_license
<?php require_once '../../inc/initialize.php'; /* if (!$session->is_logged_in()) { redirect_to("login.php"); } */ ?> <?php include_layout_template('admin_header.php'); ?> <?php // create /* $user = new User(); */ /* $user->username = "johnsmith"; */ /* $user->password = "abcd12345"; */ /* $user->first_name =...
true
9fd1ec41ca71c995436d81602fc6262c99658d89
PHP
meghaus/presentationUpload
/insert.php
UTF-8
5,938
2.671875
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> <script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script> </head> <body> <?php define('D...
true
f4b303dba148711c54004b7593177f255d550a0a
PHP
mikael308/webb
/src/database/Parse.php
UTF-8
3,886
2.546875
3
[]
no_license
<?php namespace Web\Database; require_once PATH_ROOT_ABS."database/database.php"; require_once PATH_ROOT_ABS."database/Read.php"; require_once PATH_ROOT_ABS."database/dao/News.class.php"; require_once PATH_ROOT_ABS."database/dao/ForumPost.class.php"; require_once PATH_ROOT_ABS."database/dao/ForumSubject.class.php"; re...
true
de572d1ce11e7d9e996bb1ee6b586b0619e8eff8
PHP
supriyaghumatkar/chatbot
/email.php
UTF-8
2,073
2.765625
3
[ "MIT" ]
permissive
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ //ini_set('display_errors', true); //error_reporting(E_ALL); if(isset($_POST['Action']) && $_POST['Action']=='SendMail' && !emp...
true
4b42f26a0a404c89b060f8ce1f060d388cd4d0ab
PHP
albertusk95/ARC-Task-4
/ADD-ADMIN-GUEST.php
UTF-8
767
2.546875
3
[]
no_license
<?php include "DATABASE-ADMIN-GUEST.php"; include "TABEL-ADMIN-GUEST.php"; $username = addslashes(strip_tags ($_POST['USERNAME_LOGIN'])); $password = addslashes(strip_tags ($_POST['PASSWORD_LOGIN'])); if ($username && $password) { if ($username=="Admin" && $password=="123") { echo "LOGIN sebagai : AD...
true
e99534b57c3254af4c99d3ae922a8d2cd74889ff
PHP
ciniki/fatt
/docs/nousedofferingRegistrationAdd.php
UTF-8
3,287
2.59375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php // // Description // =========== // This method will update an offering registration and the connected invoice item. // // Arguments // --------- // api_key: // auth_token: // tnid: The ID of the tenant the offering is attached to. // // Returns // ------- // <rsp stat='ok' /> // function ciniki_fatt_offerin...
true
1014740a695a51dc63e6d9c8cc30ce8af61ea1cc
PHP
cartlemmy/yibblepoint
/inc/exporters/class.email-to.php
UTF-8
1,305
2.546875
3
[ "JSON" ]
permissive
<?php class exporterEmailTo { private $ref; private $uid; private $file; private $labels = array(); private $fp = false; private $outputted = false; function __construct($uid = false) { if ($uid) { $this->uid = safeFile($uid); $this->file = $GLOBALS["slSession"]->userFilePath($this->uid,"text/plain");...
true
f4722affed9fabab703dde9fef9f84f8aec6a575
PHP
gerlik/veeb
/raamat_vorm.php
UTF-8
2,093
2.96875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Gerli * Date: 08/01/2018 * Time: 12:37 */ function raamatuVorm(){ echo ' <form action="'.$_SERVER['PHP_SELF'].'" method="post"> Pealkiri: <input type="text" name="title"><br /> Autor: <input type="text" name="author"><br /> T...
true
0f057a10c88cc961a7c48aa1acd1ae277bcabe5b
PHP
Monopond/fax-api-client-php
/MonopondSOAPClient.php
UTF-8
26,671
2.578125
3
[]
no_license
<?php class MonopondSOAPClientV2_1 { private $_username; private $_password; private $_wsdl; private $_SoapClient; private $_strWSSENS = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"; function __construct($username, $password, $wsdl) { // Setup mono...
true
8da24e77b5a8953725e280ca7c3e1537c86bac74
PHP
Bling-SH/php-pp-elektroniczny-nadawca
/src/StructType/SzczegolyDeklaracjiCelnejType.php
UTF-8
6,451
2.90625
3
[]
no_license
<?php namespace Bling\PocztaPolska\ElektronicznyNadawca\StructType; use WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for szczegolyDeklaracjiCelnejType StructType. */ class SzczegolyDeklaracjiCelnejType extends AbstractStructBase { /** * The zawartosc. * * @var string */...
true
e8e87d3e389907fde02a7e84327e1de1f72de834
PHP
alexistraen/exos_php
/P01_Variables/Exo3/index.php
UTF-8
616
3.5625
4
[]
no_license
<!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Exo 3</title> </head> <body> <div> ## Exercice 3 Créer une variable **km**. L'initialiser à 1. Afficher son contenu. Changer sa valeur p...
true
8444d80a71c0bb2692bc3f710e9ff7a47c68f25b
PHP
blink38/domopi
/classes/Configuration.php
UTF-8
5,096
2.90625
3
[]
no_license
<?php /** * Classe de gestion de la configuration */ class Configuration extends BaseClass{ private $configfile; private $cfg_modes = null; private $cfg_progs = null; private $cfg_sensors = null; private $cfg_debug = null; private $cfg_gpio = null; private $cfg_actions = null; private $cfg_stats = nu...
true
523dabdcc3fa4b03158114c16390c281df4453e1
PHP
hamatiq/workv1.5
/getjob.php
UTF-8
4,190
2.625
3
[]
no_license
<?php // print $_GET['stock']; $stock = intval($_GET['stock']); // print $stock; require "db.conf"; $mysqli = new mysqli($dbhost, $dbuser, $dbpass, $dbname); if ($mysqli->connect_error) { die('Connect Error (' . $mysqli->connect_errno . ') ' . $mysqli->connect_error); } else{ $query = "SELECT * FRO...
true
5d46feb2e6ed5c0c4d779f343d3543bf89b99afc
PHP
SiulOrutra96/ChatBotMeza
/bot_messenger/bot.php
UTF-8
653
2.59375
3
[]
no_license
<?php include 'FbBot.php'; error_log('Entro aqui',3, "error_log"); $access_token = "EAAJ0gIC8ZC8ABAKeMBgWxmo2gXQ4KawcUUkOwNbwQFUZA9f2MDXHHhvLzseesB7sTZB24RycNLp4A7Qq0bOX7A3U4ZBx7dyNjEZBm8TPAXBdJ3VONZBe29tZBZCstOB1K9JhEPhbcCgwLfkdhsUrMsYHKfzG0HWZBmoll8ZBqmqQ2QOwZDZD"; $verify_token = "icibot2018"; $hub_verify_token = n...
true
520b0dcbab96eb7fbcf92a136cedb3fbe7d670e6
PHP
lucasmichel/cartorioOnline
/modulos/administrativo/cadastro/classes/basicas/Congregacao.php
UTF-8
1,863
3.0625
3
[]
no_license
<?php // codificaçao utf-8 class Congregacao{ private $id; private $descricao; private $endereco; private $telefone; private $fax; private $status; private $observacao; private $responsavel; public funct...
true
81228a049b953ccb822ae950388a373a541e7a6b
PHP
HoangNhatNam/DoAnChuyenNganh
/app/Http/Requests/PartnerAddRequest.php
UTF-8
1,081
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class PartnerAddRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get...
true
e2c8fe6ba616337cacc3b090cfe1eff9e109c67e
PHP
TTFX/php
/app/loansys/app/sysadm/controllers/RoleController.php
UTF-8
1,793
2.546875
3
[]
no_license
<?php class RoleController extends Controller { public static function actions() { return [ 'see' => ['list'=>'角色列表'], 'opera' => ['add' => '添加角色', 'edit' => '修改角色'] ]; } public static function authorities() { return [ 'role' => [ 'name' => '角色管理', 'authorities' => [ 'see' => '查看', ...
true
cb055c2482699b5c8e26c5a7ab647238d11e2492
PHP
M4RC3L05/fp-php
/src/lists/dropLastWhile.php
UTF-8
833
3.359375
3
[ "MIT" ]
permissive
<?php namespace FPPHP\Lists; use function FPPHP\utils\isAssoc; /** * * dropLastWhile: (x -> bool) -> [x] -> [x] * * Returns a new array less the last n elements satisfy with * the perdicate * * @param callable $perdicate * @param int $dropNum * @param array $list * @return array * */ function dropL...
true
98b46618a6a23b9eee4ba69195ae145c2e152a20
PHP
TheMoxyOx/MoxyHub
/copper/system/classes/upload.php
UTF-8
4,891
3.078125
3
[]
no_license
<?php /** * Upload class * $Id$ */ abstract class Upload { // ATTENTION! // You need to provide this array in subclasses, for the mimetype check to work. protected $valid_mimetypes = array(); // if you want files to be uploaded to a specifc directory, then set this: // protected $path_suffix = '/avatar'; c...
true
a5c596e4eea17679fcc535a4b3ea21a893f8f4e5
PHP
franmedi99/tecnica3
/BACK/ADMIN/sadmin/CRUD/crear/user.php
UTF-8
2,550
2.578125
3
[]
no_license
<?php session_start(); if(!isset($_SESSION['roles'])){ header('location: ../../../../LOGIN/index.php'); } if($_SESSION['roles'] >=2){ header('location: ../../../../LOGIN/index.php');} if($_SESSION['roles'] <=0){ header('location: ../../../../LOGIN/index...
true
74beec6c3725fa87ba3d758d0707b13f55fc6988
PHP
feleonhardt/IFC-TI
/programacao/Prova/ex.php
UTF-8
3,396
2.65625
3
[]
no_license
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="css/estilo.css"/> <link href="https://fonts.googleapis.com/css?family=Indie+Flower" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Titillium+Web" rel="stylesheet"> <meta charset="UTF-8"/> <title>Prova</title> <styl...
true
25734a2cd8ee8bc648fcf862510bd3cfb65de3e5
PHP
jtm0609/SignUp-Login-php
/login.php
UTF-8
1,130
2.609375
3
[]
no_license
<?php $host='localhost'; $username='root'; $password='0609'; $dbname='user'; $conn=mysqli_connect($host, $username, $password, $dbname); <?php $host='localhost'; $username='root'; $password='0609'; $dbname='user'; $conn=mysqli_connect($host, $username, $password, $dbname); if(!$conn){ echo "...
true
2fad768e9292383e147ff8cb7fd530c0f8c81440
PHP
wsdigital/jb_open_source_projects
/index.php
MacCentralEurope
5,799
2.609375
3
[]
no_license
<?php require_once('Connections/conn.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = ...
true
18cb5fa594c43a8e5dc4e7d4f8257add5c72b58c
PHP
jstewmc/active-resource-model
/src/Api/Request/Update.php
UTF-8
416
2.65625
3
[ "MIT" ]
permissive
<?php namespace Jstewmc\ActiveResourceModel\Api\Request; /** * An update request interface * * @author Jack Clayton * @copyright 2015 Jack Clayton * @license MIT * @since 0.1.0 */ interface Update extends Request { /* !Public methods */ /** * Sets the request's data * * @param mixed[] ...
true
a0816e161fc3ad98a272744876c717cc7beda2d7
PHP
bunnywong/lunch-together
/app/controllers/AuthController.php
UTF-8
1,805
2.6875
3
[]
no_license
<?php class AuthController extends \BaseController { public function index() { if (Auth::check()) { return Redirect::route('home.index')->with('success', 'Login success'); } return View::make('login.index'); } public function process() { $validator = Validator::make(Input::all(), [ 'us...
true
4584f5c6fc1b8e54018a8dcc5899b2cb66b7554d
PHP
zamasskin/html-constructor
/src/HtmlConstructor/Tags/InlineTextSemantics/Data.php
UTF-8
794
2.953125
3
[ "MIT" ]
permissive
<?php namespace HtmlConstructor\Tags\InlineTextSemantics; use HtmlConstructor\BaseTag; use HtmlConstructor\Tag; use HtmlConstructor\Traits\Struct; class Data extends BaseTag implements Tag { use Struct; public function getName() { return "data"; } public function __construct($value = f...
true
ebee59620df0d10509dbd9ee40a8d5d2c960d9ff
PHP
ryuatnorcal/php_blog
/blog_article.php
UTF-8
2,753
2.65625
3
[]
no_license
<?php $username="database"; $password="sky306"; $database="mysql_db"; $server="ryu.keepskatinbro.com"; $perpage = 1; // Init DB mysql_connect($server, $username, $password) or die("Epic FAIL!"); mysql_select_db($database); function createID($page) { $query = "SELECT posterID"; } function select ($pa...
true
779cdbf7d790755b946728c26d72d52cbb5b83fa
PHP
ASDAFF/additional.bitrix
/lib/User/UserGroupHelper.php
UTF-8
1,151
2.75
3
[]
no_license
<?php namespace InetSys\Main; use Bitrix\Main\GroupTable; use InetSys\User\Exception\GroupNotFoundException; /** @deprecated */ class UserGroupHelper { /** * @var array */ static $groupIdByCodeIndex; /** * Возвращает id группы пользователей по её коду * * @param string $stringId...
true
c6d281e75670965dc1fa84b12549273d86db3519
PHP
MotionlabMarketing/Motionlab-ninja-forms-zoho
/includes/Classes/Process.php
UTF-8
5,294
2.640625
3
[]
no_license
<?php /** * Handles the Process method of the Action * * Given the action_settings, data, and form id * @author stuartlb3 */ class ZohoCRM_Process { /** * Form Action Settings * @var array */ protected $action_settings; /** * Form ID of fired action * @var string */ ...
true
7bd6b39e18d623f34c7796d27b1af01b35403bc6
PHP
tondol/Calendar
/delete.php
UTF-8
579
2.65625
3
[]
no_license
<?php require_once 'config.php'; require_once 'schedules.php'; function main() { $schedulesTable = new SchedulesTable(); if (isset($_REQUEST['id'])) { $id = intval($_REQUEST['id']); $schedule = $schedulesTable->selectWithId($id); if (!$schedule) { header('Location: index.php'); } $year ...
true
2a6a176e8f9a2cf58fbb1c8b7b8294d522bc2ec9
PHP
designsecurity/progpilot
/projects/tests/tests/real/wordpress1/wp-commentsrss2.php
UTF-8
2,710
2.5625
3
[ "MIT" ]
permissive
<?php require_once('wp-config.php'); /* class wpdb { } $wpdb = new wpdb; */ if (is_single() || is_page()) { $comments = $wpdb->get_results("SELECT comment_ID, comment_author, comment_author_email, comment_author_url, comment_date, comment_date_gmt, comment_content, comment_post_ID, $wpdb->pos...
true
2bdf4ec0cbf619e4bd4be05d4aff470ff51758c9
PHP
stombaker/tele
/Model/Dto/ChaineDTO.php
UTF-8
2,651
2.921875
3
[ "MIT" ]
permissive
<?php namespace Model\Dto; class ChaineDTO { use Hydrator; /** @var int */ private $chaineId; /** @var string */ private $nomChaine; /** @var string */ private $adresse; /** @var string */ private $code_postal; /** @var string */ private $ville; /** @var string */ p...
true
3b2d15996c4d89ac9932c122869d3b6978c34146
PHP
enamba/janamesa
/application/models/DbTable/Prompt/Nr.php
UTF-8
2,264
2.796875
3
[]
no_license
<?php /** * Prompt Nr * @author vpriem */ class Yourdelivery_Model_DbTable_Prompt_Nr extends Default_Model_DbTable_Base{ /** * Table name * @var string */ protected $_name = 'prompt_nr'; /** * Primary key name * @var string */ protected $_primary = 'id'; /** ...
true
651dcf404203f39108a1e96d8b3f9f564d975f2a
PHP
jl-3/kidstube-web
/app/Category.php
UTF-8
1,432
2.625
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Category extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'name', 'thumbnail', 'user_id' ]; /** * Returns the author who created this video cate...
true
5bd17c36b18963dd410299e229f17eecd5cac860
PHP
collegefb/collegefb
/src/Services/Conference/UpdateConference.php
UTF-8
654
2.578125
3
[ "MIT" ]
permissive
<?php namespace CollegeFB\Services\Conference; use CollegeFB\Services\ConferenceAbstract; class UpdateConference extends ConferenceAbstract { public function run(array $options) { $conference = $this->factory->conferenceEntity($options); if ((false === $conference->hasId()) || (false === $th...
true
0ff4b726fd725118d7c3a7972cdc4d3bb08e619a
PHP
Dymantic/chai-chung
/app/User.php
UTF-8
3,214
2.515625
3
[]
no_license
<?php namespace App; use App\Leave\LeaveRequest; use App\Time\Session; use App\Time\WorkDay; use Carbon\CarbonPeriod; use Illuminate\Notifications\Notifiable; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Support\Carbon; class User extends Authe...
true
00b37c9308d77e22c03de0c96f4a9b2f4eef78a0
PHP
alissonphp/resume-bank
/src/migrations/2017_08_19_000004_create_candidate_personal_infos_table.php
UTF-8
976
2.515625
3
[]
no_license
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCandidatePersonalInfosTable extends Migration { public function up() { Schema::create('candidate_personal_infos', function (Blueprint $table) { $table->increments('id'); $t...
true
27ef7821d74ca2f9e81f78d30deb99b7c7bc7017
PHP
nyatMeat/algo-expert-alghoritms
/Medium/breadthFirstSearchNonBinary.php
UTF-8
1,053
3.53125
4
[]
no_license
<?php class Node { public $name; /** @var Node */ public $children = []; /** * Node constructor. * @param $name */ public function __construct($name) { $this->name = $name; } public function addChildren($name) { $this->children[] = new Node($name); } } /** * Обход дерева в ширину, не бинарного...
true
d66a997da54582c89f203fbf561a00bcf5d8ec21
PHP
jtl-scx/channel-api-client
/src/Api/Order/Request/UpdateOrderAddressRequest.php
UTF-8
1,016
2.515625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * This File is part of JTL-Software * * User: avermeulen * Date: 2020-03-03 */ namespace JTL\SCX\Client\Channel\Api\Order\Request; use JTL\SCX\Client\Channel\Api\AbstractScxApiRequest; use JTL\SCX\Client\Channel\Model\OrderAddressUpdateList; use JTL\SCX\Client\Request\ScxApiReq...
true
cf9f9744583b6b1feb0617b55691c772faa76aed
PHP
mohammad422/Email
/Models/User.model.php
UTF-8
4,207
2.96875
3
[]
no_license
<?php require "../Config/Config.php"; //add user into database function insertuser($name, $email, $username, $password, $img) { global $connection; $sql = "INSERT INTO tbl_users (tbl_users.name,tbl_users.email,tbl_users.username,tbl_users.password,tbl_users.img) VALUES ('$name','$email','$username','$passw...
true
ba3867deffe5a7b1b64002103cf010785b374bca
PHP
kennedysgarage/Voronoi-Diacam
/backend-kohana/modules/foursquare/classes/FoursquareAccount.php
UTF-8
3,675
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php class FoursquareAccount extends Foursquare { protected $oauth_creds = null; protected $foreign_data = null; public function __construct($oauth_creds=null) { if ($oauth_creds) { $this->oauth_creds = $oauth_creds; $this->foreign_data = unserialize($oauth_creds->getForeignD...
true
8e1c70ed12494142bf5946ce626daeae4e0f8803
PHP
raihan004/Treehouse-Projects
/PHP Development Track/shirts4mike/shirts/shirts.php
UTF-8
2,061
2.953125
3
[]
no_license
<?php /*********************BEGINNING OF CONTROLLER CODE**********************/ require_once("../inc/config.php"); require_once(ROOT_PATH . 'inc/model/products.php'); //If there is no page number variable in the query string, //proceed as if on the first page. Otherwise, assign the pg //query value to the $curr...
true
9d7b928edf9a66efb97d243e0d79335dd5e3b05f
PHP
jpenrici/Word_Search_generator
/PHP_WordSearch/tabular_palavras.php
UTF-8
9,499
3.109375
3
[ "MIT" ]
permissive
<?php // Carregar funções gerais include_once 'funcoes_uteis.php'; use ManipulaPalavras as mp; define("SUCESSO", 1); define("FALHOU", 0); define("VAZIO", -1); define("TENTATIVAS", 50); // inserção de palavra define("PORCENTAGEM", 25); // acrescimo na dimensão da matriz define("INDEFINIDO", "não definido"); class T...
true
24ec4d31facef46f529184b459bd8ae1947f8251
PHP
ronnysuero/devsfarm
/app/controllers/MessageController.php
UTF-8
8,070
2.578125
3
[]
no_license
<?php class MessageController extends BaseController { /** * Show view Inbox * * @return View */ public function showInboxView() { $user = UserController::getUser(Auth::user()); $messages = $user->messages()->where('from', '!=', Auth::id()) ->where('archived', false) ->orderBy('s...
true
ce69842e0d1a694088fcbc9fc764aff19f79e37e
PHP
klausguenther/buero
/rechnung_j.php
UTF-8
7,408
2.59375
3
[]
no_license
<?php session_start(); if(isset($_SESSION['tabelle'])) {$tabelle = $_SESSION['tabelle'];} else {$tabelle = '';} if(isset($_REQUEST['job_id'])) {$job_id = $_REQUEST['job_id'];} else {$job_id = '';} include_once 'includes/dbzugang.php'; setlocale(LC_TIME, "de_DE.UTF-8"); $ergebnis = mysql_query("SELECT * FROM jobs WHER...
true
286e18666137e43754ef351314001071f581f906
PHP
denazebiz/php-censor
/tests/src/DatabasePostgresqlTest.php
UTF-8
7,783
2.59375
3
[ "BSD-2-Clause" ]
permissive
<?php namespace Tests\PHPCensor; use PHPCensor\Config; use PHPCensor\Database; class DatabasePostgresqlTest extends \PHPUnit_Extensions_Database_TestCase { /** * @var \PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection|null */ protected $connection = null; /** * @param string $name ...
true
1a6b7ac815b8b1482864208c357285ff1fc346d9
PHP
GreekGodInExile/IT-LAB-PROGRAMS
/php-2016cse023/connection.php
UTF-8
772
2.96875
3
[]
no_license
<?php $db_host='localhost'; $db_user='root'; $db_passwd='root'; $db_name="newDB"; $con=mysqli_connect($db_host, $db_user, $db_passwd, $db_name); if(!$con){ die("Error connection with database".mysqli_connect_error($con)); } else { echo "connection successfull"; } //$sql="CREATE DATABASE newDB"; //if(mysqli_query($con...
true
bfcb87d1ffd297d5af3cba75d026df16ec424169
PHP
FreeDSx/SNMP
/src/FreeDSx/Snmp/Oid.php
UTF-8
8,007
2.5625
3
[ "MIT" ]
permissive
<?php /** * This file is part of the FreeDSx SNMP package. * * (c) Chad Sikorra <Chad.Sikorra@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace FreeDSx\Snmp; use FreeDSx\Asn1\Asn1; use FreeDSx\Asn1\Type\Abstrac...
true
595304fbc2d3b4cb72f43e4f5b96b7a5f4dccb75
PHP
rymoa1122/PHP_test
/rong08_while.php
UTF-8
95
3.34375
3
[]
no_license
<?php $sum = 0; $i=1; $n=97; while ($i<=$n){ $sum += $i++; } echo "1+2+...+{$n}={$sum}";
true
8953f4949d2c3082312eb70487dd25daf1346a01
PHP
Terry2Trav/oplossingen-back-end
/opdracht-cookies/cookies-login.php
UTF-8
1,725
2.859375
3
[]
no_license
<?php $file = file_get_contents('gegevens.txt'); $gegevens = explode(',', $file); $error = ""; $online = false; $info =""; if (isset($_POST["submit"])) { echo $_POST['username']." "; echo $_POST['password']." "; echo $gegevens[0]; echo $gegevens[1]; if ($_POST['username']== $gegevens[0] && $_POST['password']==$g...
true
02b2c7ad09c96a80e4f6f21e3fd42a957a7ae4a7
PHP
TheusZer0/ctf-archives
/SPbCTF/2021/Quals/Alpha_Mail_Access/www/include/Smtp/Sender.php
UTF-8
2,208
3.0625
3
[ "MIT" ]
permissive
<?php class Smtp_Sender { private $host, $port, $mail; function __construct($mail) { $this->host = Smtp_Config::$host; $this->port = Smtp_Config::$port; $this->mail = $mail; } private function GetResponse($socket) { $code = false; $data = ""; ...
true