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
9b5c6ceb045c5697f897aa5be6c8004185a2d8fe
PHP
kangmiru/pw2021-203040022
/praktikum/pertemuan6/latihan6c/php/ubah.php
UTF-8
2,400
2.609375
3
[]
no_license
<?php session_start(); if (isset($_SESSION['username'])) { header("location: login.php"); exit; } require 'function.php'; $id = $_GET["id"]; $fs = query("SELECT * FROM barang WHERE id = $id")[0]; if (isset($_POST['ubah'])) { if (ubah($_POST) > 0 ){ echo "<script> alert ('data berhasil...
true
7be9190e58acdaaf18f7d33b0ac83c16d01b8996
PHP
Dhii/storage-interface
/src/Query/EntityAwareInterface.php
UTF-8
1,058
2.828125
3
[ "MIT" ]
permissive
<?php namespace Dhii\Storage\Query; use Dhii\Expression\ExpressionInterface; use Dhii\Expression\LogicalExpressionInterface; /** * Something that provides information about storage entities. * * That is, what data sources to involve in a storage operation, and how they relate. * * @since 0.1 */ interface Entit...
true
d15cadaa360fea8a76e921c639661a0fe56280ef
PHP
PoitrProgramista/HomeBudgetWeb
/classes/Portal.php
UTF-8
2,249
2.71875
3
[]
no_license
<?php class Portal { private $portalBack = null; private $action = null; private $loggedUser = null; private $form = null; function __construct() { $this->portalBack = new PortalBack(); } function submit() { $this->action->submit(); $this->loggedUser = $thi...
true
e6b598e5a1c39173f54da91d4a528af7b982b657
PHP
cwmiller/broadworks-connector
/src/Ocip/Models/GroupExtensionAccess.php
UTF-8
505
2.5625
3
[ "MIT" ]
permissive
<?php namespace CWM\BroadWorksConnector\Ocip\Models; /** * GroupExtensionAccess * * Group's policy for accessing extension dialing configuration (i.e. - length of extensions). * * @method static GroupExtensionAccess FULL() * @method static GroupExtensionAccess READ_ONLY() * @method static GroupExtensionAccess ...
true
eee2150abf50ae5b34cbee5dc9964ea1e906f153
PHP
devhammam95/scraping-website
/index.php
UTF-8
1,223
2.875
3
[]
no_license
<?php echo "<center>Start Scraping thescienceexplorer<center>"."<br/>"; include 'simple_html_dom.php'; $urlFormat = 'http://thescienceexplorer.com/categories/technology?page='; $data = array(); for($i=0;$i<=85;$i++){ echo "Start Scraping page number - ".($i+1)."<br/>"; $url = $urlFormat.$i; //echo $url...
true
abc9ea0296538533cdb5c8ea5fdc4e6d011081dd
PHP
mdhere/php
/for3.php
UTF-8
60
2.59375
3
[]
no_license
<?php $a=1; for($n=10;$a<=$n;$a++) { echo $a."<br>"; } ?>
true
2eeed6f77f0744f93c531ef79bd50ef119387313
PHP
oluwatoyinn/php_tutorials
/functions.php
UTF-8
99
3.0625
3
[]
no_license
<?php function add($num1, $num2){ echo $num1 + $num2 .'<br>'; } add(2,4); ?>
true
38cb2a0d8ce4eb7cc2bbdcb75bb17140fef45ffa
PHP
javel20/sisventjavi
/app/Categoria.php
UTF-8
718
2.625
3
[ "MIT" ]
permissive
<?php namespace sisventjavi; use Illuminate\Database\Eloquent\Model; use sisventjavi\Producto; class Categoria extends Model { protected $table='categorias'; protected $fillable = [ 'nombre', 'descripcion', 'estado', ]; /** * The attributes that should be hidden for arrays. *...
true
fea5879033c51b17c40b3350d8519a9b4f99cd4c
PHP
TEEDEX-NET/bank-id
/src/Helpers/Logger.php
UTF-8
325
3.046875
3
[]
no_license
<?php namespace BankID\Helpers; class Logger { private array $storage = []; public function add(string $key, array $text): void { $this->storage[$key] = $text; } public function get(string $key): ?array { return $this->storage[$key] ?? null; } public function getAll(): array { return $this->storage; ...
true
baeb30f2f647599b2bc4d896603a4462178dabab
PHP
krinski-rs/apis.vogeltelecom.local.com
/src/Entity/Cobranca/ServicoFilialIss.php
UTF-8
1,025
2.53125
3
[]
no_license
<?php namespace App\Entity\Cobranca; class ServicoFilialIss { private $idServicoFilialIss; private $idFilial; private $codigoIss; private $invoiceTypeServico; public function getIdServicoFilialIss(): ?int { return $this->idServicoFilialIss; } public function getIdFilial():...
true
e1e627b7a189aa3b1ecd2f5281497287509a9ece
PHP
mdelrosso/testing
/PHP/PracticasUML/practico5/FiltroExtension.php
UTF-8
412
2.59375
3
[]
no_license
<?php class FiltroExtension implements CriterioFiltro { private $_extension; public function __construct($extension) { $this->_extension = $extension; } public function esSeleccionable(Archivo $archivo) { $encontrado = false; if ($archivo->getExtension() == $this->_e...
true
ac4c90cbc0e29f3744a5c3e6d41ee879e0850a71
PHP
davidscarmo/php_aulas
/aula15/index.php
UTF-8
1,417
3.03125
3
[]
no_license
<!DOCTYPE html> <!-- 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. --> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <pre> <?php ...
true
aa7464c7a14866264d800ec4d50052cc14d841d5
PHP
dinomedic/Projekt-za-WebProg
/CheckApplications.php
UTF-8
1,377
2.578125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <title>Applications</title> <?php include('head.php'); ?> </head> <body> <header> <?php include('header.php'); ?> <?php include('navbar.php'); ?> </header> <main> <?php require_once "connect.php"; $sql = "SELECT id,Fname,Lname,email,dob,work FROM v...
true
35a7f477384245ea61c73b0bd0d4d22359f9e255
PHP
pauybs/2021-ybs-kariyer
/back-end/Entity/WorkplaceSector.php
UTF-8
4,044
2.515625
3
[]
no_license
<?php namespace App\Entity; use App\Repository\WorkplaceSectorRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Table(name="workplace_sectors") * @ORM\Entity(repositoryClass=WorkplaceSectorRepository::class) */ clas...
true
59f3519aed946f9312c4c29a600e1ba5bbee4c76
PHP
SystemUPTM/Siccas
/app/Solicitante.php
UTF-8
1,038
2.59375
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * @property int $id * @property int $n_tipo_nacionalidad * @property string $nombre * @property string $apellido * @property int $cedula * @property string $direccion * @property NTipoNacionalidad $nTipoNacionalidad * @property Inscripcion[] $i...
true
16098cc9543bfcc81f139eb3a99e01e370dc6196
PHP
esd-projects/mqtt-plugin
/src/MQTT/IfPacketIdentifierStore.php
UTF-8
560
2.78125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: 白猫 * Date: 2019/6/13 * Time: 12:01 */ namespace ESD\Plugins\MQTT; /** * Interface ifPacketIdentifierStore * * @package ESD\Plugins\MQTT */ interface IfPacketIdentifierStore { /** * Get Current Packet Identifier * * @return int */ public fu...
true
56991b4bdc987057adba6261dd534beaf7325991
PHP
boxcore/Note-bak
/php/array/array_key_define.php
UTF-8
344
2.953125
3
[]
no_license
<?php // echo "<pre>"; // print_r($_SERVER); // echo "</pre>"; // echo chr(65); // echo ord(A); // echo 65+"; $fruits = array('strawberry'=>'red', 'banana'=>'yellow'); echo "A banana is {$fruits['banana']}"; // echo "A banana is $fruits['banana']"; echo "A banana is {$fruits[banana]}"; echo "A banan...
true
912bd8f4f59f4690113aaae14d68d123e1d82443
PHP
tahq69/competition-manager
/app/Role.php
UTF-8
1,012
2.546875
3
[]
no_license
<?php namespace App; use App\Contracts\MemberRole; use App\Contracts\UserRole; use Illuminate\Database\Eloquent\Model; /** * Class Role * @package App */ class Role extends Model { /** * The table associated with the model. * @var string */ protected $table = 'roles'; /** * The att...
true
8d1769a3c1a88cb7eafa348bf60c6f8add261c55
PHP
aiub3/Creacion-perfiles-PHP
/registro.php
UTF-8
1,822
2.515625
3
[]
no_license
<?php session_start(); if (isset($_SESSION['usuario'])) { header ('Location: contenido.php'); } try { $conexion = new PDO('mysql:host=localhost;dbname=sesion;charset=utf8', 'root',''); } catch(PDOException $e) { echo 'Error: ' . $e; } function limpiardatos($datos) { $datos = trim($datos); $datos = stripcslashe...
true
ca9961d82ea2eceb670615857a97db0145ad4a05
PHP
dafap/SchoolBusManager
/module/SbmInstallation/src/SbmInstallation/Model/DumpTables.php
UTF-8
6,837
2.796875
3
[ "CECILL-B" ]
permissive
<?php /** * Méthode de copie des tables sélectionnées * * Compatible ZF3 * * @project sbm * @package SbmInstallation/Model * @filesource DumpTables.php * @encodage UTF-8 * @author DAFAP Informatique - Alain Pomirol (dafap@free.fr) * @date 11 avr. 2016 * @version 2016-2 */ namespace SbmInstall...
true
a86aea75f9af9282ce186e74659f14b4f74fda07
PHP
zholus/allchords
/src/Modules/Accounts/Application/Users/GetToken/TokenDto.php
UTF-8
714
3.03125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Modules\Accounts\Application\Users\GetToken; class TokenDto { private string $token; private \DateTimeImmutable $expiryAt; private string $refreshToken; public function __construct(string $token, string $refreshToken, \DateTimeImmutable $expiryAt) { ...
true
f1ba4e94f366d173a60784806a71112c70287032
PHP
IvayloIV/PHP-Web-Basics
/PHP-Web-Basics-May-2019/Workshop-Database_driven_Application/Products.php
UTF-8
2,562
3.1875
3
[ "MIT" ]
permissive
<?php class Products { /** * @var PDO */ private $db; /** * Products constructor. * @param PDO $db */ function __construct($db) { $this->db = $db; } function getCount() { $result = $this->db->query('SELECT COUNT(*) as `product_count` FROM products'); ...
true
77494727a7afd2a34fe1cc524d8ac6e7bfd4a681
PHP
lucajackal85/ImageMerge
/src/Command/Options/SingleCoordinateFileObjectCommandOption.php
UTF-8
820
2.625
3
[ "MIT" ]
permissive
<?php namespace Jackal\ImageMerge\Command\Options; use Jackal\ImageMerge\ValueObject\Coordinate; use Jackal\ImageMerge\Model\File\FileObjectInterface; /** * Class SingleCoordinateFileObjectCommandOption * @package Jackal\ImageMerge\Command\Options */ class SingleCoordinateFileObjectCommandOption extends SingleCoo...
true
aa096bedc8478c3fd83ec8a8bc4ada20084d74d7
PHP
RikudouSage/QrPaymentInterface
/src/QrPaymentInterface.php
UTF-8
1,418
3.234375
3
[ "MIT" ]
permissive
<?php namespace Rikudou\QrPayment; use DateTimeInterface; interface QrPaymentInterface { /** * Sets specified options in one go. * Format: * optionName => optionValue * * @param array $options * * @return $this */ public function setOptions(array $options); /** ...
true
3c9baca2ebe5d93346d9a8a5bc4ee73484ee3dff
PHP
HopE86/SQLInjection
/diary/code/Validate.php
UTF-8
1,488
2.96875
3
[]
no_license
<?php class Validate { private static function isValidName($name) { $length = strlen($name); //$name = escape($name); return ((strlen($name) > 0) && strlen($name) == $length && strlen($name) < 21); } //isValidName private static function isValidPassword($pw) { $length = strlen($pw); //$pw = escape($pw); ...
true
d48760a3479559cc22e37162a3b9db199d4b99dd
PHP
alfuveam/projetoPortal
/to/ControleAluno.php
UTF-8
2,574
2.859375
3
[]
no_license
<?php class ControleAluno implements IPrivateTO{ public function listaDeAluno() { $du = new DaoAluno(); $alunos = $du->listarTodos(); $v = new TGui("listaDeAlunos"); $v->addDados("alunos", $alunos); $v->renderizar(); } public function editar($id) { $p1 ...
true
3e566f197a6c2a2f3d2dfcbb6813618f94ee2952
PHP
paularchive/AlphaForumware
/app/models/ForumThread.php
UTF-8
704
2.515625
3
[ "MIT" ]
permissive
<?php use Cviebrock\EloquentSluggable\SluggableInterface; use Cviebrock\EloquentSluggable\SluggableTrait; class ForumThread extends BaseModel implements SluggableInterface { use SluggableTrait; protected $sluggable = array( 'build_from' => 'title', 'save_to' => 'slug', ); protected $tab...
true
38cdda9d7eb863e227d05ecbf27bd042edf3d484
PHP
giorgiosironi/eris
/test/Generator/FrequencyGeneratorTest.php
UTF-8
3,553
2.921875
3
[ "MIT" ]
permissive
<?php namespace Eris\Generator; use Eris\Random\RandomRange; use Eris\Random\RandSource; class FrequencyGeneratorTest extends \PHPUnit\Framework\TestCase { /** * @var int */ private $size; /** * @var RandomRange */ private $rand; protected function setUp(): void { ...
true
bc5d7b274868048829a21d8792946df7625465fa
PHP
Maestro-Apollo/JU_OOP
/classes/insert.php
UTF-8
753
2.796875
3
[]
no_license
<?php class Insert extends Database{ private $insert_result; private $insert_query; public function insertFunction() { if(isset($_POST['submit'])){ $username = $_POST['username']; $password = $_POST['password']; $gender = $_POST['gender']; if($username == "" || $password == "" || $gender ==...
true
64ea5c52e6cec2c41a41b5cbf729215dff00b2cc
PHP
eadz/bBlog
/bblog/libs/search.class.php
UTF-8
6,562
2.828125
3
[]
no_license
<?php /** * @package SmartBee * @author Martin Konicek - <martin_konicek@centrum.cz> * @copyright Copyright (c)2004, Martin Konicek * @link http://smartbee.sourceforge.net/ * @license <http://opensource.org/licenses/lgpl-license.php> GNU Lesser General Public License * @license You have to add link to this librar...
true
b6f7a7bfe9848777568031b97a75dd2bad6e58a1
PHP
arcango/Proyecto-DAW-2021
/galleryApp/Modelos/daoAdmin.php
UTF-8
2,244
2.84375
3
[]
no_license
<?php require_once("./classes/classAdmin.php"); require_once("./classes/classGaleria.php"); require_once("./classes/classEncargado.php"); require_once("./conexion/Connection.php"); class DaoAdmin extends Conexion { public function validarLogin($nombre, $password) { $query = "SELECT * FROM admin WHER...
true
07f463fa98b96844c583bda4aff3176d56830aaf
PHP
bzis/zomba
/src/Vifeed/SystemBundle/Social/Facebook/FacebookApiProvider.php
UTF-8
1,385
2.703125
3
[ "MIT" ]
permissive
<?php namespace Vifeed\SystemBundle\Social\Facebook; use Facebook\FacebookRequest; use Facebook\FacebookSession; /** * Class ApiProvider * @package Vifeed\SystemBundle\Social\Facebook */ class FacebookApiProvider { private $appId; private $appSecret; private $session; /** * */ publi...
true
88fcf4ff3a6616b1d781d94dd540374c58b1016a
PHP
ArtemiyIvanov/digWand
/examples/lesson1/index.php
UTF-8
996
3
3
[]
no_license
<?php require_once('../config/database.php'); // $connect = mysqli_connect(DB_HOST.':'.DB_PORT, DB_USER, DB_PW, DB_NAME); $query = 'SELECT * FROM items'; // $result = mysqli_query($connect, $query); // $items = []; // while($item = mysqli_fetch_assoc($result)) { // $items[] = $item; // } // mysqli_close($con...
true
dfb0cd3aa0401e2c966ffddb8d3e625f11ce4322
PHP
programgames/DesignPattern
/docs/src/Patterns/Creational/Factory/index.php
UTF-8
367
2.71875
3
[]
no_license
<?php require __DIR__ . './../../../../vendor/autoload.php'; require 'clientCode.php'; use Factory\ConfigurableProductFactory; use Factory\SimpleProductFactory; echo "App: Launched with the ConfigurableProductFactory.\n"; clientCode(new ConfigurableProductFactory()); echo "App: Launched with the SimpleProductFactor...
true
800ffa117a5e3e2c252d40e932221d8341470bb2
PHP
sheikhmahmudulhasanshium/WT_FINAL_SUM21
/Assignment/controllers/CategoryController.php
UTF-8
1,585
2.671875
3
[]
no_license
<?php include 'models/db_config.php'; $name=""; $err_name=""; if(isset($_POST["add_category"])){ if(empty($_POST["name"])){ $hasError=true; $err_name="Name Required"; } elseif (strlen($_POST["name"]) <=2){ $hasError = true; $err_name = "Name must be greater than 2 characters"; } elseif ...
true
13d7fc65700244d037963436a1f9af8fb38b789b
PHP
suryadi445/app_vote
/application/models/Admin_model.php
UTF-8
972
2.546875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Admin_model extends CI_Model { // mengambil 1 row public function row($tabel, $fields, $id) { return $this->db->get_where($tabel, [$fields => $id])->row_array(); } public function get_where($tabel, $fields, $id) ...
true
7630f850fc5a7b8d1b43f720f10b9650dbee8b02
PHP
juckerf/sshLoginAuditing
/backend/entryList/classes/classEntrySet.php
UTF-8
569
2.9375
3
[]
no_license
<?php class EntrySet{ private $entrySet; function __construct(){ $this->entrySet=new ArrayObject(); } public function append($entry){ $this->entrySet->append(new Entry($entry['logDate'],$entry['logTime'],$entry['server'],$entry['sessionId'],$entry['loginType'],$entry['user'],$entry['sourceIp'],$entry['pubkeyT...
true
8b8d360854f8d67cf1c1eaa89099a87e7fdfdf1c
PHP
josemmo/umysql
/src/Result.php
UTF-8
2,564
3.171875
3
[ "MIT" ]
permissive
<?php namespace UMySQL; use mysqli; use mysqli_result; use const PHP_VERSION_ID; class Result { /** @var mysqli_result|true */ protected $result; /** @var string */ protected $rowCount; /** @var string */ protected $insertId; /** @var boolean */ protected $closed = false; /** ...
true
fed6bfd62e74793ca0f304cd094d1c700885ed69
PHP
programMike/p3foodtruck
/itemsFoodTruck.php
UTF-8
1,443
2.921875
3
[]
no_license
<?php //itemsFoodTruck.php $myItem = new Item(1,"a Burger","Eat a Juicy Burger or more!",4.95); $myItem->addExtra("Bacon"); $myItem->addExtra("Cheese"); $myItem->addExtra("Extra Burger Pattie"); $config->items[] = $myItem; $myItem = new Item(2,"some Fries","Eat more French Fries!",3.95); $myItem->addExtra("Gravy"); $...
true
68350a65eb3509c5e003b7f7c6d1804b393bd48e
PHP
uirapuru/new-gyman
/tests/Unit/CalendarTest.php
UTF-8
5,004
2.8125
3
[]
no_license
<?php namespace Test\Unit; use Calendar\Calendar; use Calendar\Event; use Calendar\Event\TimeSpan; use Calendar\Expression\AndOperator; use Calendar\Expression\DayOfWeek; use Calendar\Expression\After; use Calendar\Expression\Before; use Calendar\Expression\Parser; use DateTime; use Doctrine\Common\Collections\ArrayC...
true
4ec593e9dcd59fc3e48312c2d69d002ebccf2684
PHP
Manpreet4213/PlacementWorkMotowebSolutions
/19August/NithyaProject/project-repo-phpteam-master/admins/deleteRoom.php
UTF-8
349
2.796875
3
[]
no_license
<?php //for deleting a room require_once 'Database2.php'; require_once 'Room.php'; if (isset($_POST['id'])) { $id = $_POST['id']; $dbcon = Database::getDb(); $s = new Room($dbcon); $count = $s->deleteRoom($id); if ($count) { header("Location: rooms1.php"); } else { echo "probl...
true
513733b4c78dda4456baf481c6fddedf5b8f58be
PHP
edsongaldino/jovemaprendiz
/assets/ferramenta/funcao_php/codifica.php
UTF-8
184
2.671875
3
[]
no_license
<?php function codifica($valor,$int = false) { $valor = addslashes(trim($valor)); if($int) { $valor = (int) $valor; } return base64_encode(strrev(base64_encode($valor))); } ?>
true
084621dd250c4876f2d9cae429dda259a4c9a8fb
PHP
swarajd/fbctfchallenges
/WhereItAt/web/index.php
UTF-8
2,816
3.03125
3
[]
no_license
<html lang="en"> <head> <title>WhereItAt</title> <meta charset="utf-8"> <meta name="description" content=""> <link rel="stylesheet" media="all" href="./css/style.css" /> </head> <body> <div class="page"> <h2>Detective's files</h2> <?php ...
true
6ce18b9dc7e1961c460c6fcf42abe6b4ad3727b8
PHP
ankewk/excelToJson
/excelToJson.php
UTF-8
910
2.65625
3
[]
no_license
<?php error_reporting(E_ALL); ini_set('display_errors', TRUE); $dir = dirname(__FILE__); // include $dir.'/Classes/PHPExcel.php'; include $dir.'/Classes/PHPExcel/IOFactory.php'; $reader = PHPExcel_IOFactory::createReader('Excel5'); $PHPExcel = $reader->load($dir."/a1.xls"); $s...
true
bf240de5738d219c06c68a538336335b7b7189d1
PHP
PlayTech-sudo/pt2k-vslat
/admin_data.php
UTF-8
1,064
2.53125
3
[]
no_license
<?php include('conn.php'); $servername = "localhost"; $username = "root"; $password = ""; $dbname = "vlog"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $aname = ""; $auna...
true
608205ada0e0bae21c9b37810b82d05ebc28d5ac
PHP
Goorln/bbs
/model/validate.php
UTF-8
1,264
2.5625
3
[ "Apache-2.0" ]
permissive
<?php //加载项目初始化文件 include '../init.php'; //加载数据库连接文件 include DIR_CORE . "MySQLDB.php"; //接收表单数据 $username = trim($_POST['username']); $password = trim($_POST['password']); //验证用户和密码的合法性 //验证用户名是否存在 $sql = "select * from user where user_name = '$username'"; $result = my_query($sql); if(!mysql_num_row...
true
a44c22e2cdf8672f4326037e6d160a00980c0809
PHP
davidepatruno/class3-project
/class3-project/database/migrations/2019_03_18_164508_create_apartments_table.php
UTF-8
1,168
2.609375
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateApartmentsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create( 'apartments', function...
true
eeb4641f0a92dc9f2571516b0a38a08404c3206d
PHP
danganh97/miduner
/app/Http/Controllers/HomeController.php
UTF-8
1,503
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Validator; use Midun\View\View; use Midun\Http\Request; use App\Jobs\ExampleJob; use Midun\Supports\Response\Response; use App\Http\Requests\TestRequestFile; class HomeController extends Controller { /** * Routing home * * @param Request $request * ...
true
b3fde5e328eeb22a42a0fbf38facb6ecdef9b085
PHP
jmpe/ladylake.1.1.1
/wp-content/themes/lady-lake/vulnerable-population-form.php
UTF-8
38,082
2.703125
3
[]
no_license
<?php /* Template Name: Vulnerable Population */ ?> <?php get_header(); ?> <div id="content"> <style> .error {color: red;} .red {color: red; font-weight:bold;} </style> <form action="<?php the_permalink(); ?>" method="post" class="" > <!--<form action="vulnerable-population-form.php" method="post" class="" >--> <le...
true
ee9fa5404b7c5a41de9dff626ce17d4cf227f4c8
PHP
johntshaw/fifties
/detail.php
UTF-8
9,383
2.671875
3
[]
no_license
<?php include_once 'includes/db_connect.php'; include_once 'includes/functions.php'; sec_session_start(); if (login_check($mysqli) == true) { $logged = 'in'; } else { $logged = 'out'; } ?> <!DOCTYPE html> <html lang="en"> <head> <!-- Theme Made By www.w3schools.com - No Copyright --> <ti...
true
b5b5eb05bad86c8f24d6d4c39315f6d222265013
PHP
cheyod/newtext
/application/index/controller/Push.php
UTF-8
1,361
2.546875
3
[ "Apache-2.0" ]
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 app\index\controller; use think\worker\Server; /** * Description of Push * * @author cheyod */ class Worker exte...
true
db894614517490e093e9ea06d75d74c8411e4118
PHP
sillsdevarchive/old-lfweb
/lexicon-server/src/libraries/lfdictionary/common/TextFormatHelper.php
UTF-8
1,300
3.0625
3
[]
no_license
<?php namespace libraries\lfdictionary\common; class TextFormatHelper { /** * @return UTF8 string */ public static function convertToUTF8String($string) { try { $encoding =mb_detect_encoding($string); if ($encoding=="") { // maybe not always work $encoding="UTF-16"; }else if($encoding=="UTF-...
true
8baa01ec2b435e1bccc46e17565ade8d615a439b
PHP
franckalainai/php
/les_boucles.php
UTF-8
1,398
3.65625
4
[]
no_license
<?php /* $notes = []; while(true){ $action = readline("entrer une note ou taper ('fin') pour terminer le processus: "); if($action === 'fin'){ break; }else{ $notes[] = (int)$action; } } foreach($notes as $note){ echo $note . "\n"; } */ // on veut demand...
true
ffbd0b583808fd043c46bb2c41ff4e9ae45e803e
PHP
Fiser12/Social-Recipes
/Recipes/src/Infrastructure/Persistence/Doctrine/Domain/Model/Book/UserFollowBook.php
UTF-8
491
2.734375
3
[ "MIT" ]
permissive
<?php namespace Recipes\Infrastructure\Persistence\Doctrine\Domain\Model\Book; use Recipes\Domain\Model\Book\Book; use Recipes\Domain\Model\User\User; class UserFollowBook { private $user; private $book; public function __construct(User $user, Book $book) { $this->user = $user; $this...
true
2e93babe04926dbd02e8ef61b81c3422ada77715
PHP
chikjib/myprojects
/dbclassexample.php
UTF-8
552
2.5625
3
[]
no_license
<?php //This is just an example of the usage, not really a working application include('dbclass.php'); $db = new Db; if($db){ $email = trim($_POST['email']); $username = trim($_POST['username']); $firstname = trim($_POST['firstname']); $lastname = trim($_POST['lastname']); $reg = $db_conn->query("INSERT INTO...
true
ffe6617df999d055907a95c658b9d890677d4919
PHP
Sajib32/php_blog
/back_up_blog/classes/main.php
UTF-8
1,559
2.859375
3
[]
no_license
<?php class Main { private $db; function __construct($DB_con) { $this->db = $DB_con; } public function select_users() { $sql = "SELECT user_name, email FROM users"; $result = $this->db->query($sql); $row=$result->fetch_assoc(); return $row; } ...
true
e90843f9c59f94aac40a1bda73e7d6a623c06d29
PHP
glossyBabe/current_one
/glware/php/fileuploader.class.php
UTF-8
14,254
2.609375
3
[]
no_license
<?php class glwFileUploader { private $god_object; private $analyzer; public $config; private $files; private $requested_type; private $response; public function __construct(&$god_object) { $this->god_object = $god_object; $this->god_object->load_component("fileanalyzer"); $this->analyzer ...
true
a1bec389cbd2d1fc0f02d0f411192d04b57de565
PHP
surbhi3/Todolist-Api
/app/Http/Controllers/ToDoController.php
UTF-8
1,857
2.625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\ToDo; use Auth; use DB; class TodoController extends Controller { /** * Create a new controller instance. * * @return void */ protected $task; public function __construct() { //$this->middleware('a...
true
0719577336f6a78c6aa3e8634fea382fa6246e99
PHP
ZhengXinquan/fopindaquan
/php/class.user.php
UTF-8
11,480
2.71875
3
[]
no_license
<?php date_default_timezone_set("Asia/Chongqing"); // user // 英文 中文 默认值 备注 // id id isNull 系统自增 // user_account 账号 isNull 只能手机号 // user_pwd 密码 isNull 6-10位 数字或英文字母 // user_name 厂家名称 isNull 会员 // user_addr 厂家地址 isNull 会员 // user_phone 厂家电话 isNull 会员 // user_active_code 激活码 isNull 后台生成 // user_create_time 注册时间 表自动 自动 ...
true
8d9500dd4167523a08dadc3e0ee9609bec223bf9
PHP
gyukseldurmush/It-talents
/model/Address.php
UTF-8
643
3.140625
3
[]
no_license
<?php namespace model; class Address { private $id; private $user_id; private $city_id; private $street_name; public function __construct($user_id,$city_id,$street_name){ $this->user_id=$user_id; $this->city_id=$city_id; $this->street_name=$street_name; } public function setId($id) { $thi...
true
7be35a5eb1ab6e5137d21fab4e8fc1da7da2f6e3
PHP
marcoaugustoandrade/app_estoque
/view/produto-pesquisar.php
UTF-8
2,652
2.71875
3
[]
no_license
<?php $titulo = "Pesquisa de produtos"; include 'cabecalho.php';?> <h1>Pesquisar produtos</h1> <br> <form class="form-inline" action="produto-pesquisar.php" method="get"> <div class="form-group"> <label for="descricao">Descrição: </label> </div> <div class="form-group mx-sm-3 mb-2"> <input t...
true
74f5983618dce2c48e290592902bf602ac3be0e0
PHP
treeleaf/spaceport
/src/Spaceport/Commands/DatabaseCommand.php
UTF-8
3,629
2.65625
3
[]
no_license
<?php namespace Spaceport\Commands; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Question\Question; class DatabaseCommand extends AbstractCommand { protected function configure() { $this ->setName...
true
15575ce9a708e7fc97ab673ac0c10c113b6e013c
PHP
nixsolutions/ggf
/app/Match.php
UTF-8
2,662
2.796875
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * Class Match * @package App */ class Match extends Model { /** * @var string */ protected $table = 'matches'; /** * @var array */ protected $fillable = [ 'tournamentId', 'homeTournamentTeamId', ...
true
1d44661ec9f06e68d05d9500f7ad120bf20ecdf9
PHP
mamun4122/Travel-Assistant
/Server/php/purchaseupdate.php
UTF-8
1,887
2.609375
3
[]
no_license
<?php if(isset($_POST["busname"])!=""&&isset($_POST["route"])!=""&&isset($_POST["date"])!=""&&isset($_POST["time"])!=""&&isset($_POST["userid"])!="") { $bus=$_POST["busname"]; $route=$_POST["route"]; $date=$_POST["date"]; $time=$_POST["time"]; $id=$_POST["userid"]; $seat=$_POST["seat"]; $con=mysqli_...
true
1b5564a3b06f084e90fa56f5bbd38a0eb2ea918a
PHP
markguyver/LivefyreImporter
/lib/include.configuration.php
UTF-8
1,163
2.734375
3
[]
no_license
<?php namespace Markguyver\LivefyreImporter; /** * This constant contains the name of the database object class that you would like the framework to use. * Please note: this object MUST extend the \Markguyver\LivefyreImport\Database\Base class. * @var string The database object class name */ const DATABAS...
true
a148846d75baf03732d6c70ece3d2a517124d495
PHP
jibinjose1/Employee-Management-System
/admin.php
UTF-8
1,412
2.796875
3
[]
no_license
<?php require_once "config.php"; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" href="style5.css" /> <title>admin</title> ...
true
57a8fe94bcd13d7b70a86d39fa2eded9e6157521
PHP
omar-ehab/grav-plugin-directus-seo
/cli/DumpCommand.php
UTF-8
987
2.65625
3
[ "MIT" ]
permissive
<?php namespace Grav\Plugin\Console; use Grav\Console\ConsoleCommand; use RecursiveDirectoryIterator; use RecursiveIteratorIterator; class DumpCommand extends ConsoleCommand { protected function configure() { $this ->setName("dump") ->setDescription("Dumps the SEO metadata in...
true
c3c2a506f18210e33cfa941add7f5dd78a1d5e3a
PHP
Aeners/ft_projects
/piscines/Piscine_PHP/d01/ex11/do_op_2.php
UTF-8
925
3.3125
3
[]
no_license
#!/usr/bin/php <?php if ($argc != 2) { echo "Incorrect Parameters\n"; return (false); } $calcul = preg_replace('/[*]/', " * ", $argv[1]); $calcul = preg_replace('/[-]/', " - ", $calcul); $calcul = preg_replace('/[+]/', " + ", $calcul); $calcul = preg_replace('/[\/]/', " / ", $calcul); $calcul = preg_replace('/[%]/', ...
true
87632a563fed94a7971ff6f6c430a37e4b524560
PHP
josifovicmilan/svedocanstva-api
/app/Http/Controllers/ClassTypeStudentController.php
UTF-8
1,874
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\ClassType; use App\Models\Student; use Illuminate\Http\Request; class ClassTypeStudentController extends Controller { /** * Display a listing of the resource. * * @param \App\Models\ClassType $classtype * @return \Illuminate\Http\Response...
true
f5bbc2e9e435423e397f5f97fc6e06346beaddbb
PHP
kotuk/stalker-portal-4.9.x
/server/lib/restapi/v2/restapicollection.class.php
UTF-8
470
2.53125
3
[ "MIT" ]
permissive
<?php namespace Stalker\Lib\RESTAPI\v2; abstract class RESTApiCollection extends RESTApiResource { protected $document; public function __construct(array $nested_params, array $external_params){ parent::__construct($nested_params, $external_params); $this->controllers->add(new RESTApiCountCon...
true
53196425f1a83830de543225053724284cdfcc20
PHP
herodsoft/codeigniter-forms
/src/Types/FieldSetType.php
UTF-8
684
2.890625
3
[ "MIT" ]
permissive
<?php namespace Forms\CI\Types; class FieldSetType extends InputType implements TypeInputInterface { protected string $legend = ''; public function buildType() { $data = []; foreach ($this->getProperties() as $key => $value) { $data[$key] = $value; } $data = ...
true
a8d70e19f6da6ca87a0d0a0b156d0a49d8b67270
PHP
armandobs94/Dental.App
/AplicacionWeb/DentalApp/forms/modificar-cita.php
UTF-8
1,874
2.609375
3
[]
no_license
<h1>Modificar cita.</h1> <h2>Datos de cita actual</h2> <?php include_once('../php/conexion.php'); $fecha = $_GET['fecha']; $horario = $_GET['hora']; $clave = $_GET['clave']; $sql = "SELECT A.nombre, A.apellido_p, A.apellido_m, B.fecha, B.horario FROM clientes A, citas B WHERE A.clave_cliente = '$clave' AND ...
true
7bb6be36dc8721d66ce400e90463772c5b7b5ecb
PHP
MuLabs/php-to-zephir
/src/PhpToZephir/CodeValidator.php
UTF-8
678
2.765625
3
[ "MIT" ]
permissive
<?php namespace PhpToZephir; class CodeValidator { /** * @param string $zephirCode * @throws \Exception */ public function isValid($zephirCode) { $tmpfname = __DIR__ . '/tmp.zep'; file_put_contents($tmpfname, $zephirCode); $ZEPHIRPATH = realpath(__DIR__ . '/../../vendor/phalcon/zephir') . '/'; if ...
true
c9867c95d4c0916f6cb8d3641dabc3393f724a4b
PHP
jakemadison/code_evals
/code_eval_php/delta_time.php
UTF-8
1,207
3.09375
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: Madison * Date: 15-05-27 * Time: 7:05 PM */ date_default_timezone_set('America/New_York'); function process_line($l) { list($starttime, $endtime) = explode(' ', $l); $starttime = strtotime($starttime); $endtime = strtotime($endtime); $time_delta ...
true
a39c0a0ec6e642358ec2965a331be24ed80cfe35
PHP
YuriiChmil/yii2
/backend/models/UserEditForm.php
UTF-8
1,081
2.65625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\models; use yii\base\Model; class UserEditForm extends Model { use UserDtoTrait; /** * @var User */ private $user; public function __construct(User $user, array $config = []) { $this->userName = $user->username; $this->email = $user->email; ...
true
731b125ca051742858f6d8217e37642864367ba4
PHP
alexeyshockov/colada
/src/ProcessingStopwatchLap.php
UTF-8
1,405
2.84375
3
[ "MIT" ]
permissive
<?php namespace Colada; use Carbon\CarbonInterval; use DateInterval; use Symfony\Component\Stopwatch\StopwatchPeriod; /** * @api */ final class ProcessingStopwatchLap { /** @var ProcessingStopwatch */ private $progress; /** @var StopwatchPeriod */ private $swPeriod; /** @var int */ privat...
true
8db253a20e721d5da1574a0547f506482b461619
PHP
franzholz/patch10011
/Classes/Utility/ExtensionManagementUtility.php
UTF-8
5,342
2.640625
3
[]
no_license
<?php namespace JambageCom\Patch10011\Utility; /* * This file is part of the TYPO3 CMS project. * * It is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License, either version 2 * of the License, or any later version. * * For the full copyright and license i...
true
ee7ca68f07ddb0283fc17e01c1a54f649e79f47e
PHP
shortnd/latchkey
/app/Http/Controllers/PolicyController.php
UTF-8
757
2.515625
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Policy; use Illuminate\Http\Request; class PolicyController extends Controller { public function __construct() { // Make this only accessible to admins // return $this->middleware('auth')->except(['index']); } /** * Returns policy ind...
true
7a46c7c2f556c18c94705cfceaf1fddf25f0f8e3
PHP
kelawaad/university-registration-system
/forgotPassword.php
UTF-8
2,634
2.9375
3
[]
no_license
<?php function generateRandomString($length = 10) { $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $charactersLength = strlen($characters); $randomString = ''; for ($i = 0; $i < $length; $i++) { $randomString .= $characters[rand(0, $charactersLength - 1)]; ...
true
7cb5e1a421ac0790ddb4de2e36130727c0f09dd9
PHP
jordyhumberto/nuevo
/consultas/alumnos/reporte.php
UTF-8
7,505
2.671875
3
[]
no_license
<?php //Incluimos librería y archivo de conexión session_start(); //Inicia una nueva sesión o reanuda la existente require '../../conexion.php'; //Agregamos el script de Conexión if(!isset($_SESSION["id_usuario"])){ header("Location: ../../index.php"); } require '../../Classes/PHPExcel.php'; $sql=$_GET['c...
true
910f102da457d702e07684d7febadc8107b38f45
PHP
tonysoft2018/sga_web
/control/packinglist_deta_eliminar.ctrl.php
UTF-8
4,354
2.578125
3
[]
no_license
<?php // ---------------------------------------------------------------------------------- // packinglist_deta_eliminar.ctrl.php // ---------------------------------------------------------------------------------- // Autor. Ing. Antonio Barajas del Castillo // ---------------------------------------------------------...
true
2018585156a2ce7765a9f65fc8d62a5101f7d262
PHP
Zasilkovna/prestashop
/packetery/libs/Order/OrderRepository.php
UTF-8
2,838
2.734375
3
[]
no_license
<?php namespace Packetery\Order; use \Db; use \PrestaShopDatabaseException; use \PrestaShopLogger; class OrderRepository { private $db; public function __construct(Db $db) { $this->db = $db; } /** * @param int $cartId * @return bool */ public function existsByCart($ca...
true
32d80b780e8a0bfc66a84f4741625dad5fe8bc86
PHP
Cixwarediken/playground
/LoginForm/form1.php
UTF-8
334
2.53125
3
[]
no_license
<?php session_start(); $name=$_POST['username']; $password=$_POST['Password']; if($name==null && $password==null) { echo 'The username and password can\'t be left empty'."<br>"; } else { $_SESSION['username']=$_POST['username']; echo header('Location: header.php...
true
aac416d8f7053461179a7fcee4f004405a1b2f9b
PHP
vasildakov-zz/tms
/appcode/src/Application/Schema/CreateSchemaCommand.php
UTF-8
1,578
2.859375
3
[]
no_license
<?php declare(strict_types = 1); /** * This file is part of the vasildakov/tms project. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @copyright Copyright (c) Vasil Dakov <vasildakov@gmail.com> * @link https://github.com/vasilda...
true
1c2d40bfabc94f95a662910ef68b38e827917722
PHP
fajar098123/Kel3Bondowoso_WorkshopWeb
/Tugas Login Database 03-12-2020/E41190986_Iphang Rere Admaja_Tugas Login Database/web_bootstrap/login_process.php
UTF-8
828
2.53125
3
[ "MIT" ]
permissive
<?php session_start(); $con = mysqli_connect("localhost","root","","universitas"); $aksi = $_POST['aksi']; switch ($aksi) { case 'masuk': $username = $_POST['username']; $password = $_POST['password']; $sql = mysqli_query($con, "SELECT * FROM user WHERE username ='".$username."'") or die (...
true
8359bbf4eeb2c3dff99180cb269912b21fbb1eca
PHP
ntnam1993/netcenter
/database/migrations/2020_06_22_081547_add_futher_shops_table.php
UTF-8
1,097
2.515625
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AddFutherShopsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('shops', functio...
true
ef7cb39da9e3ecd02f91189075a36b90705bb0f1
PHP
olesmith/Sivent2
/Common/MyApp/Setup.php
UTF-8
3,249
2.734375
3
[]
no_license
<?php include_once("Setup/Profiles.php"); include_once("Setup/ConfigFiles.php"); include_once("Setup/Defs.php"); include_once("Setup/Data.php"); include_once("Setup/Read.php"); trait MyApp_Setup { use MyApp_Setup_Profiles, MyApp_Setup_ConfigFiles, MyApp_Setup_Defs, MyApp_Setup_Data...
true
75d50e593b4d6ebcbf848d438018ef7008f09d72
PHP
ifcanduela/events
/src/CanListenToEvents.php
UTF-8
519
2.96875
3
[ "MIT" ]
permissive
<?php namespace ifcanduela\events; trait CanListenToEvents { /** * Listen to an event. * * Event listeners can return values: * * - `null` will have no effect * - any other value will short-circuit the event and be returned, remaining * callbacks will not be called * ...
true
540d51c28af37c7c54db316d278409037ad171fe
PHP
miladxandi/Simplist
/Core/Requirement/Date.php
UTF-8
24,734
2.5625
3
[ "MIT" ]
permissive
<?php /* In the name of Allah = بسم اللّه الرّحمن الرّحیم */ namespace Core\Requirement; class Date { /* F */ public function jdate($format, $timestamp = '', $none = '', $time_zone = 'Asia/Tehran', $tr_num = 'fa') { $T_sec = 0;/* <= رفع خطاي زمان سرور ، با اعداد '+' و '-' بر حسب ثانيه */ ...
true
70b50361a6988967145570f305f1ad213e031c1f
PHP
CFPTI/cm2018-escaperoom
/webdispatcher/result.php
UTF-8
1,265
2.890625
3
[]
no_license
<?php // Classe qui permet de créer des objets résultats class Result { public $idGame; public $idCable1; public $nameCable1; public $idCable2; public $nameCable2; public $idCable3; public $nameCable3; public $soluce1; public $soluce2; public $start; public $step1; public $step2; public $end; ...
true
4ba550f9e93cf009487990242a0f534726dc0ad9
PHP
github-acount-1/Website-e-commerce
/htdocs/Software/project2/dynamicwebpages2.php
UTF-8
8,081
3.046875
3
[]
no_license
<!DOCTYPE> <html> <head> <title>Category Display</title> </head> <body> <?php //creating a connection to a database server $user_name = "root"; $password = ""; $database = "category2"; $server = "127.0.0.1"; $conn = new mysqli($server, $user_name, $password,$database); //$dbh=mysql_connect ("$server", "$user_name", ...
true
ffc393033c6580281c627e6a226df4737470e64e
PHP
vgrynishak/m2
/src/Infrastructure/Parser/Item/ListItem/UpdateListItemParser.php
UTF-8
995
2.5625
3
[]
no_license
<?php namespace App\Infrastructure\Parser\Item\ListItem; use App\App\Command\Item\ListItem\UpdateListItemCommand; use App\App\Command\Item\ListItem\UpdateListItemCommandInterface; use App\Infrastructure\Exception\Item\FailUpdateListItem; use Symfony\Component\HttpFoundation\Request; use InvalidArgumentException; cla...
true
1ebea803aff392485a3cd150f63a3ad3c9e4b381
PHP
wakeapp/liveprof-ui
/src/Badoo/LiveProfilerUI/Interfaces/StorageInterface.php
UTF-8
680
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * @maintainer Timur Shagiakhmetov <timur.shagiakhmetov@corp.badoo.com> */ namespace Badoo\LiveProfilerUI\Interfaces; interface StorageInterface { public function getAll(string $table, array $fields, array $params) : array; public function getOne(string $table, array $fiel...
true
7fa367ccc70c8281cd2a4f5cb35d3afe50a9ec66
PHP
cl2015/pms
/protected/models/Laboratory.php
UTF-8
8,304
2.546875
3
[]
no_license
<?php /** * This is the model class for table "laboratories". * * The followings are the available columns in table 'laboratories': * @property string $id * @property string $name * @property string $copyright * @property string $area * @property string $project_time * @property string $acceptance_time * @pr...
true
6d2abbc2f1481c8684098d42240ac08c87e4fa98
PHP
k-dimitrijevs/codelex-uzdevumi
/arrays/01-exe.php
UTF-8
775
3.578125
4
[]
no_license
<?php $numbers = [ 1789, 2035, 1899, 1456, 2013, 1458, 2458, 1254, 1472, 2365, 1456, 2165, 1457, 2456 ]; //todo echo "Original numeric array: " . PHP_EOL; for ($i = 0; $i < count($numbers); $i++) { echo $numbers[$i] . ", "; } echo PHP_EOL; //todo echo "Sorted numeric array: " . PHP_EOL; sort($number...
true
9ccc646b55dd0ab5145424790a5dd97f6d3febc0
PHP
trofuk/damas
/app/code/Dtrof/Gifts/Model/Configuration.php
UTF-8
5,132
2.53125
3
[]
no_license
<?php namespace Dtrof\Gifts\Model; use Dtrof\Gifts\Api\Data\ConfigurationInterface; use Magento\Framework\DataObject\IdentityInterface; class Configuration extends \Magento\Framework\Model\AbstractModel implements ConfigurationInterface, IdentityInterface { /** * CMS page cache tag */ const CACHE_T...
true
d2cb9761feb885a749e5e7079036865a8fcaaef6
PHP
Gayatri-2017/BonAppetit
/fooddetails.php
UTF-8
936
2.53125
3
[]
no_license
<?php session_start(); //$ffhr=$_REQUEST['ffhr']; // $fpdt=$_REQUEST['fpdt']; $servername = "localhost"; $dbname = "bonapetit"; $username="root"; $password=""; $item_name=$_REQUEST['item_name']; $quantity=$_REQUEST['quantity']; $no_of_hrs=$_REQUEST['no_of_hrs']; $datetime=$_REQUEST['datetime']; $conn = mysqli...
true
be1bd0b00252d8fe3abc532a1a3a94eae8f87f1d
PHP
gstearmit/grpc-yii2-server
/proto/Greeter/GreeterClient.php
UTF-8
1,741
2.5625
3
[ "Apache-2.0" ]
permissive
<?php // GENERATED CODE -- DO NOT EDIT! namespace Greeter; /** */ class GreeterClient extends \Grpc\BaseStub { /** * @param string $hostname hostname * @param array $opts channel options * @param \Grpc\Channel $channel (optional) re-use channel object */ public function __construct($host...
true
3a8460c9354b12ce1f1e1f247d0c727ff09c3cd6
PHP
tacticstudios/twd-10
/app/Http/Controllers/CategoryController.php
UTF-8
4,308
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Category; class CategoryController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $categories = Category::orderBy('id'...
true
f3914aa4ca00022d8a95737b9c3e0071e138d256
PHP
scaleplan/di
/src/Exceptions/ContainerNotImplementsException.php
UTF-8
1,281
2.578125
3
[ "Apache-2.0" ]
permissive
<?php namespace Scaleplan\DependencyInjection\Exceptions; use function Scaleplan\Translator\translate; /** * Class ContainerNotImplementsException * * @package Scaleplan\DependencyInjection\Exceptions */ class ContainerNotImplementsException extends DependencyInjectionException { public const MESSAGE = 'di.c...
true