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
864a06a6fb615901a64b9a7dd8d98d0d0892de8e
PHP
clusteramaryllis/erars
/app/models/User.php
UTF-8
523
2.53125
3
[ "MIT" ]
permissive
<?php class User extends Eloquent { protected $table = 'user'; protected $primaryKey = 'no_id'; public $incrementing = false; // protected $hidden = array('pass'); public $timestamps = false; // relasi public function facility() { return $this->belongsTo('Facility', 'tmp_dinas'); } public function sc...
true
4730a55394f84d2c49572cc62cd1a45bd6947df5
PHP
aaronross1/256activities
/LaravelActivity/app/Http/Controllers/Login3Controller.php
UTF-8
1,554
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\UserModel; use Illuminate\Http\Request; use Illuminate\Support\Facades\Log; use Illuminate\Validation\ValidationException; use App\Services\Business\SecurityService; use Exception; class Login3Controller extends Controller { // index function public functi...
true
d4d362e02106f53673d01fd367ab1ee57e338ba5
PHP
CarlosR2/development_deployment_scripts
/home/user/public_html_test/install/install_db.php
UTF-8
8,406
2.515625
3
[]
no_license
<?php //error_reporting(E_ALL); ini_set('display_errors', 1); error_reporting(E_ALL ^ E_DEPRECATED); $env = ''; if(isset($argv)){ $env = $argv[1]; }else{ if(isset($_GET['env'])) $env = $_GET['env']; } if(!$env) die('no env specified'); echo 'Selected environment: '.$env.'<br>'; define('DB_HOST','localhost'); //...
true
ba6be5cabf847ccada5ade7d4d743f080d740596
PHP
EfraimKrug/Bostoner
/php/TimesAdmin.php
UTF-8
1,486
3.03125
3
[]
no_license
<?php unset($_POST['submit']); $times = $_POST; $daysArray = array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Shabbos"); $daviningArray = array("Shacharis","Mincha","Maariv","Ma'ariv"); $arr = array(); $holdDay = ""; $printDay = ""; $htmlFile = fopen("../html/DailyTimes.html", "w") or exit("DailyTimes...
true
2eb467e4eaf8ea327c6f22c4783d538aa9b5e505
PHP
raulvictorrosa/monitoramentodeafluentes-udesc
/teste2/myclasses/con-db.php
UTF-8
1,203
2.796875
3
[]
no_license
<?php // database error_reporting(E_ERROR | E_PARSE); $host = '127.0.0.1:3306'; $dbname = 'teste'; // $dbname = 'monitoramentodeafluentes'; $user = 'root'; $pass = 'root'; // get connection try { $conn = new PDO("mysql:host=$host;dbname=$dbname", $user, $pass); $conn->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRM...
true
20b89350a1144e8bde967c5c4f82e148a1b4e3a3
PHP
viosagara347/pasarapplication
/database/seeds/TabelKomoditiSeeder.php
UTF-8
2,483
2.65625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class TabelKomoditiSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // $faker = \Faker\Factory::create(); \DB::table('komoditi')->truncate(); for ($i=0; $i < 10;...
true
4823c4d1166b5af7dc4c2cbff3a18ccb21281ee0
PHP
DingWeizhe/ntutcc
/plugin/crawlerNportal/network.php
UTF-8
1,987
2.828125
3
[]
no_license
<?php class Network { var $cookies = null; var $errorTimes = 0; public function getCookies(){ return $this->cookies; } public function __construct($cookies = Array()){ $this->cookies = $cookies; } public function POST($url, $data = null){ $proxy = "tcp://42.159.145.189:1080"; $PROXY_HO...
true
07d14f9c57385804f5eda07ace9b962babe4bc3c
PHP
alanshortanjungkapal/Rapor-Digital
/application/models/dao/CbtKelasRuangDAO.class.php
UTF-8
1,470
2.78125
3
[ "MIT" ]
permissive
<?php /** * Intreface DAO * * @author: http://phpdao.com * @date: 2021-03-25 11:46 */ interface CbtKelasRuangDAO{ /** * Get Domain object by primry key * * @param String $id primary key * @Return CbtKelasRuang */ public function load($id); /** * Get all records from table */ public function qu...
true
e9fbfb11e74d4bae9330812079cd96970171c137
PHP
OleksandrGudenko/Symfony-Exam-Project
/symfonyApp/src/Entity/Question.php
UTF-8
1,756
2.65625
3
[]
no_license
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * Question * * @ORM\Table(name="Question", uniqueConstraints={@ORM\UniqueConstraint(name="id_UNIQUE", columns={"id"})}, indexes={@ORM\Index(name="question_course_id_idx", columns={"course_id"})}) * @ORM\Entity */ class Question { /** * @v...
true
e842471ff542a84f9a6553d0633005bea19a9e0b
PHP
deshi9012/workice
/Modules/Users/Emails/TellAFriend.php
UTF-8
791
2.515625
3
[ "MIT" ]
permissive
<?php namespace Modules\Users\Emails; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Illuminate\Contracts\Queue\ShouldQueue; class TellAFriend extends Mailable implements ShouldQueue { use Queueable, SerializesModels; public $friend; public $name; ...
true
4147d8ceacd15513c5d0c5417468c9fa03aeef77
PHP
GregoryAndrievskiy/219791-yeticave
/getwinner.php
UTF-8
1,519
2.671875
3
[]
no_license
<?php require_once 'init.php'; $winners = []; $noWinnerQuery = 'SELECT id FROM lot WHERE winner_id IS NULL AND expire_date < NOW()'; $lots_without_winner = select_data($con, $noWinnerQuery); $query = 'SELECT user.id AS user_id, user.name AS user_name, user.email, lot.id AS lot_id, lot.name FROM bet ...
true
34e87f84645e8fcdb634d9b99a80328458b04eb8
PHP
infohojin/php_www
/Module/Html/HtmlTable.php
UTF-8
1,201
3.296875
3
[]
no_license
<?php namespace Module\Html; class HtmlTable { function table($rows) { $body = "<table class=\"table\">"; $body .= "<thead>"; /* $body .= "<tr> <th>번호</th> <th>테이블명</th> </tr>"; */ $body .= "<tr>"; foreach ($rows[0] as $key...
true
f4f97449d5914e75b4c7dae938c501352db621d9
PHP
richhildebrand/WP2_Character_Creation_Website
/Models/MemberProfile.php
UTF-8
466
3.296875
3
[]
no_license
<?php class UserProfile { private $_lastname; private $_firstname; private $_email; public function __construct($userProfile) { $this->_lastname = $userProfile['lastname']; $this->_firstname = $userProfile['firstname']; $this->_email = $userProfile['email']; } public function GetLastName() { return ...
true
dff56ca76f3c4ec2753204eead087b92c24e2d03
PHP
ManagerTechnologyCO/admin-pacmec-pwa
/.pacmec/includes/models/Route.php
UTF-8
3,160
2.6875
3
[ "MIT" ]
permissive
<?php /** * * @author FelipheGomez <feliphegomez@gmail.com> * @package PACMEC * @category System * @copyright 2020-2021 Manager Technology CO * @license license.txt * @version Release: @package_version@ * @link http://github.com/ManagerTechnologyCO/PACMEC * @version 1.0.1 */ namespac...
true
bb0771a02250e359b48d036f031c2e5ad368c19e
PHP
voidbergwow/softmur
/plan.php
UTF-8
453
2.90625
3
[]
no_license
<?php $filename = __DIR__ . DIRECTORY_SEPARATOR . 'kill.txt'; $file = fopen($filename, 'r') or die('unable to open file'); $resa = 0; $murders = []; while (!feof($file)) { $resa++; $line = explode(';', fgets($file)); $m = []; $m['name'] = $line[0]; $m['target'] = $line[1]; $m['pla...
true
8f3c3e50fb7ec92512f0d5bfffa4e2eedb544d3f
PHP
mymymyak/simdoanhnhan
/app/Console/Commands/CheckSoldNumber.php
UTF-8
4,332
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use App\Repositories\Bangso\BangsoRepository; use App\Repositories\Domain\DomainRepository; use App\Repositories\Elastic\ElasticInterface; use App\Services\Cache\AppCache; use App\Services\SimFilter; use Illuminate\Console\Command; class CheckSoldNumber extends Command { /** ...
true
5394382d947d4bf2e1b9c2df54f96611617b8651
PHP
justinrhodes/Rhodes-Store-Git
/index.php
UTF-8
5,598
2.90625
3
[]
no_license
<?php include ("dbconnect.php"); include ("class_lib_test.php"); $producttoadd = $_POST['product']; $product_check = "SELECT * FROM product"; $order_check = "SELECT * FROM orders"; if (mysql_num_rows(mysql_query($product_check)) <= 0){ //Generate random products and build product table $products = new pro...
true
7c4a3eaa5ef0e4dd2a4e4a18cfe59fe97bd98adc
PHP
fredcido/simuweb
/application/modules/student-class/forms/RegisterSearch.php
UTF-8
3,129
2.515625
3
[]
no_license
<?php /** * * @author Frederico Estrela */ class StudentClass_Form_RegisterSearch extends App_Form_Default { const ID = 60; public function init() { $this->setAttrib( 'class', 'horizontal-form' )->setName( 'search' ); $elements = array(); $elements[] = $this->createElement( 'text', 'class_...
true
2c81fb7f9983802d82cea65e5fa6d5e225a31137
PHP
upuadhikari/mvc
/src/Core/Router.php
UTF-8
1,260
2.875
3
[]
no_license
<?php namespace App\Core; class Router extends Common { private $controller; public function process(){ $pathInfo = isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : null; // default controller for home path if(!$pathInfo){ $controllerClass = 'DefaultController'; $parsedUrl = []; }else{ $pars...
true
3c943d7152443a66537a006576938dbc365d4450
PHP
dianam05/notas_uv
/libs/notas-utility/class_admin_user.php
UTF-8
4,343
2.859375
3
[ "Apache-2.0" ]
permissive
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of class_admin_user * * @author Desarrollador1 */ class class_admin_user { private $id; private $username; private $password; private $email; private $id_profile; ...
true
5a459540fcfe8970658f80052a7c11e5909860a3
PHP
joaoinacio/LegacyBridge
/mvc/Templating/Twig/Template.php
UTF-8
2,006
2.84375
3
[]
no_license
<?php /** * File containing the Template class. * * @copyright Copyright (C) eZ Systems AS. All rights reserved. * @license For full copyright and license information view LICENSE file distributed with this source code. * @version //autogentag// */ namespace eZ\Publish\Core\MVC\Legacy\Templating\Twig; use Twig_E...
true
8ee626d76c765d83400782b95ae482c7cee7fbcb
PHP
justjohn/foundry-core
/lib/Foundry/Core/Auth/User.php
UTF-8
1,274
2.84375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Authentication service user. * * @category Foundry-Core * @package Foundry\Core\Auth * @author John Roepke <john@justjohn.us> * @copyright 2010-2011 John Roepke * @license http://phpfoundry.com/license/bsd New BSD license * @version 1.0.0 */ namespace Foundry\Core\Auth; use \Foundry\Core\...
true
468a8e98bc80280314627634433e28c815941c1c
PHP
kozennnn/tmdb-api
/src/Api/v3/Collections.php
UTF-8
1,113
2.53125
3
[]
no_license
<?php namespace Kozennnn\TmdbAPI\Api\v3; use Kozennnn\TmdbAPI\Api\Api; class Collections extends Api { /** * Get collection details by id. * * @param int $collectionId * @param array $parameters * @return array */ public function getDetails(int $collectionId, array $parameters...
true
d5c0682f1a53208654b62367b51f1244ea0ec2fa
PHP
KaterynaKostrubova/PHP-pool
/php_rush00/install.php
UTF-8
5,813
2.75
3
[]
no_license
<?php if ($_POST["msqlogin"] == false || $_POST["msqpasswd"] == false || $_POST["dbname"] == false || $_POST["submit"] != "OK") { exit("BAD INPUT" . PHP_EOL); } // echo "Connection died(maybe you have already created a new database?)".PHP_EOL; $servername = "localhost"; $username = $_POST['msqlogin']; $passwor...
true
d368930cb0fa77924c1f70aae16f4d10ee4d16fa
PHP
pascalwacker/msgphp
/src/Domain/Message/DomainMessageBus.php
UTF-8
774
2.8125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace MsgPhp\Domain\Message; /** * @author Roland Franssen <franssen.roland@gmail.com> */ final class DomainMessageBus implements DomainMessageBusInterface { private $commandBus; private $eventBus; private $eventClasses; public function __construct(DomainMessageB...
true
2c673e468e3b878d4a0a582853e44540f0ff444c
PHP
gaspos/pehapkari.cz-1
/packages/Training/src/Entity/Watchdog.php
UTF-8
1,711
2.515625
3
[]
no_license
<?php declare(strict_types=1); namespace Pehapkari\Training\Entity; use Doctrine\ORM\Mapping as ORM; use Knp\DoctrineBehaviors\Model\Timestampable\Timestampable; /** * @ORM\Entity */ class Watchdog { use Timestampable; /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") ...
true
cafd25bf408cd3d30b2c83b87b7b2427d407f8bd
PHP
Jazzo/MyFw
/Savant3/Savant3/resources/Savant3_Plugin_inputField.php
UTF-8
4,007
2.984375
3
[]
no_license
<?php class Savant3_Plugin_inputField extends Savant3_Plugin { /* * Other attributes managed by a simple foreach */ public $_attr_other = array( 'id', 'size', 'maxlength', 'rows', ...
true
7193c4b525d3ffca668bf4f0189270ba348a0661
PHP
edisonmoura/sgos
/exemplo_graficos/grafico_barras.php
UTF-8
513
2.890625
3
[]
no_license
<?php require("phplot-5.8.0/phplot.php"); // Cria objeto do gráfico passando o tamanho $grafico = new PHPlot(350,350); $dados = array( array('Meninos','36'), array('Meninas','2') ); // Definindo o tipo de gráfico $grafico->SetPlotType('bars'); // Passando os dados para o gráfico $grafico->SetDataValues($dados); /...
true
111acf60871967d2356a5159e7f3e22b6cb62601
PHP
satyaaec/satya1
/module/Application/src/Application/Form/ContactForm.php
UTF-8
2,358
2.703125
3
[]
no_license
<?php namespace Application\Form; use Zend\Form\Form; class ContactForm extends Form { public function __construct($name = null) { // we want to ignore the name passed parent::__construct('form'); $this->setAttribute('method', 'post'); $this->add(array( '...
true
c5bc4dcbaf4165b7ef2539cb266d73cb336288e1
PHP
joshredel/Orientation-Week-Registration-System
/old/ga/checkout-JoshAcer.php
UTF-8
5,624
2.75
3
[]
no_license
<? // connect to the database $link = mysql_connect('localhost', 'orientation2011', 'regerd8') or die('Could not connect: ' . mysql_error()); mysql_select_db('fos') or die('Could not select database'); // if something was posted, add it to the database if(isset($_POST['studentid'])) { // first check if we actually ha...
true
466ce0c3577fa0f29b9b7f8a07988393eca4a874
PHP
ministryofjustice/opg-use-an-lpa
/service-front/app/src/Common/src/Form/Fieldset/Date.php
UTF-8
710
2.640625
3
[ "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
<?php declare(strict_types=1); namespace Common\Form\Fieldset; use Laminas\Form\Fieldset; /** * This fieldset is only suitable for catching AD dates * To validate this fieldset use the Common\Validator\DateValidator or any of it's descendant validators */ class Date extends Fieldset { public function __const...
true
61a1e78283921853a44e8871a099500755a25393
PHP
thingsmart/Lacerenza
/lacerenza/lib/operazioni_polizza.lib.php
UTF-8
5,068
2.5625
3
[]
no_license
<?php include("../databases/db_function.php"); require_once("../lib/verificaConvertiData.php"); include("../lib/funzioni_sito.php"); require_once("../classi/class.Polizze.php"); require_once("../classi/class.Log.php"); session_start(); $tipo = $_POST['tipo']; $log = new Log(); switch($tipo){ case "inserimento": $i...
true
2f1ff7dcb4c670c424fa737664a299d2ce04adfc
PHP
CSE406/Crew_DB
/my DB/Billboard.php
UTF-8
1,504
2.578125
3
[]
no_license
<?php header("Content-type: text/html; charset=utf-8"); include('./DBHandler.php'); $dao = new Dao(); $query = $_REQUEST['query']; $genres = $_REQUEST['genres']; $user_id = $_REQUEST['user_id']; $strTok =explode(',', $genres); $count = count($strTok); $genre = ""; for($i = 0 ; $i < $count-1 ; $i++){ ...
true
b1496deb25806e2d6ab9eb4d9ae6ea3d1c85ba38
PHP
mpirizdutra/stScreamTech
/core/app/model/clsEstado_garantiza.php
UTF-8
410
2.578125
3
[]
no_license
<?php class clsEstado_garantiza { public static $tablename = " estado_garantiza "; public function __construct(){ $this->id_garantiza = ""; $this->estado_garantiza=""; } public static function getAll(){ $sql = "select * from ".self::$tablename; $query = Executor::do...
true
ecf5f537969d41313c799af947683c9abe27fe17
PHP
pinsoneatra/reimireal
/app/models/directory/Opendir.php
UTF-8
1,487
2.890625
3
[]
no_license
<?php namespace models\directory; class Opendir { public function __construct() { } public function targetFile($folder) { $target_dir = $_SERVER['DOCUMENT_ROOT'] . URL_SUB_FOLDER . "/storage/" . $folder . "/"; $target_dir = str_replace('//', '/', $target_dir); return $ta...
true
de51c24ad5e51c97dda3e710bdfdcdbd63f1d516
PHP
mapkyca/pingback2hook
/engine/classes/pingback2hook/core/Input.class.php
UTF-8
3,100
2.953125
3
[ "MIT" ]
permissive
<?php /** * @file * Input handling functions. * * @package core * @copyright Marcus Povey 2013 * @license The MIT License (see LICENCE.txt), other licenses available. * @author Marcus Povey <marcus@marcus-povey.co.uk> * @link http://www.marcus-povey.co.uk */ namespace pingback2hook\core { /** * In...
true
96022caf43b23edd5d80cb33f7de0bf51edad189
PHP
HCC-Coder-Bootcamp/php103
/chloe/tasks/tasks2.php
UTF-8
350
3.421875
3
[]
no_license
<?php $input = readline('number' . PHP_EOL); if ($input > 0){ echo "Positive" . PHP_EOL; } else if ($input < 0){ echo "Negative" . PHP_EOL; } else { echo "REJECT-0" . PHP_EOL; } if (($input % 2) == 1 ){ echo "Odd" . PHP_EOL; } else if ($input = 0){ echo "REJECT-1" . PHP_EOL; } else {...
true
3c6321e4ca687cf56b38fc46dc639f6dd7102487
PHP
dark-wind/php-activiti-api
/src/Client/Model/Group/GroupMember.php
UTF-8
454
2.71875
3
[]
no_license
<?php namespace Activiti\Client\Model\Group; class GroupMember { /** * @var array */ private $data; public function __construct(array $data) { $this->data = $data; } public function getUserId() { return $this->data['userId']; } public function getGroupI...
true
dc86726d0a7c697c853ea6ff1a6a0d672693028c
PHP
niftytushar/sugandh-vatika
/php/category.php
UTF-8
566
2.96875
3
[]
no_license
<?php class CATEGORY { public $mInterface; public function __construct() { $this->mInterface = new MYSQL_INTERFACE(); } public function add($data) { $queryPart = array(); foreach ($data as $key=>$value) { if(isset($key)) array_push($queryPart, $key."='".$value."'"); } r...
true
43aff348cddf14c3da9a8ed4b7ee3113586264a0
PHP
jesusantguerrero/atmosphere-core
/src/Http/Middleware/EnsureUserHasTeam.php
UTF-8
1,067
2.640625
3
[]
no_license
<?php namespace Freesgen\Atmosphere\Http\Middleware; use App\Models\User; use Closure; use Illuminate\Http\Request; class EnsureUserHasTeam { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public func...
true
90cc9a801ab0e97764104ac8e8a3f3055c85f02e
PHP
kasinooya/HotelSystem
/public/equipments.php
UTF-8
2,549
2.609375
3
[]
no_license
<?php include_once("../sys/core/init.inc.php"); /* 初始化页面信息 */ $page_title = "设备管理 | 酒店后勤管理系统"; $page_h1 = "酒店后勤管理——房务管理、设备管理、仓库管理"; /* 载入页头 */ include_once("assets/common/header.inc.php"); /* 载入CSS和JS部分 */ ?> <link href="assets/css/equipments.css" rel="stylesheet" type="text/css" /> <script type="text/j...
true
cd2cd479d509569a08bddffab5154bc68d1d7ae6
PHP
vasilaum/teste-monetizze
/tabela.php
UTF-8
815
2.71875
3
[]
no_license
<!DOCTYPE html> <html> <head> <style> table { font-family: arial, sans-serif; border-collapse: collapse; width: 100%; } td, th { border: 1px solid #dddddd; text-align: left; padding: 8px; } tr:nth-child(even) { background-color: #dddddd; } </style> </head> <body> <tab...
true
23b219ad34c3dbd53c93f2754469660707a34e17
PHP
shivram2609/diane
/trunk_bak/app/Controller/CountriesController.php
UTF-8
3,037
2.609375
3
[]
no_license
<?php App::uses('AppController', 'Controller'); /** * Countries Controller * * @property Country $Country */ class CountriesController extends AppController { public $conditions = array(); public $delarr = array(); public $updatearr = array(); public $paginate = array( 'limit' => 25, 'order' => array( ...
true
6023313acf6fed10e6b387e371aff3983b247e3c
PHP
uyendt99/mongonew
/database/seeders/CustomerSeeder.php
UTF-8
949
2.53125
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Faker; use Illuminate\Support\Facades\DB; use Illuminate\Support\Str; class CustomerSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker = Faker\Factory::c...
true
c744edfb18a9cad976d66fda547e534f920459c7
PHP
spaze/michalspacek.cz
/site/vendor/nette/neon/src/Neon/Node/LiteralNode.php
UTF-8
2,100
2.84375
3
[ "MIT", "GPL-2.0-only", "GPL-1.0-or-later", "BSD-3-Clause", "GPL-3.0-only" ]
permissive
<?php /** * This file is part of the Nette Framework (https://nette.org) * Copyright (c) 2004 David Grudl (https://davidgrudl.com) */ declare(strict_types=1); namespace Nette\Neon\Node; use Nette\Neon\Node; /** @internal */ final class LiteralNode extends Node { private const SimpleTypes = [ 'true' => true,...
true
e0347cf8f99ed0b4ffe2777bb4413f3b13cc9877
PHP
jessydan/ProjetPhp
/controler/afficher_nouvelles.ctrl.php
UTF-8
1,150
2.5625
3
[]
no_license
<?php session_start(); require_once('/users/info/etu-s3/chenavje/public_html/ProgWeb/ProjetPhp/model/DAO.class.php'); $idFlux = $_POST['idFlux']; // On récupère le nombre de nouvelles a récuperer pour un flux rss donné. $test = ($dao->db())->query("SELECT count(*) FROM nouvelle WHERE RSS_id='$idFlux'"); $nbNouvelle ...
true
7c4a236324c60cc67bc07b121f4ee63a66c604e6
PHP
MlleDelphine/ascp
/src/ServiceCivique/Bundle/CoreBundle/Validator/OrganizationValidator.php
UTF-8
921
2.53125
3
[ "MIT" ]
permissive
<?php namespace ServiceCivique\Bundle\CoreBundle\Validator; use Symfony\Component\Validator\ExecutionContextInterface; use ServiceCivique\Bundle\CoreBundle\Entity\Organization; class OrganizationValidator { /** * Validate than approved organization isset if organization type is TYPE_HOST * * @para...
true
d878a3cd2863ad80e374e832c63f50a19c8faef5
PHP
mar4elkin/fast-form-lib
/main/factory.php
UTF-8
991
2.625
3
[]
no_license
<?php namespace Main; abstract class Factory { public static function getClass($class) { switch($class) { case 'head': return new Head(); break; case 'form': return new Form(); break; case 'input': return new Input(); bre...
true
75215e49981e616951eca908c6af86b752747ce9
PHP
Pierrot62/Pierre-DWWM
/projet/Conventions/PHP/CONTROLLER/Utilisateurs.Class.php
UTF-8
2,969
3.375
3
[]
no_license
<?php class Utilisateurs { /*****************Attributs***************** */ private $_idUtilisateur; private $_nomUtilisateur; private $_prenomUtilisateur; private $_emailUtilisateur; private $_mdpUtilisateur; private $_datePeremption; private $_idRole; /***************** Accesseurs ***************** */ ...
true
ddfe4ce49dcaed9305231f752b52b9d6283ef8ea
PHP
LaurenBugelli/capstone
/inc/signIn-inc.php
UTF-8
1,723
2.84375
3
[]
no_license
<?php //make sure user submits form properly if(isset($_POST["submit"])){ //echo "It works"; //GRAB VARIABLE FROM signUP.php file $name = $_POST["name"]; $email = $_POST["email"]; $username = $_POST["uid"]; $pass = $_POST["pass"]; $passRepeat = $_POST["passrepeat"]; //ERROR handlers ...
true
0d11b1ff4bb63b2fe948bbe13f761a33ec19c78a
PHP
tgmedia/php-colouring
/tests/PhpColouringTest.php
UTF-8
547
2.71875
3
[]
no_license
<?php use Tgmedia\PhpColouring\Colouring; class PhpColouringTest extends PHPUnit_Framework_TestCase { public function testColouringOriginal() { $colouring = new Colouring('#646464'); $this->assertTrue($colouring->colour() == '#646464'); } public function testColouringLighten() { $colouring = new Colour...
true
ac6c369ec5b47c593f5e57fa2b66de95ae51ec3d
PHP
driftphp/command-bus-bundle
/Bus/Bus.php
UTF-8
3,528
2.828125
3
[ "MIT" ]
permissive
<?php /* * This file is part of the DriftPHP Project * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Feel free to edit as you please, and have fun. * * @author Marc Morera <yuhu@mmoreram.com> */ declare(strict_types=1); names...
true
455c32656ee5b5fc1a11745182b7cdb356e70682
PHP
arnozou/bbs.arno.ren
/app/Repositories/Interfaces/AuthcodeInterface.php
UTF-8
250
2.640625
3
[]
no_license
<?php namespace App\Repositories\Interfaces; Interface AuthcodeInterface { public function getRecords($mobile, $ip, $timeLengthBefore); public function newRecord($mobile, $ip, $expireTime, $code); public function checkCode($mobile, $code); }
true
b37fbc19304ee27225c0f47fb2ab9e1ac76f34c5
PHP
jamesmills/laravel-stats
/tests/ValueObjects/ClassifiedClassTest.php
UTF-8
1,510
2.65625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Wnx\LaravelStats\Tests\ValueObjects; use Wnx\LaravelStats\Tests\TestCase; use Wnx\LaravelStats\ReflectionClass; use Wnx\LaravelStats\ValueObjects\ClassifiedClass; use Wnx\LaravelStats\Classifiers\ControllerClassifier; use Wnx\LaravelStats\Tests\Stubs\Controllers\UsersControlle...
true
e7defb7e9f5f6e467a8e49d96a22acc48f939c3a
PHP
arbory/arbory
/src/Links/Link.php
UTF-8
658
2.921875
3
[ "MIT" ]
permissive
<?php namespace Arbory\Base\Links; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; /** * @property int $id * @property string $title * @property bool $new_tab * @property string $href */ class Link extends Model { use HasFactory; /** * @var array ...
true
1d128d03eea33e48ee3dea7fad369ca5934eaaa4
PHP
PyColmenero/task-mamager
/php/create_table.php
UTF-8
1,089
2.84375
3
[]
no_license
<?php // connectamos a la BBDD include("connection.php"); $con = mysqli_connect('localhost', $database_user, $database_pasw); mysqli_select_db($con, $database_name); // recogemos variables $name = $_POST["username"]; // obtenemos nuestra ID $sql = mysqli_query($con, "SELECT * FROM $u...
true
3326b45a67ee3df37e9ca9995fe170bb9b3b6d29
PHP
jwhulette/Filevuer
/src/services/UploadServiceInterface.php
UTF-8
460
2.578125
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Jwhulette\Filevuer\Services; use Illuminate\Http\UploadedFile; interface UploadServiceInterface { public function uploadFiles(string $path, array $files, ?bool $extract = false): void; public function unzipArchive(string $path, UploadedFile $file): void; public...
true
d22ae38a52f92d8713b2c0dfc1d954d189bb6eb2
PHP
zekelon/zekelon.github.io
/process.php
UTF-8
1,919
2.609375
3
[]
no_license
<?php session_start(); //Defines define('DB_SERVER', 'localhost'); define('DB_USERNAME', 'root'); define('DB_PASSWORD', ''); define('DB_DATABASE', 'Login'); $link=mysqli_connect(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE); //Get username and password from the form $_SESSION['username'] = $...
true
bc31311bcfced67133e353a8b8d1ab3b84dd0b9c
PHP
Millsmk92/IUPUI-work
/Unit05/Lab5MM/index.php
UTF-8
1,096
3.296875
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. --> <?php /* * Author: Matthew Mills * 10/3/2019 */ ?> <html> <head> <meta charset="UTF-8"> <title>Drawing ...
true
27d3d3e211d3cd70622c69de6e0fdc7e91113e50
PHP
hrybrn/ecssweb
/live/setup/ingestphotos.php
UTF-8
1,076
2.53125
3
[ "MIT", "Apache-2.0" ]
permissive
<?php $relPath = "../"; include($relPath . "auth/forcelogin.php"); include($relPath . "auth/includedb.php"); //only webmaster can run this page if(!$userInfo['username'] == 'hb15g16'){ exit; } //need directory for slideshow if(!isset($_GET['directory']) | !isset($_GET['name'])){ exit; } $name = $_GET['name']; $...
true
7cd56769ad120f8b75f6c5aadccdd31af494c702
PHP
omerkocaoglu/OPSkinsTradeService
/src/Services/ServiceBase.php
UTF-8
1,355
2.5625
3
[]
no_license
<?php namespace OmerKocaoglu\OPSkinsTradeService\Services; use Fabstract\Component\Serializer\JSONSerializer; use Fabstract\Component\Serializer\Normalizer\Type; use GuzzleHttp\Client; use OmerKocaoglu\OPSkinsTradeService\Model\Config\ConfigModel; class ServiceBase { protected $client = null; protected $seri...
true
60866ddf738f774965e0af48e929fe68f3a4d71f
PHP
php-enqueue/enqueue-dev
/pkg/enqueue/ConnectionFactoryFactory.php
UTF-8
2,493
2.671875
3
[ "MIT" ]
permissive
<?php namespace Enqueue; use Enqueue\Dsn\Dsn; use Interop\Queue\ConnectionFactory; final class ConnectionFactoryFactory implements ConnectionFactoryFactoryInterface { public function create($config): ConnectionFactory { if (is_string($config)) { $config = ['dsn' => $config]; } ...
true
7e02f6ffd7e869c5cba5c24f054405df083954ef
PHP
ipunkt/rancherize
/app/General/Services/ByKeyService.php
UTF-8
615
2.984375
3
[ "MIT" ]
permissive
<?php namespace Rancherize\General\Services; use Rancherize\General\Exceptions\KeyNotFoundException; /** * Class ByKeyService * @package Rancherize\General\Services * * Case insensitive retrieval of a value by key */ class ByKeyService { /** * @param string $key * @param array $data * @return array ['CaSe...
true
9c41394c58da55c18fa3c30e6ae0e4dbcb2da47a
PHP
mtils/php-ems
/tests/unit/Core/Storages/LittleDataCachedStorageTest.php
UTF-8
3,268
2.640625
3
[ "MIT" ]
permissive
<?php /** * * Created by mtils on 12.09.18 at 12:31. **/ namespace Ems\Core\Storages; use Ems\Contracts\Core\Storage; use Ems\Core\Collections\StringList; use Ems\TestCase; class LittleDataCachedStorageTest extends TestCase { /** * @test */ public function implements_interface() { ...
true
e8b6a9e074893b9b13adcb4401eccbd3fd96d91f
PHP
AdeelGalileo/GTM-App
/controller/skills.php
UTF-8
3,774
2.765625
3
[]
no_license
<?php class skills extends table { public $params; /* Construct the table */ function __construct($db, $params = array()) { parent::__construct($db, 'consultant_skill'); $this->params = $params; } /* function to add or update consultant_skill table @param form array return sing...
true
c5fcee8ce393c7eef3e335990bcd13f84baa84eb
PHP
Timoniann/kit
/system/Model.php
UTF-8
2,319
3.03125
3
[]
no_license
<?php class Model { protected $db, $table_name; function __construct($table_name = null, $db = null) { $this->db = $db ? $db : Config::getDatabase(); $this->table_name = $table_name ? $table_name : strtolower(get_class($this)); } public function setTableName($table_name) { $this->table_name = $table_name...
true
17c8c5edd5be18bce9da9bca429008989a0305e5
PHP
svakhg/driver-apis
/app/Notifications/NewJobPosted.php
UTF-8
2,211
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Notifications; use App\Job; use App\Passenger; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Support\Facades\Config; use NotificationChannels\OneSignal\OneSignal...
true
62a17cd17ad726fc9367b8583c3c5640cdb55968
PHP
matija888/FMS
/private/classes/session.class.php
UTF-8
1,676
3.15625
3
[]
no_license
<?php class Session { public $user_id; private $user_status; private $logged_in = false; private $last_login; const MAX_LOGIN_PERIOD = 60*60*24; function __construct() { session_start(); $this->check_login(); } private function check_login() { if(isset($_SESSION['user_id'])) { $this->user_id = $_...
true
f03a52052e5ad07ba2ea224860586d7baf2a4b8d
PHP
dvsa/olcs-internal
/module/Olcs/src/Service/Data/User.php
UTF-8
2,849
2.640625
3
[ "MIT" ]
permissive
<?php namespace Olcs\Service\Data; use Common\Exception\DataServiceException; use Common\Service\Data\AbstractDataService; use Common\Service\Data\ListDataInterface; use Dvsa\Olcs\Transfer\Query\User\UserList; /** * User data service * * @package Olcs\Service\Data */ class User extends AbstractDataService implem...
true
7a6a19979941c088c5ce4d21854a720803a5b4da
PHP
minorbread/GD_demo
/imageMark.php
UTF-8
1,203
2.9375
3
[]
no_license
<?php /*打开图片*/ // 1.配置图片路径 $src = 'image/2.png'; // 2.获取图片的基本信息 $info = getimagesize($src); // 3.获取图片后缀名 $type = image_type_to_extension($info[2],false); // 4.在内存中创建一个和我们图像一致的类型 $fun = "imagecreatefrom{$type}"; // 5.把要操作的图片复制到内存 $image = $fun($src); /*操作图片*/ // 1.设置水印路径 $image_ma...
true
cd598a792191052ec754498e13434fb5eaad1475
PHP
paolord/typo3_tdd_demo
/typo3/sysext/fluid/Classes/ViewHelpers/Format/StripTagsViewHelper.php
UTF-8
2,777
2.921875
3
[ "MIT", "GPL-2.0-only", "CC-BY-2.5" ]
permissive
<?php namespace TYPO3\CMS\Fluid\ViewHelpers\Format; /* * 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 lice...
true
a672f3840d7209e3403772fb683a709b958135b9
PHP
wesleyromualdo/PIM
/par3/classes/model/ObraDocumentoApoio.class.inc
UTF-8
5,797
2.828125
3
[]
no_license
<?php /** * Classe de mapeamento da entidade par3.obra_documento_apoio. * * @version $Id$ * @since 2017.07.05 */ /** * Par3_Model_Obra_documento_apoio: sem descricao * * @package Par3\Model * @uses Simec\Db\Modelo * @author Renner Nascentes Tanizaki <rennertanizaki@mec.gov.br> * * @example * <code> * // ...
true
a4cdc46d810ccca3df9d11abbdb9e903f097196f
PHP
Arshak0014/football-news
/application/controllers/admin/SportController.php
UTF-8
2,546
2.578125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: GABRIELYAN * Date: 14.07.2020 * Time: 13:53 */ namespace application\controllers\admin; use application\base\AdminBaseController; use application\base\View; use application\components\Auth; use application\models\Sport; class SportController extends AdminB...
true
7ad9d9fbfdc21f293a0c04d46e2a713b7218e6e4
PHP
VictoriaLasso/Proyect
/vendor/stephpy/timeline/src/ResolveComponent/ComponentDataResolverInterface.php
UTF-8
688
2.609375
3
[ "MIT" ]
permissive
<?php namespace Spy\Timeline\ResolveComponent; use Spy\Timeline\Exception\ResolveComponentDataException; use Spy\Timeline\ResolveComponent\ValueObject\ResolveComponentModelIdentifier; use Spy\Timeline\ResolveComponent\ValueObject\ResolvedComponentData; interface ComponentDataResolverInterface { /** * @param...
true
10397302a519aedb7a32b069faf706c639b26270
PHP
melissahuertadev/42
/_oldcursus/piscinePHP/d01/ex01/mlx.php
UTF-8
156
2.84375
3
[]
no_license
#!/usr/bin/php <?PHP $my_cntr = 1; while ($my_cntr <= 1000) { echo "X"; if ($my_cntr % 94 == 0) echo "\n"; $my_cntr++; } echo "\n"; ?>
true
766fd4a6bbbed40f20a776ab9e301a281dc41472
PHP
pozito31/pozito31-proyecto_integrado_daw
/proyecto-integrado-daw/rest-api/database/seeds/UsuariosSeeder.php
UTF-8
1,679
2.78125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Usuarios; use Faker\Factory as Faker; class UsuariosSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { //Creamos una instancia de Faker $faker = Faker::create(); //Cr...
true
1f99add6045756617c0278508a56803f294098f8
PHP
dealroom/avro-php
/src/Schema/PrimitiveSchema.php
UTF-8
684
2.921875
3
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
<?php namespace Avro\Schema; use Avro\Exception\SchemaParseException; class PrimitiveSchema extends AbstractSchema { /** * @param string $type the primitive schema type name * @throws SchemaParseException */ public function __construct($type) { if (!self::isPrimitiveType($type)) { ...
true
206b952d26f520d07483de442bb5bb8a8b07568a
PHP
utherp/ezfw
/methods/memcache_alerts.php
UTF-8
2,941
2.515625
3
[]
no_license
<?php function &get_memcache_connection($host = 'localhost') { if (!isset($GLOBALS['_memcache_'][$host])) { if (!is_array($GLOBALS['_memcache_'])) $GLOBALS['_memcache_'] = array(); $GLOBALS['_memcache_'][$host] = new Memcache(); $GLOBALS['_memcache_'][$host]->connect($host); } return $GLOBALS['_...
true
b9091bd1b075528d2f0236a9a3c27a260093d58a
PHP
maddinen/php
/Oppimistehtava/naytaAsiakas.php
UTF-8
3,010
2.609375
3
[]
no_license
<?php require_once 'asiakastieto.php'; session_start(); if (isset($_SESSION["asiakastieto"])) { $asiakastieto = $_SESSION["asiakastieto"]; } else { header ("location: kaikkiAsiakkaat.php"); exit(); } if (isset ( $_POST ["takaisin"] )) { header ( "location: kaikkiAsiakkaat.php" ); exit (); } ?> <!DOCTYPE ...
true
648735944336680fe483f73bf23f2d86bcdf5fd7
PHP
jcferelloc/recettes
/src/stats.php
UTF-8
4,081
2.640625
3
[]
no_license
<?php include 'connect.php'; $connection = connect(); $returnData = new StdClass; function getResults($result) { $returnData = array(); if ($result->num_rows > 0) { while ($row = $result->fetch_assoc()) { if (count($row) == 0) { continue; } $rowEnco...
true
10765f5906ec21162bce8284cc76c2ec0a25e6cb
PHP
xBl4d3x/et
/library/Et/Object/Property/Trait.php
UTF-8
4,064
2.828125
3
[]
no_license
<?php namespace Et; trait Object_Property_Trait { /** * @var string */ protected $property_name; /** * @var string|\Et\Object_Definable */ protected $class_name; /** * @var string */ protected $title = ""; /** * @var string */ protected $description = ""; /** * @var bool */ protected ...
true
ab97d01e83cad69538fe38a437cf8784561f96e2
PHP
anishdhakal54/newpooshak
/app/Http/Controllers/Backend/GalleryController.php
UTF-8
2,940
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Backend; use App\Http\Requests\GalleryRequest; use App\Repositories\Gallery\GalleryRepository; use Exception; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class GalleryController extends Controller { /** * @var GalleryRepository */ private $gallery; p...
true
f2dce6fda9407b1f6ca8fc7fd55a9a22d3c60466
PHP
staydecent/Gum
/src/Gum/Response.php
UTF-8
1,857
2.890625
3
[]
no_license
<?php /** * Response * * @category Class * @package Gum * @author Adrian Unger <dev@staydecent.ca> * @license http://opensource.org/licenses/mit-license.php MIT License * @version 0.3.0 * @link http://staydecent.ca */ namespace Gum; /** * Response * * @category Response * @package Gum * @autho...
true
e8b32c5a9a5876b8c6fac5b32a3df9dffa92f22f
PHP
carl6227/POSfinalProject
/restruant.php
UTF-8
14,196
2.90625
3
[ "MIT" ]
permissive
<?php class restaurant { // Initializing varaibles to be used in connecting to the online database using phpmyadmin private $server = "mysql:host=remotemysql.com;dbname=Ca4Rze9t7d"; // server and db private $user = "Ca4Rze9t7d"; // username pri...
true
458d82fa8f69346b57a8a5cf1d99dbc39e778f1a
PHP
bizbink/blog-bundle
/Tests/Entity/TagTest.php
UTF-8
1,224
2.578125
3
[ "MIT" ]
permissive
<?php /* * Copyright (C) Matthew Vanderende - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited */ namespace Tests\BlogBundle\Entity; use Doctrine\Common\Persistence\ObjectManager; use Doctrine\Common\Persistence\ObjectRepository; use PHPUnit\Framework\TestCase; use Blo...
true
0177757fecd5872a087097588b1226337624668f
PHP
ThomVX/CampingMaasvallei
/reserveren.php
UTF-8
2,821
2.75
3
[]
no_license
<?php if (!isset($_SESSION['id'])) { header('Location: login.php'); } $errors = []; if (isset($_POST['submit'])) { if ($_POST['begintijd'] == '') { $errors['begintijd'] = "Wat is de eerste dag dat je op de campging wilt staan? ontbreekt"; } if ($_POST['eindtijd'] == '') { $errors['eindti...
true
193bdd23d6eaf44310be521c0a10b5901ff547bd
PHP
Cadiducho/UGR-SIBW
/core/modelo/Comentario.php
UTF-8
811
2.9375
3
[]
no_license
<?php class Comentario { // Id numerico del comentario public $id; // Autor del comentario public $usuario; // Fecha en la que se realizó el comentario public $fecha; // El cuerpo del comentario public $mensaje; // La referencia al evento donde se comentó public $evento; ...
true
14cc6822e9a3c1d887dcbf3e737d6460fb1a465e
PHP
lianiemiagdan/registration_system
/application/controllers/Auth.php
UTF-8
7,312
2.75
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php class Auth { function doFbLogin() { $user = $this->input->post('userdata'); /** * check user email if existing * true get entity then set session * false register it */ if (!$this->tank_auth->is_email_available($user['email'])) { ...
true
bc68aa4a16dd6a92b12387b4b344d660217a126d
PHP
atulgoswami21/Mickey
/Store/apps/magento/htdocs/pub/art-page/convert_image2.php
UTF-8
2,046
2.578125
3
[]
no_license
<?php //connect to the database $connect = mysqli_connect("ars-aurora1-cluster-1.cluster-crymzjqricqv.us-west-2.rds.amazonaws.com","ars_dbroot","American1","ars_prod_magento1"); //$connect = mysqli_connect("ars-mysql.crymzjqricqv.us-west-2.rds.amazonaws.com","ars_dbroot","American1","ars_staging_magento1"); //$co...
true
f4634c85dac8b4c3032e9b2a5945ba0df36bec5a
PHP
dcto/varimax
/src/Http/Session/Handler/MemcachedSessionHandler.php
UTF-8
1,933
2.578125
3
[]
no_license
<?php /** * Varimax The Slim PHP Frameworks. * varimax * FILE: 2020 * USER: 陶之11. <sdoz@live.com> * Time: 2020-08-11 22:03 * SITE: https://www.varimax.cn/ */ namespace VM\Http\Session\Handler; /** * NativeMemcachedSessionHandler. * * Driver for the memcached session save handler provided by the memcached P...
true
552cf9df0084ca886fe3d85901df055ced6f3e6f
PHP
tah33/ocas
/app/Http/Requests/RuleRequest.php
UTF-8
932
2.6875
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class RuleRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the v...
true
134d51e7353bd27dd0b8a1936125af4dc91ba625
PHP
YadavAnurag/travel
/pro/ci/application/views/user_view.php
UTF-8
386
2.734375
3
[ "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>User View</title> </head> <body> <?php foreach($result as $object){ echo 'Id '.$object->id; echo 'Username '.$object->email; echo 'Password '.$object->password; echo '<br/>'; ...
true
e0528105aa0d176d1dddc7fe84b98d28a00d484d
PHP
rim2011/phpSession
/phpSession.php
UTF-8
533
2.9375
3
[]
no_license
<?php session_start(); if (!isset($_SESSION['counter'])) { $_SESSION['counter'] = 0; } else { $_SESSION['counter']++; } echo "You have visited this page ".$_SESSION['counter']." in this session"; echo "<form action='phpSession.php' method='POST'> <input val...
true
784bbb1bea6b75ee08decc3c2e3a8624d849172b
PHP
ajenglaras/Praktikum5_PemrogramanWeb
/p2/proses.php
UTF-8
592
3.40625
3
[]
no_license
<?php include "inc.php"; //termasuk halaman inc.php echo $angka; //variabel angka echo "<br>"; if ($angka==100){ //jika angka=100 echo "Memuaskan"; //maka akan mencetak memuaskan } elseif ($angka<100&&$angka>=85) { //jika angka=85 echo "Sangat Baik"; //maka akan mencetak sangat baik } elseif ($angka<85&&$angka...
true
7431e0d28562a02ed9e2d80f05bdacd35a786e8b
PHP
w-lopes/uffa
/core/Commands/Resource.php
UTF-8
1,666
3.03125
3
[ "WTFPL" ]
permissive
<?php namespace core\Commands; use core\Bases\Command as BaseCommand; use core\Utils\Custom; use core\Utils\Normalizer; use core\Utils\Template; /** * Handle custom Resource. */ class Resource extends BaseCommand { /** * Constructor. */ public function __construct() { Custom::mkdirRe...
true
1a7d3537e9f9e4a1728958e0be55486084d6b573
PHP
Jtfnel/phPieces
/ping.php
UTF-8
710
2.765625
3
[]
no_license
<?php /* @Author: Jtfnel @Version: 1.0.0 @Description: pings a site and return if site is up or not @TODO: - None */ function pingsite($domain){ $test = curl_init($domain); $useragent = "Mozilla/5.0 (Windows; U; Windows NT 6.1; rv:2.2) Gecko/20110201"; ...
true
2492ca913e60cfed8b630bbc7ec8125dfc6a5815
PHP
plezzz/SoftUni-Technology-Fundamentals-with-PHP
/Associative Arrays Exercise/LegendaryFarming.php
UTF-8
2,506
3.015625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Niki * Date: 17/03/2019 * Time: 10:50 */ $materials = ["need" => ['shards'=>0,'fragments'=>0,'motes'=>0], "junk" => []]; $stop = false; while (!$stop) { $input = explode(" ", readline()); for ($i = 0; $i < count($input); $i += 2) { $material = strtolower($...
true
1b0427fd20f6124e1bd91cb8e2ed6be6917b547b
PHP
Zheness/mCMS
/mcms/app/modules/admin/forms/AddPageForm.php
UTF-8
2,206
2.84375
3
[ "MIT" ]
permissive
<?php namespace Mcms\Modules\Admin\Forms; use Phalcon\Forms\Element\Check; use Phalcon\Forms\Element\Text; use Phalcon\Forms\Element\TextArea; use Phalcon\Validation\Validator\PresenceOf; use Phalcon\Validation\Validator\Regex; use Phalcon\Validation\Validator\StringLength; class AddPageForm extends FormBase { p...
true
d31fb1b8ab04fb89afad061c4267e83427046dce
PHP
youssefbaba/learn-php
/comparaison.php
UTF-8
5,036
3.296875
3
[]
no_license
<?php // les operation de comparaison : == egale , != différent , < Inférieur strictement , > Supérieur strictement , <= Inférieur ou égal ,>= Supérieur ou égal // boolean : true ou false , echo true => "1" , echo false => " " // null equivalent 0 , true equivalent 1 , false equivalent 0 echo true ; // "1" cha...
true
4754ef496774571608fdcf3ac8cb380aed0f3294
PHP
dnaber-de/Git-Automated-Mirror
/src/GitAutomatedMirror/Type/ArgumentInterface.php
UTF-8
403
2.5625
3
[]
no_license
<?php # -*- coding: utf-8 -*- namespace GitAutomatedMirror\Type; interface ArgumentInterface { /** * @return string */ public function getName(); /** * @return string */ public function getType(); /** * @return string */ public function getShortName(); /** * @return bool */ public function...
true