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
812f63326544b30be9d70f16e229933f0f293319
PHP
mikcheal101/browse9ja.com
/application/models/Company.php
UTF-8
1,989
2.5625
3
[]
no_license
<?php class Company extends CI_Model { public function addCompany ($image, $logo) { $this->db->trans_start (); $this->db->insert ('users', [ 'username' => $this->input->post ('username'), 'password' => md5 ($this->input->post ('password')), ]); $this->db->insert ('company', [ 'area' => $this-...
true
fc314104574d43b635b349558f585f88727b8b38
PHP
melimorin/synthese-php
/models/taches.php
UTF-8
1,187
2.8125
3
[]
no_license
<?php // Modification de la base de donnee include("utils/bdd.php"); // Ajout d'une nouvelle taches dans la base de donnee function ajoutTache($taches) { global $bdd; $sql = " INSERT INTO taches (titre, priorite) VALUES ('". $taches["titre"] ."','". $taches["priorite"] ."') "; my...
true
79665b5f0f7e9d67a36a814a99d5df3d2c6168b0
PHP
ajegu/allcoin-api
/allcoin/Repository/AssetRepository.php
UTF-8
3,332
2.6875
3
[ "MIT" ]
permissive
<?php namespace AllCoin\Repository; use AllCoin\Database\DynamoDb\Exception\ItemDeleteException; use AllCoin\Database\DynamoDb\Exception\ItemNotFoundException; use AllCoin\Database\DynamoDb\Exception\ItemReadException; use AllCoin\Database\DynamoDb\Exception\ItemSaveException; use AllCoin\Database\DynamoDb\ItemMana...
true
506bbab1e9906b5aafa843588b55fe974a667daf
PHP
taghwo/picturebay
/app/Repositories/RepositoryAbstract.php
UTF-8
3,263
2.53125
3
[]
no_license
<?php namespace App\Repositories; use App\Exceptions\ModelNotFoundException; use App\Repositories\Contracts\BaseContract; use App\Repositories\Exceptions\NoEntityDefined; abstract class RepositoryAbstract implements BaseContract { use RepositoryTraits; protected $entity; public function __construct() ...
true
d182dc0120fb5059115440d049a11b30696294cc
PHP
jpyeah/SwooleDistributed-docker
/app/vendor/tmtbe/swooledistributed/src/Server/Components/Process/Process.php
UTF-8
2,469
2.640625
3
[ "Apache-2.0" ]
permissive
<?php /** * Created by PhpStorm. * User: zhangjincheng * Date: 17-8-15 * Time: 上午9:41 */ namespace Server\Components\Process; use Server\Coroutine\Coroutine; use Server\SwooleMarco; class Process { protected $process; protected $worker_id; protected $config; protected $token = 0; /** *...
true
5885c74aef2ca007dfbbf4fb9c2c0d8fecf5cbda
PHP
sergiotejon/php7_tdd
/src/prueba/test/ValueTest.php
UTF-8
243
2.515625
3
[]
no_license
<?php require_once __DIR__."/../value.php"; use PHPUnit\Framework\TestCase; class ValueTest extends TestCase { public function testGetValue() { $expected = 1; $actual = value::getValue(); $this->assertEquals($expected, $actual); } }
true
8de2a5c1c92f81103e3b56b28aca75bdc7cbb50d
PHP
tiste/minesweeper
/minesweeper.php
UTF-8
3,116
3.171875
3
[]
no_license
<?php class Cell { private $row; private $col; public $value; public $visible; function __construct($row, $col) { $this->row = $row; $this->col = $col; $this->value = 0; $this->visible = false; } } class Minesweeper { private $nbCell; public $board = array(); public $boardVisited = array(); public...
true
e09db3b23216b80b5061160de3a39b13a9511446
PHP
michaelhao/barroco
/application/controllers/backend/ExportExcel.php
UTF-8
7,760
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); include_once './vendor/autoload.php'; class ExportExcel extends CI_Controller { public function orderExcel(){ $storeAcc = $this->input->get('acc'); $from = $this->input->get('from'); $to = $this->input->get('to'); if ($storeAcc==0) { $...
true
4e29c01e8c991d0b13e4500cd297c72b33c046c4
PHP
tanneryea/php
/Airline/AirlineSurvey.php
UTF-8
3,874
2.75
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="en"> <head> <meta charset="utf-8" /> <meta http-equiv="x-ua-compatible" content="ie=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>Ai...
true
93ced902e2689f7066fc248997e8086f2f0981b2
PHP
dragignaso/sitio1
/funcion.php
UTF-8
190
3.484375
3
[]
no_license
<html> <head> <title>Mis funciones PHP</title> </head> <body> <?phpfuncion mi_funcion($a,$b){ $suma = $a + $b; echo "El resultado es: ".$suma; } mi_funcion(5,4);?> </body> </html>
true
e04801ccffc457e26a9a2b71437b4843bb9c0a8a
PHP
lmao/php
/app/controllers/home.php
UTF-8
259
2.53125
3
[]
no_license
<?php Class Home extends Controller { function index() { $DB = new Database(); $data['result'] = $DB->read("select * from category"); $data['page_title'] = "Home"; $this->view("minim/index",$data); } }
true
0cfbd5de48606c7e135d9039a304c44d3e4f9fe3
PHP
3a4a5a/GitHub
/GitHub/asd/user/actions/profile/EditAction.php
UTF-8
1,343
2.609375
3
[]
no_license
<?php namespace common\modules\user\actions\profile; use common\modules\user\models\forms\EditProfileInfoForm; use yii\web\Response; use common\modules\user\models\User; use yii\widgets\ActiveForm; use Yii; class EditAction extends \yii\base\Action { public function run() { $model = new EditProfileIn...
true
b79aebe02c54f3e7380de94c09e6b55d71ded36e
PHP
DoshiNaman/IANT
/php/practice/variable.php
UTF-8
276
3.6875
4
[]
no_license
<?php $a=56; echo $a; //check datatype echo gettype($a); //set datatype settype($a,"string"); echo gettype($a); echo $a; //mearge two string with concatation $txt1="Hello"; $txt2="WORLD"; echo "<br/>".$txt1." ".$txt2; //ternary operator echo $a>40?"Grater":"Lesser"; ?>
true
cc9f1b15b2e26c885b2afa6b0e0b6fb5343b8278
PHP
asma-akter-mousumi/ecommerce
/classes/product.php
UTF-8
10,054
2.78125
3
[]
no_license
<?php /* include_once '../helper/format.php'; include_once '../lib/database.php'; * For category */ class product { private $fm, $db; public function __construct() { $this->db = new Database(); $this->fm = new format(); } public function add_product($data, $file) { ...
true
6063bd2ab62fc107320bc3766328429a2ea362a2
PHP
sirkenedy/jquery-crud
/engine.php
UTF-8
3,653
2.703125
3
[ "MIT" ]
permissive
<?php include_once("includes/connection.php"); include_once("includes/functions.php"); include_once("includes/session.php"); ?> <?php if(isset($_POST['login'])){ $username = $_POST['username']; $password = $_POST['password']; $query = "SELECT * FROM student WHERE matric_no='$username' || email ='$use...
true
0d87a37aada73f666a9a0c1691cf61f764c5ba08
PHP
shamilabdullin/Otzovik
/src/Service/FileManagerService.php
UTF-8
1,329
2.75
3
[]
no_license
<?php namespace App\Service; use Symfony\Component\Filesystem\Exception\IOExceptionInterface; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\HttpFoundation\File\Exception\FileException; use Symfony\Component\HttpFoundation\File\UploadedFile; class FileManagerService implements FileManagerServic...
true
2d64693a1b1bdb774105e53d25d47ff347bdd319
PHP
iamsd93/TechWiki-ty-2020-Devkar
/login_script.php
UTF-8
1,870
2.59375
3
[ "MIT" ]
permissive
<?php require './includes/common.php'; $email = $_POST['email']; $email = mysqli_real_escape_string($con , $email); $password = $_POST['password']; $password = mysqli_real_escape_string($con , $password); $password = md5($password); $login_select_query = "SELECT id , email from users WHERE...
true
5554f35537c8668994aaf6cc70a1bcff0e593740
PHP
FelipeValencia22/Cine
/xampp/htdocs/cinepolis/bussinesLogic/Pelicula_bl.php
UTF-8
1,460
2.578125
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 Example_bl * * @author Pabhoz */ class Pelicula_bl { public function listarPeliculas() { ...
true
96bff76c8c0ed613e3ac3453ea56414f9d5ee54e
PHP
ValiantLucatero/PHP
/buscarydestruirarreglos.php
UTF-8
1,183
2.984375
3
[]
no_license
<?php $a=array('uno'=>1,'dos'=>2,'tres'=>4); print_r($a); echo'<br/>'; $b=array_change_key_case($a,CASE_UPPER); print_r($b); echo'<br/>'; $c=array_keys($a); print_r($c); echo'<br/>'; $d=array_key_exists('uno',$a); if($d) echo 'existe'; else echo 'no existe'; echo'<br/>'; $e=in_array('2',$a,TRUE); if($e) echo 'si est...
true
22017a4253c65af0936653ec3d50e736968de216
PHP
zamasskin/html-constructor
/src/HtmlConstructor/Tag.php
UTF-8
121
2.671875
3
[ "MIT" ]
permissive
<?php namespace HtmlConstructor; interface Tag { /** * @return string */ public function getName(); }
true
f6a99dfe2f7ad91c2a60c1be437613412ffc3dc3
PHP
BlueBayTravel/deployer
/app/Traits/BroadcastChanges.php
UTF-8
905
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Traits; use App\Events\ModelChanged; use App\Events\ModelCreated; use App\Events\ModelTrashed; /** * A trait to broadcast model changes. */ trait BroadcastChanges { /** * Override the boot method to bind model event listeners. * * @return void */ public static functi...
true
b0c05df6272359b8969da75c1d83449e3b1f957c
PHP
sktgintokii/jpos2015-opensource
/app/protected/models/User.php
UTF-8
1,253
2.515625
3
[]
no_license
<?php class User extends CActiveRecord { public static function model($className = __CLASS__) { return parent::model($className); } public function tableName() { return "tb_user"; } public function attributeLabels() { return array( "user_id" => "id", "user_name" => "ชื่อ", ...
true
67370baa457b895f30e15b55fce37f62d0fee52d
PHP
Chrisfuture12/Website
/YourLegacy/database/database.php
UTF-8
4,784
2.671875
3
[]
no_license
<?php session_start(); $First_Name = ""; $Last_Name = ""; $Email_Phone_Number = ""; $Password = ""; $errors = array(); $verifyEPN = ""; $signupp = array(); $ETH = ""; $Privacy = ""; // connect to the database $db = mysqli_connect("localhost", "root", "ELDrris4PMA","lldb"); // Library ...
true
ba114ee277dd0fcff06da7efbb13faec5216ada4
PHP
kirzan101/laravel101
/app/Http/Requests/EmployeeFormRequest.php
UTF-8
1,535
2.65625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class EmployeeFormRequest extends FormRequest { /** * Determine if the user is authorized to make this request. */ public function authorize(): bool { return true; } /** * Get the validati...
true
3aa6670465e3d6a3dd4c36daad4baaac54c34f26
PHP
softbay-biz/kelladata
/API/Helpers/uploadImage.php
UTF-8
6,065
2.625
3
[]
no_license
<?php function uploadImage($imagesList){ $tab_nom = []; foreach($imagesList as $val){ array_push($tab_nom,imageFromString($val)); } return $tab_nom; } function imageFromString($data){ $repertoireUpload = '../medias/images/'; list($type, $data) = explode(';base64,', $data, 2); $data = s...
true
bf819d1f4136121ef924ff8ee024778902b304d5
PHP
Badgertech/recipe
/addarticle.inc.php
UTF-8
526
2.59375
3
[]
no_license
<?php include "login.inc.php"; $date = date("Y-m-d"); $title = addslashes(htmlspecialchars_decode($_POST['title'])); $article = addslashes(htmlspecialchars_decode($_POST['article'])); $query = "INSERT INTO news (date, title, article) VALUES ('$date', '$title', '$article')"; $result = mysqli_query($dbc, $query); if($r...
true
2b441e73716fb892e863d0d2f1bd16e1092335fc
PHP
lain-Dev/Laboratoire-Code
/TP-simplon/exo-form-php/traitement.php
UTF-8
481
2.640625
3
[]
no_license
<?php session_start(); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>Traitement des données envoyées par formulaire</title> </head> <body> <?php $prenom = htmlspecialchars($_POST["prenom"]); $nom = htmlspecialchars($_POST["nom"]); $_SESSION["prenom"] = $prenom; $_SESSION["nom"] = $nom...
true
45bfe8fd4e8d14c195c5d946ed048c9234dc8a5c
PHP
shisenkon/dep
/calc_stair/getCSV_grao.php
UTF-8
2,354
3.0625
3
[]
no_license
<?php /** * @package GRAO Stair Calc * @version 0.2 * @author Shibkov Konstantin * @link http://grao.biz * @copyright Copyright (c) 2017, Shibkov Konstantin aka sendel (shibkov.k@gmail.com) * @license GNU General Public License version 2 or later; */ ...
true
9b35a7b84e84c659f99d41a484d0b2a12e0d5cbf
PHP
openstate/HNS.dev
/dev/system/record/plugins/OrderablePlugin.class.php
UTF-8
2,729
2.75
3
[]
no_license
<?php require_once 'record/plugins/RecordPlugin.abstract.php'; class OrderablePlugin extends RecordPlugin { protected $max; protected $min; protected $options = array( 'field' => 'ordering', 'fields' => array(), ); public function preInsert(RecordEvent $event) { $field = $this->options['fie...
true
5f876623a964d97e1b5ec9bdab4df58973a2d4a9
PHP
TechFit/myDay
/models/pressureForm.php
UTF-8
709
2.6875
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\models; use yii\base\Model; use Sunra\PhpSimple\HtmlDomParser; class pressureForm extends Model { public $date; public $pressure; public $brain; public static function getAtPressure() { // parse At.pre $parsePressure = HtmlDomParser::file_get_html('http://mete...
true
0e74046116a6b8ed19a602c7e0c87ed5ac255936
PHP
CodsXBlastin/ChangeMOTD
/src/THXC/MOTD/Changer.php
UTF-8
1,664
2.6875
3
[ "MIT" ]
permissive
<?php namespace THXC\MOTD; use pocketmine\event\Listener; use pocketmine\plugin\PluginBase; use pocketmine\utils\Config; use THXC\MOTD\Commands\Change; use THXC\MOTD\Commands\Current; class Changer extends PluginBase implements Listener{ /** @var $config Config */ public $config; private s...
true
9aff32505a9ed5e69629e76c323ac73d91434036
PHP
znframework/fullpack-edition
/Internal/package-zerocore/Config.php
UTF-8
6,302
2.953125
3
[ "MIT" ]
permissive
<?php namespace ZN; /** * ZN PHP Web Framework * * "Simplicity is the ultimate sophistication." ~ Da Vinci * * @package ZN * @license MIT [http://opensource.org/licenses/MIT] * @author Ozan UYKUN [ozan@znframework.com] */ use ZN\Ability\Singleton; class Config { use Singleton; /** * Set confi...
true
00405bdeed76b66830c71031c969152b53681f69
PHP
lenrsmith/universal-analytics
/src/Lenrsmith/UniversalAnalytics/UniversalAnalytics.php
UTF-8
5,943
3.046875
3
[ "MIT" ]
permissive
<?php namespace Lenrsmith\UniversalAnalytics; use Illuminate\View\Environment; use Illuminate\Config\Repository; use Exception; use InvalidArgumentException; class UniversalAnalytics { /** * Laravel application * * @var Illuminate\Foundation\Application */ public $app; /** *...
true
536f207cf9fb0164d85c1dfc2f8cf37bc29bcbce
PHP
lmyoaoa/sail2doc
/api/interface/DocumentsInterface.class.php
UTF-8
5,723
2.65625
3
[]
no_license
<?php class DocumentsInterface { /** * @desc 添加一条文档记录 * @author lmyoaoa * @param array $data post过来的信息 * @return int 自增主键id */ public static function add($data) { $arr = self::formatData($data); $mod = new DocumentsModel(); $id = $mod->add($arr, true); ...
true
074a6c2d501fbf25defd5e9208dfb55fccac4196
PHP
ArturitoGit/tsumarion
/src/features/SendMail.php
UTF-8
1,137
2.796875
3
[]
no_license
<?php class SendMailRequest { public $Expediteur ; public $Message ; public function __construct ($Expediteur,$Message) { $this->Expediteur = $Expediteur ; $this->Message = $Message ; } } class SendMailResult { public $success ; publi...
true
3634e487284127886140ffc3143ea482f77727ca
PHP
zaitcev-ivan/symfony-project
/src/AppBundle/Service/ProductService.php
UTF-8
5,424
2.640625
3
[]
no_license
<?php namespace AppBundle\Service; use AppBundle\Dto\ProductDto; use AppBundle\Dto\ValueDto; use AppBundle\Entity\Photo; use AppBundle\Entity\Product; use AppBundle\Entity\Value; use AppBundle\Repository\BrandRepository; use AppBundle\Repository\CategoryRepository; use AppBundle\Repository\ProductRepository; use Doct...
true
7ceaa6031f314958f30f9f072cb47df3416d44a2
PHP
Danielch45/Web-Scrapping
/app/Http/Controllers/DataController.php
UTF-8
2,035
2.765625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Data; class DataController extends Controller { private function getLink() { $file = fopen("List_Website.csv", 'r'); while(!feof($file)) { $link[] = fgetcsv($file, 0, ','); //fgetcsv returnnya array rownya } fclose($file)...
true
0398cc2dd0210e6e623d12711d8697e892036f03
PHP
tfermm/plymouth-webapp
/webapp/els/includes/ELS.class.php
UTF-8
2,238
2.828125
3
[ "MIT" ]
permissive
<?php /** * API for ELS application. */ class ELS extends BannerObject { static $student_sortby = 'last_name'; /** * Get all accounts with the els_student role. */ public static function getStudents() { $idm = PSU::get('idmobject'); $search = array( array('pa.attribute' => 'els_student'), array('pa...
true
f75eb07a1c138543b8f69eb19befa93cae15e7af
PHP
Tomeno/lulcobang
/classes/boxes/GameBox.php
UTF-8
2,108
2.6875
3
[]
no_license
<?php class GameBox extends AbstractBox { protected $template = 'game.tpl'; protected $game = NULL; protected $room = NULL; protected function setup() { $loggedUser = LoggedUser::whoIsLogged(); MySmarty::assign('loggedUser', $loggedUser); MySmarty::assign('room', $this->room); if ($this->game) { ...
true
5beac0211f908fff747ff7e1b7b9be40eb2de99b
PHP
LeonardoAC28/avendanocr
/Parcial 3/Formulario_Login/php/registro_usuario_be.php
UTF-8
1,296
2.5625
3
[]
no_license
<?php include 'conexion_be.php'; $nombre_completo= $_POST['nombre_completo']; $correo=$_POST['correo']; $usuario=$_POST['usuario']; $contrasena=$_POST['contrasena']; /*encriptar contrasena $contrasena= hash('sha512',$contrasena) */ $query = "INSERT INTO usuarios(nombre_completo,c...
true
59b484e662d162ffaf2af39b7a9078b7bf446a70
PHP
SamirSubedi/Inventory-Management-Sytem
/admin/display.php
UTF-8
2,654
2.640625
3
[]
no_license
<?php require('fpdf/fpdf.php'); $db=new PDO('mysql:host=localhost;dbname=finman','root',''); class PDF extends FPDF { // Page header function Header() { // Logo // Arial bold 15 $this->SetFont('Arial','B',20); // Move to the right $this->Cell(120); // Title $this->Cell(50,10,'NEW NAMASTE I...
true
d524fe35cae1b8e5a3c4399715b581e1580b7d30
PHP
piotrpasich/SlackMessengerBundle
/Model/Team.php
UTF-8
910
2.765625
3
[]
no_license
<?php namespace XTeam\SlackMessengerBundle\Model; use XTeam\SlackMessengerBundle\ValueObject\Name; use XTeam\SlackMessengerBundle\ValueObject\StringId; class Team { /** * ex. C2147483705 * @var Integer */ protected $id; /** * @var String */ protected $domain; public fu...
true
e6855f6752c919c1b2bb097634c4c907e329fb6f
PHP
DanielPinto/Laravel-Angular
/app/Services/ProjectNoteService.php
ISO-8859-1
4,525
2.71875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: w8 * Date: 09/02/2016 * Time: 10:33 */ namespace CodeProject\Services; use CodeProject\Repositories\ProjectNoteRepository; use CodeProject\Validators\ProjectNoteValidator; use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Database\QueryException; use...
true
fe700264c2e82d486188e111b8639fb38beca732
PHP
larkin-keith/smsservice
/src/Mrlian/Smsservice/YunPian.php
UTF-8
3,027
2.828125
3
[]
no_license
<?php namespace Mrlian\Smsservice; use Mrlian\Smsservice\Vendor\SmsInterface; use Mrlian\Smsservice\Vendor\SmsException; use Config; class YunPian implements SmsInterface { /** Api-Key * * @var key */ private $key; /** * Api-Url * * @var url */ private $url; ...
true
73122ec3846a421db3c3732ddd05fcb7f5902c05
PHP
Darklg/GiveMeRGBA
/inc/header.php
UTF-8
1,333
2.5625
3
[]
no_license
<?php $content_css=''; $opacity_dec=25; $color_hexa='CFCFCF'; $mode = 'read'; if ( isset( $_POST['rgba_color'], $_POST['rgba_opacity'] ) && !empty( $_POST['rgba_color'] ) && !empty( $_POST['rgba_opacity'] ) && preg_match( '#^([0-9a-fA-F]{6})$#', $_POST['rgba_color'] ) && ctype_digit( $_POST['rgba_opacity'] ) &&...
true
99d6d89ca92cb16ab66a561e14e5e19fd41301e9
PHP
matiasal55/pw2_php_actividad3
/Ejercicio5/Ejercicio5.php
UTF-8
646
3.71875
4
[]
no_license
<?php class Ejercicio5 { // public function sumatoria($vector){ // $resultado=0; // for($i=0;$i<sizeof($vector);$i++) // $resultado+=$vector[$i]; // return $resultado; // } // public function sumatoria($vector) // { // $resultado=0; // foreach ($vector as $n...
true
b5a7d0c305f0bc6f9607d97cd2d1dbdb37067e53
PHP
devatsrs/neon.service
/app/lib/TicketImportRuleCondition.php
UTF-8
3,347
2.8125
3
[ "MIT" ]
permissive
<?php namespace App\Lib; use Illuminate\Support\Facades\Log; class TicketImportRuleCondition extends \Eloquent { protected $guarded = array("TicketImportRuleConditionID"); protected $table = 'tblTicketImportRuleCondition'; protected $primaryKey = "TicketImportRuleConditionID"; var $field; var $o...
true
a4a76b9f3e14fad6a8db0a90959ebb22d362dd1d
PHP
othmanedendane/Php_Escape_rooms
/login.php
UTF-8
3,776
2.609375
3
[]
no_license
<table width=100% border="1px"> <tr> <td width="50%" align="center"> <img src = "./images/key.png" style = "height:40%;width:60%"> </td> <!-- Formulaire de login --> <td> <h3> Branchez-vous membre! </h3> <form method="post"> <table> <tr><td>Login </td><td>...
true
b7f37235e59bffccef82b10a54441f5aefd421bd
PHP
tanthammar/tall-forms
/src/Exceptions/InvalidArrayFieldType.php
UTF-8
523
2.5625
3
[ "MIT" ]
permissive
<?php namespace Tanthammar\TallForms\Exceptions; class InvalidArrayFieldType extends \Exception { public function __construct($fieldname, $fieldtype, $parenttype) { $lookup = [ 'array' => 'Repeater', 'keyval' => 'Keyval', 'tab' => 'Tab', 'panel' => 'Pa...
true
be660e8be42844adef8b96b953fcebde989e64ce
PHP
Rihabek/footObject
/entities/Stadium.php
UTF-8
2,062
3.203125
3
[]
no_license
<?php namespace Entities; class Stadium extends Entity { /** * @var int */ private $id; /** * @var string */ private $name; /** * @var string */ private $adress; /** * @var string */ private $tel; /** * @var int */ private $capacity; /** * Get the value o...
true
7b8e487618f1d24110429f4ff02fdbf846a9bdb3
PHP
GNUSource/Code
/php-excel/ExcelReadController.php
UTF-8
6,444
3.171875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: admin * Date: 2015/3/5 * Time: 10:53 */ require_once '../lib/PHPExcel/PHPExcel.php'; class ExcelReadController { /** * @var string $filePath excel文件的路径 * @var string $dsn PDO连接时的host和dbName * @var string $username 数据库username * @var string $password...
true
95b9107c3ac77ac6540f5d97b8734c408e609b78
PHP
TomaszSzymczak/Lindley
/Lindley/FilterSets/Helpers/StringsHelper.php
UTF-8
1,211
3.1875
3
[]
no_license
<?php namespace Lindley\FilterSets\Helpers; class StringsHelper { /** * @see https://stackoverflow.com/a/834355 * @return boolean */ public static function startsWith( string $haystack, string $needle ) { $length = strlen( $needle ); return ( substr( $haystack, 0, $length...
true
b4187ad08d25a811a2be5ceb3491b136c72aabd0
PHP
barryokane/RHoK-playgroundideas-app-api
/helpers.php
UTF-8
1,619
2.828125
3
[]
no_license
<?php function ReturnData($key, $value) { if ($value == null) { ReturnErrorData('not found'); } else { $response = array( 'status' => true, 'message' => 'Success', $key => $value); echo json_encode($response); } } function ReturnErrorData($message) { $response = array( 'status' => false, 'me...
true
780c9cb5e9e8b4286cf396acb3df24c88b86f5ad
PHP
shoknut/development
/PainterSVGTest/Ellipse.php
UTF-8
537
3.4375
3
[]
no_license
<?php class Ellipse extends Shape{ protected $rayon; public function __construct(){ parent::__construct(); $this->rayon = 0; } // chaque forme a sa propre fonction Draw() et recoit l'instance du SvgRenderer public function draw($svgRenderer){ // la fonction draw appelle la fonction du renderer dont ell...
true
8372482194083901608e505a8adf5f3e789d01cc
PHP
Jovry-Lee/PhpStudy
/DataStructure/Tree/AVLTree/AVLTreeNode.php
UTF-8
1,989
3.53125
4
[]
no_license
<?php /** * 平衡二叉树结点。 */ namespace DataStructure\Tree\AVLTree; /** * AVL树结点。 */ class AVLTreeNode { /** @var Integer $value*/ public $value; /** @var Integer $height*/ public $height; /** @var AVLTreeNode $leftChild*/ public $leftChild; /** @var AVLTreeNode $rightChild*/ public $righ...
true
28894bf6106c09a3d3bf2b934efa922aa0513cdc
PHP
andsens/MySQLi_Classes
/MySQLi_Classes/Statements/SelectStatement.class.php
UTF-8
1,581
2.984375
3
[]
no_license
<?php namespace MySQLi_Classes\Statements; use MySQLi_Classes\Exceptions\Assertion\TooFewResultingRowsException; use MySQLi_Classes\Exceptions\Assertion\TooManyResultingRowsException; class SelectStatement extends Statement { private $assertResultingRows = null; protected static $queryTypeRegexp = '/^SELECT/'; ...
true
312ea57977eeba1bba5a9f1169526a6cccf88de1
PHP
Fliw/WebDevs19
/Backend/Bagas/Tugas1.php
UTF-8
217
3.203125
3
[]
no_license
<?php echo "Hallo WebDevs19<br>"; $x = 3; $y = 2; echo 'hasil dari x + y = '.($x+$y); echo "<br/>"; if ($x<$y) { echo " 10 lebih besar daripada 5 <br> "; } else { echo " 5 lebih kecil daripada 10 <br>"; } ?>
true
8c49f8b7816b43f2058f14695fe964b6b1b42a46
PHP
emaphp/eMacros
/tests/eMacros/ValueTest.php
UTF-8
1,870
2.921875
3
[ "BSD-2-Clause" ]
permissive
<?php namespace eMacros; use eMacros\Program\Program; /** * * @author emaphp * @group value */ class ValueTest extends eMacrosTest { /** * @expectedException BadFunctionCallException */ public function testValueSet0() { $program = new Program('(:=)'); $result = $program->execute(self::$env); } /** ...
true
82bb2da33d5a6c551738eda5893bc2c7aafe5229
PHP
LorenzoAlu/blog_informazione
/app/Providers/AppServiceProvider.php
UTF-8
1,799
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Providers; use App\Models\Tag; use App\Models\Category; // use Illuminate\Support\Collection; use Illuminate\Pagination\Paginator; use Illuminate\Support\Facades\View; use Illuminate\Support\Facades\Schema; use Illuminate\Support\ServiceProvider; // use Illuminate\Pagination\LengthAwarePaginator; ...
true
8332ed45434e1cde6cdff532bfc12c2adc342713
PHP
PetrBisof/bootcamp-exercises
/day27-laravel/morning_exercise/src/api/Games.php
UTF-8
514
2.921875
3
[]
no_license
<?php class Games { public $id = null; public $name = null; public $image_url = null; public $description = null; public $rating = null; public $released_at = null; public function fromArray($array) { $this->id = $array['id']; $this->name = $array['name']; $thi...
true
b14e108c3457b7f7a8a4f70b84cda45b746f3f17
PHP
alexwallax/hcode
/operadores/operadoresEx10.php
UTF-8
147
3.140625
3
[]
no_license
<?php $a = 50; $b = 60; // testa se $a for maior mostra 1 se for iguais tras 0 se $b for maior mostra -1 var_dump($a <=> $b); ?>
true
476d2848e682510181835352b24fbe4a0e347f42
PHP
thehungrycoder225/BMIS_SC
/controller/functions.php
UTF-8
51,588
3.296875
3
[]
no_license
<?php //date_default_timezone_set("Asia/Manila"); //Get File Extension. //this is for the connection for sending sms messages function is_connected() { $connected = @fsockopen("www.google.com", 80); //website, port (try 80 or 443) if ($connected){ $is_conn = true; //action when connected fclose($conne...
true
75b9d81c006ca753e1d5ad52d9088d28b380b8bd
PHP
matinjun/store
/phpfile/select_table.php
UTF-8
3,395
2.6875
3
[]
no_license
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>all tables</title> <style> table{table-layout: auto | fixed;} td{whit...
true
83d69880e1f77db4786b0ac8a01c35775c19101d
PHP
sailthru/sailthru-magento2-extension
/Observer/ConfigSave.php
UTF-8
1,679
2.53125
3
[]
no_license
<?php namespace Sailthru\MageSail\Observer; use Magento\Framework\App\Config\Storage\WriterInterface; use Magento\Framework\App\RequestInterface; use Magento\Framework\Event\Observer; use Magento\Framework\Event\ObserverInterface; use Sailthru\MageSail\Helper\Settings; use Sailthru\MageSail\Model\Config\Template\Data...
true
9b4d72e9e4b664d24642bbc4c4b9bdd0ad56d044
PHP
flashdevmathong/ci3
/application/models/Authenticated.php
UTF-8
759
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Authenticated extends CI_Model { public function __construct() { parent::__construct(); if(!$this->session->has_userdata('authenticated')) { $this->session->set_flashdata('status','Login First'); redirect(base_url('login')); } ...
true
b9365a29886c578b8e390cee9c0e7e653cc1c488
PHP
yjtec/php-sdk-cloud
/src/Request/RpcRequest.php
UTF-8
1,515
2.78125
3
[]
no_license
<?php namespace YjtecCloud\Client\Request; use Hprose\Socket\Client; use YjtecCloud\Client\Traits\DetectsLostConnections; class RpcRequest extends Request { use DetectsLostConnections; /** * @throws ClientException * @throws Exception */ private $clients; private $tryAgainTimes = 2 ; private $tryAgai...
true
23a442a8ecd3a12edf0834d1fcb54040156ea64d
PHP
iseries/SwagBackendOrder
/Components/CustomerInformationHandler.php
UTF-8
8,493
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php use Doctrine\ORM\Query\Expr\Join; class Shopware_Components_CustomerInformationHandler extends Enlight_Class { /** * @param string $customerId * @return array */ public function getCustomer($customerId) { $builder = $this->getCustomerQueryBuilder(); $builder->setParame...
true
6005522c3c30878eb6c200835334fb714b4daff4
PHP
Muqsit/TebexAPI
/src/muqsit/tebexapi/connection/handler/TebexConnectionHandler.php
UTF-8
558
2.546875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace muqsit\tebexapi\connection\handler; use muqsit\tebexapi\connection\request\TebexRequestHolder; use muqsit\tebexapi\connection\response\TebexResponse; use muqsit\tebexapi\connection\response\TebexResponseHolder; interface TebexConnectionHandler{ /** * @param TebexRequestH...
true
043158555abe302f874c53c9a8e2b466467fb24d
PHP
UnbreakableEdu/UMLPOO
/atividade/Data.php
UTF-8
534
3.15625
3
[]
no_license
<?php class Data{ private $dia; private $mes; private $ano; public function __construct($dia,$mes,$ano){ $this->dia = $dia; $this->mes = $mes; $this->ano = $ano; } public function getDia() { return $this->dia; } public function getMes() { ...
true
c35b40c81ce20945dd5b22107d5e37685da03181
PHP
paengski13/parcel-api
/app/Helpers/Interfaces/Weight.php
UTF-8
747
3.21875
3
[]
no_license
<?php namespace App\Helpers\Interfaces; class Weight implements Standards { protected $valuePerUnit; protected $unit; /** * Weight constructor. * @param $valuePerUnit * @param $unit */ public function __construct($valuePerUnit = 0, $unit = 0) { $this->valuePerUnit = $v...
true
a02c85fb3af307b1cc72ac179135948a3cdc915e
PHP
2020lexx/AJS_JIT
/YII_JIT/common/models/PRO/ProProduct.php
UTF-8
5,619
2.515625
3
[]
no_license
<?php namespace common\models\PRO; use Yii; /** * This is the model class for table "pro_product". * * @property integer $id * @property string $code * @property integer $parentID * @property string $name * @property integer $category * @property integer $type * @property string $short_desc * @property str...
true
f6d5d08505c42342ea08781f1370dd91866fbfc2
PHP
RonandoL/rectangle-PHP-Composer
/src/rectangle.php
UTF-8
989
4.09375
4
[]
no_license
<?php class Rectangle // Class Declaration { private $length; // made these private private $width; function __construct($side_length, $side_width) { $this->length = $side_length; $this->width = $side_width; } function isSquare() // method to calculate if square boolean ...
true
6ca5721e4acdec19c6d395c418879be122051f34
PHP
kazuw0401/php-skillup2
/data/chapter12/session_delete.php
UTF-8
532
2.78125
3
[]
no_license
<?php session_start(); $_SESSION = array(); $session_name = session_name(); if(isset($_COOKIE[$session_name]) === true) { setcookie($session_name, '', time() - 3600); } session_destroy(); var_dump($_SESSION); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content...
true
46434439cf9fd7f6181c1549b445c8fa37ac675c
PHP
lpav71/accounting
/app/Http/Controllers/ProductCharacteristicController.php
UTF-8
3,622
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\ProductCharacteristic; use Illuminate\Validation\Rule; class ProductCharacteristicController extends Controller { /** * ProductCharacteristicController constructor. */ public function __construct() { $this->middl...
true
40593cf94fb165c2dbbc525ad27413e53b7a6679
PHP
loganetherton/samples
/valuepad-backend/app/Core/Assignee/Interfaces/CoverageInterface.php
UTF-8
572
2.640625
3
[]
no_license
<?php namespace ValuePad\Core\Assignee\Interfaces; use ValuePad\Core\Location\Entities\County; interface CoverageInterface { /** * @param County $county */ public function setCounty(County $county); /** * @return County */ public function getCounty(); /** * @param string ...
true
ebd81053d61fcbea3350da3608620d6dfd0ce9a0
PHP
ksowa/HtmlTokenizer
/tests/Tokens/PhpTest.php
UTF-8
1,857
2.9375
3
[ "MIT" ]
permissive
<?php namespace Kevintweber\HtmlTokenizer\Tests\Tokens; use Kevintweber\HtmlTokenizer\Tokens\Php; use PHPUnit\Framework\TestCase; class PhpTest extends TestCase { /** * @dataProvider parseDataProvider */ public function testParse($html, $expectedValue, $expectedRemainingHtml) { $php = n...
true
9752b506be1ba685b0219ceaf2f6de5e278d2ea0
PHP
NaszvadiG/acz-shop
/application/controllers/Category.php
UTF-8
5,131
2.59375
3
[]
no_license
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Category extends MY_Controller { public function __construct() { parent::__construct(); } public function index() { $this->user_is_logged_in('category'); $this->load->model('category_model'); $categories = $this->category_mod...
true
a869458e35c07726654bd3bf6929e0191c787a8f
PHP
Kell-Tainer/AMAM
/application/helpers/debug_helper.php
UTF-8
335
2.875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * DEBUG DEBUG DEBUG * @param array $array * @param boolean $exit */ function debug($array, $exit = true) { echo '<pre>'; print_r($array); echo '</pre>'; if ($exit) ...
true
5ff4600ba0c4f0bbb98fce488f85d44e4f917525
PHP
rubyqorn/telegram-bot
/kernel/debug/Debug.php
UTF-8
531
3.15625
3
[]
no_license
<?php namespace Kernel\Debugger; class Debug { /** * Log in console passed items * * @param string $item * * @return string */ public static function inConsole(string $item) { file_put_contents('php://stdout', $item); } /** * Log in browser window p...
true
c03f30416ac90d20ca4b97020d3d695b25c0ffc9
PHP
ejacky/crm-yii
/crm/protected/models/Staff.php
UTF-8
1,957
2.65625
3
[]
no_license
<?php class Staff extends CActiveRecord { public $position; /** * * @param type $className * @return Category */ public static function model($className=__class__) { return parent::model($className); } public function tableName() { return 'co_staff'; } public function relations() { return arr...
true
113afeb786d385f8bbfc2f3c56267b7d03227a8b
PHP
aleksejjlatukhin/site.startup
/models/TypesAccessToExpertise.php
UTF-8
4,047
3
3
[]
permissive
<?php namespace app\models; use yii\db\ActiveQuery; use yii\db\ActiveRecord; /** * Класс хранит данные о типах экпертиз по проекту назначенные эксперту * * Class TypesAccessToExpertise * @property int id * @property int user_id * @property int project_id * @property int communication_id * @property string t...
true
04f5dc382d86248a6fdca4b668752dddc002bb48
PHP
russo-ragazzone/redis-tests
/tests/replication.php
UTF-8
1,190
2.640625
3
[]
no_license
<?php //require_once('connector.php'); for ($x = 1; $x < 50; $x++) { switch ($pid = pcntl_fork()) { case -1: // @fail die('Fork failed'); break; case 0: // @child: Include() misbehaving code here print "FORK: Child #{$x} preparing to nuke...\n"; connector(...
true
338c928aa4b5aef5b50f866f12757ad632f0f190
PHP
mkabischev/pretty-source
/src/PrettySource/Prettifier/Json.php
UTF-8
1,779
3.015625
3
[]
no_license
<?php namespace PrettySource\Prettifier; use Seld\JsonLint\JsonParser; class Json implements PrettifierInterface { /** * Returns supported format * * @return string */ public function getFormat() { return 'json'; } /** * Detects if input matches to current form...
true
80282e071654b2b8bd7907c0295ca5c79251bf50
PHP
onzra/CakeRateLimiter
/Controller/Component/RateLimiterComponent.php
UTF-8
11,112
2.546875
3
[ "MIT" ]
permissive
<?php /** * RateLimiting support for CakePHP * * ONZRA: Enterprise Development * Copyright 2012, ONZRA LLC (http://www.ONZRA.com) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2012, ONZRA LLC (http://www.ONZRA.com) * @link ...
true
fbb56fce21034e89ba707168c4db064735756619
PHP
dolzenko/gennadiy-dolzhenko.ru
/guestbook/includes/views.php
WINDOWS-1252
8,752
2.703125
3
[]
no_license
<?php /**************************************************************************** * DRBGuestbook * http://www.dbscripts.net/guestbook/ * * Copyright 2007-2008 Don B ****************************************************************************/ $GUESTBOOK_URL_PATH = "."; $DEMO_MODE = FALSE; function show_entry...
true
6c451071c4b8546ba0182ac29615b1907144dab1
PHP
chikymanzanares/yoda
/tests/Unit/YodaBot/Domain/Entities/Movie/MovieCollectionTest.php
UTF-8
637
2.546875
3
[]
no_license
<?php namespace Tests\Unit\YodaBot\Domain\Entities\Movie; use Inbenta\YodaBot\Domain\Entities\Movie\MovieCollection; use Inbenta\YodaBot\Domain\Entities\Movie\MovieFactory; use PHPUnit\Framework\TestCase; class MovieCollectionTest extends TestCase { public function testBasicTest() { $collection = (ne...
true
da5bb867d3df1241183aec0d98eb464fbd073d6b
PHP
dmvdbrugge/csv2qif
/src/File/CsvReader.php
UTF-8
1,386
2.90625
3
[ "MIT" ]
permissive
<?php namespace Csv2Qif\File; use Csv2Qif\Event\Hook; use Csv2Qif\Transactions\IngTransaction; use Generator; use function fgetcsv; use function str_getcsv; class CsvReader extends File { public const TRANSACTION_READ = 'CsvReader::transactionRead'; /** @var Hook */ private $hook; public function ...
true
374c6372b1f005fc68a42ab283db70bd313e0b77
PHP
josefbenjac/neonizer
/src/Encoder/JsonEncoder.php
UTF-8
281
2.640625
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace Contributte\Neonizer\Encoder; class JsonEncoder implements IEncoder { /** * @param mixed[] $value * @return string|NULL */ public function encode(array $value): ?string { return json_encode($value, JSON_PRETTY_PRINT); } }
true
f8510bae31bae216b7b4d5c13fb28bfe07f42143
PHP
sasmitoh/buku-meningkatkan-skill-pemrograman-web
/php/array-assigment.php
UTF-8
733
3.265625
3
[]
no_license
<?php // $nsc = array("sasmitoh", "khalis", "tulasi"); // $nsc[0] = "khalis"; // $nsc[1] = "tulasi"; // $nsc[2] = "uswah"; // echo "ini adalah anggota nsc : " .$nsc[0]. ", " .$nsc[1]. " and ". $nsc[2] . "."; $nsc = array('nama' =>'sas' ,'umur' => 25 ); echo "ini data : ". $nsc['nama']. "<br />" . $nsc['umur']; //...
true
120b9b8b445f55e696eed5732067eb160fe60bb2
PHP
MohammadRafik/Explorer-earth
/detail.php
UTF-8
3,193
2.59375
3
[]
no_license
<?php include 'ImportantComponents/header.php'; ?> <script> $(document).ready(function(){ $('textarea').each(function () { this.setAttribute('style', 'height:' + (this.scrollHeight) + 'px;overflow-y:hidden;'); }).on('input', function () { this.style.height = 'auto'; this.style.height = (this.scroll...
true
5cdc26c51378fcaecd36d1077945264d601a62bf
PHP
colarpaul/intranet_pi
/app/Http/Controllers/EmployeesController.php
UTF-8
12,719
2.734375
3
[]
no_license
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Response; use App\Http\Helpers\Helper as Helper; use App\Http\Models\Employees as Employees; class EmployeesController extends Controller { /** * Create a new controller instance. * * @return void ...
true
56ef643274747e84e29455646d44578f6867535b
PHP
viorelmarian/Training
/index.php
UTF-8
938
2.625
3
[]
no_license
<?php require_once 'common.php'; if(isset($_REQUEST['id'])) { $_SESSION['cart'][] = $_REQUEST['id']; } ?> <html> <head> <link rel="stylesheet" href="css/index.css"> </head> <body> <a href="cart.php"> <button><?= translate('Go to cart') ?></button> </a> ...
true
66872bf1ae38e91c2370f91fbb32db2d5aac4b48
PHP
Web82-Thom/ThomasOrta
/view/formUpdateComment.php
UTF-8
1,038
2.515625
3
[ "MIT" ]
permissive
<?php $title = "modification des Commentaires"; ?> <?php ob_start(); ?> <?php foreach ($comments as $comment) { ?> <div id="form"> <form method="POST" action="index.php?objet=post&action=updateComment&id=<?= $comment->getId(); ?>&postId=<?= $comment->getPostId(); ?>"> <h2 id="formTitle">Modifi...
true
f78a9c24c68de964f1b34cce0deae4aa48673237
PHP
zmaren/redit-api
/src/Entities/User/UI/API/Requests/RegisterUserRequest.php
UTF-8
534
2.59375
3
[ "MIT" ]
permissive
<?php namespace Eyesee\Entities\User\UI\API\Requests; use JetBrains\PhpStorm\ArrayShape; use Eyesee\System\Requests\Request; /** * Class RegisterUserRequest * @package Entities\User\UI\API\Requests */ class RegisterUserRequest extends Request { #[ArrayShape(['email' => "string", 'password' => "string", 'name'...
true
dfdaca83449ed1e634ce1ed42e38c4ce534e6f5c
PHP
cdtec-cl/back-end-v2
/app/Console/Commands/CloneByFarmIrrigationsVolumes.php
UTF-8
6,902
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Illuminate\Support\Facades\Log; use GuzzleHttp\Client; use App\Farm; use App\Irrigation; use App\Zone; use App\Pump_system; use App\Volume; use Carbon\Carbon; use App\CloningErrors; class CloneByFarmIrrigationsVolumes extends Command { /** ...
true
fe8dea9cc701a29a1da9cd5271abf2d89f038da3
PHP
circlecloud/php-docker-api
/src/Containers.php
UTF-8
1,378
2.625
3
[ "Apache-2.0" ]
permissive
<?php namespace CircleCloud\DockerAPI; class Containers { /** * @var Client */ private $client; public function __construct(Client $client) { $this->client = $client; } public function create($name, $options) { return $this->client->post("/containers/create?name...
true
e5d266342c32ba6d66b1593bc0f7147d4a51b264
PHP
Johnmichaelyabut/WebProgramming2
/johnmichaelyabut(WebProgramming2)/mid.php
UTF-8
1,463
2.65625
3
[]
no_license
<?php /* * building connection to cobfig.php * calling function in MessageDAO.php */ include "config.php"; $rows = MessageDAO::getAllMessages(); ?> <html> <link rel="stylesheet" type="text/css" href="css/bootstrap.css"> <head> <title>GuestBook</title> </head> <body> <div class = "span11 well" style = "ma...
true
396df755b07720ddaf7df821fea66947ed4ed5df
PHP
2017JosePablo/Paradigmas
/data/pastoCorteData.php
UTF-8
2,444
2.9375
3
[]
no_license
<?php class PastoCorteData extends Data{ require_once 'data.php'; private $data; function PastoCorteData(){ $data= new Data(); } public function insertarTBPastoCorte($pastoCorte){ $conn = new mysqli($this->data->getServidor(), $this->data->getUsuario(), $this->data->getContrasena(), $this->data->getDbNombre(...
true
ac4e98e7aedfd4d6eb393d293c59ec31bc48a54d
PHP
phuocvo1101/QuanLySinhVien1
/model/BookModel.php
UTF-8
1,738
2.9375
3
[]
no_license
<?php class BookModel extends Database { public function BookModel() { $this->host = 'localhost'; $this->user = 'root'; $this->db = 'dethi'; $this->pass = ''; parent::__construct(); } public function getBookList() { $query = 'SELECT id,title,author,description FROM book'; $this->setQuery($query)...
true
a3ff26aeb2b2a6f794a0ab2258c536470eeef2df
PHP
kutpenco/XML-Parser
/models/Animal.php
UTF-8
10,588
3.484375
3
[]
no_license
<?php namespace models; /** * Contain methods for storing animals in database. GET|UPDATE|INSERT options * @author Krasimir Kostadinov */ class Animal { /** * Properties from XML element */ private $id = null, $_category = '', $_subcategory = '', ...
true