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
1de65047cc34e44cccac5ea77a40acf1722b0bc6
PHP
EverRest/komilfo
/inner/application/modules/login/models/admin_login_model.php
UTF-8
771
2.609375
3
[]
no_license
<?php defined('ROOT_PATH') OR exit('No direct script access allowed'); class Admin_login_model extends CI_Model { /** * Отримання інформації про адміністратору * * @param string $login * @return array|null */ public function get_admin($login) { $r = $this->db->where('login', $login)->where('s...
true
bab27e83c03d5f97ca20959716c4ee3a5327b4d6
PHP
AmineAid/GlassNumide
/editversement.php
UTF-8
3,043
2.8125
3
[]
no_license
<?php session_start(); include_once ('database_connection.php'); if (isset($_POST['contactid'])){ $id = trim($_POST['id']) ; $contactid = trim($_POST['contactid']) ; $time = trim($_POST['time']) ; $time=strtotime($time); $versement = trim($_POST['versement']) ; if(mysqli_query($dbc,"UPDATE versements SET time='...
true
66399ffdc2454f23e403fb7865f375ef36975347
PHP
chenyu00544/loong
/mobile/app/Modules/Api/Controllers/UserController.php
UTF-8
18,933
2.609375
3
[]
no_license
<?php namespace App\Modules\Api\Controllers; use App\Modules\Api\Foundation\Controller; use App\Services\AuthService; use App\Services\UserService; class UserController extends Controller { private $userService; private $authService; /** * User constructor. * @param UserService $userService ...
true
b6f559e259be2e36c6fc738a5cb31bce64b0d189
PHP
progserg/tests
/questions.php
UTF-8
1,321
2.671875
3
[]
no_license
<?php include (__DIR__.'/MyClasses/Users.php'); session_start(); $user = $_SESSION['user']; ?> <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Вопрос № <?php echo $_SESSION['num_question']; ?></title> </head> <body> <h1>Привет, <?php echo $user->getName(); ?></h1> <h2>Вопрос №<?php echo $_SESSI...
true
7d48bd5ea5d550040b0b6f98acd6f29a000525d8
PHP
houjunpeng0576/jianshu
/app/Http/Admin/Controllers/RoleController.php
UTF-8
1,866
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Admin\Controllers; use App\Http\Controllers\Controller; use App\Http\Models\AdminPermission; use App\Http\Models\AdminRole; class RoleController extends Controller { //角色展示 public function index(){ $roles = AdminRole::paginate(10); return view('admin.role.index',compa...
true
f1fb8218c478a380a7f459c173e7880c14ec9711
PHP
muhammad-nauman/muslim-app
/app/Console/Commands/PublishWeeklyReminders.php
UTF-8
3,404
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use App\Device; use App\WeeklyReminder; use Illuminate\Console\Command; use LaravelFCM\Facades\FCM; use LaravelFCM\Message\OptionsBuilder; use LaravelFCM\Message\PayloadDataBuilder; use LaravelFCM\Message\PayloadNotificationBuilder; class PublishWeeklyReminders extends Command {...
true
994f52839db8b872861c61e02ec6a26f41256ef2
PHP
NickTaylorSussex/softshack
/TrackApi/routes/web.php
UTF-8
5,526
2.75
3
[]
no_license
<?php //TODO: Tidy up routes by moving some code to outside functions. //TODO: Add zoom level as a parameter to the grid. //TODO: Add request type to log. /** * Listen for a get request, create a query for the processed_clean_properties table based on the Haversine formula. * * @param string $androidId Andro...
true
1b96b9003d9c1d455a0c95ab3e4b1719a839355e
PHP
Rittukumar/VDriveAdmin
/app/controllers/EventTransformer.php
UTF-8
1,238
2.53125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Vishu Venki @CreativeThoughts * Date: 05/01/15 * Time: 5:57 PM */ use League\Fractal; class EventTransformer extends Fractal\TransformerAbstract { /** * Turn this item object into a generic array * * @param WoiceEvent $event * @return array * ...
true
21ddab2ec38f4f45ff679f2bc8a4f357071a8177
PHP
LucaSantanaf/Site-Ep
/admin/painel/pages/cadastrarSubcategoria.php
UTF-8
2,610
2.546875
3
[]
no_license
<?php if(isset($_POST['acao']) && $_POST['acao'] == 'cadastrar'): include_once "inc/slug.php"; $categoria = $_POST['categorias']; $subcategoria = strip_tags(filter_input(INPUT_POST, 'subcategoria')); $slug = slug($subcategoria); $val->set($categoria, 'Categoria')->obrigatorio(); $val->set($su...
true
5349b8d37c81a870803e29f91c495a769612c71e
PHP
thorbym/MySQLParser
/src/MySQLParser.php
UTF-8
855
3.109375
3
[]
no_license
<?php require_once 'StringParser.php'; require_once 'SelectParser.php'; require_once 'UpdateParser.php'; require_once 'InsertParser.php'; require_once 'DeleteParser.php'; class MySQLParser extends StringParser { function __construct($sql = false) { if ($sql) { $this->processSqlQuery($sql); } } function pr...
true
bd0636a4f29ba33887ce0ee9dea983469184ffc4
PHP
capella80/Sockets
/src/Socket.php
UTF-8
11,088
3.40625
3
[ "MIT" ]
permissive
<?php namespace Navarr\Socket; use Navarr\Socket\Exception\SocketException; /** * Class Socket * * A simple wrapper for PHP's socket functions * * @package Navarr\Socket */ class Socket { protected $resource = null; protected $domain = null; protected $type = null; protected $protocol = null; ...
true
a52ea8c73bdc78365206e018d0f80164de968c63
PHP
marcospassos/php-serializer
/src/Provider/ArrayServiceProvider.php
UTF-8
967
2.859375
3
[]
no_license
<?php namespace PhpCommon\Serializer\Provider; use PhpCommon\Serializer\ServiceProvider; use InvalidArgumentException; class ArrayServiceProvider implements ServiceProvider { private $services; public function __construct(array $services) { foreach ($services as $id => $service) { if...
true
7f0a92b777c6030abb8b4acd6179c64c22e23a39
PHP
coodesoft/webR-A-C
/web/protected/extensions/PHtml.php
UTF-8
2,308
2.8125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: pablo * Date: 08/07/16 * Time: 16:24 */ class PHtml extends CHtml { /** * Displays a summary of validation errors for one or several models. * @param mixed $model the models whose input errors are to be displayed. This can be either * a single model or an...
true
0b75f949384f3b549b4f9c54af4436cd17866529
PHP
Valentin1918/php_lessons
/src/lesson_3.3.php
UTF-8
1,037
3.59375
4
[]
no_license
<?php /** * Similarly, in a queue, the element deleted is always the one that has been in the set for the longest time: the queue implements a first-in, first-out, or FIFO, policy * Class Queue */ class Queue { private $container = []; private $head = 0; private $tail = 0; private $length = 10; ...
true
0001f5fb21751af6684af578db127dfb49277779
PHP
Ravynet/demo
/src/DataFixtures/AppFixtures.php
UTF-8
1,124
2.59375
3
[]
no_license
<?php namespace App\DataFixtures; use App\Entity\Post; use Doctrine\Bundle\FixturesBundle\Fixture; use Doctrine\Common\Persistence\ObjectManager; use Faker\Factory; class AppFixtures extends Fixture { private $faker; public function load(ObjectManager $manager) { $this->faker = Factory::create(...
true
e8c1a8c1c39cd264cb48166ea0190b8c84d160d4
PHP
FilipAntala/Webtech2-final
/TrasyTabulka.php
UTF-8
2,587
2.65625
3
[]
no_license
<!DOCTYPE html> <html lang="sk"> <html> <head> <meta charset="UTF-8"> <link rel="stylesheet" type="text/css" href="styly.css"> <title>Tabulka tras</title> <style> /* Always set the map height explicitly to define the size of the div * element that contains the map. */ ...
true
8e87d45e7515a1ca7ac5ccee38a73c19247a7e5a
PHP
arewolf/CheckEngine
/app/controllers/cars/process_select.php
UTF-8
484
2.578125
3
[]
no_license
<?php // Controller class Controller extends AjaxController { protected function init() { //Set Session Values: $sql="SELECT * FROM car WHERE user_id = {$_SESSION['user_id']} AND name = '{$_POST['car_select']}'"; $results = db::execute($sql); $row = $results->fetch_assoc(); $_SESSION['c...
true
e3c2d3bea4c385d8192b34eab8e028d5069f002d
PHP
Javrd/EVM
/Segundo Cuatrimestre/EVM/vistas/responsables.php
UTF-8
6,391
2.53125
3
[]
no_license
<?php session_start(); if(!isset($_SESSION["login"])){ header("Location: ../index.php"); } try{ if (!file_exists('../gestion/gestionarResponsable.php' )) throw new Exception ('No existe el fichero gestionarResponsable.php'); else require_once ("../gestion/ge...
true
9b180488cb34a9cac528be52cc0cd6528562875e
PHP
MannikJ/laravel-wallet
/src/Models/Transaction.php
UTF-8
6,923
2.5625
3
[ "MIT" ]
permissive
<?php namespace MannikJ\Laravel\Wallet\Models; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloq...
true
03578f05ff0f7dc41f01eeddcc55eab6ee21faf5
PHP
neerajSpy/TestEss
/fetch_timesheet_project.php
UTF-8
2,983
2.703125
3
[ "MIT" ]
permissive
<?php include "config/config.php"; $user_id = $_POST['user_id']; $year = $_POST['year']; $month = $_POST['month']; $response = array(); # SELECT `id`, `project_id`, `project_activity_user_id`, `user_id`, `Project Name`, `Task Name`, `Staff Name`, `Email`, `Notes`, `time_spent`, `Begin time`, `End time`, `Date`, `Bi...
true
9a09855713b3ba8295f019d0abcd211d7968ceb0
PHP
CharlyCB/SinCoWick_web
/appweb2015/nuevo.php
UTF-8
749
2.625
3
[]
no_license
<?php header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Headers:Origin,X-Requested-With, Content-Type, Accept"); require('functions.php'); if(isset($_POST['submit'])){ require('clases/cliente.class.php'); $nombres = htmlspecialchars(trim($_POST['nombres'])); $ciudad = htmlspecialchars(trim($_PO...
true
4f37ee6fe8c5161acb5d83b7c71d48796d2276a9
PHP
ParisSud130/SongRepository
/Controleur/Router.php
UTF-8
1,681
2.96875
3
[]
no_license
<?php class Router { private $controller; private $method; public function __construct(){ $this->analyseUrl(); } public function analyseUrl(){ $this->controller = Config::HOME_CONTROLLER; if (!empty($_GET['c'])){ $this->controller = ucfirst(strtolower($_GET['c'])) . "Controller"; } $t...
true
4abd5c9892a991f04cf8b1863fcffbf1c9d1ee46
PHP
badahov/Patterns
/AbstractFactory.php
UTF-8
2,119
3.1875
3
[]
no_license
<?php namespace AbstractFactory; /** * Class ApptEncoder * * @package AbstractFactory */ abstract class ApptEncoder { abstract function encode(); } /** * Class CommsManager * * @package AbstractFactory */ abstract class CommsManager { const APT = 1; const TTD = 2; const CONTACT = 3; abstr...
true
e2b0dbd6b92a4d9c6a4e585133dbbc93b7ad6b9d
PHP
lordnet/spay
/inc_functions.php
ISO-8859-1
67,309
2.5625
3
[]
no_license
<?php //require("class.phpmailer.php"); // ********************************************************************************* // Pagination Functions // ********************************************************************************* // PAGE function getPage() { if(isset($_GET["page"]) && $_GET["p...
true
2e9832b224fac57dabc73769fd472de42f43b2f0
PHP
stevebontemps/Last_car
/core/EntitiesBuilder.php
UTF-8
8,868
2.8125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: padbrain * Date: 14/06/18 * Time: 21:19 */ namespace Lastcar\core; //use Lastcar\core\DatabaseConnect; //use DatabaseConnect; class EntitiesBuilder extends Dao { use Utilities; protected $pdo; protected $aTables; private function query(){ // S...
true
f17bafe9b4845b54969d9f5065c04d74c980f9c5
PHP
quangthi90/Yesocl
/object/Document/Finance/Date.php
UTF-8
1,347
2.796875
3
[]
no_license
<?php namespace Document\Finance; use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB; /** * @MongoDB\Document(db="yesocl", collection="finance_date") */ Class Date { /** * @MongoDB\Id */ private $id; /** * @MongoDB\Int */ private $quarter; /** * @MongoDB\Int */ private $year; /** ...
true
53b87737e85372d689d3354fcd4498c871ddab8f
PHP
AlexandreGerault/OpenClassrooms_Blog
/src/Repositories/CommentsRepository.php
UTF-8
4,188
2.75
3
[]
no_license
<?php namespace AGerault\Blog\Repositories; use AGerault\Blog\Contracts\Repositories\CommentsRepositoryInterface; use AGerault\Blog\Models\Article; use AGerault\Blog\Models\Comment; use AGerault\Framework\Database\QueryBuilder; use DateTime; use PDO; class CommentsRepository implements CommentsRepositoryInterface { ...
true
12030bf5831b17687a1846ca0fa95bc9b1c355f8
PHP
shadowdestiny/dockenizacion
/src/tests/unit/CastilloBetIdUnitTest.php
UTF-8
1,216
2.578125
3
[]
no_license
<?php namespace EuroMillions\tests\unit; use EuroMillions\web\vo\CastilloBetId; use EuroMillions\tests\base\UnitTestBase; class CastilloBetIdUnitTest extends UnitTestBase { public function setUp() { parent::setUp(); } /** * method create * when called * should returnNewCast...
true
99f72f44cde90dd3fdf19a52ffc95d2dfa540ff8
PHP
sevrovera/basic-blog-php-class
/ajouter_contenu.php
UTF-8
1,727
2.765625
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE HTML> <html> <head> <title>Formulaire</title> </head> <body> <h2> Formulaire d'ajout de contenu au blog </h2> <form action="insertion_contenu.php" method="post" enctype="multipart/form-data"> <div> <label>Titre : </l...
true
ba42c9518ce085d08a92200e8517f46d4051caf7
PHP
feixuekeji/wenzhang
/application/http/Worker.php
UTF-8
3,858
2.796875
3
[ "Apache-2.0" ]
permissive
<?php namespace app\http; use think\worker\Server; use Workerman\Lib\Timer; use Workerman\Worker as W; class Worker extends Server { protected $socket = 'websocket://0.0.0.0:2345'; /** * 每个进程启动 * @param $worker */ public function onWorkerStart($worker) { // 开启一个内部端口,方便内部系统推送数...
true
79c104b5ae88f1a0353a20b1717f5ac10b1e1ca3
PHP
kvinav/projet2
/src/Controller/Controller.php
UTF-8
1,263
2.78125
3
[]
no_license
<?php namespace Blog\Controller; use Blog\Model\PostsManager; use Blog\Model\CommentsManager; use Blog\Model\AnswersManager; use Blog\Model\Answers; use Blog\Model\App; abstract class Controller { protected $db; public function __construct() { $this->db = App::getDatabase(); } public function getListPost...
true
5d0a5c660fd35a5127abc8594833ae8ca6dc9070
PHP
Efcolipt/MultiTheAito
/func/func_add_news.php
UTF-8
3,361
2.578125
3
[]
no_license
<?php // Проверяем, пусты ли переменные логина и id пользователя if (empty($_SESSION['login'])) { // Если пусты, то мы не выводим ссылку require('header.php'); echo '<div id="block" class="blocks">Вы зашли на сайт, как гость. Зарегистрироваться вы можете здесь <a href="reg.php">Зарегистрирова...
true
9c20af609c32423e8a552a5248ecd6712f6e6351
PHP
grow-services/growclient-v1.1-php
/src/ApiClient/BaseApiClient.php
UTF-8
1,377
3.03125
3
[]
no_license
<?php namespace Grow\Client\ApiClient; use Grow\Client\HttpClient\HttpClientInterface; use Grow\Client\Model\BaseModel; /** * @author Cong Peijun <p.cong@linkorb.com> * @author Igor Mukhin <igor.mukhin@gmail.com> */ abstract class BaseApiClient implements ApiClientInterface { protected $httpClient; /** ...
true
8ff542a6b7869a3664c88cabb3072e4856afd666
PHP
masiuchi/wp-plugin-wovn
/wovn_lang.php
UTF-8
3,233
2.921875
3
[]
no_license
<?php class WovnLang { public $langName = ''; public $code = ''; public $en = ''; public function __construct($langName, $code, $en) { $this->langName = $langName; $this->code = $code; $this->en = $en; } public static function getAllLangs() { return array( 'العربية' => new s...
true
117c1bf42ea0658357965ffd21e210d41fca0b48
PHP
vcrazy/php-design-patterns
/proxy/proxy.php
UTF-8
769
2.90625
3
[]
no_license
<?php include_once('book.php'); include_once('book_list.php'); class Proxy { private $list = NULL; public function get_count() { if($this->list === NULL) { $this->make_list(); } return $this->list->get_count(); } public function add_book($book) { if($this->list === NULL) { ...
true
9ae278f9ac0eb447c074b7f8aca4320d70425c36
PHP
jinzita007/ci
/admin/application/models/setting_model.php
UTF-8
1,744
2.59375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * Created by PhpStorm. * User: zhouyulong * Date: 2017/5/11 * Time: 下午11:19 */ class Setting_model extends CI_Model { public function __construct() { parent::__construct(); $this->load->database(); } //读取全部用户信息 public function get_all($limit=null, $offset=null){ ...
true
aac2a1eeec5e3a79b0b2b80a076cfa2b9f459106
PHP
Frumph/comic-easel
/ceo-import.php
UTF-8
13,312
2.8125
3
[]
no_license
<?php // Set values used (changed if returned changed) $import_directory = 'import'; $import_time = isset($_POST['import-time']) ? esc_attr( $_POST['import-time'] ) : '00:01'; $import_type = isset($_POST['import-type']) ? esc_attr( $_POST['import-type'] ) : true; $import_date_format = isset($_POST['import-date-format'...
true
deec76a9e8723424dcb1b9c7fbdb92f14b9fa61f
PHP
andrewroth/c4c_intranet
/Documentation/API/Tutorial/6 PageDisplay/ex_SeriesEdit_valid.php
UTF-8
3,715
3.109375
3
[]
no_license
<?php $pathFile = 'General/gen_Includes.php'; $extension = ''; // Attempt to find proper directory from current page to Root ... $numAttempts = 0; while ( (!file_exists($extension.$pathFile)) && ( $numAttempts < 5) ) { $extension = '../'.$extension; $numAttempts++; } require ( $extension.$pathFile )...
true
8d79c7a03c8908ba9f07f9c31dcaea9947d7d732
PHP
qq497012571/RBAC-Thinkphp-Admin
/Application/Common/Common/function.php
UTF-8
2,188
2.828125
3
[]
no_license
<?php /** * 检测输入的验证码是否正确,$code为用户输入的验证码字符串 * @param [type] $code [description] * @param boolean $reset 是否重置验证码 * @param string $id [description] * @return [type] [description] * @author jlb <[<email address>]> */ function check_verify($code, $reset = true, $id = ''){ $verify = new \Think\Ve...
true
c2048540cd0905ed267e688b30e4877abb2494a1
PHP
trms/carousel-api-php
/src/Server/API.php
UTF-8
3,726
2.515625
3
[ "MIT" ]
permissive
<?php namespace TRMS\Carousel\Server; use GuzzleHttp\Client; use GuzzleHttp\HandlerStack; use TRMS\Carousel\Models\User; use TRMS\Carousel\Models\Bulletin; use TRMS\Carousel\Models\Group; use TRMS\Carousel\Models\BulletinOrder; use TRMS\Carousel\Models\CarouselModel; use TRMS\Carousel\Exceptions\CarouselAPIException;...
true
840eaa13c1d515ac923f38d76f7650d9f497e4a0
PHP
syfxlin/code
/design-pattern-php/Strategy/Strategy.php
UTF-8
1,364
3.734375
4
[ "MIT" ]
permissive
<?php /** * 策略模式 * * 策略模式定义了一系列的算法,并将每个算法封装起来 * 而且使他们还可以相互替换。策略模式让算法独立于使用它的客户而独立变化。 * 策略模式和状态模式,命令模式比较类似 * 策略模式重在整个算法的替换 * 状态模式是通过状态来改变行为 * 命令模式重在调用者和执行者解耦 */ class Context { /** * @var string */ public $str = "This is a string"; /** * @var Strategy */ public $strategy; ...
true
12bf27b5574c8030f150791ec5d0bc2aef75b595
PHP
mhowland75/MathsProgresstion
/app/Student.php
UTF-8
1,711
2.59375
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use App\StudentLogin; use App\Student; class Student extends Model { protected $table = 'students'; public function studentLogin() { return $this->hasOne('App\StudentLogin','student_id', 'student_id'); } public function studen...
true
ef47a840bdb6f46dea2c20b0beb8e0071592f004
PHP
bhoold/mocms
/application/admin/models/dbfield_model.php
UTF-8
3,091
2.59375
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* * @Author: Raven * @Date: 2019-11-05 01:47:34 * @Last Modified by: Raven * @Last Modified time: 2019-11-10 01:11:46 */ class dbfield_model extends CI_Model { public function list($tableName) { $sql = 'SHOW COLUMNS FROM '.$tableName; ...
true
c126dea111dec8502723cbd8c2e85d80d1be8d41
PHP
IgnVecro/KingsCraftHCF
/src/hcf/level/task/GlowstoneResetTask.php
UTF-8
781
2.875
3
[]
no_license
<?php namespace hcf\level\task; use Exception; use hcf\HCF; use hcf\level\LevelManager; use pocketmine\scheduler\Task; use pocketmine\utils\TextFormat; class GlowstoneResetTask extends Task { /** @var LevelManager */ private $manager; /** * GlowstoneResetTask constructor. * * @param Leve...
true
85aea06109da1432a72154b7d78802c022ffb876
PHP
samhol/SPHP-framework
/sphp/php/tests/classes/Sphp/Tests/Validators/Datetime/LaterThanTest.php
UTF-8
1,893
2.703125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * SPHPlayground Framework (https://playgound.samiholck.com/) * * @link https://github.com/samhol/SPHP-framework for the source repository * @copyright Copyright (c) 2007-2019 Sami Holck <sami.holck@gmail.com> * @license https://opensource.org/licenses/MIT The MIT License...
true
748d6f1eadeeb312167d65c43e46df0057f361ea
PHP
andreianet/php-intro-dio
/service/serviceCategory.php
UTF-8
1,309
3.21875
3
[]
no_license
<?php function defineCategory(string $name, string $age) : ?string { $category = []; $category[] = 'infantil'; $category[] = 'adolescente'; $category[] = 'adulto'; $category[] = 'idoso'; if(validaName($name) && validaAge($age)) { removerMsgError(); if($age >= 6 && $age <= 1...
true
1b5d10c76cec3aa7778518a46de6af9dba2e60a6
PHP
olythy/sku-builder
/src/Strategy/Implode.php
UTF-8
470
2.8125
3
[ "MIT" ]
permissive
<?php /** * @copyright Copyright (c) 2018 OlyThy <olythy@gmail.com> * @license http://opensource.org/licenses/mit-license.php The MIT License */ namespace SkuBuilder\Strategy; use SkuBuilder\Strategy; class Implode implements Strategy { private $separator; public function __construct($separator = '...
true
836def688b203eba0404cc036cb7c6360aaa21ba
PHP
nanumichael27/codefii
/vendor/codefii/core/src/Network/Controller/BaseController.php
UTF-8
3,260
2.5625
3
[]
no_license
<?php namespace Codefii\Controller; use Codefii\FileReader; use Codefii\View\View; use Codefii\Controller\Template; use Codefii\Session\Session; abstract class BaseController { protected $middleware = []; protected $route_params = []; protected $template_path ="app/templates/"; protected $layo...
true
f50ef2fc0e6b17e0ed36b885ba226b61596d25fb
PHP
yayv/AES-CBC-PKCS7Padding
/AES_CBC_PKCS7Padding.php
UTF-8
1,210
3.078125
3
[]
no_license
<?php class AES_CBC_PKCS7Padding { /* */ public function __construct() { $this->key = "ihlih*0039JOHT$)(PIJY*(()JI^)IO%"; $this->salt="\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F"; $this->iv = "\x0A\x01\x0B\x05\x04\x0F\x07\x09\x17\x03\x01\x06\x08\x0C\...
true
8c2509593c579bc1410691861ff4c6efab2ad2a7
PHP
classcompete/web_portal
/backend/vendor/migrations/050_add_timezone_diff_column.php
UTF-8
488
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: FenjeR * Date: 2/4/14 * Time: 2:59 PM */ class Migration_Add_timezone_diff_column extends Migration{ public function up(){ $sql = array( 'ALTER TABLE `teachers` ADD ( `time_diff` VARCHAR(3));', 'ALTER TABLE `teachers` CHANGE `time_diff` `...
true
97bc2e333df6c06c13098533477f3337a2ae0c7d
PHP
pantian/pt_library
/src/Verify/NumberVerify.php
UTF-8
816
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2017/1/14 0014 * Time: 12:16 */ namespace PTLibrary\Verify; use Bin\Error\ErrorHandler; use Bin\Exception\VerifyException; /** * 纯数字校验类 * Class NumberVerify * * @package Verify */ class NumberVerify implements Verify { /** ...
true
4542925546d5f2274fcfd7102d09d3dcef06ad9b
PHP
AkioUnity/Student-Housing
/signer/src/helpers.php
UTF-8
9,115
2.84375
3
[]
no_license
<?php use Simcify\Auth; use Simcify\Container; use Simcify\Database; use Simcify\Config; use Simcify\Router; use Simcify\Session; use Simcify\Str; if(! function_exists('asset')) { /** * Generate a valid asset url * * @param string $url * @return mixed */ function asset($url) { ...
true
4f93d7b03f573d84fbc9c2e97c9e60f37f31c7ec
PHP
amruu/zf2-user
/src/Zf2User/Entity/Password/Bcrypt.php
UTF-8
1,516
2.984375
3
[ "MIT" ]
permissive
<?php /** * @author Ibrahim Azhar <azhar@iarmar.com> * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ namespace Oml\Zf2User\Entity\Password; use Zend\Crypt\Password; class Bcrypt implements PasswordInterface { /** * Instance of Bcrypt * * @var Zend\Crypt\Password\Bcrypt */ ...
true
dd7245c75b73b0e4a6d823bcb1565125c1a60a3c
PHP
jarbor23/pagosPSE
/app/Custom/PSETransactionRequest.php
UTF-8
4,150
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Custom; class PSETransactionRequest { private $bankCode; private $bankInterface; private $returnURL; private $reference; private $description; private $language; private $currency; private $totalAmount; private $taxAmount; private $devolutionBase; privat...
true
72e1c329482c8b1860c77f128397aef7df8ff44b
PHP
siberfx/laravel-clickup
/src/Support/Builder.php
UTF-8
9,981
2.65625
3
[]
no_license
<?php namespace Spinen\ClickUp\Support; use BadMethodCallException; use GuzzleHttp\Exception\GuzzleException; use Illuminate\Support\Arr; use Illuminate\Support\Collection as LaravelCollection; use Spinen\ClickUp\Concerns\HasClient; use Spinen\ClickUp\Exceptions\InvalidRelationshipException; use Spinen\ClickUp\Except...
true
d3213f733f86da85baa41a72002f89f231415cbc
PHP
kachejunior/samea
/lib/Terminales.php
UTF-8
2,066
2.734375
3
[]
no_license
<?php //require_once 'BaseDatos.php'; class Terminales { private $id; private $descripcion; public function __construct() { $this->id = null; $this->descripcion = null; } public function getId(){ return $this->id;} public function getDescripcion(){ return $this->descrip...
true
c4d9dae29b225c218772c413d861adf74768821a
PHP
AleksST/library2
/application/models/DbTable/Author.php
UTF-8
1,833
2.625
3
[]
no_license
<?php /** * Author * * @author Aleks S Tushin * @version */ class Application_Model_DbTable_Author extends Application_Model_ApplicationTable { /** * The default table name */ protected $_name = 'author'; protected $_dependentTables = array('Application_Model_DbTable_Author'); prote...
true
0d3f43558192b7985e9ca6fd31404046d9758f90
PHP
noproblematall/laravel_lottery
/app/Console/Commands/StartLotteryThree.php
UTF-8
830
2.765625
3
[]
no_license
<?php namespace App\Console\Commands; use App\Http\Controllers\LotteryController; use Illuminate\Console\Command; class StartLotteryThree extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'prize3:start'; /** * The con...
true
0a548c08b7e1b09168bd514393aa49b4949dcf17
PHP
davidvalen95/sm
/app/Model/Thread.php
UTF-8
1,643
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; /** * App\Model\Thread * * @property int $id * @property \Carbon\Carbon|null $created_at * @property \Carbon\Carbon|null $updated_at * @property string|null $title * @property int|null $last_reply_user_id * @property int|null $creator_user_id...
true
99aadaed22e5f659f3b302682335160d7ba7f02d
PHP
wuzhitian/SquareMeter
/SMPlatform/PLATFORM/MODEL/DATA/DigitalEstate.php
UTF-8
1,978
2.59375
3
[]
no_license
<?php declare( strict_types = 1 ); /** * Project: SMPlatform * File: DigitalEstate.php * Create: 2018/4/9 * Author: Hugh.Lee * Email: umbrellahughlee@gmail.com * Copyright: SMBC Inc. */ namespace SMPlatform\PLATFORM\MODEL\DATA; use SMPlatform\PLATFORM\MODEL\ENUM\_TokenLiquidateMode; use SMPlatform\PLATFORM\MOD...
true
e12254d953c818126dd6a4546c9c2889726e143a
PHP
allen-garvey/block-quote-php
/inc/views/export-sql.php
UTF-8
5,907
2.796875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* * Exports database as sql for import into block quote phoenix * https://github.com/allen-garvey/block-quote-phoenix */ function printTable(string $selectStatement, callable $rowCallback){ $tableData = DbController::select($selectStatement); foreach (DbController::select($selectStatement) as $row) { echo ...
true
b9f27d96a02527a76b71ecbea644709844a73a81
PHP
phpactor/phpactor
/lib/Indexer/Model/MemoryUsage.php
UTF-8
1,918
3.078125
3
[ "MIT" ]
permissive
<?php namespace Phpactor\Indexer\Model; use RuntimeException; use function ini_get; use function memory_get_usage; final class MemoryUsage { private function __construct(private ?int $memoryLimit, private int $memoryUsage, private int $precision = 0) { } public static function create(): self { ...
true
e1bb99aec073f42077f727d4d81b8974bf1d4e65
PHP
ItsSamarth/php
/date/different timze zones.php
UTF-8
240
2.65625
3
[]
no_license
<?php $date1 = new DateTime(); $date2 = new DateTime(); $westcost = new DateTimeZone('America/Los_Angeles'); $date2->setTimeZone($westcost); echo $date1->format('g:ia,l , F j, Y').'<br>'; echo $date2->format('g:ia,l , F j, Y').'<br>'; ?>
true
eb3b2d9eb8e95975b089206e1df7d22e7b1d6659
PHP
princessvincent/E-mechanics
/upload.php
UTF-8
2,314
2.75
3
[]
no_license
<?php session_start(); include_once "connection.php"; // include_once "header.php"; if(!isset($_SESSION["logged_in"])){ header("login.php"); } $user = (object) $_SESSION["logged_in"]; if($user->role_id == 2){ include_once "head.php"; }else{ include_once "header.php"; } if(isset($_GET["id"])){ $id = ...
true
085167454dc814ff6fff76d0d923e8481e258e7c
PHP
link2zain/webmagic_dashboard
/src/Core/Collections/RenderableItemsCollection.php
UTF-8
601
2.90625
3
[]
no_license
<?php namespace Webmagic\Dashboard\Core\Collections; use Illuminate\Contracts\Support\Renderable; class RenderableItemsCollection implements RenderebleItemsCollectionContract { /** @var array Items collection */ protected $items = []; /** * Add item to collection * * @param Renderable $...
true
c8cf718deec693c37b436d6b7130b7e6721bd734
PHP
CraigGiles/public-rhm
/app/redhotmayo/distribution/SubscriptionDistribution.php
UTF-8
4,262
2.671875
3
[ "MIT" ]
permissive
<?php namespace redhotmayo\distribution; use Exception; use Illuminate\Support\Facades\App; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Log; use redhotmayo\dataaccess\repository\RepositoryFactory; use redhotmayo\dataaccess\repository\ZipcodeRepository; use redhotmayo\library\ExcelParser; use redh...
true
687439807a66d2671198eac873b4147707d175e8
PHP
hamidionline/php-conversion
/tests/unit/DigitalInformationTest.php
UTF-8
607
2.640625
3
[ "Apache-2.0" ]
permissive
<?php use Crisu83\Conversion\Quantity\DigitalInformation\DigitalInformation; use Crisu83\Conversion\Quantity\DigitalInformation\Unit; class DigitalInformationTest extends \Codeception\TestCase\Test { public function testSimple() { $di = new DigitalInformation(1024, Unit::BYTE); $this->assertEq...
true
c5360b1c883b089c37409e339fe0aa6240e83ad1
PHP
dwamatu/uap-app
/app/Utilities/InspectorUtilities.php
UTF-8
1,041
2.53125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: black * Date: 29/11/2016 * Time: 12:42 */ namespace App\Utilities; class InspectorUtilities { public static function getCropInspectors(){ return (array("data" => json_decode(ApiUtilities::IssueGETRequest(ApiUtilities::MakeAPIURL("/fetch/inspectors")), true))); } ...
true
1af66d9d18e06e0b67ae4dc144fd7ac73409dc95
PHP
cabrelken/restaurantapi-master
/app/Http/Requests/OrderCreateRequest.php
UTF-8
1,046
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class OrderCreateRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Ge...
true
44ceb6885de4c008884c4f430ae081b8a1f86da4
PHP
pbyrne84/phpmockito
/lib/PHPMockito/Action/DebugBackTraceMethodCall.php
UTF-8
1,654
2.921875
3
[]
no_license
<?php namespace PHPMockito\Action; use PHPMockito\Mock\MockedClass; use PHPMockito\ToString\ToStringAdaptorFactory; class DebugBackTraceMethodCall extends ExpectedMethodCall { /** @var array */ private $debugBacktrace; /** * @param ToStringAdaptorFactory $toStringAdaptorFactory * @param...
true
64be9de42845f2b04b4cb9b6ff869614fec89e2b
PHP
vChesnutt/VanChesnutt.com
/submit0.php
UTF-8
817
2.859375
3
[]
no_license
<?php /* [VERIFY CAPTCHA FIRST] */ $secret = '6Lf0U7IUAAAAAEZ5ptQKsZ9mN0a0TQIQePdwxomI'; // CHANGE THIS TO YOUR OWN! $url = "https://www.google.com/recaptcha/api/siteverify?secret=$secret&response=".$_POST['g-recaptcha-response']; $verify = json_decode(file_get_contents($url)); /* [PROCESS YOUR FORM] */ if ($ve...
true
e6007c259f98c9387aed52b3b230fd54ee4f60a2
PHP
jadeAttacker/reactDemo
/deployment/phpStudy/sqlGoodsManage/index.php
UTF-8
1,700
2.65625
3
[ "MIT" ]
permissive
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>查看商品信息</title> </head> <body> <center> <?php include("nav.php"); ?> <h3>查看商品信息</h3> <table border="1" width="800"> <tr> <th>商品编号</th> <th>商品名称</th> <th>商品图片</th> ...
true
3a78ca1c9bbfdab877c94d536fa88e7eba19db65
PHP
chetan-ladumor/laravel-form-demo
/app/Registration.php
UTF-8
513
2.640625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Foundation\Auth\User as Authenticatable; //use Illuminate\Database\Eloquent\Model; class Registration extends Authenticatable { protected $fillable= ['name','email','password']; protected $hidden=['password', 'remember_token']; /** * Add a mutator to ensure ha...
true
cbe913d33038c391d5661f76a4d2b0b60ce225f4
PHP
dennistobar/katas
/impares/funcion.php
UTF-8
311
3.265625
3
[ "MIT" ]
permissive
<?php function getImparesArray($a, $b){ return array_map(function($f){ return $f*2; }, range($a % 2 ? $a : $a+1, $b, 2)); } function getImparesIterativo($a, $b){ $tmp = array(); for($i = $a % 2 ? $a : $a+1 ; $i <= $b; $i+=2){ $tmp[] = $i * 2; } return $tmp; }
true
d373f3d8c63d2f68fe8b91dc1b2a09ed442ff45d
PHP
pedrovasco96/SIBD
/part3/insert_client_db.php
UTF-8
1,529
2.8125
3
[]
no_license
<html><meta charset="UTF-8"> <head> <link rel="stylesheet" href="styles.css"> <title>Insert Client</title> </head> <body> <div class='content'> <h1>Casa Açores Vet Clinic - Insert Client</h1> <?php session_start(); $VAT = $_SESSION['VAT']; $name = $_REQUEST['name']; $city = $_REQUEST['city'];...
true
4caf44b571a1d0f58d53e55754be1d3871e09893
PHP
Anurag111193/Patient_Management_System
/pms/ajaxFiles/SearchDoctor.php
UTF-8
3,830
2.65625
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ // Include The dbConn.php File include_once '../includes/dbConn.php'; if(isset($_POST)){ $q = $_POST['searchw...
true
464020333ab4afff45d494f3b9f173d0e62ee5f5
PHP
yshnb/musephp
/clio/src/Clio/Adapter/Doctrine/Id/UUIDGenerator.php
UTF-8
703
2.640625
3
[]
no_license
<?php namespace Clio\Adapter\Doctrine\Id; use Doctrine\ORM\Id\AbstractIdGenerator; use Doctrine\ORM\EntityManager; /** * UUIDGenerator * * @uses AbstractIdGenerator * @package { PACKAGE } * @copyright { COPYRIGHT } (c) { COMPANY } * @author Yoshi Aoki <yoshi@44services.jp> * @license { LICENSE } */ class U...
true
6acb395adf8b967cc6c0a2841708cd7c4df1cb30
PHP
davidinsuomi/token_address
/query_with_parameter.php
UTF-8
1,150
2.515625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: weiding * Date: 02/09/2017 * Time: 10:42 */ require_once 'login.php'; require_once 'Token.php'; require_once 'get_token.php'; function find_table_name($token_name) { $tokens = init_tokens(); foreach ($tokens as $token) { if ($token_name == $token->name) {...
true
48c26fa2789936620cf85b17dedb5f46d61444a1
PHP
mohitsahunitrr/CREA_socket_server
/creasocket.php
UTF-8
3,851
2.734375
3
[]
no_license
#!/usr/bin/env php <?php require_once('./websockets.php'); class echoServer extends WebSocketServer { //protected $maxBufferSize = 1048576; //1MB... overkill for an echo server, but potentially plausible for other applications. protected function process ($user, $message) { $this->send($user,$message); } ...
true
1a3fe86ce4d4bd05d27f8c774bca56d9e8cbbe87
PHP
cedtanghe/elixir
/src/framework/Elixir/Security/Firewall/Loader/Arr.php
UTF-8
1,072
2.59375
3
[]
no_license
<?php namespace Elixir\Security\Firewall\Loader; use Elixir\Security\Firewall\Loader\LoaderInterface; /** * @author Cédric Tanghe <ced.tanghe@gmail.com> */ class Arr implements LoaderInterface { /** * @see LoaderInterface::load() */ public function load($pConfig) { if(!is_array($pCon...
true
32c250dc1d62d9e777660921ded222d0682ff8ae
PHP
sebou77/My-Planif
/Site/Modules/mod_Connexion/modele_Connexion.php
UTF-8
917
2.8125
3
[]
no_license
<?php class ModeleConnexion extends ModeleGenerique{ public function Connexion($mdp,$pseudo){ $conn = parent::getPDO(); $res=$conn->prepare("SELECT * FROM `utilisateur` where psd=?"); $res->execute(array($pseudo)); $data = $res->fetch(); if(password_verify($mdp, $data['mdp']) && $data['psd']=...
true
a0124d019c67cb8074d0f6d5b88eb225e3b1c23f
PHP
GoldTeamGame/PharmacyPortal
/php/validateResetPassword.php
UTF-8
838
2.78125
3
[]
no_license
<?php /* File: /php/validateResetPassword.php * * Validates password using regEx, and confirm for equality to password. */ define('MATCH_FOUND', 1); $passwordRegEx = '/^\w{6,}$/'; $password = isset( $_POST['password'] )? $_POST['password'] : ''; $confirm = isset( $_POST['confirm'] )? $_P...
true
eff1645f14e0b4e8c91d1d18b51ff46caf2bdee8
PHP
ilkka-rautiainen/mealbookers
/php/app/import/TtaloImport.php
UTF-8
4,594
2.546875
3
[]
no_license
<?php class TtaloImport extends SodexoImport implements iImport { protected $restaurant_id = 9; protected $sodexo_id = 142; /** * Import and Save opening hours */ protected function saveOpeningHours() { Logger::debug(__METHOD__ . "T talo Import time"); $source = $this->fe...
true
c0c0d6eb406db9f1f84ff354eb67f426b37882e1
PHP
ridwanzal/pupr_muaraenim
/application/libraries/Banner_depan.php
UTF-8
546
2.59375
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Banner_depan { protected $CI; public $banner; public function __construct(){ $this->CI =& get_instance(); $cache_banner_depan=$this->CI->cache->file->get('banner_depan'); if($cache_banner_depan === FALSE){ $data=$this->CI->db->qu...
true
b3bac4651e246c652377ca7763e368a88a4a61da
PHP
PhantomOverride/mkweb
/app/database/migrations/2016_10_27_150816_create_liveposts_table.php
UTF-8
1,510
2.578125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateLivepostsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('liveposts', function(Blueprint $table) { $table->increments('id'); ...
true
cfb8e21062b520ad406c0865d37fc44a364436df
PHP
mbober1/SerwisACO
/includes/AdminService.php
UTF-8
1,161
2.921875
3
[]
no_license
<?php include_once __DIR__ . '/WorkerService.php'; final class AdminService extends WorkerService { public function __construct() { parent::__construct(); } public function changeUserPermission($id, $new_perm) { $stmt = $this->database->prepare("UPDATE `users` SET `permission` = ? WHERE `id` = ?;"); $stmt-...
true
3abbeb707f8935bbef59c048b8f6074192cf9268
PHP
ShivanKaul/TreeWars
/signup.php
UTF-8
1,718
2.9375
3
[ "MIT" ]
permissive
<?php include 'header.php'; echo '<h3>Sign up</h3>'; include 'connect.php'; if ($_SERVER['REQUEST_METHOD'] != 'POST') { echo '<form method="post" action=""> Username: <input type="text" name="user_name" /> Password: <input type="password" name="user_pass"> Password again: <input type="passw...
true
677700e5e4742c0803de3dfacb348f4c476585ec
PHP
sjelfull/craft3-beam
/src/models/BeamModel.php
UTF-8
2,747
2.703125
3
[ "MIT" ]
permissive
<?php /** * Beam plugin for Craft CMS 3.x * * Generate CSVs and XLS files in your templates * * @link https://superbig.co * @copyright Copyright (c) 2017 Superbig */ namespace superbig\beam\models; use superbig\beam\Beam; use Craft; use craft\base\Model; /** * @author Superbig * @package Beam * ...
true
238eff9a33f46a63e5910db8eee883d322b9784a
PHP
Osnobel/tp5-sae
/sae/template/KVDB.php
UTF-8
3,938
2.6875
3
[ "Apache-2.0" ]
permissive
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006~2017 http://thinkphp.cn All rights reserved. // +-------------------------------------------------...
true
3e9502634cc38d6f076ecbe8cfc0549c1e8a9dcd
PHP
eepletnev/way-cup-erp
/erp/module/app/application.php
UTF-8
4,021
2.953125
3
[]
no_license
<?php class SysApplication { // properties: static protected $navBarPages; static protected $adminPages; static protected $orderPages; static protected $otherPages; static protected $currentPage; static protected $currentShop; // Meaning the shop that uses this interface. // Hz if needed: // This basicly contains...
true
3bdd566129d260ffbac529208c788d4e0cf11308
PHP
yukiyaxxxx/laravel-basic-cms
/htdocs/app/helpers.php
UTF-8
6,744
3.015625
3
[ "MIT" ]
permissive
<?php /** * 配列をエスケープしながらURLエンコードせずにjson化 * 文字列でも使用可 * * @param [type] $array * @return void */ //if (! function_exists('vueEscape')) { // function vueEscape($array) // { // if (null != $array) { // $tempString = json_encode($array, JSON_UNESCAPED_UNICODE); // $tempString = str_replace('\r\n'...
true
74a568a354dec4b3b768cbf380f8702de08c5272
PHP
kategarshyna/custom_php_calendar
/Calendar.php
UTF-8
5,128
3.421875
3
[]
no_license
<?php /** * Class for counting week day by provided date */ class Calendar { private $day; private $month; private $year; private $leapYearDays; private $commonYearDays; private $dayCountPositiveDirection = false; const PROVIDED_YEAR = 1990; const EVEN_MONTH_DAYS = 21;...
true
b8aeeecbe85c9b11c54894fc77ef7d3066a53a29
PHP
nkl90/yii2-domain
/src/factories/RepositoryLocatorFactory.php
UTF-8
870
2.609375
3
[ "MIT" ]
permissive
<?php namespace yii2lab\domain\factories; use yii2lab\domain\locators\Base; use yii\helpers\ArrayHelper; class RepositoryLocatorFactory extends BaseLocatorFactory { public function create($name, $params = []) { $locator = new Base; $locator->domain = $this->domain; $locator->components = $this->genConfigs($...
true
576429a89d3647c96ea6ab81e6bf294ed21b260e
PHP
DiniaVDV/PHP_Academy
/php_basics_tasks/task_9.php
UTF-8
727
3.96875
4
[]
no_license
<?php /* 9. Создайте переменную day и присвойте ей произвольное числовое значение. 10. С помощью конструкции switch выведите фразу: "Это рабочий день", если значение переменной day попадает в диапазон чисел от 1 до 5 (включительно). */ $day = 5; switch($day){ case 1: echo "Это рабочий день"; break; case 2:...
true
9d6dce78fb53b9fe71798a76e914f86c3b69cf5d
PHP
NureTkachuk/lab3_litvinova
/views/Actor.php
UTF-8
1,351
2.703125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Films</title> <script> const ajax = new XMLHttpRequest(); function get(){ let name = document.getElementById("name").value; ajax.onreadystatechange = update; ajax.open("GET", "../php/getFilmsByActor.php?name="+ name); ajax...
true
e888e53dc5092774b7018fdc3f46f552184ac7b1
PHP
kelevo/curso-php__poo
/poo/encapsulamiento/Alcance.php
UTF-8
602
2.9375
3
[]
no_license
<?php class User { // Tipos de alcance //public //protected //private // Constante public const PAGINATE = 25; // Queremos mantener la integridad de los datos public $username; //protected $username; //private $username; public function getUsername() { // ... ...
true
3cfc55e77403ed9d3dd9edeb343a55cf2b91ebb6
PHP
Rqzor/Lourdes-UHC
/src/uhc/scenarios/defaults/Snowless.php
UTF-8
842
2.765625
3
[]
no_license
<?php declare(strict_types=1); namespace uhc\scenarios\defaults; use pocketmine\event\player\PlayerInteractEvent; use pocketmine\item\ItemFactory; use pocketmine\item\ItemIds; use uhc\scenarios\Scenario; /** * Class Snowless * @package uhc\scenarios\defaults */ class Snowless extends Scenario { ...
true
4b178ff498c02c07205963f52ed66414bd436193
PHP
ju4nc4rlozz23/pw2171server
/estudio/abc/php/datosAltas.php
UTF-8
1,618
2.65625
3
[]
no_license
<?php require("utilerias.php"); function valida(){ $respuesta = false; $conexion=conecta(); $u = GetSQLValueString($_POST["usuario"],"text"); $c = GetSQLValueString(md5($_POST["clave"]),"text"); $consulta = sprintf("select usuario,clave from usuarios where usuario=%s and clave=%s limit 1", $u, $c); ...
true
62a981e65e14d0be30e5a962c27b223a7a718a48
PHP
martakaszuba/zadania-php
/camelCase.php
UTF-8
320
3.078125
3
[]
no_license
<?php //camelCase("wielka-sowa") => WielkaSowa //camelCase("jestem-wesoly-romek") => JestemWesolyRomek function camelCase($str){ $str = explode("-", $str); for ($i = 0; $i<count($str); $i++){ $str[$i] = strtoupper(substr($str[$i],0,1)) . substr($str[$i],1); } $str = implode("", $str); return $str; } ?>
true
decffffbc5b49476a9a59fc115b045ebc205553e
PHP
agense/LaravelEshop
/app/Http/Controllers/DiscountCodesController.php
UTF-8
1,085
2.640625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests\DiscountCodeApplicationRequest; use App\Services\DiscountCodesService; class DiscountCodesController extends Controller { private $codeService; /** * Inject DiscountCodesService */ public function __constr...
true