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
471b9fb33b0b3ee4ff7825b9ae74794431820539
PHP
dantleech/demoshop
/src/Pyz/Zed/Collector/Business/Processor/PlaceholderProcessor.php
UTF-8
1,193
2.625
3
[ "MIT" ]
permissive
<?php /** * This file is part of the Spryker Demoshop. * For full license information, please view the LICENSE file that was distributed with this source code. */ namespace Pyz\Zed\Collector\Business\Processor; class PlaceholderProcessor { /** * @var string */ protected $placeholder; /** ...
true
41e32d0589c2d00fc0655725018400aceebfca4b
PHP
DIALLO-MAMADOU-OURY/PROGRAMMES
/quizz_sa_db/includes/fonctions.php
UTF-8
1,895
2.71875
3
[]
no_license
<?php function connection($log, $pwd) { $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = ''; $dbname = 'bd_quizz_sa1'; $connect = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname); $sql = "select * from users where login ='" . $log . "' AND password ='" . $pwd . "'"; $player = mysqli_query($connect, ...
true
f8282dc8f1f73fdd695c7b14a75807b441a4abb3
PHP
franco77/Imperibyte
/inc/php/php_edit_team.php
UTF-8
1,815
2.546875
3
[]
no_license
<?php require '../../conexion/db.php'; $id = $_POST['id']; $btn_edit_team = $_POST['btn_edit_team']; $btn_edit_image = $_POST['btn_edit_image']; $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; $charge = $_POST['charge']; $status = $_POST['status']; $facebook = $_POST['facebook']; $instagram = $_...
true
f4539d8e248b35832f5c37ada97a230e6e7ad95f
PHP
milanchheda/fplanalysis
/stats.php
UTF-8
5,151
2.609375
3
[]
no_license
<?php function getInjuredPlayers($conn, $status) { $table = '<table class="table table-striped table-bordered homepage-tabs" cellspacing="0" width="100%"> <thead> <tr> <th>Name</th> <th>Team</th> <th>News</th> </tr> </thead> ...
true
58600f144ac6df71cc7d481b26241d58cde5b371
PHP
tlshifat/php-oop
/test_data/properties.php
UTF-8
252
3.71875
4
[]
no_license
<?php class Cars { var $wheel = 4; function engine(){ echo "Engine of parent class"."<br>"; } function machine(){ return "wheels ".$this->wheel." ok"; } } $car = new Cars(); $car->engine(); echo $car->machine();
true
9ef8b95917df807a8643b6dabdc037bbcd8ffefd
PHP
amine2810/since2017
/Admin/Add_Categorie.php
UTF-8
3,173
2.578125
3
[]
no_license
<?php $bdd = new PDO('mysql:host=127.0.0.1;dbname=blog', 'root', ''); $connect= mysqli_connect("localhost","root","","blog"); $getid = intval($_GET['Id']); $pos=""; $video=""; $note=0; if (isset($_POST['Confirm'])) { $nom = htmlspecialchars($_POST['titre']); // Storing Selected Value In Variable if (...
true
dd84ec89368dba5fef1befdf4919b79638482544
PHP
nuhu-ibrahim/online-blog
/src/AppBundle/Entity/Lecturer.php
UTF-8
6,551
2.625
3
[ "MIT" ]
permissive
<?php // src/AppBundle/Entity/Student.php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; /** * @ORM\Entity * @ORM\Table(name="lecturertbl") * @UniqueEntity(fields="staff_id", m...
true
dc09fa19ac164e536c28050b8bc52def253bbf64
PHP
mvonballmo/earthli-webcore
/lib/main/albums/obj/album_entry.php
UTF-8
2,986
2.515625
3
[]
no_license
<?php /** * @copyright Copyright (c) 2002-2014 Marco Von Ballmoos * @author Marco Von Ballmoos * @filesource * @package albums * @subpackage obj * @version 3.6.0 * @since 2.5.0 */ /**************************************************************************** Copyright (c) 2002-2014 Marco Von Ballmoos This fi...
true
f9018a674d392326cd67fda1193dc8fdb32d7bd0
PHP
saadmalik20/voucher_pool
/src/Controllers/RecipientController.php
UTF-8
1,554
2.796875
3
[]
no_license
<?php namespace VoucherPool\Controllers; use \Psr\Http\Message\ServerRequestInterface as Request; use \Psr\Http\Message\ResponseInterface as Response; use VoucherPool\Helpers\ResponseHelper; use VoucherPool\Models\RecipientModel; class RecipientController { /** * @api {post} /recipient Recipient * @apiVer...
true
8439cb9d1bc7abedd811a357ed12e016e47f3ef8
PHP
Maks3w/email-attachments
/src/Header/ContentDisposition.php
UTF-8
4,901
2.90625
3
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause-Views" ]
permissive
<?php namespace Maks3w\EmailAttachments\Header; use Zend\Mail\Header\Exception\InvalidArgumentException; use Zend\Mail\Header\GenericHeader; use Zend\Mail\Header\HeaderInterface; use Zend\Mail\Header\HeaderValue; use Zend\Mail\Header\HeaderWrap; use Zend\Mail\Headers; class ContentDisposition implements HeaderInterf...
true
8740d4905b8273940cfcd269f80aa0e7d2e079d8
PHP
noelzubin/Hcms
/app/myfiles/general.php
UTF-8
6,434
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\myfiles; use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Crypt; use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Session; use Illuminate\Http\Request; use App\Http\Requests; use Illuminate\Support\...
true
35145462f64426eee69a24350c624ebe6a359654
PHP
hypnotox/abyss
/src/Schema/Node/NodeInterface.php
UTF-8
623
2.703125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace HypnoTox\Abyss\Schema\Node; use HypnoTox\Abyss\Constraint\ConstraintInterface; use HypnoTox\Abyss\Contract\ToArrayInterface; /** * A single node of a schema. * * @psalm-immutable */ interface NodeInterface extends ToArrayInterface { public function getKey(): string; ...
true
462b24cd1b669c309636d0d947013057828d959e
PHP
ognjen91/napjenu.com
/app/classes/Images/Image.php
UTF-8
3,896
2.96875
3
[]
no_license
<?php namespace App\Images; use Traits\Image\image_functions as image_functions; use App\Db_ops\Db_object as Db_object; // metode : ////add_new_image : ubac nove slike ////delete_img : brisanje slike /////getter metode: // get_name - vraca ime slike class Image extends Db_object { use image_functions; ...
true
9a4229c2ec335e2ca2f63607d81ccb83db5d94ed
PHP
el-18-works/solis-octo-luminaria
/study/data/l18data.php
UTF-8
407
2.796875
3
[]
no_license
<?php function my_error($msg) { echo $msg."\n"; } function my_connect($db=NULL, $user="luckxa", $pass="my") { static $mysqli =NULL; if ($mysqli == NULL) { $mysqli =new mysqli("localhost", $user, $pass); } if ($db != NULL) { $mysqli->select_db($db); } if ($mysqli->connect_errno) { my_error( "my_connect : (...
true
0ae5b1e9ada0589e78fe5b10b52a6b2be99d4bed
PHP
alessandrocampos224/laravel-inertia-02
/packages/src/Models/Components/Traits/HiddenColumn.php
UTF-8
1,594
2.734375
3
[]
no_license
<?php /** * Created by Claudio Campos. * User: callcocam@gmail.com, contato@sigasmart.com.br * https://www.sigasmart.com.br */ namespace Call\Models\Components\Traits; trait HiddenColumn { protected $hidden = [ 'list' =>false, 'show' =>false, 'creat...
true
98df07444e93fc8ce8059a834dba7abd6a5e4918
PHP
GabrielSR07/arreglos-asociativos
/back3.php
UTF-8
449
2.96875
3
[]
no_license
<?php $nombre3=$_POST['name3']; $apellido3=$_POST['last3']; $ci3=$_POST['ci3']; $sueldo3=$_POST['sueldo3']; $direccion3=$_POST['direccion3']; $oficina3=$_POST['oficina3']; // ARREGLOS ASOCIATIVOS $datos3 = array("Nombre"=>$nombre3,"Apellido"=>$apellido3,"CI"=>$ci3,"Sueldo"=>$sueldo3,"Dirección...
true
379fdd348e9b1cee2c6e1d5af21f13ffb8f48897
PHP
Madax60/Live_question
/ajoutQuestion.php
UTF-8
2,141
2.84375
3
[]
no_license
<?php include_once ("includes/header.php"); ?> <?php // On inclue le fichier qui concerne les requêtes liées à la table projet. require_once('traitement/traitement_ajoutQuestion.php'); var_dump($donnees['Id_categorie']); ?> <h3 class="text-muted">Poser une question</h3> <!-- on affiche toutes les ...
true
813181cf12aee027f8f14bf30fd49289b8a1561e
PHP
JmzTaylor/slim-download
/src/DownloadView.php
UTF-8
1,147
2.640625
3
[ "MIT" ]
permissive
<?php namespace SimoTod\SlimDownload; class DownloadView extends \Slim\View { public function render($path, $data = []) { $app = \Slim\Slim::getInstance(); if(!file_exists($path)) { $app->notFound(); return; } $contentType = $data["CONTENT_TYPE"] ? $data["CONTENT_TYPE"]...
true
6b3c60fd8936932673e8eea74675caba2c83d9fb
PHP
IT-RVN/PHP_Lessons
/Lesson3/handler.php
UTF-8
451
2.546875
3
[]
no_license
<?php header('Content-Type: text/html; charset=utf-8'); include_once 'DB.php'; $login = $_POST['login']; $password = $_POST['password']; $db = new DB(); $arr = $db->getDataAllData(); echo "<div>"; $res = $db->findUserInDB($login, $password); if(strlen((string) $res) === 0) { echo "<h5>Sorry. Login $login is not...
true
6da51f98dfc4ba4e62eebd1f262d696354f10d21
PHP
Weissheiten/MegaHamsterCom
/Classes/Helpers/HashtagTemplater.php
UTF-8
2,171
3.203125
3
[]
no_license
<?php namespace HTL3R\MegaHamsterCom\Helpers; /** * Class HashtagTemplater * @package HTL3R\MegaHamsterCom\Helpers * * The HashtagTemplater is an example vor a very basic templating engine * Templates for documents and items are stored directly in the class in HEREDOC format * Variables are declared inside thos...
true
bd01f43201fd44554ad57e9e9571e069af502f6d
PHP
Aziridine/mvc
/Library/RouteMap.php
UTF-8
462
2.9375
3
[]
no_license
<?php class RouteMap { private $_map; /** * RouteMap constructor. */ public function __construct() { $this->_map = []; } public function initMap($map) { $this->_map = $map; } public function get($name = null) { if ($name === null) { ...
true
b26144128b4346adbfd2454ab720c8ad1a7c4676
PHP
jcsto/duck
/app/Duck.php
UTF-8
809
2.9375
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Duck extends Model { public $color; public $height; public function __construct(array $attributes = []) { $color = 'gray'; $height = 10; if (!empty($attributes)) { $color = $attributes['color']...
true
a825553d05b9eab7cfe010911c132dcf945f8717
PHP
danitome24/php-valueobject
/src/PhpValueObject/Person/Grams.php
UTF-8
1,145
3.3125
3
[ "MIT" ]
permissive
<?php /** * This software was built by: * Daniel Tomé Fernández <danieltomefer@gmail.com> * GitHub: danitome24 */ namespace PhpValueObject\Person; final class Grams extends Weight { /** * Named constructor * * @param float $weight * @return static * @throws \PhpValueObject\Person\Exce...
true
dbad764cc9b070f687acda25a92050a32d6f7cba
PHP
albertord84/leads
/worker/libraries/utils.php
UTF-8
560
3.234375
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. */ function str_binary_search($elem, $array) { $top = sizeof($array) -1; $bot = 0; while($top >= $bot) { $p =...
true
c59aed85f21732a09c98458338e0d083ecfe9c0d
PHP
AlexMLuna/SIREVI
/model/UsuariosModel.php
UTF-8
768
2.921875
3
[]
no_license
<?php class UsuariosModel extends ModeloBase{ private $table;/*PARAMETRO POR EL CUAL SE ENVIA LA TABLA QUE SE QUIETE CONSULTAR*/ /*CONSTRUCTOR DONDE SE DECLARA LA TABLA QUE SE VA A USAR EN LAS CONSULTAS*/ public function __construct(){ $this->table="usuarios"; parent::__construct($this->table);...
true
8979a2ecd063f09cb99ee24e92521bbe12cb4dc6
PHP
artemkaBionic/phpproject
/curt.php
UTF-8
1,655
2.859375
3
[]
no_license
<?php function addtocart( $product_id, $product_price, $product_title) { $_SESSION['prod_count']++; $tocart = $_SESSION['prod_count'] - 1; $_SESSION['product_id'][$tocart] = $product_id; $_SESSION['product_price'][$tocart] = $product_price; $_SESSION['product_title'][$tocart]= $product_ti...
true
f28212a9bdfe4fdcded8efd4dc0ad1c4ff6681c2
PHP
Shadvoll/eprTable
/bin/gfac/gfactor.php
UTF-8
365
2.8125
3
[]
no_license
<?php // print "Вычисление поля<BR>"; $Frequency=0; $gfactor=0; if (!empty($_GET["Frequency"])) { $Frequency=$_GET['Frequency']; } if (!empty($_GET["gfactor"])) { $gfactor=$_GET['gfactor']; } $H=$Frequency*1000./$gfactor/1.4; $buf=sprintf("%.2f",$H); print "Магнитное поле ".$b...
true
28de5475374e7ff0855a961033ddd48f7fcee881
PHP
ctr1hub/poc_test
/phpyun_v3.1/upload/include/make_html.php
GB18030
5,632
2.734375
3
[ "Apache-2.0" ]
permissive
<?php /* * * $Author PHPYUNŶ * * : http://www.phpyun.com * * Ȩ 2009-2014 ǨγϢ޹˾Ȩ * * δȨǰ£ҵӪοԼκʽٴη */ class html { var $dir; var $rootdir; var $name; var $dirname; var $url; var $time; var $dirtype; var $nametype; function html($nametype = 'name', $dirtype = '...
true
b7f7694dbe5c0cef97141f5b6d975b38de5d68b5
PHP
ivanomanca/iSalento
/iSalento/Components/Page/Views/TemplateColors/Pages/Extra/SimplePage/SimplePage.php
IBM852
1,362
2.625
3
[]
no_license
<? Isp_Loader::loadClass('Isp_View_Page'); /** * This is the simplest page you can design. * */ class SimplePage extends Isp_View_Page{ // Pagina appartenente alla macrosezione n 2 public $currentTab = 2; // Dizionario public $dictionary = array( "it" => array( "title" => "Titolo", "desc...
true
994fe6e33932a1add141d58b1f944739afde4bf1
PHP
ASIKOO/php-user-authentication
/tests/User.php
UTF-8
1,628
3.015625
3
[ "MIT" ]
permissive
<?php namespace Test\DevCoder\Authentication; use DevCoder\Authentication\UserInterface; class User implements UserInterface { /** * @var string */ private $userName; /** * @var string */ private $password; /** * @var array */ private $roles = []; /** ...
true
1627e01171673f42d4c9946e271cb245c867be3d
PHP
henriquebs12/calculadora-de-calorias
/assets/php/classUsuario.php
UTF-8
5,319
3.03125
3
[]
no_license
<?php require_once 'database.php'; class Usuario{ private $idUsuario; private $nome; private $altura; private $peso; private $data_nasc; private $email; private $senha; private $genero; private $is_admin; public function __construct(){ $database = new Database(); $dbset = $database->dbset()...
true
7b561e1b1961964b3ea79ed5dbd771f0340a7f1c
PHP
pojok-webdev/padiapp-tickets
/application/models/Crud.php
UTF-8
2,739
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php Class Crud extends CI_Model{ function __construct(){ parent::__construct(); $this->load->library('common'); } function get($table,$cols = null,$param = 1,$paramType = 'id'){ if(is_null($cols)){ $cols = '*'; } $sql = 'select '.$cols.' from '.$table.' ...
true
8d91f5cc994b36bb1958ac0389059be8d4083822
PHP
DIVYA-KUMARI1/Minor-Project
/delete-evaluation.php
UTF-8
1,235
2.59375
3
[]
no_license
<html> <head> <title>Delete evaluation records</title> </head> <body> <table border="2"> <tr> <th>Evaluation code</th> <th>Description</th> <th>Start date</th> <th>End date</th> <th>Probation end date</th> <th>Reminder Start date</th> <th>Reminder End Date</th> <th>Operations</th> </tr> <?php include("connection.php...
true
fa1021d2743acea139abebb01436a0406217f11b
PHP
lujihong/hyperf-sms
/src/Gateway/AliyunrestGateway.php
UTF-8
3,025
2.609375
3
[]
no_license
<?php declare(strict_types=1); /** * 阿里云Rest * @link http://www.swoole.red * @contact 1712715552@qq.com */ namespace HyperfLibraries\Sms\Gateway; use HyperfLibraries\Sms\Contract\PhoneNumberInterface; use HyperfLibraries\Sms\Contract\MessageInterface; use HyperfLibraries\Sms\HasHttpRequest; use HyperfLibrar...
true
ede7cb7312f117ba086a748d7af2812162cae09f
PHP
kontur32/sms
/application/model_admin.php
UTF-8
947
2.546875
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. */ /** * реализует функции администратора сервиса * * @author Пользователь */ class Аdmin { //put your code here public ...
true
12ba4f5abc16b66e654e4a61f80c358f6a92c891
PHP
ejberro2020/prueba_dinamik
/plugins/wp-booking-system-premium/includes/base/admin/calendar/functions-actions-legend-item.php
UTF-8
16,758
2.609375
3
[]
no_license
<?php // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; /** * Handles "add new legend item" action * */ function wpbs_action_add_legend_item() { // Verify for nonce if( empty( $_POST['wpbs_token'] ) || ! wp_verify_nonce( $_POST['wpbs_token'], 'wpbs_add_legend_item' ) ) return; // Verify for t...
true
182eaecdc69da598b09bb0c6e48f821d3d3b6916
PHP
denshoch/utils
/tests/UtilsTest.php
UTF-8
2,316
2.78125
3
[]
no_license
<?php declare(strict_types=1); use PHPUnit\Framework\TestCase; use Denshoch\Utils; class UtilsTest extends TestCase { public function testRemoveCtrlChars() { $source = "[text]&#x0;&#x1;&#x2;&#x3;&#x4;&#x5;&#x6;&#x7;&#x8;&#x9;&#xb;&#xc;&#xe;&#xf;&#x10;&#x11;&#x12;&#x13;&#x14;&#x15;&#x16;&#x17;&#x18;&#x...
true
ab01b8dbb8245cee66503ad437505add0d801338
PHP
slyxster/fusionpro
/fusionSDK/src/StructType/Format_GetAllTextFramesResponse.php
UTF-8
3,959
2.671875
3
[]
no_license
<?php namespace StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for Format_GetAllTextFramesResponse StructType * @subpackage Structs */ class Format_GetAllTextFramesResponse extends AbstractStructBase { /** * The Format_GetAllTextFramesResult * Meta information ext...
true
f560b041c5a264656ce3468fffcbeb624d81d4cc
PHP
juniwalk/image-storage
/src/Filters/ResizeFilter.php
UTF-8
1,164
2.953125
3
[ "MIT" ]
permissive
<?php /** * @author Martin Procházka <juniwalk@outlook.cz> * @package ImageStorage * @link https://github.com/juniwalk/image-storage * @copyright Martin Procházka (c) 2016 * @license MIT License */ namespace JuniWalk\ImageStorage\Filters; use Nette\Utils\Image; use Nette\Utils\Strings; final class...
true
d6ca4ec407be2ab96c82caa608619c7ac138840d
PHP
ajaaleixo/larastart
/src/Larastart/Template/Controller/RequestTemplate.php
UTF-8
2,125
2.734375
3
[ "MIT" ]
permissive
<?php /** Larastart * * (The MIT license) * Copyright (c) 2017 andrealeixo.com */ namespace Larastart\Template\Controller; use Larastart\Resource\Model\Column; use Larastart\Resource\Model\ModelInterface; use Larastart\Template\TemplateAbstract; class RequestTemplate extends TemplateAbstract { protected $mod...
true
2936304774fb03c939026f3b1e44b7123d88d5bc
PHP
fri-php/03.27Homework
/A1083349_H3/shoppingcart.php
UTF-8
1,395
2.9375
3
[]
no_license
<html> <?php echo "<center>"; echo "<table border='1'>"; $sum=0; if (isset($_COOKIE["q1"])) { echo "<tr>"; echo "<td>"; echo "<form action='delete.php' method='POST'>"; echo "<input type='submit' name='computer' value='取消訂購'>"; echo "</form>"; echo "</td>"; echo "<td>"; echo "電腦"; echo "</td>";...
true
267dcc9c2c2d477b2e3869cd31879bc24f76364a
PHP
assghard/laravel-2fa
/src/Models/TwoFactorVerificationCode.php
UTF-8
578
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Assghard\Laravel2fa\Models; use Illuminate\Database\Eloquent\Model; class TwoFactorVerificationCode extends Model { protected $table = 'user_2fa_codes'; protected $fillable = [ 'user_id', 'code', 'expires_at' ]; /** * The attribu...
true
c0e1827b02bee2750b626468ca66e70682e84b0b
PHP
alexdsm1998/camisetavlc
/pedido.php
UTF-8
991
2.96875
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Insertar pedidos</title> </head> <body> <?php //comprobacion del formulario if (empty($_POST['nombre'])==false && empty($_POST['apellidos'])==false && empty($_POST['talla'])==false && empty($_POST['numero'])==false) { in...
true
31581303be9adac71d017df5ccc6f942236c55ee
PHP
hello-omny/parser
/src/components/Crawler.php
UTF-8
6,172
2.890625
3
[ "BSD-2-Clause" ]
permissive
<?php namespace omny\parser\components; use omny\parser\base\Component; use omny\parser\entities\Article; use omny\parser\entities\Category; use omny\parser\library\AdvancedHtmlDom; /** * Class BaseCrawler * @package omny\parser\crawler * * @property BaseCrawlerOptions $options */ class Crawler extends Compone...
true
7860d69478a638b34151d5c27a1632a102e7e311
PHP
alexandre-leroux/runtrack2
/jour05/job03/index.php
UTF-8
293
2.6875
3
[]
no_license
<!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="accueil.css" /> <title>php</title> </head> <body> <?php function gethello() { $str = 'Hello LaPlateforme!'; return ($str); } echo gethello(); ?> </body> </html>
true
90e70734a3da5fd8f5dc627a901f0b836fa86b26
PHP
ObsidianPHP/erlang-term-format
/src/NewPID.php
UTF-8
2,481
2.875
3
[ "Apache-2.0" ]
permissive
<?php /** * ETF * Copyright 2020 ObsidianPHP, All Rights Reserved * * Website: https://github.com/ObsidianPHP/ETF * License: https://github.com/ObsidianPHP/ETF/blob/master/LICENSE */ namespace Obsidian\ETF; /** * ETF New PID. */ class NewPID extends BaseObject { /** * The node. * @var Atom|bool ...
true
1f96d24379acd0bc0abd36788cddc32f537930f9
PHP
RenzoUA/RepositorioPruebaGit1
/Modelo/Bean/usuarioBean.php
UTF-8
801
2.625
3
[]
no_license
<?php class usuarioBean { private $codigo_usu; private $nombre_usu; private $clave_usu; private $codigo_estadoUsu; function getCodigo_usu(){ return $this ->codigo_usu; } function setCodigo_usu($codigo_usu){ $this ->codigo_usu = $codigo_usu; } function getNombre_usu(){ ...
true
c5a716445e88f49baff0acbab90ec2c057feef21
PHP
animfahmy/ujian-online
/application/controllers/Welcome.php
UTF-8
1,015
2.53125
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Welcome extends CI_Controller { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this contro...
true
e25b448aaf6b42c0be27bcc9072c7ace103e5c5c
PHP
mustafavhora/laravel-twitch-restful-api
/src/API/Authentication.php
UTF-8
1,769
2.84375
3
[ "MIT" ]
permissive
<?php namespace Skmetaly\TwitchApi\API; use GuzzleHttp\Client; /** * Class Authentication * API Documentation : https://github.com/justintv/Twitch-API/blob/master/v3_resources/blocks.md * * @package Skmetaly\TwitchApi\API */ class Authentication extends BaseApi { /** * Returns the authentication URL w...
true
9376de18ee4d5ed31b6311b36e49eafd95c891cd
PHP
HoneyBadgered/customerTechData
/addnewcustomer.php
UTF-8
1,768
2.53125
3
[]
no_license
<?php include("topinclude.php"); if($_POST){ $mynamefirst=$_POST['name_first']; $mynamelast=$_POST['name_last']; $myaddress=$_POST['address']; $sql = "INSERT INTO customers (name_first, name_last, address) VALUES ('$mynamefirst', '$mynamelast', '$myaddress')"; if (mysql_query($sql)) { header("location: adm...
true
0dcc1c4248f4e80b95b1ae0e89c3d59ee949f86e
PHP
codeigniterpower/codeigniter-async
/application/libraries/libasync.php
UTF-8
2,130
2.703125
3
[ "MIT" ]
permissive
<?php /* * libasync.php * * Copyright 2018 PICCORO Lenz McKAY <mckaygehard@gmail.com> * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * */ class Libasync { p...
true
8323c223a8d403cff1475884e2530e6611049fd2
PHP
jeffersongernale/wisdomparkph
/application/models/Facilities.php
UTF-8
862
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Facilities extends CI_Model { public function __construct() { parent::__construct(); } public function get_details($condition = [0]) { $this->db->where($condition); $this->db->select('*'); $this->db->...
true
b01dd4a33afd6e8fe96902aa4c8fb627584d44b9
PHP
JulBlain/skeleton
/src/Subscriber/CoucouSubscriber.php
UTF-8
634
2.53125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: dieu * Date: 27/09/18 * Time: 16:11 */ namespace App\Subscriber; use App\Event\CoucouEvent; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpFoundation\Response; class CoucouSubscriber implements EventSubscriberInterface { pu...
true
d0bf5fc8109af9e67e9be8c7b99e12b7e619c162
PHP
npk191954/project1
/sampleapp/guestbook/libs/guestbook.lib.php
UTF-8
3,181
3.109375
3
[]
no_license
<?php /** * Project: Guestbook Sample Smarty Application * Author: Monte Ohrt <monte [AT] ohrt [DOT] com> * File: guestbook.lib.php * Version: 1.1 */ /** * guestbook application library * */ class Guestbook { // database object var $pdo = null; // smarty template object var $tpl = null; // error me...
true
a816ec2d7e9d583a6eddde24defbfbe715c78423
PHP
ArnaudRUFFAULT/Formation
/echecs/web/Class/Pion.class.php
UTF-8
508
3.09375
3
[]
no_license
<?php class Pion extends Piece{ /** * Determines les déplacements potentielles que le Pion peut effectuer * @return array Contient des coordonnées de cases de l'échiquier */ public function getNewCases(){ $newCases = array(); if($this->YDepart == 7){ if($this->Y-1 > 0){ $newCases[] = ['X'=>...
true
bc5aee6a148c11643e3efe8f6d9143ff1e697740
PHP
xtuling/study_center
/trunk/Public/Common/Model/CommonChooselogModel.class.php
UTF-8
4,410
2.890625
3
[]
no_license
<?php /** * CommonChooselogModel.class.php * 选人记录表 Model * @author: 原习斌 * @date :2016-09-02 */ namespace Common\Model; class CommonChooselogModel extends AbstractModel { /** * 最少选择3次,才能算常用人员 * @var unknown */ const MIN_CHOOSIE_TIME = 3; /** * 选择人员的数据库类型值 * @var int */ ...
true
edf7a0a9c2eadd2ea661a7b0ed23baac83e6c055
PHP
infinitum-dev/php-cms-migration
/src/Modules/v4/AddonsEvent.php
UTF-8
1,862
2.59375
3
[ "MIT" ]
permissive
<?php /** * FYI Infinitum SDK WEB * * @package FYI * @subpackage Infinitum SDK * @since 0.0.1 */ namespace Fyi\Cms\Modules\v4; use Fyi\Cms\Modules\Connection\Source; class AddonsEvent { protected $connection; protected $migrationSync; public function __construct($connection) { $this-...
true
ccc32c986c3c12c05926267ef3205c75d7dbf21d
PHP
SendeckiyVitaliy/site1
/lesson1.php
UTF-8
975
3.046875
3
[]
no_license
<?php $a = ("This is our classroom. It is light clean and large. The room is nice Its ceiling and walls are white its floor is brown."); $a = preg_replace('/ {2,}/',' ',$a); $b = explode (" ",$a); //считаем количество пробелов $d = sizeof($b); $f = explode(". ", $a); $kol_strok = sizeof ($f); function cou...
true
2291f7ca2645a960e57769ad174638f0234962e0
PHP
fi1a/collection
/src/Queue.php
UTF-8
2,457
2.96875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Fi1a\Collection; use Fi1a\Collection\DataType\ArrayObject; use Fi1a\Collection\Exception\EmptyQueueException; /** * Очередь */ class Queue extends ArrayObject implements QueueInterface { /** * @inheritDoc */ public function exchangeArray(array $input): vo...
true
4f647f9b01f6bb4a39212c7bf0219f6e315fce3f
PHP
oodgaard/Trilogy
/src/Trilogy/Statement/Type/Sort.php
UTF-8
682
3.3125
3
[ "MIT" ]
permissive
<?php namespace Trilogy\Statement\Type; trait Sort { /** * The fields to sort by. * * @var array */ private $sorts = []; /** * Sets the sort direction. * * @param string $field The field to sort by. * @param string $direction The sort direction. * ...
true
dd66a4e81d7e8d14873c03679fef046519008250
PHP
abe1272001/laravel_blog
/database/migrations/2021_06_09_023414_create_board_table.php
UTF-8
1,008
2.65625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateBoardTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('board', function ...
true
e6216a75d4d1ec7450ebf2095cc1b4f1b5b53647
PHP
theriddlebrothers/rpm
/system/application/controllers/import/run.php
UTF-8
13,369
2.515625
3
[]
no_license
<?php require('markdownify/markdownify_extra.php'); class Run extends Controller { function index() { $dsn = 'mysqli://root:R1ddl3br0s@localhost/old_projects'; $OLDDB = $this->load->database($dsn, TRUE); $dsn = 'mysqli://root:R1ddl3br0s@localhost/projectmanager'; $NEWDB = $this->load->database($dsn,...
true
12ec4ce0650a2f6883ad38d85b32bcaa20c36628
PHP
samstreet/lightphp
/src/core/Layout.php
UTF-8
965
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: sam * Date: 10/02/2017 * Time: 17:20 */ namespace LightPHP\Core; class Layout { private $content; private $render; function __construct($template, $content = null) { try { $file = __DIR__ . "/../layout/" . $template . ".phtml"; ...
true
7573c16e929ce95a397a23e2c7e9be78569bf7a8
PHP
VitaliaSmaglenko/shop-project
/controllers/AdminUserController.php
UTF-8
3,921
2.765625
3
[]
no_license
<?php /** * Controller AdminUserController */ use Base\Controller; use Model\Authenticate; use Model\User; use App\Response; use App\Request; class AdminUserController extends Controller { /** * AdminUserController constructor. */ public function __construct() { parent::__construct(); ...
true
b3086e121a266d46559adff58354683417aa950d
PHP
dasher/3scale_ws_api_for_php
/test/ThreeScaleClientTest.php
UTF-8
6,858
2.609375
3
[ "MIT" ]
permissive
<?php error_reporting(E_ALL & ~E_DEPRECATED); require_once('simpletest/unit_tester.php'); require_once('simpletest/autorun.php'); error_reporting(E_ALL | E_NOTICE); date_default_timezone_set('Europe/Madrid'); require_once(dirname(__FILE__) . '/../lib/ThreeScaleClient.php'); Mock::generate('Curl'); class StubRespo...
true
d445b89a475a0d9a27d36cdbe84f0e106822faab
PHP
AutismFather/nfa
/application/migrations/2013_06_05_004508_create_products_table.php
UTF-8
689
2.734375
3
[]
no_license
<?php class Create_Products_Table { /** * Make changes to the database. * * @return void */ public function up() { // \Laravel\Database\Schema::create('products', function($table){ $table->engine = 'InnoDB'; $table->increments('id'); $table->integer('category_id')->index(); ...
true
53f559c0e062d2749b50ed2993bc0cc66c8a0e9f
PHP
Publero/PaymentAdvancedTelecomSMSBundle
/Signer/ArraySigner.php
UTF-8
901
3.03125
3
[ "MIT" ]
permissive
<?php namespace Publero\AdvancedTelecomSMSBundle\Signer; class ArraySigner { /** * @var string */ private $password; /** * @param string $password * @throws \InvalidArgumentException */ public function __construct($password) { if (!is_string($password)) { ...
true
f4fc4efbda2e0af6f78a7b284ac8ec6368aae2d0
PHP
kivitendo/kivitendo-crm
/inc/persLib.php
UTF-8
26,477
2.65625
3
[]
no_license
<?php /**************************************************** * chkTable * in: fid = int * out: file = string * ist das ein Kunde oder Lieferant *****************************************************/ function chkTable($fid){ $file="C"; $sql="select count(*) from customer where id=$fid"; $row=$GLOBALS['dbh']->...
true
1d659be4a9a588ff8f63fb6efa289b837c423ac0
PHP
SusanaFASauces/proyectoCFGSDAW
/proyectoTema3/codigoPHP/ejercicio28.php
UTF-8
16,341
2.734375
3
[]
no_license
<!DOCTYPE html> <html lang="es"> <head> <title>Susana Fabián Antón</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" type="text/css" href="../webroot/css/estilo.css"> <style> form { ...
true
cc54396b4ba23ac28f45c7461bc48abe912416ee
PHP
rostenkowski/tray
/src/Tray/Panel/GitBranch.php
UTF-8
468
2.609375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: spot * Date: 4/21/14 * Time: 11:57 PM */ namespace Rostenkowski\Tray\Panel; class GitBranch extends AbstractPanel { private $baseDir; public function __construct($baseDir) { $this->baseDir = $baseDir; } function getTab() { $branch = implode('/', array_slic...
true
e31ff49103dc762066772dcdc2b5dec64997095e
PHP
wizardstechnologies/php-rest-api
/tests/WizardsTest/Parser/RestQueryParserTest.php
UTF-8
2,527
2.546875
3
[]
no_license
<?php namespace WizardsTest\Parser; use PHPUnit\Framework\TestCase; use WizardsRest\Parser\RestQueryParser; use Nyholm\Psr7\ServerRequest; class RestQueryParserTest extends TestCase { public function testGet() { $request = new ServerRequest('GET', '/posts'); $request = $request->withQueryPara...
true
7a854a5b71284ff3c1305f6433220c331e067fb8
PHP
ejonasson/wp-multi-export
/yaml-export.php
UTF-8
4,383
2.671875
3
[ "MIT" ]
permissive
<?php /** * Plugin Name: WP Export to YAML * Plugin URI: https://zombo.com * Description: Setting to create an export YAML for Posts and Pages * * Author: ASMBS * Author URI: https://github.com/asmbs * * License: MIT License * License URI: http://opensource.org/licenses/MIT * * Version: 1.0.0-...
true
8a281bd3d271476cb89fd9bc58478ecbd7148ff4
PHP
MicroDreamTeam/go-cq-http-sdk
/src/Data/Post/Notice/GroupIncreaseNotice.php
UTF-8
534
2.53125
3
[ "Apache-2.0" ]
permissive
<?php namespace Itwmw\GoCqHttp\Data\Post\Notice; use JetBrains\PhpStorm\ExpectedValues; /** * 群成员增加 */ class GroupIncreaseNotice extends BaseNotice { /** @var string 事件子类型, 分别表示管理员已同意入群、管理员邀请入群 */ #[ExpectedValues(values: ['approve', 'invite'])] public string $sub_type; /** @var int 群号 */ publ...
true
cb6b412cac874153a4db5cc8c9984f32dd400baf
PHP
razasaleem3/PHPUnit-and-Composer-Workflow
/app/libraries/Checkout.php
UTF-8
2,578
2.78125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Developer4 * Date: 10/31/2016 * Time: 7:29 PM */ namespace App\Libraries; class Checkout { public function available_domain($domain) { if($domain=="int") { return 1; } else { return "Domain Not Avail...
true
452074792a643f264df8c7618fb650b973eff584
PHP
Kiranpawar07/Photos-Selection
/index.php
UTF-8
4,076
2.65625
3
[]
no_license
<?php session_start(); if(!isset($_SESSION["user_id"])){ header("Location:login.php"); } include('topbar.php'); include('connection.php'); $user_id = ""; // For seleced images... if(isset($_POST['name'])) { ...
true
27cab5a466776d34c2e4b90af0dabe09b90adc81
PHP
MaestracciDamien/24h-Web
/modele/Bean/Navire.php
UTF-8
447
3.078125
3
[]
no_license
<?php class Navire{ private $id; private $evp; private $nom; private $idComp; // Constructeur de la classe public function __construct($i, $n, $e, $idC){ $this->id = $i; $this->nom = $n; $this->evp = $e; $this->idComp = $idC; } public function getId(){ return $this->id; } public function getEvp(){...
true
ca0972c7dceba657d88fbe5ec2d555a1eb48f2ae
PHP
seed-builder/mmk
/database/migrations/2017_04_07_153559_create_table_change_lists.php
UTF-8
1,318
2.53125
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTableChangeLists extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('wf_change_l...
true
22ab07da0a29a40d34d1ad511a6719771b9dd54f
PHP
GaretJax/osms
/osmf/Model/Field/Enum.php
UTF-8
855
2.90625
3
[]
no_license
<?php namespace osmf\Model\Field; class Enum extends \osmf\Model\Field { protected $choices; public function __construct($name, $args) { parent::__construct($name, $args); $this->choices = $args['choices']; $this->default = array_search($args['default'], $this->choices); } public function toPhp($value, ...
true
d6ff385f2ef65043dbf64ad4d2fd87d2fbeaed5e
PHP
durtto/sispla
/sistema/clases/Capacidad.php
UTF-8
3,345
2.546875
3
[]
no_license
<?php require_once 'MyPDO.php'; /** * Definen los tipos de capacidades con las que cuenta la plataforma tecnol�gica de AIT. Las cuales cuentan con una serie de activos asociados. * @access public * @package Planes */ class Capacidad extends MyPDO { /** * @AttributeType int * Clave primaria del tip...
true
49fe3d94f3004f1b3fd5284a1aa67f4f0699273b
PHP
sanjay-shenoy/spress
/src/Core/Plugin/PluginManagerBuilder.php
UTF-8
7,347
2.515625
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Yosymfony\Spress. * * (c) YoSymfony <http://github.com/yosymfony> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Yosymfony\Spress\Core\Plugin; use Symfony\Component\EventDispatcher\...
true
bcca8df8de9cca3a4fc03c1a91b2b0e9b45a3c3a
PHP
stevebauman/maintenance
/app/Models/Observers/InventoryStockObserver.php
UTF-8
989
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Models\Observers; use App\Models\InventoryStock; class InventoryStockObserver { /** * Captures the Inventory Stock models deleted event * and cascades the delete to all of it's movements. * * @param InventoryStock $stock */ public function deleted(InventoryStock $...
true
ff718fbc264c4d4e9f1d2f5d6f4b706b450a761c
PHP
haster312/unicom_blog_api
/app/Helpers/CacheHelper.php
UTF-8
1,433
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Helpers; use Illuminate\Support\Facades\Redis; class CacheHelper { public $items; public $redis; public function __construct() { $this->items = []; $this->redis = Redis::connection(); } /** * Set cache for pagination list by type * @param $type ...
true
26481b5dd97a8384e2ca09fa4d740fca71d333b3
PHP
afonzeca/universalsimplegrid
/src/Contracts/UsgDataSourceHandlerInterface.php
UTF-8
1,044
2.578125
3
[ "MIT" ]
permissive
<?php /** * This file contains UsgDataSourceHandlerInterface interface for Universal Simple Grid Package. * * @license MIT LICENSE - see license.txt * @author Copyright (C) 2016 Copyright Holder Angelo Fonzeca <angelo.fonzeca@gmail.com> */ namespace AFonzeca\UniversalSimpleGrid\Contracts; use Illuminate\...
true
2ddc5af5cf4230ff6cd6baad9be61486b99e4db7
PHP
jaroja4/OperacionesWAS
/class/App.php
UTF-8
5,483
2.953125
3
[]
no_license
<?php //ACTION if( isset($_POST["action"])){ $opt= $_POST["action"]; unset($_POST['action']); // Classes require_once("Conexion.php"); // // Instance $app = new App(); switch($opt){ case "ReadAll": echo json_encode($app->ReadAll()); break; ...
true
4fb399ed2edb0d25cd4d81251191720717776535
PHP
codewebber/Reusable-Functions
/Common functions/validate_email.php
UTF-8
166
2.578125
3
[]
no_license
<?php function validate_email($email) { if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/",$email)) { return 'Invalid'; }else{ return 'Valid'; } } ?>
true
25278c7ede5ec4d313c8d5c2d3c9c306fbfcf5ea
PHP
ods-im/ods-im
/huoma/console/add_active_do.php
UTF-8
2,701
2.75
3
[]
no_license
<?php // 返回json格式的数据 header("Content-type:application/json"); // 开启session,判断登陆状态 session_start(); if(isset($_SESSION["huoma.admin"])){ // 当前登录的用户 $lguser= $_SESSION["huoma.admin"]; // 数据库配置 include '../db_config/db_config.php'; // 创建连接 $conn = new mysqli($db_url, $db_user, $db_pwd, $db_name); // 获得表单POST过...
true
0f1112970b4c82f9e48fc71d48e82858edf65661
PHP
travelbot/travelbot
/tests/models/Event/EventTest.php
UTF-8
1,812
2.6875
3
[]
no_license
<?php class EventTest extends PHPUnit_Framework_TestCase { public function testRegularEvent() { $a = new Event(); $a->setTitle('titulo1'); $this->assertEquals('titulo1', $a->getTitle()); $date1=new DateTime(); $date1->setDate('2010',...
true
517c12d6e6bd2bb5f125350fc1e282e53de008f0
PHP
mselten/gymkt_library
/web/controller/database.php
UTF-8
1,466
2.90625
3
[]
no_license
<?php class Database { function search_books($request, $column, $exact_match) { require "config.php"; $pdo = new PDO($dsn, $name, $password); $pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); $pdo->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); $pdo->setAttribute(PDO::A...
true
ea9fc94666fae98d298d405d3c349c455240ea0c
PHP
Ryzoo/Educato
/app/Http/Controllers/Auth/LoginController.php
UTF-8
1,062
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Http\Requests\Auth\LoginRequest; use App\Services\AuthService; use Illuminate\Support\Facades\Auth; class LoginController extends Controller { private AuthService $authService; public function __construct(AuthService $authServ...
true
e998a0e960f000a0ab441ad414068d5f98924594
PHP
WorkFortBD/NewsPortal
/database/seeds/PollTableSeeder.php
UTF-8
984
2.53125
3
[]
no_license
<?php use App\Models\Poll; use Illuminate\Database\Seeder; class PollTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $poll = new Poll(); $poll->title = "This is a simple poll from admin panel"; $poll->slug =...
true
a4018814b7dd8a65851c6b97ceaba2594dbb98ca
PHP
retailcrm/aliexpress-top-client
/src/Interfaces/TopRequestFactoryInterface.php
UTF-8
1,003
2.625
3
[ "MIT" ]
permissive
<?php /** * PHP version 7.3 * * @category TopRequestFactoryInterface * @package RetailCrm\Interfaces */ namespace RetailCrm\Interfaces; use Psr\Http\Message\RequestInterface; use RetailCrm\Model\Request\BaseRequest; /** * Interface TopRequestFactoryInterface * * @category TopRequestFactoryInterface * @pac...
true
8ab57ec4b9106f3f9766b10733296a73114c74cf
PHP
cnpisit/Ankor.people
/module/Album/src/Album/Entity/TblGalleries.php
UTF-8
6,396
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Album\Entity; use Doctrine\ORM\Mapping as ORM; /** * TblGalleries * * @ORM\Table(name="tbl_galleries") * @ORM\Entity */ class TblGalleries { /** * @var integer * * @ORM\Column(name="gal_id", type="integer", nullable=false) * @ORM\Id * @ORM\GeneratedValue(strategy="ID...
true
6b107ac7eb67632d8a7c0dba0c78e973b24083e8
PHP
Sammerobbroeckx/ActiviteitRegistratie
/root/PHP/login.php
UTF-8
1,336
2.703125
3
[]
no_license
<?php session_start(); require("linkDB.php"); //RESET variables unset($_SESSION["active"]); unset($_SESSION["UserId"]); unset($_SESSION["message"]); if(isset($_POST["naam"])) { $naam = strtolower($_POST["naam"]); $paswoord = hash("sha1", $_POST["paswoord"]); $sql = "SELECT * FROM user WHERE UserNaam...
true
636d07cc56ccdcfcdefbc6e0310b69cc52aaebf0
PHP
Hysnijee/Projekti
/components/editUser.php
UTF-8
562
2.546875
3
[]
no_license
<?php include_once 'userMapper.php'; include_once 'simpleUser.php'; if (isset($_GET['username']) && isset($_GET['id'])) { $userId = $_GET['id']; $username = $_GET['username']; $name = $_GET['name']; $lastname = $_GET['lastname']; $email = $_GET['email']; $city = $_GET['city']; $address = $_...
true
881ad9ea24e875a28f3f7c4ee5f6481c345ad5b6
PHP
evan108108/yii-base-install
/webapp/protected/tests/LintYiiUnit/LintYiiUnitTest.php
UTF-8
3,478
2.53125
3
[ "Apache-2.0" ]
permissive
<?php class LintYiiUnitTest extends CTestCase { public $matchStringNoErrors = 'No syntax errors detected'; public $outputErrorMsgPrefix = 'Syntax Errors Found In '; public function setup() { $declaredClasses = get_declared_classes(); parent::setup(); } public function testC...
true
f9e5115c257f32f5c8bd73fe1dcc0e807eafcd6b
PHP
Hangie921/Comma_project
/back/phpLab/PDO_showTablesFromMember.php
UTF-8
1,151
2.875
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>select member</title> </head> <body> <table border="1" align="center"...
true
1c4f7e77b555416150686e131cbd310dc3170291
PHP
microsoftgraph/msgraph-beta-sdk-php
/src/Generated/Models/Filter.php
UTF-8
9,764
2.5625
3
[ "MIT" ]
permissive
<?php namespace Microsoft\Graph\Beta\Generated\Models; use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder; use Microsoft\Kiota\Abstractions\Serialization\Parsable; use Microsoft\Kiota\Abstractions\Serialization\ParseNode; use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter; use Microso...
true
0db8a2be79bbd732db60b8b88d67959ed6a3805d
PHP
arthurguima/cake_itil_management
/app/Controller/InternosController.php
UTF-8
2,251
2.640625
3
[]
no_license
<?php class InternosController extends AppController { public $helpers = array('Html', 'Form'); public function index(){ $this->set('internos', $this->Interno->find('all')); $this->Interno->recursive = 1; } public function view($id = null){ if (!$this->Interno->exists($id)) { throw new NotFoun...
true
5cba0457c8c4dc5eabf269d45172e668295128f8
PHP
degr/forweb
/modules/orm/OrmUtils.php
UTF-8
12,202
2.75
3
[]
no_license
<?php class OrmUtils{ const BIND_PREFIX = 'Id'; const DATE_FORMAT = 'Y-m-d'; const DATETIME_FORMAT = 'Y-m-d H:i:s'; /** * Load data from persistence storage * @param OrmTable $mainTable main query table. * @param $useBinds boolean - use binds on query, or not * @param $one - return a...
true
6e9d58867fd8b443c3d766688ced5dbe73c67815
PHP
weichuan888/PROJETS
/fil rouge/fil-rouge-dentiste-php/test.php
UTF-8
6,988
2.984375
3
[]
no_license
<?php // $PDO = new PDO( 'mysql:host=localhost;dbname=Toothies', 'root', 'user' ); // echo "connexion successfully"; // $test=$PDO->prepare("SELECT * FROM users"); // $test->execute(); // $PDO = null; // // // class DB // { // public $_PDO; // func...
true