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
9cfcf986e97b95ac398677b6f4851414c2470640
PHP
ilcartographer/php-form-data
/symfony/code/src/PdfFormBundle/Controller/DefaultController.php
UTF-8
1,636
2.5625
3
[]
no_license
<?php namespace PdfFormBundle\Controller; use PdfFormBundle\Form\DeveloperInvoiceType; use PdfFormBundle\Model\DeveloperInvoice; use PdfFormBundle\Model\DeveloperLineItem; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Component\HttpFo...
true
8d2ba36b94904e11cbe9ce37766f350e5d7b653f
PHP
v-bc-sravankumar/Demo_repo
/Automation_framework_for_kalgudi/tests/Integration/Quote/Coupons.php
UTF-8
7,546
2.5625
3
[]
no_license
<?php class Unit_Quote_Coupons extends Interspire_IntegrationTest { const COUPON_TYPE_PERCENT = 1; const COUPON_TYPE_FIXED_TOTAL = 2; const COUPON_TYPE_FIXED_ITEM = 0; const COUPON_APPLIES_TO_CATEGORIES = 'categories'; const COUPON_APPLIES_TO_PRODUCTS = 'products'; protected $quote = null; public function set...
true
970dc98f4ee4d05ed4ba078741c5efc4715b1bb9
PHP
wp-plugins/wp-google-map-plugin
/modules/location/model.location.php
UTF-8
13,936
2.515625
3
[]
no_license
<?php /** * Class: WPGMP_Model_Location * Menu Order: 1. * * @author Flipper Code <hello@flippercode.com> * @package Maps * @version 3.0.0 */ if ( ! class_exists( 'WPGMP_Model_Location' ) ) { /** * Location model for CRUD operation. * @package Maps * @author Flipper Code <hello@flippercode.com> */ cl...
true
0b45bfae21b883f7f1544cc49714fd8a42bacf49
PHP
troy0606/htdocs
/0823/insert-api.php
UTF-8
970
2.59375
3
[]
no_license
<?php require __DIR__ . '/PDO.php'; $result = [ 'success' => false, 'code' => 400, 'info' => '沒有輸入名稱', 'postData' => $_POST, ]; if(empty($_POST['name'])) { echo json_encode($result,JSON_UNESCAPED_UNICODE); exit; } $sql = "INSERT INTO `address_b...
true
7a28b83c226e17f065cc3bfbc551bd80d9d3de8c
PHP
Finnology/oro-platform
/src/Oro/Bundle/CurrencyBundle/Rounding/AbstractRoundingService.php
UTF-8
2,470
2.96875
3
[ "MIT" ]
permissive
<?php namespace Oro\Bundle\CurrencyBundle\Rounding; use Oro\Bundle\ConfigBundle\Config\ConfigManager; use Oro\Bundle\CurrencyBundle\Exception\InvalidRoundingTypeException; /** * The base class for rounding services. */ abstract class AbstractRoundingService implements RoundingServiceInterface { /** * @var...
true
887680a1e3a2ab34544398e1e81ae4730b05a876
PHP
yargon/Didacty
/old/SubmitTutorial.php
UTF-8
4,432
2.75
3
[]
no_license
<?php session_start(); if(!isset($_SESSION['boolSubmit'])) { //0 if not submitted 1 if submitted and 2 to validate $_SESSION['boolSubmit']=0; } if(!isset($_SESSION['steps'])) { // step counter $_SESSION['steps']=1; } if(!isset($_SESSION['rand_submit'])) { $rand = rand(); $_SESSION['rand_submit'] = $rand;...
true
9777f85fe6b6a063b34b28447d34aa41fb183dd7
PHP
IlyanAzaLun/XMLphp
/DeleteXmlDocData.php
UTF-8
695
2.515625
3
[]
no_license
<?php $xml = new DomDocument( '1.0' ); $xml->load('movies_list.xml'); $xml->formatOutput = true; $thedocument = $xml->documentElement; $list = $thedocument->getElementsByTagName('movie'); foreach ($list as $domElement) { $attrValue = $domElement->getAttribute('movie_id'); if ($attrValue == 10) { $dom...
true
6fe30a90f1d3031e82a5d9749aae9ce54d01a61e
PHP
ComteDeX/php_checkpoint4
/src/Entity/Tarification.php
UTF-8
2,581
2.609375
3
[]
no_license
<?php namespace App\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\TarificationRepository") */ class Tarification { /** * @ORM\Id() * @ORM\GeneratedValue() * @...
true
d772467225cb2382dd26547c1d6d13b0c980452a
PHP
malig/edeks.ru
/mg-templates/imagTheme/controllers/feedback.php
UTF-8
2,178
2.8125
3
[]
no_license
<?php /** * Контроллер Feedback * * Класс Controllers_Feedback обрабатывает действия пользователей на странице обратной связи. * - Проверяет корректность ввода данных с формы обратной связи; * - При успешной валидации данных, отправляет сообщение админам интернет магазина, и выводит сообщение об успешной отправке....
true
0e1b92bdf29d401693e8b61227b37182e78b5936
PHP
baltasarcs/canoaapp
/backend/app/Http/Controllers/VehicleController.php
UTF-8
2,079
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; //use App\Models\Vehicle; use App\Services\VehicleService; use Illuminate\Http\Request; class VehicleController extends Controller { protected $vehicleService; public function __construct(VehicleService $vehicleService) { $this->vehicleService = $vehicleServ...
true
68fcca90a6608f6b79f07d5e13036eef55c0b6f4
PHP
bishoyromany/laravel-spa-dashboard
/database/seeders/RolesSeeder.php
UTF-8
1,236
2.65625
3
[ "MIT" ]
permissive
<?php namespace Database\Seeders; use App\Models\Roles; use Illuminate\Database\Seeder; class RolesSeeder extends Seeder { public $roles; public function __construct() { $this->roles = [ [ 'title' => 'Admin', 'description' => 'Admin Role', ...
true
9df373e35c15d76a7b54853f977c905247702ab4
PHP
KJastrzebski1/Gloves
/gloves/Render.php
UTF-8
742
2.6875
3
[]
no_license
<?php namespace Gloves; defined('ABSPATH') or die('No script kiddies please!'); /** * Manages views */ class Render { protected static $dir; private function __construct() { ; } public static function init($dir) { static::$dir = $dir . '/' . Config::get('views-directory'...
true
a0acb37749baea703191bf46625f2828b7ed95ba
PHP
jj20375/backend_default
/app/Services/Order/PointOrderService.php
UTF-8
1,314
2.828125
3
[ "MIT" ]
permissive
<?php namespace App\Services\Order; // 導入 point_orders 資料庫操作方法 use App\Repositories\Order\PointOrderRepository; // 導入 共用方法 use App\Helpers\FuncHelper; class PointOrderService { // PointOrderRepository 指定變數 protected $pointOrderRepository; // Imgage Repository 指定變數 protected $imageRepository; // 導...
true
1b511735dfff46b11607d89727535f09fd340701
PHP
nereid-studentresponse/studentresponse
/ip_php_dao_demo/Lesson.php
UTF-8
905
3.21875
3
[]
no_license
<?php //include_once "Course.php"; class Lesson { private $id; private $title; private $subject; private $document_url; private $id_course; function __construct($id, $title, $subject, $document_url, $id_course){ $this->id=$id; $this->title=$title; $this->subject=$subject; $this->do...
true
ac56dfbab59d31ce6a5df00e809513854be55489
PHP
maximinetto/phpminiframework
/clases/service/usuario/usuario_listado.php
UTF-8
536
2.640625
3
[]
no_license
<?php require_once "clases/usuario.php"; require_once "clases/repository/usuario/user_repository.php"; class UsuarioListado { private $userRepository; public function __construct() { $this->userRepository = new UserRepository(); } public function getListadoFavoritos(){ ...
true
5327e4b1371b91172eccdc5b76923fe0991ea920
PHP
tandatle266/franchisecoffee
/resources/Php/DBhandle/DBItem.php
UTF-8
4,879
2.9375
3
[]
no_license
<?php spl_autoload_register(static function ($class) { $path = __DIR__ . "/$class.php"; $path2 = __DIR__ . "/../item/$class.php"; if (file_exists($path)) { //tell php that $path is safe to run. /** @noinspection PhpIncludeInspection */ include_once($path); return true; } ...
true
5457cac8ac4f0a5375ea4a6971a48c9bd9cdf603
PHP
crafterr/wzorce2020
/composite/listitem/Container.php
UTF-8
629
2.90625
3
[]
no_license
<?php namespace wzorce\composite\listitem; abstract class Container extends Item { protected $items = []; public function getComposite() { return $this; } public function items() { return $this->items; } public function addItem(Item $item) { if (in_array...
true
15acd3649034cae0ad8596024ca1f6cc44c4b1e9
PHP
SierraTecnologia/Bancario
/src/Modules/OpenBanking/Domain/TraderAsset.php
UTF-8
1,746
2.953125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Bancario\Modules\OpenBanking\Domain; use Muleta\Modules\Generic\Domain\Container\InvalidMoneyValue; use Muleta\Modules\Generic\Domain\Container\NotEnoughMoneyToRemove; class TraderAsset extends Asset { /** * @var float */ private $value; public function __construct(Asset $asset...
true
696b9de8d525d06b06633f772e88931df9b4ad33
PHP
JoneCoder/paypal-rest-api
/src/Billing/Subscription.php
UTF-8
815
2.5625
3
[]
no_license
<?php namespace Jonecoder\PaypalRestApi\Billing; use Jonecoder\PaypalRestApi\Services\PaypalServices; class Subscription extends PaypalServices { public function create(array $data) { return $this->store("{$this->baseUrl}/v1/billing/subscriptions", $data); } public function retrieve($id) ...
true
f9cd241dded8eefe5632e1924e39845fef81d715
PHP
LeeToug/LeetCode
/20.php
UTF-8
1,181
3.890625
4
[]
no_license
<?php /** * 题目要求: * 给定一个只包括 '(',')','{','}','[',']' 的字符串,判断字符串是否有效。 有效字符串需满足: 左括号必须用相同类型的右括号闭合。 左括号必须以正确的顺序闭合。 注意空字符串可被认为是有效字符串。 */ /** * @param $s * 解题思路: * 使用栈先进后出特性实现 * 遇到左括号入栈,遇到右括号则判断栈顶元素是否匹配,匹配则出栈,否则继续入栈 * 最后看栈中元素是否为空 */ function isValid($s) { $length = strlen($s); if($length%2!=0){ re...
true
6a5164b07510f08a4c99e2444ab930db409bfa3b
PHP
vgonchar67/catalog-site.ru
/application/core/Controller.php
UTF-8
1,134
2.78125
3
[]
no_license
<?php namespace App\core; use App\exceptions\CoreException; /** * Абстрактный класс контроллера */ abstract class Controller { public $application; const DEFAULT_LAYOUT = "default"; function __construct(Application $application) { $this->application = $application; $this->view = new View; $this->view->se...
true
5affb49bdd39ef571ef90bb09dea6e3b5197e471
PHP
cbalda/mvc.splash-common
/src/Mouf/Mvc/Splash/Services/SplashRequestContext.php
UTF-8
1,202
3.015625
3
[ "MIT" ]
permissive
<?php namespace Mouf\Mvc\Splash\Services; use Symfony\Component\HttpFoundation\Request; /** * This class represents the context of a request so far (so basically, it contains the * HTTP request and any additional parameters from the URL analysis). * * @author David Negrier */ class SplashRequestContext { priv...
true
5a433611ff9c93b0a4d5b4d83e4651b1bf362934
PHP
ayushsoni9784/projectsummer
/Login-Signup/signup.php
UTF-8
604
2.609375
3
[]
no_license
<?php // database connection code // $con = mysqli_connect('localhost', 'database_user', 'database_password','database'); $con = mysqli_connect('localhost', 'root', 'qwertyuiop','db_connect'); // get the post records $fullname = $_POST['fullname']; $email = $_POST['email']; $username = $_POST['username']; $password = ...
true
f91d03109624d484f3588fe84b12aa5a8643676f
PHP
bigdaddymax/capexopex
/application/models/Form.php
UTF-8
5,909
3.03125
3
[]
no_license
<?php /** * Description of Element * * @author Max */ class Application_Model_Form { private $_valid = true; private $_formName; private $_formId; private $_userId; // private $_projectId; private $_active = 1; private $_domainId; private $_date; private $_items; private $_n...
true
8bc67483793ba2bfb86c14d52ce8fc74f063a185
PHP
paullewallencom/php-978-1-8495-1362-3
/_src/3623OS_02_Code/blogs.php
UTF-8
2,115
2.625
3
[ "Apache-2.0" ]
permissive
<?php try { $connection = new Mongo(); $database = $connection->selectDB('myblogsite'); $collection = $database->selectCollection('articles'); } catch(MongoConnectionException $e) { die("Failed to connect to database ".$e->getMessage()); } $cursor = $collection->find(); ?> <!DOCTYPE html PUBLIC "...
true
8dbe526a98507eb825607f471925a81d250a8336
PHP
huanghao9015/Regression
/src/Algorithm/GradientDescent/Gradient/Logistic.php
UTF-8
1,358
3
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace MCordingley\Regression\Algorithm\GradientDescent\Gradient; final class Logistic implements Gradient { /** * @param array $coefficients * @param array $features * @param float $outcome * @return float */ public function cost(array $coefficien...
true
e94ebe5ff9e84f9d27762dfe02eefe4a3cd8a552
PHP
projectatcm/farming
/libs/Common.php
UTF-8
612
2.515625
3
[ "MIT" ]
permissive
<?php require_once '../libs/Dbconnection.php'; class Common extends Dbconnection { public function login_admin($username, $password) { return $this->select("select * from `admin` where `username`='$username'&& `password`='$password'"); } public function user_login($user_name, $password) { ...
true
b87628348ea6abff6d0775fa881e9e86377b5024
PHP
MrLei/mmicms
/library/Mmi/Form/Element/Checkbox.php
UTF-8
1,385
2.59375
3
[]
no_license
<?php /** * Mmi * * LICENSE * * Ten plik źródłowy objęty jest licencją BSD bez klauzuli ogłoszeniowej. * Licencja jest dostępna pod adresem: http://milejko.com/new-bsd.txt * W przypadku problemów, prosimy o kontakt na adres mariusz@milejko.pl * * Mmi/Form/Element/Checkbox.php * @category Mmi * @package ...
true
5aa59dc045243c33c028971493b5023a70335ea5
PHP
EduardoHG27/crud
/app/librerias/Controlador.php
UTF-8
987
2.796875
3
[]
no_license
<?php //se encarga en de poder cargar los modelos y las vistas class Controlador { public function modelo($modelo) { //carga modelo require_once'../app/modelos/'.$modelo.'.php'; //instanciar modelo return new $modelo(); ...
true
b09c126404750f6b60d0c7b8d900a8d13faa0d80
PHP
andika-eka/stat-web
/app/Imports/momentimport.php
UTF-8
403
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Imports; use App\Models\Moment; use Maatwebsite\Excel\Concerns\ToModel; class momentImport implements ToModel { /** * @param array $row * * @return \Illuminate\Database\Eloquent\Model|null */ public function model(array $row) { return new Moment([ ...
true
fc2e8f0a3af7ffca8d2f5a73cb6b789811f798fc
PHP
Victor-Moura-git/cursoPHP
/section-8-POO/heranca/exemplo-01.php
UTF-8
2,118
3.71875
4
[]
no_license
<?php //a classe filha acessa os dados da classe pai, mas a classe pai nao acessa os dados da classe pai class Documento { private $numero; public function getNumero() { return $this->$numero; } public function setNumero($n) { $this->$numero = $n; } } class CPF extends D...
true
3af33cfc4f2827a9515fac917de3716b16d26c7d
PHP
logocomune/php-c4w-myapps-sdk
/src/MyAppsSdk/Context/Collection.php
UTF-8
920
2.9375
3
[]
no_license
<?php namespace MyAppsSdk\Context; class Collection { const STATUS = 'status'; protected $items = []; const NAME_DELIMITER = '.'; /** * Collection constructor. * @param array $items */ public function __construct(array $items = []) { $this->items = $items; } ...
true
6fb71c08daf16610d5a49dca8a80a1343c87770f
PHP
JacobCreed2/Student-Project-Allocation-System
/testing/dbscript.php
UTF-8
1,006
2.765625
3
[ "MIT" ]
permissive
<?php $sqlFileToExecute = 'sqlscript.sql'; $hostname = 'db.hostname.net'; $db_user = 'dbuser'; $db_password = 'dbpassword'; $link = mysql_connect($hostname, $db_user, $db_password); if (!$link) { die ("MySQL Connection error"); } $database_name = 'databasename'; mysql_select_db($database_name, $link) or die ("Wrong ...
true
c01999b7fd76dfb109c8dd0ff30a84e7e33df539
PHP
jhaoheng/deployT
/ip_access.php
UTF-8
1,006
2.8125
3
[]
no_license
<?php function accessIP($client_ip) { // $access_outside_ip = array('114.34.111.12','114.36.12.13'); if(isSubnet($client_ip)){ //內網 ip return true; } else if (in_array($client_ip, $access_ip)){ //驗證外部ip return TRUE; } else { return FALSE; } } //子網路驗證 private function isSubnet($ip = ...
true
70a7514c75c03a84938ad528a0d8e8b2c69bf6b7
PHP
github-ka/freemarketsample
/function.php
UTF-8
2,768
2.953125
3
[]
no_license
<?php require_once('connection.php'); //ログの取得 ini_set('log_errors', 'on'); //ログの出力ファイルを指定 ini_set('error_log', './log/php_error.log'); //エラーメッセージを定数に設定 define('MSG01', '入力必須です'); define('MSG02', 'Emailの形式で入力してください'); define('MSG03', 'パスワードとパスワード(再入力)が合っていません'); define('MSG04', '半角英数字のみご利用いただけます'); define('MSG05', '6文字...
true
dd7dd3fdbf7d88d15298d44bea58b8ff1f71d900
PHP
BMESI/wdv341
/U2A1 - PHP Basics - Ben Mesinovic.php
UTF-8
2,969
3.09375
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title> Unit 2: Assignment: PHP Basics </title> </head> <body> <h1>Assignment: PHP Basics</h1> <hr/> <h3>Create a PHP page for this assignment. Use a combination of PHP, HTML and Javascript to perform the following processes.</h3> <ul> <l...
true
046bc504063c28d10c1d7ec486f1a6b5799bf8dc
PHP
samuel072/PHP
/m/source/model/activity_model.php
UTF-8
2,034
2.59375
3
[]
no_license
<?php require_once('user_model.php'); class ActivityModel { const type_talk = 0; //演讲类型 const type_activity = 1; //活动类型 const type_mooc = 2; //公开课类型 const state_waiting = 0; //待审核状态 const state_rejected = 1; //驳回状态 const state_published = 2; //发布状态 public $id; //活动ID public $type; //类型 0:演讲...
true
701d1106edf5869d7843ef37ea7afd514852c5ca
PHP
dazoosky/twitter
/user.php
UTF-8
2,359
2.625
3
[]
no_license
<?php session_start(); //require_once __DIR__ . '/src/UserExtended.php'; //require_once __DIR__ . '/src/Tweet.php'; //require_once __DIR__ . '/src/Comment.php'; require_once __DIR__ . '/connection.php'; function __autoload($classname) { $filename = './src/'.$classname.'.php'; require_once ($filename); } include...
true
646c653784799aa0a9ded3c78d7f8e6e33aba283
PHP
gittieandpete/php.test
/regex_test.php
UTF-8
659
2.59375
3
[]
no_license
<?php $titel = "Teste Regex-Ausdrücke"; $menuitem = ''; require '../../files/php/login_web330.php'; require 'includes/definitions.php'; require 'includes/functions.php'; connect (); session_start(); require 'includes/uebunghead.php'; require 'includes/uebungkopf.php'; require 'includes/uebungnavi.php'; ...
true
d0cce2507c1b620368ab6bfb35f477d3d89de40e
PHP
cafeiklan/CI-FIle-Browser-Awesome
/application/controllers/file.php
UTF-8
1,121
2.5625
3
[ "MIT" ]
permissive
<?php defined('BASEPATH') OR exit('No direct script access allowed'); error_reporting(0); class File extends CI_Controller { // Tentukan dulu URL path direktori yang akan di scan. Example: http://ibacor.com/download/file private $dirpath = "http://your-domain.com/public_file"; function index() { $this->lo...
true
bd473cf44c939a548f43935ea4700ab108035d12
PHP
IlyaKobus/shop-builder
/app/Modules/Layout/Enums/ContentTypeEnum.php
UTF-8
478
2.59375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: iliya * Date: 20.03.2019 * Time: 16:24 */ namespace App\Modules\Layout\Enums; abstract class ContentTypeEnum { const LEFT = 'left'; const RIGHT = 'right'; const TOP = 'top'; const BOTTOM = 'bottom'; /** * @return array */ public static f...
true
2a448d1ebe4f537b7498afbcc0c09fec740af4a8
PHP
vgoncharenko/patterns
/src/SimpleFactoryBundle/Controller/DefaultController.php
UTF-8
893
2.65625
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace SimpleFactoryBundle\Controller; use SimpleFactoryBundle\Concept\Factory\ProductFactory; use SimpleFactoryBundle\Concept\Product\ProductInterface; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class DefaultController extends Contr...
true
f6493d951b536b02c3c59b3e9ffce7626813b22c
PHP
MaximKravetc/QSLanding
/application/library/Dao/CascadeUpdate.php
UTF-8
3,034
2.671875
3
[]
no_license
<?php namespace Dao; use Shelby\Dao\Builder\Search; class CascadeUpdate { private static $running = false; /** * - Update Partner, FHGs, Tube-Clips * * @param int $id * @param array $data */ public static function onSiteUpdate($id, Array $data) { if (self::$running === true) { return; } // D...
true
a1bf3ba2817756318d52530c1669b3709cab2acb
PHP
mschonb/A01207573-DAW
/Labs/util.php
UTF-8
1,272
3.34375
3
[]
no_license
<?php class TableRows extends RecursiveIteratorIterator { function __construct($it) { parent::__construct($it, self::LEAVES_ONLY); } function current() { return "<td style='width:150px;border:1px solid black;'>" . parent::current(). "</td>"; } function beginChildren() { ...
true
01bc7f3e8501b725172b87aa0d1775ecca5dfda0
PHP
dangvantho/Tutorial-php-basic
/Operator/index.php
UTF-8
422
2.953125
3
[]
no_license
<meta http-equiv='Content-Type' content='text/html;charset=UTF-8'> <h3> <?php $a=10; $b=20; $c="10"; echo 'a=',$a,' ,b=',$b,'<br>'; echo 'Tổng: ',$a+$b,'<br>'; echo 'Hiệu: ',$a - $b,'<br>'; echo 'Chia: ',$a/$b,'<br>'; echo 'a++= ',$a++,' ,++a=',++$a,'<br>'; $a=10; echo 'So sán...
true
5a01a525a1e744ce05113767eaccec3701d220e8
PHP
kyfr59/gravityforms-tinygroom-pdf-mailing
/mailing_pdf.php
UTF-8
4,229
2.578125
3
[]
no_license
<?php // Include Wordpress logic & PDFLabel library require_once(__DIR__ . "/../../../wp-load.php"); if(!current_user_can('administrator') && !current_user_can('author')) { header('Location: https://tiny-groom.com/'); exit(); } require_once (__DIR__ . '/includes/fpdf/fpdf_label.php'); // Save form configurat...
true
32fd6b9467b3c430d2502a4f546a6cedda7a6099
PHP
chittipong/dgnew
/class/class_pager.php
UTF-8
3,371
2.796875
3
[]
no_license
<?php /** * DS Pager v2.0.0 * * @name Pager Class * @version 2.0.0 * @author Narong Rammanee, <ranarong@live.com> * @copyright Copyright (c) 2010, Narong Rammanee * @license No Licence Free 2010 */ class Pager { private $_start; private $_stop; private $_all_page; private $_tmp_page; private $_config ...
true
749116f9506f1a661ee93070527636023fc294fa
PHP
webflorist/htmlfactory
/src/Attributes/AutocompleteAttribute.php
UTF-8
518
2.703125
3
[ "MIT" ]
permissive
<?php namespace Webflorist\HtmlFactory\Attributes; use Webflorist\HtmlFactory\Attributes\Abstracts\StringAttribute; /** * Class representing the HTML-attribute 'autocomplete' * * Class AutocompleteAttribute * @package Webflorist\HtmlFactory */ class AutocompleteAttribute extends StringAttribute { public fu...
true
2564e29ee1d7650fd1f0405f0e486b79e175620a
PHP
Achour/validation
/src/Rule/Required.php
UTF-8
1,160
2.90625
3
[]
no_license
<?php /** * @package Fuel\Validation * @version 2.0 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2013 Fuel Development Team * @link http://fuelphp.com */ namespace Fuel\Validation\Rule; use Fuel\Validation\AbstractRule; /** * Checks that the given field exists * ...
true
1aab3ed3d4cf458c5fc73e4fab1ff8dff0fa7bae
PHP
Qcc/ktweb
/app/Notifications/ReportNotice.php
UTF-8
1,670
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; class ReportNotice extends Notification { use Queueable; public $report; /** * Create a new noti...
true
afb5bf538145c215ea164f641e57032474ae6495
PHP
Heffiros/ProjetInnovantEtna
/app/Model/User.php
UTF-8
634
2.625
3
[]
no_license
<?php namespace Model; use PotterORM\Base; class User extends Base { static protected $table = 'personne'; static protected $pk = 'id'; static protected $fields = array('login', 'password', 'mail', 'role', 'skype', 'promotion', 'id_group'); public function save() { if (!$this->exists()) ...
true
357e4932ea9f632517ac1cf78d72c0f10913f0c5
PHP
Midiel/Patrol-Shift-Bid-Scheduler-V2
/app/Http/Controllers/Auth/RegisterController.php
UTF-8
4,382
2.609375
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Auth; use Illuminate\Http\Request; use Illuminate\Auth\Events\Registered; use App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\RegistersUsers; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; use App\User; use App\Specialty; use App\Rol...
true
e7262328dd3a8e2d8d3c2c599c8fe3a16ab38bb0
PHP
fabwu/website
/module/File/src/File/Controller/FileController.php
UTF-8
1,970
2.515625
3
[]
no_license
<?php namespace File\Controller; use Zend\Mvc\Controller\AbstractActionController; class FileController extends AbstractActionController { protected $fileTable; protected $options; public function indexAction() { throw new \BadMethodCallException('Method not implemented'); } public fun...
true
83b316987493d7f4b3970a50cf139b5292bf38a2
PHP
virus4297/newsnigga
/signup.php
UTF-8
2,576
2.625
3
[]
no_license
<?php if(isset($_POST['submit'])){ // $username= $_POST['name']; $password= $_POST['password']; $cpassword= $_POST['cpassword']; // x $club = $_POST['club']; $email= $_POST['email']; // $phone= $_POST['phone']; // $gender= $_POST['gender']; // $connection = mysqli_connect('localho...
true
ae51fae4cbc9628bb6e862e6161af055af32d92a
PHP
ercancavusoglu/balbazar
/src/backend/app/Http/Controllers/Api/MeditationController.php
UTF-8
761
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\Api; use App\Contract\Service\MeditationServiceInterface; use App\Http\Controllers\Controller; use App\Traits\ApiResponser; class MeditationController extends Controller { use ApiResponser; /** @var MeditationServiceInterface $service * */ protected MeditationService...
true
2c384fe90088a161267d87ce2c546589ea6ad8b1
PHP
arthurkushman/detox
/src/dataset/CustomSet.php
UTF-8
1,435
3.40625
3
[ "MIT" ]
permissive
<?php namespace detox\dataset; use detox\exceptions\BadDictException; class CustomSet implements SetContract { private $words = []; private $phrases = []; /** * @return array */ public function getWords() : array { return $this->words; } /** * @param array $wor...
true
4f14250565bc24478564db3314615c6afb94e513
PHP
malavshah9/my_apps_backup
/PHP/MD/Jainam/Doctor_mst/emaildemo.php
UTF-8
1,952
2.546875
3
[]
no_license
<?php session_start(); require '../Shared/Classes/classdoc.php'; $pass=null; $cnn=new doc_all; $enteredid=$_SESSION["id"]; $result=$cnn->getpassword($enteredid); $pass=$result; error_reporting(...
true
58b1eb75820857d917a6266f163d26697d71c002
PHP
Romjkez/student-projects-portal
/api/user/add.php
UTF-8
2,130
2.609375
3
[]
no_license
<?php require_once '../headers.php'; if ($_SERVER['REQUEST_METHOD'] == 'POST') { require_once '../../database.php'; $db = new Database(); $data = prepareData($_POST); $pass = password_hash($data['pass'], PASSWORD_DEFAULT); $q = $db->connection->prepare("INSERT INTO `users` (`id`, `name`, `surname...
true
5f7cdf27a2b0234aa8e20f21f4109c629f6b41e2
PHP
JvZuidam/Webservice
/Webservice/root/Delete_log.php
UTF-8
1,245
2.8125
3
[]
no_license
<?php //echo's the current state of the log to seeif it is deleted or not //echo $temp['data']['deleted']; if (isset($_GET['id']) && !empty($_GET['id'])) { $temp = json_decode(file_get_contents("http://192.168.56.101:8080/Delete.php/?id=".$_GET['id']), true); if ($temp['data']['deleted'] == 0) { echo "<h3>Auth...
true
fd19d1cc0f38de201afe4731aeb7c3c3c6787034
PHP
stefan-0905/forum-app
/admin/includes/api/thread/delete.php
UTF-8
753
2.515625
3
[]
no_license
<?php header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json"); header("Access-Control-Allow-Methods: DELETE"); header("Access-Control-Allow-Headers: Access-Control-Allow-Headers, Content-Type, Access-Control-Allow-Methods,Authorization, X-Requested-With"); include_once "../../init.php"; tr...
true
c8f862ebe6a83e666400c781e58b67232eae256e
PHP
TheDudesDev/observer-pattern
/src/Solution/Observers/Displays/DisplayElement.php
UTF-8
177
2.515625
3
[ "MIT" ]
permissive
<?php namespace AMacSmith\ObserverPattern\Solution\Observers\Displays; interface DisplayElement { /** * Display state. */ public function display(): void; }
true
7c97155b3de4a7487788401f0417db11d3b00a51
PHP
phpnode/YiiUsers
/models/AUserGroup.php
UTF-8
4,990
2.890625
3
[]
no_license
<?php /** * Represents a group of users. * Users can belong to many groups. This can be used as a base for implementing social features * similar to facebook's groups or twitter's follow feature. * * * @author Charles Pick * @package packages.users.models * * @property integer $id The group ID * @property str...
true
125004940858b01df5e05de46f3ccacdfda6e763
PHP
caeser1988/cool_playlist
/api.php
UTF-8
10,467
2.953125
3
[]
no_license
<?php require_once("Rest.inc.php"); class API extends REST { public $data = ""; private $db = NULL; public function __construct(){ parent::__construct(); } /* * Public method for access api. * This method dynmically call the method based on the query string * */ public fu...
true
2488707097338ea48964bf933bfcdaf98698e40e
PHP
ckdt/wp-good-start
/partials/content-images.php
UTF-8
2,065
2.59375
3
[]
no_license
<?php /** * @package WordPress * @subpackage goodstart */ ?> <?php $images = get_sub_field('images'); ?> <div class="content-block images"> <div class="container"> <div class="row"> <?php if( $images ): // global vars $total = count($images); $output = ''; foreach( $images as $image ): $caption = $ima...
true
b8b1a6918205e641ab66f4927b39105c6c9cd881
PHP
gusleaooliveira/trabalho-parte-final
/classes/Cliente.class.php
UTF-8
1,762
3.0625
3
[]
no_license
<?php require_once '../model/Banco.inc.php'; class Cliente{ private $id; private $nome; private $telefone; private $banco; function __construct($id=null, $nome='', $telefone=''){ $this->id = $id; $this->nome = $nome; $this->telefone = $telefone; $this->banco = ...
true
9c866f2c605eaaec82e08d191732993a56e5b52e
PHP
WenderHost/agentpress-pro
/lib/fns/fns.listing-sidebar.php
UTF-8
2,107
2.59375
3
[]
no_license
<?php /** * Builds the sidebar for `listing` CPT * * @since 1.0.0 * * @return void */ function agentpress_listing_sidebar(){ $format = '<section class="widget%4$s"%3$s><div class="widget-wrap">%1$s<div class="textwidget">%2$s</div></div></section>'; $widgets = array( array( 'title' => 'Property Resources'...
true
32724cbc752cd855aafce57f3c472dd11f72442e
PHP
bryanrite/horde
/framework/Ldap/test/Horde/Ldap/SearchTest.php
UTF-8
4,988
2.828125
3
[]
no_license
<?php require_once dirname(__FILE__) . '/TestBase.php'; /** * @package Ldap * @subpackage UnitTests * @author Jan Schneider <jan@horde.org> * @copyright 2010-2011 Horde LLC * @license http://www.gnu.org/licenses/lgpl-3.0.html LGPL-3.0 */ class Horde_Ldap_SearchTest extends Horde_Ldap_TestBase { p...
true
c85c8cee4ef4cd893b65ffd01598bb435bba7590
PHP
bezimeni96/VivifyAcademy-OsnovniKurs-ZavrsniRad
/single-post.php
UTF-8
3,040
2.5625
3
[]
no_license
<?php session_start(); $index = null; if (isset($_GET['post_id'])) { $index=$_GET['post_id']; require('database.php'); $sqlSelect = "SELECT p.id id, p.title title, p.created_at created_at, p.body body, u.first_name, u.last_name FROM posts p INNER JOIN us...
true
fafa6c7dd678acf98d37da185fa43569bd82ba48
PHP
creditsuissesk/kmouseshoess
/upload.php
UTF-8
2,378
3.078125
3
[]
no_license
<?php require_once('Connections/conn.php'); ?> <!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=utf-8" /> <title>Display</title> </head>...
true
6baa2c6060e7ebb5fd0aad104fdfc3d8fe4a93cc
PHP
aruncoding/login-system-using-php
/login.php
UTF-8
2,197
2.921875
3
[]
no_license
<?php $login = false; $showError = false; if($_SERVER["REQUEST_METHOD"] == "POST"){ include 'dbconnect.php'; $username = $_POST["username"]; $password = $_POST["password"]; // $sql = "Select * from users where username = '$username' AND password = '$password'"; $sql = "Select * from school where username = '$user...
true
a3f061354b2cfee73ab21b0e4eeac6f96e70a074
PHP
JKatras/bdf1310
/katras_jeremy/3.1_MVC_Read_Data/models/regionModel.php
UTF-8
885
2.875
3
[]
no_license
<?php include 'models/DB.php'; class regionModel extends DB{ public function __construct() { } public function getRegions() { $db = new DB(); $statement = $db->db->prepare(" SELECT name, regionId FROM regions "); try { if($statement->execute()) { $rows = $statement->fetchAll(\PDO::FETCH_ASSOC); r...
true
025778e15a193bdd2a8cba12ed9b30809192a4f9
PHP
CoryRay/Codeup_Exercises
/internal_functions.php
UTF-8
803
3.96875
4
[]
no_license
<?php $nothing = NULL; $something = ''; $array = array(1,2,3); // Create a function that checks if a variable is set or empty, and display "$variable_name is SET|EMPTY" // TEST: If var $nothing is set, display '$nothing is SET' // TEST: If var $nothing is empty, display '$nothing is EMPTY' // TEST: If var $something ...
true
8d925bb2f1c6eb8eca7b6cdc02f5ad29f06ab00d
PHP
dushaun/rest-api
/src/Controllers/ArticleController.php
UTF-8
3,030
2.671875
3
[]
no_license
<?php namespace App\Controllers; use App\Models\Article; use App\Resources\ArticleResource; use App\Resources\ErrorResource; use Illuminate\Database\Eloquent\ModelNotFoundException; use Interop\Container\ContainerInterface; class ArticleController extends Controller { private $container; /** * ArticleC...
true
e364992d7ff4547ddf24cde4ab079760e3e27ef2
PHP
KarlPiasecki/3420_final
/includes/register_handler.inc.php
UTF-8
2,712
2.890625
3
[]
no_license
<?php function missingInputRegister($username, $email, $password, $password2) { $result; if (empty($username) || empty($email) || empty($password) || empty($password2)) { $result = true; } else { $result = false; } return $result; } function invalidEmail($email) { $result; ...
true
4c9fff4a64e10c8abfe2546322870633963d543d
PHP
cash2one/cj
/trunk/apps/voa/src/include/s/cyadmin/enterprise/app.php
UTF-8
6,144
2.546875
3
[]
no_license
<?php /** * voa_s_cyadmin_enterprise_app * 畅移后台/企业应用数据表 * Create By Deepseath * $Author$ * $Id$ */ class voa_s_cyadmin_enterprise_app extends service { /** 分库/分表的信息 */ private $__shard_key = array(); /** * __construct * * @param array $shard_key * * @return void */ public function __construct(...
true
5680e27a4524dc80a3b8f2124ef35c3f953edcff
PHP
JakubDadela/Platforma_do_nauki_jezykow
/project/app/Http/Controllers/LanguageController.php
UTF-8
2,332
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Models\Language; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; class LanguageController extends Controller { public function index() { // } /** * Show the form for creating a new resource. * * @return \Illu...
true
e6c012952c2fba073e7df23cc04b417439f90aef
PHP
szaboferee/esprimaPHP
/src/Node/Expression/Literal.php
UTF-8
1,180
3.015625
3
[]
no_license
<?php namespace EsprimaPhp\Node\Expression; use EsprimaPhp\Node\Expression; use EsprimaPhp\Parser; use EsprimaPhp\Parser\Syntax; use EsprimaPhp\Parser\Token; /** * Class Literal */ class Literal extends Expression { /** * @var string */ public $type = Syntax::LITERAL; /** * @var mixed ...
true
f8abd4c25d6d412e22d1ad5f992562f1cf7dc495
PHP
kellylwx1101/pess
/dispatch.php
UTF-8
4,508
2.5625
3
[]
no_license
<?php if(isset($_POST["btnProcessCall"])) && !isset($_POST['btnDispatch']) header("Location: head.php"); ?> <?php if(isset($_POST["btnSubmit"])) { //connect to database $con = mysql_connect("localhost", "kellylwx11_", "Password123_1101"); } if(!$con); { die('Cannot connect to database:'.mysql_error())...
true
928ff2b3f3e5098d5ac5c14f4357a4c7c8a5c0d4
PHP
sanaSou848/larvel3wabank
/app/Http/Controllers/PagesController.php
UTF-8
1,057
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Mail\ContactMail; use Illuminate\Support\Facades\Mail; class PagesController extends Controller { public function welcome(){ return view('welcome'); } public function about(){ $title = 'About 3w Academy 2021'; re...
true
05bcfe2555f148b76926d23eb305c532b2d1f786
PHP
devlabs91/travelgate-notify
/src/Models/Ota/AmountType/AdditionalGuestAmountsAType.php
UTF-8
6,085
2.765625
3
[ "MIT" ]
permissive
<?php namespace Devlabs91\TravelgateNotify\Models\Ota\AmountType; /** * Class representing AdditionalGuestAmountsAType */ class AdditionalGuestAmountsAType { /** * @property float $amountBeforeTax */ private $amountBeforeTax = null; /** * @property float $amountAfterTax */ priv...
true
cb0d14c0dce4267c52b6d7035b96ec8401b2f3e2
PHP
Salonee-Sharma/csi-travel-grants
/app/Http/Requests/TravelGrantsRequest.php
UTF-8
2,994
2.640625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Requests; use App\Http\Requests\Request; class TravelGrantsRequest extends Request { private $travelgrant = [ 'travel_event_name' => 'required|string', 'travel_event_date' => 'required|date_format:Y-m-d', 'travel_event_venue' => 'required|string', 'travel_...
true
bbc41fb92efca172790e1bdaf947442782aed8bd
PHP
VeronikaYarats/teashop
/private/common/images.php
UTF-8
19,190
3.15625
3
[]
no_license
<?php // ver1.2 /** * Convert linear array to comma separated string * @param $array * @return string */ function array_to_string($array) { $str = ''; if($array) foreach($array as $word) { $str .= $seporator . addslashes($word); $seporator = ','; } return $str; } /** * Conver...
true
615add6c148d94119b03d418b3d4852d1e842925
PHP
sheerockoff/bitrix-ci
/files/bitrix/modules/main/classes/general/undo.php
UTF-8
11,107
2.609375
3
[ "Unlicense" ]
permissive
<?php IncludeModuleLangFile(__FILE__); class CUndo { public static function Add($params = array()) { global $DB, $USER, $CACHE_MANAGER; $ID = '1'.md5(uniqid(rand(), true)); $strContent = serialize($params['arContent']); $userID = $USER->GetId(); $arFields = array( 'ID' => $ID, 'MODULE_ID' => $param...
true
690b7fcd7d0fc6af488b0313acb695dc0f7794fa
PHP
slimsevernake/Online-shop-based-on-Laravel-and-Nuxt.js-
/server/app/Policies/ProductPolicy.php
UTF-8
2,341
2.53125
3
[]
no_license
<?php namespace App\Policies; use App\Models\Product; use App\Models\User; use Illuminate\Auth\Access\HandlesAuthorization; class ProductPolicy { use HandlesAuthorization; /** * Allow all actions for super admin **/ public function before($user, $ability) { if ($user->isSuperAdmin(...
true
dc01ffc9266b9ddc356bf4eab6a8f7e12091db58
PHP
asafa10/postcodeio_laravel_microservice
/app/Services/PostCodesIOSearchService.php
UTF-8
933
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Services; class PostCodesIOSearchService { /** * Post Codes bulk reverse geocode URL. * * @var string $postCodesIOBaseURL */ private static $postCodesIOBaseURL = 'https://postcodes.io/postcodes/'; /** * Bulk Reverse geocode location fetch by post codes and rad...
true
382ed73022a69c2aaecc23a5f59b8d80921ab089
PHP
suiman/Walker
/Walker/Http/Request.php
UTF-8
2,926
2.734375
3
[]
no_license
<?php namespace Walker\Http; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\UriInterface; use Walker\Http\Uri; class Request extends Message implements ServerRequestInterface { protected $requestTarget; protected $method; protected $uri; protected $serverParams; protected $...
true
4b676f1dc80fe6a1f010b53020ec4c5623648c9d
PHP
Alfatyhin/loftshool
/tasks/week_1/src/functions.php
UTF-8
2,479
3.390625
3
[]
no_license
<?php //test function function printPre($val) { echo "<pre>"; print_r($val); echo "</pre>"; } function task1($array, $flag = false) { $result = ''; foreach ($array as $key => $str) { if ($flag) { $result .= ' ' . $str; } else { echo "<p> $str </p>"; } ...
true
e8ed84a3996ee8bb7d7d17378257fddcbaba766a
PHP
WebTM/web
/template_parts/loop-portfolio-related.php
UTF-8
1,924
2.828125
3
[]
no_license
<?php global $post; /** * First, grab post terms. */ $terms = get_the_terms( $post->ID , 'portfolio_category', 'string'); /** * Return if this post has no terms */ if(!( $terms )) return false; /** * Now we know that we definitely have terms to work with, build and array of term id's */ $ter...
true
f27aa51974060899d75fcd107d3a84d21919d14a
PHP
maxmilash/test2
/application/models/User.php
UTF-8
1,566
2.859375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Max * Date: 15.04.2018 * Time: 14:18 */ namespace application\models; use application\core\model\RecordPrototype; /** * Class User * @property int id * @property string login * @property string password * @property int type * @property string phone * @property str...
true
bc38a1c0293280d03f47b7b045f781b11fb20642
PHP
codingandcommunity/Learn-With-Coding-And-Community
/moodle/lib/horde/framework/Horde/Crypt/Blowfish/Openssl.php
UTF-8
1,642
2.640625
3
[ "GPL-1.0-or-later", "GPL-3.0-only", "MIT" ]
permissive
<?php /** * Copyright 2012-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file LICENSE for license information (LGPL). If you * did not receive this file, see http://www.horde.org/licenses/lgpl21. * * @author Michael Slusarz <slusarz@horde.org> * @category Horde * @license http://www.horde.org/l...
true
735270869203066131f4b3b0ca780a4c3df6c00b
PHP
Malezha/menu
/src/Traits/HasAttributes.php
UTF-8
886
3
3
[ "MIT" ]
permissive
<?php namespace Malezha\Menu\Traits; use Malezha\Menu\Contracts\Attributes; /** * Class HasAttributes * @package Malezha\Menu\Traits */ trait HasAttributes { /** * @var Attributes */ protected $attributes; /** * Get attributes object. * If send \Closure option as parameter then ret...
true
1b9bb18e50c00377fce33f308bc41b9871016105
PHP
helenvielma/RestaurantQR
/Modelo/Clases/CorreoElectronico.php
UTF-8
1,767
2.890625
3
[]
no_license
<?php class CorreoElectronico { private $id_correo; private $correo; private $id_personas; private $envio; private $id_tipo; private $estado; private $fecha; private $id_usuarios; public function CorreoElectronico( $id_correo, $correo, $id_personas, $envio, $id_tipo, $estado, $fecha, $id_usuarios)...
true
2d78e86e24b51ce9c8dc25f701f3407de5b4f32a
PHP
AlexisPG/Projet-BO-et-FO
/src/AdminBundle/Controller/ProductController.php
UTF-8
8,085
2.609375
3
[ "MIT", "BSD-3-Clause" ]
permissive
<?php namespace AdminBundle\Controller; use AdminBundle\Entity\Product; use AdminBundle\Form\ProductType; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Reques...
true
ab38f7bb90fd11aa59dfb6fa8464e497ef4239ea
PHP
dsaplicativos/ds-lps-ci-lib-rest
/RestLang.php
ISO-8859-1
1,520
2.578125
3
[]
no_license
<?php defined ( 'BASEPATH' ) or exit ( 'No direct script access allowed' ); /** * Classe criada para substituir a abordagem original do plugin Rest * que usava o carregamento de arquivo de linguagem a partir do * diretrio language/english * * @author Reginaldo do Prado */ class RestLang { function RestLang() { ...
true
90629841f14b27d5255f633aeea92d43019509c5
PHP
notnaa/yii2-api-payment-sample
/models/User.php
UTF-8
3,522
2.609375
3
[]
permissive
<?php namespace app\models; use app\components\db\ActiveRecord; use yii\base\NotSupportedException; use yii\web\IdentityInterface; /** * Class User * * @package app\models * * @property integer $id * @property string $username * @property string $email * @property string $password * @property string $auth_k...
true
0ac1403f8cf27d5dbb088153389e10091b3c7c53
PHP
bhak-ti/web-gis-kota-semarang
/edit.php
UTF-8
5,856
2.703125
3
[]
no_license
<?php error_reporting(0); //abaikan error pada browser //panggil file koneksi.php yang sudah anda buat include "koneksi.php"; ?> <!doctype html public "-//W3C//DTD HTML 4.0 //EN"> <html> <head> <title>Edit</title> </head> <body> <h1 align="center"> Edit Data penduduk</h1> <?php //ambil data berdasarkan parameter...
true
d2c8551ec00b3b70165be2dac1dbfc4d9ba54542
PHP
sanioppa/edc_ereport
/application/controllers/Laporanpdf.php
UTF-8
1,224
2.625
3
[ "Unlicense" ]
permissive
<?php Class Laporanpdf extends CI_Controller{ function __construct() { parent::__construct(); $this->load->library('pdf'); } function index(){ $pdf = new FPDF('p','mm','A4'); //p = portrait // membuat halaman baru $pdf->AddPage(); // setting jenis fo...
true
cb0c5b1a6eac5fe1a55fc9f404081df48b4e4662
PHP
infira/openapi-model-generator
/src/generator/SchemaObjectModel.php
UTF-8
3,396
2.53125
3
[]
no_license
<?php namespace Infira\omg\generator; use cebe\openapi\spec\Schema; use cebe\openapi\spec\Reference; use Infira\omg\Omg; class SchemaObjectModel extends ObjectTemplate { public function __construct(string $namespace, string $schemaLocation) { parent::__construct($namespace, $schemaLocation); $this->setExtender...
true
b2f074b4f2e93b7d02166629afac71bead61b054
PHP
typrone1/giaphaphpmvc
/Core/View.php
UTF-8
9,619
2.609375
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Huu Ty * Date: 20/09/2017 * Time: 11:24 PM */ namespace Core; use App\Auth; use App\Flash; use App\Models\HoSo; use Twig_SimpleFunction; class View { public static function render($view, $args = []) { $file = "../App/Views/$view"; extract($args, EX...
true
05fdd90efc46f600760c0bfc9bd208ee6db93eed
PHP
mdsaon/Forex_Marketting_Signal
/views/currency.php
UTF-8
886
2.640625
3
[]
no_license
<?php print '<a href="?a=currencyI">New Entry</a>'; if(isset($_GET['id'])) { $sql = "delete from currency where id = ".$_GET['id']; if(mysql_query($sql)) { print '<span class="sc">Data Deleted</span>'; } } $sql = "select id,name from currency"; $r = mysql_query($sql); print '<table class="data" align="center"...
true