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
34e24bc770717b36ea18d35fb331a6f90854314d
PHP
richcfml/easyway
/updatetimezones.php
UTF-8
5,421
2.546875
3
[]
no_license
<?php $mStr = ""; if (isset($_POST["btnSubmit"])) { require_once "includes/config.php"; $mResult = dbAbstract::Execute("SELECT id, name, rest_address, rest_city, rest_state FROM resturants"); if (dbAbstract::returnRowsCount($mResult)>0) { $mCount = 0; $mTimeZoneName = "US/Eastern"; $mStr = "<table style='wi...
true
6315314b52d55bc247a9c87a58f264a541baf1ec
PHP
jakesutherland/nomad-validate
/src/rules/email-rule.php
UTF-8
754
2.84375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php /** * Nomad Validate Email Rule class file. * * @since 1.0.0 * * @package Nomad/Validate */ namespace Nomad\Validate\Rules; if ( ! defined( 'ABSPATH' ) ) exit; // Prevent direct access. if ( ! class_exists( __NAMESPACE__ . '\\Email_Rule' ) ) { class Email_Rule implements Rule { function __construct(...
true
fc35ab7d848c922b0e4c8f759c156c46ca68c0b9
PHP
matijap/Diplomski
/application/classes/WidgetClass/Table.php
UTF-8
1,411
2.515625
3
[]
no_license
<?php class WidgetClass_Table extends WidgetClass_Abstract { public function createWidget() { $displayOrder = 1; foreach ($this->params['table'] as $key => $oneTableData) { $data = array( 'widget_id' => $this->widget->id, 'value_1' => $oneTableD...
true
caea3543e2eb9960ebce9b5799c2fd43f95aa89d
PHP
jonathanwheeler01/data_curation
/tests/classes/schemas/XMLNameSpaceTest.php
UTF-8
1,559
2.71875
3
[]
no_license
<?php require_once dirname(__FILE__) . '/../../../curation_tool.inc'; /** * Test class for XMLNameSpace. * Generated by PHPUnit on 2011-11-14 at 19:28:14. */ class XMLNameSpaceTest extends PHPUnit_Framework_TestCase { /** * @var XMLNameSpace */ protected $object; /** * Sets up the fixture, for exam...
true
2895d59221a8118ae1e9aabf91cae08c089af684
PHP
tobimichigan/LASUHRM
/symfony/plugins/orangehrmAdminPlugin/lib/dao/PayGradeDao.php
UTF-8
2,029
2.65625
3
[]
no_license
<?php /*** LASUHRM is a comprehensive Human Resource Management (HRM) System that captures * all the essential functionalities required for the Academic/Non Academic Staff Establishments of Lagos State University respectively . This Software has been tested on a remote server and is capable of encapsulating large inf...
true
ffc66d269c8d69cbd5f17e8b656c5c21273dd9fe
PHP
prettyhappycatty/homekeeping
/php/src/entity/shop.php
UTF-8
1,256
3.34375
3
[]
no_license
<?php class Shop{ var $id; var $name; var $default_category_id; public function getStandardHtml(){ $ret = ""; $ret .= "id=" . $this->id . "<br>"; $ret .= "name=" . $this->name . "<br>"; $ret .= "default_...
true
b044c4fa63846b36b608d5c96c1dbe906b54e96b
PHP
Ameron7/DDPL
/mel-medica (admin)/admin/cek_session.php
UTF-8
255
2.59375
3
[]
no_license
<?php session_start(); //mengecek apakah session username kosong atau tidak if (!isset($_SESSION['username']) || empty($_SESSION['username'])) { //jika kosong redirect ke halaman login header('location:login.php'); } ?>
true
9a0f20ae00814dc6877612f98e0a9472773331e6
PHP
BurdaMagazinOrg/robo
/Utility/Drupal.php
UTF-8
6,209
2.71875
3
[]
no_license
<?php namespace Thunder\Robo\Utility; use Robo\Robo; /** * A helper class for Drupal sites. */ class Drupal { /** * Is installed? * * @return bool * Whether Drupal is already installed or not. * * @throws \Exception */ public static function isInstalled() { $status = static::parseSt...
true
b65afe83ff9edf18c1a07ac8c4d85ad73f655fa2
PHP
waxim/vouchers
/tests/Vouchers/VoucherTest.php
UTF-8
1,233
2.703125
3
[]
no_license
<?php namespace Vouchers\Tests; use PHPUnit_Framework_TestCase as PHPUnit; class VoucherTest extends PHPUnit { /** * Make a voucher. */ public function testCanMakeAVoucher() { $voucher = new \Vouchers\Voucher(); $this->assertTrue(is_object($voucher)); } /** * Test ...
true
b7b74cb9fd0c762ebd188098ffee05edae23eef9
PHP
mohamedco96/salahSelemApi
/app/Models/Video.php
UTF-8
1,403
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Video extends Model { use HasFactory; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = ['video_Name', 'video_Descri...
true
a16de4a503c1e32aefbbc2528c4a4bac0fdfb6f6
PHP
tmars/BlogTender
/src/mh/Common/HabraParser/API.php
UTF-8
10,270
2.671875
3
[ "MIT" ]
permissive
<?php /** * Парсер данных с ХабраХабра. * * Лицензия - делайте с файлом что хотите, только не кидайтесь помидорами и автора из файлов не выкидывайте. * * @author Моисеев Дмитрий aka Newbilius (Nubilius) <newbilius@gmail.com> * @copyright 2013 * @link https://github.com/Newbilius/habrahabr_parser */ ...
true
548965a3aeba992bfd9499470ff7b5b9be92f647
PHP
sahoojagannath/Github-learning
/index_1.php
UTF-8
103
3.203125
3
[]
no_license
<?php class Animal{ public function name(){ echo 'hello'; } } $obs=new Animal; $obs->name(); ?>
true
2b3f26145016a9b5c09fbc0075c6b05e331bd7a8
PHP
stefanvujic/email-investigator
/classes/class.pawnd.php
UTF-8
1,016
2.53125
3
[]
no_license
<?php define("HIBP_KEY", "356caf020183406f88b0a67e4c445867"); class Pawnd { protected $email; protected $url; protected $headers; protected $breaches; function __construct($email) { $this->email = $email; $this->headers = array(); } protected function curl_response() { $curl = curl_init(); curl_set...
true
ed185c79592dcfe0c607593e30bc91f0b53ad94f
PHP
CaptainDjy/jingtao
/backend/models/SystemMenu.php
UTF-8
4,810
2.578125
3
[]
no_license
<?php namespace backend\models; use common\helpers\Utils; use Yii; use yii\base\Exception; use yii\db\ActiveRecord; /** * SystemMenu model * @property integer id * @property integer pid * @property string title * @property string link * @property string icon * @property string group * @property string remark...
true
96f7dbfd5e732ff44d3b4cd98ced7412299658f5
PHP
codeGF/coffeePhp
/private/helpers/ptdcurl.class.php
UTF-8
4,981
2.671875
3
[]
no_license
<?php /** * Created by PhpStorm. * author: changguofeng <changguofeng3@163.com>. * createTime: 2015/9/8 14:14 * 版权所有: 允许自由扩展开发,如有问题及建议可反馈与我,非常感谢 :) */ class PtdCurl { public $proxy = ""; //代理服务器 private $_responses = array(); private $_queue, $_ch, $_url; public $timeout = 30; //设置cURL允许执行的最长秒数 ...
true
6bf8416840a6f3e744ff0e5eb3d9f3fd48660eeb
PHP
iesgrancapitan-proyectos/202021daw_junio_SKB_api
/apiShikoba/src/Action/CotutoriasAlumnoReadAction.php
UTF-8
999
2.703125
3
[]
no_license
<?php namespace App\Action; use App\Domain\CotutoriaAlumno\Service\CotutoriaAlumnoReader; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; final class CotutoriasAlumnoReadAction { private $cotutoriaAlumnoReader; public function __construct(CotutoriaAlumnoReader $cotutoria...
true
75f7522e558bc2fe750f0a9f97c8920a6a8574ec
PHP
sporchia/alttp_vt_randomizer
/app/Support/InitialSram.php
UTF-8
29,241
2.8125
3
[ "MIT" ]
permissive
<?php namespace ALttP\Support; use ALttp\Support\ItemCollection; /** * Wrapper class around an array holding an initial SRAM table which * is written to the ROM and copied on new save file creation. The class has * methods to alter the initial SRAM state and a get_initial_sram method which * produces an array of...
true
86e840392c83bdeeef8525e1ecaecf796b1bdbe3
PHP
MizanUrp11/php
/admin/includes/edit_post.php
UTF-8
4,876
2.59375
3
[]
no_license
<?php if(isset($_GET['p_id'])){ $the_post_id = $_GET['p_id']; } $query = "SELECT * FROM posts WHERE post_id = $the_post_id "; $select_posts_by_id = mysqli_query($connection, $query); while($row = mysqli_fetch_assoc($select_posts_by_id)){ $post_id = $row['post_id']; $post_aut...
true
52327eaa6a598470a7dca76fe62e6d17070e2c4f
PHP
KennyDaren/shortener
/app/src/Application/ResultSet/DoctrineResultSet.php
UTF-8
1,244
2.875
3
[]
no_license
<?php namespace Shortener\Application\ResultSet; use Doctrine\ORM\Tools\Pagination\Paginator; use Kdyby\Doctrine\QueryBuilder; use Shortener\Application\Filter\IFilter; /** * Result set for doctrine queries * * @author Hynek Nerad <iam@kennydaren.me> * @package Shortener\Application\ResultSet */ class Doctrine...
true
ac8f6075644bb6ab981bac0eef357fb4c159f8fa
PHP
thaian229/Web-Programming
/lab06/6.1/practice/sale.php
UTF-8
1,920
2.8125
3
[]
no_license
<html> <head> <title>Product Update Results</title> </head> <body> <?php $host= 'localhost'; $user = 'thaian229'; $passwd = '22114455'; $database = 'mydb'; function Show_all($connect, $table_name){ $query = "SELECT * from $table_name"; $results_id = $connect->query($query); print '<table border=...
true
a42020a54459c9f5c8317f7878319f8f7c78b310
PHP
Dheia/caretakers_october-Keios-Apparatus
/src/plugins/keios/prouser/actions/SendActivationEmail.php
UTF-8
1,100
2.578125
3
[ "MIT" ]
permissive
<?php namespace Keios\ProUser\Actions; use Keios\Apparatus\Core\SideAction; use Keios\ProUser\Models\Settings as UserSettings; /** * Class SendActivationEmail * * @package Keios\ProUser\Actions */ class SendActivationEmail extends SideAction { /** * Sends activation e-mail * * @param $user ...
true
3eadbe2ba942bfb8943fd31f835d6d9a09b53002
PHP
SlownLS/twitch_api
/views/index/view.php
UTF-8
3,484
2.703125
3
[ "Apache-2.0" ]
permissive
<?php use SlownLS\Twitch\User; use SlownLS\Twitch\Channel; $channelName = "slownls"; if( isset($_GET["channel"]) && !empty($_GET["channel"]) ){ $channelName = htmlspecialchars($_GET["channel"]); } try { $channel = new Channel($channelName, TWITCH_CLIENT); } catch(SlownLS\Twitch\Exception $e){ echo $e->...
true
f496b0a6b9d668cbe3a0684387afb56ae3537c53
PHP
piff-you/laravel
/routes/web.php
UTF-8
3,983
2.859375
3
[ "MIT" ]
permissive
<?php // 默认就是了csrf验证功能,提高网站的安全级别 /*Route::any('/aaa', function () { if (!empty($_POST['uname'])) { echo $_POST['uname']; } return '<form action="" method="post"> <input type="text" name="uname"> <input type="submit" value="登录"> </form>'; });*/ // GET 只有它不进行csrf验证 /*// http状态码 200 Route...
true
1f1679badd6bc910ab0d9b0678a354ac8cb04ac8
PHP
TT-talhatariq/DIVIDITE
/php/imageUpload.php
UTF-8
1,100
2.625
3
[]
no_license
<?php session_start(); include 'functions.php'; if(!isset($_SESSION['email']) || $_SERVER['REQUEST_METHOD'] != 'POST' || !isset($_FILES['file'])) die('Invalid Access'); $file = $_FILES['file']; $type = $file['type']; $sql = linkDatabase(); if($type != 'image/jpeg' && $type != 'imag...
true
9f9a749fb600d344ca300b81f568f90e8b506b9d
PHP
iSynthetica/Selenium
/test/Nearsoft/SeleniumClient/NavigationTest.php
UTF-8
1,498
2.53125
3
[]
no_license
<?php require_once __DIR__ . '/AbstractTest.php'; use Nearsoft\SeleniumClient\By; class NavigationTest extends AbstractTest { public function testToShouldNavigateToUrl() { $url = $this->_url."/formReceptor.php"; $navigation =$this->_driver->navigate(); $navigation->to($url); ...
true
7794c1227ded8fd592df1230abee024a6a1ab2c8
PHP
s3qube/herokumaster
/application/models/channels_model.php
UTF-8
4,263
2.578125
3
[]
no_license
<? class Channels_model extends CI_Model { function ChannelsModel() { // Call the Model constructor parent::__construct(); } function fetchChannels($opm_productid = 0) { // first we need property id for that product. if ($opm_productid != 0) { $sql = ...
true
66962af270539e797aa264d2ef147efb97b58d75
PHP
maxemus1/mailEventData
/app/Console/ToQueueCommand.php
UTF-8
1,704
2.6875
3
[]
no_license
<?php namespace App\Console; use App\Model\DelayedQueue; use App\Model\Queue; use Symfony\Component\Console\Output\OutputInterface; use App\Services\DelayedQueue\CheckMailingService; class ToQueueCommand { /** * @var Queue */ private Queue $queue; /** * @var CheckMailingService */ ...
true
9983a4a5a8911d8ab7a5e434b6362289c4ca638b
PHP
kolesarovakristina/anketa
/homework.php
UTF-8
4,116
2.890625
3
[]
no_license
<!DOCTYPE html> <html> <head> </head> <body> <?php if( empty($_GET["shop"]) ) { echo "<div>Please select some option!</div>"; } else { $shop=$_GET["shop"]; } if (isset($_GET['terms'])) { // Checkbox is selected $servername = "localhost"; $username = "root"; $pass = ""; $db = "skills"; // C...
true
40d039fb9dc7c6e3f9db8d220dea7b0f39ff9c1f
PHP
Zebban90a/PHP-restful-API
/functions.php
UTF-8
912
3.25
3
[]
no_license
<?php function getRandom ($arr, $length) { if($length > count($arr)) { throw new Exception ('Det antalet finns inte, ange ett lägre nummer'); } if($length < 0) { throw new Exception ('Det antalet finns inte, ange ett högre nummer'); } $newArr = array(); while(!empty($arr) &...
true
663fa93cd442bf5d260711e4d82a65a6451117e8
PHP
danilo4web/symfony-microservice-example
/src/Entity/ProductCollection.php
UTF-8
1,028
3.046875
3
[]
no_license
<?php declare(strict_types=1); namespace App\ProductsService\Entity; /** * class: ProductCollection * * @package App\ProductsService\Entity * @author Danilo Pereira <danilo4web@gmail.com> */ class ProductCollection implements \IteratorAggregate, \Countable { /** @var array */ protected $collection = [];...
true
3dd6aea05902397b33fe1f72ebe7a14e98f022c7
PHP
itzt/Bblog
/app/Comments.php
UTF-8
1,792
2.609375
3
[ "MIT" ]
permissive
<?php namespace App; use DB; use Illuminate\Database\Eloquent\Model; use Config; class Comments extends Model { protected $primaryKey='com_id';//表的主键 /** * 可以被批量赋值的属性 * * @var array */ protected $fillable = ['nickname','email','content','user_id','post_id','ip','parent_id']; ...
true
ce97837b44964e0160d2e9b3d8ce235bef62bab9
PHP
zemkat/Spreadsheet
/Spreadsheet.php
UTF-8
5,786
3.265625
3
[ "CC-BY-4.0" ]
permissive
<?php # # Spreadsheet.php - a library for generating spreadsheets # in Excel's XML format # # (c) 2014 Kathryn Lybarger. CC-BY-SA # class Spreadsheet { # actually a workbook, but who says that? public $styles; # array of type Style public $sheets; # array of type Sheet public $activeSheet; # i...
true
af6d6b0d83a3cfce7269b0b856e353e73b740bdb
PHP
Denitsa2212/clockHandAngle2
/clock.php
UTF-8
636
2.90625
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>PHP project</title> <meta charset="utf-8"> </head> <body> <?php include 'includes/links.php'; ?> <form action="clock.php" method="get"> <p></p> Моля въведете часa във формат h:mm:ss <p></p> <input type="text" name="time" placeholder="time..."> <p></p> ...
true
706d792ec74effe4cc09abc23e267ed84089e156
PHP
benoitdavidfr/geovect
/features/displayjson.inc.php
UTF-8
7,331
2.90625
3
[]
no_license
<?php /*PhpDoc: name: displayjson.inc.php title: displayjson.inc.php - affiche une valeur encodée en JSON, Yaml ou Html sans la construire en mémoire functions: doc: | Les fonctions json_encode() et Yaml::dump() nécessitent de construire en mémoire la valeur à afficher ce qui fait exploser la mémoire quand il y a t...
true
e55e6436f07a57ab60dc1166fedef4fc8bc39eab
PHP
KlaraOppenheimerSchule/FeedshopAPI
/code/src/Router.php
UTF-8
277
2.78125
3
[]
no_license
<?php namespace feedshop; use feedshop\http\Uri; interface Router { public function getAction(Uri $uri, string $method): Action; public function addRoute(string $uri, Action $action, string $method); public function getRequestUrlArguments(Uri $uri): array; }
true
dc6f177c641da4045c85d088f1c2c0a5b017f3ab
PHP
bwaidelich/contentrepository-development-collection
/Neos.EventSourcedContentRepository/Classes/Domain/ValueObject/PropertyValue.php
UTF-8
1,793
2.703125
3
[]
no_license
<?php declare(strict_types=1); namespace Neos\EventSourcedContentRepository\Domain\ValueObject; /* * This file is part of the Neos.ContentRepository package. * * (c) Contributors of the Neos Project - www.neos.io * * This package is Open Source Software. For the full copyright and license * information, please v...
true
3a5be0c3fdcf30e51ad30bde6bc27fcbee5b654e
PHP
iamfil/netForum-xWeb-APi
/netForum/xWeb/Xml/Generated/WEBCentralizedShoppingCartExhibitorGetBoothTypeList.php
UTF-8
713
2.53125
3
[]
no_license
<?php namespace netForum\xWeb\Xml\Generated; class WEBCentralizedShoppingCartExhibitorGetBoothTypeList { /** * @var guid $ExhibitKey */ protected $ExhibitKey = null; /** * @param guid $ExhibitKey */ public function __construct($ExhibitKey) { $this->ExhibitKey = $Exhibit...
true
97ee8758d8396c73d363d2711c3aad522497659d
PHP
sabryalawy/PHPMVCSimpleStructure
/Model/Professional.php
UTF-8
684
2.703125
3
[]
no_license
<?php class Professional{ public $id; public $userName; public $fName; public $lName; public $password; public $phoneNum; public $gender; public $loginStatus; public $lastLogin; public $profession; public $address; public $email; public function __construct() ...
true
e07aa67f2eb9dd59bb557a393745c0eb51b1d7a4
PHP
SampicBE/laravel-adorable-avatars
/tests/AdorableAvatarsTest.php
UTF-8
2,445
2.59375
3
[ "MIT" ]
permissive
<?php namespace Sampic\LaravelAdorableAvatars\Tests\Unit; use Mockery; use Sampic\LaravelAdorableAvatars\AdorableAvatars; /** * Class AdorableAvatarsTest * @package Sampic\LaravelAdorableAvatars\Tests\Unit */ class AdorableAvatarsTest extends \Orchestra\Testbench\TestCase { /** @test */ public function it...
true
6899e628294c3bb1ddfc5094cc00e7715c818964
PHP
azteca-dev/aksi
/api/controllers/UbicacionController.inc
UTF-8
3,492
2.65625
3
[]
no_license
<?php require_once "./resources/exceptions.inc"; require_once "../modulos/services.inc"; require_once "../modulos/models.inc"; class UbicacionApiController { public function manager(){ header('Content-Type: application/JSON; charset=utf-8'); header('Access-Control-Allow-Origin: *'); header('Access-Control-Allo...
true
383c10c15995aa5dbaa9ed948eb5d08d2b32d415
PHP
kevindieu100/itp405-assignment-1
/dvds.php
UTF-8
1,610
3.046875
3
[]
no_license
<?php //redirects if url was messed if if (!isset($_GET['dvd_title'])) { header('Location: index.php'); } $host = 'itp460.usc.edu'; $database_name = 'dvd'; $username = 'student'; $password = 'ttrojan'; $dvd_title = $_GET['dvd_title']; // $_REQUEST['artist'] $pdo = new PDO("mysql:host=$host;dbname=$database_name",...
true
5fe7fbe65968f65758c6a4dcc0c53e76a2dce11d
PHP
turko09/turko09.github.io
/api/utils/email.php
UTF-8
1,596
2.734375
3
[]
no_license
<?php namespace TeamAlpha\Web; // Load dependencies $files = glob($_SERVER['DOCUMENT_ROOT'] . '/vendor/phpmailer/phpmailer/src/*.php'); foreach ($files as $file) { require_once $file; } // Declare use on objects to be used use PHPMailer\PHPMailer\PHPMailer; class Email { private $mailer; public function...
true
9b4b4fea69e306884495a966182965c23ca53fc7
PHP
zhanghaidi/yun_shop
/app/platform/modules/application/models/AppUser.php
UTF-8
2,390
2.53125
3
[]
no_license
<?php namespace app\platform\modules\application\models; use app\common\models\BaseModel; use app\platform\modules\user\models\AdminUser; use Illuminate\Database\Eloquent\Model; class AppUser extends BaseModel { protected $table = 'yz_app_user'; protected $search_fields = ['']; protected $guarded = ['']; p...
true
f730da4631a44a3fa51526d8fa3d59da986be793
PHP
lucasrossini/osiris
/app/core/lib/form/Rating.php
UTF-8
5,242
3.046875
3
[]
no_license
<?php namespace Form; /** * Classe que representa um campo de avaliação. * * @package Osiris * @author Lucas Rossini <lucasrferreira@gmail.com> * @version 15/01/2014 */ class Rating extends Field{ protected $max; protected $show_score; protected $scores; /** * Instancia...
true
935cedcbbadc798c783dc631bf38ceaa582a1dc4
PHP
jacano1969/moodle-theme_archaius
/lib.php
UTF-8
4,553
2.5625
3
[]
no_license
<?php /* * * Functions needed by the archaius theme should be put here. * * Any functions that get created here should ALWAYS contain the theme name * to reduce complications for other theme designers who may be copying this theme. */ function archaius_process_css($css, $theme) { // Set the background image...
true
76b0a7907b68feb79ba113b26eb91f223000655d
PHP
rossgl22/comp-353-project
/rate-my-boss/seeAds.php
UTF-8
1,279
2.671875
3
[]
no_license
<?php //This is the table with the comments. echo '<h1>Advertisements</h1> <table border = 1 class="comments"> <tr> <th class="comments">Advertisement_ID</th> <th class="comments">Title</th> <th class="comments">Description</th> <th class="comments">Start</th> <th class="comments">End</th> <...
true
a0e1557d627d10fbcd127c97f4975f29fc7dba88
PHP
fxaps/XMPie-WSDL-Wrapper
/src/XMPie/uStore/v_10_0/WSAPI/ProductInventoryWS/ReadInventoryLevelByExternalIDResponse.php
UTF-8
1,094
2.640625
3
[ "MIT" ]
permissive
<?php namespace XMPieWsdlClient\XMPie\uStore\v_10_0\WSAPI\ProductInventoryWS; class ReadInventoryLevelByExternalIDResponse { /** * @var int $ReadInventoryLevelByExternalIDResult */ protected $ReadInventoryLevelByExternalIDResult = null; /** * @param int $ReadInventoryLevelByExternalIDResu...
true
d68f8d15a33e57fcffcf8da32b97902dcaa7af0d
PHP
dappur/dappurware
/app/src/TwigExtension/Menus.php
UTF-8
2,576
2.609375
3
[ "MIT" ]
permissive
<?php namespace Dappur\TwigExtension; use Psr\Container\ContainerInterface; use Psr\Http\Message\RequestInterface; class Menus extends \Twig_Extension { protected $auth; protected $request; public function __construct(ContainerInterface $container) { $this->container = $container; } ...
true
74a0337daf21332f4026c37f0506ae1c47c66e3f
PHP
Epsiloncool/simplest-php-framework
/router.php
UTF-8
1,777
2.6875
3
[ "MIT" ]
permissive
<?php // A simple router functions global $routes, $url_parameters, $route_data; $url_parameters = array(); $route_data = false; class Route { public static function get($rexp, $cb) { global $routes; $routes[$rexp] = array($cb, '*', '', 'get'); } public static function post($rexp, $cb) { global $route...
true
230899fb2d57501d74d6c25fcf168580563c36d4
PHP
zhukovRoman/wi-fi
/protected/components/UserIdentity.php
UTF-8
2,137
2.859375
3
[]
no_license
<?php /** * UserIdentity represents the data needed to identity a user. * It contains the authentication method that checks if the provided * data can identity the user. */ class UserIdentity extends CUserIdentity { private $_id; private $_mail; const ERROR_EMAIL_INVALID=3; const ERROR_STATUS_NOTACTIVATED=4;...
true
8cf72e4722d4fd830aaa6a4e447d45219bcdbb94
PHP
romain-lisowski/pink-story
/apps/api-gateway/app/src/User/Domain/Command/UserRegenerateEmailValidationCodeCommandHandler.php
UTF-8
1,904
2.53125
3
[]
no_license
<?php declare(strict_types=1); namespace App\User\Domain\Command; use App\Common\Domain\Command\CommandHandlerInterface; use App\Common\Domain\Event\EventBusInterface; use App\Common\Domain\Model\EditableInterface; use App\Common\Domain\Security\AuthorizationCheckerInterface; use App\Common\Domain\Validator\Validato...
true
1268d6f4e3f1c87e75e27a55acc830fd602ad5b8
PHP
msarevalo/taxad
/database/migrations/2020_03_10_160842_create_rates_table.php
UTF-8
1,192
2.71875
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateRatesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('rates', function ...
true
cf5f55af36301fa7aba54212dfc41f8857f5ecac
PHP
lupermanasseh/app.midas.local
/app/Product.php
UTF-8
2,093
2.609375
3
[ "Apache-2.0" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Product extends Model { // protected $fillable = [ 'name', 'description', // 'lastname', // 'email', // 'password', ]; //Each product belongs to a product category public function productc...
true
3b3db7515f10ccbed6f11e8ece2467754bd10c45
PHP
grindell87/trademe
/emailer_shipping_confirmation.php
UTF-8
7,428
2.828125
3
[]
no_license
<?php /** * Sends a shipping confirmation HTML email via your gmail account to the given recipient * with the contents of their order and tracking details * * @author Matthew Grindell * @version 1.3 * @since 2013-05-16 */ /** * Sends an HTML email through your gmail account *...
true
95b1ad3a6135a7587a63f55b49069c3e529bafe6
PHP
doougui/b7web_php
/Aulas/modulo18_php7/operador_null/index.php
UTF-8
323
3.125
3
[]
no_license
<?php $array = array('nome' => 'Douglas', 'idade' => 16); // Pre-PHP7 // Exemplo 1 if (isset($array['idade'])) { $idade = $array['idade']; } else { $idade = ''; } // Exemplo 2 $idade = (isset($array['idade'])) ? $array['idade'] : ''; // Pós-PHP7 $idade = $array['idade'] ?? ''; echo "IDADE: ".$idad...
true
1f7c62dcc089c7f9f84b56be6f8d506f7e7a22bb
PHP
kompo/kompo
/src/Database/HasTranslations.php
UTF-8
6,807
2.59375
3
[ "MIT" ]
permissive
<?php namespace Kompo\Database; use Illuminate\Support\Str; use Illuminate\Support\Collection; use Kompo\Exceptions\NotTranslatableException; trait HasTranslations { /** * BLHM - Helper method used to get the best available translation for a key * in order of preference: locale -> fallback locale -> ne...
true
28594065b8de149d33529695bf8c00cbea18b267
PHP
DEVSENSE/Parsers
/Source/UnitTests/TestData/grammar/regression_012.phpt
UTF-8
229
2.59375
3
[ "Apache-2.0" ]
permissive
--TEST-- Testing for regression on const list syntax and arrays --FILE-- <?php class A { const A = [1, FOREACH]; } ?> --EXPECTF-- Parse error: syntax error, unexpected 'FOREACH' (T_FOREACH), expecting ']' in %s on line %d
true
61c5d563c6e992c0c6c72542287070e6dc45ab58
PHP
fazeel123/jobersRevamp
/app/Http/Controllers/API/CountryStateCityController.php
UTF-8
1,141
2.53125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers\API; use App\Http\Controllers\Controller; use App\Models\CityModel; use Illuminate\Http\Request; use App\Models\CountryModel; use App\Models\StateModel; class CountryStateCityController extends Controller { /** * Create a new controller instance. * * @return vo...
true
bcf137c3420bf2c72f8141f5c2381629d835de63
PHP
Kanabanarama/murrframework
/framework/predef/application/views/JsonView.php
UTF-8
2,698
2.890625
3
[]
no_license
<?php /** * JsonView * Murrmurr framework * * serves content as json formatted string * * @author René Lantzsch <kana@bookpile.net> * @since 26.06.2014 * @version 1.0 */ class JsonView extends BaseView { /** * Constructor * * @param $file string the file name you want to load */ ...
true
51ae5249ea1f0057df79c27c4be525a4bdaa88e3
PHP
LengKengDev/ebaymanager
/app/Order.php
UTF-8
1,378
2.515625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Order extends Model { protected $fillable = [ 'user_id', 'account_id', 'buyer', 'item', 'transaction_id', 'quantity', 'address', 'tracking', 'last_update', 'price', 'note', 'paid_on_date' ]; /** * @return \Illuminate...
true
19b65524ef7328d4c1e32173483afff5f3337f29
PHP
nasrullahmahar/panther
/panther/Cli/MigrateCommand.php
UTF-8
1,722
2.796875
3
[ "MIT" ]
permissive
<?php namespace Panther\Cli; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Input\InputArgument; use Panther\Database\Claw; class MigrateCommand extends Command { protected fun...
true
046625042ef1cb19ce54fd186b67522415818009
PHP
silverstripe-terraformers/doorman-process-manager
/tests/Manager/GroupProcessManagerTest.php
UTF-8
2,670
2.6875
3
[ "MIT" ]
permissive
<?php namespace AsyncPHP\Doorman\Tests\Manager; use AsyncPHP\Doorman\Manager\GroupProcessManager; use AsyncPHP\Doorman\Manager\ProcessManager; use AsyncPHP\Doorman\Task\ProcessCallbackTask; use AsyncPHP\Doorman\Tests\Test; /** * @covers AsyncPHP\Doorman\Manager\GroupProcessManager */ class GroupProcessManagerTest ...
true
ec77f9c5b9cdb3e5bcaae2ad90838777e75b7bb8
PHP
restapix/core
/src/resta/Request/RequestAnnotationAbstract.php
UTF-8
1,179
2.734375
3
[ "MIT" ]
permissive
<?php namespace Resta\Request; use Resta\Support\ClosureDispatcher; use Resta\Foundation\ApplicationProvider; abstract class RequestAnnotationAbstract extends ApplicationProvider { /** * @var object $request */ protected $request; /** * @var array $inputs */ prot...
true
77645e44e05ede2cbe26c2d7e7a42e275ed6b7f5
PHP
yuwen41200/php-framework
/model/MainModel.php
UTF-8
215
2.53125
3
[]
no_license
<?php class MainModel extends Model { function testing() { echo "Debug message: MainModel::testing() called<br>\n"; } function show() { $result = $this -> db -> showDatabases(); echo $result; } } ?>
true
d6596ca01019c02b630dbeeb63e276ceed419e5d
PHP
jsartisan/Patterns
/php/Observer-Pattern/src/Contracts/Observer.php
UTF-8
156
3.140625
3
[]
no_license
<?php namespace Pattern\Contracts; interface Observer{ // update value of the current observer public function update($temp, $humidity, $pressure); }
true
8110df5b38a7ad39608ea37fb244262ad01f9277
PHP
TawseefKhan/mamoniExport
/bin/libs/Table.php
UTF-8
10,239
2.875
3
[]
no_license
<?php class Table extends Schema { //will hold all the excel rows protected $keys; protected $tableName; protected $fieldConfigPath; protected $geoFields; protected $ambiguousCount = 0; protected $counter = 0; function __construct($tableName, $fieldConfigPath) { ...
true
42df9e8db42a3f2212d5589edb84010e653cb102
PHP
krinski-rs/autenticacao.local
/src/Service/Autorizacao/UsuarioRegra/Create.php
UTF-8
5,229
2.640625
3
[]
no_license
<?php namespace App\Service\Autorizacao\UsuarioRegra; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\Validator\Validation; use Doctrine\ORM\EntityManager; use App\Entity\Autorizacao\UsuarioRegra; use App\Entity\Autorizacao\Usuario; use App\Ent...
true
65610a4576b519814ec561a6cb633100cf92d2ea
PHP
SparrowDevelopment/sparrow-api-php
/SparrowSdk/src/Sparrow/SparrowClient.php
UTF-8
3,183
2.6875
3
[]
no_license
<?php namespace Sparrow; require_once "SparrowResponse.php"; require_once "SparrowClient.generated.php"; use GuzzleHttp\Client; use GuzzleHttp\Exception\RequestException; use GuzzleHttp\Promise\Promise; use Psr\Http\Message\ResponseInterface; interface SparrowResponsePromise{ function then(callable $onFulfilled ...
true
d708b96684b4d774ba1541099118de9e4915ab0c
PHP
katimaz/bb
/database/migrations/2019_06_05_005809_create_adm_members_table.php
UTF-8
1,374
2.515625
3
[ "MIT" ]
permissive
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateAdmMembersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { $tableName = 'adm_m...
true
80665cbf677ad94e14c7652dc964cc5ad8ceda95
PHP
sirodcar/pilot
/Delphi/WebBroker for Flex/www/ryulib/mysql.php
UHC
12,806
2.890625
3
[]
no_license
<? // Title : ͺ̽ Ʈ // ۼ : (ryujt658@hanmail.net) // ۼ : 2001 9 24 // : 2009 10 21 //// Class κ # MySQL ͺ̽ Ǵ Class class TMyConnection { var $link_id; var $Host; var $UserName; var $Password; var $DatabaseName; var $ErrorCode; var $ErrorMsg; function TMyCo...
true
c4a4e9520bec08db94fcc9bce45eb398ef5f17ce
PHP
kennedymadiba/pos_inventory
/10.10.168.101/search.php
UTF-8
689
2.515625
3
[]
no_license
<?php $connect = mysqli_connect("localhost", "root", "", "pos_inventory"); if(isset($_POST["query"])) { $output = ''; $query = "SELECT * FROM product WHERE code LIKE '%".$_POST["query"]."%'"; $result = mysqli_query($connect, $query); $output = '<ul class="list-unstyled ulkk">'; ...
true
eb2e9d66cda60533f9e7088757f606c2ffd6892c
PHP
PhileCMS/Phile
/lib/Phile/ServiceLocator/CacheInterface.php
UTF-8
1,172
2.875
3
[ "MIT" ]
permissive
<?php /** * Interface for a service locator */ namespace Phile\ServiceLocator; /** * Interface CacheInterface * * @link https://philecms.github.io * @license http://opensource.org/licenses/MIT * @package Phile\ServiceLocator */ interface CacheInterface { /** * check if an entry with this key exists...
true
46afb4c766ac0a6a62a3c00f099d0fa9ee4c800f
PHP
sourav-khunger/Nexus_Web_App-Api
/ajax/get-chat-list.php
UTF-8
2,644
2.625
3
[]
no_license
<?php session_start(); // include database and object files include_once '../web-api/config/db.php'; include_once '../web-api/config/core.php'; include_once '../web-api/objects/user.php'; include_once '../web-api/objects/chat.php'; // instantiate database and user object $database = new Database(...
true
6947c52dd3ccf8c72991af1cef059eb39dac12f7
PHP
wintercms/wn-notify-plugin
/notifyrules/ExecutionContextCondition.php
UTF-8
3,454
2.546875
3
[ "MIT" ]
permissive
<?php namespace Winter\Notify\NotifyRules; use Cms\Classes\Theme; use Winter\Notify\Classes\ConditionBase; class ExecutionContextCondition extends ConditionBase { protected $operators = [ 'is' => 'is', 'is_not' => 'is not', ]; public function getName() { return 'Event is trigg...
true
c1f8f1ffb9af531cbc5bc187e0edcff202141cd8
PHP
whale2/users
/modules/google/index.php
UTF-8
13,203
2.5625
3
[ "MIT" ]
permissive
<?php class GoogleAuthenticationModule extends AuthenticationModule { private $siteid; private $regHeadersLoaded = false; private $adminHeaderShown = false; private $remember; public function __construct($siteid, $remember = true) { parent::__construct(); $this->siteid = $siteid; // TODO Replace it with ...
true
777ef942a16b94a3a864bc0e7d7b023a1e421448
PHP
Anonymous-74/distributedSystems
/dSystems/include/core.dSystems.php
UTF-8
9,657
2.609375
3
[]
no_license
<?php /** * */ class dSystems { //Function to sanitize values received from the form. Prevents SQL injection function clean($str) { $str = @trim($str); if(get_magic_quotes_gpc()) { $str = stripslashes($str); } return mysql_real_escape_string($str); } //Function to...
true
4f77f85da2d57ba64d17c4dc497205bfc665f83d
PHP
Marcalzotto/Proyecto_egdo
/egdo_proyect/pag_interiores/subirImg.php
UTF-8
4,260
2.8125
3
[]
no_license
<?php //Archivo de conexión a la base de datos require('conexion.php'); //Creamos las variables necesarias $titulo = $_POST['nombre']; $descripcion = $_POST['descripcion']; //Filtro anti-XSS $caracteres_malos = array("<", ">", "\"", "'", "/", "<", ">", "'", "/"); $caracteres_buenos = array("&lt;", "&gt;", "&quot;", "...
true
22e23a291456d88902dbe1765750430b33f75838
PHP
jessequinn/udemy_php-for-complete-beginners-includes-msql-object-oriented
/Course_Work/CMS_incomplete/admin/includes/add_post.php
UTF-8
3,290
2.6875
3
[]
no_license
<?php if(isset($_POST['create_post'])) { $post_title = $_POST['post_title']; $post_category_id = $_POST['post_category']; $post_status = $_POST['post_status']; $post_img = $_FILES['post_img']['name']; $post_img_tmp = $_FILES['post_img']['tmp_name']; $post_tags = $_POST['post_tags']; $post_co...
true
0e1260c33f845da48c8793995d83c2c5aaaf7514
PHP
KubikJan7/IWWW
/term_work/code/iww_term_work/users/user_update.php
UTF-8
13,252
2.78125
3
[]
no_license
<?php $errorFeedbackArray = array(); $successFeedback = ""; if ($_SERVER['REQUEST_METHOD'] == 'POST') { // <editor-fold default-state="collapsed" desc="input-validation"> if (empty($_POST["first_name"])) { $feedbackMessage = "Je vyžadováno jméno!"; array_push($errorFeedbackArray, $feedbackMessag...
true
eea66c45883933bb330e84c90e81b214afed9236
PHP
anhsbolic/basic-secure-api
/app/Http/Controllers/TransactionController.php
UTF-8
4,625
2.515625
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use App\Ticket; use App\Transaction; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class TransactionController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { ...
true
2e7ad390893acc81ec080ee6c2ba158c1165d2a5
PHP
saniyasuhail/Employee-Management-System-in-Laravel
/database/factories/ModelFactory.php
UTF-8
1,416
2.703125
3
[]
no_license
<?php use Faker\Generator as Faker; /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | This directory should contain each of the model factory definitions for | your application. Factories pro...
true
3f300313bcf4e742b13c99d9b1794f46852d4592
PHP
KBarros2014/site
/site/lib/menuBar.php
UTF-8
1,541
3.6875
4
[]
no_license
<?php /* A simple menu management class ============================== This will create a simple menu with a div containing an unordered list. List items will have an anchor with text and an href for the linked page. Each item also has a key and one key may be specified as selected. The list item corres...
true
f439814fc8de464f0f1e80b247abbb2511aaa82a
PHP
sdevore/sandbox
/src/Controller/PostsController.php
UTF-8
861
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Controller; use App\Controller\AppController; use App\Traits\AllowActionsTrait; /** * Posts Controller * * @property \App\Model\Table\PostsTable $Posts * * @method \App\Model\Entity\Post[]|\Cake\Datasource\ResultSetInterface paginate($object = null, array $settings = []) */ class PostsContro...
true
058dd2b284a97cfd4b3cf760694a0e4699a722b2
PHP
whachoe/shapeshift-api-cli
/Shifters/Shapeshift/ShapeshiftOrderstatusConsumer.php
UTF-8
1,777
2.578125
3
[]
no_license
<?php namespace Shifters\Shapeshift; include_once "vendor/autoload.php"; include_once "config.php"; include_once "lib.php"; use Pheanstalk\Pheanstalk; class ShapeshiftOrderstatusConsumer { public function __construct() { $this->client = new Pheanstalk('127.0.0.1'); } public function listen()...
true
1e1ba1a3c4c936157608770f8b2b9a9ebe93d5c2
PHP
cuongvm17/php-design-patterns
/behavioral_patterns/observer.php
UTF-8
334
2.859375
3
[]
no_license
<?php interface SqlSubject { public function attach(SqlObserver $observer); public function detach(SqlObserver $observer); public function notify(); } class Subject implements SqlSubject { public $state; private $observers; public function __construct() { $this->observers = new...
true
a37c067b43815f7269fc9b039e72d2e013d4445a
PHP
fgoni/colornations3
/app/Console/Commands/StopEvent.php
UTF-8
1,321
2.703125
3
[ "MIT" ]
permissive
<?php namespace App\Console\Commands; use App\Classes\Facades\GameEvents; use App\EventLog; use Carbon\Carbon; use Illuminate\Console\Command; use League\Flysystem\Exception; class StopEvent extends Command { /** * The name and signature of the console command. * * @var string */ protecte...
true
b405be3a4328056962bfbd75b319781f6b326f43
PHP
xperonnaud/WorldTour
/app/models/Poi.php
UTF-8
2,243
2.75
3
[]
no_license
<?php class Poi extends BaseModel { protected $id; protected $address; protected $city; protected $longitude; protected $latitude; protected $name; protected $phone; protected $rating; protected $url; // initializes relations public f...
true
6a18cbf7b614f85dba3cc92db60f09bdccd6ee7f
PHP
mmmowww/PHPFrame
/library/bubble_sort.php
UTF-8
438
3.5625
4
[]
no_license
<?php class bubble_sort{ public $Arr = array(); function bubble_sort(){ $arr = $this->Arr; $size = sizeof($arr)-1; for ($i = $size; $i>=0; $i--) { for ($j = 0; $j<=($i-1); $j++) if ($arr[$j]>$arr[$j+1]) { $k = $arr[$j]; $arr[$j] = $arr[$j+1]; ...
true
a19795c23d4762f74a0dcd1d705aeadd877d09fe
PHP
perverse/creditorwatch-test
/app/GoogleSearch/Repositories/GoogleSearchRepositoryApi.php
UTF-8
1,836
2.6875
3
[]
no_license
<?php namespace App\GoogleSearch\Repositories; use App\GoogleSearch\Contracts\Repositories\SearchRepository; use GuzzleHttp\Client as GuzzleClient; use GuzzleHttp\Promise as GuzzlePromise; class GoogleSearchRepositoryApi implements SearchRepository { public function __construct(GuzzleClient $guzzle) { ...
true
991a2db75789d9f0e73d2826c0d5ecaa852a9fa9
PHP
codeyasam/Mappr
/includes/review.php
UTF-8
1,929
2.671875
3
[]
no_license
<?php require_once(LIB_PATH . DS . "database.php"); ?> <?php require_once(LIB_PATH . DS . "databaseObject.php"); ?> <?php require_once(LIB_PATH . DS . "functions.php"); ?> <?php class BranchReview extends DatabaseObject { protected static $table_name = "REVIEW_TB"; protected static $db_fields = array('id', 'use...
true
30f90af8e6e9484120ed2ad10db5f7d9dd2ca1c5
PHP
fclopezjurado/php-example-codes
/chapter_4/in_array.php
UTF-8
1,133
3.703125
4
[]
no_license
<?php /** * Created by PhpStorm. * User: fljurado * Date: 14/01/19 * Time: 17:53 * * in_array ( mixed $needle , array $haystack [, bool $strict = FALSE ] ) : bool * * Searches haystack for needle using loose comparison unless strict is set. * http://php.net/manual/en/function.in-array.php * @param mixed $nee...
true
3c12d393544465020a7e070aec97e0aecc5c8dcb
PHP
ezeallio/proyecto-final-web-ii
/Codigo Fuente/src/Models/Direccion.php
UTF-8
6,235
2.65625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: Globons * Date: 12/5/2019 * Time: 13:56 */ class Direccion extends Model { private $id; private $calle; private $altura; private $piso; private $departamento; private $provinciaId; private $provincia; private $partidoId; private $partido...
true
57a6b53a213bf9a8ecbc3a44daf238dc98c1bcd7
PHP
AyanaIyyar/phpLessons
/newPersonHandler.php
UTF-8
2,925
2.59375
3
[]
no_license
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Success</title> <link rel="icon" href="...
true
de373adafbc9011ae171e30b9afd41579312e744
PHP
kawax/authorize-google-api
/src/GoogleApiDriver.php
UTF-8
679
2.71875
3
[ "MIT" ]
permissive
<?php namespace Revolution\Authorize\GoogleApi; use Revolution\Authorize\Drivers\AbstractDriver; use Google_Client; class GoogleApiDriver extends AbstractDriver { /** * @var Google_Client */ private $client; /** * https://github.com/google/google-api-php-client/blob/master/src/Google/Clie...
true
391e4ebd320b6c757124c625b60e414d0be386a2
PHP
DanielMagro97/CIS1054
/search.php
UTF-8
2,160
2.53125
3
[ "MIT" ]
permissive
<html> <?php require('head.php'); ?> <?php require('data.php'); ?> <body> <?php include('menu.php') ?> <div id="page-wrap"> <h1> Search for products </h1> <div> <?php if(isset($_GET['categoryid']))...
true
fd1116d09e3f7fe5c148945ca0f0903224f62632
PHP
darvz/mobile_health
/api/query/read/announcement.php
UTF-8
656
2.671875
3
[]
no_license
<?php class ReadAnnouncement { private $announcement_table = "announcement_tbl"; public $announcement_id; function __construct($db) { $this->conn = $db; } function read_announcement(){ $query = 'SELECT * FROM '.$this->announcement_table.' ORDER BY announcement_id DESC'; $stmt = $this->conn->p...
true
85d7ecef216741c21ae253e2127df48f5ef826d6
PHP
salomalo/carrsindiana
/administrator/components/com_jce/elements/list.php
UTF-8
3,287
2.546875
3
[]
no_license
<?php /** * @version $Id: list.php 108 2011-02-26 16:40:33Z happy_noodle_boy $ * @package JCE * @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. * * @copyright Copyright (C) 2009 Ryan Demmer. All rights reserved. * @license GNU/GPL * This version may have been modified pursuant *...
true
c76f523252e85dafac4e081abb58821c951125b5
PHP
Ziyat/brs
/entities/Log.php
UTF-8
1,445
2.578125
3
[ "BSD-3-Clause" ]
permissive
<?php namespace app\entities; use app\forms\LogForm; use Yii; use yii\behaviors\TimestampBehavior; use yii\db\ActiveRecord; /** * This is the model class for table "log". * * @property int $id * @property string $action * @property string $description * @property int $user_id * @property integer $created_at ...
true
5f3e95411ea23b8c012cce5853511ff5cb8a2e50
PHP
sostart/phpkit
/heresy/~helper.php
UTF-8
406
2.515625
3
[]
no_license
<?php if (!function_exists('Heresy')) { /** * Heresy Helper * * 不传值 获取App实例 * 传入单个数组 设置config * 传入单个字符串 获取字符串对应的实例 * * @return mixed */ function Heresy() { return call_user_func_array(PHPKit\PHPKit::get(strtolower(__FUNCTION__)), func_...
true
04faf25ffd70a83ef1ee1591b9e47db9ddf63b37
PHP
reduanmasud/ngoms
/lib/Member.php
UTF-8
11,763
2.71875
3
[]
no_license
<?php include 'Database.php'; class Member { private $db; public function __construct() { $this->db = new Database(); } //Member Registration public function memberRegistration($data) { $name = $data["name"]; $fatherorhusband = $data["fh"]; if($fatherorhusband == "father_ok"){ $fatherName = $data...
true