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
cef1f1044d1c7c636f96cf91ab2dafbf21c427ad
PHP
lieskadejesus/FormularioLADJD3
/tarea_nueva1/funciones_nueva.php
UTF-8
6,467
3.71875
4
[]
no_license
<!DOCTYPE html> <html > <head> <title> Tarea funciones </title> </head> <body> <?php echo "<****************************Funciones de Strings************************><br>"; echo "<br><b>1)Función round:</b> Esta es una función que permite redondear la cantidad de un flotante o redondear el resultado decimal de una o...
true
d1cf475a05f65f027c41435f6566216c3ae3cdcd
PHP
molledafreddy/laneta
/app/Http/Controllers/Admin/AwardTypeController.php
UTF-8
3,039
2.578125
3
[ "MIT" ]
permissive
<?php namespace LaNeta\Http\Controllers\Admin; use LaNeta\Http\Controllers\Controller; use LaNeta\Award; use LaNeta\AwardType; use Illuminate\Http\Request; class AwardTypeController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index(...
true
83e8a00999cfb798676d9eefe2f657545571ada6
PHP
ValentinZmeu/miniApiImagenes
/functions.php
UTF-8
309
2.65625
3
[]
no_license
<?php /** * * Funciones globales para uso en la plataforma * */ function dd( $param ) { var_dump( $param ); die(); } function d( $param ) { print_r( $param ); die(); } function basePath( $path ) { $path = trim($path,'/'); return __DIR__ . '/' . $path; }
true
415df040bcf991c86938d8fdb1036e796eb0ddcd
PHP
Finnology/oro-platform
/src/Oro/Bundle/ApiBundle/Exception/NotSupportedConfigOperationException.php
UTF-8
1,291
2.96875
3
[ "MIT" ]
permissive
<?php namespace Oro\Bundle\ApiBundle\Exception; /** * This exception is thrown when a configuration cannot be loaded due to an unsupported operation is requested * and this should be represented as a validation error in API response. */ class NotSupportedConfigOperationException extends \RuntimeException implement...
true
4a8b163cb03dcfea973856f7347974417982f050
PHP
webberwu/laravel-practice
/database/migrations/2019_03_09_112154_create_daily_astros_table.php
UTF-8
1,572
2.59375
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateDailyAstrosTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('daily_astro...
true
36137d02bb31709e2ac6c179af5f41bde1a744fc
PHP
remicollet/qb
/tests/intrinsic-cdiv.phpt
UTF-8
535
3.140625
3
[ "PHP-3.01" ]
permissive
--TEST-- Complex number division test --FILE-- <?php /** * A test function * * @engine qb * @local float32[2] $a * @local float32[2] $b * @local float32[3][2] $c * * @return void * */ function test_function() { $a = array(2, 4); $b = array(8, -7); $c[0] = array(3, -9); $c[1] = array(-13, 1); $c[2] =...
true
12bcc20a3e2fda7c8aed68ca563dbdc03063444c
PHP
ElisDN/php-hydrator
/src/Hydrator.php
UTF-8
2,079
2.953125
3
[ "BSD-3-Clause" ]
permissive
<?php /** * This file is part of the elisdn/php-hydrator library * * @copyright Copyright (c) Dmitry Eliseev <mail@elisdn.ru> * @license https://github.com/ElisDN/php-hydrator/blob/master/LICENSE.md * @link https://github.com/ElisDN/php-hydrator */ namespace ElisDN\Hydrator; class Hydrator { private $reflec...
true
7fb37a40c2998a17ca36d3a8a5a510dfd807b967
PHP
webmozart/expression
/tests/Selector/AllTest.php
UTF-8
1,857
2.734375
3
[ "MIT" ]
permissive
<?php /* * This file is part of the webmozart/expression package. * * (c) Bernhard Schussek <bschussek@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Webmozart\Expression\Tests\Selector; use ArrayIterator; ...
true
348f1d2d1f392c706241470ed8124add84b6f8fd
PHP
willian1996/gabymodas
/apis/buscarDados.php
UTF-8
2,834
2.640625
3
[ "MIT" ]
permissive
<?php include_once('conexao.php'); if(@$nivel_estoque == ""){ $nivel_estoque = 5; } $res_todos = $pdo->query("SELECT * FROM vendas where data = curDate() and pago = 'Sim'"); $dados_total = $res_todos->fetchAll(PDO::FETCH_ASSOC); $vendasHoje = count($dados_total); $res_todos = $pdo->query("SELECT * FROM vendas...
true
dd3c422937768781082360ef3253624a089d65a0
PHP
briicoronel25/multimedia_research
/admin/admin_edituser.php
UTF-8
2,422
2.578125
3
[]
no_license
<?php //ini_set('display_errors',1); //error_reporting(E_ALL); require_once('phpscripts/config.php'); require_once('phpscripts/connect.php'); //confirm_logged_in(); $id = $_SESSION['user_id']; //echo $id; $tbl = "tbl_user"; $col = "user_id"; $popForm = getSingle($tbl, $col, $id); $found_user = mys...
true
2c06830fb1007631b3625a72088d34cc42eb77c2
PHP
Oblady/xtoy
/src/XtoY/Writer/FileWriter.php
UTF-8
2,534
2.890625
3
[ "MIT" ]
permissive
<?php namespace XtoY\Writer; use XtoY\Writer\WriterInterface; use XtoY\Options\Optionnable; use XtoY\Reporter\ReporterInterface; /** * Abstract Class that manage backup/restore file when writting file * * @author Sébastien Thibault <contact@sebastien-thibault.com> */ abstract class FileWriter extends Optionnable...
true
d839eadd95147cb8a5a39dc63cbb6542e79a94b0
PHP
JamesBondsky/4lapy
/src/SapBundle/Dto/Out/Orders/OrderStatus.php
UTF-8
3,044
2.6875
3
[]
no_license
<?php namespace FourPaws\SapBundle\Dto\Out\Orders; use JMS\Serializer\Annotation as Serializer; /** * Class OrderStatus * * @package FourPaws\SapBundle\Dto\Out\Orders * * @Serializer\XmlRoot(name="ns0:mt_OrdersStatusesIM") * @Serializer\XmlNamespace(uri="urn:4lapy.ru:BITRIX_2_ERP:DataExchange", pre...
true
928defd7aaf2e89ca6d5f79714abf8ab430ef4b5
PHP
francois2sap/gac_eval_final
/gac_eval/connect_db.php
UTF-8
2,039
2.78125
3
[]
no_license
<?php try { $db = new PDO('mysql:host=mysql57;dbname=francois', 'root', 'secret'); } catch(Exception $e) { die('Erreur : '.$e->getMessage()); } if ($db->query("TRUNCATE `appels`") === FALSE){ echo("Truncate NOT OK.\n"); } $row = 1; $mapping = [ 'sms'=> ['SMS'] ]; if (($handle = fopen('tickets_appels_201202.cs...
true
34452c0c52de3095e9dff9538d31cb0079d40e61
PHP
OphelieBD/badgeuse
/SQL.php
UTF-8
3,378
3.171875
3
[]
no_license
<?php include_once "config.php"; //on inclue le fichier contenant les paramètres de connexion global $BDD_host; //défini dans config.php global $BDD_base; //défini dans config.php global $BDD_user; //défini dans config.php global $BDD_password; //défini dans config.php $bdd = new PDO("mysql:host=".$B...
true
50f7ad2dd125aef9de9795c9279ed7602e7edb61
PHP
darki73/laravel-openapi
/src/Attributes/Request/Request.php
UTF-8
861
2.921875
3
[]
no_license
<?php namespace FreedomCore\OpenAPI\Attributes\Request; use Attribute; /** * Class Request * @package FreedomCore\OpenAPI\Attributes\Request */ #[Attribute(Attribute::TARGET_METHOD)] class Request { /** * Method name * @var string */ public string $method; /** * Method description...
true
5aa624be77ffec7c732f8ae9bc3fbe4ad33a79da
PHP
bpolack/TradeC-EW-BP
/apache/htdocs/setsell.php
UTF-8
5,529
2.734375
3
[ "MIT" ]
permissive
<?php //Start user session. session_start(); include 'reconnect.php'; //Session Variables. $_SESSION["transNum"] += 1; //Address of the transaction server. $addr = gethostbyname($_SESSION["selectedServer"]); //Create a TCP/IP socket. $client = stream_socket_client("tcp://$addr:44422", $errno, $errorMessage,...
true
286c606cc1bd6d6a9b2792570d0b0fc20210c0f1
PHP
norambuywana/property-cms
/api-check-if-user-exists.php
UTF-8
976
3.21875
3
[]
no_license
<?php // We extract the email from the get and save it in a variable $sNewUserEmail = $_GET['email']; // Save the pathe to the file $sFileName = "data-users.txt"; // Get the file content as a string $sajUsers = file_get_contents( $sFileName ); // Decode the string to an array of json $ajUsers = json_decode( ...
true
f1787dc2ec8ef1b0d07fd7395eb33f23d2b60156
PHP
angelobiscola/investments
/app/Application/Web/Investment/Http/Controllers/Client/RepresentativeController.php
UTF-8
1,788
2.515625
3
[]
no_license
<?php namespace App\Application\Web\Investment\Http\Controllers\Client; use App\Application\Web\Investment\Http\Controllers\BaseController; use App\Domains\Client\Client; use Illuminate\Http\Request; class RepresentativeController extends BaseController { protected $client; public function __construct(Client...
true
c318784c46f63a603e75cc69be41e08f7939658f
PHP
malef/xsolve-model-factory-bundle
/Tests/Functional/Mock/Model/BazModel.php
UTF-8
953
2.546875
3
[ "MIT" ]
permissive
<?php namespace Xsolve\ModelFactoryBundle\Tests\Functional\Mock\Model; use Xsolve\ModelFactoryBundle\ModelFactory\ModelFactoryAwareModelInterface; use Xsolve\ModelFactoryBundle\ModelFactory\ModelFactoryAwareModelTrait; use Xsolve\ModelFactoryBundle\Tests\Functional\Mock\Object\Baz; class BazModel implements ModelFac...
true
a3f4bb49744f37fe1d92f9982e37b595e084b740
PHP
juancamilov06/imagen-y-belleza
/web/admin-hub/v1.1/application/models/UsersModel.php
UTF-8
3,698
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class UsersModel extends CI_Model{ function __construct(){ parent::__construct(); } public function getSellerByOrder($orderId){ $object = new stdClass(); $object->data = array(); $getQuery = "SEL...
true
61367420cbf4addc3a981ad4012c870541b94912
PHP
PerGrundtman/D0018E
/rate.php
UTF-8
534
2.59375
3
[]
no_license
<?php include ("admin_area/includes/db.php"); // gets the values from the URL, to identity product and its rating $product_id = (int)$_GET['article']; $rating = (int)$_GET['rating']; if(in_array($rating, [1,2,3,4,5])) { $exists = $con->query("SELECT product_id FROM products WHERE product_id={$product_id}")...
true
5f487dadea801bef5e8c400097e416cf64f34d2d
PHP
xufeiyue/hrstore
/application/admin/model/User.php
UTF-8
1,404
2.578125
3
[ "Apache-2.0" ]
permissive
<?php namespace app\admin\model; use think\Model; use think\Validate; use think\Db; class User extends Model { /** * [check 验证用户名密码是否正确] * @param string $where [条件] * @return [type] [description] */ public function check($where,$ip) { // $where['status'] = 1; //有效 $where['state'] = 0; //正常 $...
true
77d9b84c156b271677d2173f00b415f9fb41dc54
PHP
alextenche/laravelTut
/lara3/app/controllers/PostController.php
UTF-8
917
2.671875
3
[ "MIT" ]
permissive
<?php class PostController extends BaseController { public function listing(){ $posts = Post::with('user')->get(); return View::make('post.listing', compact('posts') ); } public function single($id){ $post = Post::find($id); return View::make('post.single')->with('post', $post); } public function inse...
true
0d89fb9ada9adfc4fefe6cba84a2ba9c0b0034a7
PHP
Aidar7182/site321
/functions.php
UTF-8
199
2.53125
3
[]
no_license
<?php function get_categories($link){ $sql = "SELECT * FROM categories"; $result=mysqli_query($link, $sql); $categories=mysqli_fetch_all($result, 1); return $categories; } ?>
true
204030a6f5423cd8f0afbcfa5bd63f966a27ef75
PHP
ivanmalyi/TelegramBot
/src/System/Util/Logging/LoggerReferenceTrait.php
UTF-8
1,449
2.84375
3
[]
no_license
<?php declare(strict_types=1); namespace System\Util\Logging; use Psr\Log\LoggerInterface; use Psr\Log\LogLevel; /** * Class LoggerReferenceTrait * @package Regulpay\Util\Logging */ trait LoggerReferenceTrait { /** * @var LoggerInterface */ private $logger; /** * Assigns logger *...
true
8ca3777fbfe719197c2990de81ba32689b8eebff
PHP
usef/OnlineFoodOrderingSystem
/Code/DatabaseLayer/UserQueries.php
UTF-8
4,428
2.6875
3
[]
no_license
<?php include_once 'DatabaseClass.php'; class UserQueries { protected $db; public function __construct() { $this->db = new DatabaseClass(); } public function getUser($id) { $query = "SELECT * FROM users WHERE User_ID=$id"; $result = $this->db->query($query); ...
true
f59dd7c2cbece0fc7935c9bd50439bd9b9db90e0
PHP
shubhangiraje/jugl
/components/Language.php
UTF-8
1,148
2.734375
3
[]
no_license
<?php namespace app\components; use Yii; class Language { const DEFAULT_LANGUAGE = 'de'; public static function getList() { return Yii::$app->params['languages']; } public static function getLanguage() { $data = []; if (($list = strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']))...
true
69b90afcdf15e160b5b6cf609b7be7b1e104d589
PHP
ant-hill/searcher
/src/Searcher/LoopBack/Parser/Order/Order.php
UTF-8
523
2.9375
3
[ "MIT" ]
permissive
<?php namespace Searcher\LoopBack\Parser\Order; use Searcher\StringUtils; class Order { private $direction; private $field; public function __construct($field, $direction) { $this->field = $field; $this->direction = StringUtils::toLower($direction); } /** * @return mi...
true
2f83860b67e9803fa215216d57f036ea1155f674
PHP
nelsonkopliku/sfday2018
/api/src/DataProvider/CatalogDataProvider.php
UTF-8
1,839
2.578125
3
[]
no_license
<?php declare(strict_types=1); namespace App\DataProvider; use ApiPlatform\Core\DataProvider\{ CollectionDataProviderInterface, ItemDataProviderInterface, RestrictedDataProviderInterface }; //use App\Model\Catalog; use App\Entity\Catalog; use App\Util\Traits\RepositoryAwareTrait; use Doctrine\Common\Collections\...
true
1b049491dea22cf870843fcb4941a658ba7c1f30
PHP
vladab/LinkedIn-API-client
/src/LinkedIn.php
UTF-8
19,283
2.96875
3
[ "MIT" ]
permissive
<?php namespace Happyr\LinkedIn; use Happyr\LinkedIn\Exceptions\LinkedInApiException; use Happyr\LinkedIn\Exceptions\LoginError; use Happyr\LinkedIn\Http\GuzzleRequest; use Happyr\LinkedIn\Http\RequestInterface; use Happyr\LinkedIn\Http\UrlGenerator; use Happyr\LinkedIn\Http\UrlGeneratorInterface; use Happyr\LinkedIn...
true
401a62059c850a6e6e30e78e095ee271b2190c64
PHP
miqui1995/jonas
/admin_expedientes/buscador_expedientes.php
UTF-8
17,509
2.53125
3
[]
no_license
<?php /*Aqui defino la fecha para mostrar en formato "Jueves 05 de Mayo de 2016" */ include "../include/genera_fecha.php"; /*Fecha que se realiza la transaccion (hoy)*/ $fecha_modificacion = $date; // $date es del formato "2016-05-05" require_once('../login/conexion2.php'); if(isset($_POST['desde_formula...
true
d41b1e50e20e35a0b29c2ea7be09a6300636d46c
PHP
mostafaM212/Posts-Project-backend
/tests/Unit/Auth/RegisterTest.php
UTF-8
435
2.546875
3
[ "MIT" ]
permissive
<?php namespace Tests\Unit\Auth; use Tests\TestCase; class RegisterTest extends TestCase { /** * A basic unit test example. * * @return void */ public function test_it_store_data_for_user() { $user = ['name'=>'mostafa','email'=>'123@frr','password'=>'5654']; $response ...
true
9a7c8ba7641d207f317b01c94370f638f7b03296
PHP
irvanie/SistemKarangTaruna
/katar14/admin/print2.php
UTF-8
1,697
2.515625
3
[]
no_license
<?php include "koneksi.php"; ?> <style type="text/css"> * { font-family: "Trebuchet MS"; } h1 { text-transform: uppercase; color: salmon; } table { border: solid 1px #DDEEEE; border-collapse: collapse; border-spacing: 0; width: 70%; marg...
true
502575351f10d7b90285c0cafabfc066dc350e7b
PHP
SamtelKatiuski/Confianza
/models/filesModel.php
UTF-8
3,721
2.796875
3
[]
no_license
<?php class filesModel extends Model { public function __construct() { parent::__construct(); } // Obtiene todos los datos de los archivos que ha cargado el robot en la base de datos public function getAllFilesRobot() { $sql = "SELECT * FROM archivo_organizado"; $result =...
true
feac662a7bb0487b14f12e718a743171356a94a4
PHP
jonas18121/boerbull_motors_poo
/application/Routers.php
UTF-8
34,644
2.625
3
[]
no_license
<?php declare(strict_types=1); ///////// inclure les controlleurs /////////// require_once 'controller/HomeController.php'; //HOME// require_once 'controller/car/CarController.php'; //CAR// require_once 'controller/panier/PanierController.php'; //PANIER...
true
d7b64b14e4221a8f483863054071fab404b1965c
PHP
CallMeChero/IMDB
/backend/app/Movie.php
UTF-8
815
2.578125
3
[]
no_license
<?php namespace App; use Illuminate\Database\Eloquent\Model; use App\User; use App\Genre; use App\Image; use App\Director; class Movie extends Model { protected $fillable = [ 'name', 'user_id', 'content', 'rating', 'release_year' ]; protected $with = [ 'image','actors', 'directors', 'gen...
true
198804a90e276f52de79f30e555cbbe4b3c9c73a
PHP
simeonov/rude-php
/src/php/rude-php/src/database/orm/templates/template-active-record.php
UTF-8
4,101
2.515625
3
[ "Apache-2.0" ]
permissive
namespace %PHP_NAMESPACE%\tables; use %PHP_NAMESPACE%; if (!defined('RUDE_DATABASE_TABLE_%PHP_TABLE_NAME_UPPERCASE%')) { define('RUDE_DATABASE_TABLE_%PHP_TABLE_NAME_UPPERCASE%', '%MYSQL_TABLE_NAME%');%ALIGN% } if (!defined('RUDE_DATABASE_TABLE_%PHP_TABLE_NAME_UPPERCASE%_PRIMARY_KEY')) { defi...
true
d2d00f41fddcfcfe5138d0a35581936a2207d388
PHP
DoryanF/Correction
/src/Controller/sign_up_controller.php
UTF-8
1,444
2.765625
3
[]
no_license
<?php session_start(); use dao\UserDao; use model\User; include "../../vendor/autoload.php"; if (isset($_SESSION["user"])) { header("Location: display_article_controler.php"); exit; } if (empty($_POST)) { include "../View/sign_up.php"; }else{ $args =[ "pseudo"=>[ "filter"=>FILTE...
true
2a81bd7bf1991eb7a6d1cdc672663ede278e4f49
PHP
ensismoebius/aulas-php-nivel-01
/04-biblioteca/lib/bancoDeDados.php
UTF-8
703
2.890625
3
[]
no_license
<?php $resultado = null; $conexao = null; function conectar(): bool { global $conexao; // Data Source Name - nome da fonte de dados $dsn = "mysql:host=127.0.0.1;dbname=xodo"; try { // PHP Data Object - Objeto de Informações do PHP $conexao = new PDO ( $dsn, "teste", "1234" ); return true; } catch ( Excepti...
true
cbbcd61497baf4b4ad8f53d3b29e14d110d9d9c3
PHP
ngmautri/nhungttk
/vendor/ZF2/library/Zend/Mail/Protocol/Smtp/Auth/Crammd5.php
UTF-8
3,563
2.8125
3
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ n...
true
e1cd923b124831d66a4d5a39489ca9052be3114c
PHP
sacoza/Programacion
/PHP/Act7-3/indapanden.php
UTF-8
657
2.875
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <a href="../Act7/index.php">INDEX</a> <h2>Paises Independizados</h2> <?php /** * */ $conector = new mysqli("localhost", "root", "", "world"); if ($conector-> connect_errno) { echo "Fallo al conectar a MySQL: " ....
true
a502b870654ba61e3edd4a21c3f729c84d7d496a
PHP
juanchistosomk/base
/app/Controllers/Dashboard.php
UTF-8
333
2.578125
3
[]
no_license
<?php namespace App\Controllers; class Dashboard extends Controller { /** * Verify if user is logged. * * @return auth */ public function __construct() { $this->middleware('Auth'); } /** * Show home page. * * @return view */ public function index() { return view('dashboard/inde...
true
673fe9d11a288dce62cfc190563f38c5754e0655
PHP
dnafactory/module-data-seeder
/Asset/EmailTemplateDiscover.php
UTF-8
1,124
2.671875
3
[]
no_license
<?php namespace DNAFactory\DataSeeder\Asset; use Magento\Framework\App\ResourceConnection; class EmailTemplateDiscover { /** * @var ResourceConnection */ protected $connection; public function __construct ( ResourceConnection $connection ) { $this->connection = $con...
true
172f460b702a69dd3267b058d91e59604b11ea01
PHP
M-Developer1995/PHP-Snippet
/php_snippet_ELzero/logical_operator.php
UTF-8
420
3.421875
3
[]
no_license
<?php /* Logical Operators [ and ] Condition1 and condition2 and condition3 [ && ] Condition1 and condition2 and condition3 [ xor ] One condition is true but not all [ or ] One condition is true or all [ || ] One condition is true or all [ ! ] Not */ $age = 30; $skillYears = 5; ...
true
3b42cbf936ff587a6093e1a4706cfa2c0d8e33ee
PHP
scottjpearson/pluginCore
/Libraries/Role.php
UTF-8
2,259
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: mcguffk * Date: 1/15/2015 * Time: 12:47 PM */ namespace Plugin; include_once("Project.php"); include_once( "UserRights.php" ); use \Exception; # Class for looking up and editing a single role on a project class Role { # Columns public $lock_record; public $lock_record...
true
ac1e23470de7c5228b9c6c8b33702cd8e97b7060
PHP
Pixtr/SiMTo
/dev/core/classes/class.simto.ErrorCatcher.php
UTF-8
2,994
2.625
3
[]
no_license
<?php //Page restriction if(!PR) die('Restricted area! You cannot load this page directly.'); class simtoErrorCatcherCore implements simtoICore { //Stored instance of class object protected static $inst; //Path to folder with stored error logs protected $errorlog_folder = ''; //Prefix for errorlog files CON...
true
a502cdd755a2df7d4de1eb680fb18e12443a3892
PHP
vaishnavi232/Wildcat-Web-App--ArcGIS-API
/Kill-Count.php
UTF-8
432
2.75
3
[]
no_license
<?php $servername = ""; $username = ""; $password = ""; $dbname=""; $conn=new mysqli($servername,$username,$password,$dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } $sql="SELECT COUNT(*) As num FROM Killings"; $result=mysqli_query($conn,$sql); if(mysqli_num_rows($result...
true
97f5e5a31ea5553b936a45d13e78eef0f7c27785
PHP
lwitaszczyk/html
/src/Html/Script.php
UTF-8
1,521
3.171875
3
[ "MIT" ]
permissive
<?php namespace Html; class Script extends Tag { /** * @var bool */ private $inline; /** * @var string */ private $type; /** * @var string */ private $src; /** * @param string $src * @param string $type */ public function __construct($src...
true
53afa6e3135e4b99bda6fd86d437710cf0462a33
PHP
phpcainiao/shoptp50
/application/common.php
UTF-8
1,387
2.625
3
[ "Apache-2.0" ]
permissive
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved. // +-------------------------------------------------...
true
ea6d6b3bc39267e7787fb2a3133d9043d1676138
PHP
heimseiten/contao-component-style-manager
/src/Resources/contao/models/StyleManagerArchiveModel.php
UTF-8
2,165
2.515625
3
[ "MIT" ]
permissive
<?php /* * This file is part of ContaoComponentStyleManager. * * (c) https://www.oveleon.de/ */ namespace Oveleon\ContaoComponentStyleManager; /** * Reads and writes fields from style manager categories * * @property integer $id * @property integer $tstamp * @property string $title * @property string $ide...
true
d658e49d28a18009da3b1107cba8a4efd1807b9e
PHP
kabeermsn/doctrine
/src/Entities/Author.php
UTF-8
1,281
2.765625
3
[]
no_license
<?php namespace Test\Orm\Doctrine\Entities; use Doctrine\ORM\Mapping\Entity; use Doctrine\ORM\Mapping\Table; /** * @Entity * @Table(name="author") */ class Author { /** * @Id * @GeneratedValue * @Column(type="smallint") */ private $id; /** * @Column(type="string") */ ...
true
3663b85c7453ca979269512f764412f8124cb00e
PHP
adonaa/FormCode1
/src/LunarMoon72/FormCode1/Main.php
UTF-8
1,288
2.890625
3
[]
no_license
<?php namespace LunarMoon72\FormCode1; use pocketmine\plugin\PluginBase; use pocketmine\Player; use pocketmine\Server; use pocketmine\command\Command; use pocketmine\command\CommandSender; use pocketmine\event\Listener; class Main extends PluginBase implements Listener{ public function onEnabled(){ $this->g...
true
5b8afca73b3f33c73004ba9975960d9ac61e8028
PHP
Amal-AK/gestion-des-smartphones
/app/restitution.php
UTF-8
2,246
2.625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * @property int $id_rest * @property int $id_motif * @property int $id_etat * @property int $id_act * @property int $id_smart * @property string $date_rest * @property int $immo * @property Etat $etat * @property Acteur $acteur * @property Sm...
true
adaa9188ef70753aa398e1e959ca377616dd1d16
PHP
mineralos/bm-backend
/Controller/UserController.php
UTF-8
4,789
2.71875
3
[]
no_license
<?php use DragonMint\Service\CgminerService; use Firebase\JWT\JWT; class UserController { private $users=null; /* * Parse the users configuration file into the property users, * if the file doesn't exists the file is created with the predefined * username and password */ public funct...
true
5ab1b7d0edc77834e3aafe7edb846584615e460c
PHP
cfaure/redstats
/app/ICollector.php
UTF-8
79
2.578125
3
[ "MIT" ]
permissive
<?php namespace App; interface ICollector { public function getValue(); }
true
65b2cf53e85a59f8ba9081a753bf9220a2b79fad
PHP
Thoronir42/paf
/extensions/SeStep/NetteAuditTrail/src/Components/FeedControl/AuditTrailFeedControl.php
UTF-8
1,730
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace SeStep\NetteAuditTrail\Components\FeedControl; use SeStep\NetteAuditTrail\Entity\Entry; use PAF\Modules\CommonModule\Latte\UserFilter; use SeStep\NetteFeed\Components\FeedControl\FeedEntryControl; use SeStep\NetteFeed\FeedEvents; class AuditTrailFeedControl extends FeedEntryC...
true
1e98cc3d913f1b2f4b1c02388d0836fc34eaa930
PHP
cmhc/amber
/testcase/Url.php
UTF-8
523
2.703125
3
[]
no_license
<?php /** * 测试url */ require_once __DIR__ . '/load.php'; use amber\modules\Util\Url; class UrlTest extends PHPUnit_Framework_TestCase { /** * 测试转换成绝对url * @return */ public function testToAbs() { $abs = Url::toAbs('a.php', 'http://www.imhuchao.com'); $this->assertEquals('ht...
true
f464c1194d4aaa7a7b27d0eaaa33372a6f9d1602
PHP
CorentinDeblock/PhpBecode
/assets/php/tableau/exercice4.php
UTF-8
152
3.1875
3
[]
no_license
<?php $arr = array("Alex", "Max", "Dominique", "Claude", "Leslie", "Charlie", "Lou"); for($i = 0; $i < count($arr);$i++){ echo $arr[$i]."<br>"; } ?>
true
3d0e1aaa6cf4c82e729d130bf04c01dc5701667f
PHP
Jeftha1/portfolio-jeftha
/app/Http/Controllers/SignupController.php
UTF-8
705
2.59375
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\User; use Illuminate\Support\Facades\Hash; class SignupController extends Controller { public function index(){ return view('signup'); } public function signup(Request $req){ $valid = $req->validate([ ...
true
2aebef8ffaac8f1682677f6becb760657f0b3876
PHP
thinkphps/FruitMall_Server
/app/Lib/Model/CustomModel.class.php
UTF-8
5,713
2.609375
3
[]
no_license
<?php /** * fruit_custom 表模型 * * @author Zonkee * @version 1.0.0 * @since 1.0.0 */ class CustomModel extends Model { /** * 获取定制列表(API) * * @param int $user_id * 用户ID * @param int $offset * 偏移量 * @param int $pagesize * 条数 * @return...
true
4ba2237da5fe8102aee4fa5083d07a632d24f2eb
PHP
sabaz120/asgardcms-ibanners
/Entities/Banner.php
UTF-8
2,907
2.5625
3
[]
no_license
<?php namespace Modules\Ibanners\Entities; use Illuminate\Database\Eloquent\Model; use Modules\Bcrud\Support\Traits\CrudTrait; use Modules\Ibanners\Entities\Feature; use Laracasts\Presenter\PresentableTrait; use Modules\Ibanners\Presenters\BannerPresenter; class Banner extends Model { use CrudTrait, Presentable...
true
10b27f0c3c26b3803e20dd279e1840959000a145
PHP
KristofferRisa/WEB1000-Exam
/vedlikehold/php/Rute.php
UTF-8
6,272
2.765625
3
[]
no_license
<?php class Rute { // OPPRETTE NY RUTE public function Rute() { } public function NewRute($fraDestId, $tilDestid, $sesongId, $navn) { include (realpath(dirname(__FILE__)).'/db.php');; $logg->Ny('Fors...
true
55b48d2f7f72df635bf7e37c8fe001b65352cbdc
PHP
uc-intellekt/php-10
/src/PostController.php
UTF-8
701
2.640625
3
[]
no_license
<?php class PostController { public function indexAction(\Silex\Application $app) { /** @var \Doctrine\DBAL\Connection $conn */ $conn = $app['db']; $posts = $conn->fetchAll("SELECT * FROM posts"); // print_r($posts); return 'My blog'; } public function showAct...
true
a530a69b4254506365e65632e1e5d0fb571b3dea
PHP
yakrsa/football
/iVanvicms/Lib/Model/VoteModel.class.php
UTF-8
652
2.53125
3
[]
no_license
<?php class VoteModel extends Model{ protected $_validate =array( array('vtitle','require','标题不能为空',1), array('keyword','require','关键词必须填写',1), array('time','require','投票起始时间必须填写',1), ); protected $_auto = array ( array('createtime','time',self::MODEL_INSERT,'function'), array('updatetime','time',self::...
true
0c4040894b3de2167666b3c62c8c8611337d389a
PHP
haizilin/sitework-zf2-refactoring
/module/Orm/src/Orm/Model/PropelOrm/Category.php
UTF-8
1,118
2.53125
3
[]
no_license
<?php namespace Orm\Model\PropelOrm; use Orm\Model\PropelOrm\om\BaseCategory; use Orm\Model\PropelOrm\om\BaseCategoryQuery; use Orm\Model\PropelOrm\om\BaseCategoryDetailQuery; use Orm\Model\PropelOrm\om\BaseServiceQuery; use Orm\Model\PropelOrm\om\BaseService; /** * Skeleton subclass for representing a row from th...
true
4ae22a2822a44b970795195f091750f7b98742d2
PHP
ppelgrims/belgian-holidays
/tests/BelgianHolidays/SchoolHolidays/AutumnHolidaysTest.php
UTF-8
1,026
2.71875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace Tests\BelgianHolidays\SchoolHolidays; use Carbon\CarbonPeriod; use Tests\BaseTest; final class AutumnHolidaysTest extends BaseTest { /** * @test * @dataProvider dates * @param CarbonPeriod $period */ public function isAutumnHolidays($period) { $year = $period-...
true
9a408847d36a52330acaf23659d26276ccb83102
PHP
stojankukrika/A2ZCMS
/app/controllers/admin/AdminGalleryImageController.php
UTF-8
1,989
2.640625
3
[ "MIT" ]
permissive
<?php class AdminGalleryImageController extends AdminController { /** * Comment Model * @var Comment */ protected $gallery_image; /** * Inject the models. * @param Comment $comment */ public function __construct(GalleryImage $gallery_image) { parent::__construct(); $this -> gallery_image = $galle...
true
e780152d091356586b4a02c9a5372c215945a6e6
PHP
mappyx/skeleton-web-php
/System/Contracts/ResponseInterface.php
UTF-8
1,170
3.140625
3
[]
no_license
<?php namespace System\Contracts; interface ResponseInterface { /** * Establece el código de estado HTTP de la respuesta. * * @param int $status_code * @return void */ public function setStatusCode(int $status_code): void; /** * Establece el encabezado HTTP especifi...
true
7cb3f4da0c74d4c2efe8809a8c1096e7579d73be
PHP
minorbread/Verification
/form.php
UTF-8
903
2.546875
3
[]
no_license
<?php session_start(); if (isset($_POST['submit'])) { if ($_SESSION['userAuth'] == @$_POST['userAuth']) { echo "验证成功"; // echo "<script>alert('true');</script>"; } else { echo "验证失败"; // echo "<script>alert('false');</script>"; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta c...
true
321bb83f0cb5f9013f4465d1296d76f564cc7bdf
PHP
denisdimitrovbg/softUni
/Polymorphism, Interfaces and Abstraction/Wild Farm Hierarchy/Tiger.php
UTF-8
1,235
3.53125
4
[]
no_license
<?php class Tiger extends Felime { /** * @var */ private $sound; /** * Tiger constructor. * @param string $name * @param string $type * @param float $weight * @param string $livingRegion */ public function __construct(string $name, string $type...
true
e0f3ddfadbdf542624c0743a91b0d20d390ba9e2
PHP
rubenjmm/carRental
/classes/tipoveiculo.php
UTF-8
2,524
2.9375
3
[]
no_license
<?php require_once "classes/ligabd.php"; class TipoVeiculo { public $id; public $categoria; public $preco; public $npassageiros; public $nbagagens; public $foto; public function __construct($id = null, $categoria = null, $preco = null, $npassageiros = null, $nbagagens = null, $foto = n...
true
77e6ef594efb1afbebdc3fcfbd6a0cf4c7fa9949
PHP
Bobur1999/php-course
/takrorlash/raqamyigindi.php
UTF-8
122
3.3125
3
[]
no_license
<?php $b=0; $s=0; for($i=10;$i<100;$i++){ $a=$i%10; $b=$b+$a; $d=floor($i/10); $s=$s+$d; } echo $b+$s; ?>
true
50fd0f0dc98111a6224c1764ff6d96fda72448a9
PHP
inunosinsi/soycms
/cms/soyshop/webapp/src/module/plugins/common_analytics/template/newcustomer.php
UTF-8
6,536
2.875
3
[]
no_license
<?php class Analytics_NewcustomerPage extends Analytics_CommonPage{ private $orderDao; //全注文を取得する private $results; function build_print(){ $this->orderDao = SOY2DAOFactory::create("order.SOYShop_OrderDAO"); //共通部分の表示 $this->buildCommon(); $start = AnalyticsPluginUtil::convertT...
true
070a0fd4d2ad516541f34f63248bf36c70f72f03
PHP
defektrain/yii2-phones-shop
/common/helpers/TreeHelper.php
UTF-8
1,796
2.9375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace common\helpers; /** * Class TreeHelper * @package common\helpers */ class TreeHelper { /** * @param $models * @param int $parentId * @param int $level * @return array */ public static function makeTree($models, $parentId = 0, $level = 0) { if (!$parentId...
true
920285a1d566613b7f161683996ae76b05157743
PHP
rpangz/hris2_new
/scheduled_task/__scheduler/indextest.php
UTF-8
4,774
2.546875
3
[]
no_license
<?php session_start(); error_reporting(0); include "../koneksi/koneksi.php"; //require 'terbilang.php'; $query ="SELECT * FROM tbl_scheduler WHERE scheduler_id =2"; $sql = mysql_query($query); $total = mysql_num_rows($sql); //$data = mysql_fetch_array($sql); while ($data = mysql_fetch_array($sql)){ $time_...
true
7f0224d54dc6b5adcaf72f828ab149e7d84ec326
PHP
slince/China
/src/Command/ShowHolidayCommand.php
UTF-8
3,001
2.53125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /* * This file is part of the slince/china package. * * (c) Slince <taosikai@yeah.net> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace China\Command; use China\Holiday\HolidayInterface; ...
true
2fa89779b43d9ef59d2df6d5719ef712d6e501eb
PHP
TechKingsUG/panel
/app/Http/Controllers/Api/Remote/Backups/BackupRemoteUploadController.php
UTF-8
3,804
2.53125
3
[ "MIT", "Apache-2.0" ]
permissive
<?php namespace Pterodactyl\Http\Controllers\Api\Remote\Backups; use Carbon\CarbonImmutable; use Illuminate\Http\Request; use Pterodactyl\Models\Backup; use Illuminate\Http\JsonResponse; use League\Flysystem\AwsS3v3\AwsS3Adapter; use Pterodactyl\Http\Controllers\Controller; use Pterodactyl\Extensions\Backups\BackupMa...
true
adbf4eb1187f2e9a11abae099d46def850a32f89
PHP
felipedmz/Agile-Deploy-Tool
/compiler.php
UTF-8
756
2.53125
3
[]
no_license
<?php /** * @author Felipe Maziero <flpmaziero@gmail.com> * @copyright 2015 Felipe Maziero */ try { $srcRoot = __DIR__ . "/src"; $buildRoot = __DIR__ . "/build"; $phar = new Phar($buildRoot . "/agile.phar", FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::KEY_AS_FILENAME, "myapp.phar"); if ...
true
e447c251e3d4de6437ca8177bf7f87cdfe228677
PHP
joedixon/laravel-translation
/src/Drivers/Database.php
UTF-8
7,668
2.640625
3
[ "MIT" ]
permissive
<?php namespace JoeDixon\Translation\Drivers; use Illuminate\Support\Collection; use JoeDixon\Translation\Exceptions\LanguageExistsException; use JoeDixon\Translation\Language; use JoeDixon\Translation\Translation as TranslationModel; use Throwable; class Database extends Translation implements DriverInterface { ...
true
4967d86dc958a9ef6211f05fe26072b7f9ceaaf0
PHP
Anuragsingh9/PHP-Induction
/Task/login.php
UTF-8
1,910
2.59375
3
[]
no_license
<?php include 'db.php'; if(isset($_POST['submit'])){ $email=$_POST['email']; $pass=$_POST['pswd']; $select="SELECT * FROM `login` WHERE `email`='$email' AND `password`='$pass'"; $sql=mysqli_query($conn,$select); $row=mysqli_num_rows($sql); if($row <1) { if(empty($_POST['name'])){ ...
true
e028d0749c6070c6f594c62f3acdc43e8a1282e8
PHP
btran12/Movie-Database-Website
/onconnect_api.php
UTF-8
1,614
3.015625
3
[]
no_license
<?php //Variables are in parent's files $json = file_get_contents($base_url."startDate=".$query_date."&zip=".$zipcode."&radius=".$radius."&api_key=".$ONCONNECT_KEY); $json = json_decode($json); $current_hour = date("H"); //Get the current hour $current_date = date("Y-m-d"); foreach($json as $obj){ ...
true
cee4f774956e16f47ff21168e5a3dd7f5c0b64e2
PHP
johnhomelan/core-filesystem
/src/Filesystem.php
UTF-8
594
2.921875
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php namespace HomeLan\Core\Filesystem; use Symfony\Component\Filesystem\Exception\FileNotFoundException; class Filesystem extends \Symfony\Component\Filesystem\Filesystem { /** * Gets the connents of a given file * * @param string $sFileName * @return string */ public function getContents(string $sFil...
true
522c28700d79d4575093186c3d1e5ea71f336b7e
PHP
mirikgeroy/mirikPhpMaster
/if.php
UTF-8
632
3.078125
3
[]
no_license
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>first php page</title> </head> <body> <?php $a = 1; $b = 1; $c=7; $d=7; $cat="juli"; $dog="hart"; if ($a==$b and...
true
e2516a47168a8a6f435e9e6df552ec0516f51f68
PHP
dinhtrung/yii-code
/protected/extensions/yiiext/components/chm/EChmHhcFile.php
UTF-8
2,059
2.640625
3
[]
no_license
<?php /** * EChmHhcFile class file. * * @author Veaceslav Medvedev <slavcopost@gmail.com> * @link http://code.google.com/p/yiiext/ * @license http://www.opensource.org/licenses/mit-license.php */ /** * EChmHhcFile. * * @author Veaceslav Medvedev <slavcopost@gmail.com> * @version 0.1 * @package yiiext.compon...
true
7439d9023ce4e7199aa4c416463d4cae60b8b35f
PHP
Phantom-Hex/Overclocked-Fitness
/inc/contact.php
UTF-8
1,913
3.109375
3
[]
no_license
<?php // define variables and set to empty values $nameErr = $emailErr = ""; $name = $email = $comment = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { if (empty($_POST["name"])) { $nameErr = "Name is required"; } else { $name = test_input($_POST["name"]); // check if name only contains letters and wh...
true
dab0a6cdaef0046f280c63ef03957c59c388eae1
PHP
manuel-gutierrez/AmadeusForBot-php
/templates/book-a-flight.php
UTF-8
6,386
2.703125
3
[]
no_license
<?php // Register classes require_once __DIR__ . '/../src/classes.php'; /* Search a return flight / This code search for a return flight in amadeus / and return a fb card with a link to the booking site. */ /** * */ class Book { public $message; // var to store results public $lang = "en...
true
f80b51d41a3b38ab48d43c834b18af675c16f39d
PHP
Biplob45/inv_project
/public_html/includes/user.php
UTF-8
293
2.96875
3
[]
no_license
<?php /** * User Class for account creation and login purpose. */ class User { private $con; function __construct() { include_once("../database/db.php"); $db = new Database(); $this->con = $db->connect(); if ($this->con) { echo "Connected"; } } } $obj = new User(); ?>
true
2ad2f0cbaf5132098bdc972387a09c1735f75da8
PHP
itcornerabd/phpevejan2017
/lib2.php
UTF-8
218
2.796875
3
[]
no_license
<?php $amount = 100.54; echo "<br>" . ceil($amount); echo "<br>" . floor($amount); echo "<br>" . round($amount); echo "<br>"; date_default_timezone_set("Asia/Kolkata"); echo date('Y-m-d h:i:s A '); ?>
true
6e60202fa25c36ec2cf87e517417276510bd1bd4
PHP
mabalderramav/PHP-Gestionar-Venta
/modelos/Negocio/Cliente.php
UTF-8
2,973
3.25
3
[]
no_license
<?php require_once 'modelos/AccesoDatos/aDatos.php'; /** * Creación de la clase persona */ class Cliente { #Atributos private $aDatos; private $idCliente; private $nombre; private $direccion; #Propiedades public function setIdCliente($id...
true
6a0b361fb4c12f1ce7ddbd6d76ea372b1977c833
PHP
Aquilent/drug-adverse-event-browser
/src/main/php/tests/ApiKeyTest.php
UTF-8
1,164
2.671875
3
[ "MIT" ]
permissive
<?php use App\FDAClient; use Carbon\Carbon; class ApiKeyTest extends TestCase { public function setUp() { parent::setUp(); $this->apiKey = env('OPENFDA_API_KEY'); } public function tearDown() { putenv('OPENFDA_API_KEY=' . $this->apiKey); parent::tearDown(); } /** * Tests that when no key is s...
true
b8783a11900bb898557f4d210bfde5c0df51c68e
PHP
nysenate/Bluebird-CRM
/civicrm/scripts/purgeOldData.php
UTF-8
3,975
2.59375
3
[]
no_license
<?php // Project: BluebirdCRM // Authors: Brian Shaughnessy // Organization: New York State Senate // Date: 2014-02-07 // ./purgeOldData.php -S skelos --dryrun --date 20140101 error_reporting(E_ERROR | E_PARSE | E_WARNING); set_time_limit(0); class CRM_purgeOldData { function run() { global $_SERVER; re...
true
c8f27911fa4e7d9796d2cb89e76eba8dc0a5d8f6
PHP
lucasnpinheiro/orm
/test/RocketGears/ORMTest.php
UTF-8
7,801
2.515625
3
[]
no_license
<?php use RocketGears\ORM; class NoTableNameSet extends RocketGears\ORM { } class NonStringTableNameSet extends RocketGears\ORM { protected $orm_table = array(); } class EmptyTableNameSet extends RocketGears\ORM { protected $orm_table = ''; } class User extends RocketGears\ORM { ...
true
fd91532dc6990880435113db2b98d7cf12de6d74
PHP
hiphp7/dsc
/app/Api/Fourth/Controllers/TopicController.php
UTF-8
1,689
2.609375
3
[]
no_license
<?php namespace App\Api\Fourth\Controllers; use App\Api\Foundation\Controllers\Controller; use App\Services\Activity\TopicService; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\Validation\ValidationException; /** * Class TopicController * @package App\Api\Fourth\Controllers */ clas...
true
614157d5c95ef5fa4e4626d854a89f72094eeefa
PHP
seyuf/magento-actions-sample
/magento/setup/src/Magento/Setup/Model/Complex/Generator.php
UTF-8
2,436
2.828125
3
[ "OSL-3.0", "LicenseRef-scancode-unknown-license-reference", "AFL-2.1", "AFL-3.0", "MIT" ]
permissive
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Setup\Model\Complex; use Magento\ImportExport\Model\Import\AbstractSource; /** * Class Generator * * */ class Generator extends AbstractSource { /** * Data row pattern * * ...
true
ae99725eae76593f04921449921dbfdce800b6be
PHP
johnpatrix/adminDashboard
/controller/curdlogin.inc.php
UTF-8
845
2.6875
3
[]
no_license
<?php class crudLogin extends connection_db{ protected function getUserData($username,$password) { //$stmt = $this->connectDB()->prepare("select user_id,user_name,user_password,user_type from user_credentials where user_name= ? AND user_password= ?"); try{ $stmt = $this->connectDB()->prepare('select *...
true
1c9aff29dffd1b075c92101ba7e13190929d265c
PHP
AmirMustafa/oops_experiments_100_percent_practical
/index15.php
UTF-8
360
3.5
4
[ "MIT" ]
permissive
<?php // inheritance - even more class Parent1 { public $prop1 = 'I am from parent class'; } class Child1 extends Parent1 { public $propChild = 'I am from child class'; } class GrandChild1 extends Child1 { public $propChild = 'I am from child class'; } // instantiate $object = new GrandChild1(); // var_d...
true
73494d2d54a0e88b25183ab85ec6c6eba6f7c392
PHP
khoazero123/fgc_codeigniter
/application/helpers/functions_helper.php
UTF-8
1,786
2.671875
3
[ "MIT" ]
permissive
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); function formatPrice($priceFloat) { $symbol = ''; $symbol_thousand = '.'; $decimal_place = 0; $price = number_format($priceFloat, $decimal_place, '', $symbol_thousand); return $price.$symbol; } function formatPriceArr($array, $co...
true
725577fdf9e231b6b90dd0e0976f32d41ccf9d18
PHP
gustavoneto/curso-php-7
/secao-4/foreach/23-foreach01.php
UTF-8
644
3.9375
4
[]
no_license
<?php $meses = array ( "Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro" ); // Utilizando FOR: /* for ($i = 0; $i <= 11; $i++) { $mes = $meses[$i]; echo $mes ."<br/>"; } */ // Utilizando FOREACH: foreach ($meses as $...
true
47f5dc02396ac621ffb46966239efa5af26f3362
PHP
foxydot/timberridge
/assets/plugins/msd-specialty-pages/msd-specialty-pages.php
UTF-8
6,505
2.515625
3
[]
no_license
<?php /* Plugin Name: MSD Specialty Pages Description: Framework to create specialty templated pages with custom backends. Currently supports two types of LayerCake design structures. Author: MSDLAB Version: 0.2.6 Author URI: http://msdlab.com */ if(!class_exists('GitHubPluginUpdater')){ require_once (plugin_dir_p...
true
9f130da0db38c22653ddf0026f271e8574149a00
PHP
CL-GaneshL/taskflow
/database/seeds/ProjectsTableSeeder.php
UTF-8
4,568
2.640625
3
[]
no_license
<?php use Illuminate\Database\Seeder; class ProjectsTableSeeder extends Seeder { public function run() { // right now $now = mktime(0, 0, 0); // --------------------------------------------- // project 1 // --------------------------------------------- // project...
true