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
f6948fdcd950cb8435ef662254f933fdbad4dfed
PHP
sandroguedes/movies_cms
/details.php
UTF-8
1,087
2.71875
3
[]
no_license
<?php require_once 'load.php'; if(isset($_GET['id'])){ $id = $_GET['id']; $movie = getSingleMovie($id); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Welcome to the...
true
1d9909079d7c95010bf8ef33678450d9016230bb
PHP
EduardoATC/PHP-Laravel-API-Library
/database/seeds/BookTableSeeder.php
UTF-8
623
2.75
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Book; class BookTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $faker = \Faker\Factory::create(); $genero = ['horror', 'drama', 'ficcion', 'investigacion','ave...
true
b9fe70b46f8b96f073b03c66fb1014b6db310535
PHP
ChrGriffin/vehikl-coding-challenge
/database/seeds/PaymentsTableSeeder.php
UTF-8
843
2.8125
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Seeder; use App\Entities\{ Ticket, Payment }; class PaymentsTableSeeder extends Seeder { /** * The minimum number of payments to seed. * * @var int */ protected $minPayments = 2; /** * The maximum number of payments to seed. Will not exceed ticket co...
true
dd622bbfb8a2d618dbfda719ac851e8b454d7a1a
PHP
weber-cs-org/cs4350-hw04
/tests/UserTest.php
UTF-8
1,431
2.6875
3
[ "MIT" ]
permissive
<?php class UserTest extends \PHPUnit_Framework_TestCase { public function testUsersEmptyArgumentsException() { // arrange $actual = null; $expected = "empty arguments"; // act try { new \App\Domain\User("",""); } catch(\Exception $e) { $a...
true
7990eca82b0b23be88c4d284649a06e7328746ae
PHP
emiberea/fii-min-homework1
/src/MIN/AppBundle/Model/Functions/CosFunction.php
UTF-8
695
3.21875
3
[]
no_license
<?php namespace MIN\AppBundle\Model\Functions; use MIN\AppBundle\Model\Expression\FloatExpressionInterface; use MIN\AppBundle\Model\Operand\OperandInterface; class CosFunction implements OperandInterface { /** @var FloatExpressionInterface $operand */ private $operand; /** * @param FloatExpressionI...
true
4243fa320da7b7fadc5d50c2885d9dc73ace8a9f
PHP
pawandalal123/silvercity
/admin/application/helpers/custom_helper.php
UTF-8
1,103
2.578125
3
[ "MIT" ]
permissive
<?php function asset_url($url) { return base_url('assets/' . $url); } if(!function_exists('date_formats')){ function date_formats($date) { return date('d-m-Y',strtotime($date)); } } if(!function_exists('month_format')){ function month_format($date) { return date('M',strtotime($date)); } } if(...
true
d7a3ec875953fa4c642581eaac08270cce3297fc
PHP
Project-NSX/CIS_Software-Hut-Main-Project--PHP-HTML-CSS-Bootstrap
/create_va.php
UTF-8
8,450
2.671875
3
[]
no_license
<!-- Variable used to highlight the appropriate button on the navbar --> <?php $page = 'CVa'; require 'includes/header.php'; require 'includes/deny_hr_role.php'; // Redirects users with the "Human Resources" role to prevent access to this page require 'includes/deny_va_role.php'; // Redirect visiting academics to preve...
true
1f9f14ba7a50a3d2989e345bd1282fa13d3a4f5e
PHP
Gerfey/laravel-domain-skeleton
/src/Console/LaravelDomainSkeletonCommand.php
UTF-8
849
2.765625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Gerfey\LaravelDomainSkeleton\Console; use Exception; use Gerfey\LaravelDomainSkeleton\LaravelDomainSkeleton; use Illuminate\Console\Command; class LaravelDomainSkeletonCommand extends Command { /** * @var string */ protected $signature = 'make:skeleton:domain {domainName}'; /**...
true
c56786984b548e684b58a5d7b2a78d6be879553b
PHP
Poniverse/poniverse-php
/src/Poniverse/Api/Resource/Resource.php
UTF-8
283
2.515625
3
[ "MIT" ]
permissive
<?php namespace Poniverse\Api\Resource; use Poniverse\Api\Poniverse; abstract class Resource { /** * @var \Poniverse\Api\Poniverse */ protected $poniverse; public function __construct(Poniverse $poniverse) { $this->poniverse = $poniverse; } }
true
46bff5384387eb53710e9b4968e7d33b642dc1d0
PHP
fabbydesign/pdo
/db.php
UTF-8
1,893
3.375
3
[]
no_license
<?php class db{ protected static $_instance;//use inside protected $conn; public static function instance($conn=null){ if(self::$_instance instanceof db){ return self::$_instance; } else{ return self::$_instance = new db($conn); } } ...
true
54b5885e4fd45e19c46d3fdb7240bff3812b4e86
PHP
truongtronghai/shortenedUrl
/app/Http/Middleware/GetCurrentLanguage.php
UTF-8
1,056
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\App; /** * Middleware nay dung de chuyen doi Ngon ngu bang cach ghi nho trong Session * Middleware nay can register trong Kernel.php tai group Middle la web thi moi hoat dong. * Chua biet ly do vi sao nhung co the lien quan den Auth ...
true
5a17ee8ea0e78b8b55e07a4c5766c991c586ec5c
PHP
rueduphp/octo
/lib/pop3.php
UTF-8
17,109
2.765625
3
[ "MIT" ]
permissive
<?php namespace Octo; class Pop3 { public $ERROR = ''; public $TIMEOUT = 60; public $COUNT = -1; public $BUFFER = 512; public $FP = ''; public $MAILSERVER = ''; public $DEBUG = FALSE; public $BANNER = ''; ...
true
a24fc1ca7fdc9f3d052cedfe3ea32e76203c1bde
PHP
michaelrove901/ACME
/Models/M_propietario.php
UTF-8
2,501
2.90625
3
[]
no_license
<?php include 'Database/Conexion.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 M_propietario * * @author Michael Rodriguez */ class M_propietario { ...
true
0f15299e3c8acfa6ef0926a68a1d7b2bbb7b8dd1
PHP
nichagiro/angel-clases-laravel
/app/View/Components/AlertPhones.php
UTF-8
973
2.734375
3
[ "MIT" ]
permissive
<?php namespace App\View\Components; use Illuminate\View\Component; class AlertPhones extends Component { /** * Create a new component instance. * * @return void */ public $status; public $bg; public $msg; public function __construct($status='') { $this->status =...
true
5c47b49121f054bdaa4db3672571cfacd7901151
PHP
remolacho/cablen
/app/session/modelo/PreguntaDao.php
UTF-8
1,387
2.671875
3
[]
no_license
<?php require_once("../../../helppers/Conexion.php"); require("Pregunta.php"); class PreguntaDao extends Conexion{ private $cnn; private $objPregunta; public function guardar($ObjQ){ } public function actualizar($ObjQ){ } public function eliminar($argId){ } public f...
true
2cc066627cb8bd39e556f1ce17fd37edd9f9b271
PHP
sietepuentes/ifd-templates
/dev/prog/frm/core/Jota.php
UTF-8
2,470
2.71875
3
[]
no_license
<?php /** * Esta clase estatica, posee funciones basicas para el funcionamiento del * "Framework Jota" * * @author dami */ class Jota { const PATH_CLASES= "prog/app/mcc/clases"; const PATH_HELPERS= "prog/frm/helpers"; const PATH_LIBS= "prog/frm/lib"; public static function getUrl($https= fal...
true
e8bb8db2c86a02be8fc9778d72db58b3ee9d0a8f
PHP
vinku89/playapi
/packages/contus/audio/src/Contracts/IArtistRepository.php
UTF-8
900
2.6875
3
[ "Apache-2.0", "MIT" ]
permissive
<?php /** * Implements of IArtistRepository * * Inteface for implementing the ArtistRepository modules and functions * * @name IArtistRepository * @version 1.0 * @author Contus<developers@contus.in> * @copyright Copyright (C) 2016 Contus. All rights reserved. * @license GNU General Public ...
true
25be76c0e8d77c33fb3d5ce2bf0f20166fc66032
PHP
jensfreudenau/dola
/app/Services/PageService.php
UTF-8
1,110
2.65625
3
[]
no_license
<?php /** * Created by IntelliJ IDEA. * User: jensfreudenau * Date: 02.03.18 * Time: 10:46 */ namespace App\Services; use App\Repositories\Ageclass\AgeclassRepositoryInterface; use App\Repositories\Page\PageRepositoryInterface; use Illuminate\Support\Carbon; class PageService { /** @var $ageRange */ pro...
true
4428e9f06998f23bb44f084729ec26d7c11bb7f4
PHP
jsnow0177/Phonebook
/Classes/DB.php
UTF-8
983
3.140625
3
[]
no_license
<?php namespace JSnow\Classes; class DB { /** * @var null|DB */ private static $db = null; /** * @var \PDO */ private $_connection; /** * @return DB */ public static function getInstance() { if(is_null(self::$db)){ self::$db = new self();...
true
7a563a0aa07a5d9bffd62b66660f4a2ab122afa4
PHP
luigif/WsdlToPhp
/samples/sharepoint-search/Query/Response/SPSearchTypeQueryExResponse.php
UTF-8
1,021
2.75
3
[]
no_license
<?php /** * Class file for SPSearchTypeQueryExResponse * @date 06/07/2012 */ /** * Class SPSearchTypeQueryExResponse * @date 06/07/2012 */ class SPSearchTypeQueryExResponse extends SPSearchWsdlClass { /** * The QueryExResult * @var SPSearchTypeQueryExResult */ public $QueryExResult; /** * Constructor ...
true
1a65d84bd1cd0e610742c12f431c17127576dab3
PHP
vallendito/Codeigniter-CRUD
/application/models/mbarang.php
UTF-8
1,665
2.515625
3
[]
no_license
<?php class Mbarang extends CI_Model { var $tabel = 'pegawai'; function __construct() { parent::__construct(); } function get_allbarang() { return $this->db->query("SELECT status,pegawai.nama as nama_peg, kota.nama as nama_kota, kelamin.nama as nama_kel, posisi.nama as nama_posis...
true
cd79bb8ba991e7345d2cb66fb7095c339482c467
PHP
Proper22/hafizilib
/iki-kelime-arasi.php
UTF-8
541
3.234375
3
[]
no_license
<?php // İki kelime arasındaki kelimeyi alma fonksiyonu. // Örneğin "Ali Ata Bak" cümlesindeki "Ata"yı almaya yarar. // BBCode yaparken çok işe yarıyor function get_string_between($string, $start, $end){ $string = ' ' . $string; $ini = strpos($string, $start); if ($ini == 0) return ''; $ini += strlen(...
true
c354e215121f4f683169db768a72a613788a6f95
PHP
saromazm/mnx
/app/Utilities/fakerBuildingNames.php
UTF-8
6,002
2.53125
3
[]
no_license
<?php /** * File: fakerBuildingNames.php | Package: monoux * * Author: Miguel Zamora Serrano <mzamoras@backlogics.com> * Created: 21 Jan, 2017 | 4:42 AM * * This file is part of a package and all the information, intellectual * and technical concepts contained here are proper...
true
50beaef7ad8d9eda971a23231f8add2f95614965
PHP
danielmiquiles/api-animes
/app/Controllers/Usuarios.php
UTF-8
3,381
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Controllers; // use CodeIgniter\RESTful\ResourceController; // use CodeIgniter\API\ResponseTrait; // use Exception; // use Firebase\JWT\JWT; use CodeIgniter\HTTP\Response; use CodeIgniter\HTTP\ResponseInterface; use CodeIgniter\RESTful\ResourceController; use CodeIgniter\API\ResponseTrait; use Ex...
true
b9f4d5093c18dfd822ac880831cc1bd7f8e59e5f
PHP
MDSplus/mdsplus
/php/shot_display.php
UTF-8
2,565
2.703125
3
[ "BSD-2-Clause" ]
permissive
<?php //Include the code include('PHPlot.php'); if (!isset($_GET['plot'])) { if (!extension_loaded('mdsplus')){dl('mdsplus.so');} $handle=mdsplus_connect('alcdata'); mdsplus_open($handle,'waveforms',$_GET['shot']); $signals=mdsplus_value($handle,'GETNCI("*","NODE_NAME")'); $numsigs=count($signals); $numplot...
true
38cadf9fd5d7e9697c3d79e09fe5121790ac97d7
PHP
stevevovchyna/camagru
/models/pagination.php
UTF-8
504
2.75
3
[]
no_license
<?php $no_of_records_per_page = 5; $query = "SELECT * FROM posts"; $statement = $pdo->prepare($query); $statement->execute(); $post = $statement->fetchAll(PDO::FETCH_ASSOC); $row_count = $statement->rowCount(); $total_pages = ceil($row_count / $no_of_records_per_page); if (isset($_GET['pageno'])) { $pageno = $_GET[...
true
9831b5b298edd806d04031c32a0dce491f7deafe
PHP
inwinstack/owncloud_files_external_moe
/lib/etagpropagator.php
UTF-8
4,317
2.515625
3
[]
no_license
<?php /** * @author Morris Jobke <hey@morrisjobke.de> * @author Robin Appelman <icewind@owncloud.com> * @author Vincent Petry <pvince81@owncloud.com> * * @copyright Copyright (c) 2015, ownCloud, Inc. * @license AGPL-3.0 * * This code is free software: you can redistribute it and/or modify * it under the terms ...
true
075204e5af1a493828c730db787716bfc9399c0a
PHP
kunaq/intranetDemo
/ajax/datatable-tablasMaestras.ajax.php
UTF-8
13,557
2.625
3
[ "Apache-2.0" ]
permissive
<?php class TablasMaestras{ /*============================================= MOSTRAR TABLAS MAESTRAS =============================================*/ public function mostrarTablasMaestras(){ if($_GET["bd"] == "vtama_tipo_producto"){ require_once "../core.php"; require_once "../funciones.php"; require_once ...
true
0b10dc59023cd7ed6cbee6af1993857987de59d8
PHP
laureneleny/Rendu_poo
/src/Str.php
UTF-8
2,549
3.484375
3
[]
no_license
<?php namespace Strings; // Exo 1 class Str { private $string; public static function on($string) { return new self($string); } public function __construct($string) { $this->string = $string; } public function replace($search, $replace) { $this->string...
true
ed513cf056e6f2d5e65b71151b1afefc1fb32c50
PHP
Dumkaaa/php-snmptraps
/app/settings/item-submit.php
UTF-8
3,572
2.578125
3
[]
no_license
<?php # edit message - general # functions require('../../functions/functions.php'); # Objects $Database = new Database_PDO; $Result = new Result; $User = new User ($Database); # Common class $Common = new Database_wrapper (); # make sure user is admin $User->is_admin (); # strip tags $_POST = $User->...
true
0431009c45015b166a9332b34d67918052cfd997
PHP
EchoSystemMark/SlavsServer
/src/AppBundle/Entity/PlayerSpecialItems.php
UTF-8
1,981
2.53125
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use JMS\Serializer\Annotation as Serializer; /** * @ORM\Entity() */ class PlayerSpecialItems { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") * * @var int */ protected $id; /** * @S...
true
ead6105250b4c1d122c30402cead3b5720a4218e
PHP
netlogix/Flowpack.SingleSignOn.Client
/Classes/Flowpack/SingleSignOn/Client/Security/RequestPattern/SsoServerPublicKeyResolver.php
UTF-8
1,347
2.796875
3
[ "MIT" ]
permissive
<?php namespace Flowpack\SingleSignOn\Client\Security\RequestPattern; /* * * This script belongs to the TYPO3 Flow package "Flowpack.SingleSignOn.Client".* * * * ...
true
243806779273f473905c0ed207f595553cb5704c
PHP
phpstan/phpstan-src
/tests/PHPStan/Analyser/data/bug-3789.php
UTF-8
717
2.6875
3
[ "MIT" ]
permissive
<?php namespace Bug3789; use function PHPStan\Testing\assertType; /** * @param array{string, string, string} $haystack */ function doFoo(string $needle, array $haystack): void { assertType('0|1|2|false', array_search($needle, $haystack, true)); assertType('0|1|2|false', array_search('foo', $haystack, true)); a...
true
5a0a696643c1f75f3b91e80a5d9405e0aa656afd
PHP
cologiamp/rrhh
/controllers/alumnos.php
UTF-8
4,760
2.625
3
[]
no_license
<?php locked(); include_once('models/alumnos.php'); //show users list if ( !isset($_GET['edit']) && !isset($_GET['del'])&& !isset($_GET['add']) && !isset($_GET['ver']) && !isset($_GET['buscar']) ){ $countPerPage = 10; $totalResultCount = count_alumnos($conn); // The ceil function will round floats up. $numberOfP...
true
75aa1f7fc6584f4a5cc9d38df2f3e1d537b23bf8
PHP
ssmrabet/piscine42-PHP
/rush00/admin/categorie.php
UTF-8
2,464
2.6875
3
[]
no_license
<?php include 'header.php'; include 'connexion.php'; ?> <?php //requete SQL if (isset($_POST['search'])) { $query = "SELECT DISTINCT * FROM categorie WHERE id LIKE '%" . $_POST['text'] . "%' OR nom LIKE '%" . $_POST['text'] . "%';"; } else { $query = "SELECT * FROM categorie;"; } //delete if (isset($_P...
true
8848087676dc86af44944f2cb482d299eac7182c
PHP
sb1169693813/blog2
/app/Article.php
UTF-8
715
2.5625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Carbon\Carbon; class Article extends Model { // protected $fillable = [ 'title', 'content', 'intro','created_at','updated_at','published_at' ]; protected $dates = ['created_at', 'updated_at', 'disabled_at']; //修改器 public ...
true
41a2a5f917d35dcad8a47c25770fbd94fe0e4177
PHP
nguyenlinh98/fresher_learn
/Views/Week2/SeventhDay/test.php
UTF-8
197
2.84375
3
[]
no_license
<?php include("Quare.php"); include("Circle.php"); use Circle\Shape as Circ; use quare\Shape as quar; $shape = new Circ(4); echo $shape->radius; $quare = new quar(2); echo $quare->acreage();
true
51196bf33e1eed2fe14d0db3a07fa72a243bff0d
PHP
SoulSu/lankesoft
/protected/components/exception/ValidateException.php
UTF-8
204
2.546875
3
[]
no_license
<?php /** * Class ValidateException */ class ValidateException extends CException { public function __construct($message = '', $code = 0) { parent::__construct($message, $code); } }
true
f863348a0081eee0c1821c43d8615516f5d4e1c5
PHP
uthando-cms/uthando-navigation
/src/UthandoNavigation/Form/Element/RouteList.php
UTF-8
2,227
2.609375
3
[ "BSD-3-Clause" ]
permissive
<?php /** * Uthando CMS (http://www.shaunfreeman.co.uk/) * * @package UthandoNavigation\Form\Element * @author Shaun Freeman <shaun@shaunfreeman.co.uk> * @link https://github.com/uthando-cms for the canonical source repository * @copyright Copyright (c) 2014 Shaun Freeman. (http://www.shaunfreeman.co.uk...
true
0ab9968cd4c6bc0d8d6a7ace53b74c5ad2773c76
PHP
j-lindb73/oophp
/src/Dice/DiceHand.php
UTF-8
2,294
3.609375
4
[]
no_license
<?php namespace Lefty\Dice; /** * A dicehand, consisting of dices. */ class DiceHand implements HistogramInterface { use HistogramTrait; /** * @var Dice $dices Array consisting of dices. * @var int $values Array consisting of last roll of the dices. */ private $dices; private $value...
true
3b15b36321261377d7ecadcf83014d948bab3513
PHP
mellowplace/google-maps-hacking
/lib/vidifymyride/src/Vidifymyride/GpsTrackPoint.php
UTF-8
844
3.3125
3
[]
no_license
<?php namespace Vidifymyride; class GpsTrackPoint { /** * Longitude of point as a decimal * @var float */ private $lon; /** * Latitude of point as a decimal * @var float */ private $lat; /** * Elevation in meters * @var float */ private $elevation; /** * Unix timestamp of point * @va...
true
80b81af063ab3c5a14ef40bb466359f4f29256be
PHP
thegreatuteam/hanggaiwang2
/student/slogout.php
UTF-8
748
2.65625
3
[]
no_license
<?php //若 用户已登录,则 删除会话变量使他注销 session_start(); if (isset($_SESSION['user_id'])) { //通过将$_SESSION设置为一个空数组,来清除当前会话中的所有会话变量 $_SESSION=array(); // Delete the session cookie by setting its expiration to an hour ago (3600) if (isset($_COOKIE[session_name()])) { setcookie(session_name(), '', time()...
true
9e60fedb07a342fcadc2f70f261fadd38d01d78b
PHP
ixocreate/mail-package
/src/Option/DirectoryOption.php
UTF-8
994
2.6875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * @link https://github.com/ixocreate * @copyright IXOLIT GmbH * @license MIT License */ declare(strict_types=1); namespace Ixocreate\Mail\Option; use Ixocreate\Mail\Transport\DirectoryTransport; use Ixocreate\ServiceManager\ServiceManagerInterface; final class DirectoryOption implements TransportOptio...
true
48a7643664236c0a74ae7fb4834cce8b75bf8f0b
PHP
jcordova96/hnn-v2
/components/Toolshed.php
UTF-8
1,399
2.640625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\components; use Yii; /** * User: dataskills dataskills@gmail.com * Date: 6/3/14 * Time: 11:21 AM */ class Toolshed { public static function getDisplayDate($date_string, $format = 'M jS Y') { return date($format, strtotime($date_string)); } public static function user...
true
afb895e1bd8e4c7848f71728d9c08d95738d0d16
PHP
memuller/todoead-plugin
/models/Lesson.php
UTF-8
2,133
2.53125
3
[]
no_license
<?php namespace TodoEAD ; use CustomPost, DateTime ; class Lesson extends CustomPost { static $name = "lesson" ; static $creation_fields = array( 'label' => 'lesson','description' => '', 'public' => true,'show_ui' => true,'show_in_menu' => true,'capability_type' => 'post', 'hierarchical' ...
true
6f4e78720ca51172255be937200a9af440f955d9
PHP
murayama333/pg19
/02_php/src/ex/08/str_ex9.php
UTF-8
93
2.625
3
[]
no_license
<?php $message = "Hello"; $result = str_replace("l", "_", $message); echo $result . PHP_EOL;
true
f901be232c9158933b727fef6f82be40782fc60d
PHP
WebProjectGroup17/WebProject
/web/admin/goodsedit.php
UTF-8
3,232
2.59375
3
[]
no_license
<?php session_start(); if(empty($_SESSION['adminid'])) { header("location:login.php"); exit(); } $id = $_GET['id']; include('../mysql.php'); $res = query('select * from goods where id = '.$id); $film = mysqli_fetch_array($res); if($_POST) { $name = str_replace('\'','‘',$_POST['name']); $price = $_...
true
7a29b08d604281b9081a60270519814dc8e786c9
PHP
CaiaCeron/NextGames
/database/migrations/2017_08_18_013216_create_estados_table.php
UTF-8
865
2.75
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; /** * Classe que contem a estrutura da tabela de usuarios que será criada através das migrations * * @author Alexandre Schmidt * * @version 0.1 */ class CreateEstadosTable exten...
true
3109517c7f92bd4e75ac615291d1a7130ecf659b
PHP
alam-jahangir/yii-image-matching
/models/ImageCompare.php
UTF-8
6,422
3.078125
3
[]
no_license
<?php namespace app\models; use Yii; use yii\base\Model; //define('IMAGE_COMPARE_SHAPE_RATIO_THRESHOLD', 0.01); // Image will be same if difference less than 0.1 define('IMAGE_COMPARE_SIMILARITY_THRESHOLD', 0.1); // Reference: https://kosinix.github.io/grafika/compare-images.html define('IMAGE_COMPARE_HAMMING_DIS...
true
8728ff18c1d9c7f867a25c62b74caec8dfd96070
PHP
luongthomas/CS340_LoL_Database
/LoL_Site/Includes/form_functionality.php
UTF-8
8,813
2.515625
3
[]
no_license
<?php function form_submit() { global $connection; if (!empty($_POST['addChamp-submit'])) { if (isset($_POST['addChamp-submit'])) { if (isset($_GET['go'])) { $homeworld = $_POST['homeworld']; $name = $_POST['name']; $damage_type ...
true
eb78ff5fe909d168dcd0ddcb61b1cf21c71d25f5
PHP
kairosProject/configuration
/Kairos/Config/Traits/RequirementTrait.php
UTF-8
1,423
2.796875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); /** * This file is part of the chronos project. * * As each files provides by the CSCFA, this file is licensed * under the MIT license. * * PHP version 7.2 * * @category Configuration * @package Configuration * @author matthieu vallance <matthieu.vallance@cscfa.fr> * @licens...
true
52ec43067a3fef840b2fbe3957f541bf727b96c8
PHP
LucasFerreiraB/Cliente-Servidor
/classes/Conexao.class.php
UTF-8
1,083
3.125
3
[]
no_license
<?php class Conexao{ private $objConn; function __construct(){ $host = "mysql:host=localhost"; $db = "Curso"; $pass = ""; $user = "root"; try{ $this->objConn = new PDO("$host;dbname=$db", $user, ...
true
f2796676002614fc045694b277e5a118f456124a
PHP
silverstripe/silverstripe-graphql
/src/Schema/DataObject/Plugin/DBFieldArgs/DBDateArgs.php
UTF-8
2,462
2.765625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace SilverStripe\GraphQL\Schema\DataObject\Plugin\DBFieldArgs; use SilverStripe\GraphQL\Schema\Field\ModelField; use SilverStripe\GraphQL\Schema\Type\Enum; use SilverStripe\ORM\FieldType\DBDate; use Exception; use SilverStripe\ORM\FieldType\DBField; class DBDateArgs extends DBFieldArgs { public func...
true
94b9ce2304cf94ef9609494c649e9716602f7d3c
PHP
darkcolonist/dc.cronner
/fuel/app/classes/helper/string.php
UTF-8
398
3.234375
3
[ "MIT" ]
permissive
<?php class Helper_String { /** * truncates a string based on length and replaces middle with truncator */ static function truncate_mid($string, $length, $truncator = "&hellip;"){ $textLength = strlen($string); if($textLength <= $length) return $string; $result = substr_replace($strin...
true
d5735063a5ea7843ed72131e9bfda505ee333a9d
PHP
zhangjiquan1/phpsourcecode
/qpakey/PTcms/ptcms/core/api.php
UTF-8
1,864
2.609375
3
[]
no_license
<?php /** * Class PT_Api * @property Driver_Api_Ptcms $handle */ class PT_Api extends PT_Base { protected $apiurl = ''; protected $name = ''; protected $param = array(); protected $header = array(); public function __construct() { $this->apiurl = $this->config->get('apiserver'); ...
true
1143fbb5f0fe14d4762c579daf46d27089111d52
PHP
code-tool/es-dsl-lb
/src/CodeTool/ElasticSearch/DSL/Query/ElasticSearchDSLQueryScript.php
UTF-8
831
2.6875
3
[]
no_license
<?php declare(strict_types=1); namespace CodeTool\ElasticSearch\DSL\Query; use CodeTool\ElasticSearch\DSL\ElasticSearchDSLQueryInterface; use CodeTool\ElasticSearch\ElasticSearchScript; /** * A query allowing to define scripts as queries. They are typically used in a filter context. * * For more details, @see ht...
true
32a50176aaa7d311e1f37b4b2b45fd73ba051e46
PHP
SammyJoseph/coders_free
/database/seeders/CursoSeeder.php
UTF-8
1,103
2.9375
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use App\Models\Curso; use Illuminate\Database\Seeder; class CursoSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { //FORMA AUTOMÁTICA DE AGREGAR DATOS FAKE A LA BD // Curso::factory(50...
true
e03a6fe8d7d6ab39ea9af22cf528eb57595cfb00
PHP
rveldpau/js-rpg-game
/backend/lib/Resource/class.Map.php
UTF-8
337
2.65625
3
[]
no_license
<?php class Resource_Map { public $name; private $dataProxy; public function __construct($name, $dataProxy) { $this->name = $name; $this->dataProxy = $dataProxy; } function getName() { return $this->name; } function getData() { return $this->dataProxy->ge...
true
7b616af6421bfa87d59810dd93c0b7218a5bfff0
PHP
cutermkarthick/karthick_rip
/classes/advlicClass.php
UTF-8
6,129
2.703125
3
[]
no_license
<? //==================================== // Author: FSI // Date-written = June 20, 2004 // Filename: advliClass.php // Application: WMS // Revision: v1.0 //==================================== include_once('loginClass.php'); class advlic { var $advlic_no, $lic_date; // Constructor definition ...
true
a712a66325fd3ff6881d85f90ae2ebcce706e42b
PHP
ps3com/mashup-doodle
/classes/actions/updatePageAction.php
UTF-8
3,091
2.6875
3
[]
no_license
<?php require_once("../../../../../config.php"); require_once("{$CFG->dirroot}/course/format/mashup/classes/MashupPageHelper.php"); $id = required_param('courseId', PARAM_INT); require_login($id); $PAGE->set_url('/course/format/mashup/classes/actions/updatePageAction.php', array('id' => $id)); // set permissio...
true
077d973ae936f4005f661e3a7f6293eeb064d3cf
PHP
ludwig123/suanlajizhen2
/application/index/model/CodeSearcherModel.php
UTF-8
3,502
2.765625
3
[ "Apache-2.0" ]
permissive
<?php namespace app\index\model; use think\Exception; class CodeSearcherModel { /**用数字查询代码,自动纠错,依次删除最后一位数字,直到查询结果不为null * @param string $code * @return NULL|array */ public function codeSearch($code){ $result = null; while (($result = $this->codeOnlySearch($code)) == null){ ...
true
682b11d3e73447d4a281e2d85c9a6c404a44e7c1
PHP
verifykhalifa/jobportal
/database/migrations/2020_08_31_113210_create_employees_table.php
UTF-8
1,330
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateEmployeesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('employees', f...
true
cdd23af9553379725673d28ad7c220ff586fa3be
PHP
Bernix01/mas-acceso
/partes/comentario.php
UTF-8
1,351
2.671875
3
[]
no_license
<div> <?php /*require_once $_SERVER['DOCUMENT_ROOT'].'/src/autoload.php';*/ use mas_acceso\edificio\comentario\ComentarioCollector; use mas_acceso\edificio\comentario\ComentarioClass; $colector= new ComentarioCollector(); if (isset($_POST["coment"])) { $comentario = new ComentarioClass(); ...
true
d7417f691c9ab81539cb69e97a9f852ca6ba0f03
PHP
andruoctavian/birds_tracker
/src/entities/Report.php
UTF-8
3,208
2.96875
3
[]
no_license
<?php require_once "db.php"; require_once "User.php"; require_once "Bird.php"; /** * Class Report */ class Report extends Model { const TABLE = 'report'; const CREATE_QUERY = "CREATE TABLE " . self::TABLE . " (" . "id INTEGER PRIMARY KEY AUTOINCREMENT, " . "user_id INTEGER, " . "bird...
true
4ad2e537c6d1bdaa7a3747dec93abb6a6062a399
PHP
dmarkdevin/pdo-mysql-crud-oop-
/index.php
UTF-8
678
2.75
3
[]
no_license
<?php include 'config.php'; include 'class_database.php'; include 'class_user.php'; echo "TOTAL NUMBER OF USERS: ".$user->count(); echo "<br><br>"; echo "<a href='create.php'>CLICK HERE TO CREATE RANDOM DATA</a>"; echo "<br><br>"; $listUsers = $user->lists(); foreach($listUsers as $rowUser): echo "[".$rowUser[...
true
6e239681d06a8440b43951d46a7fbffe358e2fdb
PHP
xdccmanage/xdccmanage
/xdccmanage-latest/tags.php
UTF-8
9,905
2.84375
3
[]
no_license
<?php require_once('config.php'); require_once('function.php'); class InsiemeTags { private $vetrine; private static $istanza; public static function creaInsiemeTags() { if( isset($istanza) ) { return InsiemeTags::$istanza; } else if( is_file("tags.stat") ) { if( ($fp = fopen("...
true
c889361206c7abdf067d7da2ea758022760629c7
PHP
maedeht/FullText-Search-Laravel-Package
/src/Repositories/SearchLib/FullTextSearch.php
UTF-8
2,326
2.78125
3
[]
no_license
<?php namespace Ninja\Search\Repositories\SearchLib; class FullTextSearch extends Base { private $query; public function __construct($query) { $this->query = $query; } public function handle($search_fields, $str) { $this->addCondition($search_fields, $str); $this->se...
true
8378546b2fd2063747999a84c8fd7b0625e62795
PHP
MarvahaGaurav/Codeigniter
/application/models/ProductSpecification.php
UTF-8
6,016
2.625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php defined("BASEPATH") or exit("No direct script access allowed"); require_once 'BaseModel.php'; class ProductSpecification extends BaseModel { public function __construct() { parent::__construct(); $this->tableName = "product_specifications"; } public function get($params) { ...
true
0b73123172dcc460d4167d78480f7c2701aa6848
PHP
LoganRickert/PHP-Game-Ranking
/scripts/loginValidate.php
UTF-8
1,462
2.953125
3
[ "CC0-1.0" ]
permissive
<?PHP include '../src/Constants.php'; include '../autoloader.php'; // Checks to make sure signing in is enabled. if(!SIGNIN_ENABLED) { echo "Sign in is not enabled!"; exit(); } // Checks to make sure they are not logged in. if(isset($_SESSION['playerId'])) { echo "You cannot sign into an account while signed in!"...
true
3c479a11b3d43a02f4dd139db27ebc1eed4113d5
PHP
benjaminhansen/workday-wsdl
/src/StructType/Get_Workers_Compensation_Codes_RequestType.php
UTF-8
14,613
2.6875
3
[]
no_license
<?php namespace WorkdayWsdl\\StructType; use \WsdlToPhp\PackageBase\AbstractStructBase; /** * This class stands for Get_Workers_Compensation_Codes_RequestType StructType * Meta information extracted from the WSDL * - documentation: Contains request reference, filter and response group for getting Workers' Compens...
true
85445c7a3a9248b43c8c17770ec638d65b7b5811
PHP
bijaykhyaju/harmonies
/app/InstrumentCollection.php
UTF-8
10,650
2.78125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class InstrumentCollection extends Model { // public static function getAllMusicInstruments(){ return InstrumentCollection::where('publish','1') ->where('parent_id','0') ...
true
5f12b35ab0b6b05d2cd9e37327f45704079a1068
PHP
vaibhavpandeyvpz/sandesh
/tests/StreamTest.php
UTF-8
5,993
2.75
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
<?php /* * This file is part of vaibhavpandeyvpz/sandesh package. * * (c) Vaibhav Pandey <contact@vaibhavpandey.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE.md. */ namespace Sandesh; use Psr\Http\Message\StreamInterface; /** * Class Stre...
true
05851a06fd4a74460e0ac1eeb0239e998f6877f6
PHP
amants/Projects
/2015-2016 (Se-n-Se)/Voorbeelden front-end/Ajax/saveStateInfo.php
UTF-8
1,070
2.515625
3
[]
no_license
<?php if(isset($_POST['key'])){ // Maak connectie met de database // $conn = new mysqli("localhost", "les15", "", "demoles15"); if ($conn->connect_error) { trigger_error('Kan geen verbinding maken:'.$conn->connect_error, E_USER_ERROR); } // Update de info van de provincie // $data = array( ...
true
a2e1ed7841c607afdd66712adf41d457091f0139
PHP
conorgilmer/opendata
/php/watching/viewtable.php
UTF-8
1,174
2.53125
3
[]
no_license
<?php include_once 'dbMySql.php'; include_once 'quandl.php'; $con = new DB_con(); $table = $_GET['table']; //"urllinks"; $res=$con->select($table); ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Watching Data from Quandl</titl...
true
0f6c2a3876614ce6bad708bb15582a5f64b159a5
PHP
rtshome/pgbabylon
/src/PDOStatement.php
UTF-8
16,928
2.9375
3
[ "PostgreSQL" ]
permissive
<?php namespace PgBabylon; use PgBabylon\Exceptions\InvalidPlaceholder; use PgBabylon\Exceptions\InvalidValue; use PgBabylon\Exceptions\MissingPlaceholder; use PgBabylon\Exceptions\UnsupportedFetchMode; use PgBabylon\Exceptions\UnsupportedMethod; use PgBabylon\Operators\Operator; class PDOStatement extends \PDOStatem...
true
20c66780512920312cee25789ac4b5ebd458ca65
PHP
appbels/Org
/Org/Schema/Thing/Intangible/Role/OrganizationRole/EmployeeRole.class.php
UTF-8
1,503
2.75
3
[ "Apache-2.0" ]
permissive
<?php namespace Org\Schema\Thing\Intangible\Role\OrganizationRole; /** * Class EmployeeRole * * @author AppBels <app.bels@gmail.com> * @name EmployeeRole * @namespace Org\Schema\Thing\Intangible\Role\OrganizationRole * @package Org\Schema * @see https://schema.org/EmployeeRole * Date...
true
fa3bf09c7709e6c8bc583ce169c05f7fdabaa97b
PHP
nikomangmetri16/tugas-fungsi
/tgs2.php
UTF-8
419
3.34375
3
[]
no_license
<?php function menghitung_rumus_berat($massa, $gravitasi) { $menghitung_rumus_berat = $massa * $gravitasi ; return $menghitung_rumus_berat; } function menghitung_rumus_daya($usaha, $waktu){ $menghitung_rumus_daya = $usaha / $waktu; return $menghitung_rumus_daya; } $berat = menghitung_rumus_berat(4,3); $da...
true
219b508af784e04f40c0294ce90d129f36c45af7
PHP
SimplonCharleville/PHP
/sessions.php
UTF-8
1,827
3.421875
3
[]
no_license
<?php // On démarre la session (obligatoire sur toutes les pages qui doivent avoir accès aux variables de session) session_start(); // On vérifie l'existance de nos POSTS if(isset($_POST['fname'], $_POST['name'])){ // On définie les variables de session avec les valeurs des POSTS $_SESSION['fname'] = $_POST['...
true
12a7cec588a2dfd95547fabc0c5a2e1782638f0d
PHP
youserbase/youserbase
/gerry/controllers/devices/plugins/Plugin_RelatedDevices.class.php
UTF-8
794
2.5625
3
[]
no_license
<?php class Plugin_RelatedDevices extends Plugin { public static $options = array( 'display_limit:range:1,10' ); public function skip_device() { Session::Set('skip_related_device', $_GET['skip']); } public function fill_template(&$template) { return false; $limit = $this->get_config('display_limit'); ...
true
f05f883c53a068c60a3ae23704f34558d064983b
PHP
Dorely/WebDevelopment
/dungeons_v1.0/public/old/createCharacter.php
UTF-8
1,389
2.65625
3
[]
no_license
<?php session_start(); $user_id = $_SESSION['user_id']; require_once $_SERVER['DOCUMENT_ROOT'] . '/library/database.php'; $dbconn = dungeon_connection(); $character_name = filter_input(INPUT_POST,'character_name'); $character_class = filter_input(INPUT_POST,'character_class'); $character_race = filter_input(IN...
true
cec0135f70be9f0b68e6fc80d7ca815c06bccd5c
PHP
ArcherCraftStore/ArcherVMPeridot
/apps/drupal/drush/tests/backendTest.php
UTF-8
13,005
2.96875
3
[ "Apache-2.0", "MIT" ]
permissive
<?php /** * @file * We choose to test the backend system in two parts. * - Origin. These tests assure that we are generate a proper ssh command * when a backend invoke is needed. * - Target. These tests assure that drush generates a delimited JSON array * when called with --backend option. * * Ad...
true
853b0aae40dbdf310e09b09cbf5a5cde966a64fe
PHP
I-TECH-UW/fin
/app/models/table/peoplefind.php
UTF-8
15,521
2.546875
3
[]
no_license
<?php require_once('ITechTable.php'); require_once('Helper.php'); class Peoplefind extends ITechTable { //protected $_primary = 'id'; protected $_name = 'person'; public function peoplesearch($param) { $query = $this->buildquery($param); $select = $this->dbfunc()->query($query); return $select->fetc...
true
140238fb209a2b9078ca30210f4cca87a522869a
PHP
enpitut/cynts
/app/src/Model/Criteria/CoordinatesCriteria.php
UTF-8
5,550
3.046875
3
[]
no_license
<?php namespace App\Model\Criteria; use Cake\ORM\TableRegistry; use App\Model\Entity\Item; /** * Class CoordinatesCriteria * @package App\Model\Criteria */ class CoordinatesCriteria { /** * 条件にあったコーデ群を取得するクエリを生成する * 条件は JSON 形式で指定する * * @param string $criteria_string * @param $options ...
true
d5f5180ec8c9f9fb10eb83daded6696aca846687
PHP
Dorisqi/foodie-connector
/backend/app/Console/Commands/GenerateVoyagerSeederData.php
UTF-8
1,152
2.671875
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; class GenerateVoyagerSeederData extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'generate:voyager-seeder-data'; /*...
true
b7c6bed9b11ae78c8ea19eb756533953497fd2fc
PHP
DamienHarper/NavigationBundle
/src/NavigationBundle/Exception/ProviderNotRegistered.php
UTF-8
806
2.65625
3
[ "MIT" ]
permissive
<?php namespace DH\NavigationBundle\Exception; /** * @author William Durand <william.durand1@gmail.com> */ final class ProviderNotRegistered extends \RuntimeException { /** * @return ProviderNotRegistered */ public static function create(string $providerName, array $registeredProviders = []): self...
true
355e223c72c7401b836d2f4b2772172f13ce5c1b
PHP
eyamu/sms
/app/Subject.php
UTF-8
709
2.625
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Subject extends Model { /** * The database table used by the model. * * @var string */ protected $table = 'subjects'; protected $fillable = array('name','description'); /** * The attributes excluded from the model's JSON form. * * @...
true
27d14efb4efde1a13b7e329ed157ecaaf4523d2c
PHP
KarlStruv/basics
/Basics/05/task6.php
UTF-8
631
4.3125
4
[]
no_license
<?php //Create an non-associative array with 5 elements where 3 are integers, // 1 float and 1 string. Create a for loop that iterates non-associative array using // php in-built function that determines count of elements in the array. Create a function // that doubles the integer number. Within the loop using php ...
true
5562a1f5b409990978a3b8bc35a93ca55a23fd24
PHP
keylightberlin/util
/src/KeylightUtilBundle/Services/Export/CsvExportTrait.php
UTF-8
451
2.78125
3
[]
no_license
<?php namespace KeylightUtilBundle\Services\Export; trait CsvExportTrait { static $COLUMN_DELIMITER = "#"; static $ROW_DELIMITER = "\n"; /** * @param array $values * @return string */ protected function getCsvLine(array $values) { $line = ""; foreach ($values as $va...
true
c1e41c3e488e04e10ff4aaa50d4869a6a8b42ea7
PHP
RbkRol/fuent-Extgnp
/administradores/php/ctrlAcceso.php
UTF-8
1,494
2.71875
3
[]
no_license
<?php //Recibir datos del formulario $nombreAdmin = $_POST['admiName']; $contrasenia = $_POST['adminPass']; // Validar datos que vienen en el formulario if(isset($nombreAdmin)){ //Establecer conexion con BD include ('conexion.php'); $con = conectar(); //Consultar si los datos existen en la BD $q...
true
d6690c352941b125a205ed8d847d8f5d232bf3fa
PHP
mehmond/trimex-scheduling-system-Laravel-VueJS
/app/Http/Controllers/Admin/CoursesController.php
UTF-8
1,008
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use App\Models\Course; use Illuminate\Http\Request; class CoursesController extends Controller { public function index(){ return Course::latest()->get(); } public function store(Request $request){ $this->vali...
true
4225a59af7e6ccc084285f77dfa532b4095280fb
PHP
GauriSinha/Veterinary-Care
/login.php
UTF-8
7,343
2.734375
3
[ "MIT" ]
permissive
<?php // Initialize the session session_start(); // Check if the user is already logged in, if yes then redirect him to welcome page if(isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true){ header("location: home.php"); exit; } // Include config file require_once "config.php"; // Define variabl...
true
1806962b258b1e547dd1409c87b77fee42938fef
PHP
DonchoMitev/PHP-Web
/PHP_console_tasks/3.Functions,Objects and Classes - 27.09.2018/LabAndExe/person.php
UTF-8
7,034
3.71875
4
[]
no_license
<?php class Person { private $name; private $company; private $car; private $pokemon; private $parent; private $children; /** * @return mixed */ public function getName() { return $this->name; } /** * Person constructor. * @param $name * @p...
true
8b6dccc0e58b890140c483801cbda72ad6ee7c68
PHP
sdonkey/lethe
/src/lib/bases/Redis.php
UTF-8
1,039
2.734375
3
[]
no_license
<?php /** * Base Redis * * @author wuqiying@ruijie.com.cn */ namespace Lethe\Lib\Bases; use Lethe\Lib\Config; class Redis { /** * @param int $select_db * @return \Redis */ public static function getInstance($select_db = 0) { $instance = \Yaf\Registry::get('REDIS_INSTANCE'.$selec...
true
25bb478077f6c1b8ca2f3c4383efc88d81ad5128
PHP
istvancsabakis/symfonycon2017
/src/Composite/Combo.php
UTF-8
1,130
3.125
3
[]
no_license
<?php namespace Composite; use Assert\Assertion; use Money\Money; use ValueObject\Mass; class Combo extends Product { private $products; public function __construct( string $name, array $products, Money $unitPrice = null ) { Assertion::allIsInstanceOf($products, Product::...
true
42a0561e5bba72ae055fd25f6a82375218bd9924
PHP
dmaisano/NJIT-CS
/CS-288/homework-07/nasdaq.php
UTF-8
3,685
2.65625
3
[]
no_license
<html> <head> <title>Nasdaq Data</title> </head> <body> <table align="center" border="1"> <?php // sorting is handled based on query string params $queryString = $_GET ? $_SERVER['QUERY_STRING'] : 'DEFAULT'; // log the query string to the console echo '<scrip...
true
5d781b469d1abd8f32a8f57cfab341b20904821f
PHP
grichka/InspecteurDeryque
/Display/Carte/DCarte.php
UTF-8
840
2.625
3
[]
no_license
<?php class DCarte extends DAbstract { const nom = 'Carte'; public function show() { CHead::addJs('carte'); CHead::addJs('http://maps.google.com/maps/api/js?sensor=false'); $timestamp="<tr>"; $lat="<tr>"; $lon="<tr>"; foreach ($this->data as $data) { if (!isset($data['timestamp']) || !isset($data[...
true
dc789500cabba6234a0496403bc2d9f6457f2d04
PHP
pandeyarun709/Quikr-Reimbursement-systems
/quikr-reimbursementSys/src/Requests/FormRequest.php
UTF-8
662
2.703125
3
[]
no_license
<?php namespace App\Requests; class FormRequest extends BaseRequest { /** * @var int */ protected $id; /** * @var */ protected $toFetch; /** * @return int */ public function getId(): int { return $this->id; } /** * @param int $id ...
true
1e2ba6ba030cf9eb5d920f0e4090cd7390f50235
PHP
wrichx/phpclass
/assign9.php
UTF-8
1,406
3.40625
3
[]
no_license
<?php class Student9 { //private public $firstName; private $lastName; protected $studentId; public function __construct () { $this ->firstName = 'Richard '; $this ->lastName = ' Wafula'; $this -> studentId = 'CCIE.18'; } public function getFirstName() { ...
true
4097f2a8c0591dbcf4cc0c76475fe9f9c30eeda5
PHP
billadams/web_server_scripting_program2
/model/incident.php
UTF-8
1,704
3.265625
3
[]
no_license
<?php class Incident { private $id, $customer_id, $product_code, $tech_id, $date_opened, $date_closed, $title, $description; public function __construct($customer_id, $product_code, $tech_id, $date_opened, $date_closed, $title,...
true
3799d4f7df62d4edb8472d5713abb64160b09482
PHP
wdaweb/invoice-Changtingweiyuanyuan
/edit_invoice.php
UTF-8
964
2.71875
3
[]
no_license
<?php include_once "base.php"; $sql="select * from `invoices` where `id`='{$_GET['id']}'"; $inv=$pdo->query($sql)->fetch(); // echo "<pre>"; // print_r($inv); // echo "</pre>"; ?> <!-- 傳值方式 1:用get ?後面傳值 2:post只能用表單 所以按鈕後面放name --> <!-- 方法1:<form action="api/update_invoice.php?id=<?=$inv['id']?>" method="post"> --> <fo...
true