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
61da94f7ed35268fe51c6320f93418a7fdfbbb69
PHP
ezet/HIG
/www/lab/oocontacts/contact.class.php
UTF-8
2,048
3.046875
3
[]
no_license
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * Description of contact * * @author ezet */ class Contact { function __construct() { $this->init(); } function isValidUid() { return (!isset($this->$error['uid'])); } ...
true
4ac136a56a119f81f31289bef336938e094adc49
PHP
CristopherGonzalez/expense-manager
/core/modules/index/model/CompanyData.php
UTF-8
3,799
2.625
3
[]
no_license
<?php class CompanyData { public static $tablename = "empresas"; public function __construct() { $this->status = 1; $this->is_deleted = 0; $this->licenciaMRC = ""; $this->pais = ""; $this->ciudad = ""; $this->telefono = ""; $this->direccion = ""; $this->tipo_negocio = ""; $this->na...
true
ae9cecdde0e2d4a13da04af2ddd9d1d6e20211fe
PHP
gmferreir1/sigem-2.0-back-end
/Modules/Chat/Validators/OnlineUserValidator.php
UTF-8
1,280
2.609375
3
[ "MIT" ]
permissive
<?php namespace Modules\Chat\Validators; use \Prettus\Validator\Contracts\ValidatorInterface; use \Prettus\Validator\LaravelValidator; /** * Class OnlineUserValidator. * * @package namespace App\Validators; */ class OnlineUserValidator extends LaravelValidator { /** * Validation Rules * * @var...
true
152b21d60a6b5f676e935ccfe20fe3b26c49d2ed
PHP
NilcilaineLopes/Loja_artesanato
/models/Vendas.php
UTF-8
1,868
2.53125
3
[]
no_license
<?php namespace app\models; use Yii; /** * This is the model class for table "vendas". * * @property int $ID * @property int $QTD * @property string|null $DATA_VENDA * @property float|null $VALOR * @property int|null $USUARIO_ID * @property int|null $PRODUTOS_ID * * @property Produto $pRODUTOS * @property...
true
acd8cf74c45c2aea70e446c062be54fec4c0b114
PHP
RubenRiosJimenez/tesis
/backend/models/Fondo.php
UTF-8
1,130
2.59375
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\models; use Yii; /** * This is the model class for table "fondo". * * @property integer $id_fondo * @property string $nombre_fondo * @property string $nombre_estado * @property string $observacion_fondo * @property string $fecha_creacion */ class Fondo extends \yii\db\ActiveRecord { ...
true
338ba5270aab91c539010ca7643fc2efba0a6e9a
PHP
annemiemorel/phpmap-htdocs
/Fibonacci.php
UTF-8
581
3.765625
4
[]
no_license
<?php //Fibonacci.php class Oefening { public function getFibonacci() { return; } } ?> <!DOCTYPE HTML> <html> <head> <meta charset=utf-8> <title>Fibonacci</title> </head> <body> <?php $getal1=0; $getal2=1; $getal3=$ge...
true
47dec4c360ee5e9fc9b2524bd026d35c2049689a
PHP
antonluzhbin/yii2_test
/models/Book.php
UTF-8
3,483
2.796875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use \yii\db\Expression; class Book extends \yii\db\ActiveRecord { /** * Returns the static model of the specified AR class. * @param string $className active record class name. * @return Comments the static model class */ public static function model($className=...
true
643d868b85ce87a9db9dfcf545629028eae84c74
PHP
cboulanger/bibliograph
/src/server/lib/console/Progress.php
UTF-8
1,775
2.5625
3
[]
no_license
<?php /* ************************************************************************ Bibliograph: Collaborative Online Reference Management http://www.bibliograph.org Copyright: 2007-2017 Christian Boulanger License: LGPL: http://www.gnu.org/licenses/lgpl.html EPL: http://www.eclipse.org/org...
true
0349ba9cb8829cd081496b00af6b79044ef4a9ac
PHP
neneh138/sitter
/app/Http/Controllers/SittersController.php
UTF-8
5,145
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Age; use App\Certificate; use App\DriverLicense; use App\Sitter; use App\Family; use App\Location; use App\SpecialCare; use App\Smoker; use App\Language; use App\Favorite; use App\SitterMessage; use App\SitterLocation; use App\SitterAge; use A...
true
f9afbd81ff87977c000ec77b035b8b0cd1f5dbc4
PHP
Brother-Simon/yaf_cms
/src/sdk/client.php
UTF-8
3,382
2.59375
3
[]
no_license
<?php //客户端请求接口 error_reporting(0); set_time_limit(0); date_default_timezone_set('PRC'); include_once '../sdk/CT_Api.php'; $api = new client_api(); $api ->action(); class client_api { //配置信息 private static $_config = array( 'secret' => 'chuntian_yqbb_client', 'api' => array( ...
true
a08080be7bd4eb0a604ea64d935ed5b83a4c19f8
PHP
antaresproject/core
/src/components/extension/src/Console/UninstallCommand.php
UTF-8
1,204
2.875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace Antares\Extension\Console; use Antares\Extension\Contracts\ExtensionContract; use Illuminate\Console\ConfirmableTrait; use Antares\Extension\Processors\Uninstaller; class UninstallCommand extends ExtensionCommand { use ConfirmableTrait; /** * The console command signature. * * @var strin...
true
2a8b06ccb082e2c8231c71148c9c18555b956bf6
PHP
Barnetik/SimpleForm
/src/Field/InputTypeField.php
UTF-8
1,413
2.859375
3
[ "MIT" ]
permissive
<?php /** * Created by Asier Marqués <asiermarques@gmail.com> */ namespace SimpleForm\Field; class InputTypeField extends AbstractField { protected function _configureHTMLAttributes(){ parent::_configureHTMLAttributes(); unset($this->_html_attributes["type"]); } functi...
true
727fb6925d376a7e412997ec58b3a784d5508367
PHP
dgrochowski/design-patterns
/Behavioral/Mediator/Milk.php
UTF-8
214
3.078125
3
[ "MIT" ]
permissive
<?php namespace Behavioral\Mediator; final class Milk extends Product { public function add(int $amount): void { $this->decrease($amount); echo $amount . "ml of milk was added\n"; } }
true
3c499ba7049d2dc3957e372754d7dc2c0bebf4c0
PHP
JBo1995/fypdevelopment
/TestingGrounds/hello-world.php
UTF-8
2,659
3.203125
3
[ "MIT" ]
permissive
<html><body> <?php echo 'This is my environment test test test testing one last time'; ?> <h1>This will be the landing page of my CRM which will be designed with HTML, CSS, Javascript</h1> <h2>This is just me showing I can show the database</h2> <?php // The following is adapted from https://www.w3schools.com...
true
95f5a3557a825676c5730876d36fab4f5fe22c1e
PHP
Vlad6847/Prezentari
/Symfony/02. OOP principles. Configuring Web Environement/04/PinkBlue.php
UTF-8
106
2.90625
3
[]
no_license
<?php class PinkBlue { public function __construct() { echo 'PinkBlue' . PHP_EOL; } }
true
ecff4ba2908659714a75e4555ac9fbf721382393
PHP
skimdad/demo
/web/includes/views/view_resultsmap.php
UTF-8
8,947
2.515625
3
[]
no_license
<?php if($searchResults) { /* create objects */ $googleMap = new GoogleMap(); $googleSettingObj = new GoogleSettings(GOOGLE_MAPS_SETTING, $_SERVER["HTTP_HOST"]); /* key for demodirectory.com */ if (DEMO_LIVE_MODE) { $googleMapsKey = GOOGLE_MAPS_APP_DEMO; } else { ...
true
bc941c9828f380801aa8faab5b6879f9bb3dd36c
PHP
Sari27/Projet3A_BDD_Maison_Econome
/modele/requetes.location.php
UTF-8
1,550
2.953125
3
[]
no_license
<?php // Appel du fichier déclarant mysqli_ include("modele/connexion.php"); function selectAppartement(mysqli $bdd) { $query = 'SELECT * FROM appartement ORDER BY libelleAppartement'; return mysqli_query($bdd, $query); } function ajoutLocation(mysqli $bdd, array $values): bool { $attributs = '';...
true
73f7c8e5c737189875d0767a0614ed690eb32c65
PHP
Risfat97/E-commerce-website-from-scratch
/user/controller/LoginController.php
UTF-8
1,812
2.625
3
[]
no_license
<?php namespace App\user\controller; use App\user\view as uv; use App\services as auth; use App\user\model as mdl; use App\user\classes as classes; class LoginController { private $usersRepo; public function __construct(mdl\UserRepository $usersRepo) { $this->usersRepo = $usersRepo; } p...
true
493f03bb374929757228227183bf4ecda797ea9b
PHP
stefovcharenko/symfony-micropost
/src/Service/Greeting.php
UTF-8
570
3.328125
3
[]
no_license
<?php /** * * * @author: Stefan Ovcharenko <s.ovcharenko@bintime.com> * @date: 30.07.2019 */ namespace App\Service; use Psr\Log\LoggerInterface; class Greeting { /** * @var LoggerInterface */ private $logger; /** * @var string */ private $message; public function __cons...
true
50fd200a83563447ad3b5d8ca9b198e78ca329de
PHP
dn240476eev/PHP
/lesson14/admin/core/Route.php
UTF-8
5,675
2.734375
3
[]
no_license
<?php class Route { public static function run() { $controllers_dir = 'controllers/'; $uri = parse_url($_SERVER['REQUEST_URI']); $uri1 = explode('/', $uri['path']); $uri2 = array_reverse($uri1); $uri_array = array( 'admin' => 'MainAdmin', 'product...
true
632441f450cb5636720f7d9e904367eb816861d4
PHP
JagerYe/GameConsole
/models/member/MemberDAO.php
UTF-8
8,731
2.953125
3
[]
no_license
<?php require_once "{$_SERVER['DOCUMENT_ROOT']}/GameConsole/models/member/MemberDAO_Interface.php"; require_once "{$_SERVER['DOCUMENT_ROOT']}/GameConsole/models/config.php"; class MemberDAO implements MemberDAO_Interface { //新增會員 public function insert($account, $password, $name, $email, $phone, $address = null...
true
3f959e8ed47a4d94ae07179ed44e56883ab5f7e1
PHP
ajdoc/ajd-validation
/src/AJD_validation/Rules/Key_rule.php
UTF-8
773
2.78125
3
[ "MIT" ]
permissive
<?php namespace AJD_validation\Rules; use Exception; use AJD_validation\Contracts\Abstract_related; use AJD_validation\Contracts\Rule_interface; class Key_rule extends Abstract_related { public function __construct($relation, Rule_interface $referenceValidator = null, $mandatory = true) { if( !...
true
e3c254327c44eb43af4c1ad24c7fa14b9c361c2c
PHP
ciniki/musicfestivals
/private/settingsUpdate.php
UTF-8
3,148
2.640625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php // // Description // ----------- // This function will update the festival settings from the supplier array. // // Arguments // --------- // ciniki: // tnid: The ID of the current tenant. // festival_id: The ID of the festival // args: The array to search for the settings in. // // Re...
true
826da6be53f62bcb4b9d2c79d0b56630d61ea37a
PHP
spereznetto/BotonAntipanico
/protected/models/Filtro.php
UTF-8
323
2.515625
3
[]
no_license
<?php class Filtro extends CFormModel { public $desde; public $hasta; public function rules() { return array( array('desde, hasta', 'required'), ); } public function attributeLabels() { return array( 'desde'=>'Fecha desde', 'hasta'=>'Fecha hasta', ); } ...
true
036b889a3d75408c0ee411f6f17877a9a7071ca0
PHP
xiaoguo0426/design-pattern
/State/WritingState.php
UTF-8
107
3.09375
3
[ "MIT" ]
permissive
<?php namespace DesignPattern\State; interface WritingState { public function write(string $words); }
true
90aaf9fc9c0a1a598fe622da5314f07ac6a7acdd
PHP
gilbertdim/sakila
/app/Models/Film/Film.php
UTF-8
1,673
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Models\Film; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Film extends Model { use HasFactory; protected $primaryKey = 'film_id'; public $timestamps = false; protected static function booted() { static::created(f...
true
9efa3fc210cff07b08e2675426e4f59fb59836af
PHP
MaskerPRC/oldmalwaresourcecode
/Dark Bot-V1 Final/Dark Bot/Site/classes/class.login.php
UTF-8
760
2.65625
3
[]
no_license
<?php require_once('includes/connect.inc.php'); class User { private $db; public function __construct(){ $this->db = new Connection(); $this->db = $this->db->dbConnect(); } public function loginUser($user, $pas){ $st = $this->db->prepare("SELECT * FROM login WHERE user=? AND passwo...
true
48944f24325ad4fe846c8c82c1dfee313d2fa18c
PHP
phacility/phabricator
/src/applications/diffusion/engineextension/DiffusionSourceHyperlinkEngineExtension.php
UTF-8
1,753
2.53125
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php final class DiffusionSourceHyperlinkEngineExtension extends PhabricatorRemarkupHyperlinkEngineExtension { const LINKENGINEKEY = 'diffusion-src'; public function processHyperlinks(array $hyperlinks) { $engine = $this->getEngine(); $viewer = $engine->getConfig('viewer'); if (!$viewer) { ...
true
aca65d8994dfa755e256fde8305e91c73f4a7248
PHP
shoplemo/php-sdk
/source/Model/Shipping.php
UTF-8
1,152
2.859375
3
[]
no_license
<?php namespace Shoplemo\Model; use Shoplemo\JsonSerializableModel; class Shipping extends JsonSerializableModel { private $full_name; private $phone; private $address; private $city; private $country; private $postalcode; function __construct() { } public function getFullName() { return $this->full_n...
true
41c3ddff5f548a6b587bb03a7c7121586a4825ac
PHP
Alexcm94/Proyecto_Tienda_Back-end
/usuarios/cambiarTarjeta.php
UTF-8
2,058
2.59375
3
[]
no_license
<?php //Cabeceras header("Access-Control-Allow-Origin: *"); header("Content-Type: text/plain; charset=UTF-8"); //Añadimos las cabeceras necesarias para las peticiones POST header("Access-Control-Allow-Methods: POST"); header("Access-Control-Max-Age: 3600"); header("Access-Control-Allow-Head...
true
2489ee5ac87e013eaf5b8ec326b5b8a9464e5f44
PHP
deveBrice/Gestion-meeting
/src/Core/Validator.php
UTF-8
1,218
2.84375
3
[]
no_license
<?php namespace Ipssi\Core; class Validator { private $data; private $errors = []; public function __construct($data) { $this->data = $data; } private function getIssetField($field) { if(!isset($this->data[$field])){ return null;...
true
ecaa427404baa22f2498f9d09ac842e8a5e9c83f
PHP
vukanac/confomo
/app/Twitter/Images/Downloader.php
UTF-8
1,242
2.828125
3
[]
no_license
<?php namespace Confomo\Twitter\Images; use Confomo\Entities\TwitterProfile; use Illuminate\Filesystem\Filesystem; use Illuminate\Foundation\Application; /** * Class Downloader * * Download Twitter images * * @package Confomo\Twitter\Images */ class Downloader { /** * @var Application */ pri...
true
7357a6150d0235d7d096ba745a99a813bf53d4b2
PHP
haya-shu/dawnSNS
/database/seeds/UsersTableSeeder.php
UTF-8
1,299
2.65625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; class UsersTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $param =[ 'id' => '1', 'username' => 'sans', 'mail' => 'sans@gmail.com', 'password' =>...
true
250efa1c48358115325694453c98ae6bc682ee55
PHP
AishwaryaJorve/hotel-management-php
/show.php
UTF-8
1,652
2.53125
3
[]
no_license
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> <?php $server='localhost'; $username="root"; $password=""; $db='hotel_database'; $con=mysqli_connect($server,$username,$password,$db);...
true
51361e4df3936a38f375e0f186ce2b47500e3ad2
PHP
direktdemokraterna/dd
/src/unused/test/translate/testcase_extractor.inc
UTF-8
1,396
3.078125
3
[]
no_license
<?php class testcase_extractor { public static function extract($base_dir) { $cases = array(); $files = scandir($base_dir); foreach ($files as $file) { if ($file && substr($file, 0, 1) != '.') { $abs_path = $base_dir . "/" . $file; if (is_dir($abs_path)) { $new_cases = self::extract($abs_path...
true
3d8879555cd290c57dc567039b8f86bf9cf7f0f4
PHP
nisayourm/R_login
/index.php
UTF-8
5,161
2.78125
3
[]
no_license
<?php $con = new mysqli('localhost', 'root', '', 'login'); $errors = array( 'email' => '', 'name' => '', 'password' => '', 'cpassword' => '', 'class'=>'', ); if(isset($_POST['login'])) { $name = $con->real_escape_string($_POST['nam...
true
753de0c8f6273dd4256ed7d3e2da663e5af379be
PHP
a3020/fake_data
/src/FakeData/Console/Command/CreateUsersCommand.php
UTF-8
3,425
2.640625
3
[ "MIT" ]
permissive
<?php namespace A3020\FakeData\Console\Command; use Concrete\Core\Config\Repository\Repository; use Concrete\Core\Entity\User\User; use Concrete\Core\Support\Facade\Application; use Doctrine\ORM\EntityManagerInterface; use Faker\Factory; use Faker\ORM\Doctrine\Populator; use Hautelook\Phpass\PasswordHash; use Symfony...
true
151a4f6474bbc457f44add6256be4660f8b62f68
PHP
NgoDuyHieu2409/laravel-work
/app/Enums/WorkRequired.php
UTF-8
344
2.59375
3
[]
no_license
<?php namespace App\Enums; use BenSampo\Enum\Contracts\LocalizedEnum; use BenSampo\Enum\Enum; /** * @method static static OptionOne() * @method static static OptionTwo() * @method static static OptionThree() */ final class WorkRequired extends Enum implements LocalizedEnum { const REQUIRED_YES = 'y'; con...
true
e2358c88c561d3cee49a58f95ef1a087283bdd32
PHP
kodymoodley/drug-indication-comparison
/test.php
UTF-8
19,460
2.71875
3
[]
no_license
<!-- BEGINNING OF DOCUMENT --> <!DOCTYPE html> <?php //header('Content-Type: text/csv'); //header('Content-Disposition: attachment; filename="sample.csv"'); // Hypothes.is API TOKEN: (just a test) 6879-ef-QplA3MslmdVLEuDjP0pQrHmkAxhweWPjAZYOlH_M // DailyMed group id on Hypothes.is: pGv4X7iV // List...
true
8884ae57a82a9d0c801efeed3bde3714457ada10
PHP
tweetyx/chronopost_chronofresh
/Model/Config/Source/Minute.php
UTF-8
533
2.78125
3
[]
no_license
<?php namespace Chronopost\Chronorelais\Model\Config\Source; class Minute implements \Magento\Framework\Option\ArrayInterface { /** * Return array of options as value-label pairs, eg. value => label * * @return array */ public function toOptionArray() { $minute = array(); ...
true
0d699625babacd36762b4f6dfb47e48e987fb9d6
PHP
PPEGroupe/ApplicationLegere
/Site/models/updateAccountWebUser.php
UTF-8
2,233
2.765625
3
[]
no_license
<?php require 'ClassesLoader.php'; require 'page.php'; $regexEmail = '#^[\w.-]+@[\w.-]+\.[a-z]{2,6}$#i'; if (!empty($_POST)) { // Vérifie l'existance des sessions 'account', 'webUser' et 'connected' et vérifie que le compte sélectionné est 'webUser'. if (isset($_SESSION['account']) && isset($_SESSION['we...
true
38af28995ed3060c49339bd5e53c28db5b24b109
PHP
Alexgallo91/Repaso-PHP
/ejemploList.php
UTF-8
1,808
3.65625
4
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Ejemplo List</title> <style> .impar { background-color: #000000; color: #FFFFFF; } .par { background-color: #FFFFFF color: #000000; } </style> </head> <body...
true
fad7c93ee5f3d6673cb0c2751287e6fa5fa51e15
PHP
przemyslawdrzewicz/cms
/app/core/models/m_auth.php
UTF-8
1,290
2.765625
3
[]
no_license
<?php class Auth { private $salt = 'e3FGde4'; function __construct() { } function validateLogin($user, $pass) { global $SK; if ($stmt = $SK->Database->prepare("SELECT * FROM users WHERE username = ? AND password = ?")) { $userPass = md5($pass . $this->sal...
true
8c8984d789b6bb6dcea101b1d040e1189f84cf72
PHP
vahagnnwsl/datame
/app/Packages/Moneta/types/NameValueAttribute.php
UTF-8
507
2.6875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: lodar * Date: 12.07.16 * Time: 23:17 */ namespace App\Packages\Moneta\types; class NameValueAttribute { public $name; public $value; public function __construct($name, $value) { $this->name = $name; $this->value = $value; } publi...
true
5dc928df099e0bf5e938de32d13f33dc30a3228d
PHP
maximuse/hackerRank
/introTutorial/index.php
UTF-8
619
3.265625
3
[]
no_license
<?php // Complete the introTutorial function below. function introTutorial($V, $arr) { $p = 0; for ($i = 0; $i < count($arr); $i++) { if ($arr[$i] == $V) { $p = $i; break; } } return $p; } //$fptr = fopen(getenv("OUTPUT_PATH"), "w"); $stdin = fopen("input00.tx...
true
2a82be7dcc3380397bfb57ea74e59cc26910a8cd
PHP
ahmedsammygeek/alumran
/admin/edit_product.php
UTF-8
6,459
2.59375
3
[]
no_license
<?php if(!isset($_GET['id']) || empty($_GET['id'])) { header("location: products.php"); die(); } require 'sidebar.php'; $id = filter_input(INPUT_GET , 'id' , FILTER_SANITIZE_NUMBER_INT); require '../connection/DB.php'; $product = $conn->prepare("SELECT * FROM products WHERE id = ?"); $product->bindValue(1 ,...
true
4fa0ed6430cd8b6430b740183736af792caf57bd
PHP
Y4NN15/toDoList_phpProject
/dal/Filtrage.php
UTF-8
2,421
3.03125
3
[]
no_license
<?php class Filtrage { static function filtrageAction($action){ if (!isset($action)) { throw new Exception("Il n'y a aucune action !"); } } static function filtrageTache(String &$nom, String &$description, String &$date, String &$lieu, &$dVueErreurs){ // filtrage du no...
true
879e431f75b1ac76064b7215d1f968093957ecf0
PHP
kenhyuwa/laravel-media
/src/Exceptions/InvalidConversion.php
UTF-8
307
2.65625
3
[ "MIT" ]
permissive
<?php namespace Optix\Media\Exceptions; use Exception; class InvalidConversion extends Exception { /** * @param string $name * @return InvalidConversion */ public static function doesNotExist($name) { return new static("Conversion `{$name}` does not exist"); } }
true
cd61d54add44b80d74e32d5de3bd67ea2958e234
PHP
abodnyaUA/ClientServerApp
/PHP/Templating/TemplateError/DBTemplateError.php
UTF-8
728
2.53125
3
[]
no_license
<?php class DBTemplateError { public $css = array("/Style/dstudio_style.css"); public $js = array(); public $content; public static function create($errorCode) { $template = new DBTemplateError(); $errorMessage = $template->errorMessage($errorCode); ob_start(); include_once $_SERVER['DOCUMENT_ROO...
true
5203d51dfb738fe1aaa2a27f486725d4af6ad191
PHP
TODwebdev/done
/Controllers/IndexController.php
UTF-8
1,589
2.859375
3
[]
no_license
<?php namespace Controllers; use Config\UserConfig; use Services\AuthService; use Services\MongoService; use View\View; class IndexController { // identifier of a current user /** * @var UserConfig */ protected $config; public function __construct() { $authService = new AuthService...
true
7a9c1fa7865db33b3e62390d02a4da4c516edfb4
PHP
loweffortwizard/PHP-Activities
/php/php-basics/first-php-script.php
UTF-8
742
3.140625
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>Using Echo</title> </head> <body> <p>This is standard HTML</p> <?php echo 'This was generated using PHP!'; //echo used to print //print the text above ?> <!-- • To load a php web page you must open it through the web server – type the addres...
true
c7994723de5885954311ab396cab41e495930f58
PHP
daniel-werner/tracy
/tests/Unit/ParserTest.php
UTF-8
1,864
2.625
3
[ "MIT" ]
permissive
<?php namespace Tests\Unit; use App\Utilities\WorkoutImport\Parsers\Gpx; use App\Utilities\WorkoutImport\Parsers\ParserFactory; use ErrorException; use Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException; use Tests\TestCase; use App\Utilities\WorkoutImport\Parsers\Tcx; use App\Utilities\WorkoutImpor...
true
92b70179e2c93b08df1f61b0d38b7e6f124a5eef
PHP
MakakenGH/Webprojekt
/functions/backend/users/login_do.php
UTF-8
984
2.734375
3
[]
no_license
<?php session_start(); include_once("../../db.php"); //DB Verbindung $db = new PDO($dsn, $dbuser, $dbpass); //Überprüft ob Nutzer schon eingeloggt ist if(isset($_GET['login'])) { $username = htmlspecialchars($_POST['username']); $password = htmlspecialchars($_POST['password']); //Sucht nach dem Username ...
true
7c9db74d254a4e07795a237c14ed39da1c97856e
PHP
revship/framework
/src/cache/driver/apc.class.php
UTF-8
1,293
2.953125
3
[ "MIT" ]
permissive
<?PHP class Revship_Cache_Driver_Apc { /** * 写缓存 * @param string $key 缓存的key * @param string $value 缓存的value * @param int $duration 缓存时间,以秒为单位 * @return bool 如果成功缓存则返回true,否则返回false. */ public function write($key, $value, $duration = 0) { if (!function_exists('apc_store')) return false...
true
c70477ad9ec74a77e29f72242b0d51f5554ac4af
PHP
nirgeier/CodeBlue_Project
/views/create_db.php
UTF-8
2,916
2.734375
3
[]
no_license
<?php // ---------------------------------------------------- // This page/view is used to get the database connection // properties and to create the DB when needed. //------------------------------------------------------- $ROOT_PATH = $_SERVER['DOCUMENT_ROOT']; include_once '../src/Moood/Cr...
true
8c53ff4a418a9899306e42b4ac848dcf7cd2eba2
PHP
k7JxdSD3/Laravel
/app/Http/Controllers/CartController.php
UTF-8
4,824
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; //Itemモデルを呼び出す use App\Model\Cart; use App\Model\Item; //ユーザー取得 use Illuminate\Support\Facades\Auth; //ファサードのトランザクションを使用 use Illuminate\Support\Facades\DB; use Illuminate\Http\Request; class CartController extends Controller { //userの認証 public function __construct() { $this...
true
4364019dec733c77df84a66a3a81b9f01b3b955d
PHP
Peter-P373k/ieptracking
/prac/pet.php
UTF-8
180
3.140625
3
[]
no_license
<?php class Pet { public $name; public function __construct($name) { $this->name = $name; } public function speak() { return 'nothing'; } } ?>
true
ed3b9851553f7b4a23e775ca74839e9dcbf819d0
PHP
IFPB-PRPIPG/periodicos-ifpb
/lib/pkp/classes/submission/PKPSubmissionFileDAO.inc.php
UTF-8
33,426
2.78125
3
[]
no_license
<?php /** * @file classes/submission/PKPSubmissionFileDAO.inc.php * * Copyright (c) 2013-2015 Simon Fraser University Library * Copyright (c) 2003-2015 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * @class PKPSubmissionFileDAO * @ingroup submission * @see Subm...
true
c21a5fc11dde68f86f44d76d47f5a82b4046d072
PHP
ewrybovic/Not-Google-Drive
/php/delete_file.php
UTF-8
832
2.953125
3
[]
no_license
<?php // Function for deleting file // Returns array of two values: // worked - boolean; true if worked false otherwise // error - string; "none" if worked, // "unlink" if could not unlink, // "no_file" if no file found // TODO Check if file is a filder and delete folder function delet...
true
9a69726e44f715e4de73595376ca9ee0a5db4917
PHP
p-chess/chess
/tests/PiecePlacementTest.php
UTF-8
1,278
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace PChess\Chess\Test; use PChess\Chess\Chess; use PChess\Chess\Piece; use PHPUnit\Framework\TestCase; class PiecePlacementTest extends TestCase { public function testAll(): void { $chess = new Chess('8/8/8/8/8/8/8/8 w KQkq - 0 1'); self::assertNull($che...
true
0e5c1dcf0fd5c16a9439d4aee1b035c9be5188be
PHP
uxff/xahoo
/approot/protected/xahooadmin/models/SideMenu.php
UTF-8
2,856
2.53125
3
[]
no_license
<?php class SideMenu { public function getMenu() { if (Yii::app()->admin->getIsGuest()) { return array(); } $arr = SysNode::model()->getNodeTree(Yii::app()->admin->getRole()); // //print_r($arr); ...
true
56aee07b162cc7317b0497e0f8005f599b7e8f85
PHP
andranikmatevosyan/sanctumApi
/app/Http/Controllers/Api/OrderController.php
UTF-8
2,159
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api; use App\Http\Resources\Order as OrderResource; use App\Models\Order; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\Http\Response; use Illuminate\Support\Facades\Validator; class OrderController extends BaseController { /** * @param $i...
true
adb9a0f4ac101408ddddaae0685fd8600045eff4
PHP
darkknightza/DentalProject
/models/HR_model.php
UTF-8
4,678
2.53125
3
[]
no_license
<?php namespace models; use core\Model; use PDO; class HR_model extends Model { public function __construct(){ parent::__construct(); } public function getUserType(){ $sql ="SELECT * FROM user_type"; $pstm = $this->connect->prepare($sql); $pstm->e...
true
97d556b0e8981f860e8557d13534626f02f13003
PHP
Tannair/facul
/atividade_9/edita_user.php
UTF-8
2,552
2.6875
3
[]
no_license
<?php include 'cabecalho.php'; $con = bancoMySqli(); if (isset($_POST['editar'])) { $idUser = $_POST['id']; $sqlUsers = "SELECT * FROM usuarios WHERE id = '$idUser'"; $queryUsers = mysqli_query($con, $sqlUsers); $users = mysqli_fetch_array($queryUsers); } if (isset($_POST['atualizar'])) { ...
true
ca45b5bd485fa26271cc81d6031e6d83127283aa
PHP
markogrady1/design-patterns
/php/facadePattern/Passenger.php
UTF-8
1,413
3.375
3
[ "MIT" ]
permissive
<?php namespace php\facadePattern; /* |========================================================================== |-------------------------------------------------------------------------- | The values for the properties would usually be obtained from a database | Values have been explicitly added for example purpos...
true
9118a230f4b4729bdf8f7e35e63f57c95c6bb39a
PHP
sonluutien/Bayo
/bayo.php
UTF-8
5,285
3.25
3
[]
no_license
<form method="post" action=""> <input type="submit" name="create" value="create 1 million integer" /><a href="./unsort.txt">unsorted.txt</a> </form> <form method="post" action=""> <input type="submit" name="sort" value="sort" /><a href="./sorted.txt">sorted.txt</a> </form> <?php /** * Sort 1 million in...
true
e5654ae5df08293237eeb47b24fdfef72c35a587
PHP
szyouwei/struggle
/code/Struggle/Libraries/Cache/Driver/File.php
UTF-8
5,934
2.765625
3
[]
no_license
<?php /** * - 需要动态改变配置的,不用写在config.php文件中,如日志跟其他文本文件的读写, * 其他文件的路径、文件名随时都有可能改变,所以不需要写入,只需在构造函数添加 * 一个配置数组形参即可 */ namespace struggle\libraries\cache\driver; use \struggle\libraries\Object; use struggle\Sle; class File extends Object{ //public $dir = ''; //文件存放目录 //public $path = ''; //文件路径 ...
true
035c0de7790744058c1ce0c68be583b3043d4f55
PHP
KnpLabs/KnpRadBundle
/Routing/Conventional/Generator/ControllerName.php
UTF-8
1,910
2.703125
3
[ "MIT" ]
permissive
<?php namespace Knp\RadBundle\Routing\Conventional\Generator; use Knp\RadBundle\Routing\Conventional\Config; use Knp\RadBundle\Routing\Conventional\Generator; class ControllerName implements Generator { private $map = array( 'create' => 'new', 'update' => 'edit', ); public function __con...
true
bb4112924091e920c9730a9a11bfa8222119f62e
PHP
ArkanoidSolutions/cadastroassociados
/Model/Cargo.php
UTF-8
1,029
2.515625
3
[]
no_license
<?php App::uses('AppModel', 'Model'); /** * Cargo Model * * @property Associado $Associado */ class Cargo extends AppModel { //The Associations below have been created with all possible keys, those that are not needed can be removed public $displayField = 'nome'; /** * hasMany associations * * @var ...
true
81007dd7d5910ec4bd52eaf18f2880565c562de1
PHP
r0nish/hrmis
/app/Modules/Security/Entities/Menu.php
UTF-8
1,523
2.703125
3
[ "MIT" ]
permissive
<?php namespace Modules\Security\Entities; use Modules\Foundation\Entities\BaseModel; class Menu extends BaseModel implements MenuInterface { protected $table = 'menu'; protected $primaryKey = 'id_menu'; protected $guarded = []; protected $filterRoleId = ''; /** * @return \Illuminate\Database\E...
true
6a8feffee2765a9411a1db482c41b58e1dd6ab1f
PHP
Josholeary/LibraryWebsite
/Code/reserve.php
UTF-8
4,435
3.21875
3
[]
no_license
<!--Web Development 2 assignment - C19381781 Josh O'Leary--> <!--reserve.php allows a user with an account that is logged in to reserve a given book on the site--> <!DOCTYPE html> <html> <head> <!--Allows us to use CSS to style our page and give our page a title--> <link type="text/css" rel="stylesheet" href="s...
true
505788a4d1d6dbef9160d735400a8eb5616f2a70
PHP
l09benavides/webserver
/conn/conexion.php
UTF-8
697
3.078125
3
[]
no_license
<?php require_once("config.php"); /** * */ class Conexion { public static $instancia; public static function getInstance(){ if(!self::$instancia instanceof self){ return self::$instancia = new self; }else{ return self::$instancia; } } private $link; public function __co...
true
88d2d30a694db138b1b2d1f99204d43db45320f1
PHP
2012mjm/b2p
/protected/services/product/SearchViewModel.php
UTF-8
779
2.84375
3
[]
no_license
<?php class SearchViewModel extends CFormModel { public $key; public $kind; /** * Declares the validation rules. * The rules state that username and password are required, * and password needs to be authenticated. */ public function rules() { // NOTE: you should only define rules for those attributes th...
true
5dc995929e9e1baa8ae6d73ebd06fc29f2e650e3
PHP
dms-org/core
/tests/Tests/Table/DataSource/ArrayTableDataSourceTest.php
UTF-8
2,126
2.53125
3
[ "MIT" ]
permissive
<?php namespace Dms\Core\Tests\Table\DataSource; use Dms\Core\Exception\InvalidArgumentException; use Dms\Core\Form\Field\Builder\Field; use Dms\Core\Table\Builder\Column; use Dms\Core\Table\Builder\Table; use Dms\Core\Table\DataSource\ArrayTableDataSource; use Dms\Core\Table\ITableDataSource; use Dms\Core\Table\ITab...
true
5122579c15ea96893be8a62206e399c1ceb6a151
PHP
alarner/Orion
/Database/MySQLPDODatabase/MySQLPDODatabase.php
UTF-8
2,806
2.984375
3
[ "MIT" ]
permissive
<?php namespace Orion; require_once('Database/MySQLPDODatabase/config.php'); require_once('Database/iDatabase.php'); require_once('Database/MySQLPDODatabase/MySQLPDODatabaseResult.php'); /* * Requires: * - PDO [http://www.php.net/manual/en/book.pdo.php] * * @see Database/iDatabase.php for documentation. */ class...
true
279ae3c05d8728e266f2dfcfb4d0c458d18740a0
PHP
adamkennedy-acmix/Music_Psychic
/show_creation.php
UTF-8
5,468
2.71875
3
[]
no_license
<?php // Start session session_start(); // Config file included require_once 'dbconfig.php'; // Check if the user is logged in, if not then redirect them to login page if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true){ header("location: index.php"); exit; } //Variables initialize...
true
f48757f2a4d9638dc66777c49d114add99ca2d18
PHP
josedavidrestrepo/photo-app
/core/controllers/AlbumsController.php
UTF-8
4,129
2.625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: wdosp * Date: 03/09/2016 * Time: 20:47 */ include_once 'c:/xampp/htdocs/photoapp/db/dao/AlbumsDao.php'; include_once 'c:/xampp/htdocs/photoapp/db/dao/ImagesDao.php'; include_once 'c:/xampp/htdocs/photoapp/db/dao/UsersDao.php'; include_once 'SessionController.php'; include...
true
8af698be5676e8290ca21774cec53fc826b0266b
PHP
harlemmuniz/series-controller
/tests/Unit/SeasonTest.php
UTF-8
1,305
2.734375
3
[ "MIT" ]
permissive
<?php namespace Tests\Unit; use App\Episode; use App\Season; use Tests\TestCase; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Foundation\Testing\RefreshDatabase; class SeasonTest extends TestCase { use RefreshDatabase; /** @var Season */ private $season; protected function setUp(): v...
true
dce72cc58dcb044a00acebe2144b905354c2ec77
PHP
king-consulting/enrollment-orm
/src/Service/RawDataService.php
UTF-8
5,209
2.78125
3
[]
no_license
<?php namespace KingConsulting\Service; use Doctrine\ORM\Query\ResultSetMapping; class RawDataService { private $entityManager; public function __construct($entityManager) { $this->entityManager = $entityManager; } public function addRow($year, $header, $line) { $values = explode("\t", trim($l...
true
d139c169fb5727f02ff9d7deaafb2e235621414b
PHP
theafaid/xmentee
/tests/Factories/Bands/BandFactory.php
UTF-8
670
2.53125
3
[ "MIT" ]
permissive
<?php namespace Tests\Factories\Bands; use App\Models\Band; use Facades\Tests\Factories\Batches\BatchFactory; class BandFactory { protected $batchesCount; /** * @param array $attributes * @return mixed */ public function create($attributes = []) { $band = factory(Band::class)->...
true
c4e2ef6be8a896936e720da26ca4efd21471fed8
PHP
ss222yw/PHP-Projekt
/Projekt/public_html/src/controller/InterestController.php
UTF-8
2,168
2.84375
3
[]
no_license
<?php //the require once here just to show the coupling between classes. require_once(ViewPath.DS.'interestView.php'); require_once(ModelPath.DS.'validation.php'); require_once(ModelPath.DS.'emailInterest.php'); class InterestController { private $validation; private $interest; private $emailInterest; ...
true
301c8d2680cc2eb26dbe19e70b54af62fc03da87
PHP
business-expert/aiclubnew
/admin/models/login_model.php
UTF-8
1,967
2.625
3
[]
no_license
<?php class login { function __construct() { } function checkLogin() { global $objComm; $this->ValidateData(); if($this->row->id > 0) { $this->setLoggedSession(); $objComm->redirect('index.php?model=dashboard'); } } function ValidateData() { global $...
true
76b2cceea063f4fcd4a0eae1e8aafa155903da41
PHP
Loschcode/legacy-bordeaux-in-box
/website/app/Models/CustomerProfile.php
UTF-8
8,159
2.59375
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class CustomerProfile extends Model { protected $dates = ['status_updated_at']; /** * The database table used by the model. * * @var string */ protected $table = 'customer_profiles'; /** * The accessors to append to the model's arr...
true
64bc87d0b3d435d9c3f2c5630e6af324d587eaf5
PHP
OXIDprojects/mfFastSEO
/modules/mfFastSEO/library/Mayflower/Loader/Autoloader.php
UTF-8
2,138
3.078125
3
[]
no_license
<?php /** * Class for automatic loading of required PHP files. * * @category OXID eShop * @package Modules * @author Stefan Krenz <stefan.krenz@mayflower.de> */ /** * Class for automatic loading of required PHP files. */ class Mayflower_Loader_Autoloader { /** * Determines whether the autoloa...
true
d1d90434808bf00e00027945f3f6eb6a0b426740
PHP
phel-lang/phel-lang
/src/php/Lang/ConsInterface.php
UTF-8
304
3.0625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Phel\Lang; /** * @template T of ConsInterface */ interface ConsInterface { /** * Appends a value to the front of a data structure. * * @param mixed $x The value to cons * * @return T */ public function cons(mixed $x); }
true
eb79bb026abdfeb289e0839717ca3cd8880cd07f
PHP
antonshell/currencies-rates-retriever
/tests/Currency/EUR/RetrieverTest.php
UTF-8
1,247
2.65625
3
[]
no_license
<?php namespace App\Tests\Currency\EUR; use App\Currency\EUR\Retriever; use App\Helper\CurlHelper; use PHPUnit\Framework\TestCase; /** * Class RetrieverTest * @package App\Tests\Currency\EUR */ class RetrieverTest extends TestCase { /** * @var MapperTest */ private $retriever; /** * Cu...
true
250e4e078578f318326a84dcfe697af37e3a5d99
PHP
sarron93/WP_Delivery
/wp-content/plugins/victheme_core/api/form_element.api.php
UTF-8
2,232
3
3
[]
no_license
<?php die('No Direct access allowed.'); /** * Example class for extending / creating a new Form elements * that can be called via VTCore_Form_Base() object or its * subclasses. * * INTERFACE * The extender class must extends VTCore_Form_Base and * implements the VTCore_Form_Interface interface. * * TRIGGERIN...
true
b4205efc62374139c87c39e6925fa6eac5755440
PHP
zamurrell/Animated-Gallery
/functions.php
UTF-8
3,402
2.78125
3
[]
no_license
<?php // Add the following to your functions.php file // Create /assets/js folder and gallery.js inside it wp_register_script( 'project-gallery', get_stylesheet_directory_uri() . '/assets/js/gallery.js' ); // Within your site scripts and hook, enqueue the following files wp_enqueue_script( 'project-gallery', get_sty...
true
8755d84adbe684be4a5553a98346c2a2cdf7c629
PHP
Fondass/Tour-de-Toto-project
/classes/class.newtour.functions.php
UTF-8
839
2.75
3
[]
no_license
<?php /* class: PhP Model class * * Works with: * classes/pages/page.newtour.php (page class) * * functions for the newtour page */ class FonNewtour { protected $user; protected $db; protected $helper; public function __construct($user, $db, $helper) { ...
true
6dac4f0b7ce8b22d17eb7243872b97f4d9b13843
PHP
Catfeeds/CLW
/app/Repositories/CategoriesRepository.php
UTF-8
754
2.625
3
[]
no_license
<?php namespace App\Repositories; use App\Models\Category; use Illuminate\Database\Eloquent\Model; class CategoriesRepository extends Model { //商城大类列表管理 public function CategoriesList($request) { return Category::paginate($request->per_page??10); } //添加商城大类 public function addCatego...
true
258033c3e220780be5660c4fd39b7d351aa1b0bb
PHP
fesor/api-example
/app/Posts/Model/TagProcessor.php
UTF-8
181
2.765625
3
[]
no_license
<?php namespace Example\Posts\Model; interface TagProcessor { /** * @param string $text * @return Tag[] */ public function fromText(string $text): array; }
true
7eca9574b983d4fdc95bd08764f082423cd7b78a
PHP
EarlMegget21/BeerOverflow
/view/client/showBasket.php
UTF-8
1,121
2.71875
3
[]
no_license
<?php //initialise le panier si pas dejà fait //ajoute au panier //sauvegarde un ajout dans le panier if (isset($_SESSION['Basket'])) { if (count($_SESSION['Basket']) != 1) { echo "<table>"; foreach ($_SESSION['Basket'] as $key => $item) { echo "<tr><td>$key</td>"; foreach (...
true
2d9e71bf2e6e4c105c793ded380b27fac3d7132a
PHP
PillosMen/Practica-10
/www/ver.php
UTF-8
1,374
2.78125
3
[]
no_license
<?php $_GET['id']; if( $_GET['id'] != "" ){ echo '<link rel="stylesheet" href="miestilo.css">'; //conectamos con MYSQL mysql_connect("localhost","root",""); //seleccionamos la base de datos "prueba" mysql_query("use directorio;"); //La consulta se realiza de acuerdo al termino de busqueda $queryPrimeraTabla = mys...
true
34b34e1e3ecbffb2a3365d41f6e78317f137f895
PHP
balramsahu/phpunittest
/CalculatorTest.php
UTF-8
961
3.171875
3
[]
no_license
<?php // require 'Calculator.php'; // use PHPUnit\Framework\TestCase; // class CalculatorTest extends TestCase // { // private $calculator; // protected function setUp() // { // $this->calculator = new Calculator(); // } // protected function tearDown() // { // $this->calcul...
true
688798eee6af4be9fb81581aec08ef3dedf19298
PHP
lucatume/function-mocker
/src/tad/FunctionMocker/Template/MethodCode.php
UTF-8
4,898
2.921875
3
[]
no_license
<?php namespace tad\FunctionMocker\Template; class MethodCode implements MethodCodeInterface { /** * @var string */ protected $targetClass; /** * @var \ReflectionClass */ protected $reflection; /** * @var array */ protected $methods; /** @var string */ ...
true
7c1a3c2e9fe5c20a44575d16627ac24351339141
PHP
littleblackman/mazone
/src/Responder/Home/HomeResponder.php
UTF-8
518
2.578125
3
[]
no_license
<?php declare(strict_types=1); namespace App\Responder\Home; use App\Responder\Home\Interfaces\HomeResponderInterface; use Symfony\Component\HttpFoundation\Response; use Twig\Environment; class HomeResponder implements HomeResponderInterface { private $twig; public function __construct(Environment $twig) ...
true
53804bd0a2a842c9378da960e7e8cbc41abf58d5
PHP
peter-mcconnell/oldassphpframework
/mvc/frontend/rss._controller.php
UTF-8
1,617
2.84375
3
[ "Apache-2.0" ]
permissive
<?php class RssController extends FrontendBaseController { private $feedtitle, $feeddesc, $feedlink, $feedimg; public function __construct() { parent::__construct(); $this->feedtitle = 'RSS Feed'; $this->feeddesc = 'All the latest news from ' . BASE_HREF . '.'; $this->feedlink = BASE_HREF . ...
true
a63638e3eb1e6e14e6f4665e2abd6e8d6294df98
PHP
financialmedia/FMKeystoneBundle
/src/FM/KeystoneBundle/Entity/User.php
UTF-8
981
2.59375
3
[]
no_license
<?php namespace FM\KeystoneBundle\Entity; use FM\KeystoneBundle\Model\User as AbstractUser; /** * Create a User class in your own bundle that extends this one. * * <code> * <?php * // src/Acme/YourBundle/Entity/User.php * * namespace Acme\YourBundle\Entity; * * use FM\KeystoneBundle\Entity\U...
true
0851c8ca9b095ad3d8d0eab4dfe26b110a7c6ea1
PHP
cssbloomfi/cssbloomfi
/src/library/BinaryBl/Menu/Tree.php
UTF-8
1,177
2.671875
3
[]
no_license
<?php class BinaryBl_Menu_Tree extends Bloomfi_App_Ulibrary { protected $_model; protected $_treemenu; protected $_count=0; protected $_menu; public function buildMenu($menu) { $this->_treemenu=$menu; foreach($this->_treemenu as $val) { $val=$this->objectToArray($val); if(!empty($val) && $val['RESOU...
true
9e61393689c62b9e9dbf7a97bc6316370eaa1f10
PHP
JuanysaWahyu/Trisfarda
/operator3.php
UTF-8
496
2.828125
3
[]
no_license
<?php $juanysa1=5; $juanysa2=4; echo "$juanysa1 == $juanysa2:".($juanysa1==$juanysa2); echo "<br>$juanysa1!= $juanysa2:".($juanysa1!=$juanysa2); echo "<br>$juanysa1 > $juanysa2:".($juanysa1>$juanysa2); echo "<br>$juanysa1 < $juanysa2:".($juanysa1<$juanysa2); echo "<br>($juanysa1 == $juanysa2)&&($juanysa1 > $juan...
true