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
4f27feedd769cdf0a8ea3075a533bcc7a66b3e07
PHP
matticus1120/E-Dever
/lib/Helpers.php
UTF-8
2,074
2.75
3
[]
no_license
<?php namespace eDever; include 'FileHelpers.php'; class Helpers extends FileHelpers { public $added_content = ''; public $wrappers = []; public function lt($data) { ?> <script> console.log( <?php echo json_encode($data) ; ?>) </script> <?php } public function set_default_class_args( $args ) { $arg...
true
b8ae562393806935d2f6b35a143798431618e681
PHP
5x/WebPHPCourseTaskScripts
/5-4.php
UTF-8
1,309
2.921875
3
[ "MIT" ]
permissive
<?php /****************************************************************************** * Создайте скрипт, который отправляет на ваш e-mail произвольное сообщение. *****************************************************************************/ if (isset($_POST['email']) && isset($_POST['subject']) && isset(...
true
fe3eedfdd23a00289c63d74f6767d0333ca2f701
PHP
wildanafifproject/ams
/application/libraries/Image_upload.php
UTF-8
820
2.703125
3
[]
no_license
<?php class Image_upload { protected $CI; public function __construct() { $this->CI =& get_instance(); } public function upload($post,$url,$name="") { $config['upload_path'] = "$url"; $config['allowed_types'] = 'gif|jpg|png|pdf|jpeg|PNG|JPG'; if (empty($n...
true
191d1798b1b0fba6ef18da43d6466ed2ff8ed9af
PHP
timohermans/Homebank
/php/app/Http/Controllers/Controller.php
UTF-8
1,031
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Domain\Entities\Entity; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Routing\Controller as BaseController; class Controller extends BaseContr...
true
bc11a24574b3dac9b228b08b5c031b3cddaf5a39
PHP
devboard/lib-github
/spec/GitHubTagCollectionSpec.php
UTF-8
1,398
2.84375
3
[]
no_license
<?php declare(strict_types=1); namespace spec\DevboardLib\GitHub; use DevboardLib\Git\Tag\TagName; use DevboardLib\GitHub\GitHubTag; use DevboardLib\GitHub\GitHubTagCollection; use PhpSpec\ObjectBehavior; class GitHubTagCollectionSpec extends ObjectBehavior { public function let(GitHubTag $gitHubTag) { ...
true
b8ae46150368713ac6ccdd1561c816e269657492
PHP
lathspell/php_test
/Algorithms/Graph Theory/DijkstraTest.php
UTF-8
6,414
3
3
[]
no_license
<?php /* * Graphentheorie * * In einer Höhle befinden sich vier Personen sowie eine Lampe. Da die Höhle * dunkel ist, können die Personen den Weg nach draußen nur mithilfe der Lampe * finden. Die Höhle kann nur in Zweiergruppen verlassen werden. Das heißt, * wenn ein Pärchen die Höhle verlässt, muss eine Person ...
true
e2bb030fa90db984a9f8cfe92fdd4a3c3e9d9644
PHP
vuongxang/backend-mosavn
/database/seeders/ProductSeeder.php
UTF-8
705
2.546875
3
[]
no_license
<?php namespace Database\Seeders; use Faker; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class ProductSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker = Faker\Factory::create(); for ($i=0; $...
true
4593c602e3863177b128eba835fd12e666f02949
PHP
burhan/hiphop-php
/src/test/vm/backup_cycle_collector.php
UTF-8
1,866
3.078125
3
[ "Zend-2.0", "LicenseRef-scancode-unknown-license-reference", "PHP-3.01" ]
permissive
<?php class Blah { public $x = "uncollected string"; } class Cycler { public function __destruct() { echo "Shouldn't run\n"; } public $x = null; public $y; } function test_cycles($what) { echo "-------------------" . $what . "---------------------------\n"; $file = tempnam("/tmp", "cycles_unit_test"); ...
true
92adc0f8627aba4abe55b0fa4af7f52b4c89125a
PHP
tonci/phonebook
/models/PasswordChangeForm.php
UTF-8
1,536
2.875
3
[]
no_license
<?php namespace models; use lib\App; class PasswordChangeForm extends \lib\FormModel { public $password; public $new_password; public $password_repeat; protected $_user; public function validate() { $user = $this->getUser(); if (!$user->validatePassword($this->password)) $this...
true
eb5cf5ac97726579ef47f6dba5b14d5970070d37
PHP
ACTom/loisium
/src/Input/Response.php
UTF-8
1,801
3.171875
3
[ "Apache-2.0" ]
permissive
<?php namespace loisium\Input; class Response { private $url = ''; private $body = ''; private $contentType = ''; private $status = 0; private $rawHeader = ''; private $headers = []; public function __construct($curl) { $response = curl_exec($curl); $info = curl_getinfo($...
true
6e21044713c90ab8a94bd9a77e68a606679c2ae2
PHP
JayHo1/Piscine-42-PHP-2014-
/D01/ex03/ft_split.php
UTF-8
218
2.609375
3
[]
no_license
<?php function ft_split($str) { $tab = str_replace("\t", " ", $str); $tab = explode(" ", $tab); foreach($tab as $cmp) if($cmp != "") $val[$i++] = $cmp; sort($val, SORT_REGULAR); return ($val); } ?>
true
5414bbcc1a8b03d0da179f238dcbf5101b989d3a
PHP
brunarocha/safety-cubic
/app/Domain/Publication/Repositories/PublicationInterface.php
UTF-8
709
2.6875
3
[]
no_license
<?php /** * @author: Bruna Rocha * @date: 21/10/2019 */ namespace App\Domain\Publication\Repositories; /** * Interface PublicationInterface * @package App\Domain\Publication\Repositories */ interface PublicationInterface { /** * @return mixed */ public function all(); /** * @param a...
true
e9f8b1fa7aabfa5a161eb4679e6cb0d86f92474c
PHP
realgkl/dbcloneserver
/lib/baseTable/baseRecord.class.php
UTF-8
2,437
3.25
3
[]
no_license
<?php /** * @desc 结构体-基类 * @author gkl * @since 20140110 */ class baseRecord { /** * @desc 存放数据的数组 * $field => $value * @var array */ protected $data; /** * @desc 主键 */ protected $primary; /** * @desc 构造函数 */ public function __construct() { $this->data = array(); $this->primary = ''; } ...
true
630cb8ff3e867f5d36cc1d31028a1670326bf86b
PHP
Qafoo/blog-examples
/testing_file_uploads/simple-example.phpt
UTF-8
138
2.578125
3
[]
no_license
--TEST-- Example test case --FILE-- <?php var_dump(strpos('Manuel Pichler', 'P')); var_dump(strpos('Manuel Pichler', 'Z')); --EXPECT-- int(7) bool(false)
true
454918ed26a8c064d97625ead3d0a3185c352a84
PHP
t-ores/orest_drupal.localhost
/web/modules/custom/dummy/src/Cache/Context/DummyRequestHeaderCacheContext.php
UTF-8
1,774
2.546875
3
[]
no_license
<?php namespace Drupal\dummy\Cache\Context; use Drupal\Core\Cache\CacheableMetadata; use Drupal\Core\Cache\Context\CalculatedCacheContextInterface; use Drupal\Core\Cache\Context\RequestStackCacheContextBase; /** * Cache context ID: 'dummy_request_header'. */ class DummyRequestHeaderCacheContext extends RequestStac...
true
c318c459b7de19450cec0fe36932664d382f9707
PHP
henisallemi/isims
/src/Service/UserManager.php
UTF-8
5,070
2.703125
3
[]
no_license
<?php namespace App\Service; use App\Menu\Menu; use App\Menu\MenuItem; use App\Menu\MenuSection; use Symfony\Component\Security\Core\Security; class UserManager { public const ROLE_USER = "ROLE_USER"; public const ROLE_ENSEIGNANT = "ROLE_ENSEIGNANT"; public const ROLE_ETUDIANT = "ROLE_ETUDIANT"; pu...
true
eab8f3561ab767fca53d978f2a1e1c36082709e9
PHP
aavtukhovich/BGUIR
/SessionWinter2018/BT/bobrovko/lab4/DBHelper.php
UTF-8
1,402
2.921875
3
[]
no_license
<?php class DBHelper { private $mysql; public function __construct() { $db = json_decode(file_get_contents("db.cfg"), true); $this->mysql = new mysqli($db['host'], $db['user'], $db['password'], $db['database']); $this->mysql->set_charset("utf8"); if ($this->mysql->connect_...
true
421ae5db07cffa90e73ba2f70d4335fa5cb7a14e
PHP
markotodic/php-code-test
/src/Domains/Task/TaskRepository.php
UTF-8
880
2.65625
3
[]
no_license
<?php declare(strict_types=1); namespace Tymeshift\PhpTest\Domains\Task; use Tymeshift\PhpTest\Interfaces\EntityCollection; use Tymeshift\PhpTest\Interfaces\EntityInterface; use Tymeshift\PhpTest\Interfaces\RepositoryInterface; class TaskRepository implements RepositoryInterface { /** * @var TaskFactory ...
true
edaab51a5f3bbdbb9228d9eb210d926a3f11e540
PHP
cleverage/omnipay
/src/Omnipay/Sips/Message/SipsBinaryResult.php
UTF-8
2,413
2.84375
3
[ "MIT" ]
permissive
<?php namespace Omnipay\Sips\Message; use Omnipay\Common\Helper; use Omnipay\Common\Message\AbstractResponse; use Omnipay\Sips\Message\SipsBinaryCall; /** * Class SipsBinaryResult * Represents the result of a Sips binary call * * @package Omnipay\Sips\Message */ abstract class SipsBinaryResult extends Abstrac...
true
6d9abfdc2f6aa137d195d1067fd976825868e80f
PHP
Velliz/pukoconsole
/src/Database.php
UTF-8
21,934
2.78125
3
[]
no_license
<?php /** * pukoconsole. * Advanced console util that make pukoframework get things done on the fly. * Copyright (c) 2018, Didit Velliz * * @author Didit Velliz * @link https://github.com/velliz/pukoconsole * @since Version 0.1.0 */ namespace pukoconsole; use Exception; use PDO; use ReflectionClass; use pukoc...
true
99e85b6a66fffa4534ddf469932e244e6ae8d5fd
PHP
phalcon/cphalcon
/tests/integration/Mvc/Url/GetCest.php
UTF-8
1,462
2.671875
3
[ "BSD-3-Clause" ]
permissive
<?php /** * This file is part of the Phalcon Framework. * * (c) Phalcon Team <team@phalcon.io> * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ declare(strict_types=1); namespace Phalcon\Tests\Integration\Mvc\Url; use Codece...
true
5940240b2f7c27c7981a682ce0e1d4b39e051e5d
PHP
KamilleModules/NullosAdmin
/Api/Layer/MessageLayer.php
UTF-8
2,295
2.75
3
[]
no_license
<?php namespace Module\NullosAdmin\Api\Layer; use Module\NullosAdmin\Api\Object\Message; use Module\NullosAdmin\Authenticate\User\NullosUser; use QuickPdo\QuickPdo; class MessageLayer { public static function updateMessageReadStatus(int $messageId, bool $isRead) { Message::getInst()->update([ ...
true
b321d0960ec9cabc86fb3ae0564eb91f221aa63a
PHP
innotechgl/innotechglobal
/apps/optimus/rest/pages/imeis/classes/imeis.php
UTF-8
1,224
3
3
[]
no_license
<?php class imeis extends mainObject { /** * @var Int */ protected $imeiOne; /** * @var Int */ protected $imeiTwo; /** * @var Int */ protected $productID; /** * @return Int */ public function getImeiOne(){ return $this->imeiOne; } ...
true
bfe08855a1b6baca44df71b154305d968c2c949f
PHP
nabilaai/marmiton
/Model/dataRepository.php
UTF-8
3,134
2.859375
3
[]
no_license
<?php namespace Marmiton\Model; class dataRepository { /** * @var \PDO */ private $pdo; /** * @param \PDO $pdo */ public function __construct(\PDO $pdo) { $this->pdo = $pdo; } public function setAllData($recette_id, $ingred_id, $tab) { $i = 0; ...
true
4ed2b9b6780577aab0654351c0354ab7967ee6a1
PHP
faisal3397/LISV
/lisv-app/app/Http/Controllers/RegistrationController.php
UTF-8
1,330
2.6875
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\User; use App\Car; class RegistrationController extends Controller { // public function show(){ return view('register'); } public function store(){ // Validate the form $th...
true
404ce6c7aac040fc23dac6bbe4459a02221ade51
PHP
Phoenix2140/app
/app/models/Linea.php
UTF-8
1,559
3.390625
3
[]
no_license
<?php /** * Modelo para tabla Linea * Estructura de la tabla: * cod_linea MEDIUMINT(9) * nom_linea VARCHAR(255) */ Class Linea{ private $db; //constructor public function __construct($config){ $this->db = new Database($config); } //Crear una linea public function crearLinea($nombr...
true
0755dc46bf2a1844c19c729302fec055dc5a6d31
PHP
KodachiMM/codigotest
/app/Models/Order.php
UTF-8
801
2.515625
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Prettus\Repository\Contracts\Transformable; use Prettus\Repository\Traits\TransformableTrait; /** * Class Order. * * @package namespace App\Models; */ class Order extends Model implements Transformable { use TransformableTrait; /** ...
true
b551056f4db9d8748c030aa22d4b350f4b7e9d9b
PHP
mtils/file-db
/src/FileDB/Model/FileIdentifier.php
UTF-8
230
2.765625
3
[ "MIT" ]
permissive
<?php namespace FileDB\Model; class FileIdentifier implements IdentifierInterface{ public function fileId($path){ return sha1_file($path); } public function dirId($path){ return sha1($path); } }
true
46aac4ee87ce42cdff44e0d0c825e690120989d3
PHP
filippesic/itbootcamp
/test5/index2.php
UTF-8
2,114
3.25
3
[]
no_license
<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>Test 5, zadatak 2</title> </head> <body> <?php $plateNiz = array(22500, 33000, 19000, 44000, 64000); function...
true
b9b1d46102be96e58b839c5af7bb80c7ce06d069
PHP
samlanh/sengtay
/ajax/search_item.php
UTF-8
1,479
2.515625
3
[ "Apache-2.0" ]
permissive
<?php include "../admin/connection.php"; if (isset($_POST['valueTextSearch'])) { if ($_POST['valueTextSearch']!=""){ $tile = $_POST['valueTextSearch']; $stmt = $con->prepare("SELECT * FROM tbl_article WHERE trust='1' AND article LIKE '%" . $_POST['valueTextSearch'] . "%' ORDER BY article ASC "); $...
true
47e72aa74aa497215004dabfacdc206a76aacce5
PHP
emonkak/php-date-time
/tests/UnitTest.php
UTF-8
13,740
2.890625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Emonkak\DateTime\Tests; use Emonkak\DateTime\Unit; use Emonkak\DateTime\DateTime; /** * @covers Emonkak\DateTime\Unit */ class UnitTest extends AbstractTestCase { /** * @dataProvider providerOf * @runInSeparateProcess */ public function testOf(string...
true
87f117d75cacbd0a634a3d42c6055ba56b41544d
PHP
kynx/template-resolver
/src/AbstractResolver.php
UTF-8
723
2.53125
3
[ "MIT" ]
permissive
<?php /** * @copyright 2015 Matt Kynaston * @license MIT */ namespace Kynx\Template\Resolver; abstract class AbstractResolver implements ResolverInterface { const DEFAULT_NAMESPACE = '__DEFAULT__'; private $isCompiled = false; public function isCompiled() { return $this->isCompiled; }...
true
22956ff8d1ef21ec46315c62e9b0741aec231111
PHP
psi-4ward/servitus
/fldsrc/ToChildTable.php
UTF-8
3,340
2.59375
3
[]
no_license
<?php namespace Servitus\Fldsrc; /** * @copyright 4ward.media 2012 <http://www.4wardmedia.de> * @author Christoph Wiechert <wio@psitrax.de> */ class ToChildTable extends \Servitus\Fldsrc { public function __construct($arrFldsrcData, $arrStepData=null) { parent::__construct($arrFldsrcData, $arrStepData); /...
true
819898c60a4178dd1e5f9e1071478a8bfc49ce62
PHP
ueef/sanitizer
/src/Interfaces/ErrorInterface.php
UTF-8
316
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Ueef\Sanitizer\Interfaces; interface ErrorInterface { const TYPE_UNDEFINED = 1; const TYPE_INVALID_TYPE = 2; const TYPE_INVALID_FORMAT = 3; public function getKey(): string; public function getType(): int; public function getMessage(): string; }
true
5b264e3b144bcaad0a578c550887b235ee3db0f7
PHP
peterpd1996/timeCountDown
/index.php
UTF-8
2,155
3.09375
3
[]
no_license
<?php date_default_timezone_set('Asia/Ho_Chi_Minh'); $mysqli = mysqli_connect('127.0.0.1','peter','anhduong123','countDowntTime'); $query = "SELECT * FROM timer ORDER BY id DESC LIMIT 1"; $result = mysqli_query($mysqli,$query); while($res = mysqli_fetch_array($result)) { $date = $res['date']; $h = $res['h']; $...
true
657ed7be6ac53b773e68a0c5b65c164f1ca94acc
PHP
JustinWestMusic/ChantryIsland
/admin/admin_addevents.php
UTF-8
2,310
2.640625
3
[]
no_license
<?php require_once('phpscripts/init.php'); //ini_set('display_errors',1); //error_reporting(E_ALL); confirm_logged_in(); $tbl = "tbl_events"; $newsQuery = getAll($tbl); if(isset($_POST['submit'])) { //echo "submit clicked..."; $eventsTitle = $_POST['events_title']; $eventsText = $_POST['even...
true
b57e0f7a91c56a8e95f03387027c620d2c33d181
PHP
smartest-dz/oil-gas_project
/web/api/formation/initialization/create_functions.php
UTF-8
723
2.65625
3
[]
no_license
<?php function initialize_formations($dbconn){ $query = "select * from addforms where label='TOT' or label='BOT'"; $dbconn->DoQuery($query); $tot_present=false; $bot_present=false; while($dbconn->FetchRow()){ if($dbconn->FetchField('label')=='TOT'){ $tot_present=true; } ...
true
6bbee53455b03e99fee5af5127b92012adeb4086
PHP
arturgssjr/presto-client-php
/src/ClientSession.php
UTF-8
2,933
2.6875
3
[]
no_license
<?php declare(strict_types=1); namespace ArturJr\PrestoClient; use Ramsey\Uuid\UuidInterface; use ArturJr\PrestoClient\Session\Property; use ArturJr\PrestoClient\Session\PreparedStatement; class ClientSession { /** @var string */ protected $host; /** @var string */ protected $catalog; /** @var ...
true
dc397adfbd8490cdaff2f63195cba5f43c945244
PHP
krg006/APO
/logic/get_calendar_events.php
UTF-8
3,665
2.515625
3
[]
no_license
<?php include '../core/init.php'; $event_colors = array( 'service-c' => '#16a5d7', 'service-w' => '#b368d9', 'fellowship' => '#2163c2', 'other' => '#a8d324' ); if (!empty($_GET['opt']) && $_GET['opt'] == 'get_all') { $query = "SELECT `event_id`, `event_name`,`event_start`, `event_end`, `event_typ...
true
54fc41d67f276113b4b3e08df4a9d8830ddf346b
PHP
MohabMohamed81/Yellow-Page-Task-Assignment
/App/Controllers/userController.php
UTF-8
3,126
3.171875
3
[]
no_license
<?php require_once 'C:\xampp\htdocs\YellowAssignment\App\Models\Users.php'; if(session_status() == PHP_SESSION_NONE){ //session has not started session_start(); } /** * This is User Controller which have the methods related to users * @author Mohab */ class userController { /** * @var object crea...
true
6f05fd0d162c53650d11f8a82bda97544b80269e
PHP
cholilfayyadl/uastpp
/admin/artikel/aksi_simpan.php
UTF-8
3,441
2.59375
3
[]
no_license
<?php ob_start(); session_start(); if (!isset($_SESSION['akun_username'])) { echo "<center>Untuk mengakses modul anda harus login <br>"; echo "<a href=../../index.php><b>LOGIN</b></a></center>"; } else { include "../../lib/config.php"; include "../../lib/koneksi.php"; $judulArtikel = $_POST['judul_artikel']; $i...
true
a63191ee3ffeadc5a90f49155c46b34d470e5de8
PHP
awaismajeedch/fone-tech
/updatecheckin_controller.php
UTF-8
1,281
2.546875
3
[]
no_license
<?php //error_reporting(0); ini_set('display_errors', 1); include_once 'include/global.inc.php'; //check to see that the form has been submitted if($_SERVER['REQUEST_METHOD'] == 'POST') { //retrieve the $_POST variables $dt = trim($_REQUEST['txtdate']); $stime = trim($_REQUEST['txtstime']); $etime = trim(...
true
eb661f0237bfcb8dc4008081f916170d63739765
PHP
scportela/Traepaka
/model/LineaChat.php
UTF-8
1,361
3.03125
3
[]
no_license
<?php class LineaChat{ private $id_chat; private $id; private $fecha_hora; private $mensaje; private $leido; private $enviado_comprador; public function __construct($id_chat = NULL, $id = NULL, $fecha_hora = NULL, $mensaje = NULL, $leido = NULL, $enviado_comprador = NULL) { ...
true
640ec200cb4add3c4447f00004d7c3b52316e3c7
PHP
binarygary/shipstation
/meldprofittables.php
UTF-8
431
2.578125
3
[]
no_license
<?php require_once('classes/meekrodb.class.php'); DB::query("DROP TABLE meldedprofit"); $query="CREATE TABLE meldedprofit"; $db_tables = DB::tableList(); foreach ($db_tables as $table) { if (strlen($table)=='29') { $profit_tables[]=$table; } } foreach ($profit_tables as $table) { $query.=" SELECT * FROM $table...
true
ef90ecfdfa7abb84ba6c77ca21eaf16275766a52
PHP
StevenD59/FANSCook
/src/Entity/Notes.php
UTF-8
2,371
2.578125
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\NotesRepository") */ class Notes { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="integer", nullable=tr...
true
b8a411e1f84cb6ab3f4af624d76962bf17c56954
PHP
1111055/frotamais
/app/Http/Requests/RegisterRequest.php
UTF-8
1,288
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use App\Register; class RegisterRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } ...
true
167b404b316d9b3bc26f8d839c1092032514af8e
PHP
yang123vc/wifigateway-web
/gw_test_endpoint.php
UTF-8
290
2.5625
3
[]
no_license
<?php require_once 'Gateway.php'; require_once 'JsonRpcWrapper.php'; if($argc < 2) { echo "Bad args\n"; exit(); } $proxy = new JsonRpcWrapper(new Gateway()); array_shift($argv); $method = array_shift($argv); var_dump($proxy->call(array('method' => $method, 'params' => $argv))); ?>
true
fd47c97d4c368f01392c1ff8ecd9741054091c03
PHP
fyzzy1943/design-pattern-learn-php-
/DesignPatterns/More/Repository/Storage.php
UTF-8
617
3.046875
3
[ "MIT" ]
permissive
<?php /** * Date: 2016/4/8 */ namespace DesignPatterns\More\Repository; interface Storage { /** * 持久化数据方法 * 返回新创建的对象ID * * @param $data * @return mixed */ public function persist($data); /** * 通过指定ID返回数据 * 如果为空返回null * * @param $id * @return mixed ...
true
53818ff944408e2ab1e73b26006148c4de969899
PHP
WillamMacielAlunoADS/Oficina_de_motos
/Oficina de Motos/controllers/Cliente.php
UTF-8
1,235
3.328125
3
[]
no_license
<?php class Cliente{ private $nome; private $cpf; private $telefone; private $email; private $endereco; public function setNome($nome){ if (is_string($nome)) { $this -> nome = $nome; }else{ echo "verifique o nome"; } } public function getNome(){ return $this -> nome; } pu...
true
3ef3b1351d8e353eca40ce01e7859eb63731c7b6
PHP
narakio/elasticsearch
/Index/Indexer.php
UTF-8
3,668
2.703125
3
[ "MIT" ]
permissive
<?php namespace Naraki\Elasticsearch\Index; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Arr; use InvalidArgumentException; use Illuminate\Console\Command; use Illuminate\Container\Container; abstract class Indexer { /** * @var string */ protected $modelClass; /** * @var \...
true
3e30d7f5e7b5db607bc7590411cdf87d8688c17d
PHP
EtienneDh/subscriber_bot
/src/BenderBot/BenderConfigurator.php
UTF-8
2,713
2.96875
3
[]
no_license
<?php namespace BenderBot; use GuzzleHttp\Client; use GuzzleHttp\HandlerStack; use GuzzleHttp\Subscriber\Oauth\Oauth1; use Utils\Tools; use BenderBot\API\APIInterface; abstract class BenderConfigurator { const API_NAMESPACE = "BenderBot\API"; public static $appName; public static $client; public s...
true
b919995b6483540b9731fb8eaaa6b3ed87d8f8f5
PHP
jadsvictor/C-L-teste
/test/Inclui_lexicoTest.php
UTF-8
919
2.71875
3
[]
no_license
<?php //Classe responsável por realizar o teste da classe inclui_lexico. include("functionsLexic/inclui_lexico.php"); class Inclui_lexicoTest extends PHPUnit_Framework_TestCase { protected $idProjeto; protected $nome; protected $nocao; protected $impacto; protected $sinonimos; pro...
true
844a6314b5789b3bb44f4f05b322f6cb2dd93773
PHP
drb/pacodb-api-connector
/paco-connector.php
UTF-8
8,831
2.921875
3
[]
no_license
<?php /** * PacoCMS connector library * * Requisites: * - A PacoCMS account with admin privileges * - At least one site set up under your account, and with API access enabled on the site * - Your API access credentials (key and secret) * * @author Dave Bullough <support@pacocms.com> */ require_once('paco-mes...
true
b8c4400700b79b82424882671deb7d7e26a4a748
PHP
getpoirot/Module-TenderBin
/src/TenderBin/Model/Entity/BindataEntity.php
UTF-8
5,505
2.59375
3
[ "MIT" ]
permissive
<?php namespace Module\TenderBin\Model\Entity; use Module\TenderBin\Interfaces\Model\BinData\iObjectVersion; use Module\TenderBin\Interfaces\Model\iBindata; use Module\TenderBin\Model\Entity\Bindata\OwnerObject; use Module\TenderBin\Model\Entity\Bindata\VersionObject; use Poirot\Std\Interfaces\Struct\iData; use Poirot...
true
a4c1b3369978e8e76b2f2d1f9f6b7b08125beef4
PHP
gongwan33/ian_plugins
/super-import/includes/function.php
UTF-8
17,768
2.53125
3
[]
no_license
<?php function si_insert_post( $postarr, $wp_error = false ) { global $wpdb; $user_id = get_current_user_id(); $defaults = array( 'post_author' => $user_id, 'post_content' => '', 'post_content_filtered' => '', 'post_title' => '', 'post_excerpt' => '', 'post_status' => 'draft', 'post_type' => 'post',...
true
8f60cf3b21427985539bc3e0a29307757b9d205b
PHP
rjsama/rjsama.github.io
/MyBookStoreProject/order_now.php
UTF-8
2,758
2.6875
3
[]
no_license
<?php $page_title = 'Order Now'; include('includes/header.html'); require('mysqli_connect.php'); if ( (isset($_GET['id'])) && (is_numeric($_GET['id'])) ) { $id = $_GET['id']; } elseif ( (isset($_POST['id'])) && (is_numeric($_POST['id'])) ) { $id = $_POST['id']; } else { echo '<p class="error">Unexpected error!</p>...
true
119d6fdca20e723dfe8c1a9528a8e7d8d1bd822c
PHP
Hecke29/domain-offensive-client
/tests/ContactClientTest.php
UTF-8
2,703
2.8125
3
[ "MIT" ]
permissive
<?php namespace Hecke29\DomainOffensiveClient\Tests; use BeSimple\SoapClient\SoapClient; use Hecke29\DomainOffensiveClient\Exception\InvalidContactException; use Hecke29\DomainOffensiveClient\Service\Client\ContactClient; class ContactClientTest extends \PHPUnit_Framework_TestCase { public function testCreate(...
true
4ba93f7023cabe2f6ee1b723e52f0d47c7170a79
PHP
charmeleon-char/Php-Ciad
/controllers/correoenvio.control.php
UTF-8
1,057
2.734375
3
[]
no_license
<?php require_once("./controllers/class.phpmailer.php"); function correo($email,$body) { $correo = $email; $mensaje ="Inicio de session"; $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->Host = "ssl://smtp.gmail.com"; // SMTP a utilizar. Por ej. smtp.elserver.com $mail->Username = ...
true
69c72556c4adc6722287998568cf5af67cb9e18a
PHP
nevadascout/prybar-api
/functions.inc.php
UTF-8
4,276
2.84375
3
[]
no_license
<?php date_default_timezone_set('UTC'); /// <summary> /// Require requests made to the API to use POST /// </summary> function RequirePostRequest() { if($_SERVER['REQUEST_METHOD'] !== 'POST') { header('HTTP/1.1 400 Bad Request'); die("The Prybar API currently only accepts POST requests"); ...
true
cd3fe4d0279f2a238ef8e198636c6cdbd126b1a8
PHP
merajsiddiqui/GBPECWEB
/application/libraries/image/image.php
UTF-8
1,188
2.65625
3
[]
no_license
<?php /** * *@author Meraj Ahmad Siddiqui * *This manual libraru is written using GD library to make the image of better quality */ class Image { /** * *This function watermarks the image with text as well as image * */ public static function watermark(){ } /** * *This function resize the image * */ public static fun...
true
716b0552efb487add448b2aa6d6715c6bd93e508
PHP
pokphoenix/eLiving
/app/Models/Log/LogExceptionError.php
UTF-8
930
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Models\Log; use App\Tools\Utility; use Carbon\Carbon; use DB; use Illuminate\Database\Eloquent\Model; class LogExceptionError extends Model { protected $table = 'log_exception_error'; protected $fillable = ['id','url', 'body','created_at','message','file','line','code','method','pla...
true
9ecaff10244c705d385490d81b65d975aebe6323
PHP
cdn77/PhpEntityFqnExtractor
/src/Exception/EnumDefinitionInFileIsInvalid.php
UTF-8
833
2.640625
3
[]
no_license
<?php declare(strict_types=1); namespace Cdn77\EntityFqnExtractor\Exception; use InvalidArgumentException; use PhpParser\Error; use function Safe\sprintf; final class EnumDefinitionInFileIsInvalid extends InvalidArgumentException { public static function cannotParse(string $filePathName, Error $error): self ...
true
933c9b3cd985838ce381f212a9b9fd03ee32247b
PHP
Voltra/yavlphp
/tests/rules/YavlMaxLengthTest.php
UTF-8
1,404
2.515625
3
[ "MIT" ]
permissive
<?php namespace YavlPhp\Tests\rules; use YavlPhp\Tests\Components\YavlFunctionTest_Abstract; use YavlPhp\Rules\YavlMaxLength; class YavlMaxLengthTest extends YavlFunctionTest_Abstract{ public function validProvider(): array { $loc = $this->locale; $fields = $this->makeFields(); return [ ...
true
17036cabd40dd0871a30ed465d80ef74fa6dd427
PHP
Smove/rector
/packages/NodeTypeResolver/NodeVisitor/FileNodeVisitor.php
UTF-8
815
2.5625
3
[ "MIT" ]
permissive
<?php declare (strict_types=1); namespace Rector\NodeTypeResolver\NodeVisitor; use PhpParser\Node; use PhpParser\NodeVisitorAbstract; use Rector\Core\ValueObject\Application\File; use Rector\NodeTypeResolver\Node\AttributeKey; /** * Useful for modification of class outside current node tree */ final class FileNodeV...
true
4c7124d64f3fb27edd0d85527c0f2534ae4e5c6f
PHP
BackEndTea/audit-proxy
/src/Application/Decode/GzipDecoder.php
UTF-8
616
2.921875
3
[]
no_license
<?php namespace App\Application\Decode; class GzipDecoder { public function decode(string $possibleGzipString) { if (!$this->isGzipped($possibleGzipString)) { return $possibleGzipString; } $decompressed = gzdecode($possibleGzipString); if ($decompressed !== false) ...
true
c6b36cfe73ad156e86f379c84983c9e258d5f745
PHP
sebwalk/statement
/tests/Normalizer/DateTest.php
UTF-8
1,219
2.890625
3
[]
no_license
<?php class DateTest extends \PHPUnit\Framework\TestCase { public function testParsesEuropeanDateCorrectly() { $output = $this->normalizer()->date("22.08.2018"); $this->assertEquals(new \Carbon\Carbon("2018-08-22"), $output); } public function testParsesEuropeanShortDateCorrectly() ...
true
54615477a25e4ceef06b9dcf1a4b5da7b4c83849
PHP
Felixnguyen8980/PHP-09
/shop_php/controller/homepage_controller.php
UTF-8
1,444
2.515625
3
[]
no_license
<?php require_once 'config/database.php'; require_once 'model/homepage_model.php'; class HomePageController { public function requestByCustomer(){ $action = isset($_GET['action'])?$_GET['action']:'home'; //var_dump($action); switch ($action) { case 'home': $this->homepage(); break; case 'buy': ...
true
aa81f540137fc8503730ccfe0563e0c5a91a4338
PHP
votainteligente/legislativo
/web/scripts/db.inc.php
UTF-8
4,165
2.859375
3
[]
no_license
<?php class MySQL { var $HOSTNAME = "localhost"; var $CONN = ""; var $USERNAME = "user"; var $PASSWORD = "pass"; var $DBNAME = "dbname"; function error($text) { $no = mysql_errno(); $msg = mysql_error(); echo "db.inc.php::: [$text] ( $no : $msg )<br>\n"; exit; } function init() ...
true
88902421668793d0f8c2b2cd6145be1b4ea08103
PHP
dreamdojo/dahliawolf_api
/public_html/stats/info.php
UTF-8
233
2.53125
3
[]
no_license
<?php if( isset($_GET['print']) ) phpinfo(); echo "<br><br>"; echo "<pre>"; echo ini_get("error_log") . "\n"; echo ini_get("display_errors") . "\n"; print_r(ini_get_all()); echo "</pre>"; error_log("WTF php!!!!! 0.o"); ?>
true
a8c1672b52f0bed8f326eecf6a82d89b8b9d13a2
PHP
QualiRetraite/TeamleaderApiClient
/src/Repository/TagRepository.php
UTF-8
749
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace QR\TeamleaderApiClient\Repository; use QR\TeamleaderApiClient\Model\Tag\TagListView; use QR\TeamleaderApiClient\Request\CRM\Tags\TagsListRequest; use QR\TeamleaderApiClient\Request\MultipleMethodsTrait; /** * Class TagRepository. */ class TagRepository extends RepositoryBa...
true
df799aa540dbb8236a31aafa4eb05868b3dd5c06
PHP
manosenelcodigo/clase_18_de_yii2
/components/SaludoWidget.php
UTF-8
431
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\components; use yii\base\Widget; use yii\helpers\Html; class SaludoWidget extends Widget { public $mensaje; // configuración public function init() { parent::init(); if ( $this->mensaje === null ) { $this->mensaje = "no existe un mensaje"; } ...
true
5e93ff7b480eca0b3a54881f076ed364691cb580
PHP
mayflower/jira-vote
/src/Mayflower/JiraIssueVoteBundle/Jira/RestHandler.php
UTF-8
3,527
2.875
3
[ "Apache-2.0" ]
permissive
<?php namespace Mayflower\JiraIssueVoteBundle\Jira; use Mayflower\JiraIssueVoteBundle\Exception\InvalidTokenException; use Symfony\Component\HttpFoundation\Session\Session; /** * RestHandler * * Handler which executes the JIRA API calls * * @author Maximilian Bosch <ma27.git@gmail.com> */ class RestHandler { ...
true
df2446cb526936d772ae7bf62f7501a318a9a00d
PHP
yuanhaoz/blog
/app/Http/Controllers/StudentController.php
UTF-8
3,377
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: 18710 * Date: 2017/7/27 * Time: 17:36 */ namespace App\Http\Controllers; use App\Jobs\SendEmail; use Illuminate\Http\Request; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Mail; use Illuminate\Support\Facades\Stora...
true
9076c32d3a15eadf3b97f57797a0c6c2a587d89c
PHP
chathurkavishmantha/updatedStudentmanagementsystem
/database/migrations/2021_03_22_061300_create_class_room_schedule_table.php
UTF-8
1,025
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateClassRoomScheduleTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('class...
true
4a4091fdf2e214c41a1ed0f967d8bad72141b9bc
PHP
anthonychian/QuizMatch
/PHP/signup.php
UTF-8
5,146
3.09375
3
[]
no_license
<?php /* signup.php * The form for a new user to create a profile on * QuizMatch. Altered to elaborate on verification of * username, password, and email. Removed fields for * First/Last Name; will perhaps move to profile settings. * * Redirects to: Login.html/php * * Assumes that DB Table contains fie...
true
04f57249fa1113e9efc75604fb99f12cd42baf1d
PHP
UziTech/prado
/framework/Web/UI/ActiveControls/TDropContainerEventParameter.php
UTF-8
2,906
2.53125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * TDropContainer class file * * @author Christophe BOULAIN (Christophe.Boulain@gmail.com) * @copyright Copyright &copy; 2005-2016 The PRADO Group * @license https://github.com/pradosoft/prado/blob/master/LICENSE * @package Prado\Web\UI\ActiveControls */ namespace Prado\Web\UI\ActiveControls; use Prado...
true
326f352b4d444daaefe4920a53fb0b35e7c14152
PHP
kenji-toyoshima/lamp_portfolio
/model/cart.php
UTF-8
4,887
2.765625
3
[]
no_license
<?php require_once MODEL_PATH . 'functions.php'; require_once MODEL_PATH . 'db.php'; //cartsテーブルにitemsテーブルを結合し、各種データを取得 成功したらTRUEを返す function get_user_carts($db, $user_id){ $sql = " SELECT items.item_id, items.name, items.price, items.stock, items.status, items.image, c...
true
bb308deb2d0c1a0e48470d6cbe5522faa3f6da7d
PHP
sbatson5/SnapPHP
/Scott/markTest.php
UTF-8
1,211
2.53125
3
[]
no_license
<?php //session_start(); //if(!$_SESSION['username']) //header('Location: ../login.php?error_message=2'); //require ("db_connect.php"); /*$sql = "SHOW TABLES;"; $result = mysqli_query($link,$sql) or die(mysqli_error($link)); */ ?> <!DOCTYPE html> <html> <head> </head> <body> <div id="wrapper"> <?php define('DA...
true
39ab2c28fa31293913a92e8858005472708ec314
PHP
mbmiranda/image-test
/app.php
UTF-8
1,238
2.546875
3
[]
no_license
<?php require_once __DIR__.'/vendor/autoload.php'; use Symfony\Component\HttpFoundation\Request; $app = new Silex\Application(); $app->register(new Silex\Provider\TwigServiceProvider(), array( 'twig.path' => __DIR__.'/views', )); $app->register(new Silex\Provider\SessionServiceProvider()); $app->get('/', fun...
true
e78f50fb40993d8481732e424dafd863af61a547
PHP
PacktPublishing/PHP-Reactive-Programming
/Chapter10/DirectoryIteratorObservable.php
UTF-8
2,184
2.609375
3
[ "MIT" ]
permissive
<?php require_once __DIR__ . '/../vendor/autoload.php'; use Rx\ObservableInterface; use Rx\Observable; use Rx\ObserverInterface; use Rx\SchedulerInterface; use Rx\Scheduler\ImmediateScheduler; class DirectoryIteratorObservable extends Observable { private $iter; private $scheduler; private $selector; ...
true
4578758138d1bb9d6359caf63a14e5aa018ab1b9
PHP
lukagajic/rva-vezbe-2020
/Nedelja 11/klijenti.php
UTF-8
4,033
2.625
3
[]
no_license
<?php $bp = mysqli_connect( '192.168.55.32', 'S2017200046_V11', 'S2017200046_V11', 'S2017200046_V11' ); if(!$bp) { die('Došlo je do greške prilikom povezivanja na bazu podataka!'); } $query = 'SELECT * FROM Klijent'; $result = mysqli_query($...
true
01944522fb0d713e8a42e5106597d79431f42633
PHP
silinternational/addressbook
/application/simplesamlphp/modules/cdc/lib/Auth/Process/CDC.php
UTF-8
1,494
2.84375
3
[ "BSD-3-Clause", "LGPL-2.1-or-later", "LGPL-2.1-only", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /** * Filter for setting the SAML 2 common domain cookie. * * @package simpleSAMLphp */ class sspmod_cdc_Auth_Process_CDC extends SimpleSAML_Auth_ProcessingFilter { /** * Our CDC domain. * * @var string */ private $domain; /** * Our CDC client. * * @var sspmod_cdc_Client */ private $c...
true
7de6d8eb88192203d3840917cf733d241abbeb0d
PHP
dushaniw/Grade1_admission_system
/grade1_admission/app/controllers/Model/Resident_in_closeProximity.php
UTF-8
1,696
3.046875
3
[ "MIT" ]
permissive
<?php class Resident_in_closeProximity{ private $NIC; private $noOfYearsInElectrocalRegister; private $noOfYearsSpouseInElectrocalRegister; private $typeOfTitleDeed; private $closeSchoolCount; private $noOfAditionalDocumentForResident; public function getNoOfAditionalDocumentForResident() { return $this->no...
true
7f7140f76b993c0b218e8dad9be081ab5c437dff
PHP
Bill4869/languages_learning_app
/service/model/functions.php
UTF-8
677
2.796875
3
[]
no_license
<?php define('DB_DATABASE', 'teamEdb'); define('DB_USERNAME', 'teamEdbuser'); define('DB_PASSWORD', 'teamEdbuser'); define('PDO_DSN', 'mysql:dbhost=localhost;dbname=' . DB_DATABASE); define('DB_PERSISTENCE', 1); function getPDO() { static $pdo; if (!isset($pdo)) { $pdo = new PDO(PDO_DSN, DB_USERNAME, D...
true
b9ded1e0a72efbfdcfafe82f544f8709957959c7
PHP
kennygrage/dish
/tests/StoreTest.php
UTF-8
4,302
2.8125
3
[ "MIT" ]
permissive
<?php /** * @backupGlobals disabled * @backupStaticAttributes disabled */ //Linking class for testing require_once "src/Store.php"; //Setting server up to apache and mysql passwords. $server = 'mysql:host=localhost;dbname=shoes_test'; $username = 'root'; $password = 'root'; ...
true
829f53cbdc6c83b8f45d715ca962b5184121495c
PHP
tarikhagustia/hmsi-pos
/app/View/Components/TableViewAction.php
UTF-8
926
2.609375
3
[]
no_license
<?php namespace App\View\Components; use Illuminate\View\Component; class TableViewAction extends Component { public $show; public $edit; public $delete; public $inactive; public $publish; /** * Create a new component instance. * * @param null $show * @param null $edi...
true
8a2a90c8eb1c7ef1176c1a3bb118fbc552c04a2c
PHP
zeetec20/LestariJaya
/asset/php/login.php
UTF-8
537
2.640625
3
[]
no_license
<?php if( isset($_POST["submit"]) ) { $username = $_POST["username"]; $password = $_POST["password"]; $result = mysqli_query($conn, "SELECT * FROM users WHERE username = '$username'"); // cek username if( mysqli_num_rows($result) === 1 ) { // cek password $row = mysqli_fetch_assoc($result); if( password_veri...
true
f629b1559f67f99910792d23111c0a0d94fb1dd1
PHP
EvansMwanik/Machakosrentals
/app/Availability/Payment.php
UTF-8
338
2.8125
3
[ "MIT" ]
permissive
<?php namespace vacantrentals\Payment; Class Payment{ public static function display($Payment){ if ($payment == 0){ echo"Paid"; }else if($payment == 1){ echo "Not Paid"; } } public static function displayClass($payment) { if ($payment == 0) { echo "red"; } else if($payment == 1){ echo ...
true
b5e5719a8ca7a1e330c1d91af229c534977aba58
PHP
gitter-badger/m3-1
/bin/base.php
UTF-8
5,637
2.6875
3
[]
no_license
<?php use m3\cli; const M3_VERSION = 1.0; const M3_BASE_INCLUDED = true; // Realizamos chequeos del sistema. // Versión de PHP > 5.6 if (version_compare(PHP_VERSION, '5.6.0', '<')) { exit("FATAL: M3 requires PHP version at least 5.6.\n"); } // Necesitamos mbstrings si o si if (!function_exists('mb_check_encodin...
true
7d429fcc61caa1516f66be891ba742f0b56e9258
PHP
tangping624/ql-yii2
/weixin/protected/modules/news/repositories/NewsRepository.php
UTF-8
1,524
2.546875
3
[]
no_license
<?php namespace app\modules\news\repositories; use app\entities\lobby\MNews; use app\modules\RepositoryBase; use app\framework\db\PageResult; class NewsRepository extends RepositoryBase { //新鲜事列表 public function getNewsList($skip, $limit, $id) { if ($skip < 0 || $limit < 1) { throw new \...
true
7296a6479c152b41731580d78e0bf26fbb574bd3
PHP
stepok1995/mussite
/models/Tuser.php
UTF-8
1,235
2.75
3
[]
no_license
<?php namespace app\models; use Yii; /** * This is the model class for table "tuser". * * @property int $id * @property string $first_name * @property string $last_name * @property string $patronymic * @property string $login * @property string $password * @property string $e-mail * @property string $img ...
true
21ce15bfba71b151b8e9c15dd6657525df771860
PHP
bernierocks/CAMC
/includes/functions/news_feed.php
UTF-8
3,977
2.640625
3
[]
no_license
<? include('includes/config.php'); /************************************************************ DON'T EDIT ANYTHING BELOW THIS :) ************************************************************/ function news_feed($o){ //sets some globals and vars global $org_id; global $server_name; global $base; $...
true
d3c4d7d5cd5abe2caf186fc140b9adbd0a882712
PHP
spysystem/dhl-express
/src/docTypeRef_ProviderType.php
UTF-8
2,148
2.703125
3
[]
no_license
<?php namespace DHLExpress; /** * Class docTypeRef_ProviderType */ class docTypeRef_ProviderType { /** * @var null|ServiceHeaderType $ServiceHeader */ protected $ServiceHeader; /** * @var docTypeRef_NotificationType3|docTypeRef_NotificationType3[]|null $Notification */ protected $Notification; /** ...
true
e0f6ee732fa37d2ad5d29c418bd573a4be9e04e3
PHP
AndQuizi/Secure-PHP-Uploader
/filedb_fns.php
UTF-8
2,143
2.734375
3
[]
no_license
<?php require_once('db_fns.php'); require_once('secure_data_fns.php'); function uploadFileDB($user,$name,$type,$filesize,$fileKey, $fileIV,$hint,$keyIV){ $conn = db_connect(); $fileName= mysql_real_escape_string($name); $fileType= mysql_real_escape_string($type); //$data= $conn->real_escape_string(file_get...
true
d8e51b1148394f938f28abfa12fd0c6f7ab3fe70
PHP
j4nusl1n/FinalProject
/geolocation.php
UTF-8
1,883
2.625
3
[]
no_license
<!DOCTYPE html> <?php session_start() ?> <html> <head><title>Geolocation</title> <link rel="SHORTCUT ICON" href="123.ico"> <style type="text/css"> a:link { text-decoration: none; color: #1e90ff; } a:visited { text-decoration: none; color: #ff1493; } a:hover { text-decoration: underline; color: #ff45...
true
97346ef06ef8a5c7c9e9c73fa2dde207df7b8348
PHP
sharonranels/codeup-blog
/app/controllers/UserController.php
UTF-8
1,628
2.890625
3
[]
no_license
<?php class UserController extends BaseController { /* |-------------------------------------------------------------------------- | User Controller |-------------------------------------------------------------------------- | | You may wish to use controllers instead of, or in addition to, Closure | based rou...
true
524bcabd133ca7c25efd57ee3c25f5b99db6c554
PHP
naus911/srva
/model/FuncionBlowfish.php
UTF-8
586
3
3
[]
no_license
<?php //Checar si version de php ejecuta blow if(defined("CRYPT_BLOWFISH") && CRYPT_BLOWFISH) { //Funcion para encriptar los datos con Blowfish function encriptar_blowfish ($password, $digito = 7) { $set_salt = './1234567890ABCDEFGHIJKLMNÑOPQRSTUVWXYZabcdefghijklmnñopqrstuvwxyz*#!%&$'; $salt = sprintf('$2a$%02...
true
76daca71155a6fc78b268ace5f22c81f16c2d2e0
PHP
Treblle/treblle-sdk-core
/src/DataObjects/Server.php
UTF-8
1,785
2.921875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Treblle\Core\DataObjects; use Treblle\Core\Concerns\CanBeSerialized; use Treblle\Core\Contracts\DataObjects\TreblleObject; final class Server implements TreblleObject { use CanBeSerialized; /** * @param string|null $ip The IP address of the server. * @para...
true
31b285dcfafc0d9787b7cecfe16f39cc47e79920
PHP
agoalofalife/pattern_php
/src/Creational/FactoryMethod/XmlFactory.php
UTF-8
298
2.6875
3
[]
no_license
<?php namespace Pattern\Creational\FactoryMethod; /** * Class XmlFactory * Xml * @package Pattern\Creational\FactoryMethod */ class XmlFactory extends AbstractFactory { protected $formatName = 'Xml'; public function getData() : FormatData { return new XmlFormat(); } }
true
0c86e5cdde0d5a5942dec540fa60d2449264a681
PHP
PGabo/2020fahejascsiga
/web/config/config.php
UTF-8
669
3.15625
3
[]
no_license
<?php class Database{ private $host = "localhost"; private $username = "root"; private $password = ""; private $database = "hasznaltautok"; private $dbConnection; public function DB_Connect(){ try{ $this->dbConnection = new PDO("mysql:host=" . $this->host . ";dbname=" . $this...
true