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
2a30d40cdf71abd6645bd0dbc9e5cbbf3c44d8fc
PHP
mrcatman/staroetv
/app/Console/Commands/importArticles.php
UTF-8
4,028
2.65625
3
[]
no_license
<?php namespace App\Console\Commands; use App\Article; use App\Helpers\CSVHelper; use App\UserAward; use App\UserReputation; use Carbon\Carbon; use Illuminate\Console\Command; class importArticles extends Command { /** * The name and signature of the console command. * * @var string */ pr...
true
07319957ef731f22cab6fbe4131815fadc2c78a9
PHP
henryfw/algo
/mcdowell/php/ch1-02.php
UTF-8
485
3.390625
3
[]
no_license
<?php function reverseString($text) { if ($text === null) return ""; if (!is_string($text)) { throw new Exception("input is not a string"); } $length = strlen($text); for ($i = 0, $j = floor($length/2); $i < $j; $i ++) { $tmp = $text{$i}; $text{$i} = $text{$length - $i};...
true
f7d1e577d62e1a5a0ec4c7f6bf182fe0cf51868d
PHP
albatronic/tienda
/entities/methods/Cupones.class.php
UTF-8
2,070
2.6875
3
[]
no_license
<?php /** * @author Sergio Perez <sergio.perez@albatronic.com> * @copyright INFORMATICA ALBATRONIC SL * @date 12.04.2014 18:24:51 */ /** * @orm:Entity(ErpCupones) */ class Cupones extends CuponesEntity { protected $_mensajeCupon; public function __toString() { return ($this->Cupon) ? $this->Cu...
true
0236318f9f82bcffce6cf7ab85793cfadb1805ca
PHP
tomsaunders/pyrite
/resources/build/builder.php
UTF-8
20,238
2.78125
3
[]
no_license
<?php namespace Pyrite\Build; class Builder { protected $dir; protected $out; protected $classStart; protected $classEnd; protected $constStart; protected $constEnd; protected $lengthLookup = []; protected $platform = ''; protected $classes = []; protected $enums = []; // properties related to the curren...
true
63f0301c3b53610b933534489686791736922e1e
PHP
beutnagel/MDU-Opgavebank
/Php/Get_Post_example/handle_form.php
UTF-8
712
3.03125
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Processing the form data</title> <link rel="stylesheet" type="text/css" href="css/reset.css"> <link rel="stylesheet" type="text/css" href="css/style.css"> </head> <body> <h1>Processing the form data</h1> <?php sleep(3); if(empty($_POST)) { ?> <h2>The GET method was u...
true
424140565044e59b5c5eabf36f55284e709b7e2a
PHP
cortext/risis-linkage
/lib/DLM.php
UTF-8
2,039
3.25
3
[ "MIT" ]
permissive
<?php /** * Manage the global operations for the Dataset Linkage Module * * @author Philippe Breucker * @version 1 - 2017-11 */ require "Linker.php"; require "Matcher.php"; require "Importer.php"; class DLM{ public $matcher; public $linker; public $dataSource; private $matches; private $db;...
true
f4a99390768bac6f0dc5ff8d8c26abc7402fa65e
PHP
dominikszostak95/cms-php
/app/models/Company.php
UTF-8
2,219
2.65625
3
[]
no_license
<?php namespace App\Models; use App\Core\App; class Company { private $name; private $address; private $city; private $nip; private $country; private $email; private $trader; private $processing; private $ads; public function __construct($name, $address, $city, $nip, $country...
true
5db08984d460cda1576ca51fc1c45161bfdbb371
PHP
vincebru/siteTechnoWeb
/action/Login.php
UTF-8
1,167
2.796875
3
[]
no_license
<?php class Login extends Action{ function __construct($data){ parent::__construct($data); $this->viewClass="MainView"; } public function execute() { $loginMessage=""; if (isset($_POST["login"]) && $_POST["login"]!=""){ $login=$_POST["...
true
b0f08f50d2c63df221a33dc674994cd088ea1ee3
PHP
chaixiaoqiang1/myPHP
/MyProjects/xs_larvar/app/filters.php
UTF-8
8,395
2.625
3
[]
no_license
<?php /* |-------------------------------------------------------------------------- | Application & Route Filters |-------------------------------------------------------------------------- | | Below you will find the "before" and "after" events for the application | which may be used to do any work before or after a...
true
60b10c9d6491e105047eef6a9370db13129e3bb1
PHP
cesarafonseca/hoost-azura-cast
/src/Dto/StationServiceControl.php
UTF-8
1,981
2.953125
3
[ "Apache-2.0" ]
permissive
<?php declare(strict_types=1); namespace AzuraCast\Api\Dto; class StationServiceControl { /** * @var bool */ protected $success; /** * @var string */ protected $message; /** * @var string */ protected $formattedMessage; /** * @param bool $success ...
true
4ce6f8cf34eafe7760b6fd0775ae40b6d1c287d0
PHP
judpeterson/kerkbanner
/news.php
UTF-8
4,752
2.640625
3
[]
no_license
<?php if(!isset($_SESSION)){ session_start(); } $servername = "localhost"; $username = "cold"; $password = "Qrp98w!!"; $dbname = "mydata"; $conn = new mysqli($servername, $username, $password, $dbname); if($conn->connect_error){ die("Connection failed: " . $conn->connect_error); } $sql = "S...
true
e38d2789de397a3f709c04b9aac24f153f876753
PHP
Cerdic/spip-zone-plugins
/medias_logos/action/iconifier_document.php
UTF-8
3,788
2.609375
3
[]
no_license
<?php /** * Action : définir un document comme logo d'un objet. * * @plugin Logos Médias * @copyright 2014 * @author Charles Razack * @licence GPL * @package SPIP\Logos Médias\Action */ // Sécurité if (!defined("_ECRIRE_INC_VERSION")) return; /** * Définir une image liée à un objet comme logo ...
true
e1d3361f32d35f265f7e3e338f2aa16812ecefbc
PHP
terence-meunier/bookdev
/app/Http/Controllers/ProductController.php
UTF-8
481
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Product; class ProductController extends Controller { public function show(Product $product) { $title = $product->title . '- Bookdev'; $title = $product->title . ' - Bookdev'; $description = 'La catégor...
true
fc34af893f6697a5a804143f26457963039d5ceb
PHP
pavlenko/symfony-bundle-oauth2-client
/Model/SocialAccountInterface.php
UTF-8
1,027
2.703125
3
[]
no_license
<?php namespace PE\Bundle\OAuth2ClientBundle\Model; interface SocialAccountInterface { /** * @return string */ public function getID(); /** * @param string $id * @return self */ public function setID($id); /** * @return string */ public function getSocialID...
true
437d2bc31bbdf33b16359e252df505879bb84340
PHP
jontorrado/kreta
/src/Kreta/Component/User/Model/User.php
UTF-8
2,758
2.59375
3
[ "MIT" ]
permissive
<?php /* * This file is part of the Kreta package. * * (c) Beñat Espiña <benatespina@gmail.com> * (c) Gorka Laucirica <gorka.lauzirika@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Kreta\Component\User\Mod...
true
2a9daac212602ef96637ade08723e05deb02c0e6
PHP
ivanomanca/iSalento
/iSalento/Library/Isp/Inc/Objects/Tea.php
UTF-8
668
2.59375
3
[]
no_license
<?php if(!class_exists("Isp_Db_Beaner_TblObject")){ require_once($_SERVER['DOCUMENT_ROOT']."/Library/Isp/Db/Beaner/TblObject.php"); } /** * Classe Tea */ class Tea extends Isp_Db_Beaner_TblObject { public $ntt = "Tea"; // interni public $id_tea; public $lingua_sigla_tea; public $id_articolo; public $titolo_te...
true
5bf6beb87ef04ba0235580127b7c94fffc08eebe
PHP
Dexedrine/myteammate
/MyTeamMate/src/MTM/SportBundle/Entity/Place.php
UTF-8
950
2.546875
3
[ "MIT" ]
permissive
<?php namespace MTM\SportBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * Place * * @ORM\Table(name="place") * @ORM\Entity */ class Place { /** * @var integer * * @ORM\Column(type="integer", nullable=false) * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $i...
true
8813a2176151c135fdbe6e0813466214b2a3c7af
PHP
ggrachdev/content_manager_laravel
/Management/CMS/CMS.php
UTF-8
2,730
2.578125
3
[]
no_license
<?php namespace Management\CMS; use Management\CMS\Contract\CmsInterface; use Illuminate\Http\Request; use Management\Builder\MenuBuilder; use Management\DataProvider\CMSDataProvider; use Management\Builder\EditorEntitiesBuilder; use Management\Builder\ListEntitiesBuilder; /** * Description of CMS * * @author ggr...
true
b7566ee55a1a919b8c3354f4bb954d512979c27a
PHP
SomethingDorky/thing
/include/main.inc.php
UTF-8
3,084
2.515625
3
[]
no_license
<?php $greeting = showDorks('get_name'); $favThings = showThings('favs'); $nonfavThings = showThings('non_favs'); $getThing = getThing(); $getFav = getFav(); $welcome = "Here are some things you might like.<br>"; $welcome .= "Click on the heart icon to add them to your Favorites."; $favsTitle = "Favorite Things"; $tra...
true
b875c65cdf70dba367ca2f084c59c7aa06429fd6
PHP
electric-eloquence/fepper-drupal
/backend/drupal/core/modules/layout_builder/src/TempStoreIdentifierInterface.php
UTF-8
448
2.578125
3
[ "GPL-2.0-only", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-other-copyleft", "GPL-2.0-or-later", "MIT" ]
permissive
<?php namespace Drupal\layout_builder; /** * Provides an interface that allows an object to provide its own tempstore key. * * @todo Move to \Drupal\Core\TempStore in https://www.drupal.org/node/3026957. */ interface TempStoreIdentifierInterface { /** * Gets a string suitable for use as a tempstore key. ...
true
802e3e5be18604bfa59eefa30a0c40868fc7b9ad
PHP
face-orm/face
/lib/Face/Exception/FaceElementDoesntExistsException.php
UTF-8
1,380
3.171875
3
[ "MIT" ]
permissive
<?php namespace Face\Exception; use Face\Util\StringUtils; use Face\Core\EntityFace; /** * FaceNameDoesntExistsException * * @author bobito */ class FaceElementDoesntExistsException extends FaceDoesntExistsException { function __construct($name,EntityFace $face) { $names = $this->debugGetRelated...
true
2c08d15454283ab0a5796d90437ea42101260836
PHP
SamuelJimenezCampillo/EjerciciosPhp
/Tema3/resultado2.php
UTF-8
302
2.828125
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> </head> <body> <?php $hora=$_GET['num1']; if(($hora>6) && ($hora<12)){ echo "buenos días"; }else if(($hora>12) && ($hora<21)){ echo "buenas tardes"; }else{ echo "buenas noches"; } ?> </body>
true
7c1f8cf7671d0f0ebcc5efa06863fa5ae4b295cc
PHP
innowise/workapp
/controllers/ServicesController.php
UTF-8
42,983
2.765625
3
[]
no_license
<?php /** * Class Workapp_ServicesController */ class Workapp_ServicesController extends Pimcore_Controller_Action { /** * Called before actually calling any action of controller * In fact we can execute some methods and checks that are used by any action */ public function postDispatch() ...
true
fe0c2b32d558190a04d0c44f02aa3fc547fd9dbe
PHP
wmr049/laravelapi
/app/Http/Controllers/UserController.php
UTF-8
1,341
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Http\Requests; use App\Http\Controllers\Controller; use App\User; use App\Services\Interfaces\IUserService; use Illuminate\Http\Request; class UserController extends Controller { protected $iUserService; public function __construct(IUserService $iUserService) { ...
true
bd81446bb733e93d433f9c3f097429665257c248
PHP
dawmaj/rsofiles
/addpost.php
UTF-8
3,320
2.65625
3
[]
no_license
<?PHP require_once('functions.php'); $host = gethostname(); require_once "{$host}settings.php"; $user=session_check(); if (!isset($user['id'])) { header("location: index.php"); exit; } use PhpAmqpLib\Connection\AMQPStreamConnection; use PhpAmqpLib\Message\AMQPMessage; //erro...
true
246cceb8917ec1560038c548de3ef5192eccfa15
PHP
xavortm/temporary
/dx-deploytime/dx-deploytime.php
UTF-8
2,977
2.890625
3
[]
no_license
<?php /* * Plugin Name: Deploy Date * Description: Display when was the last update on the server files. It checks for wp-content folder only. Refresh rate is 20 minutes, because otherways it takes too much time to check all files. * Version: 1.0.0 * Stable tag: 1.0.0 * Author: DevriX * Author URI: http://www.dev...
true
a86e9d0d066006f0cc23f050e12479daa7a73a84
PHP
chyzhyk16/test-task
/test-task/src/App.php
UTF-8
2,396
2.796875
3
[]
no_license
<?php namespace App; use App\Controllers\ControllerFactory; use Exception; use ReflectionMethod; use RuntimeException; class App { public $requestUri = []; public $requestParams = []; private $method; public function __construct() { if (trim($_SERVER['REQUEST_URI']) != "/") { ...
true
10fdab48193a4d24d2c87083ece6bc01136ee05c
PHP
diegolopez1797/Inventario
/Model/Proyecto.php
UTF-8
2,156
3.109375
3
[]
no_license
<?php /** * */ class Proyecto { private $Id; private $Descripcion; function __construct($Id, $Descripcion) { $this->setId($Id); $this->setDescripcion($Descripcion); } public function getId(){ return $this->Id; } public function setId($Id){ $this->Id = $Id; } public function getDescripcion()...
true
1088fb70a85af68eca3155f6fce02ceb59e7b539
PHP
CrazyRocks/Pari
/Pari/vendor/src/Models/PayBank.php
UTF-8
1,880
2.828125
3
[ "Unlicense" ]
permissive
<?php namespace Pari\Models; class PayBank extends \Phalcon\Mvc\Model { /** * * @var integer */ public $bank_id; /** * * @var string */ public $title; /** * * @var string */ public $name; /** * * @var string */ public $short...
true
d6ec2b00cb47b080dd5c5da2d979674e9d8ec900
PHP
D3lmaschio/learning_composer
/functions.php
UTF-8
109
2.859375
3
[]
no_license
<?php function method_1(): void { echo "Method 1"; } function method_2(): void { echo "Method 2"; }
true
a78559727e8806e86f92c01f2acbe7f701c1c983
PHP
minhduong240895/vietnet24h
/private/app/Http/Requests/CategoriesRequest.php
UTF-8
1,502
2.8125
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class CategoriesRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get...
true
f9d0aa260f81b834242124f4fdf137751cf919ef
PHP
Yaja6/Appatucasa
/database/seeds/StoresTableSeeder.php
UTF-8
1,001
2.90625
3
[ "MIT" ]
permissive
<?php use App\Store; use Illuminate\Database\Seeder; class StoresTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { //VACIAR TABLA Store::truncate(); $faker = \Faker\Factory::create(); // Obtenemos la ...
true
8484221fd1e53ab492ac0631fe5b7aa56e2e877a
PHP
MinhVuong1997/fashionshoes
/Backend/Models/UsersModel.php
UTF-8
1,688
2.796875
3
[]
no_license
<?php class UsersModel{ public function modelRead($recordPerPage){ $total = $this->modelTotal(); $numPage = ceil($total/$recordPerPage); $page = isset($_GET["p"]) && $_GET["p"] > 0 ? $_GET["p"]-1 : 0; $from = $page * $recordPerPage; $conn = Connection::getInstance(); $query = $conn->query("select * from u...
true
632c7539d4d86c4d21e96ffd23546be82938a7ba
PHP
zary-sutherland/My-Framework
/framework/UserSingleton.php
UTF-8
607
2.9375
3
[]
no_license
<?php namespace FRAMEWORKNS; class UserSingleton { protected static $props = array(); protected static $instance; private function __construct() {} private function __clone() {} public static function getSingletonInstance() { if(Registry::get('user') == null){ self::$instance = new UserSingl...
true
42e3cac30024e162bfba7b1ec9ba036ef06439d7
PHP
tejal-ganvir/eventus-codeigniter
/app/modules/siteadmin/models/master_model.php
UTF-8
14,509
2.53125
3
[]
no_license
<?php class master_model extends CI_Model { public function __construct() { parent::__construct(); $this->load->library('session'); $this->load->database(); $this->load->helper(array('form', 'url')); $this->load->library('form_validation'); $this->load->library('session'); $functionName = $this->router-...
true
69a1f99006d0365e037331c2497cdc881e1e6e4e
PHP
dnaber-de/Git-Automated-Mirror
/test/Asset/DirectoryNavigator.php
UTF-8
675
2.671875
3
[]
no_license
<?php # -*- coding: utf-8 -*- namespace GitAutomatedMirror\Test\Asset; use GitAutomatedMirror\Test; class DirectoryNavigator { /** * @type string */ private $baseDir; public function __construct() { $this->baseDir = dirname( dirname( # /test __DIR__ # /Assets ) ); } /** * @return string...
true
d00e045e9eeb1bc64ed046b726d17a0e9e1d4a6c
PHP
soufianebenyaala/adminmvcframework
/app/models/gestioncommande.php
UTF-8
298
2.671875
3
[]
no_license
<?php class gestioncommande { private $db; public function __construct() { $this->db = new Database; } public function afficheDataCommande(){ //Prepared statement $this->db->query('SELECT * FROM commande'); $res=$this->db->resultSet(); return $res; } }
true
61f22657bc5c23febbb748b15c112eb84156f064
PHP
ArmandAnton/PPE_3
/inc/DAO/class.DAO_Motif.php
UTF-8
3,075
2.953125
3
[]
no_license
<?php error_reporting(E_ALL); include_once('dao.php'); class DAO_Motif extends DAO { /* * Fonction find de motif */ public function find_motif($id_motif) { $connexion = get_connexion(); $sql = "SELECT * FROM motif WHERE id_motif =:id_motif"; try { $sth = $connexion->prepare($s...
true
777a7bff82f26cb9f68ba1ae171dcc1abe02d6ab
PHP
SimonRenblad/1w1c-challenge
/10_PHP/formsubmit.php
UTF-8
381
2.8125
3
[]
no_license
<!DOCTYPE html> <html> <body> Name: <?php echo $_POST["name"];?> E-mail: <?php echo $_POST["e-mail"];?> Minor: <?php $age = $_POST["age"]; if($age > 17) { echo "NO"; } elseif ($age > 0) { echo "YES"; } else { echo "I...
true
08b30fbdeb8f139e019fe2efeaa8ac3d7dac0678
PHP
mambax7/happy_linux
/class/KmlBuild.php
UTF-8
7,339
2.515625
3
[]
no_license
<?php namespace XoopsModules\Happylinux; // $Id: build_kml.php,v 1.1 2008/02/26 15:35:42 ohwada Exp $ //========================================================= // Happy Linux Framework Module // this file include 4 classes // KmlDocumentObject // KmlFolderObject // KmlPlacemarksObject // happylinux_build_k...
true
62856cef51a761be9082b7b036469ee9cb45372a
PHP
lordride/projectWIN
/projeto_db/index.php
UTF-8
783
2.6875
3
[]
no_license
<?php include "conexao.inc.php"; echo "oi"; //CRUD /* $query = "INSERT INTO CLIENTE (NOME,DOCUMENTO,DATA_NASCIMENTO,EMAIL) VALUES ('Edir','07262435698','1990/05/21','lordride@gmail.com')"; $result = mysqli_query($link,$query); if (!$result) { die('Invalid query: '); }else{ echo "success"; } */ /* $quer...
true
54da170da0d8bf279b30b3a62b57eb42d7e1967c
PHP
laravel-code/crud
/tests/fixtures/2020_02_25_201300_users.php
UTF-8
872
2.53125
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class Users extends Migration { /** * Run the migrations. * * @return void */ public function up() { // $table->bigIncrements('id'); // $ta...
true
60f9f4d498d565806b01990d64ea89f9d49ef622
PHP
devhood/erp-base
/module/Security/src/Security/Entity/Tblbrands.php
UTF-8
1,673
2.625
3
[]
no_license
<?php namespace Security\Entity; use Doctrine\ORM\Mapping as ORM; /** * Tblbrands * * @ORM\Table(name="tblBrands", uniqueConstraints={@ORM\UniqueConstraint(name="strBrandName_UNIQUE", columns={"strBrandName"})}) * @ORM\Entity */ class Tblbrands { /** * @var integer * * @ORM\Column(name="intBr...
true
62a27d0cf8099a1b7b0845ab5073e7e7d6020771
PHP
pemudakoding/sibuk
/inc/function/function_compress.php
UTF-8
1,104
2.9375
3
[]
no_license
<?php function compressImage($sumberGambar,$destinasi) { /** * GET IMAGE INFORMATION */ $informasiGambar['propertyGambar'] = getImageSize($sumberGambar); $informasiGambar['ukuran'] = filesize($sumberGambar); /** * CHECK IMAGE MIME ...
true
393de0a227ef2bcd5601c667f2e64968ac251958
PHP
mdlutz24/realpagepanda
/src/PickList/StructType/GetPickListResponse.php
UTF-8
1,572
2.640625
3
[ "MIT" ]
permissive
<?php namespace mdlutz24\realpagepanda\PickList\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for GetPickListResponse StructType * @subpackage Structs */ class GetPickListResponse extends AbstractStructBase { /** * The GetPickListResult * Meta information extract...
true
5b2ac2158690d61c4d717e945ad0b0b38f11f844
PHP
PUGX/badge-poser
/src/Badge/Model/UseCase/CreateLicenseBadge.php
UTF-8
1,492
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /* * This file is part of the badge-poser package. * * (c) PUGX <http://pugx.github.io/> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace App\Badge\Model\UseCase; use App\Badge\Model\Badge; use App\Badge\Model\Cac...
true
04991f6d2a4dcbe9218969f7184daeb43d671e09
PHP
Parsenal/test
/seeremarks.php
UTF-8
2,998
2.578125
3
[]
no_license
<?php include('session.php'); if($_SERVER["REQUEST_METHOD"] == "POST") { // username and password sent from form $rutorid = mysqli_real_escape_string($db,$_POST['utorid']); $assignment = mysqli_real_escape_string($db,$_POST['markChange']); $newmark = mysqli_real_escape_string($db,$_POST['ne...
true
51d7ba21dfec124d8ec84e76ded518b77bee4751
PHP
adoy/php-src
/ext/intl/tests/timezone_getDisplayName_variant1.phpt
UTF-8
542
2.5625
3
[ "PHP-3.01", "IJG", "Zlib", "OLDAP-2.8", "BSD-4-Clause-UC", "ISC", "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-public-domain", "TCL", "BSD-2-Clause", "GD" ]
permissive
--TEST-- IntlTimeZone::getDisplayName(): daylight parameter effect --EXTENSIONS-- intl --FILE-- <?php ini_set("intl.error_level", E_WARNING); ini_set("error_reporting", -1); ini_set("display_errors", 1); $lsb = IntlTimeZone::createTimeZone('Europe/Lisbon'); ini_set('intl.default_locale', 'en_US'); var_dump($lsb->getD...
true
366d1ad78d1c609967104315b2627552e4f4e114
PHP
husnadueraming/repair
/date.php
UTF-8
2,990
2.796875
3
[]
no_license
<?php /*วันที่*/ function changeDatee($date){ $y = date('Y')+543; $date = date_default_timezone_set('asia/bangkok'); $date = date('d-m-'); $h = date("H:i"); $yearMounth = $date.$y." ".$h; return $year...
true
e0e0df0dd9986c8487de7b70a50b1d4a768b8b76
PHP
arturmyhajlyuk/HomeTasks
/arrays_loops_tasks/20.php
UTF-8
205
2.828125
3
[]
no_license
<?php for ($i=1; $i<=20; $i++) { for ($j = 1; $i >= $j; $j++) { echo "#"; } echo '<br>'.PHP_EOL; } /** * Created by PhpStorm. * User: Артур * Date: 17.01.2017 * Time: 21:48 */
true
6de45071c9387fa038e587d64926b12faf14f6cb
PHP
ManashJBofficial/covid19tracker
/rough/p.php
UTF-8
4,165
2.765625
3
[ "MIT" ]
permissive
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Prediction</title> </head> <body> <h1>Prediction of Confirm cases</h1> <h3>India Confirmed</h3> <?php $data = file_get_contents('https://api....
true
92116fb88165e7c469847225f7f6810e0667e880
PHP
MusharibIqbal/PHP
/PHPProduct/productdetails.php
UTF-8
663
2.734375
3
[]
no_license
<?php include_once ("navigation.html"); require_once("config.php"); echo "Product Details:"; echo "<br>"; $sid = $_GET['id']; $connection = mysqli_connect(DBHOST, DBUSER, DBPASSWORD , DBNAME); if(mysqli_connect_error()) { die(mysqli_connect_error()); } else { echo "Connected Successfully!<br>"; } $sql = ...
true
c09ba6629a3ee384b21877004d9251bf146d0fec
PHP
MarionCrp/Projet
/controller/send_message_controller.php
UTF-8
621
2.59375
3
[]
no_license
<?php /* TRAITEMENT DU MESSAGE A ENVOYE (si il possède bien un contenu) */ if(isset($_POST['envoie'])){ if (!empty($_POST['content'])) { $content = htmlspecialchars($_POST['content']); $current_user_id = (int) htmlspecialchars($_POST['current_user_id']); $recipient_id = (int) htmlspecialchars($_POST['recipient...
true
84d3cebd2b23b9aa5ab5a6a393298ff9399be840
PHP
jhena005/vlabsdevelopment
/vlabsversion_bkups/module_shoppingcart/server/transactions.php
UTF-8
6,756
2.8125
3
[]
no_license
<?php require_once('db/db.php'); require_once ('ws/webserviceconfig.php'); /* * * * Saves the items in an order with $orderid in the QuotaSystem database. * To do this it calls addCredits with transaction type "PURCHASED QITH NO PAYMENT" * */ function saveTransaction($orderid, $payment) { //Get order from data...
true
b21c1a83e92d01cfa5a02b8d85c967d33f01197b
PHP
licheng1133/lc
/lc/filezilla/fz.php
UTF-8
3,124
3.15625
3
[]
no_license
<?php // 连接FTP服务器 $conn = ftp_connect(www.example.com); // 使用username和password登录 ftp_login($conn, "username", "password"); // 获取远端系统类型 ftp_systype($conn); // 列示文件 $filelist = ftp_nlist($conn, "."); // 下载文件 ftp_get($conn, "data.zip", "data.zip", FTP_BINARY); // 关闭联接 ftp_quit($conn); //初结...
true
b0c194baaa814f481e4007da6e8322b58525662c
PHP
LogiSpark/LeaveManager
/admin/action.php
UTF-8
3,104
2.6875
3
[]
no_license
<?php /* The required file sot complete the process are included */ require_once('../libs/phpmailer/class.phpmailer.php'); require_once("../libs/phpmailer/class.smtp.php"); require ("../libs/phpmailer/PHPMailerAutoload.php"); include '../functions.php'; if(!checkLogin()){ // check if user is logged in, if n...
true
fbe3c281af862215d940a90645d58c503933a661
PHP
tgouverneur/SPXOps
/app/libs/nfs.obj.php
UTF-8
3,869
2.734375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * NFS object * * @author Gouverneur Thomas <tgo@espix.net> * @copyright Copyright (c) 2007-2012, Gouverneur Thomas * @version 1.0 * @package objects * @category classes * @subpackage backend * @filesource * @license https://raw.githubusercontent.com/tgouverneur/SPXOps/master/LICENSE.md Revised BSD L...
true
06e39c89e74bcf62d56b7af8f38994b7a4ad3f64
PHP
emonkak/php-random
/src/Engine/XorShift128Engine.php
UTF-8
1,691
3
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Emonkak\Random\Engine; class XorShift128Engine extends AbstractEngine { const X = 123456789; const Y = 362436069; const Z = 521288629; const W = 88675123; /** * @var int */ private $x; /** * @var int */ private $y; /*...
true
0a9991333a14d7f5ee5c66084fefc259155a3ab5
PHP
sousadgaspar/promoplus_free
/promoplusnew/app/Http/Controllers/CompanyController.php
UTF-8
1,377
2.65625
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Company; use App\SenderID; class CompanyController extends Controller { public function __construct () { //$this->middleware('auth'); } public function index () { return view ('admin.company.create'); } public fun...
true
25b89dcbef050cb58302082a787f6cfb6006f65c
PHP
flux-eco/source-downloader
/src/Core/Application/DownloadHandlers/DownloadTarGzHandler.php
UTF-8
1,272
2.5625
3
[]
no_license
<?php namespace FluxEco\SourceDownloader\Core\Application\DownloadHandlers; use FluxEco\SourceDownloader\Core\{Domain\Models, Ports}; class DownloadTarGzHandler { private Ports\ShellExecutor\ShellExecutorClient $shellExecutorClient; private Process $process; private function __construct(Ports\ShellExecu...
true
b257ee39ee33cf8825219563f6475f60b3b1cb5b
PHP
gv-israel/laravprueba
/app/Http/Controllers/ControladorUsuario.php
UTF-8
3,168
2.703125
3
[]
no_license
<?php namespace PruebaHotel\Http\Controllers; use Illuminate\Http\Request; use Session; use Redirect; //NECESARIO PARA OBTENER EL ID USUARIO DE SESION use Illuminate\Support\Facades\Auth; class ControladorUsuario extends Controller { public function __construct(){ $this->middleware('Panel', ['only' => ['...
true
aaa8a44c24ee152e4519799f9323539a1e89eebf
PHP
Hemant-Jain-Author/Data-Structures-and-Algorithms-using-PHP
/Sorting/BubbleSort.php
UTF-8
1,061
3.453125
3
[]
no_license
<?php Function less($valuel, $value2) { return ($valuel < $value2); } Function more($valuel, $value2) { return ($valuel > $value2); } Function BubbleSort(&$arr) { $size = count ( $arr ); $i = null; $j = null; $temp = null; For($i = 0; $i < ($size - 1); ++ $i) { For($j = 0; $j < (($size - $i) - 1);...
true
3bf0ddf0d6ca9b70182f2993db9baa0fcfd2ccc9
PHP
niels-nijens/accompli
/src/Console/Helper/TitleBlock.php
UTF-8
2,679
2.890625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php namespace Accompli\Console\Helper; use Accompli\Console\Application; use Symfony\Component\Console\Helper\Helper; use Symfony\Component\Console\Output\OutputInterface; /** * TitleBlock. * * @author Niels Nijens <nijens.niels@gmail.com> */ class TitleBlock extends Title { /** * @var string */ ...
true
d742506e1721f6fcc60254238cae238f6e9fd625
PHP
v700a/work_v700a
/devionity_011016/6.php
UTF-8
1,153
3.1875
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <?php function analog_print_r (array $a, $d) { global $p; if ($p !== 1): echo 'Array ( '; $p = 1; endif; if ($d !== 0): $b = each($a); echo "[{$b ['ke...
true
8a6e94ac04b32087664f97dd77cef5a36215d185
PHP
DominikaDlugowolska/EE18-ar3
/php-ovningar/kap3/uppgift-3-5-svar.php
UTF-8
790
2.625
3
[]
no_license
<!DOCTYPE html> <html lang="sv"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title></title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="container"> <?php // Ta emot data från formuläret $belopp = ...
true
893ee6dc8e4e11a4e2d6d4b334fa2fb515a11bf4
PHP
WordPress/wordpress.org
/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-page-limiter.php
UTF-8
2,257
2.828125
3
[]
no_license
<?php /** * Plugin Name: Limit Logged out users to 49 Pages. See https://meta.trac.wordpress.org/ticket/4068 */ class WPORG_Page_Limiter { // Bots are blocked for Pages 50+ const MAX_PAGES = 49; function __construct() { add_action( 'init', [ $this, 'init' ] ); } public function init() { // Don't apply thi...
true
2eab97cb8f01db05404c613bc7563dfc9bb4dab7
PHP
famoser/archive
/mindbodyonline-api-php-wrapper/src/AppointmentService/AddOrUpdateAppointmentsResponse.php
UTF-8
1,046
2.734375
3
[ "MIT" ]
permissive
<?php namespace Famoser\MBOApiWrapper\AppointmentService; class AddOrUpdateAppointmentsResponse { /** * @var AddOrUpdateAppointmentsResult $AddOrUpdateAppointmentsResult */ protected $AddOrUpdateAppointmentsResult = null; /** * @param AddOrUpdateAppointmentsResult $AddOrUpdateAppointments...
true
b4caea26d5883c363577e2ecd8677087b64515a5
PHP
zhangjiquan1/phpsourcecode
/eemcmc/qeephp3/packages/qeephp/cache/Apc.php
UTF-8
1,112
2.875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace qeephp\cache; /** * Apc 提供进程内缓存服务 */ class Apc implements ICache { function get($key) { $success = false; $value = apc_fetch($key, $success); if ($success) return $value; return false; } function get_multi(array $keys) { $values = array();...
true
9999a0b32423690740f90f4fec45df8218aa1003
PHP
wufaliang0415/sublime-php-connector
/sublime_php_command/Core/autoload.php
UTF-8
770
2.53125
3
[ "MIT" ]
permissive
<?php function __autoload($class) { $baseDir = dirname(dirname(__FILE__)); $parts = explode('\\', $class); if($parts[0]=='Chigi' && $parts[1]=='Sublime'){ // Chigi core classes --> /Core array_shift($parts); array_shift($parts); require_once($baseDir . '/Core/' . implode('/',$parts) . '.php' ); }else{ //...
true
eb9f6c4205fa124bdde71bd049829cbebce94991
PHP
kajes/linkify
/resources/blocks/components/singlePost.php
UTF-8
750
2.5625
3
[ "MIT" ]
permissive
<?php // Get post based on GET request $postID = (int) $_GET['postID']; $singlePost->execute([ ':parent' => $postID, ':postID' => $postID, ]); $post = $singlePost->fetch(PDO::FETCH_ASSOC); // Get the users avatar url if ($post['avatarID'] !== null) { $avatar = $post['avatarID'].'.'.$post['...
true
1fdeeaf761cb9abc495ce45ac0e0668fcd04f98f
PHP
DenisTsenov/TrainingManager
/app/Http/Requests/Auth/TeamRequest.php
UTF-8
1,954
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests\Auth; use App\Models\Admin\Role; use App\Models\User; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rule; class TeamRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ p...
true
8fde09f0c0beaf6e98d0341d327ae8167afaa68f
PHP
tectronics/geas
/Construccion/workspace/protected/data/UsuarioRecord.php
UTF-8
510
2.515625
3
[]
no_license
<?php class UsuarioRecord extends TActiveRecord { const TABLE="usuarios"; public $rol; public $cod_usuario; public $nombre; public $contrasena; public static $RELATIONS=array ( 'Rol' => array(self::BELONGS_TO, 'RolRecord', 'rol'), 'activos' => array(self::HAS_MANY, 'ActivoRecord', 'usuario_c...
true
3779386f25e122b8f3a973c30ddf5d527961aab9
PHP
ispomazkin/code_examples
/modules/claim_crosses/providers/ClaimCrossesDataProvider.php
UTF-8
1,804
2.734375
3
[]
no_license
<?php namespace backend\modules\claim_crosses\providers; use yii\db\Connection; /** * Класс для операций с БД всего, что связано с жалобами на аналог */ class ClaimCrossesDataProvider implements ClaimCrossesDataProviderInterface { const APPROVED = 1; const DECLINED = 0; /** * @var Connection ...
true
ee7706dcdca0f98dc8436a2e65d6706245a558a5
PHP
lwetzel900/program-3
/user/userProfile.php
UTF-8
1,247
2.5625
3
[]
no_license
<?php include '../view/header.php'; ?> <?php if(!isset($_SESSION)){ header("Location: ."); }?> <main> <br> <p>Welcome <?php echo htmlspecialchars("$fName $lName") ?></p> <br> <input type="hidden" name="action" value="userProfile"> <?PHP if (empty($allTogether)) : ?> <p>You haven't picked...
true
54de8c9b600dd7c179d357bb82569984ded5cf08
PHP
LabSis/secure-pocs
/shell_inversa/index.php
UTF-8
566
2.890625
3
[]
no_license
<?php ini_set("display_errors", 1); error_reporting(0); $ip_maquina = filter_input(INPUT_POST, "ip_maquina"); if (isset($ip_maquina)) { $cadena = shell_exec("ping -c 4 " . $ip_maquina); } ?> <html> <head> <title>Shell inversa</title> </head> <body> <form method="P...
true
16760c84b33a28dac4a98de96ef79b6535d0c699
PHP
liverbool/dos-user-bundle
/Confirmation/Exception/InvalidTokenResendTimeException.php
UTF-8
805
2.546875
3
[ "MIT" ]
permissive
<?php namespace DoS\UserBundle\Confirmation\Exception; class InvalidTokenResendTimeException extends ConfirmationException { protected $message = 'Invalid token resend time.'; /** * @var \DateTime */ protected $time; /** * @var string */ protected $timeAware; /** * ...
true
c69e66d6f06afd020c8896b9ef79f6c6963fe31a
PHP
nickclasener/beauty-buddy
/app/Repository/CustomersElasticsearchRepository.php
UTF-8
2,351
2.640625
3
[]
no_license
<?php namespace App\Repository; use App\Customer; use Elasticsearch\Client; use stdClass; class CustomersElasticsearchRepository implements CustomersRepository { private $search; public function __construct ( Client $client ) { $this->search = $client; } public function search ( $query = '' ) { $items = ...
true
ceb0fbb3b752c21e453f6407cceac6ee46d535be
PHP
tecshuttle/memorize_site
/photo/grab/img_resize.php
UTF-8
1,068
2.671875
3
[]
no_license
<?php function img_thumb($orig_img) { global $fold; if ( ! file_exists($fold.'/'.$orig_img) ) { //echo "$orig_img not exist! "; return false; } if (file_exists($fold.'/thumb_'.$orig_img) ) { //echo "thumb exist! "; return false; } $size = getimagesize(...
true
d0b1794b4b74dd5cc5abbb7b19b7825328bc87bc
PHP
antonioposada/hotels
/app/Repositories/ServiceRepository.php
UTF-8
740
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Entities\Services; class ServiceRepository extends BaseRepository { /** * @return Services */ public function getModel() { return new Services(); } /** * @param $hotel_id * @return \Illuminate\Support\Collection */ p...
true
9ad82700ef307ef926063e251ac4d68f272b0930
PHP
newsay/495Final
/master_project/site/test/tests/test_connection.php
UTF-8
2,427
2.6875
3
[]
no_license
<?php /** * @author Andrew Ritchie */ include_once $_SERVER['DOCUMENT_ROOT'] . "/services/sql_connection_service.php"; include_once $_SERVER['DOCUMENT_ROOT'] . "/test/helpers/populate_test_data.php"; include_once $_SERVER['DOCUMENT_ROOT'] . "/test/test_fixture.php"; include_once $_SERVER['DOCUMENT_ROOT'] . "/t...
true
4f00eb47067c5b628c8d490c85c4e042e5a6f677
PHP
emreunel/android-book_store
/php/get_book_by_category.php
UTF-8
1,855
2.515625
3
[ "MIT" ]
permissive
<?php if(getenv('REQUEST_METHOD')=='POST') { require_once 'connection.php'; $category = $_POST["category_name"]; $bookType = $_POST["book_type_name"]; $sql = "SELECT b.id, b.title, b.price, b.image, a.first_name, a.last_name, d.discount_value FROM books AS b LEFT JO...
true
f5f145e05a8472a55aa1f69e6f60d920f2d1a1d0
PHP
MickaelMatuchak/bootcamp_pictime
/tests/User/UserTest.php
UTF-8
325
2.65625
3
[]
no_license
<?php namespace Tests; use PHPUnit\Framework\TestCase; use Bootcamp\Entities\User; class UserTest extends TestCase { /** * @test */ public function expectedToString() { $user = new User('mika@gmail.com', ''); $this->assertEquals('Hello, ' . $user->getEmail(), $user->__toString(...
true
6a85b3b5222e42a0ded832b2176b2016cfa64e40
PHP
dpidan/vivid_store
/src/VividStore/Utilities/Calculator.php
UTF-8
5,313
2.640625
3
[ "MIT" ]
permissive
<?php namespace Concrete\Package\VividStore\Src\VividStore\Utilities; use Concrete\Package\VividStore\Src\VividStore\Cart\Cart as StoreCart; use Concrete\Package\VividStore\Src\VividStore\Product\Product as StoreProduct; use Concrete\Package\VividStore\Src\VividStore\Tax\Tax as StoreTax; use Concrete\Package\VividSto...
true
70fe827324a8501bcb2efbe36c786693953826a9
PHP
cdsalmons/RapidRoute
/src/Compilation/RouteTree/RouteTreeNode.php
UTF-8
2,246
2.828125
3
[ "MIT" ]
permissive
<?php namespace RapidRoute\Compilation\RouteTree; use RapidRoute\Compilation\Matchers\SegmentMatcher; use RapidRoute\RapidRouteException; /** * The base route tree node class * * @author Elliot Levin <elliotlevin@hotmail.com> */ class RouteTreeNode { /** * @var SegmentMatcher[] */ protected $ma...
true
a9cab70ee15f59fe2645890412566df691e1b627
PHP
fusebox13/schoolwork
/08/circus/performer/Performer.php
UTF-8
1,657
3.1875
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of Performer * * @author Dan */ namespace circus\performer; abstract class Performer { protected $pro...
true
ed0a5d6f979f1366f65c614b0174a564f3814b7a
PHP
yyxx9988/tdmps
/module_touchview_basic/inc/function.touchview.inc.php
UTF-8
3,373
2.75
3
[ "Apache-2.0" ]
permissive
<?php /**  * touchview函数库  * create time: 2012-3-22 下午04:45:29  * @version $Id: function.touchview.inc.php 103 2012-03-26 14:38:32Z liqt $  * @author LiQintao  */ /** * 删除文件夹(不为空也可删除) * * @param string $dir 文件夹地址 * * @return bool */ function touchview_rmdir($dir) { if (!file_exists($dir)) { ret...
true
d17438dd37bf8988a25248d01c15c099e262c18c
PHP
MelindaKotai/OnlineBookStore
/BookStore/app/Http/Controllers/CostController.php
UTF-8
2,824
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\Multiplier; use App\Version; use Carbon\Carbon; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use App\Services\VersionService; class CostController extends Controller{ protected $versionService; public function __construct(){ $this->ve...
true
44f0f079f3d2cd612352a53627674fb05724f543
PHP
awladnas/blood
/app/models/Admin_users/Admin_user.php
UTF-8
2,601
2.65625
3
[ "MIT" ]
permissive
<?php namespace LifeLi\models\Admin_users; use Illuminate\Auth\Reminders\RemindableTrait; use Illuminate\Auth\UserInterface; use Illuminate\Auth\Reminders\RemindableInterface; use Illuminate\Auth\UserTrait; class Admin_user extends \Eloquent implements UserInterface,RemindableInterface { use UserTrait, RemindableTrai...
true
b71e93bb855345626499c0cfa4109a060be62501
PHP
AndCake/snow
/test/StringTest.php
UTF-8
871
3.015625
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
<?php require_once dirname(__FILE__) . "/SnowTestsuite.php"; class StringTest extends SnowTestsuite { public function testConcat() { $this->compare(<<<CODE x = "test" + 'hallo' x = x + "test" x = "test" + x x = x % y x = 'test' + !DIRECTORY_SEPARATOR x = x + 'test' + y % !DIRECTORY_SEPARATOR CODE , '$x = "test...
true
cabebe0b2dd0c6c26558bab6823b7b36abc2cf80
PHP
akssssshith/phpprograms
/prg1.php
UTF-8
230
3.65625
4
[]
no_license
<html> <head> <title>Random</title> </head> <body> <?php echo "Number generated randomly is:"; $choice = rand(1, 100); echo $choice; echo "<br/>Its square root is:"; echo sqrt($choice); ?> </body> </html>
true
a24d5ee183658b3c123915630d0eb70158ce0ec4
PHP
alaitba/jti
/app/Mail/CommonTrait.php
UTF-8
662
2.8125
3
[]
no_license
<?php namespace App\Mail; /** * Trait CommonTrait * @package App\Mail */ trait CommonTrait { /** * @param string $field * @param string $locale * @param array $data * @return string */ private function getField(string $field, string $locale, array $data): string { return...
true
7994a5ff70e634fea54390bf5584997ff33452ef
PHP
bluebillywig/bb-sapi-php-sdk
/tests/Unit/ResponseTest.php
UTF-8
10,359
2.78125
3
[ "MIT" ]
permissive
<?php namespace BlueBillywig\Tests\Unit; use BlueBillywig\Exception\HTTPClientErrorRequestException; use BlueBillywig\Exception\HTTPRequestException; use BlueBillywig\Exception\HTTPServerErrorRequestException; use BlueBillywig\Request; use BlueBillywig\Response; use BlueBillywig\Util\HTTPStatusCodeCategory; use Guzzl...
true
5b3c90a77c99b3cdc83288feb73cd77f07d93ad6
PHP
thanhnv99/ElectroStoreShop
/MVC/Backend/controllers/LoginController.php
UTF-8
4,853
2.71875
3
[]
no_license
<?php require_once 'controllers/Controller.php'; require_once 'models/User.php'; class LoginController extends Controller{ public function signup(){ //test bien $_POST // echo "<pre>"; // print_r($_POST); // echo "</pre>"; //xu ly submit form if(isset($_POST['submit']))...
true
664b601adc04af1ccd0ebf9796e9527d4f9b1c71
PHP
mrserg161/keep-a-changelog
/src/Common/EditorProviderTrait.php
UTF-8
503
2.671875
3
[ "BSD-2-Clause" ]
permissive
<?php /** * @see https://github.com/phly/keep-a-changelog for the canonical source repository */ declare(strict_types=1); namespace Phly\KeepAChangelog\Common; /** * Provides an implementation of EditorAwareEventInterface. */ trait EditorProviderTrait { /** @var null|string */ private $editor; ...
true
62f3faf511f88eee229d53d9980175cef9ac9746
PHP
sova-sova-sova/php_form
/src/Form/Input/ImagePicker.php
UTF-8
1,912
2.859375
3
[ "MIT" ]
permissive
<?php namespace ModuleBZ\Form\Input; use ModuleBZ\Form\enum\EType; use ModuleBZ\Form\Input; class ImagePicker extends Input { /** @var string $src путь к уже ранее загруженной картинке, для отображения */ protected $src = ''; /** @var string $upload_url ссылка для загрузки нового файла */ protected ...
true
8714288faf7df71b5621e57d306d11c4096888e3
PHP
JaysonSunshine/Portfolio
/Software_Engineering/HTML_and_PHP_Website/browse_actor.php
UTF-8
1,442
2.90625
3
[]
no_license
<!DOCTYPE html> <html> <body> <?php if(!empty($_GET)){ $db_connection = mysqli_connect("localhost", "cs143", "", "CS143"); #opens connection to database if(mysqli_connect_errno()){ print "Failed to connect to database"; } else{ $query = "select * from Actor where id = $_GET[id]"; $rs = my...
true
b31f9a462f64db7339da96ca324ed13d3bc837d0
PHP
kunkers/nic_tu_nie_ma
/zadania/p08.php
WINDOWS-1250
586
2.84375
3
[]
no_license
<?php include("nagl.php"); //Wane przy pierwszym uruchomieniu if(!isset($_POST['czynn1']) && !isset($_POST['czynn2'])){ $czynn1=0; $czynn2=0; }else { $czynn1=$_POST['czynn1']; $czynn2=$_POST['czynn2']; } echo "<H2>Kalkulator</H2><p>" ?> <form action="p08.php" method="post"> <input type="text" name=...
true
15fe4496c64910723a2b0ab145a2cecac06ffdfb
PHP
dexterx17/nodoSocket
/application/models/Plataforma.php
UTF-8
3,247
2.609375
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Plataforma extends CI_Model{ /** * Devuelve todos los datos registrados de la plataforma */ public function get_all_new(){ $servername = "192.168.120.6"; $servername = "localhost"; $username = "root"; $password = "hunterhacker";...
true
088c8987b8ffc22fca4f728fd3c0adfa97058382
PHP
studiocaro/HorseStories
/app/Models/Notifications/Notification.php
UTF-8
1,500
2.671875
3
[]
no_license
<?php namespace HorseStories\Models\Notifications; use HorseStories\Models\Users\User; use Illuminate\Database\Eloquent\Model; class Notification extends Model { const STATUS_LIKED = 1; const COMMENT_POSTED = 2; const PEDIGREE_CREATED = 3; /** * @var array */ protected $fillable = ['typ...
true
15789e343baf4e0857e880e639a2a24ccb286957
PHP
farukhmussazhanov/disserparser
/class/DbConfig.php
UTF-8
1,352
2.875
3
[]
no_license
<?php /** * File: ConnectDb.php * Organization: TOO SMART APP * Author: Marlen Bissaliyev * Date: 30/05/2020 * Time: 4:11 PM */ // Singleton to connect db. class DbConfig { // Hold the class instance. private static $instance = null; private $conn; // // private $host = 'localhost'; // private ...
true