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
776abc0bb069dba055ed09f7413edeec54f0de73
PHP
rendraadjip/Tugas5PHP
/16_SuperGlobals/example1.php
UTF-8
422
3.15625
3
[]
no_license
<?php // Awalan dari sebuah script PHP $x = 75;//deklarasi variabel x $y = 25;//deklarasi variabel y function addition() { /* $GLOBALS adalah variabel global super yang digunakan untuk mengakses variabel global dari mana saja */ $GLOBALS['z'] = $GLOBALS['x'] + $GLOBALS['y']; // x + y = z(ha...
true
f7b35f181abdb876587c976d7cd5e5333b00d9d7
PHP
cmcclees/PHP-Midterm-Laravel
/app/views/restaurants/all.php
UTF-8
959
2.515625
3
[]
no_license
<!doctype html> <html> <head> <title>Yelp</title> </head> <body> <h1>Yelp</h1> <?php foreach ($restaurants as $restaurant) : ?> <h4><?php echo $restaurant->restaurant_name; ?></h4> <p><?php echo $restaurant->type; ?></p> <p><?php echo $restaurant->city; ?></p> <p>Facebook Page: ...
true
051be13c6c366388d29265237c6c08b7c5303a3d
PHP
dng-es/community-php
/httpdocs/app/modules/na_areas/na_areas.php
UTF-8
1,533
2.546875
3
[]
no_license
<?php /** * @Modulo áreas de trabajo. Tareas de formación * @author Imagar Informatica SL * @copyright 2010 Grass Roots Spain * @version 1.2 * */ class na_areasCore{ /** * Elementos para el menu de usuarios * @return array Array con los elementos del menu */ public static function userMenu($menu_o...
true
278c702dda61f0122bc624ffea8765f7732c887a
PHP
Antsa1811/exo
/app/Numerique.php
UTF-8
1,693
3.59375
4
[]
no_license
<?php /** * CLASS POUR LA CALCULE */ namespace App; class Numerique{ private $a; private $b; private $c; private $total; protected $solution_1; protected $solution_2; protected $retour; protected $message; public function Addition($a,$b){ ...
true
3de20b779a5c09aaa6e686165e2db1afaee30cf3
PHP
jsvptf22/word_replacer_wrapper
/src/WordReplacerWrapper/types/ITypeTableChild.php
UTF-8
312
2.578125
3
[ "MIT" ]
permissive
<?php namespace Jsvptf\WordReplacerWrapper\types; use PhpOffice\PhpWord\Element\Cell; interface ITypeTableChild { /** * add data to table cell * @param Cell $Cell * @return mixed * @date 2020-03-05 * @author jhon sebastian valencia <sebasjsv97@gmail.com> */ public function set...
true
82dbd420bd56ff64e75aaadf692c5f1e76c78fda
PHP
SIRMly/myPro.zggz
/vendor/thenbsp/wechat/src/Payment/QrcodeRequest.php
UTF-8
1,711
2.703125
3
[]
no_license
<?php namespace Thenbsp\Wechat\Payment; use Thenbsp\Wechat\Util\Request; use Thenbsp\Wechat\Util\Serialize; use Thenbsp\Wechat\Util\Option; use Thenbsp\Wechat\Util\OptionValidator; class QrcodeRequest extends Option { /** * 请求对象 */ protected $request; /** * 消误消息 */ protected $err...
true
a3bdf8f85aaac4e8fd3b79f6949e9bc9fb9e7c3b
PHP
s-denton/friends_directory
/includes/adminFunction.php
UTF-8
2,513
3.015625
3
[]
no_license
<?php if (isset($_POST['action'])) { //checking whic button has been clicked switch ($_POST['action']) { case 'add': add(); break; case 'update': update(); break; case 'delete': delete(); break; } } function add()...
true
90e34ac27392f8454f5255f4d55daf88e5f3bd31
PHP
GemsTracker/MUtil
/src/MUtil/Lazy/ObjectWrap.php
UTF-8
3,249
2.8125
3
[]
no_license
<?php /** * Copyright (c) 2011, Erasmus MC * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of...
true
c3a81dc561bd0ba2b9ecbf6ae5fb42b9af985108
PHP
abrarmadi/Levenshtein
/CLI.php
UTF-8
461
3.6875
4
[]
no_license
<?php include 'helper.php'; //getting values from the command line echo "enter the first string: "; $str1 = trim(fgets(STDIN,1000)); echo "enter the second string: "; $str2 = trim(fgets(STDIN,1000)); //getting the value of the fields $str1= $_POST["string1"]; $str2= $_POST["string2"]; //calling the helpers w...
true
accf77d277d81e9325bf8d3682f3ae292f6d3380
PHP
phpfyi/cobra-framework
/Interfaces/Container/Resolver/ClassResolverInterface.php
UTF-8
774
2.515625
3
[ "MIT" ]
permissive
<?php namespace Cobra\Interfaces\Container\Resolver; /** * Class Resolver Interface * * @category Container * @package Cobra * @author Andrew Mc Cormack <webmaster@ddmseo.com> * @copyright Copyright (c) 2019, Andrew Mc Cormack * @license https://github.com/phpfyi/cobra-framework/issues * @version 1....
true
03111c6c14a24ce292590d70090fd707b78121e4
PHP
geovannilr/SIGPAD
/app/Http/Controllers/cat_tpo_tra_gra_tipo_trabajo_graduacionController.php
UTF-8
4,617
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\cat_tpo_tra_gra_tipo_trabajo_graduacionModel; use Session; use Redirect; use Illuminate\Support\Facades\Auth; use Illuminate\Http\Request; class cat_tpo_tra_gra_tipo_trabajo_graduacionController extends Controller { public function __construct(){ $this->middl...
true
e4c623b46f0a54be530f7ed48d66ef40b3eab0fb
PHP
tatendazimba/house-2-home
/.idea/app/Http/View/Composers/FooterComposer.php
UTF-8
627
2.625
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: tat-nda * Date: 3/6/19 * Time: 7:29 AM */ namespace App\Http\View\Composers; use App\Http\Controllers\Interfaces\PostsInterface; use Illuminate\View\View; class FooterComposer { protected $repository; public function __construct(PostsInterface $repository) ...
true
312344651b2fd2e99e4684aa9bf69aabeb5f7533
PHP
DylanMrn/dylan
/src/Entity/Experience.php
UTF-8
2,277
2.625
3
[]
no_license
<?php namespace App\Entity; use App\Repository\ExperienceRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=ExperienceRepository::class) */ class Experience { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @O...
true
cfc82a41b040d4a6f67f22abd4244a39ba1e5e86
PHP
xukaisheng/T_STACK
/redis/queue.php
UTF-8
1,277
3.046875
3
[]
no_license
<?php /** * redis实战 * Redis practice * * 利用列表list实现简单队列 * redis的队列为双向链表(通过lpush,lpop,rpush,rpop等方法)实现两头都可以修改队列 * Use list to implement a simple queue * * @author ALLEN_ZHAO * @date 2018-01-02 */ $redis = new \Redis(); $redis->connect('127.0.0.1', 6379); // 从尾部进队列 // push data to queue $userId = mt_rand(0000...
true
7e719a04ccffca5bba9c2825ac73160ebebbdd02
PHP
laminedioufdiouf/GestionEtudiants
/Etudiant.php
UTF-8
1,824
3.328125
3
[]
no_license
<?php namespace lamine; class Etudiant{ //les atributs ou caracteristique des etudiants private $Matricule; private $Nom; private $Prenom; private $Email; private $Telephone; private $Naiss; //les methodes de constructeur de la class public functio...
true
763eea609fc4bec548ba65fb3f28b475e4cddceb
PHP
papalapa/yiistart
/modules/users/models/UserSearch.php
UTF-8
2,042
2.515625
3
[ "MIT" ]
permissive
<?php namespace papalapa\yiistart\modules\users\models; use yii\base\Model; use yii\data\ActiveDataProvider; /** * Class UserSearch * @package papalapa\yiistart\modules\users\models */ class UserSearch extends User { /** * @inheritdoc */ public...
true
7b3e9b61b4a661c51654f06117684f7ffabe9bc1
PHP
Vicky0603/php.sql
/index.php
UTF-8
1,836
3.25
3
[]
no_license
<!DOCTYPE html> <html lang="ru"> <head> <meta charset="utf-8"> <title></title> </head> <body> <?php $user = 'root'; $password = ''; $db = 'testing'; $host = 'localhost'; $dsn = 'mysql:host='.$host.';dbname='.$db; $pdo = new PDO($dsn, $user, $password); $query = $pdo -> query('SELE...
true
f0df65ec620d4d73e53ceebf77a60a19112343da
PHP
csnkosi/camagru
/config/setup.php
UTF-8
805
3.171875
3
[]
no_license
<?php include_once("database.php"); class Database { private $DSN; private $USER; private $PASSWORD; public $conn; public function __construct() { global $DB_DSN; global $DB_USER; global $DB_PASSWORD; $this->DSN = $DB_DSN; $this->USER =...
true
0f4b2f8d6b8c92a3267fbb17a0eba838f0427071
PHP
fernandorsilva/Projetos_PHP
/strings/exemplo-01.php
UTF-8
188
3.703125
4
[]
no_license
<?php $nome = "Hcode"; $nome2 = 'Treinamentos'; //var_dump($nome, $nome2); echo "ABC $nome"; // Se usar ' considera a variavel como texto, se usar " apresenta o valor da variavel. ?>
true
736bd989171fb3ca8712fe712ec2da85958050aa
PHP
strannikac/temperature-charts-php
/App/Request.php
UTF-8
3,235
2.75
3
[]
no_license
<?php namespace App; use Helper\System; /** * Class Request */ class Request { private $paths = [ 'main' => [ 'class' => 'App\\MainController', 'main' => '', 'error404' => '' ], 'forecast' => [ 'class' => 'App\\ForecastController', ...
true
ac7105bf8a94056000c0e2bb0e7ad215ebeae5a1
PHP
nihuge/shipplatform
/Ship/Common/Model/NoticeModel.class.php
UTF-8
8,256
2.546875
3
[]
no_license
<?php namespace Common\Model; use Common\Model\BaseModel; /** * 通知Model * @author nihuge * */ class NoticeModel extends BaseModel { /** * 自动验证 */ protected $_validate = array( array('title', '1,23', '标题长度不能超过23个字', 0, 'length'),//存在即验证 长度不能超过4个字符 array('msg', '1,800', '信息正文不能超过80...
true
a096f284df4c8dab2aea15a6b6bb82d2d8f8dfdf
PHP
tony-tran/en-marche.fr
/src/Membership/ActivityPositionsEnum.php
UTF-8
1,634
2.953125
3
[ "GPL-3.0-only", "Apache-2.0" ]
permissive
<?php namespace App\Membership; final class ActivityPositionsEnum { public const STUDENT = 'student'; public const RETIRED = 'retired'; public const EMPLOYED = 'employed'; public const UNEMPLOYED = 'unemployed'; public const SELF_EMPLOYED_AND_LIBERAL_PROFESSIONS = 'self_employed_and_liberal_profes...
true
a6c669bfedcd630fa1c5a336ee6c12836513c6c5
PHP
sustmi/fb-post-downloader
/src/Model/Post/Doctrine/DoctrinePostStorage.php
UTF-8
1,975
2.90625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Model\Post\Doctrine; use App\Model\Post\Post; use App\Model\Post\PostStorage; use DateTime; use Doctrine\DBAL\Connection; use Doctrine\DBAL\Types\Type; class DoctrinePostStorage implements PostStorage { /** * @var string */ private $pageId; /** ...
true
e7445f576063eb5c0fea4f3d1c3ae8aa2914ba6e
PHP
sebastianGR429/proyecto
/controlador/ControladorRegistro.php
UTF-8
1,592
2.546875
3
[]
no_license
<?php include_once($_SERVER['DOCUMENT_ROOT'] . '/proyecto/controlador/user_Sesion.php'); include_once($_SERVER['DOCUMENT_ROOT'] . '/proyecto/modelo/daos/DAOUsuario.php'); class ControladorRegistro{ private $usuario; private $dao_usuario; public function __construct() { $this->dao_usuario= n...
true
dd3a733588fadabe8ea26f5d78d383a0a273dbeb
PHP
Alan3058/zone-php
/register.php
UTF-8
3,692
2.578125
3
[]
no_license
<?php header ( "Content-Type:text/html; charset=utf-8" ); define("PROJECTPATH", dirname(__FILE__)); require_once 'autoLoad.php'; Util::redirect2Url("index.php",1.5,"暂未开放注册功能,请关注升级版本功能。。。"); exit(); $userName = $password = $cpassword = ""; $errorInfo = ""; if ($_SERVER ["REQUEST_METHOD"] == "POST") { // 如果提交请求 $r...
true
a77f8815d81059e6b2941638b3acd3a353c830b7
PHP
denis-prado/composer
/index.php
UTF-8
278
2.59375
3
[]
no_license
<?php require __DIR__ . '/vendor/autoload.php'; $slugifier = new \Slug\Slugifier(); $titulo = 'Produto incrível com várias cores disponíveis'; $slug = $slugifier->slugify($titulo); echo "<p>Título original".$titulo."<p>"; echo "<p>URL do produto (slug): ".$slug."<p>";
true
6c2042625fb9e96826e5710de300037b934b8fc5
PHP
GatuZa/command_line_app_yii
/randomizer/protected/migrations/m160217_170900_create_sentence_table.php
UTF-8
488
2.6875
3
[]
no_license
<?php class m160217_170900_create_sentence_table extends CDbMigration { /** * Create sentence table for unique randomization results */ public function up() { $this->createTable('sentence', [ 'intSentenceID' => 'INT(3) UNSIGNED NOT NULL AUTO_INCREMENT', 'varBody' => 'CHAR(255) NOT NULL', 'PRIMARY KEY...
true
38885233cec5aeadf4878a5025208800fecd0e35
PHP
Dylan446/php-project
/src/MainController.php
UTF-8
1,833
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: dylan * Date: 14/12/2017 * Time: 00:41 */ namespace Itb; class MainController { private $userController; private $sessionManager; private $twig; public function __construct($twig, $sessionManager) { $this->twig = $twig; ...
true
7d107c7b1470227cd2eb3fc548ba3d0c9318887b
PHP
exult/exult-web
/seventowers/code.inc
UTF-8
15,613
2.5625
3
[]
no_license
<?php include_once('geshi.php'); $linelen = 80; if (!isset($outmode)) $outmode = 0; $tpl->define( array( "any" => "anytext.tpl" ) ); function anchor($text, $out = false) { global $outmode; if (!$outmode) { $anchor = make_anchor("", $text); if ($out) out($anchor); else return $...
true
64a2180cd15c10bd44132b1e4f5b8d21274ad271
PHP
ytake/builderscon-example
/src/Action/ReadAction.php
UTF-8
767
2.59375
3
[]
no_license
<?php declare(strict_types=1); namespace Ytake\Builderscon\Action; use Psr\Http\Message\RequestInterface; use Ytake\Builderscon\Payload\StreamPayload; use Zend\Diactoros\Response; use Zend\Diactoros\Response\SapiEmitter; /** * Class ReadAction */ final class ReadAction { /** @var StreamPayload */ private $...
true
d5b0257db993c9ed72c4d4ecb683693385435ec2
PHP
CapstoneProject18/Collobrative-Search----Graph-driven-knowledge-repository
/server.php
UTF-8
2,250
2.765625
3
[]
no_license
<?php session_start(); // connect to the database $db = mysqli_connect('localhost', 'root', '', 'capstone'); if (isset($_POST['submit'])) { // receive all input values from the form $email = mysqli_real_escape_string($db, $_POST['email']); $password_1 = mysqli_real_escape_string($db, $_POST['...
true
08986cfc9dc81347e635a5b6c438e6c73bd6bea9
PHP
favourch/BMS
/application/models/ObtorLib/App/Core/Qualification/Service/Attachment.php
UTF-8
3,782
2.703125
3
[]
no_license
<?php /** * Description of Attachment * * @author Iyngaran Iyathurai <iyngaran55@gmail.com> */ class Base_Model_ObtorLib_App_Core_Qualification_Service_Attachment extends Base_Model_ObtorLib_Eav_Model_Service { public $attachment; /* * Get a user attachment using id * @return : Entity Atta...
true
08736f8ed681854d200e02fae2643bbb642610df
PHP
vmagione/Mag1Compiler
/funcs.php
UTF-8
2,166
3.578125
4
[]
no_license
<?php //Função que pega um código e retorna sem comentarios nem espaços nem linhas em branco function verificaComentario($codigo){ $contCS=0; $comentario=0; $noLines = array(); //Remove espaços, tabulaçoes e entre outros da string foreach($codigo as $cS){ //trim the ASCII control characters a...
true
a30ad95603fc20121bb73bde01930a3520bcec2b
PHP
BigdataBigdataBigdata/resume-extraction-search-app
/resume_exctraction/parseDocx.php
UTF-8
6,168
2.71875
3
[]
no_license
<?php class parseDocx { public $firstname = ''; public $lastname = ''; public $address = ''; public $city = ''; public $state = ''; public $zip = 0; public $phone = ''; public $email = ''; public $company = array(); public $school = array(); public $awards = array(); ...
true
66bd8b1836fb5ca54e36986cef6aa84d1d21175e
PHP
williams-jhalt/wms-server
/src/ErpBundle/Repository/ClientCustomerRepository.php
UTF-8
1,853
2.6875
3
[]
no_license
<?php namespace ErpBundle\Repository; use ErpBundle\Model\Customer; use ErpBundle\Model\CustomerCollection; class ClientCustomerRepository extends AbstractClientRepository implements CustomerRepositoryInterface { /** * * @param integer $limit * @param integer $offset * @return CustomerColle...
true
6acca4ad3c108dd8309df5c69aa9c1905d20e1ae
PHP
edgarmesquita/phpmvc
/System/Reflection/ParameterInfo.php
UTF-8
204
2.546875
3
[]
no_license
<?php namespace System\Reflection; class ParameterInfo { private $_parameter; public function __construct(\ReflectionParameter $parameter) { $this->_parameter = $parameter; } } ?>
true
b3b0e597042e1f350b5fa0648f169a138b59dc21
PHP
elmerdea1/Runoff-Vote-Website
/vote/start.php
UTF-8
288
2.796875
3
[]
no_license
<?php if(session_status() == PHP_SESSION_NONE) { session_start(); } // Set session variables to empty if not already set $sess = array("login", "user", "pass"); foreach($sess as &$var) { if(!isset($_SESSION[$var])) { $_SESSION[$var]=""; } } ?>
true
73905afde18788910a73b545850b34afa2b944b8
PHP
openpartners/kilometrydobra2018
/library/KilometryDobra/Service/DonationService.php
UTF-8
1,086
2.546875
3
[]
no_license
<?php namespace KilometryDobra\Service; use KilometryDobra\Repository\OrganizationRepository; use KilometryDobra\Repository\DonationRepository; Class DonationService extends AbstractService { public function getDonationsList($limit = NULL, $offset = 0) { $organizationRepository = new OrganizationRepo...
true
3137e0251fe4d5dfc77a1d21930058ec4e776863
PHP
GregGamer/magic-app
/app/Http/Middleware/GenerateMenus.php
UTF-8
1,030
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; use Lavary\Menu\Menu; class GenerateMenus { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle(Request...
true
0206d236f148eeae245059652065f270d792f1dd
PHP
aman-rawat/elastic-scout-driver-plus
/src/Builders/RangeQueryBuilder.php
UTF-8
2,105
2.65625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace ElasticScoutDriverPlus\Builders; use ElasticScoutDriverPlus\QueryParameters\ParameterCollection; use ElasticScoutDriverPlus\QueryParameters\Shared\BoostParameter; use ElasticScoutDriverPlus\QueryParameters\Shared\FieldParameter; use ElasticScoutDriverPlus\QueryParameters\Share...
true
489ec24311d3b0ddae8a05813226b78e2d45e3f3
PHP
Melissalesne/My-blog
/src/DataFixtures/ArticleFixtures.php
UTF-8
754
2.734375
3
[]
no_license
<?php namespace App\DataFixtures; use App\Entity\Article; use Doctrine\Persistence\ObjectManager; use Doctrine\Bundle\FixturesBundle\Fixture; class ArticleFixtures extends Fixture { public function load(ObjectManager $manager) { // Créer un nouvel article for($i= 1; $i <= 10;$i++){ $art...
true
0461f1366ddf3d0b04ad55fef9c32a558b44e05c
PHP
petrknap/trunk
/projects/petrknap.cz/src/RemoteContentAccessor.php
UTF-8
2,116
2.75
3
[ "MIT" ]
permissive
<?php namespace PetrKnapCz; use Psr\Cache\CacheItemPoolInterface; use Symfony\Component\HttpFoundation\Response; class RemoteContentAccessor { /** * @var CacheItemPoolInterface */ private $cache; public function __construct(CacheItemPoolInterface $cache) { $this->cache = $cache; ...
true
231bfd8228566c3fc742dd1a7920fe3bc4424978
PHP
KetsuiDeveloper/teragic
/data/checkers/username.php
UTF-8
834
2.6875
3
[]
no_license
<?php include("../db/db.php"); $username = $_GET["user"]; $email = $_GET["email"]; $user_available = false; $email_available = false; //solo letras, no simbolos raros if(ctype_alpha($username)){ //check user $query = "SELECT * FROM `users` WHERE username = '".$username."'"; foreach ($conn->query($query) as ...
true
58393b8aede461353a7d2887251350e7b10c57af
PHP
zhukov-pf/cartridjes
/class/users.php
UTF-8
1,713
2.6875
3
[]
no_license
<?php include_once($_SERVER['DOCUMENT_ROOT']."/cartridjes/class/connect_db.php"); include_once($_SERVER['DOCUMENT_ROOT']."/cartridjes/class/config.php"); new ConnectDB(); /** * */ class Users { # Добавление нового пользователя function addNewUser() { } # Удаление нового пользователя function deleteUser() {...
true
74754afc0cedb982189f7b20696d0dd06b6a964a
PHP
stof/BetterReflection
/test/unit/SourceLocator/LocatedSourceTest.php
UTF-8
3,245
2.703125
3
[ "MIT" ]
permissive
<?php namespace BetterReflectionTest\SourceLocator; use BetterReflection\SourceLocator\Exception\InvalidFileLocation; use BetterReflection\SourceLocator\LocatedSource; use InvalidArgumentException; /** * @covers \BetterReflection\SourceLocator\LocatedSource */ class LocatedSourceTest extends \PHPUnit_Framework_Tes...
true
96e369c46ed68ab01fbdbd89b429cbd815b603dd
PHP
erichuang2015/php-demo
/static静态变量.php
UTF-8
192
2.96875
3
[]
no_license
<?php function show(){ /*$i=10; $i=$i+10; echo $i."<br>";*/ //不加static静态属性则一直输出20 static $i=10; $i=$i+10; echo $i."<br>"; } show(); show(); show(); ?>
true
d71b75ceecea776bbc464dead6d36b02a56eb372
PHP
joelphaka/sifra
/src/Core/BaseObject.php
UTF-8
3,686
3.078125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Joel * Date: 2018/12/27 * Time: 21:39 */ namespace Sifra\Core; use ArrayAccess; use Exception; use JsonSerializable; use Sifra\Core\Jsonify; class BaseObject implements ArrayAccess, Arrayable, JsonSerializable { use Arrayify, Jsonify; protected $attributes = ar...
true
089a244312b6207d288c938394ef6cce52f0e1e6
PHP
fracz/refactor-extractor
/results/piwik/a00487b0b841c4b15463b591c7f62176c4b84d15/before/MenuReporting.php
UTF-8
3,950
2.625
3
[]
no_license
<?php /** * Piwik - free/libre analytics platform * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * */ namespace Piwik\Menu; use Piwik\Piwik; use Piwik\Plugin\Report; /** * Contains menu entries for the Reporting menu (the menu displayed under the Piwik logo). * P...
true
add76812495db4cf4c71403e79af66b65801c408
PHP
PlatinMarket/yandex-mail-api
/app/api/Platin/Db/MysqlDatabase.php
UTF-8
626
2.90625
3
[]
no_license
<?php namespace Platin\Db; class MysqlDatabase { protected static $_connections = array(); public static function register($name = "default", $config = array()) { if (self::isRegistered($name)) throw new Platin\Exception\MysqlException("Connection '" . $name . "' already exists in pool"); self::$_connec...
true
99b0cd4d75c3d986004a288a1b6b34959ef82e0d
PHP
neistow/phpmvc
/views/films-form.php
UTF-8
2,256
2.71875
3
[]
no_license
<?php $editMode = isset($film); $id = $editMode ? $film->id : 0; $name = $editMode ? $film->name : ""; $date_released = $editMode ? $film->date_released : ""; $rating = $editMode ? $film->rating : 1; ?> <div class="row justify-content-center mt-5"> <h1 class="text-center display-4">Film form</h1> <div class="...
true
2510fd1cee62aac6705708f693788090b2be6849
PHP
ahuespi/MixPlay_academiaPHP
/Patron Decorator/decorador_billetera/EstadisticasBilleteras.php
UTF-8
1,708
3.59375
4
[]
no_license
<?php require_once 'Billetera.php'; require_once 'BilleteraEnPesos.php'; class EstadisticasBilleteras implements Billetera { private $billetera; private $agregar = []; private $sacar = []; public function __construct(Billetera $billetera) { $this->billetera = $billetera; } ...
true
80d1a85a65b6023d325639bc603c102c184fc171
PHP
mythteam/start-kit
/common/finder/FinderInterface.php
UTF-8
342
2.6875
3
[ "Apache-2.0" ]
permissive
<?php namespace common\finder; interface FinderInterface { /** * Find the model by primary key. * * @param int|array $id * * @return mixed */ public function one($id); /** * Get the model activeQuery object. * * @return \yii\db\ActiveQuery */ public f...
true
39da20d4e9540f5342c48ca49a8f80fe1e897251
PHP
AbeerEhsan/drivers
/app/Http/Controllers/StudentAttendController.php
UTF-8
4,417
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\DataTables\StudentAttendDataTable; use App\Http\Requests; use App\Http\Requests\CreateStudentAttendRequest; use App\Http\Requests\UpdateStudentAttendRequest; use App\Repositories\StudentAttendRepository; use Flash; use App\Http\Controllers\AppBaseController; use App\Model...
true
218fbe9f77c9232cab1563d5a9c69a28212dafb2
PHP
EXCCoin/excc-php-api
/src/EXCCoin/Client/Traits/CallsRPC.php
UTF-8
4,537
2.78125
3
[ "ISC" ]
permissive
<?php /** * excc-php-api (c) 2018 EXCCoin * Created by: widelec * Date: 11.06.2018 */ namespace EXCCoin\Client\Traits; use GuzzleHttp\Client; use GuzzleHttp\Exception\GuzzleException; use GuzzleHttp\RequestOptions; trait CallsRPC { /** * @var Client */ protected $guzzle; /** * @var str...
true
71e0edb0b4de7cba6c235eb1079c2434d3532a21
PHP
ArcherCraftStore/ArcherVMPeridot
/apps/drupal/htdocs/modules/openatrium-7.x-2.19/profiles/openatrium/modules/contrib/oa_core/modules/oa_clone/oa_clone.api.php
UTF-8
1,154
2.625
3
[ "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-other-copyleft", "GPL-2.0-or-later", "LicenseRef-scancode-unknown-license-reference", "GPL-2.0-only", "Apache-2.0", "MIT" ]
permissive
<?php /** * @file * Contains documentation about the Open Atrium Clone module's hooks. */ /** * @defgroup oa_clone Open Atrium Clone * @{ * Hooks from the Open Atrium Clone module. */ /** * Clone metadata associated with a Space or Group. * * This hook is called when cloning Space or Group, after the new n...
true
17d239c62e769065c54d0e98bf544c55d40188b1
PHP
batistasilva/CIWebControl
/application/models/entity/Sessionmsg.php
UTF-8
525
2.8125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace entity; /** * Description of SMsg * Method to set and unset Session * Message to system. * Params: var, msg. * @...
true
f1e1f6c6ee96a990a071f5dbdfb9b5b1903bd812
PHP
JianmingXia/StudyTest
/OldHistory/PhpSocketLibrary/src/NetdataInterface.php
UTF-8
1,140
2.59375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: garming * Date: 8/20/15 * Time: 22:04 */ namespace NetData; interface NetdataInterface { public function getData(); public function setData($response); public function setPackType($value); public function getPackType(); public function setProcType($...
true
f2af3b38d90b5bbd6edfde764bc4f81b7cd0ae21
PHP
loganetherton/samples
/daemon/Daemon.php
UTF-8
2,204
2.796875
3
[]
no_license
<?php /** * Abstract daemon class. * This class should be a base for all daemons. */ Yii::import('application.components.worker.*'); Yii::import('application.workers.*'); abstract class Daemon { protected $argv; protected $traceMode; protected $traceMemory; protected $verbose = true; /** *...
true
9814756d0f84790fecfd370c153247233f2af9e3
PHP
zagadum/php-start
/task5/solutions/task_1.php
UTF-8
207
3.40625
3
[]
no_license
<?php $sum=0; for ($i = 1; $i <= 25; $i++) { $sum += $i; } echo $sum; echo '<br/>'; echo '<br/>'; echo '<br/>'; $suma=0; $x=1; do { $suma += $x; $x++; } while($x <= 25); echo $suma; ?>
true
06102807ec4407d38c25bb2ff6234ad1ba2e4d65
PHP
Sywooch/kidup
/migrations/m151125_183005_generateAuthKeys.php
UTF-8
772
2.640625
3
[]
no_license
<?php use yii\db\Migration; /** * Simply generates auth_keys for users who do not have one yet * Class m151125_183005_generateAuthKeys */ class m151125_183005_generateAuthKeys extends Migration { public function up() { $users = \user\models\user\User::find()->where('auth_key = ""')->all(); ...
true
7ae87050ffb2f04fcfd0bba076604dda9b6c753c
PHP
jdmenacho/Holi-Games
/funciones/alumno_modelo.php
UTF-8
1,812
2.859375
3
[ "MIT" ]
permissive
<?php include_once('conexion.php'); //Validación formulario alumnos function comprobarErroresUsuario($datos) { if (empty($datos["nombreUsuario"])) { return "Debes completar tu Usuario"; } if (empty($datos["nombre"])) { return "Debes completar tu nombre"; } if (empty($datos["apellidos"])) ...
true
dee285ed95e9f6026ea5b0e77cc17d9c0462eab8
PHP
JoseAntonioMartinezIglesias/php-patterns
/src/WebParttern/Http/HttpStatus.php
UTF-8
583
2.78125
3
[]
no_license
<?php namespace Webpattern\Http; final class HttpStatus { const OK = 200; const CREATED = 201; const NO_CONTENT = 204; const BAD_REQUEST = 400; const UNAUTHORIZED = 401; const FORBIDDEN = 403; const NOT_FOUND = 404; const CONFLICT = 409; const INTERNAL_SERVER_ERROR = 500; priv...
true
f341a5404fdde1b10dd4a9146330c49f3caf7359
PHP
dasbit/php-mvc
/bootstrap/bootstrap.php
UTF-8
1,069
2.5625
3
[ "MIT" ]
permissive
<?php require 'constants.php'; /** * Checks .env file */ if(!file_exists(BASE_PATH . '/.env')) { die('.env not exists'); } /** * Helper functions */ require dirname(__DIR__) . '/bootstrap/helpers.php'; /** * Autoloading vendor classes */ require dirname(__DIR__) . '/vendor/autoload.php'; /** * Env loa...
true
2bfa8e1480940fa62bccdf7b1c2dd7cdda787add
PHP
hmparsons/WebTech-jsf858
/Assignment1/feed.php
UTF-8
2,334
3.03125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>MyFacebook Feed</title> </head> <body> <?php include('database.php'); session_start(); $conn = connect_db(); $username = $_SESSION["username"]; $result = mysqli_query($conn, "SELECT * FROM users WHERE username='$username'"); // User Information $r...
true
8d0c653245bc92d10d974cb0ac00f18c2bbf8f51
PHP
Superbition/Polyel-Framework
/src/Http/CookieHandler.trait.php
UTF-8
1,075
2.953125
3
[ "Apache-2.0" ]
permissive
<?php namespace Polyel\Http; trait CookieHandler { // Queued cookies are added to the response later... private $queuedCookies; private function requestGetCookie($cookieName) { if(array_key_exists($cookieName, $this->cookies)) { return $this->cookies[$cookieName]; ...
true
1142623b582086ca0074aadf3f34486e9f872552
PHP
NicolaRebecca/php-oop-2
/eshop.php
UTF-8
1,709
2.9375
3
[]
no_license
<!-- 1. creiamo l'eshop --> <!-- 2. creiamo diversi prodotti --> <!-- 3. aggiungiamoli all'eshop --> <!-- 4. creaiamo l'utente normale --> <!-- 5. creiamo un utente premium --> <!-- 6. inseriamo le carte di credito per ciascun utente --> <!-- 6. l'utente normale acquista un prodotto --> <!-- 7. l'utente premium acquist...
true
253efb48d761b52e95de31b39f3f2f4be3e3e7a8
PHP
bigspaceship/pyrocms
/system/pyrocms/modules/users/controllers/users.php
UTF-8
10,685
2.796875
3
[ "Apache-2.0" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * User controller for the users module (frontend) * * @author Phil Sturgeon - PyroCMS Dev Team * @package PyroCMS * @subpackage Users module * @category Modules */ class Users extends Public_Controller { /** * Constructor method ...
true
bf589560329f9d36987fe24069709d76edab05ed
PHP
StephPitman/MiiSNProject
/chatHandler.php
UTF-8
6,462
3.046875
3
[]
no_license
<?php /* THIS SECTION USED THE TECHNIQUES GIVEN FROM THIS LINK/WEBSITE https://phppot.com/php/simple-php-chat-using-websocket/ */ $dbCon = getDB(); class ChatHandler{ //saves all the users in the chat private $names = array(); //saves all of mii info private $miiInfo = array(); ...
true
efe15f58259e3c95099ce8777d1b62b14b4a7cb9
PHP
NickDST/Environmental-Sensors-Concordia-Shanghai-Website
/user-operations/generate-graphs/csv.php
UTF-8
1,520
3
3
[]
no_license
<?php include ".includes/dbhconnect.php"; $yes = "not true"; header("Content-Type: text/csv"); header("Content-Disposition: attachment; filename=file.csv"); function outputCSV($data) { $output = fopen("php://output", "wb"); foreach ($data as $row) fputcsv($output, $row); // here you can change delimiter/...
true
43d30fe13ecce7ac7f19f987cc49e3962079bef9
PHP
bugZhang/i-api
/app/Model/TbkTrackModel.php
UTF-8
610
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class TbkTrackModel extends Model{ protected $table = 'tbk_track_info'; // public $timestamps = false; const TYPE_CLICK = 'click'; const TYPE_IMPRESSION = 'impression'; const ACTION_1 = '按关键词查询'; const ACTION_2 = '生成淘口令'; ...
true
9d3ec461bb6765c17d6d872ca8a45282f5984975
PHP
JamesMcAvoy/projet-web
/src/models/Model/Contain.php
UTF-8
521
2.515625
3
[]
no_license
<?php namespace Models\Model; use Illuminate\Database\Eloquent\Model; class Contain extends Model { protected $table = 'contains'; protected $fillable = array( 'item_number' ); protected $attributes = array( 'item_number' => '1' ); public function item() { return $...
true
a80f50373b53cc5f4ccc036d0e94231b041caedb
PHP
jimmyjoshi/port-lara
/app/Models/Company/Company.php
UTF-8
706
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Models\Company; /** * Class Company * * @author Anuj Jaha */ use App\Models\BaseModel; use App\Models\Company\Traits\Attribute\Attribute; use App\Models\Company\Traits\Relationship\Relationship; class Company extends BaseModel { use Attribute, Relationship; /** * Database Table ...
true
cb0c30d95d0a23a880f0b004a774255a7fb1156a
PHP
huoybb/mytube
/app/presenters/VideotagsPresenter.php
UTF-8
958
2.578125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: ThinkPad * Date: 2016/12/11 * Time: 18:58 */ class VideotagsPresenter extends \core\myPresenter { /** * @var Videotags */ public $entity; public function time() { return $this->toTimeString($this->entity->time); } private function...
true
6909402a33e27e34f0c4359e289d7afaa51eb149
PHP
mikeboski/php-tplink-smart-control-panel
/www/userData.php
UTF-8
830
2.625
3
[ "MIT" ]
permissive
<?php $userPassword = 'Password from KASA app'; $userName = 'Email from KASA app'; $UUID = '3db43df6-0c32-468e-b8b3-2257d3848daa'; $UUID = 'cat'; // does not seem to matter what $UUID you use just keep it consistant if($userPassword == 'Password from KASA app') { echo "<div style='background:red; border:yellow ...
true
0862cc8efcc5c3e7c13941a1414db7845572f288
PHP
willzhao77/VueShoppingServer
/app/Http/Controllers/Back/SlideShowController.php
UTF-8
3,069
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Back; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\SlideShow; class SlideShowController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { ...
true
a10a406908293ea04cc19e3445a915d7782600d7
PHP
sakamata/happy2
/models/UserRepository.php
UTF-8
4,028
2.546875
3
[]
no_license
<?php class UserRepository extends DbRepository { public function insert($usId, $usPs, $usName, $facebookId) { if (isset($usPs)) { $usPs = $this->hashPassword($usPs); } $now = new DateTime(); $img = "default/dummy.png"; $nowPt = AdminSettingRepository::userDefaultPoint; $ip = $_SERVER['REMOTE_ADDR']...
true
9d311c7edea6079965a0eec6140923685dfe7d48
PHP
vifer/vat-validation
/tests/Validator/EUValidatorTest.php
UTF-8
4,435
2.71875
3
[]
no_license
<?php namespace Vifer\Tests\Validator; use InvalidArgumentException; use Mockery; use PHPUnit_Framework_TestCase; use SoapClient; use stdClass; use Vifer\VatValidation\Validator\EUValidator; class EUValidatorTest extends PHPUnit_Framework_TestCase { /** * @dataProvider TaxableEUCountries * @param string $count...
true
3e6cb49aa870dd41ec5d787c1be0a3d306cdf72d
PHP
sparkosis/fufu
/public/index.php
UTF-8
1,056
2.5625
3
[]
no_license
<?php // Autoload de composer require '../vendor/autoload.php'; // Le fichier qui contient nos constante de configuration require '../app/config/parameters.php'; // Variable d'environnement pour les message d'erreurs slim if(ENV === "local"){ define("CACHE", false); $env_error = true; }elseif(ENV === "prod"){ ...
true
02b0c98a6413f9be25e7cb4132ac56fc076e6a62
PHP
linepogl/oxygen
/src/Actions/Progress/Progress.php
UTF-8
5,060
2.515625
3
[ "MIT" ]
permissive
<?php final class Progress { public static function Clear(){ Scope::$WINDOW['progress_log_entries_produced'] = null; Scope::$WINDOW['progress_log_entries_shown'] = null; Scope::$WINDOW['progress'] = null; Scope::$WINDOW['progress_cancelled'] = null; Scope::$WINDOW['progress_finished'] = null; } private ...
true
fa999c47361c54422af963bd01d8b3d5ef8a1e4d
PHP
bigin/snotificator
/lib/Processor.php
UTF-8
543
2.859375
3
[]
no_license
<?php namespace Notify; class Processor { private $config = null; private $mailer = null; public function init($config = null) { if(!$config) { $config = new Config(); } $this->config = $config; $this->mailer = new Mailer($this->config); } public function notify() { if(!$this->config) $this->init(); ...
true
ac30b55b5b1b83f01f85f7c7b1e683675aefc74c
PHP
HumanBooster/BasesWeb
/exos/exos.php
UTF-8
151
3.484375
3
[]
no_license
<?php function aireCercle($rayon) { return M_PI * $rayon * $rayon; } $rayon = 5; echo "Pour un rayon de ".$rayon.", l'aire est ".aireCercle($rayon);
true
3500a71bf555f4b58b1e627d5ce6c209879c29c5
PHP
hughcube-php/laravel-easy-sms
/src/Action/SendSms.php
UTF-8
1,341
2.671875
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: hugh.li * Date: 2022/7/1 * Time: 21:49 */ namespace HughCube\Laravel\EasySms\Action; use HughCube\Laravel\EasySms\EasySms; use HughCube\Laravel\EasySms\Exceptions\MobileInvalidException; use HughCube\Laravel\EasySms\Exceptions\ThrottleRequestsException; use Overtrue\EasyS...
true
d0fe1f98547c5f71d0f3f13336c275a71721c759
PHP
TeaInside/tea-inside-bot-s3
/src/Bot/Telegram/Plugins/Translators/GoogleTranslate.php
UTF-8
814
2.90625
3
[ "MIT" ]
permissive
<?php namespace Bot\Telegram\Plugins\Translators; use GoogleTranslate\GoogleTranslate as BaseGoogleTranslate; /** * @author Ammar Faizi <ammarfaizi2@gmail.com> https://www.facebook.com/ammarfaizi2 * @package \Bot\Telegram\Plugins\Translators * @license MIT * @since 0.0.1 */ class GoogleTranslate { /** * @var...
true
9ea3ae4e90fb9107b98deca6a6afe4f2b7e3fde5
PHP
vakmancordero/MexicaTours
/model/tour.php
UTF-8
1,775
3.09375
3
[]
no_license
<?php class Tour { private $db; private $table_name = "tour"; public $id; public $name; public $about; public $departureTime; public $arriveTime; public $price; public function __construct($db) { $this->db = $db; } function creat...
true
1c499ed46b8aa93467c791d98619e3fc6e92a4a4
PHP
Dar8o/emails-php
/lib/model/ConnectionDB.php
UTF-8
692
3.046875
3
[]
no_license
<?php // File to handle the connection to the database namespace lib\model; require './lib/model/DBConfig.php'; use PDO; class ConnectionDB { protected $connection; private $db_name = DB_NAME; private $db_host = DB_HOST; private $db_user = DB_USER; private $db_password = DB_PASSWORD; public function _...
true
2236a6006070c83063a0b5fd3f83a10a17bfc4b8
PHP
Flo8w/planning
/ajout.php
UTF-8
1,338
2.703125
3
[]
no_license
<?php require("config.php"); // Vérification préalable à l'insertion en Base $sql="SELECT * from utilisateur where login=:login"; $stmt=$connexion->prepare($sql); $stmt->bindParam(':login', $_GET['login']); $stmt->execute(); if (!$stmt) echo "Pb d'accès à la table"; else if ($stmt->rowCount()==0){ $sql="INSERT into...
true
ebad3d007c20f9bf9c30f495b79ac83ffce34c27
PHP
zkrat/draw-ohlc
/src/Helper/FontHelper.php
UTF-8
419
2.59375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: zkrat * Date: 20.03.19 * Time: 22:03 */ namespace DrawOHLC\Helper; class FontHelper { public static function getFontBoxSize($size, $angle, $fontfile, $text):array { $type_space=imagettfbbox($size, $angle, $fontfile, $text); $width = abs($type_space[4] - $type_spac...
true
c177782647a51b5c47adfacf695d2e5ca3745038
PHP
kuryz/tradedesk
/app/function/general.php
UTF-8
1,971
2.8125
3
[]
no_license
<?php //sanitize string function escape($string) { return htmlentities($string, ENT_QUOTES, 'UTF-8'); } //generate random strings (for unique codes) function random_strings($length_of_string) { $str_result = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcdefghijklmnopqrstuvwxyz'; return substr(str_shuffle($str_res...
true
230ed88be5561af265550ebd74ef18a5a6d35d0a
PHP
gabrysiakagnieszka/Famil.io
/module/Famillio/src/Famillio/Model/Person/Biography/Fact/Exception/DateAlreadySetException.php
UTF-8
890
2.734375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: adamgrabek * Date: 16/06/15 * Time: 22:54 */ namespace Famillio\Model\Person\Biography\Fact\Exception; use AGmakonts\STL\DateTime\DateTime; use Famillio\Model\Person\Biography\Fact\AbstractFact; /** * Class DateAlreadySetException * * @package Famillio\Model\Person\Bi...
true
05424220778b5295d93ba740c914a807dcb53bcd
PHP
Konrad2/portfolio
/library/Forms/Elements/Email.php
UTF-8
572
2.546875
3
[]
no_license
<?php class Forms_Elements_Email extends Zend_Form_Element_Text { public function __construct($spec, $options = null) { parent::__construct($spec, $options); $this->addFilter('StringTrim'); $this->addFilter('StripTags'); $vEmail=new myZend_Validate_EmailAddress(); ...
true
594850abf87cfbd3b7551ff504f95b24c8dccf82
PHP
oga0927/php_practice
/section5/composertest/app/Models/TestModel.php
UTF-8
141
2.6875
3
[]
no_license
<?php namespace App\Models; class TestModel { private $text = 'hello world'; public function getHello(){ return $this->text; } }
true
4663f6a98269d9b8711025b48a0e34323654a2f9
PHP
septianrezaandrianto/webberitabagen
/login_user.php
UTF-8
1,480
2.734375
3
[]
no_license
<?php require"layout/header.php"; $err = ''; if(isset($_POST['loginuser'])){ //baca variabel pada form $username = $_POST['username']; $password = $_POST['password']; $query_login = mysql_query("SELECT * FROM user WHERE user_user = '$username' AND pass_user = '$password'",$con); $datalogin = mysql_...
true
7d6e5b7790d813a523309cb3bc4a2ab695fbff2e
PHP
yakubov88/SymfonyNewProject
/src/AdminBundle/Entity/TableDatabase.php
UTF-8
2,951
2.546875
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace AdminBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * TableDatabase * * @ORM\Table(name="table_database") * @ORM\Entity(repositoryClass="AdminBundle\Repository\TableDatabaseRepository") */ class TableDatabase { /** * @var int * * @ORM\Column(name="id", type="integer") ...
true
23f4eb0fd332ef7f7b7f2554aee048b681ab18fb
PHP
waynewn/SingleService
/src/SingleService/View.php
UTF-8
2,537
2.828125
3
[ "MIT" ]
permissive
<?php namespace SingleService; /** * Description of Response * * @author wangning */ class View { protected $_arr=array(); /** * * @param \SingleService\Ret $ret */ public function setResult($ret) { $arr = $ret->toArray(); foreach($arr as $k=>$v){ $this-...
true
e27350c81bd154a56d5d6e1ff008068557f5b165
PHP
petrakov1/tables
/client/index.php
UTF-8
2,422
2.5625
3
[]
no_license
<?php $link = $_REQUEST["link"]; include '../scripts/connectNew.php'; //подключаемся к БД $query = "SELECT * FROM links WHERE link='".$link."'"; $result = $conn->query($query); if ($result->num_rows > 0) { $row = $result->fetch_assoc(); ?> <!DOCTYPE html> <!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt...
true
97ab28fb7033bb5a5bb190f441c200a9de4980d5
PHP
zhrollo/penerhouet
/admin/appreciation-add.php
UTF-8
1,337
2.734375
3
[]
no_license
<?php // appreciation-add.php : action ajout d'une appréciation /* Conf */ include_once("../config.php"); /* Connexion BDD */ include "bdd.php"; /* Calculs */ $appDateSejour = $_POST['appDateSejour']; $appTitre = $_POST['appTitre']; $appTexte = $_POST['appTexte']; $appSignature = $_POST['...
true
1c1e431c867e88856cb9ed5349ae4a59e6ac3f59
PHP
imsha/CheckInn
/app/Services/Inn/Messages/Success.php
UTF-8
927
3.15625
3
[]
no_license
<?php namespace App\Services\Inn\Messages; use App\Services\Inn\Contracts\Message; class Success implements Message { /** * Самозанятый или нет * @var bool */ public $status; /** * Человеко-понятное сообщение * @var string */ public $message; /** * TaxPayerSt...
true
c55110174154ee5fb238c71970cd4c9972904813
PHP
iBeef/contact-keeper-laravel-react
/app/Http/Traits/ValidationTrait.php
UTF-8
895
2.546875
3
[]
no_license
<?php namespace App\Http\Traits; use Illuminate\Support\Facades\Validator; use App\Exceptions\RedirectException; trait ValidationTrait { /** * Validate Api requests and if reject return json * * @param assoc $input * @param assoc $input * @param assoc $input * @return \Illumin...
true
ac6eee6fddc1bfa653a47a59b2aeda23151b19fa
PHP
retext/hub
/src/Retext/Hub/ApiBundle/Controller/Annotation/ApiRequest.php
UTF-8
1,347
2.609375
3
[ "MIT" ]
permissive
<?php namespace Retext\Hub\ApiBundle\Controller\Annotation; use Retext\Hub\ApiBundle\Exception\BadMethodCallException; /** * @Annotation * @Target("METHOD") */ class ApiRequest { /** * @var string */ private $model; /** * @param array $data * * @throws \BadMethodCallException...
true
0fbea4b7d2fb4a4b009534e2d0910ef432df101b
PHP
vemarun/Scm-Scrapper
/src/Debug/DebugFilterIterator.php
UTF-8
1,084
3.078125
3
[]
no_license
<?php /* * Iterator Garden */ /** * Class DebugFilterIterator * * A Debug FilterIterator based on a DebugIteratorIterator which is a IteratorIterator and not * a TraversableDecorator. * * Useful to test differences between parent::current() and $this->getInnerIterator()->current() */ class DebugFilterIterator...
true