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
ff9ea2685d384f10b7a0a9dc80d771c7e990e61c
PHP
JasonBour/sc_org
/sc/server/order/new_order.php
UTF-8
1,314
2.625
3
[]
no_license
<?php session_start(); header("Content-type: text/html; charset=utf-8"); require_once "../utils/floder_class.php"; $floder = new FileUtil(); //这个文件是在用户第一次创建项目的时候 用于生成订单信息 以及标准的json文件 $openid = $_SESSION['user'];//微信用户的openid //先获取用户表 中微信号对应的user-id //$sql = "SELECT id FROM users WHERE wechat={$openid}"; $id=1 ; $_...
true
50bb60d642dd1dd1591cd70cb98723b4e523bf23
PHP
abermek/demo
/tests/unit/Service/Money/FormatterTest.php
UTF-8
812
2.875
3
[]
no_license
<?php namespace Tests\Unit\Service\Money; use App\Service\Money\Formatter; use Codeception\Test\Unit; use Money\Currency; use Money\Money; class FormatterTest extends Unit { public function getSystemUnderTest(string $locale): Formatter { return new Formatter($locale); } /** @dataProvider dat...
true
821db55bc89f131f33569d3981dc3d07ca6fbcfd
PHP
ervinne13/eBrochure
/app/Models/Product.php
UTF-8
1,325
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Product extends Model { protected $fillable = [ "category_id", "model", "stock", "name", "price", "status", "description" ]; public function scopeKeyword($query, $keyword) { $where = array(strtolower("%{$keyw...
true
ece82b40c3b6b91031742c73c25d06e302f6b465
PHP
gavin66/track
/Track/Facades/Log.php
UTF-8
736
2.578125
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: Gavin * Date: 2018/5/31 * Time: 16:53 */ namespace Track\Facades; /** * Class Log * * @method static debug( $message, $context = [] ) * @method static info( $message, $context = [] ) * @method static notice( $message, $context = [] ) * @method static warning( $messa...
true
d2a243a51d48ad016c37672f8d1e0371e3fcd0d6
PHP
kusal1215/EHR
/services/Appointment/AppointmentService.php
UTF-8
2,125
2.6875
3
[]
no_license
<?php namespace services\Appointment; use App\Appointment; class AppointmentService { protected $appointment; public function __construct() { $this->appointment = new Appointment(); } public function get($id) { return $this->appointment->find($id); } public function...
true
ee67698a7157557b265b368191e21afde148fdd7
PHP
armano2013/toDOListWinter2017
/connectDb.php
UTF-8
457
2.78125
3
[]
no_license
<?php $dsn = 'mysql:dbname=toDOList;host=127.0.0.1'; $user = 'root'; $password = 'root'; try { $dbh = new PDO($dsn, $user, $password); $stmt = $dbh->query('SELECT itemname, description FROM Items'); while ($row = $stmt->fetch()) { echo "itemName: ", $row['itemname'] . "\n"; echo "desc...
true
18fd21f8f1df4ff92d990773307eeb7943901e91
PHP
inabahtrg/KalturaServerCore
/infra/storage/kFile.class.php
UTF-8
17,865
3.15625
3
[]
no_license
<?php /** * @package infra * @subpackage Storage */ class kFile { /** * Returns directory $path contents as an array of : * array[0] = name * array[1] = type (dir/file) * array[2] = filesize * @param string $path * @param string $pathPrefix */ public static function listDir($path, $...
true
d6977b9920668babf01be03d41692ee2710dcd39
PHP
notnull-ua/facebook-test
/models/User.php
UTF-8
1,838
3.140625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Vladyslav * Date: 05.03.2017 * Time: 21:19 */ namespace models; use components\DB; use components\Model; class User extends Model { /** * @var $firstname string */ public $firstname; /** @var $lastname string */ public $lastname; public $...
true
5dab83c905b40cf7a3a3f41fe47157dd0e763960
PHP
mister-ard97/mreza-sensus-penduduk
/sensus_penduduk_2019/users/pages/home/index.php
UTF-8
1,978
2.640625
3
[]
no_license
<?php $pendapatan_region = mysqli_query($connect_db, "SELECT regions.name as nama_region, SUM(persons.income) as total_pendapatan, COUNT(persons.name) as total_warga, SUM(persons.income) / COUNT(persons.name) as rata_rata FROM regions, persons WHERE regions.id = persons.region_id GROUP BY regions.id...
true
e4292b772c7725870e5c2a6d5125155a65527bdf
PHP
iqoOopi/PHP-HAOTIAN-ZHANG
/php/loginFunction.php
UTF-8
1,966
2.921875
3
[]
no_license
<!-- ************************************************* *Author:Haotian Zhang *Date: Feb 06 2019 *Purpose: login Function * ************************************************* --> <?php include_once "top.php"; //get stored pasword $userPassword = getUserPasswordInfo(); if (!isset($_SESSION['logi...
true
28fd37512120e348a892bf4a8180f040349eac15
PHP
Nohjla/sandbox
/demo9_login/action.php
UTF-8
862
2.828125
3
[]
no_license
<?php session_start(); //Get values from login form $email = $_POST['email']; $password = sha1($_POST['password']); // Check if we are getting the correct values // echo $email. " - " .$password; //Database info $host = "localhost"; $db_username = "root"; $db_password = ""; $db_name = "demoStoreNew"; ...
true
2c3cf5746bfa58bd9ef9d31fcf0453de554ae07a
PHP
manuGarciaMons/PHP
/AprendiendoPHP-POO/03-Herencia/index.php
UTF-8
229
2.78125
3
[ "MIT" ]
permissive
<?php require_once 'clases.php'; $persona = new Persona(); $persona->setNombre('Daniel'); $informatico = new informatico(); $informatico->setAltura(1.9); $tecnico = new TecnicoRedes(); $tecnico->devuelveElNombre("Daniel");
true
fed883f9faa5560cd95cf62f33a543c9523f70ca
PHP
a406299736/dl
/m/BackdbModel.class.php
UTF-8
1,178
2.59375
3
[]
no_license
<?php /** * 【梦想cms】 http://www.lmxcms.com * * 数据库备份模块 */ defined('LMXCMS') or exit(); class BackdbModel extends Model{ public function __construct() { parent::__construct(); } //查询数据库中所有表 public function ShowTable(){ $data = parent::sqlModel('SHOW TABLES'); //格式化 ...
true
378406cfb36e5574f7e17460a55ccb813e373d7f
PHP
SibkonInc/site
/baza/functions.php
UTF-8
28,997
2.734375
3
[]
no_license
<?php //файл настроек проверок и подключений //Подключаемся к базе данных. $user = "root"; $db = "db3513b"; mysql_connect("mysql-1", "us3513b", "ghtdtlrhfcfdxtu") or die("Нет подключения к серверу базы данных. Повторите попытку позже."); mysql_query('SET NAMES utf8'); mysql_select_db($db) or die("Невозможно подключитьс...
true
31b6b3c39e8e0062c602379f847b8fa522849710
PHP
developbiao/phpper
/2015/0806/index.php
UTF-8
1,206
3.203125
3
[]
no_license
<?php require('rb.php'); R::setup('mysql:host=localhost;dbname=demo', 'root', '123456'); /* $book = R::dispense('book'); $book->title = 'Learn to Program'; $book->rating = 10; //you can also use array notation if you like: $book['price'] = 77.77; //and store then bean in he database: $id = R::store($book); */ //dele...
true
a42a552f889571d352059c18197ccf74fd49c4aa
PHP
bicosteve/E-commerce
/classes/AddProductFormProvider.php
UTF-8
2,906
2.640625
3
[]
no_license
<?php //require_once '../../admin_includes/header.php'; class AddProductFormProvider{ public function createAddProductForm(){ $productNameInput = $this->createProductNameInput(); $productPriceInput = $this->createProductPriceInput(); $openingStockInput = $this->createOpeningStockInput(...
true
a98dac2c18fc3432daa730f6d93ffa3ae86561b5
PHP
sozbegashvili2/twitterClone
/db/migration.php
UTF-8
1,000
2.625
3
[]
no_license
<?php $servername = 'localhost'; $username = 'root'; $password = ''; $conn = new PDO("mysql:host=$servername",$username,$password); try { $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "CREATE DATABASE IF NOT EXISTS twitterClone"; $conn->exec($sql); $conn->query("USE twitterClon...
true
30e4c6c1c272f6c7f1a71f76b0ad4ae829320b36
PHP
paxal/coding-standard
/tests/Helpers/Annotation/TemplateAnnotationTest.php
UTF-8
2,263
2.515625
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace SlevomatCodingStandard\Helpers\Annotation; use InvalidArgumentException; use LogicException; use PHPStan\PhpDocParser\Ast\PhpDoc\TemplateTagValueNode; use PHPStan\PhpDocParser\Ast\Type\IdentifierTypeNode; use SlevomatCodingStandard\Helpers\TestCase; class TemplateAnnotation...
true
9748667f40757ebc19fe908b845444dd54170e10
PHP
CuBoulder/cu_faculty_publication_bundle
/templates/faculty-publication-author.tpl.php
UTF-8
991
2.71875
3
[]
no_license
<!-- The author first, publications template. Author, Publication Year Publication name Published In DOI: xx.xxxx/xxxxxxx.xxxxxxxx --> <div class="faculty-publication-listing"> <h3> <?php $publication_authors = array(); foreach ($authors as $author) { $publication_authors[] = l($auth...
true
b482ab665f07c2d45ddaa8cb4606b4e58efe4601
PHP
OscarAbadFolgueira/ejemplos-php
/operadores y expresiones/05-operadores-asignacion-combinados.php
UTF-8
1,573
3.71875
4
[]
no_license
<?php // Ejemplo de operadores y expresiones PHP - https://www.dinapyme.com // Operadores de asignación combinados: +=, -=, /=, *=, %=, .= // En este ejemplo creamos una variable, les asignamos un valor. // Posteriormente utilizamos los diferentes operadores de asingación combinados para realizar las operciones o m...
true
5954bf07a6aa317428a507b6f94326078a9e17fd
PHP
jbcode8/yishu
/Application/Mall/Model/AttrValueModel.class.php
UTF-8
1,549
2.703125
3
[]
no_license
<?php // +---------------------------------------------------------------------- // | 艺术网-古玩城 总后台 属性值 控制器文件 // +---------------------------------------------------------------------- // | Author: Rain Zen # 2013.10.29 // +---------------------------------------------------------------------- namespace Mall\Model; cl...
true
2926498eba2b34e7d9f9ba4485c79d65b82655e2
PHP
nojimage/Sirousagi
/core/basic.php
UTF-8
1,401
3.03125
3
[ "MIT" ]
permissive
<?php /** * Basic Functions * * PHP versions 5 * * Copyright 2009, nojimage (http://php-tips.com/) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @version Sirousagi 0.4 * @author nojimage <nojimage at gmail.com> * @copyright 2009 nojimage *...
true
d6b4190e229b271dac93383aae4c6a7af56132a5
PHP
mnpenner/querybuilder
/src/Interfaces/IPolyadicOperator.php
UTF-8
985
3.21875
3
[ "MIT" ]
permissive
<?php namespace QueryBuilder\Interfaces; use QueryBuilder\Interfaces\IOperator; interface IPolyadicOperator extends IOperator { /** * Returns the associativity of this operator. * * Operators may be associative (meaning the operations can be grouped arbitrarily), left-associative (meaning the oper...
true
9f894853d3a6176d0c89fe0e77fd00779b59a3a0
PHP
marcoscodnet/rasty
/phprasty_forms/src/main/php/Rasty/Forms/input/InputTimeCombo.php
UTF-8
2,374
2.90625
3
[]
no_license
<?php namespace Rasty\Forms\input; use Rasty\components\RastyComponent; use Rasty\utils\XTemplate; use Rasty\utils\Logger; /** * Input para time * * @author bernardo * @since 14/08/2013 */ class InputTimeCombo extends InputCombo{ /** * define cada cuánto tiempo se muestra la hora * en el combo (en minutos)...
true
848451d5aa4226ca8365fd2f8487fff0557d7ff5
PHP
BogdanPirozhok/laravel-project
/app/Repositories/EditorJS/AbstractRenderer.php
UTF-8
3,529
3
3
[]
no_license
<?php namespace App\Repositories\EditorJS; use App\Repositories\EditorJS\Exceptions\SignatureAlreadyAssignedException; use App\Repositories\EditorJS\Exceptions\ToolNotFoundException; use App\Repositories\EditorJS\Exceptions\WrongInterfaceException; use App\Repositories\EditorJS\Tools\AbstractTool; abstract class A...
true
1505287a464832892f35762672cd34ca1b873f40
PHP
InteractivePlus/OPENAPI2019-Core-2018Design
/corelib/PHP7/internal/OPENAPI.internal.php
UTF-8
966
2.59375
3
[ "MIT" ]
permissive
<?php namespace OPENAPI40{ require_once __DIR__ . '/../../../extlibs/BoostPHP/autoload.php'; require_once __DIR__ . '/../../../settings.php'; class Internal{ public static $MySQLiConn; protected static $inited = false; public static function InitializeOPENAPI() : bool{ if...
true
2ea83822454740d29a9e6eb63e31861c9b31a708
PHP
mafflerbach/books
/lib/Xml/Xpath.php
UTF-8
1,381
2.734375
3
[]
no_license
<?php namespace Xml; class Xpath extends \DOMXpath { private $_registerNodeNamespaces = FALSE; public function __construct(\DOMDocument $dom) { parent::__construct($dom); $this->registerNodeNamespaces(version_compare(PHP_VERSION, '<', '5.3.3')); } public function registerNamespace($prefix, $namespa...
true
99046a3b53779371aa959bd54721c79818162e22
PHP
igautron/yvonne-server
/database/migrations/2020_11_10_151035_create_products_table.php
UTF-8
2,324
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateProductsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('products', fun...
true
270b3a17fb2f15a7e8c037ce4739514aa68e64e2
PHP
paulorborges/ecommerce
/vendor/hcodebr/php-classes/src/Model/Order.php
UTF-8
4,854
2.75
3
[]
no_license
<?php namespace Hcode\Model; use \Hcode\DB\Sql; use \Hcode\Model; use \Hcode\Model\Cart; class Order extends Model{ const ERROR = "Order-Error"; const SUCCESS = "Order-Success"; /* Método para salvar disparar a procedure para gravar os dados */ public function sa...
true
5418f3ac35aae5b3fb5efeafa4c1153af9e0cb0a
PHP
aterkin/funpay
/src/YandexMoneyResponse/Response.php
UTF-8
354
2.71875
3
[]
no_license
<?php declare(strict_types=1); namespace Funpay\YandexMoneyResponse; abstract class Response { /** @var string */ protected $originalText; public function __construct(string $originalText) { $this->originalText = $originalText; } abstract public function isSuccessful(); abstract...
true
34ed937582d206738bb08ed631013797cdae321c
PHP
rottingham/ProductValidation
/ProductValidator.class.php
UTF-8
4,895
2.921875
3
[]
no_license
<?php namespace ProductValidator; require_once __DIR__ . '/UpcValidator/UpcValidator.class.php'; require_once __DIR__ . '/UpcValidator/UpcEValidator.class.php'; require_once __DIR__ . '/UpcValidator/UpcEExpander.class.php'; require_once __DIR__ . '/EanValidator/EanValidator.class.php'; require_once __DIR__ . '/IsbnVal...
true
b8f2d6d3fb1782034028afb5caf46dbdb2d1a7d5
PHP
Phauthentic/password-hashers
/src/PasswordHasherCollection.php
UTF-8
3,617
2.96875
3
[ "MIT" ]
permissive
<?php /** * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyri...
true
3ed2e147415a5cc48035c774bd6055a6109b3d00
PHP
hackingangle/php
/basics/preg_match_all.php
UTF-8
232
3.015625
3
[ "Apache-2.0" ]
permissive
<?php /** * usage: * preg_match_all */ $str = " <ul> <li>item 1</li> <li>item 2</li> </ul> "; $p = "#<[^>]+>(.*?)</[^>]+>#i"; preg_match_all($p, $str, $matches); var_dump($matches); print_r($matches[1]);
true
e8c9ff33a607e264fb5f73f7dcd47830d1e297d1
PHP
IsaiahWright902/PHP--Continued-Education-
/sandbox.php
UTF-8
1,404
3.484375
3
[]
no_license
<?php // file system part 1 : // $quotes = readfile('readme.txt'); // echo $quotes; // $file = 'quotes.txt'; // if (file_exists($file)) { // // read file // // echo readfile($file) . '<br />'; // // //copy file // // copy($file, 'quotes.txt'); // // // absolute path // // echo realpath($file) ....
true
7f23e79b51b91006db30fba52904c730baab8f63
PHP
baten/MW
/engine2/app/Plugin/Ecommerce/Model/Behavior/EnumerableBehavior.php
UTF-8
757
2.765625
3
[]
no_license
<?php class EnumerableBehavior extends ModelBehavior { /** * Fetches the enum type options for a specific field * * @param string $field * @return void * @access public */ function enumOptions($model, $field) { $cacheKey = $model->alias . '_' . $field . '_enum_options'; $options = Cache::read($cacheKey...
true
f6f880024216c8e319dcef07588f437ec735db7a
PHP
szgabor91/gamerz
/app/Models/CustomModel.php
UTF-8
1,187
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Models; use CodeIgniter\Model; class CustomModel extends Model { protected $table = 'platform'; protected $primaryKey = 'platform_id'; /* protected $returnType = 'array'; protected $useSoftDeletes = true; */ protected $allowedFields = ['platform_company', 'p...
true
42e0a114e983c17be24be773128cb7e49bf10f4e
PHP
mrtttttt/allProject
/pet/admin/editCategoryCon.php
UTF-8
1,197
2.578125
3
[]
no_license
<?php $cid =$_POST["cid"]; $cname=$_POST["cname"]; $cenglish=$_POST["cenglish"]; $cintro=$_POST["cintro"]; $pid=$_POST["pid"]; $cimg=$_POST["cimg"]; include "../public/db.php"; $sql1="select * from category where cid=".$cid; $result=$db->query($sql1); $result->setFetchMode(PDO::FETCH_ASSOC); $row=$result->fetch(); $old...
true
8b56269c681034e2b7b16f28ecf65e9952a47b2c
PHP
matthieuy/battleship
/src/AppBundle/Manager/OnlineManager.php
UTF-8
5,953
2.796875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace AppBundle\Manager; use Gos\Bundle\WebSocketBundle\Client\ClientManipulatorInterface; use MatchBundle\Entity\Game; use Predis\Client; use Ratchet\ConnectionInterface; use Ratchet\Wamp\Topic; use UserBundle\Entity\User; /** * Class OnlineManager * @package AppBundle\Manager */ class OnlineManager { ...
true
a0d99094781cdd5d80ec0ccd13b7b5566ff90a8d
PHP
muzanella11/warehouse-backend
/application/libraries/Chart/ChartBar.php
UTF-8
2,708
2.859375
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); use CpChart\Data; use CpChart\Image; class ChartBar { private $CI; function __construct() { $this->CI =& get_instance(); } public function renderChart () { // Add data chart $getData = $this->addD...
true
a02f480fbd2078af2d3b74aebd541d70788adecc
PHP
indunilLakshitha/auto_complete_test
/database/seeds/DatabaseSeeder.php
UTF-8
1,285
2.921875
3
[ "MIT" ]
permissive
<?php use App\Product; use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { // $this->call(UserSeeder::class); $product_array =[ //Users Section ...
true
e89f38855495f2320ac8c70bc73bb0a190ad8f2c
PHP
canvasBoy/webphp
/www/test.php
UTF-8
810
2.875
3
[]
no_license
<?php $conn = mysqli_connect('localhost','root','root'); // 获取连接 if($conn){ //判断是否连接 mysqli_select_db($conn,"test"); // 选择一个数据库 mysqli_query($conn,"set names utf8"); // 查询输出要使用utf8的编码格式,避免乱码 $sql = "select * from product;"; // 查找到数据库的product表() $result = mysqli_query($conn,$...
true
d96dcacd9a0a8ca0373a8fbaf54c3c759a970ef7
PHP
CSHH/website
/libs/heavenproject/FileManagement/FileManager.php
UTF-8
3,928
2.78125
3
[ "MIT" ]
permissive
<?php namespace HeavenProject\FileManagement; use Kdyby\Doctrine\EntityDao; use Kdyby\Doctrine\EntityManager; use Nette; use Nette\Http\FileUpload; use Nette\Utils\ArrayHash; use Nette\Utils\FileSystem; use Nette\Utils\Random; use Nette\Utils\Strings; class FileManager extends Nette\Object { /** @var EntityManag...
true
1b597e70ecd864d65bf52503d528f860ce32da21
PHP
renan-ps/miniprojeto-fundamentos
/class.usuarios.php
UTF-8
1,893
3.375
3
[]
no_license
<?php class Usuario { private $idUsuario; private $nome; private $email; private $logado; //Cadastrar usuário no banco de dados public function setCadastro($pdo, $nome, $email, $senha){ $stmt = $pdo->prepare('INSERT INTO usuarios(nome, email, senha) VALUES (?, ?, ?)'); $stmt->bindParam(1, $nome, PD...
true
d54ce3c773720abd7405a0303fd6fe53c963772f
PHP
void22/webprog2
/controllers/guestbookdetails.php
UTF-8
746
2.703125
3
[]
no_license
<?php class GuestbookdetailsController { public $baseName = 'guestbookdetails'; public function main(array $vars) { $id = 0; $content = ''; $guestbookModel = new GuestbookModel(); if (isset($vars['id'])) { $id = $vars['id'...
true
91b41e5d0effbd5568a3264566fa8ab06c87e3be
PHP
cachufleto/model
/export/PHP/php_partie_1/image/boucle_image.php
ISO-8859-1
1,054
3.53125
4
[]
no_license
<?php // EXERCICE // 1 - prendre 5 images sur le web et les rennomer image1.jpg / image2.jpg / image3.jpg / ... // 2 - afficher une image avec une ligne html <img /> // 3 - afficher 5 fois l'image 1 avec une seul ligne html (boucle) // 4 - afficher les 5 images avec toujours une seule ligne html (boucle) echo '<img s...
true
4dbb73cb43a8b27b1cfe2770973d9c107c82ea4a
PHP
Anton-Ermolenko/beejeetest
/App/TaskTable.php
UTF-8
791
2.609375
3
[]
no_license
<?php require_once($_SERVER['DOCUMENT_ROOT'] . '/model/lib/DbControl.php'); use lib\DbControl; class TaskTable { public function getResult() { $db = new DbControl(); if ($_GET['pagen']) { $offset = (int)($_GET['pagen'] - 1) * 3; } else { $offset = 0; } if ($_GET['sort']) { $sort = mysqli_real_e...
true
c57051daeaa914d11393ba78b1190c596c0a2eb6
PHP
VucinicVaso/photoStoryApi
/app/Http/Controllers/UsersController.php
UTF-8
864
2.5625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Auth; // models use App\User; use App\Post; class UsersController extends Controller { public function __construct() { $this->middleware('auth:api'); } /* user data */ public function show($id) { $data =...
true
985eb28c4f55ebfaacc6203ec32c4960e7aabcae
PHP
tigerfarm/work
/php/emailSend.php
UTF-8
273
2.59375
3
[ "MIT" ]
permissive
<?php // Requires a local SMTP server. $to = "tigerfarm@gmail.com"; echo "+ Send an email message to: " . $to . "\xA"; $headers = "From: dthurston@twilio.com"; $subject = "Subject message"; $message = "The message body."; mail($to, $subject, $message, $headers); echo "+ Sent.\xA"; ?>
true
a6a802ca599b001be6bbe6563a30d4aca017a077
PHP
cnavarr5/cs3750-ToolPresentation
/src/PrimeNumber.php
UTF-8
1,074
3.703125
4
[]
no_license
<?php declare(strict_types=1); namespace App; use InvalidArgumentException; class PrimeNumber { private $_primes; private $nth; public function __construct($input = 0) { if ($input < 0) { throw new InvalidArgumentException(); } for ($i = 0; $i <= 10000; $i++) { ...
true
f80013ce614b131df81b722537e245764349b1b4
PHP
guri250891/eHandymanSolutions
/private/query_functions.php
UTF-8
33,293
2.578125
3
[]
no_license
<?php function find_all_subjects(){ global $db; $sql = "SELECT * FROM subjects "; $sql .= "ORDER BY position ASC"; $result = mysqli_query($db, $sql); confirm_result_set($result); return $result; } function find_subject_by_id($id){ global $db; $sql = "SELECT * FROM subjects "; $sql .= "WHE...
true
456813fd13d075d45c8624af0e884df8c9751d43
PHP
invisibl3-knight/up-img
/index.php
UTF-8
2,592
2.921875
3
[]
no_license
<?php include 'inc/header.php'; include 'lib/config.php'; include 'lib/Database.php'; $db = new Database(); ?> <div class="myform"> <?php if(isset($_POST['submit'])){ $permited = array('jpg','jpeg','png','gif'); $img_name = $_FILES['image']['name']; $img_size = $_FILES['image']['size']; $img_tmp_name = $_FIL...
true
933e11de5d545baa840951900edf4be658a51f23
PHP
travello-gmbh/amazon-alexa-skill-library
/test/Request/Context/ContextTest.php
UTF-8
1,629
2.546875
3
[]
no_license
<?php /** * PHP Library for Amazon Alexa Skills * * @author Ralf Eggert <ralf@travello.audio> * @license http://opensource.org/licenses/MIT The MIT License (MIT) * @link https://github.com/travello-gmbh/amazon-alexa-skill-library * @link https://www.travello.audio/ * */ namespace TravelloAle...
true
f342d3107a812098d64a137700407cbd82195a17
PHP
giftjohnpaul/tic_tac_toe
/online.php
UTF-8
813
2.53125
3
[]
no_license
<?php session_start(); mysql_connect("localhost", "root", ""); mysql_select_db("tic_tac_toe"); $game_id = $_SESSION["game_id"]; $player_id = $_SESSION["player_id"]; $get_games_query = "select * from games where id = '$game_id'"; $get_games_res = mysql_query($get_games_query) or die(mysql_error()); $games_row = mysql...
true
8938b5fd499aae788be65ecfba6528b149ee6438
PHP
kenshimota/getRestFull
/getRestFull/getUrlApi.php
UTF-8
3,915
2.875
3
[]
no_license
<?php include('formatTime.php'); /* Libreria con una clase que se encargara de enviar y recibir la informacion desde la pagina permitiendo asi recibir los datos que se necesitan, y enviarlos cuando se necesita */ class getUrlApi { /* Funcion encargada de comunicar nuestro BackEnd con la API que necesitemos*/ ...
true
b4bdd16e28402a4bb0ca4247fde99931a5162520
PHP
M-ohamed-Eid/p10
/ecommerce/app/models/Product.php
UTF-8
5,743
3.078125
3
[]
no_license
<?php include_once __DIR__."\../database\databaseConnection.php"; include_once __DIR__."\../database\operation.php"; class Product extends databaseConnection implements operation { private $id; private $name_en; private $name_ar; private $price; private $details_en; private $details_ar; pr...
true
324c396a8c9e8b9ca8d4aca0f0e42a0fec8e810d
PHP
development2gom/green-tenderos
/models/CatConcurso.php
UTF-8
1,954
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use Yii; /** * This is the model class for table "cat_concurso". * * @property string $id_concurso * @property string $txt_nombre * @property string $fch_inicio * @property string $fch_fin * @property string $b_habilitado * * @property EntImagenes[] $entImagenes * @property EntV...
true
e7d382973d6ec37f4c3803d4b10b852875ff7326
PHP
fabriceburel/exercicephp3-6
/index.php
UTF-8
95
2.953125
3
[]
no_license
<?php $number=20; while ($number >= 0) { echo 'C\'est presque bon.<br>'; $number--; } ?>
true
21c67859b5b6ed8567a53b73726cafc7f925953b
PHP
ljc8080/house
/app/Http/Requests/HouseOwnRequest.php
UTF-8
1,665
2.75
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use Validator; class HouseOwnRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /...
true
c9f3edd4cdf08b080afcbf3d899f77ddee46e4a7
PHP
Jeroeny/gitlab-api
/src/Api/Tags.php
UTF-8
1,586
2.625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Gitlab\Api; final class Tags extends ApiBase { /** * @return mixed */ public function all(int $project_id) { return $this->get($this->getProjectPath($project_id, 'repository/tags')); } /** * @return mixed */ public function...
true
8ccc61fabe774131a868ae781c1e5df8bdd014d7
PHP
gboddin/ec-light-test
/modules/custom/multisite_config/lib/Drupal/filter/Config.php
UTF-8
4,624
2.65625
3
[]
no_license
<?php /** * @file * Contains \\Drupal\\filter\\Config. */ namespace Drupal\filter; use Drupal\multisite_config\ConfigBase; /** * Class Config. * * @package Drupal\filter. */ class Config extends ConfigBase { /** * Get a text format object given its machine name. * * @param string $format_name ...
true
772348e3c44b80ff93547e60330e529d0de770ec
PHP
shima-rahman/lina
/php/day3/loop.php
UTF-8
108
2.890625
3
[]
no_license
<?php //&& , || $x=10; //while($x--) //while(true) while($x > 5) { echo "$x <br>"; } echo $x; ?>
true
f781e4a9cbd859199f6100f8df165d529f93b3c1
PHP
lucian23/Tutorial-Catalog-Symfony
/src/Entity/Elevi.php
UTF-8
1,675
2.625
3
[]
no_license
<?php namespace App\Entity; use App\Repository\EleviRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=EleviRepository::class) */ class Elevi { /** * @ORM\Id * @ORM\GeneratedValue ...
true
93fd285e283bba1cb37a9b2793ea309c7c535ade
PHP
UNLSiteMaster/site_master
/src/SiteMaster/Core/Auditor/Logger/Links.php
UTF-8
1,751
2.578125
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
<?php namespace SiteMaster\Core\Auditor\Logger; use DOMXPath; use SiteMaster\Core\Auditor\Site\Page; use SiteMaster\Core\Config; use SiteMaster\Core\Util; class Links extends \Spider_LoggerAbstract { /** * @var \Spider */ protected $spider; /** * @var Page */ protected $page; ...
true
7f54daba473e1532b730a6708812043ee6567cee
PHP
mrhuigou/web
/common/component/Payment/Allinpay/AllinpaySubmit.php
UTF-8
1,086
2.515625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\component\Payment\Allinpay; class AllinpaySubmit { public $allinpaykey; function __construct(){ $this->allinpaykey = __DIR__.'/publickey.txt'; } /** * 建立请求,以表单HTML形式构造(默认) * @param $para_temp 请求参数数组 * @param $method 提交方式。两个值可选:post、get * @param $bu...
true
f28ee4741c392c3c3f1b09da3fc534b809c152e9
PHP
NHZEX/nxAdmin
/app/ReplyEx.php
UTF-8
4,938
2.609375
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace app; use RuntimeException; use think\App; use think\Collection; use think\Paginator; use think\Response; use think\response\Json; class ReplyEx { /** * 响应请求资源创建成功 */ public static function create($data = null, int $code = 0, ?string $message = null): Respon...
true
2180e04ab5be0dd28c4c437a234cf36d5c1ee130
PHP
Dgame/php-expectation
/src/CommonExpectations.php
UTF-8
8,167
3.046875
3
[]
no_license
<?php namespace Dgame\Expectation; /** * Class CommonExpectations * @package Dgame\Expectation */ final class CommonExpectations { use ConditionTrait; /** * CommonExpectations constructor. * * @param mixed $value */ public function __construct($value) { $this->value = $...
true
4682e78efb1f9f77c29d9abb66ccc56dc40c2d7c
PHP
Giildo/symfony_api
/src/UI/Responder/ApiResponder.php
UTF-8
1,328
2.65625
3
[]
no_license
<?php namespace Jojotique\Api\UI\Responder; use Jojotique\Api\Domain\Output\Interfaces\OutInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Serializer\SerializerInterface; class ApiResponder { private SerializerInterface $serializer; ...
true
79918b2c5c422cedec9baf49df6dd2db128efa1e
PHP
AlexandreTual/Blog
/app/src/model/Comment.php
UTF-8
2,454
3.03125
3
[]
no_license
<?php namespace app\src\model; class Comment { private $id; private $author; private $content; private $dateAdded; private $postId; private $publish; private $userId; /** * @return mixed */ public function getId() { return $this->id; } /** * @par...
true
2cc52a1fb7da4983f2b1e53a0004917df11a940c
PHP
LidyaNuramo/RestaurantsWebProject
/Restaurants/test2.php
UTF-8
1,455
2.796875
3
[]
no_license
<?php $dbhost="localhost"; $dbuser="id15549999_feyiseljemal"; $dbpassword="G-5l{t)7sEr/h@Uu"; $dbname="id15549999_feyisel"; $connection = mysqli_connect($dbhost, $dbuser, $dbpassword, $dbname); if (!$connection) { echo " MySQL Connection error." . PHP_EOL; echo "Errno: " . mysqli_connect_errno() . PHP_EO...
true
c3101faa875fffd52bc1990f9bcc8b711ae832da
PHP
aabstractt/AdvancedEssentials
/src/essentials/utils/Utils.php
UTF-8
5,990
2.6875
3
[]
no_license
<?php namespace essentials\utils; use essentials\Essentials; use essentials\player\Player; use pocketmine\network\mcpe\protocol\SetDisplayObjectivePacket; use pocketmine\network\mcpe\protocol\SetScorePacket; use pocketmine\network\mcpe\protocol\types\ScorePacketEntry; use pocketmine\permission\PermissionAttachment; u...
true
6944d351b7bc5b579170b87a731eb8b335984e85
PHP
TonyPtn/indemnite_kilometrique
/tools/ObjectSerialization.php
UTF-8
431
2.90625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: tonypiton * Date: 13/01/2018 * Time: 21:17 */ class ObjectSerialization { /** Méthodes **/ public static function serializeObject($object) { $serialized = serialize($object); return $serialized; } public static function unserializeObje...
true
928f9199d63610b69a278ed112d8afbe5ec4b3e5
PHP
MiguelAlcaino/mindbody-api-client
/src/MindbodyREST/RESTEndpoint/MindbodyClass/Request/POSTRemoveFromWaitlistRequest.php
UTF-8
845
2.609375
3
[]
no_license
<?php namespace MiguelAlcaino\MindbodyApiClient\MindbodyREST\RESTEndpoint\MindbodyClass\Request; use MiguelAlcaino\MindbodyApiClient\MindbodyREST\RESTEndpoint\Common\Model\RESTRequest; use MiguelAlcaino\MindbodyApiClient\MindbodyREST\RESTEndpoint\Common\Model\UserStaffTokenRequiredInterface; use MiguelAlcaino\Mindbod...
true
5df957a34a977a68a21893f1552954f757557065
PHP
FinforeOrg/rss-feeds
/step2-process-headers.php
UTF-8
4,232
2.796875
3
[]
no_license
<?php /* * Open each URL and collect content-type and title. */ require_once dirname(__FILE__) . '/config/database.php'; require_once dirname(__FILE__) . '/lib/libdb.php'; require_once dirname(__FILE__) . '/lib/simple_html_dom.php'; require_once dirname(__FILE__) . '/lib/include.php'; # Load args #####...
true
868c5d6cdb412d5cf605538a3939ca5f016edaa6
PHP
brick/http
/tests/MessageBodyResourceTest.php
UTF-8
847
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Brick\Http\Tests; use Brick\Http\MessageBodyResource; use PHPUnit\Framework\TestCase; /** * Unit tests for class MessageBodyResource. */ class MessageBodyResourceTest extends TestCase { /** * @var MessageBodyResource */ protected $messageBodyResource; ...
true
95779ae2eacfc766a7e6c5ec9b0e3e69ec971954
PHP
ihyadn/site_de_commerce_electronique_PHP
/show_mycart.php
UTF-8
1,695
2.609375
3
[]
no_license
<?php session_start(); $total = 0; $to = 0; $output = ""; $output .= " <table class='table table-bordered table-striped'> <tr > <th>ID</th> <th>NAME</th> <th>TYPE</th> <th>PRICE</th> <th>shipping</th> <th>QUANTITY</th> <th>Total</th> <th>ACTION</th>...
true
680f6d2765a9835c9cccb57ef8293edf975c879c
PHP
ryanhellyer/src-theme
/inc/class-src-events.php
UTF-8
1,695
2.71875
3
[]
no_license
<?php /** * Events. * * @copyright Copyright (c), Ryan Hellyer * @license http://www.gnu.org/licenses/gpl.html GPL * @author Ryan Hellyer <ryanhellyer@gmail.com> * @package SRC Theme * @since SRC Theme 1.0 */ class SRC_Events extends SRC_Core { /** * Constructor. * Add methods to appropriate hooks and fi...
true
38982e59d15efc281d694c4f4450e833eb12cc2f
PHP
AnnaKholkina/IT
/internet_tech-master/lesson_02/index.php
UTF-8
1,499
2.90625
3
[]
no_license
<?php define('PATH_TO_LESSON', '/lesson_02'); $randCount = rand(0, 24); for ($i = 2; $i < 6; $i++) { if ($i * $i > $randCount) { $randCount = $i * $i; $width = 100 * $i + ($i + 1) * 3 + ($i - 1) * 3 . 'px'; break; } } $script = '<?php $img = imagecreatetruecolor(100, 100); ...
true
080485b009be6e70eea1a4d5cb78b0b3a77c61ca
PHP
Machacek76/cms-nette
/app/Model/UserManager.php
UTF-8
3,926
2.75
3
[]
no_license
<?php namespace App\Model; use Nette; use Nette\Security\Passwords; /** * Users management. */ class UserManager implements Nette\Security\IAuthenticator { use Nette\SmartObject; const TABLE_NAME = 'users', COLUMN_ID = 'id', COLUMN_NAME = 'name', COLUMN_USERNAME = 'username', COLUMN_PASS...
true
8474391ffaf4e175c8b425fa190839865991dd96
PHP
Katemare/Entlink2
/modules2/Retriever/Retriever.php
UTF-8
10,561
2.578125
3
[]
no_license
<? namespace Pokeliga\Retriever; load_debug_concern(__DIR__, 'Retriever'); class Retriever implements \Pokeliga\Entlink\Multiton_host { use \Pokeliga\Entlink\Caller, \Pokeliga\Entlink\Multiton_host_standard, Logger_Retriever; const DEFAULT_OPERATOR_CODE='mysqli'; // до того, как запрос собирается в строку с п...
true
779221693051cf0a64d8debda7f192dc4126a8b3
PHP
ShapedTime/ufazBWP
/hw_project/php/model/accounting.php
UTF-8
2,353
2.921875
3
[]
no_license
<?php include_once "../mysqli_config.php"; header("Access-Control-Allow-Origin: *"); class Accounting { public $id; public $type; public $category; public function __construct($id, $type) { $this->id = $id; $this->type = $type; $this->category = array(); } functio...
true
7d704171a2bba2143c3d702e346f6751169b169e
PHP
sagnikmitra/codetigers
/forum.codetigers.org/applications/vanilla/models/class.draftmodel.php
UTF-8
8,650
2.609375
3
[ "LicenseRef-scancode-free-unknown", "GPL-1.0-or-later", "GPL-2.0-or-later", "GPL-2.0-only", "MIT" ]
permissive
<?php /** * Draft model * * @copyright 2009-2019 Vanilla Forums Inc. * @license GPL-2.0-only * @package Vanilla * @since 2.0 */ use Garden\EventManager; /** * Manages unpublished drafts of comments and discussions. */ class DraftModel extends Gdn_Model { /** * Class constructor. Defines the related ...
true
6c92ffc827da1e55447b40bf54a1801e9bded3d3
PHP
dsijakovski98/quorating
/control/reset-forgotten-password.php
UTF-8
1,975
2.515625
3
[]
no_license
<?php require_once '../model/queries.php'; require_once '../utils/include.php'; require_once '../model/constants.php'; if(!isset($_POST['pwd-reset-submit'])) { $path = $website . "index.php"; header("Location: " . $path); exit(); } $selector = $_POST['selector']; $validator = $_POST['validator']; $pwd1 =...
true
3e65f8e3141ce4c2f6c66228e51c680e6aa973a7
PHP
comboyin/dbpwater
/base/router.php
UTF-8
6,568
2.765625
3
[]
no_license
<?php /** * * @author minh_nhut * */ class router { /* * @the registry */ private $registry; /** * path folder modules * @var string */ private $path; /** * param array * @var array */ public $args = array(); /** * path file controller *...
true
21a11dc28fa0494d5134cb62f147b9d925bed2dd
PHP
samtarmizi/laravel-kpt
/app/Http/Controllers/Post/PostController.php
UTF-8
3,608
2.609375
3
[]
no_license
<?php namespace App\Http\Controllers\Post; use App\Http\Controllers\Controller; use App\Models\Post; use Illuminate\Http\Request; use App\Http\Requests\StorePostRequest; use Storage; use File; class PostController extends Controller { public function index(Request $request) { $user = auth()->user(); ...
true
bd666a5f7555ac6c9bac6f3215eef0bd64403a47
PHP
a07061625/swooleyaf
/libs_frame/DesignPatterns/Singletons/WxConfigSingleton.php
UTF-8
8,396
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php /** * 微信配置单例类 * User: 姜伟 * Date: 2017/6/17 0017 * Time: 11:18 */ namespace DesignPatterns\Singletons; use SyConstant\ErrorCode; use SyConstant\Project; use SyException\Wx\WxCorpProviderException; use SyException\Wx\WxException; use SyTool\Tool; use SyTrait\SingletonTrait; use SyTrait\WxConfigTrait; use Wx\...
true
6c63a5c5ac477af812803d6f434ed2a3a4f55f4a
PHP
Marketplace-Express/shop_api
/src/Application/Chains/Store/GetFollowedStoresChain.php
UTF-8
1,494
2.625
3
[ "MIT" ]
permissive
<?php /** * User: Wajdi Jurry * Date: 2020/10/31 * Time: 00:09 */ namespace App\Application\Chains\Store; use App\Application\Chains\AbstractChain; use App\Application\Handlers\Store\GetFollowedStores; use App\Application\Handlers\User\User\Authenticate; use App\Utilities\RequestSenderInterface; use Psr\Http\Mes...
true
96733c46cd5706d12dd74e01df7b8aa1ce7087dc
PHP
maxprihodko8/message_feed
/src/application/handler/initial/ContainerInitialHandler.php
UTF-8
869
2.75
3
[]
no_license
<?php /** * Created by PhpStorm. * User: pn-user30 * Date: 21.09.17 * Time: 9:42 */ namespace src\application\handler\initial; /** * Class ContainerInitialHandler * @package src\application\handler\initial * reads config and chooses what to take from it and returns it as array */ class ContainerInitialHandle...
true
042261d17a38601561a37bf653f0b174a2680b6d
PHP
swantbo/designshop
/common/util/PlatformUtils.php
UTF-8
11,158
2.75
3
[]
no_license
<?php namespace app\common\util; use app\common\constants\SiteConstants; use app\common\base\YiiHelper; use app\common\config\ApplicationConfig; /** * 端口相关工具函数 * * @author Haishen Tian * @since 1.0 */ abstract class PlatformUtils { /** * 根据站点简码获取站点平台类型 * * @param string $siteCode 站点简码, 如: zf-p...
true
b7de96d82d65d058386b74d20b6bd07370e7596c
PHP
radiorabe/wordpress-theme-rabe
/event-meta-event-single.php
UTF-8
2,975
2.671875
3
[]
no_license
<?php /** * The template is used for displaying a single event details on the single event page. * * For a list of available functions (outputting dates, venue details etc) see http://codex.wp-event-organiser.com * * @package Event Organiser (plug-in) * @since 1.7 */ ?> <div class="eventorganiser-event-meta"> ...
true
a3e7c965a974bfbf4e0e61920d27d7a1c1445a02
PHP
intelliboard/intelliboard
/classes/attendance/OAuthUtil.php
UTF-8
2,760
2.53125
3
[]
no_license
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle ...
true
d5ed907b8ee1c191c32c5d77a53df53bbafe41e6
PHP
michaelmoschella/php_stuff
/php/s-profile-altered.php
UTF-8
3,088
2.65625
3
[]
no_license
<?php /********************************************** s-profile-altered.php Makes changes to User table based on what information the student has altered and adds to Mentee and Mentor tables if necessary. ***********************************************/ session_start(); $s_email = $_POST['Email']; $s_pa...
true
930bdfa757d0da3a2dfd12862ff2e0fc5625bbe1
PHP
pher1492/SR-Project
/SR-Project/addLogin.php
UTF-8
4,909
2.578125
3
[]
no_license
<link rel="stylesheet" href="main.css" type="text/css"> <?php require_once("session.php"); ?> <?php require_once("db_connection.php"); ?> <?php include("header_v2.php"); if(($output = message()) !== null) { echo $output; } ?> <div class="row"> <div class="large-12 columns"> <div class="panel"> <h3>Registe...
true
002b25a225b8f79e58bfa93d294cf403388f023e
PHP
stharry/CatBee
/components/rest/RestLogger.php
UTF-8
1,079
2.5625
3
[]
no_license
<?php include_once($_SERVER[ 'DOCUMENT_ROOT' ] . "/CatBee/scripts/globals.php"); require_once 'Log.php'; class RestLogger { private static $logger; //test private static function setLogger() { if (!RestLogger::$logger) { $conf = array('mode' => 0600, 'timeFormat' => '%H:%M:...
true
4e1441e103023e195dc66ddab5f99e07fad6cebb
PHP
yes-soft-de/anime-galaxy
/Backend/src/Controller/RatingEpisodeController.php
UTF-8
3,357
2.5625
3
[]
no_license
<?php namespace App\Controller; use App\AutoMapping; use App\Request\CreateRatingEpisodeRequest; use App\Request\UpdateRatingEpisodeRequest; use App\Service\RatingEpisodeService; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Respo...
true
371e281738bfc73fe1df90a628a879b446ccddb3
PHP
JoeRoc13/Twitter_Clone
/API/post_tweet.php
UTF-8
466
2.546875
3
[]
no_license
<?php include('./header.php'); if(isset($_POST["uid"]) && isset($_POST["tweet"])) { $stmt = $db->prepare("INSERT INTO twitts (uid, body, post_time) VALUES (?, ?, CURRENT_TIMESTAMP)"); $stmt->bindValue(1, $_POST["uid"]); $stmt->bindValue(2, $_POST["tweet"]); if($stmt-...
true
5b04fcbdb88c87d91073c8f9e669065c8a8fde38
PHP
JhonnyDark10/Practicas_PHP
/MiPrueba/cicloswhile.php
UTF-8
295
2.953125
3
[]
no_license
<?php /*$var1=7; //while ($var1<6){ do{ echo "estamos ejecutando el codigo del bucle <br>"; $var1++; }while($var1<6); echo "hemos salido del buble"*/ //break; continue; for($i=0;$i<=10;$i++){ echo "<p> hemos entrado en el bucle </p>"; } ?>
true
4b13ea0782efa49f2aa096f4399cbf40ccccecfe
PHP
drnkwati/repack-htmlsanitizer
/src/Node/AbstractString.php
UTF-8
974
2.859375
3
[ "MIT" ]
permissive
<?php namespace Repack\HtmlSanitizer\Node; abstract class AbstractString { /** * @var array<string, string> */ private static $replacements = array( // Some DB engines will transform UTF8 full-width characters their classical version // if the data is saved in a non-UTF8 field ...
true
6dbaa571ce3448a5a60f4e6516d72d95c9dbcf6b
PHP
prasantkrsuman/new_myignou
/showignou.php
UTF-8
3,817
2.546875
3
[]
no_license
<?php define ('OFFSET',20); define ('MIDSET',15); require_once('includes/include.php'); $url = $_SERVER['SCRIPT_NAME']; $countQuery = "select count(*) As `total` from `ignou`;"; $totalResult=mysql_query($countQuery)or die (mysql_error()); $total= mysql_fetch_assoc ( $totalResult); $totalRecords=$total['total']...
true
6e7fddd2913da21d1f857baee0e2915c2c4db8f5
PHP
eduardo-gomez-i/checador
/asistencia.php
UTF-8
4,110
2.53125
3
[ "MIT" ]
permissive
<?php include 'conex.php'; $fecha_hoy = date("Y-m-d"); $hora_actual = date("H:i:s"); $tarjeta = $_GET['tarjeta']; if ($tarjeta) { //Buscar tarjeta en Trabajadores $sql_trabajador = "SELECT id, tarjeta FROM trabajadores WHERE tarjeta='$tarjeta'"; $consulta_trabajador = mysqli_query($conexion, $sql_trabajador); ...
true
45f1d8722231a5ce684a09657482f1e18ed73915
PHP
raminder5516/UAT-bug-fixing
/user_Assign.php
UTF-8
2,241
2.875
3
[]
no_license
<?php class User_Assign{ public function getAllProjects($db,$id){ $sql = "SELECT * FROM projects WHERE project_manager = :id"; $pdostm = $db->prepare($sql); $pdostm->bindValue(':id', $id, PDO::PARAM_INT); $pdostm->execute(); $results = $pdostm->fetchAll(PDO::FETCH_OBJ); ...
true