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
05deaea04c3aff8c7de68362e6ea6164844342d9
PHP
IDtholas/LouvreBilleterie
/src/AppBundle/Validator/HolidayValidator.php
UTF-8
813
2.609375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: alexa * Date: 03/11/2017 * Time: 15:12 */ namespace AppBundle\Validator; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\ConstraintValidator; /** * Class HolidayValidator * @package AppBundle\Validator */ class HolidayValidator extends Con...
true
28e15a909876b2d74d94e9efb85079e87bce494d
PHP
sanch92/Mascotas
/controllers/MascotaController.php
UTF-8
6,382
2.6875
3
[]
no_license
<?php // CONTROLADOR UsuarioController class MascotaController{ // operación por defecto public function index(){ $this->list(); // listado de mascotas } // lista los usuarios public function list(){ $mascotas = Mascotas::get(); include...
true
d528ec038930374de0d4618e9d05a6a8198a5fc3
PHP
jim7323/MyScan
/app/Http/Controllers/IndexController.php
UTF-8
1,000
2.59375
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class IndexController extends Controller { private $number = 0; public function __construct(Request $request){ } public function index(){ return view('index'); } public function extractData(Request $request){ if($req...
true
cdc2d96af93f7397810fc4747fb0d2e6c649a14d
PHP
x768/uploda
/del.php
UTF-8
314
2.6875
3
[]
no_license
<?php define('FILENAME', "/^[^\\.\\/][^\\/]*$/"); $files = explode('/', file_get_contents('php://input')); foreach ($files as $f) { if (preg_match(FILENAME, $f)) { if (is_file("files/".$f)) { unlink("files/".$f); } if (is_file("thumb/".$f.".png")) { unlink("thumb/".$f.".png"); } } } echo 'OK';
true
da361626cf61d5b1d2fe0cd069cf420ee042bd36
PHP
Vincebml/PHPatterns
/src/Creational/AbstractFactory/Beer/Budweiser.php
UTF-8
460
3.1875
3
[ "MIT" ]
permissive
<?php namespace Phpatterns\Creational\AbstractFactory\Beer; use Phpatterns\Creational\AbstractFactory\BeerInterface; class Budweiser implements BeerInterface { /** @var string */ private $name; public function __construct() { $this->name = 'Budweiser'; } /** * Name of the beer ...
true
f6a832f767ba44673fcf846d5d728f65f490fa52
PHP
marcvifi10/Programacio-web-PICE
/9 - PHP/BDD/bdd21/dbquery.php
UTF-8
2,780
2.78125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>bdd21</title> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <script src="../jquery-3.4.1.min.js"></script> <link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css"> <style> </style> </head> <body> <?php $server = "loca...
true
6d4964a22360b81d0f9b8d227ec473158952c7e5
PHP
fdc-antigua/cakephp
/app/Controller/UsersController.php
UTF-8
5,826
2.5625
3
[]
no_license
<?php // app/Controller/UsersController.php App::uses('AppController', 'Controller'); class UsersController extends AppController { public function beforeFilter() { parent::beforeFilter(); // Allow users to register and logout. $this->Auth->allow('add', 'logout','checkemail'); } ...
true
44642197f2e1b86a68adec6d32788efe92917f93
PHP
benjisimon/code
/omer-learning-book/lib/book.php
UTF-8
4,248
2.640625
3
[]
no_license
<?php define('FPDF_FONTPATH', __DIR__ . '/../fonts/'); /* * A PHP file for generating books */ class Book extends FPDF { private $styles; private $current_style; private $margins = [ 'top' => 72, 'bottom' => 72, 'right' => 36, 'left' => 36 ]; function __construct() { parent::__constr...
true
156bed0397a86335f4059458ee0afdcbd7aa60fa
PHP
jquerygeek/gpweb
/src/Bundle/UserBundle/Dao/UserDao.php
UTF-8
460
2.765625
3
[ "MIT" ]
permissive
<?php namespace Bundle\UserBundle\Dao; interface UserDao { /** * Retrieve User by login and password * * @param string $login * @param string $password * * @return Bundle\UserBundle\Entities\User */ public function findByLoginAndPassword($data); /** * register a n...
true
d32e36a10b6d4b290a2eb15881d3af603edc741f
PHP
raylison100/Project-WEB-BackEnd
/app/Models/Event.php
UTF-8
997
2.53125
3
[]
no_license
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use Prettus\Repository\Contracts\Transformable; use Prettus\Repository\Traits\TransformableTrait; /** * Class Ticket. * * @package namespace App\Models; */ class Event extends Model implements Transf...
true
b74771651acf5b7e5319e888b6b262bf2e0d78a6
PHP
arkaitzgarro/kreta
/src/Kreta/Bundle/CoreBundle/Event/FormHandlerEvent.php
UTF-8
1,843
2.765625
3
[ "MIT" ]
permissive
<?php /** * This file belongs to Kreta. * The source code of application includes a LICENSE file * with all information about license. * * @author benatespina <benatespina@gmail.com> * @author gorkalaucirica <gorka.lauzirika@gmail.com> */ namespace Kreta\Bundle\CoreBundle\Event; use Symfony\Component\EventDis...
true
2849677c68c77b198adb9ecdd51971d9b0033e57
PHP
prezzemolo/logistica
/classes/router.php
UTF-8
2,476
2.984375
3
[]
no_license
<?php namespace Logistica\Classes; require_once join(DIRECTORY_SEPARATOR, [__DIR__, '..', 'tools', 'ex-string.php']); use Exception; use Logistica\Tools\ExString; // error for class Router class RouterError extends Exception {} class Router { private $path; private $prefix; private $routes = array(); pri...
true
4c57fa16f9869a2c6210744786b436e90d7d2710
PHP
aaxpost/php_form
/formz4.php
UTF-8
2,055
2.734375
3
[]
no_license
<html> <head> <title>Формы_Задача_4</title> <meta charset="utf-8"> </head> <body> <p>Задача №4</p> <p> Реализуйте заготовку регистрации пользователя. Спросите у него логин, пароль (в браузере должен быть звездочками) и подтверждение пароля (тоже звездочками). Сравните пароль и его подтверждение: если они не совпадаю...
true
6a3f6fa1756919897eaa6616ec74ac502d3ca9e1
PHP
daaner/NovaPoshta
/src/Traits/Limit.php
UTF-8
1,002
2.859375
3
[ "MIT" ]
permissive
<?php namespace Daaner\NovaPoshta\Traits; trait Limit { protected $limit; protected $page; /** * Установка лимита записей. * * @param int $limit Лимит записей * @return $this */ public function setLimit(int $limit): self { $this->limit = $limit; return...
true
f3cf59882def36561ebb8bc7a31d30fbf34a9288
PHP
Mogrenn/mobilaBiblan
/functions/user.php
UTF-8
161
2.671875
3
[]
no_license
<?php class User{ private $DB; function __construct($DB){ $this->DB = $DB; } function __destruct(){ $this->DB->closeConnection(); } }
true
21dce8e8b2a31d0a4b0f8aae2e20e24411646b37
PHP
geldrin/PHP-testing-ground
/libraries/clonefish/validation.string.php
UTF-8
11,092
2.890625
3
[]
no_license
<?php /** * Clonefish form generator class * (c) phpformclass.com, Dots Amazing * All rights reserved. * * @copyright 2010 Dots Amazing * @link http://phpformclass.com * @package clonefish * @subpackage validation */ /* * Validation * @package clonefish * @subpackage validatio...
true
970e238166335acf283fa7640c290b27438d9ba4
PHP
daveselinger/greenbase
/Tweet.php
UTF-8
3,935
2.578125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: selly * Date: 5/1/15 * Time: 10:03 AM */ namespace greenbase; include_once 'Database.php'; // Note this works, but could be replaced with the better one found here: https://mathiasbynens.be/demo/url-regex, but needs to be really really tested: _^(?:(?:https?|ftp)://)(?:\S+...
true
f9010564c8136276b155586223358c923a7ac26c
PHP
sidazhong/leetcode
/class257/hw4/part2/debug.php
UTF-8
1,620
2.75
3
[]
no_license
<?php /** * @author sida * * mysql * database: EXERCISE * table: WORK_OUT * (longitude:float, latitude:float, workout_type:varchar(5), start-year:int, start-month:int, start-day:int, start-hour:int, start-minutes:int duration:int) * (37.33939,-121.89496, 'swim', 2020, 11, 30, 23, 10, 60) * * 20 examples...
true
58b050e8c125ddb3d3134dccce6bf0f2d66174a4
PHP
dwipebriani/inventaris_ujikom
/print_id_peminjaman.php
UTF-8
1,377
2.671875
3
[ "MIT" ]
permissive
<?php require_once __DIR__ . '/vendor/autoload.php'; include 'config.php'; $id_peminjaman = @$_GET['id_peminjaman']; $peminjaman=mysqli_query($koneksi, "SELECT * FROM tbl_peminjaman LEFT JOIN tbl_inventaris ON tbl_peminjaman.kode=tbl_inventaris.kode LEFT JOIN tbl_ruang ON tbl_inventar...
true
68e1d45e4cb379de33d067662d7e85f8eebf6ab3
PHP
code0001aaa/ProjectPrimera
/OngekiScoreLog/app/MusicData.php
UTF-8
2,008
2.671875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; class MusicData extends Model { protected $table = "music_datas"; protected $guarded = ['id']; function getEstimateExtraLevel(){ $music = MusicData::all(); $keys = [ ['bas...
true
dff9761f6a46dd211fd0a5f31d4764c05953ae13
PHP
deneb3525/chat-program
/views/logout.php
UTF-8
321
2.515625
3
[]
no_license
<!DOCTYPE html> <html> <body> <?php session_start(); print_r($_SESSION); // remove all session variables session_unset(); // destroy the session session_destroy(); print_r($_SESSION); ?> You are logged out. <a href="<?= 'http://'.$_SERVER['HTTP_HOST'].'/views/main_login.php' ?>">Back to login</a> </body> </html>...
true
699aee7eeddc5fad2e895954c8b4b4d50ac135cf
PHP
Yangyang-Cui/FHSU_Map_Management
/include/parseProfile.php
UTF-8
3,790
2.625
3
[]
no_license
<?php if((isset($_SESSION['id']) || isset($_GET['user_identity'])) && !isset($_POST['updateProfileBtn'])){ if(isset($_GET['user_identity'])){ $url_encoded_id = $_GET['user_identity']; $decode_id = base64_decode($url_encoded_id); $url_id_array = explode("encodeuserid", $decode_id); $...
true
ff76be662a56c4a864d2cc31ef4a7dc30b173608
PHP
zxy787956151/ZxyProject
/www/myphp/Ajax2/service.php
UTF-8
479
3.1875
3
[]
no_license
<?php //接受请求参数并根据参数选择操作 if(isset($_POST['action'])&&$_POST['action']!=""){ switch($_POST['action']){ case 'get_all_users': getAllUsers(); break; default: } } //处理请求:以JSON格式返回所有用户信息 function getAllUsers(){ $users = array( array("userId"=>1,"userName"=>"Raysmond"), array("userId"=>2,"userName...
true
52c8ce0cf2437483aee6883b55e84f289a3b6920
PHP
alserom/viber-php
/src/Collection/UserCollection.php
UTF-8
673
2.984375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Alserom\Viber\Collection; use Alserom\Viber\Entity\User; /** * Class UserCollection * @package Alserom\Viber\Collection * @author Alexander Romanov <contact@alserom.com> */ class UserCollection extends AbstractCollection { /** * @param User $user * @param U...
true
ee4fc44ee96e16bb23480ca70059b1647858e773
PHP
xdimedrolx/regis
/src/Regis/Application/Event/InspectionStarted.php
UTF-8
746
2.734375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Regis\Application\Event; use Regis\Application\Event; use Regis\Domain\Entity; use Regis\Domain\Model\Github\PullRequest; class InspectionStarted implements Event { private $inspection; private $pullRequest; public function __construct(Entity\Inspection $inspect...
true
f656a10943a1c852a307c738f1653b990280c66b
PHP
grrr-amsterdam/garp3
/library/Garp/Util/Memory.php
UTF-8
1,102
2.953125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Garp_Util_Memory * Shortcut to toggling memory. * * @package Garp_Util * @author Harmen Janssen <harmen@grrr.nl> */ class Garp_Util_Memory { /** * Raises PHP's RAM limit for extensive operations. * Takes its value from application.ini if not provided. * * @param int $mem In MB...
true
2d8af63212e60b52b993cc094ea648afbf273396
PHP
ruzampl/gdpr-bundle
/Serializer/Normalizer/IterableNormalizer.php
UTF-8
1,327
2.625
3
[ "MIT" ]
permissive
<?php /** * This file is part of the GDPR bundle. * * @category Bundle * * @author SuperBrave <info@superbrave.nl> * @copyright 2018 SuperBrave <info@superbrave.nl> * @license https://github.com/superbrave/gdpr-bundle/blob/master/LICENSE MIT * * @see https://www.superbrave.nl/ */ namespace Superbr...
true
db452b32b2d04e1bdb9e1a4e90c2cb03501fd450
PHP
TelmaMora/ProyectoPersonal
/app/Repositories/UserRepository.php
UTF-8
955
2.578125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: pathao * Date: 8/19/18 * Time: 3:38 PM */ namespace app\Repositories; use app\Models\Permission; use app\Models\User; use Carbon\Carbon; class UserRepository extends BaseRepository { /** * QueryRepository constructor. * */ public function __constr...
true
6c20ea4388aa771621f74b7355d1dfc2e4b32410
PHP
AlexDardy/projet_evolution
/pages/login.php
UTF-8
2,643
2.578125
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Application WEB</title> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <?php include 't...
true
d34e10d9b66eb217e8ba24fd0f9ee6060c5ea1a2
PHP
alicsmn/my_twiiter
/Model/Profile.php
UTF-8
1,184
2.765625
3
[]
no_license
<?php require_once ("User.php"); class Profile extends DB { public function updatemail($updatemail, $mail){ $this->query('UPDATE user SET mail= :updatemail WHERE mail = :mail'); $this->bind(':mail', $mail); $this->bind(':updatemail', $updatemail); $this->execute(); } public function checkmai...
true
e1a53852b6fb12ab7d1a3cde154fa5cc1009c222
PHP
Damanotra/latihan
/application/models/Activities_model.php
UTF-8
2,857
2.578125
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Activities_model extends CI_Model { private $_table = "activities"; public $id; public $name; public $email; public $barang; public $link_gambar; public $komentar; public function rules() { return [ ['field'=>'name', 'label'=...
true
da40cdd3a6394be4b6323455f2a70b8892c9e2a7
PHP
inpresif/laravel-casts
/src/CancelButton.php
UTF-8
658
2.6875
3
[ "MIT" ]
permissive
<?php namespace GeneaLabs\LaravelCasts; class CancelButton extends Button { public function __construct(string $returnUrl) { parent::__construct(''); $this->classes = 'btn btn-cancel pull-right'; $this->returnUrl = $returnUrl; } public function getTypeAttribute() : string ...
true
184ad390021a1fd3d8a29ffe01362e45f10bd46f
PHP
ergebnis/phpunit-slow-test-detector
/src/MaximumCount.php
UTF-8
818
2.84375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * Copyright (c) 2021-2023 Andreas Möller * * For the full copyright and license information, please view * the LICENSE.md file that was distributed with this source code. * * @see https://github.com/ergebnis/phpunit-slow-test-detector */ namespace Ergebnis\PHPUnit\SlowTestDe...
true
bee49d01e328f192973130a4ee54643c86d671e7
PHP
fangchaogang/kam-php
/src/Request/Friend/FriendListRequest.php
UTF-8
648
2.5625
3
[]
no_license
<?php namespace Kam\Request\Friend; use Kam\Request\BaseRequest; use Kam\Response\Response; /** * Class FriendListRequest * @package Kz\Robot\Request * 好友列表 */ class FriendListRequest extends BaseRequest { const PATH = '/friend/list'; public function request() { return new Response(parent::re...
true
17605e07cc0dea53993081ed30c5c3f20b9f3681
PHP
M-Component/Crontabe
/app/library/Task/ConsoleApp.php
UTF-8
3,287
2.765625
3
[]
no_license
<?php namespace Task; use Phalcon\CLI\Console; class ConsoleApp extends Console { private $options = "hdrmp:s:l:c:"; private $longopts = [ "help", "daemon", "reload", "config:", "queue:", "cron:", "checktime:", ]; private $help = <<<HELP 帮助信息:...
true
46aa88d455e39d0b90045d71c669e6192484609d
PHP
samokpe2/School-Portal
/pwordrset3.php
UTF-8
6,224
2.78125
3
[]
no_license
<?php require_once("includes/session.php");?> <?php require_once("includes/connection.php");?> <?php require_once("includes/functions.php");?> <?php //confirm_logged_in_management(); ?> <?php include("includes/header.php"); ?> <?php include_once("includes/form_functions.php"); // START FORM PROCESSING ...
true
cff2d262b8faa682629563f1aef21fa99c0255f8
PHP
ChristopherMcKay/homemade-blog
/blog/uploadImgProc.php
UTF-8
3,716
2.96875
3
[]
no_license
<?php // image upload proc runs on click of Upload button in Upload Img form in blogCMS.php session_start(); if($_SESSION['user'] == false) { // not logged in header('HTTP/1.0 403 Forbidden'); // block header('Location: blogCMS.php'); // redirect } else { // are logged in re...
true
5a15be85896adbd7bef7035311fd194ad34bdfd2
PHP
MaciejKut/PHP-Repos
/PHP-A2-complex-basis/16.php
UTF-8
291
3.71875
4
[]
no_license
<?php function powerUp($a, $n) { $result = 1; if ($n == 0) { return 1; } elseif ($n == 1) { return $a; } else { for ($i = 1; $i <= $n; $i++) { $result = $a * $result; } return $result; } } var_dump(powerUp(2, 1));
true
4d1e36e41f886e86cf1238426246f8f3977bd2ec
PHP
josejames/fantastic-tribble
/controller/obtentours.php
UTF-8
1,326
2.78125
3
[]
no_license
<?php /* Object Oriented */ // obtenTours.php $texto = "ERROR: "; //archivo de configuracion include '../controller/config.php'; $mysqli = new mysqli($hostdb, $usuariodb, $clavedb, $nombredb); //$conn = mysql_connect($hostdb, $usuariodb, $clavedb); /* comprobar la cone...
true
0b98fd1bb1c1920038d6e24a0620f216bd40994b
PHP
hyejinpark-dev/phpwithlaravel
/routes/web.php
UTF-8
1,330
2.625
3
[ "MIT" ]
permissive
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | ...
true
8c411596dd2621d2c78ce8fe41e94d439729c925
PHP
saddanbimanagantara/PWD-WEEK-1
/prosesupload.php
UTF-8
812
2.84375
3
[]
no_license
<?php //ambil lokasi file diambil diupload $lokasifile = $_FILES["fileupload"]["tmp_name"]; //ambil nama file dari file yang diupload $nama_file = $_FILES["fileupload"]["name"]; //ambil data dari deskripsi $deskripsi = $_POST["deskripsi"]; //set direktori untuk menyimpan file yang diupload beserta dengan na...
true
199fab61c9646dcf99167d07ee27c3251c8e4afb
PHP
morefreeze/11rank
/11rank.php
UTF-8
8,260
2.734375
3
[]
no_license
<?php require_once ("DbTools.class.php"); //getCookie(); //$user_info = getUserInfoFrom11('还我K神'); //var_dump($user_info); //updateUserInfo($user_info); //updateAllUser(); //get11LastUpdateTime(); // user_info // id, uname, score, rank, win, lose, update_time // add a user watched function watchNewUser($uid, $new_us...
true
b8d17016b7fb757470fb28d83da9cd9de8fec58e
PHP
codingandcommunity/Learn-With-Coding-And-Community
/moodle/admin/tool/usertours/classes/cache.php
UTF-8
4,452
2.59375
3
[ "GPL-1.0-or-later", "GPL-3.0-only", "GPL-3.0-or-later", "MIT" ]
permissive
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle ...
true
9d261d637fb0df135ca80d3ebb05dd04f65f8599
PHP
virgo27/my_work
/lectures/2018_01_27/re_04.php
UTF-8
1,367
2.546875
3
[]
no_license
<?php empty re $reg = "//"; $reg = "/xyz/"; xyz xyz 123 dsdsjh xyzsagsah 123 xyz 123 123xyz123dhjd 123fhjgxyz carrot ^ $reg = "/^xyz/"; xyz xyz 123 dsdsjh xyzsagsah $reg = "/xyz$/"; xyz 123fhjgxyz $reg = "/^xyz$/"; xyz $reg = "/^xyza?$/"; xyz xyza $reg = "/^xyza*$/"; xyz xyza xyzaa xyzaaaa xyzaaaaaaaaaaaaaaaaaa...
true
00124c72437858af0a96086041955ef69767927e
PHP
akash130013/cannabis_laravel
/app/Imports/AdminAddressImport.php
UTF-8
634
2.59375
3
[]
no_license
<?php namespace App\Imports; use App\AdminDeliveryAddress; use Maatwebsite\Excel\Concerns\ToModel; class AdminAddressImport implements ToModel { const ACTIVE = 'active'; /** * @param array $row * * @return \Illuminate\Database\Eloquent\Model|null */ public function model(array $row) ...
true
e9128144d2f0505136ab8282f4b01e0c1c4c235c
PHP
lbernadskiy/CLI-lib-Test-Task
/src/cli_lib/Entity/Command/CommandBase.php
UTF-8
7,334
3.015625
3
[]
no_license
<?php namespace CliLib\Entity\Command; use CliLib\Entity\Argument; use CliLib\Entity\Parameter; use CliLib\IO\Output\CommonOutputInterface; use CliLib\ConsoleApp; use CliLib\Entity\Command\Config; use CliLib\Exception\{UnlinkedApplicationException, ArgumentException, ParameterException}; /** * Абстрактн...
true
36df7f150a64fa8f259cabc9d85e3a474cdb2ab8
PHP
luanjinlong/pay
/Repository/PayOrderRepository.php
UTF-8
2,864
3.078125
3
[]
no_license
<?php namespace Repository; /** * 支付订单对应的数据处理 * Class PayOrderRepository * @package Repository */ class PayOrderRepository extends \Controller { const ORDER_CREATE = -1; const ORDER_LOCK = -2; const ORDER_REQUEST_FAIL = -3; const ORDER_FAIL = -4; const ORDER_SUCCESS = 1; ...
true
a99bc8eca9010833cf35915c2e10a0cf9afa67dc
PHP
nourhene15/nourheneprojet
/core/clientfidelesF.php
UTF-8
2,551
2.734375
3
[]
no_license
<?PHP include "../config.php"; class clientfidelesF { function afficherclientfideles ($clientfideles){ echo "idClient: ".$clientfideles->getidClient()."<br>"; echo "PointsFidelite: ".$clientfideles->getPointsFidelite()."<br>"; } function ajouterclientfideles($clientfideles){ $sql="insert into clientfide...
true
0940d7e16589c8e4de5b71c884102b5f299d56a5
PHP
m1/form-manager
/src/Attributes/Max.php
UTF-8
3,255
3.109375
3
[ "MIT" ]
permissive
<?php namespace FormManager\Attributes; use FormManager\InputInterface; class Max { public static $error_message = 'The max value allowed is %s'; /** * Callback used on add this attribute to an input * * @param InputInterface $input The input in which the attribute will be added * @param ...
true
19012bbeb6bbfd1e63d47680db95970fd97046dc
PHP
aUsABuisnessman/php-linode-api
/src/foundation/ApiRequestTrait.php
UTF-8
2,419
2.828125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace HnhDigital\LinodeApi\Foundation; /* * 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 GuzzleHttp\Client as Guzzle; /** * This...
true
d389de780902780eb8dd12aecfedd60e85c7e62c
PHP
jfroehlich/coreSite
/site/myapp/models.php
UTF-8
198
2.890625
3
[ "BSD-2-Clause" ]
permissive
<?php // the models of this app. class MyAppItem { var $name = ""; var $created = ""; function __construct($name="demo") { $this->name = $name; $this->created = date("F jS, Y, G:i"); } }
true
f83110e414fd79051be9db0b28eced8ffdd360a7
PHP
codememory1/database
/Builders/Compilers/Configs/TableConfig.php
UTF-8
1,862
3.015625
3
[ "MIT" ]
permissive
<?php namespace Codememory\Components\Database\Builders\Compilers\Configs; /** * Class TableConfig * * @package Codememory\Components\Database\Builders\Compilers\Configs * * @author Codememory */ class TableConfig { /** * @var array */ private array $columns = []; /** * @var string...
true
a72e8b632b19a1d91a0d77739e89811d15e16ec7
PHP
andreytech/mary-framework
/application/models/home.php
UTF-8
349
2.65625
3
[]
no_license
<?php class HomeModel extends CoreModel { function getHomePageData() { // Simple call to database using active record: // $data = $this->db->from('some_table')->getObjects(); // returns array of objects // Simple regular call to database: // $data = $this->db->setQuery($sql)->getObjects(); // returns array of ob...
true
01bac72e29344c92a3623bb3122f80bdba206a8f
PHP
leafpoda/topsdk
/src/top/request/XhotelConfirmRequest.php
UTF-8
1,105
2.515625
3
[]
no_license
<?php /** * TOP API: taobao.xhotel.confirm request * * @author auto create * @since 1.0, 2013-12-05 12:50:25 */ class XhotelConfirmRequest { /** * 1:认可淘宝匹配的结果 2:不认可淘宝匹配的结果 **/ private $confirm; /** * hid **/ private $hid; private $apiParas = array(); public function set...
true
a46b8a723c90fa32de7bb8aa07d19cec59230197
PHP
efhafidezet/e-asset-web
/database/migrations/2021_03_18_033825_create_assignment_table.php
UTF-8
1,005
2.5625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateAssignmentTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('assignment',...
true
0f8b62a8858233b8de014776b2c478ef1f98fc65
PHP
hardcoded74/elliott-forum
/src/addons/ThemeHouse/Monetize/Listener/CriteriaUser.php
UTF-8
1,325
2.578125
3
[]
no_license
<?php namespace ThemeHouse\Monetize\Listener; use ThemeHouse\Monetize\XF\Entity\UserProfile; use XF\Entity\User; /** * Class CriteriaUser * @package ThemeHouse\Monetize\Listener */ class CriteriaUser { /** * @param $rule * @param array $data * @param User $user * @param $returnValue *...
true
2f5217c1d25075dbda07ec3eb76f63541c8f6b72
PHP
saulhoward/haddock-cms
/core/tags/20080221/haddock-project-organisation/classes/HaddockProjectOrganisation_PHPIncFile.inc.php
UTF-8
2,089
2.90625
3
[]
no_license
<?php /** * HaddockProjectOrganisation_PHPIncFile * * @copyright Clear Line Web Design, 2007-08-27 */ class HaddockProjectOrganisation_PHPIncFile extends FileSystem_PHPIncFile { private $title_line; private $copyright_holder; private $date; private $body; public function get_t...
true
d76470fe092f6ba601b6b600d186162cf7a5a15e
PHP
aybbou/patent-scraper
/src/Rayak/PatentsScraper.php
UTF-8
2,884
3.015625
3
[]
no_license
<?php namespace Rayak; use Goutte\Client; /** * @author Ayyoub */ class PatentsScraper { private $client; private $config = array(); private static $patentScraper = NULL; private function __construct(Client $client, array $config = null, $path) { $this->client = $client; $this->co...
true
b3d6af83fa2240b08a2764eebf5123e98b3a2a9b
PHP
xingziye/steampunked-project2
/lib/Steampunked/CreateGameView.php
UTF-8
1,231
2.890625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Santoro * Date: 4/8/16 * Time: 3:20 PM */ namespace Steampunked; class CreateGameView { /** * Constructor * Sets the page title and any other settings. */ public function __construct(Site $site) { $this->site = $site; } public...
true
3497fba36ddccada0ed100ff390e8992dc79c061
PHP
zachbrowne/phpODP
/testscript.php
UTF-8
768
2.59375
3
[ "CC-BY-3.0" ]
permissive
<? /** * You do not need to upload this script to your server if you don't experience any problems! :) * * testscript.php - will check to see if you can access the dmoz server from your host/server. * * If you experience any problems with odp.php, please run this script to see what errors are shown. Search for th...
true
acb344976dcbedcf3634b4f7f6f95f18b0996bb1
PHP
edjenkins/xmovement
/app/Jobs/SendContactEmail.php
UTF-8
1,018
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Jobs; use App\Jobs\Job; use Illuminate\Queue\SerializesModels; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Queue\ShouldQueue; use Lang; use Mail; use App\Message; use App\User; class SendContactEmail extends Job implements ShouldQueue { use InteractsWithQueue, Seriali...
true
374b627162050deb414104e31549ff636cb40bd7
PHP
DilipKumarR14/All
/codeigniter/application/controllers/Archived.php
UTF-8
4,446
2.734375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php header('Access-Control-Allow-Origin: *'); header("Access-Control-Allow-Headers: Authorization"); include_once "NoteStoreConfig.php"; /** * @description api for the archive the notes */ class Archived { /** * @method isArchive() * to check whether it is archived * @var id which store the id ...
true
e21522a4ef0e4fa701793d6ddb0e255ab1ffccd1
PHP
riuson/eaaphp2
/classes/router.php
UTF-8
1,210
2.765625
3
[]
no_license
<?php /* * Check, find and load controller. */ Class Router { private $registry; function __construct($registry) { $this->registry = $registry; } function delegate() { // Analize call $this->getController($controllerClassName); // Create controller (__autoload) $controller = new $controllerClassNa...
true
26c48d8a5918d1bbbec064c873aff221be61c64b
PHP
dtabirca/design-patterns
/tests/VisitorTest.php
UTF-8
1,081
3.125
3
[]
no_license
<?php declare(strict_types=1); /** * Visitor Test * * @category Design_Patterns * @package Behavioral * @author AltTab * @license WTFPL https://en.wikipedia.org/wiki/WTFPL * @link https://github.com */ use DesignPatterns\Behavioral\Visitor; use PHPUnit\Framework\TestCase; /** * Testing Visitor Patt...
true
a616e040c7554b6a85b669df51dfee6e7eaed44b
PHP
tlaffoon/freezy-octo
/app/database/migrations/2014_12_02_171450_AddUsersTable.php
UTF-8
1,867
2.65625
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; class AddUsersTable extends Migration { /** * Run the migrations. */ public function up() { // Creates the users table Schema::create('users', function ($table) { $table->increments('id'); $table->string(...
true
bce75291dc930c4c8276d1c46102290b61a7343f
PHP
gdhaison/pure_php_mvc
/PostManager/src/Controller/Manager/ManagerController.php
UTF-8
2,756
2.6875
3
[]
no_license
<?php use Model\Provider; require_once(__DIR__ . '/../../Model/Provider.php'); class ManagerController { private static $instance; public static function getInstance() { if (is_null(self::$instance)) { self::$instance = new ManagerController(); } return self::$instan...
true
d684b7aacc90a609efb053e2230958ea101c66bf
PHP
fakhrishahab/csi_web
/app/Http/Controllers/ContactController.php
UTF-8
892
2.515625
3
[ "MIT" ]
permissive
<?php namespace csi\Http\Controllers; use csi\Message; use Illuminate\Http\Request; use csi\Http\Requests; use Illuminate\Support\Facades\Input; use Illuminate\Support\Facades\Response; class ContactController extends Controller { protected $messages; public function __construct(Message $message) { $this->mes...
true
8e3e357cf04a12464359cca09029a3a7dba342a5
PHP
EduardCherkashyn/codingTask
/src/Entity/Task.php
UTF-8
2,035
2.609375
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity * @ORM\Table(name="task") */ class Task { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue * @var int */ private $id; /** * @ORM\Column(type="string") * @var string */...
true
4bc50085bc2bee4911653f9e1c5197d0e37f7911
PHP
chrgu000/gongnangwang
/gongnangconsole/Apps/Home/Mapper/ProjectAuditMapper.class.php
UTF-8
684
2.640625
3
[]
no_license
<?php namespace Home\Mapper; final class ProjectAuditMapper implements IMapper { public function tranlate(array $rows, $isArray) { if (! empty ( $rows )) { if ($isArray) { foreach ( $rows as $k => $v ) { $rows [$k] ['old_publish_status_txt'] = _getProPublishStatusById ( $v ['old_publish_status...
true
9daf90eb3e7f7e37104602e05f023506bf22c83d
PHP
ztavruz/server-site
/app/Service/User/UserService.php
UTF-8
1,184
2.890625
3
[]
no_license
<?php namespace App\Service\User; use App\Entity\User; use App\Repository\UserRepository; use App\Security\Token\Token; use App\Storage\SessionStorage; class UserService { private $repository; /** * @var SessionStorage */ private $jwt; public function __construct(UserRepository $repositor...
true
b32070b33beecf5ef7a5a126ffe5b386f4f57935
PHP
lipevieira/selo
/app/Models/Document.php
UTF-8
1,030
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Document extends Model { protected $fillable = ['doc_name', 'description',]; protected $dates = [ 'created_id', 'created_at', ]; /** * Relacionamento de morphTo * * @return Institution * @re...
true
4e47902abe0ea95a1c184e57cd8cb0878161cace
PHP
carlosjonas/aprendiz_back_end
/home.php
UTF-8
2,552
2.765625
3
[]
no_license
<?php //Linkando minha conexao com o banco require_once 'acao/conexao.php' ?> <!DOCTYPE html> <html> <head> <title>CRUD</title> <meta charset="utf-8"/> <link rel="shortcut icon" href="assets/img/favicon.ico" /> <!--Adicionando minha linkagem externa de css,js e de icones do font-awesome--> <link rel="styleshee...
true
2054db460ee93145fc70ec38ff9cda9d5eef8292
PHP
dellsala/ESys-Framework
/lib/library/ESys/PHPUnit/TestSuiteBuilder.php
UTF-8
2,718
2.84375
3
[]
no_license
<?php /** * @package ESys */ /** * */ class ESys_PHPUnit_TestSuiteBuilder { public function build ($suiteClass, $targetDirectory) { $suite = new $suiteClass(); $suite->setName($suiteClass); $testFiles = $this->findTestFiles($targetDirectory, true); foreach ($testFiles as...
true
f51dd303cdd0620a7d78a0055e8319bf9d9c7aa8
PHP
chameleon-system/chameleon-base
/src/CoreBundle/private/library/classes/TViewParser/TViewParser.class.php
UTF-8
8,214
2.625
3
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "GPL-2.0-only", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later", "Apache-2.0", "LGPL-2.1-or-later", "CC0-1.0", "CC-BY-2.5", "MPL-2.0", "MPL-1.0", "LGPL-2.1-only", "...
permissive
<?php /* * This file is part of the Chameleon System (https://www.chameleonsystem.com). * * (c) ESONO AG (https://www.esono.de) * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use ChameleonSystem\CoreBundle\ServiceLocator; /** ...
true
2ea224d4f74894941a6b75fc4463b90aa588505e
PHP
filipha/web-backend-oplossingen
/opdracht-conditional-statements-switch/opdracht_conditional_statements_switch.php
UTF-8
623
3.125
3
[]
no_license
<?php $getal = 5; switch ( $getal ) { case 1: $antwoord = "maandag"; break; case "2": $antwoord = "dinsdag"; break; case "3": $antwoord = "woensdag"; break; case "4": $antwoord = "donderdag"; break; case "5": $antwoord = "vrijdag"; break; case "6": $antwoord = "zater...
true
f69dda072de253429d4cfaeb24f52aeebf4b1f98
PHP
OgaBoss/algoexpert-php
/src/Implementations/DoublyLinkedList/ListNode.php
UTF-8
324
3.359375
3
[]
no_license
<?php namespace Src\Implementation\DoublyLinkedList; class ListNode { public ?ListNode $next = null; public ?ListNode $prev = null; public int $value; /** * ListNode constructor. * @param int $value */ public function __construct(int $value) { $this->value = $value; ...
true
c550bf7be6c4f76cde7a35dc37abde1d00b79e6f
PHP
chewam/ExtMyAdmin
/php/json/error.php
UTF-8
979
3.234375
3
[]
no_license
<?php /** * JSON error class * * @class JsonError */ class JsonError { /** * Error(s) store * * @property array $_error */ protected $_error = array(); /** * Check if error were generated * * @method get_error * @param string $msg Error message * @param string $attr Error key attr...
true
365457f3d49e793352fd514953742d0e93fdebc3
PHP
ambient-amber/docs
/symfony_twig.php
UTF-8
3,112
2.65625
3
[]
no_license
<? // --------------------------------------------- // Inheritance // parent {% block stylesheets %} <link href="{{ asset('css/main.css') }}" rel="stylesheet" /> {% endblock %} // child {% block stylesheets %} {{ parent() }} <link href="{{ asset('css/contact.css') }}" rel="stylesheet" /> {% endblock %} /...
true
185a091e0a233551e617355c5974e8ed323c2c03
PHP
allflame/vain-core
/src/Exception/ConnectionFactoryException.php
UTF-8
1,310
2.75
3
[]
no_license
<?php /** * Vain Framework * * PHP Version 7 * * @package vain-connection * @license https://opensource.org/licenses/MIT MIT License * @link https://github.com/allflame/vain-connection */ declare(strict_types = 1); namespace Vain\Core\Exception; use Vain\Core\Connection\Factory\ConnectionFactoryInter...
true
6ff923cb7034e4c5a89a365e5d8884fd82efc24b
PHP
dredix84/UCC_Project
/views/group_rights.php
UTF-8
1,594
2.546875
3
[]
no_license
<?php session_checkstart(); if(isset($_REQUEST["rtoken"]) && isset($_SESSION["rtoken"]) && $_SESSION["rtoken"] == $_REQUEST["rtoken"]){ $nowcat = ""; $db->query("SELECT rights FROM user_groups WHERE id = ".$_REQUEST["id"]); $grights = $db->fetch_assoc(); if(isset($grights)){ $grights = json_decode($grights["right...
true
13d283f858a33c9b5b93db074f95d562d688b97e
PHP
thrasyvoulos/doc_manager
/models/Role.php
UTF-8
760
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "role". * * @property integer $roleid * @property string $description */ class Role extends \yii\db\ActiveRecord { /** * @inheritdoc */ const ROLE_ADMIN = 1; const ROLE_USER = 2; public static function ta...
true
6f287f69d84ba3a1e60e47cb4c75e112ff95731f
PHP
redlinx/PHP-Web-Development
/unit06/home.php
UTF-8
1,766
2.65625
3
[]
no_license
<?php require_once("class/class_voter.php"); $voter = new voter(); $voters_list = $voter->display_voters_list(); echo "<div class ='alert alert-dark'>"; echo '<div class="row">'; echo '<div class="col-sm-12">'; echo '<h1 align="center">Account Records</h1>' ; echo "</div>"; echo "</div>"; echo "</div>"...
true
fb201004b3d76630a3631607f73960c6f1966b81
PHP
Konzertheld/Portfolio
/theme.php
UTF-8
5,932
2.578125
3
[]
no_license
<?php /** * Portfolio Habari Theme * by Konzertheld * http://konzertheld.de */ class Portfolio extends Theme { /** * Execute on theme init to apply these filters to output */ public function action_init_theme() { $this->add_template('block.photoset_randomphotos', dirname(__FILE__) . '/block.photoset_ran...
true
685cecb3c9bd34003e259211c514e8a625c6559c
PHP
sheikhjahid/itobuz-plus
/app/Http/Controllers/RoleController.php
UTF-8
1,739
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests\RoleRequest; use App\Contracts\RoleInterface; class RoleController extends Controller { protected $roleInterface; public function __construct(RoleInterface $roleInterface) { $this->roleInterface = $roleInterface; ...
true
7d835bb4a080f8b4a7e2543da19d65de5b01a2fe
PHP
adminlii/yt
/application/models/Service/AutomaticLetterTemplate.php
UTF-8
5,840
2.703125
3
[]
no_license
<?php class Service_AutomaticLetterTemplate extends Common_Service { /** * @var null */ public static $_modelClass = null; /** * @return Table_AutomaticLetterTemplate|null */ public static function getModelInstance() { if (is_null(self::$_modelClass)) { self:...
true
39bec04f2c07188c3ecbb754a04a548f0f6e64f3
PHP
sketchytech/json-book
/php/indexing_in_progress/chapter-parser.php
UTF-8
3,807
2.546875
3
[]
no_license
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> </script> <script> // Currently shows all notes and references // TODO: show one box that swipes to reveal notes, refs, user notes // TODO: reveal only notes and references for single paragraph by using this.id $(document).ready(function()...
true
8929a0569948305c051271bfed4a8fcc4990a979
PHP
sky8652/laravel-cms
/app/Model/Admin/Admin.php
UTF-8
3,106
2.546875
3
[]
no_license
<?php namespace App\Model\Admin; use App\Traits\ModelTrait; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Support\Facades\DB; class Admin extends Authenticatable { use Notifiable; use ModelTrait; use Sof...
true
464b71fa62ecac558f2734430cf71b341a897d88
PHP
pmill/php-plesk
/src/pmill/Plesk/DeleteEmailAddress.php
UTF-8
1,373
2.59375
3
[ "BSD-2-Clause" ]
permissive
<?php namespace pmill\Plesk; class DeleteEmailAddress extends BaseRequest { /** * @var string */ public $xml_packet = <<<EOT <?xml version="1.0"?> <packet version="1.6.3.0"> <mail> <remove> <filter> <site-id>{SITE_ID}</site-id> <name>{USERNAME}<...
true
e80577bd8c1c539f8a85d367a69c11df6ce03325
PHP
tomaz/PieCrust
/tests/libs/PHPUnitWebReport/PHPUnit/WebReport/Dashboard.php
UTF-8
7,662
2.828125
3
[ "Apache-2.0" ]
permissive
<?php /** * The main file for PHPUnit-WebReport. */ require_once 'Report.php'; /** * The dashboard for a PHPUnit test run. */ class PHPUnit_WebReport_Dashboard { public $report; public $errors; /** * Runs PHPUnit on the given directory. */ public static function run($testsDir, $logFi...
true
33bcd11d98d87ff4a3b98d60e53b3072465d3fbb
PHP
cyrnne/Magiting
/adminHats.php
UTF-8
22,775
2.59375
3
[]
no_license
<?php include('includes/session.php'); if($_REQUEST['action']=="Add") { try { include('includes/indexdb.php'); $prodID = rand(1000,10000); $prodName = $_POST['prodName']; $prodDesc = $_POST['prodDesc']; $prodPrice = $_POS...
true
dd114049bc1ee2b50dfc090246f25566e8fb35f0
PHP
benrowe/formatter
/tests/FormatterProviderTest.php
UTF-8
1,681
2.546875
3
[ "MIT" ]
permissive
<?php use Benrowe\Formatter\Formatter; use Benrowe\Formatter\Tests\Examples\NumberSampleProvider; use Benrowe\Formatter\Tests\Examples\SampleProvider; // use stdObject; /** * Test sample providers */ class FormatterProviderTest extends PHPUnit_Framework_TestCase { /** * @var Formatter */ private $...
true
d5092eac399f2d81ffd1d21a8265ba0b48caa852
PHP
dukekn/clpngs
/core/factory/DataFactory.php
UTF-8
2,862
2.796875
3
[]
no_license
<?php namespace App\Core\Factory; abstract class DataFactory { public static function getData(array $file): array { $values = array_map('str_getcsv', file($file['tmp_name'])); $keys = ['cust_id', 'vat_id', 'doc_id', 'type', 'parent_doc_id', 'currency', 'amount']; $result = array(); ...
true
6a3f5756c5f7c03a541582f116a610b3291b959f
PHP
Kwadz/poker-hand-evaluator
/app/src/Controller/DefaultController.php
UTF-8
2,403
2.5625
3
[]
no_license
<?php namespace App\Controller; use App\Form\FileUploadType; use App\Service\Counter; use App\Service\FileParser; use App\Service\FileUploader; use Doctrine\ORM\EntityManagerInterface; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component...
true
015fc7da0a182ca663bc40fdf8c4a63e86c85530
PHP
crysalead/net
/src/Mime/Address.php
UTF-8
3,663
3.0625
3
[ "MIT" ]
permissive
<?php namespace Lead\Net\Mime; use InvalidArgumentException; /** * Email/name address container (support UTF-8 charset only). */ class Address { /** * Email address * * @var string */ protected $_email; /** * Name * * @var string */ protected $_name; /**...
true
e5bb0beeaa7ad930d2b3d3fd767a7d403b4ff553
PHP
lossendae/Previously-on
/src/models/TvShow.php
UTF-8
3,508
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* * This file is part of the Lossendae\PreviouslyOn. * * (c) Stephane Boulard <lossendae@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Lossendae\PreviouslyOn\Models; use DB; use Eloquent; /** * Class TvSh...
true
e0ce90613edbbf33ce76f15ba10c9e767807dfeb
PHP
mankidal19/RentIt
/web/php/checkUserLogin.php
UTF-8
1,683
2.65625
3
[]
no_license
<?php // Start up your PHP Session session_start(); include('config.php'); ?> <?php // username and password sent from form $myusername=$_POST['username']; $mypassword=$_POST['password']; $sql="SELECT * FROM user WHERE username='$myusername' and password='$mypassword'"; $result=mysqli_query($con...
true
54acc05883ed657885182763f272cca4b1b2ba2c
PHP
kkesidis/currencies
/app/Eloquent/Repository.php
UTF-8
2,829
3.28125
3
[]
no_license
<?php namespace App\Eloquent; use App\Interfaces\RepositoryInterface; use Illuminate\Database\Eloquent\Model; use Illuminate\Container\Container as App; abstract class Repository implements RepositoryInterface { private $app; protected $model; public function __construct(App $app) { $this->app = $app; ...
true
f488aed0ee56bfdd7a5aefcfada32a9d8add18ea
PHP
OksanaZakharovaIP-31/RGZ
/connect.php
UTF-8
460
2.578125
3
[]
no_license
<?php $server = 'localhost'; // имя сервера $username = 'root'; // имя пользователя $database = 'king'; $password = 'h.5r3rJYwia7BGk'; $con=mysqli_connect($server, $username,$password, $database) //функция открытия соединения с севером базы данных or die (mysqli_error()); // если подключение не открылось, отобр...
true
5c35fec57038b075e141baa8f4137d04f1360b4e
PHP
urm123/white_lable_restaurant
/app/Repository/AddressRepository.php
UTF-8
856
2.828125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: janaka * Date: 28/02/19 * Time: 11:10 AM */ namespace App\Repository; use App\Address; /** * Class AddressRepository * @package App\Repository */ class AddressRepository { /** * @param array $request * @return Address */ public function create(...
true
fb896d4d45f2d7a5b4de51f495990242137a630d
PHP
AnhThi/Syslytic
/application/models/Captcha_model.php
UTF-8
1,031
2.546875
3
[ "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Captcha_model extends CI_Model { public $variable; public function __construct() { parent::__construct(); } public function insert_capt($time,$ip,$word) { $data = array( 'captcha_time' => $time, 'ip_addr...
true