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
9dc1028da65cbbb6910e68e56bd3bbf8c93d20c4
PHP
Steffb98/HaarlemFestival_groep5
/Controller/ActivityController.php
UTF-8
2,089
3.0625
3
[]
no_license
<?php require_once '../DAL/ActivityDAL.php'; class GetActivity { function GetActivity2(){ //get all activities from the database belonging to the volunteer $activityArray = CMS_GetActivity($_SESSION['LoggedInUser']->VolunteerID); //make an array for all the days $dayList = array(); //foreach ac...
true
53278aeb304cfa066e391fb9e18bd0a57f54526a
PHP
phuquang/themestandard
/samples/admin-setting.php
UTF-8
8,055
2.578125
3
[]
no_license
<?php class ThemeSettingsPage { /** * Holds the values to be used in the fields callbacks */ private $options; private $conf; /** * Start up */ public function __construct() { add_action('admin_menu', array($this, 'add_page_menu')); add_action(...
true
478c6e33d429eb3335ecce2f6a04bd3dbc7b3cad
PHP
Anondo/Pointless-Hypertext-Preprocessor-PHP-
/Session/set.php
UTF-8
395
3
3
[]
no_license
<?php session_start(); //this function creates a temporary file in the xampp folder and an array called $_SESSION to store variable //that can be shared among different php pages until the session is destroyed or the browser is closed $name = "Jason Blood"; $alter_ego = "Etrigan"; /* assigning the variables */ $_SESSI...
true
e7683ed9e8bf5d63a9e6226eb1e39cc9a8d09275
PHP
kitfbgh/104Project
/app/Http/Controllers/Api/ProductApiController.php
UTF-8
4,975
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers\Api; use App\Exceptions\APIException; use App\Http\Controllers\Controller; use App\Models\Product; use App\Services\ProductService; use Illuminate\Http\Request; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Validator; use Tymon\JWTAuth\Facades\JWTAuth; class...
true
7303238348f3e8ce818d14901176473b7127ff80
PHP
avfallon/PetSitterApp
/app/src/main/php/query.php
UTF-8
967
3.078125
3
[]
no_license
<?php include( "constants.php"); $username = Constants::USERNAME; // credentials to connect to sqli $mysqli = new mysqli( Constants::HOST, $username, Constants::PASSWORD, Constants::DATABASE); $result = $mysqli->query("select * from Pets"); // make an array of json pet objects $array = []; while($...
true
81a2ea06498c2cc64b5d1559e6816107ba4bb197
PHP
arnedesmedt/value-objects
/src/Implementation/Enum/TransitionEnumValue.php
UTF-8
1,993
3.078125
3
[]
no_license
<?php declare(strict_types=1); namespace ADS\ValueObjects\Implementation\Enum; use RuntimeException; use function array_filter; use function array_key_exists; use function assert; use function in_array; use function sprintf; abstract class TransitionEnumValue extends EnumValue { /** * @return array<string...
true
c055eeece6ddbfdaa5439bd89bf5a5a77d28a67b
PHP
Weboog/locatia_2_php
/controllers/callback.php
UTF-8
1,752
2.75
3
[]
no_license
<?php class Callback extends Controller { public function add(){ if (isset($_POST)){ $name = new Widget(Widget::$TYPE_NAME, $_POST['name']); $email = new Widget(Widget::$TYPE_EMAIL, $_POST['email']); $phone = new Widget(Widget::$TYPE_PHONE, $_POST['phone']); ...
true
a5977a940557c1ddec2794ba7e7114337c28809d
PHP
Symftony/Identifier
/tests/Identifier/MyGidIdentifierTest.php
UTF-8
661
2.578125
3
[ "MIT" ]
permissive
<?php namespace Symftony\Identifier\Tests; use PHPUnit\Framework\TestCase; use Symftony\Identifier\MyGidIdentifier; class MyGidIdentifierTest extends TestCase { /** * @var MyGidIdentifier */ private $myGidIdentifier; public function setUp() { $this->myGidIdentifier = new MyGidIdent...
true
b9490c353ea6e24b7e517834eba98d0a000b2c9e
PHP
gaboeremita/alexandria
/database/factories/ModelFactory.php
UTF-8
1,694
2.640625
3
[ "MIT" ]
permissive
<?php /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | Here you may define all of your model factories. Model factories give | you a convenient way to create models for testing and seeding yo...
true
2a570774488fec77ba0635f34b979cdfacf5b4f7
PHP
silvioiannone/electron-pdf-php
/src/Exceptions/MissingSource.php
UTF-8
321
2.59375
3
[]
no_license
<?php namespace SI\ElectronPdfPhp\Exceptions; /** * This exception is thrown whenever the input source is not set. */ class MissingSource extends \Exception { /** * MissingSource constructor. */ public function __construct() { parent::__construct('No input source specified.'); } }...
true
231b146ed368ddee7c48fcc54d6458c4c1d5cdf8
PHP
aikidistas/YoutubeStatsDownloader
/src/Service/Youtube/PlaylistItemsService.php
UTF-8
1,559
2.671875
3
[]
no_license
<?php namespace App\Service\Youtube; use Google_Service_YouTube; use Google_Service_Youtube_PlaylistItem; use BadFunctionCallException; use App\Exception\YoutubeNotFoundException; class PlaylistItemsService { protected $service; protected $playlistId = null; protected $response = null; public funct...
true
029ee6da9b21d60b8e6aed643c5871458edba9ec
PHP
proem/proem
/lib/Proem/Service/Tests/AssetManagerFixtures/FooController.php
UTF-8
216
2.625
3
[ "MIT" ]
permissive
<?php class FooController { public function hello() { return "Hello World"; } public function goodbye(\ControllerDependency $dependency) { return $dependency->goodbye(); } }
true
0a81f4c47912c245da425dc5ccae7e65cad9f817
PHP
Naruttam/travelguidemaster
/module/Blog/src/Blog/Model/UserprofileTable.php
UTF-8
1,085
2.609375
3
[]
no_license
<?php namespace Blog\Model; use Zend\Db\TableGateway\TableGateway; use Zend\Db\Sql\Select; class UserprofileTable { protected $tableGateway; public function __construct(TableGateway $tableGateway) { $this->tableGateway = $tableGateway; } public function fetchAllusers() { $resultSet = $this->tableGateway...
true
636c65c06585a68b802803e5e8114f42cf9abec7
PHP
Little-song/frame
/core/Route.php
UTF-8
721
2.671875
3
[]
no_license
<?php namespace core; use Klein\Klein; class Route extends Klein { public function route() { $this->respond('GET', '/[:module]/[:controller]/[:method]', function($request){ // 获取类名,用于实例化 $class = $request->module . '\controller\\' . ucfirst($request->controller); ...
true
13d359325e428ca7ce61fe7947733aeaac7e5e90
PHP
AlexandreMalvy/ElanFormation
/src/Entity/Session.php
UTF-8
3,671
2.5625
3
[]
no_license
<?php namespace App\Entity; use App\Repository\SessionRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=SessionRepository::class) */ class Session { /** * @ORM\Id * @ORM\Generated...
true
35a07f5e0291792891fa18302597543db92661f9
PHP
catdad/brackets-theme-one-gray
/fixtures/php.php
UTF-8
1,743
3.453125
3
[]
no_license
<?php include_once 'sample3.php'; /** * Special global variable declaration DocBlock */ $GLOBALS['_myvar'] = 6; define('testing', 6); define('anotherconstant', strlen('hello')); function firstFunc($param1, $param2 = 'optional') { static $staticvar = 7; global $_myvar; return $staticvar; } /** * ...
true
3022da640f9f140cba0a892ecc00e8600d32b2ba
PHP
InnaFr/work
/first.php
UTF-8
2,013
2.859375
3
[]
no_license
<?php session_start(); $categories = array( array( "id" => 1, "title" => "Обувь", 'children' => array( array( 'id' => 2, 'title' => 'Ботинки', 'children' => array( array('id' => 3, 'title' => 'Кожа'), array('id' => 4, 'title' => 'Текстиль'), ), ), array('id' => 5, '...
true
3db05873759d6f484e0a9ba89bc39f9c3c2d343f
PHP
CesionBNK/CesionBnkCharts
/ChartService.php
UTF-8
3,686
3.265625
3
[]
no_license
<?php class ChartService{ public function CreateDummySet($n){ $datos = $this->GetBarChartData($n); $promedios = $this->MediaMovil($datos); return [$datos,$promedios]; } private function GetBarChartData($n){ $arrayN = []; for($i=0 ;$i<$n;$i++){ ...
true
21a945f5761151a5cf0b9dda6f3888b3ea310f71
PHP
wuye251/algorithm
/面试准备/2020/226. Invert Binary Tree.php
UTF-8
1,621
3.40625
3
[]
no_license
<?php /* Invert a binary tree. Example: Input: 4 / \ 2 7 / \ / \ 1 3 6 9 Output: 4 / \ 7 2 / \ / \ 9 6 3 1 Trivia: This problem was inspired by this original tweet by Max Howell: Google: 90% of our engineers use the software you wrote (Homebrew), but you can’t invert...
true
5b9ea0b8d8239866e63378652ce0861bbca9ee9b
PHP
Gokujo/postgresql-orm
/vendor/saggre/phpdocumentor-markdown/src/Extension/ObjectExtension.php
UTF-8
854
2.78125
3
[ "MIT" ]
permissive
<?php namespace PhpDocumentorMarkdown\Extension; use Twig\Error\RuntimeError; use Twig\Extension\AbstractExtension; use Twig\TwigFunction; class ObjectExtension extends AbstractExtension { /** * {@inheritdoc} */ public function getFunctions(): array { return [ new TwigFuncti...
true
86bd859fdcab58c7792457c979980f44411d349f
PHP
MinhTan211/final1
/mvc/extends/Tool.php
UTF-8
1,263
3.0625
3
[]
no_license
<?php class Tool{ //http://localhost/Final/controller/acction/param1/param2.. protected $controller="Home"; protected $acction = "index"; protected $params= []; function __construct() { //Array ( [0] => Home [1] => sayhi [2] => 1 [3] => 2 [4] => 3 ) $arr = $this->UrlProcess(); ...
true
f6ed94a71619fd1a9487fb88baca5099bc3f82e4
PHP
tolentino3575/Php-Library
/src/Author.php
UTF-8
3,871
3.234375
3
[ "MIT" ]
permissive
<?php class Author { private $name; private $id; function __construct($name, $id = null) { $this->name = $name; $this->id = $id; } function setName($new_name) { $this->name = (string) $new_name; } fun...
true
476089a6d6215eac4b0c0c603c98b07ef3ab15a7
PHP
BoscoTin/COMP4632-Lab5
/user/profile.php
UTF-8
9,954
2.640625
3
[]
no_license
<?php session_start(); isset($_SESSION["userId"]) or header("Location: ../index.php") and exit(0); include "../mysql.php"; $conn = FALSE; $userId = $_SESSION["userId"]; $userName = $_SESSION["userName"]; $email = trim($_GET["login"]); $phone = trim($_POST["txt_phone"]); ...
true
451689c055fb169d3bade3efbe45e90ce41952ce
PHP
Wazid-Hussain/programs
/Programming tasks 3/print_check.php
UTF-8
574
3.734375
4
[]
no_license
<?php /*================================================================== Write a program to Print Check Pattern ===================================================================*/ ?> <u><b> Q : Write a program to Print Check Pattern ?</b></u><hr> <table border="1px solid black" cellpadding="10px"> <?php ...
true
f0efe8fade40604870b28d4d29c9365656c92c26
PHP
salakhutdinov/coblog
/src/Storage/Repository.php
UTF-8
1,242
2.703125
3
[]
no_license
<?php namespace Coblog\Storage; class Repository { private $documentManager; private $className; private $collection; public function __construct(DocumentManager $documentManager, $className) { $this->documentManager = $documentManager; $this->className = $className; $th...
true
000410767a3a13e9d535c4785c2359d158fe17cb
PHP
skaut/snem-volby
/app/Model/Config/Repositories/IConfigRepository.php
UTF-8
425
2.6875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Model\Config\Repositories; use DateTimeImmutable; use Model\Config\Item; interface IConfigRepository { public function setValue(Item $item, ?string $value) : void; public function setDateTimeValue(Item $item, ?DateTimeImmutable $value) : void; public function g...
true
4f0703a152fac5e3a4584cbe3f569079808a6eaa
PHP
gmr/framewerk
/Base/Toolkit/Form/tFormField.inc
UTF-8
5,563
2.515625
3
[ "MIT", "Bitstream-Vera" ]
permissive
<?php // $Id: tFormField.inc 881 2007-06-14 01:51:06Z gmr $ ############################################################################ # Copyright (C) 2004-2007 by the Framewerk Development Group # # info@framewerk.org # # ...
true
e1f4d5f4815b6d1c8f445224f58446dc217c5064
PHP
Ar87iel/regex_test
/EMRDelegator/tests/EMRAdminTest/unit/tests/Service/BillingFeed/Marshaller/BillingFeedCollectionToArrayTest.php
UTF-8
1,813
2.71875
3
[]
no_license
<?php namespace EMRAdminTest\unit\tests\Service\BillingFeed\Marshaller; use EMRAdmin\Service\BillingFeed\Marshaller\BillingFeedCollectionToArray; use EMRAdmin\Service\BillingFeed\Dto\BillingFeedCollection; use EMRAdmin\Service\BillingFeed\Dto\BillingFeed; use PHPUnit_Framework_TestCase; use InvalidArgumentException; ...
true
ef909758fd234da885a6ef368431be188a6431ef
PHP
js-wei/Wechat
/ThinkPHP/Library/Vendor/Snake/CSResponseSearchVipInfo.php
UTF-8
2,047
2.875
3
[ "Apache-2.0" ]
permissive
<?php /** * * * Author: snake * Date: 14-4-13 * Time: 下午2:34 * Denpend: */ /** * 查询是否为Vip的回复 * * Class CSResponseSearchVipInfo * @package Snake */ class CSResponseSearchVipInfo { public $SrcUin; public $ResultID; public $VipType; # vip类型 public $EndTime; # vip结束时间 public $buffer; ...
true
e1252409e4eb213f83081dd63ad0584826470d51
PHP
jandersen65/Volleyball
/KTV-Homepage-ResultatVermittlung/php/mvc/model/Sammlung.php
UTF-8
1,024
3
3
[]
no_license
<?php class Sammlung { private $galerieList; private $sammlungRoot; private $sammlungRootName; private $sammlungName; public function __construct($sammlungPfad, $sammlungRootName) { $this->galerieList = array(); $this->sammlungName = substr($sammlungRootName, 4); $this->sammlungRo...
true
329f0cb64f4fbfa91373409bc2cd73061e301a74
PHP
serjio-dev/pdo
/src/Store/FactoryStore.php
UTF-8
1,974
2.9375
3
[]
no_license
<?php namespace App\Store; use App\Model\District; use App\Model\Street; use App\Store\StoreModels\StoreHandlerDistrict; use App\Store\StoreModels\StoreHandlerInterface; use App\Store\StoreModels\StoreHandlerStreet; /** * User: Serhii T. * Date: 5/29/18 */ class FactoryStore { /** * @var \PDO */ ...
true
91bc20316464cefa64ee9a174e7f9bd1b4a3f9b3
PHP
moss-maurice/trustpilot-parser
/src/components/Config.php
UTF-8
968
2.546875
3
[]
no_license
<?php /** * Copyright © 2021 Moss Maurice. All rights reserved. * Contacts: <kreexus@yandex.ru> * Profile: <https://github.com/moss-maurice> */ namespace mmaurice\parser\trustpilot\components; class Config { protected $baseConfigPath = '/../configs/config.php'; protected $config = []; public functi...
true
0e65c0268b9dd4422f0974c528020d59e30bfaa9
PHP
talemul/ExamTask
/src/Processor/Validation/ItValidator.php
UTF-8
1,111
2.875
3
[]
no_license
<?php namespace App\Processor\Validation; use Carbon\Carbon; use App\Utils\ApplicationConstant; use App\Model\DocumentInformation; /** * Italian validator */ class ItValidator extends DocumentValidator { protected function validateDocumentIssueDate(DocumentInformation $documentInformation) { // Ital...
true
79cdfeaf8362c87313d5706981edc03be3abf350
PHP
renasboy/php-mysql-micro-framework
/lib/app/language.class.php
UTF-8
1,790
2.9375
3
[]
no_license
<?php namespace app; class language { private $_conf = null; private $_data = []; public function __construct ($lang, conf $conf) { $this->_conf = $conf; $this->_lang = $this->_resolve($lang); } private function _init () { if ($this->_data === []) { $file = ...
true
30f441510c9b2882e025a534e704475449bc0351
PHP
DimitriZAMBO/Bank
/CompteEpargne.php
UTF-8
653
3.015625
3
[]
no_license
<?php require_once 'Compte.php'; class CompteEpargne extends Compte { private $dateDernierAjout; public function __construct($d) { $this->dateDernierAjout = $d; } /** * @return mixed */ public function getDateDernierAjout() { return $this->dateDernierAjout; ...
true
d9636d7e9aae564356c8622f9259af816307dd40
PHP
Clesh/Movies
/interface_video_portal/interface_video_portal/model/setdata/main_dao.php
UTF-8
10,838
2.78125
3
[]
no_license
<?php class main_dao { static function set_film($arr_film, $arr_staff, $arr_genre, $arr_honors_film, $arr_photo, $arr_country) { $q="INSERT INTO ".dbase::FILMS." (`id`, `name`, `slogan`, `year`, `budget`, `fees_world`, `fees_usa`, `fees_rus`, `date_premiere_world`, `date_premiere_ru...
true
c9cacd77751196d1075bef16484832824b61a0cd
PHP
srgdc/camagru
/controllers/reset_controller.php
UTF-8
1,592
2.796875
3
[]
no_license
<?php class ResetController { public function fpass() { $email = ""; $error = ""; if (!empty($_POST)) { $email = $_POST['email']; if ($this->_check($email) == False) $error = "mismatch"; } require_once('views/reset.php'); } private function _check($email) { if (ResetModel::mai...
true
e11d49b1efd7fbff40fa8c6ca072d3a5c97957cc
PHP
midnite81/geolocation
/src/Responses/Ip2Location/ContinentResponse.php
UTF-8
1,334
2.96875
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Midnite81\GeoLocation\Responses\Ip2Location; use Midnite81\Core\Responses\BaseResponse; class ContinentResponse extends BaseResponse { /** * Continent name. * * @var string|null */ public readonly ?string $name; /** * Two-character conti...
true
dc3b9d512fe25726fd7af0c87bed868f79c4f6b3
PHP
pinaksaha/parallels
/view/welcome.php
UTF-8
5,568
2.84375
3
[]
no_license
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>Welcome</title> <style type="text/css"> div.inline { float:left; padding: 2em; max-height: 800px;} .clearBoth { clear:both; } </style> </head> <body> <?php session_start(); $user=$_SESSION['user']; // print $user ."=>".$follower; class tweets { ...
true
3484b0feac4b03fb0cd230a3bbc176424b679c96
PHP
zaenalarifin12/php-admin-template
/modules/login/functions.php
UTF-8
1,929
2.640625
3
[]
no_license
<?php function check_user($username) { global $db; $query = $db->query('SELECT * FROM user WHERE username = ?', $username)->row(); return $query; } function check_login() { global $db; $error = false; $user = check_user($_POST['username']); if ($user) { if (!password_verify($_POST['pass...
true
a1f9e134d99cbe10c8065f07bcc3532b5f5839b9
PHP
laravel-studio/appointment
/database/migrations/2019_09_05_125548_create_slots_table.php
UTF-8
960
2.578125
3
[]
no_license
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateSlotsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('slots', function ...
true
07fa58197ad45fb21c608f531100464798c92b08
PHP
404NotFoundError/framework
/tools/Controller.php
UTF-8
1,553
2.984375
3
[]
no_license
<?php namespace Tool; /** * Mother of Controllers. */ class Controller { /** * List of parameters * @var array, $params */ protected $params = []; /** * List of errors * @var array, $errors */ protected $errors = []; /** * Add new errors in error list * @var string $key, Erro...
true
9734d0e42ed6f80aa5bc6d2a68cce068ca12c1c1
PHP
eltonmorais10/php-enum
/tests/Fixtures/EnumThatExtendsValidEnum.php
UTF-8
312
2.5625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Zlikavac32\Enum\Tests\Fixtures; /** * @method static EnumThatExtendsValidEnum ENUM_A */ abstract class EnumThatExtendsValidEnum extends ValidStringEnum { protected static function enumerate(): array { return [ 'ENUM_A' ]; } }
true
e71682dc085311dfb27f5a492b835831d8e85798
PHP
craig1709/jupiter-alpacas
/system/helpers/html.php
UTF-8
8,423
3.046875
3
[]
no_license
<?php defined('SYSPATH') or die('No direct script access.'); /** * HTML helper class. * * $Id: html.php 1971 2008-02-06 21:55:46Z Shadowhand $ * * @package Core * @author Kohana Team * @copyright (c) 2007-2008 Kohana Team * @license http://kohanaphp.com/license.html */ class html_Core { /** * Co...
true
52416380e990977d953c41eb9017505dcfa3a528
PHP
chaudhary4k4/mycollab3
/activecollab/4.2.3/angie/frameworks/payments/models/reports/FwPaymentReport.class.php
UTF-8
28,664
2.546875
3
[]
no_license
<?php /** * FwPaymentReport.class * * @package angie.frameworks.payments * @subpackage models */ class FwPaymentReport extends DataFilter { //Client filter const CLIENT_FILTER_ANYBODY = 'anybody'; const CLIENT_FILTER_SELECTED = 'selected'; // Date filters const DATE_FIL...
true
2faf92ff4cd136906365c16877b6a40536ad9d21
PHP
shaoweigege/Tualatin-Top-Bakery
/contact-us.php
UTF-8
9,963
2.53125
3
[]
no_license
<?php declare(strict_types=1); define('WP_USE_THEMES', false); require('./wordpress/wp-load.php'); $transmitResponse = ""; if ($_SERVER["REQUEST_METHOD"] === "POST") { if (isset($_POST['contactButton'])) { if (isset($_POST['userFirstName'])) { $UserFirstName = htmlspecialchars(strip_tags(trim...
true
60f9b30062fe9a21971e10426b491a74ef8ccc5f
PHP
jsorianogit/Inteligent-Web
/intelcode/login/libs/TpDebug.php
UTF-8
1,260
2.65625
3
[]
no_license
<?php /** * TurboPhp 4 - TpDebug * Version 4.1 Beta * * Routines to access the TurboPhp debugging display (via FTP). * * Copyright (c) 2004 Least-Resistance Software * * This source file is subject to the terms of the TurboPhp license, * that is bundled with this package in the file LICENSE.TXT, and is ...
true
a115d1b10715278f281026c3c954aefce580aaf4
PHP
aherne/php-sql-statements-api
/tests/Clause/RowTest.php
UTF-8
471
2.65625
3
[]
no_license
<?php namespace Test\Lucinda\Query\Clause; use Lucinda\Query\Clause\Row; use Lucinda\UnitTest\Result; class RowTest { public function isEmpty() { $row = new Row(["a", "b", "c"]); return new Result(!$row->isEmpty()); } public function toString() { $row = new Row(["a", "b",...
true
33f68fd286bad35c19989b726243c009b17646ce
PHP
Eliiiise/BDDI3_laGuildeDesSeigneurs
/src/Service/CharacterServiceInterface.php
UTF-8
473
2.890625
3
[]
no_license
<?php namespace App\Service; use App\Entity\Character; interface CharacterServiceInterface { /** * Creates the character */ public function create(); /** * Gets all the characters */ public function getAll(); /** * Modifies the characters */ ...
true
aaae7d4503ada770b382ae0f08d3677147f3c2ad
PHP
wqcsimple/dzjs
/vendor/fayfox/models/Page.php
UTF-8
2,729
2.8125
3
[ "MIT" ]
permissive
<?php namespace fayfox\models; use fayfox\core\Model; use fayfox\core\Sql; use fayfox\models\tables\PageCategories; use fayfox\models\tables\Pages; use fayfox\models\tables\Categories; class Page extends Model{ /** * @return Page */ public static function model($className = __CLASS__){ return parent::model(...
true
6b77014fc0c1760932b768067586dbd0a6e60aae
PHP
ray1161/Login-System
/insert.php
UTF-8
984
2.71875
3
[]
no_license
<?php /** *insert function for login system *used when user wants to insert new order *insert data into orderlist *@author Pengge *@version 1.0 */ //database connect include 'dbconfig.php'; //enable session session_start(); if(empty($_SESSION['login_user'])) //if no session in login_user, the...
true
753c3c6e7a33f7bc69488f8ede54c38eb579db5a
PHP
invosa01/devosa_base
/hrd/workforce_report_famstatus_new.php
UTF-8
3,864
2.671875
3
[]
no_license
<?php (isset($_REQUEST['dataInterval']) && $_REQUEST['dataInterval'] > 0) ? $strDataInterval = $_REQUEST['dataInterval'] : $strDataInterval = 10; $arrData = []; $maxAxis = 10; $untilAxis = date("Y"); // curr year $startAxis = $untilAxis - $maxAxis; //get all position $strSQL = "SELECT family_status_code FROM hrd_family...
true
fc25329abb32fa81dea7471692bab9fee9e01ef7
PHP
matb33/Dash
/.dash/Dash/JSONSettingStorage.php
UTF-8
2,668
3.046875
3
[ "MIT" ]
permissive
<?php namespace Dash; class JSONSettingStorage implements SettingStorageInterface { private $filename = NULL; private $pluginSettingsList = array(); public function __construct( $filename = "../.dash.json" ) { $this->filename = $filename; if( ! file_exists( $this->filename ) ) { file_put_contents( $thi...
true
05f1aab125d3703cec9748c966296c3589546189
PHP
566825/NotesMarketPlaceHTML
/MVC3/Admin/includes/functions.php
UTF-8
805
3.046875
3
[]
no_license
<?php // confirm query function confirmQuery($result) { global $connection; if (!$result) { die("Query FAILED " . mysqli_error($connection)); } } // get filesize function noteAttachmentSize($size) { if ($size >= 1073741824) { $note_attachment_size = number_format($size / 107374182...
true
7c2ea39e5f63c02681019474944917ad0ee5fe1e
PHP
AndManowar/laravel_test
/app/Components/Handbook/Requests/HandbookRequest.php
UTF-8
2,017
2.609375
3
[ "MIT" ]
permissive
<?php /** * Created by PhpStorm. * User: manowartop * Date: 02.05.18 * Time: 9:27 */ namespace App\Components\Handbook\Requests; use App\Http\Requests\Request; /** * Class HandbookRequest * @package App\Admin\Http\Requests */ class HandbookRequest extends Request { /** * @return array */ pu...
true
8206fc53dd460936440d9aaca5b95f490cd9ca3f
PHP
SabrinaPratamaPutri/LEA_OR-1
/app/Models/Barang.php
UTF-8
509
2.578125
3
[ "MIT" ]
permissive
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Barang extends Model { protected $table = 'barang'; static $validation_rules = [ 'id_barang' => 'required|unique:barang', 'nama_barang' => 'required' ]; static $validation_message = [ 'id_barang.unique...
true
f985d3be3154f8f07b06ceab28d10e4c9704daf0
PHP
asaggo/cs313-jessie
/web/week06/prove06.php
UTF-8
924
2.9375
3
[]
no_license
<?php error_reporting(E_ALL); ini_set('display_errors', 1); $dbUser = 'asaggo'; $dbPassword = '9002dnjs'; $dbName = 'recipes'; $dbPort = '5432'; $dbHost = 'localhost'; try { $db = new PDO("pgsql:host=$dbHost;port=$dbPort;dbname=$dbName", $dbUser, $dbPassword); $db->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTI...
true
025243780299c0c20706449f0c469d26fd7a25cb
PHP
evandojunior/urbem3.0
/src/Urbem/CoreBundle/Entity/Almoxarifado/ClassificacaoNivel.php
UTF-8
4,188
2.546875
3
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
<?php namespace Urbem\CoreBundle\Entity\Almoxarifado; /** * ClassificacaoNivel */ class ClassificacaoNivel { /** * PK * @var integer */ private $codCatalogo; /** * PK * @var integer */ private $nivel; /** * PK * @var integer */ private $codClas...
true
26a18afddcaed938024685bdf7d24ca6b126a9e2
PHP
masulfauzi/024-lap-timer
/WEB/panada/Resources/Pesanan.php
UTF-8
6,623
2.65625
3
[]
no_license
<?php namespace Controllers; use Resources, Models, Libraries; class Pesanan extends Resources\Controller { public function __construct(){ parent::__construct(); $this->session = new Resources\Session; $this->request = new Resources\Request; $this->m...
true
eb8ee94a8266342d8ddceb84abb06e9aae47cee1
PHP
ChoiBowon/Web_Mentoring
/process.php
UTF-8
2,912
2.59375
3
[]
no_license
<?php require_once("connect.php"); // 회원가입 시작 $memberId = $_POST['Id']; $memberPw = $_POST['Password']; $memberPw2 = $_POST['Password2']; $memberName = $_POST['Name']; $memberRole = $_POST['Role']; $memberPhoneNum = $_POST['PhoneNum']; $memberEmail = $_POST['Email']; $memberDept = $_POST['Department']; $memb...
true
950a5afd7f3797701eba71ce47c6895a75865ec0
PHP
cedtanghe/elixir
/src/framework/Elixir/Validator/Extension.php
UTF-8
1,504
2.828125
3
[]
no_license
<?php namespace Elixir\Validator; use Elixir\Util\File; use Elixir\Validator\ValidatorAbstract; use Elixir\Validator\ValidatorInterface; /** * @author Cédric Tanghe <ced.tanghe@gmail.com> */ class Extension extends ValidatorAbstract { /** * @var array */ protected $_errorMessageTemplates = [sel...
true
902911e60b6f0f21114f85a0d0133361455e1833
PHP
BenTheFox/ExpleoInternal
/src/modules/sign_in/sign_in_model.php
UTF-8
1,489
2.546875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: luke * Date: 10/24/18 * Time: 7:48 PM */ require_once ("../../lib/Connector.php"); if(!isset($_SESSION)) { session_start(); } function verifyUserInfo($data) { try { $base = Connector::getDatabase(); $email = $data['email']; $password = $...
true
8eda73e5ea5f3b213b725520fa9f95236371e5c5
PHP
Arkemlar/effective-api-example
/src/Api/Http/Failure/ActionFailure.php
UTF-8
556
2.765625
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace App\Api\Http\Failure; use App\Api\Action\Contract\Failure\ActionFailureInterface; abstract class ActionFailure implements ActionFailureInterface { protected string $code; protected string $message; public function __construct(string $code, string $message) {...
true
2db706c8d4d941b977318003368842cca75daed5
PHP
LucianoFlores98/Practica_PHP_U2-CaC
/index.php
UTF-8
581
2.59375
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Actividad PHP - U2</title> </head> <body> <?php $usuario['nombre'] = 'Luciano Adrian'; $usuario['apelli...
true
db4e7f89475a593ecbaf7aa6d487fb7435050dfd
PHP
planetenkiller/TimeIt-zk-12
/trunk/TimeIt/modules/TimeIt/lib/TimeIt/Doctrine/Categorisable.php
UTF-8
886
2.546875
3
[]
no_license
<?php /** * This template manages all record concerns related to it's dynamic categories. * * @see CategorisableListener */ class TimeIt_Doctrine_Categorisable extends Doctrine_Template { public function setUp() { // Turn on object categorisation. // This listener gets a name to be able to ...
true
cb1180ea26e58511c46afb3e6a676af460670098
PHP
DoSomething/gladiator
/app/Services/Phoenix/Phoenix.php
UTF-8
3,035
2.53125
3
[ "MIT" ]
permissive
<?php namespace Gladiator\Services\Phoenix; use DoSomething\Gateway\Common\RestApiClient; class Phoenix extends RestApiClient { use AuthorizesWithDrupal; /* * Phoenix API base uri. */ protected $base_uri; /** * Phoenix constructor. */ public function __construct() { ...
true
1a220f11ba30e30188a2dad57574e273ae781d63
PHP
jivres/frenchselect
/src/B2bBundle/Controller/CountryController.php
UTF-8
3,814
2.546875
3
[]
no_license
<?php namespace B2bBundle\Controller; use B2bBundle\Entity\Country; use Doctrine\DBAL\DBALException; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; /** * Country controller. * */ class CountryController extends Controller { /** * Lists all country ...
true
4550ef9996fdeba41a296da5cdb9ea3b4df7aaec
PHP
ColinHill/PHP
/Lab2/GetForm.php
UTF-8
2,004
3.1875
3
[]
no_license
<!DOCTYPE html> <html> <head> <title>What is my Zodiac?</title> </head> <body> <h3>Your Results:</h3> <?php $fname = ""; $lname = ""; $zodiac = ""; $month = ""; $day = ""; if ($_GET["fname"] AND $_GET["lname"] AND $_GET["month"] AND $_GET["day"]) { $month = $_GET['month']; $day = $_GET['day']; echo "...
true
55e41087ab129cc577537b80f8ea82d536877894
PHP
joaomsv/Garagem
/ajaxDataEntrada.php
UTF-8
2,181
2.796875
3
[]
no_license
<?php //Include the database configuration file include 'conexao.php'; require 'vendor/autoload.php'; use Sinesp\Sinesp; if(!empty($_POST["placaentrada"])){ $veiculo = new Sinesp; try { $veiculo->buscar($_POST["placaentrada"]); if ($veiculo->existe()) { //print_r($veiculo->dados()); //echo '...
true
f99f975f67079864f26904ed3a1a2da3a0f7939a
PHP
jcairmedia/ATA_API
/app/Main/CalendarEventMeeting/Domain/GetEventDomain.php
UTF-8
545
2.609375
3
[]
no_license
<?php namespace App\Main\CalendarEventMeeting\Domain; use App\CalendarEventMeeting; class GetEventDomain { public function __invoke(int $MeetingId) { try { $event = CalendarEventMeeting::where(['meetings_id' => $MeetingId]) ->orderBy('created_at', 'DESC') ->first()...
true
bee1e28c50939dd803746cd3957677fb45dc6eca
PHP
wondertalik/WDBManager
/WDBDataReader.php
UTF-8
5,831
3.125
3
[]
no_license
<?php /** * Этот файл содержит WDBDataReader class. * * @author WonderTalik <wondertalik@gmail.com> * @link http://it.bitmaster.dp.ua/ * Date: ${DATE} * Time: ${TIME} * @copyright 2013 */ namespace bitmaster\db; use \PDO; use \PDOStatement; /** * WDBDataReader предоставляет методы для обработки данных, полу...
true
e9f0fe304bb90e72f6d8bf28201eb4e5f0546907
PHP
jlchassaing/Moskito
/lib/design/classes/lcdesign.php
UTF-8
904
2.796875
3
[]
no_license
<?php /*! \class lcDesign lcdesign.php \version 0.1 \author jean-luc Chassaing handel designs and give tool methods */ class lcDesign { /*! return the real $file path according to the loaded desing \param string $file \return string */ public static function designUrl($file) { ...
true
611a51f5214b9ff09e080aca30fa0f8b490584da
PHP
nasforth/kalkulator
/tests/KalkulatorTest.php
UTF-8
402
2.546875
3
[ "MIT" ]
permissive
<?php use Komputronika\Kalkulator\Kalkulator; class KalkulatorTest extends PHPUnit_Framework_TestCase { public function testTambah() { $obj = new Kalkulator; $this->assertEquals(444, $obj->tambah(123,321)); $this->assertEquals(80, $obj->kurang(100,20)); $this->assertEquals(...
true
d5e5f933abdb64b253b116888c048ccd3582e531
PHP
gousta/gaian
/application/routes.php
UTF-8
13,627
2.546875
3
[ "MIT", "LicenseRef-scancode-dco-1.1" ]
permissive
<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Simply tell Laravel the HTTP verbs and URIs it should respond to. It is a | breeze to setup your application using Laravel's RESTful ...
true
9277ae5e3264fe9ece0905a42397d3802c7048af
PHP
JackPWeb/projet4_dwj-oc
/core/Html/MaterializeForm.php
UTF-8
1,934
2.859375
3
[]
no_license
<?php namespace Core\Html; class MaterializeForm extends Form{ /** * @param $html string code html à entourer * @return string */ protected function surround($html){ return $html; } /** * @param $name string * @param $label * @param array $options * @return string */ public function ...
true
b9cad072514a99bbb0cad78cc89f5ac1f420ea63
PHP
cardyremy/UniversalCMS
/php/updateTwoArticles.php
UTF-8
5,458
2.90625
3
[]
no_license
<?php /********************************************************** // Societe: ETML // Auteur: Cardy Remy // Date: 27.03.2017 // But: Mettre à jour les articles //*********************************************************/ session_start(); if($_SESSION['useRights']==2) { include_once ('function.php'); ...
true
3c123ab0a88257ded9fb3ef00a3e91c8f3962832
PHP
csev/cc4e
/tools/ccauto/rs-01-output.php
UTF-8
1,384
2.703125
3
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
<?php use \Tsugi\Core\LTIX; use \Tsugi\Util\LTI; use \Tsugi\Util\PDOX; use \Tsugi\Util\U; use \Tsugi\Util\Mersenne_Twister; // Called first function ccauto_instructions($LAUNCH) { GLOBAL $RANDOM_CODE_HOUR, $INT_2_1; $INT_2_1 = ($RANDOM_CODE_HOUR % 5) + 15; return <<< EOF <b>Exercise RS-1:</b> Write a C p...
true
1d439a548e5af7a7ef6b2dd16af1d3ad277ceaa6
PHP
kirill001/test-lumen-doctrine
/src/app/Services/RandomUserImporter.php
UTF-8
702
2.5625
3
[]
no_license
<?php namespace App\Services; use App\Entities\Customer; use App\Repositories\CustomerRepository; use App\Services\Contracts\DataImporterInterface; use Doctrine\ORM\EntityManagerInterface; use Mockery\Exception; class RandomUserImporter implements DataImporterInterface { public function import() : array { ...
true
e2f00f3cadd4b77ff32f8b07e57c8a07ba8e5e6f
PHP
makklays/Yii2-internet-shop
/frontend/controllers/ProductController.php
UTF-8
4,708
2.625
3
[]
permissive
<?php namespace frontend\controllers; use common\models\Product; use Yii; use yii\data\ActiveDataProvider; use yii\web\Controller; class ProductController extends Controller { /** * @param int $page * @return string|\yii\web\Response * @throws \yii\db\Exception */ public function actionInd...
true
1feb85b82cbeeee8283cc9293b58a690441b3124
PHP
lautenai/laravel-social
/application/models/message.php
UTF-8
493
2.765625
3
[ "MIT", "LicenseRef-scancode-dco-1.1" ]
permissive
<?php class Message extends Eloquent { /** * The name of the table associated with the model. * * @var string */ public static $table = 'messages'; /** * Indicates if the model has update and creation timestamps. * * @var bool */ public static $timestamps = true; /** * Establish the relations...
true
4a18b11ca14f6dfe6b792cd522505b721f4f04b5
PHP
sibrahimpa1/designertalk
/php/design-comment.php
UTF-8
1,736
2.671875
3
[]
no_license
<?php session_start(); if ($_SERVER['REQUEST_METHOD'] === 'GET') { $query = $_GET['q']; $mysql_db_host=getenv('MYSQL_55_CENTOS7_SERVICE_HOST'); $connection = new PDO("mysql:dbname=wt;host=$mysql_db_host", "admin", "admin"); $connection->exec("set names utf8"); $design = $connection->prepare("SELECT f.id, u....
true
769a319e36be6e8c488718db4838981b93a38c39
PHP
IsaacMilarky/WebDevOneDatabaseFinalProject
/staff/add-guest.php
UTF-8
1,235
2.859375
3
[]
no_license
<?php session_start(); include_once '../db_init.php'; include_once '../helper_functions.php'; init_db(); ?> <!DOCTYPE html> <html lang="en"> <head> <title>Add Guest to event - FinalProject</title> <?php include '../shared-header.php';?> </head> <body> <?php include '../navbar.php';?> <?php function check_login() { if...
true
cccea4bb92f71a27bc79772f32b3e074a32b05a9
PHP
UrosKuzmanovic/Beerchive
/functions/newBeer.php
UTF-8
1,335
2.5625
3
[]
no_license
<?php if (isset($_POST["unesi"])) { if (trim($_POST['naziv']) != "" && trim($_POST['zemlja']) != "" && trim($_POST['procenat']) != "" && trim($_POST['godina']) != "" && $_POST['vrsta'] != "") { $naziv = trim($_POST['naziv']); $zemlja = trim($_POST['zemlja']); $procen...
true
50b95fc920f90d41915ee7eca9e34bfb6b941da4
PHP
qwe2525033/lucklybet
/modules/member/actions/FollowAction.class.php
UTF-8
1,918
2.75
3
[]
no_license
<?php /** * 关注 * @author blueyb.java@gmail.com */ class FollowAction extends UserCenterAction{ /** * @var ModelDao */ private $dao = null; public function __construct(){ parent::__construct(); $this->dao = MD('Follow'); } public function index(HttpRequest $request){ $this->add($request); } /...
true
f031fcea0577a30e076d6bbbc727a07787c8e072
PHP
tableau-mkt/entity_xliff
/src/Drupal/Translatable/EntityFieldTranslatableBase.php
UTF-8
3,258
2.609375
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
<?php /** * @file * Base class for making entities translatable using Entity Translation module. */ namespace EntityXliff\Drupal\Translatable; use EntityXliff\Drupal\Utils\DrupalHandler; /** * Class EntityFieldTranslatableBase */ abstract class EntityFieldTranslatableBase extends EntityTranslatableBase { /...
true
06ae2978f06e8b3234304121623928102b0c9647
PHP
jpaldrin/accdc
/modules/accessible_chat_dialog_module/chat/sync.php
UTF-8
1,373
2.578125
3
[ "MIT" ]
permissive
<?php $dir_fileopen = "./sync_check"; if (file_exists($dir_fileopen) == false) { mkdir($dir_fileopen, 0777); } function randomid() { return time().substr(md5(microtime()), 0, rand(5, 12)); } function cfopen($filename, $mode, $overwriteanyway = false) { global $dir_fileopen; clearstatcache(); do { ...
true
e7c7b25341c5959f1bb5bd32d388d8cad54a90e3
PHP
mahmudtarek20/Ecommerce
/result.php
UTF-8
850
2.578125
3
[]
no_license
<?php require 'inc/header.php'; ?> <div class="container"> <?php if (isset($_GET['q'])) { $q=$_GET['q']; $sql="SELECT * FROM products WHERE products_title LIKE '%".$q."%' OR products_desc LIKE '%".$q."%'"; if ($result=mysqli_query($con,$sql)) { ?> <h3>About <?php echo $result->num_rows; ?> result found!</h3> <d...
true
e5ecf369b0b5c1f35cfdca680eb77df10dd8a77a
PHP
hefhuman/MIS
/app/models/Sy.php
UTF-8
2,759
3.046875
3
[]
no_license
<?php class Sy { private $db; public function __construct(){ $this->db = new Database(); } public function add($data){ $this->db->query('INSERT INTO sys(year_start, year_end, semester, switch) VALUES(:year_start, :year_end, :semester, :switch)'); //Bind Values $this->db->bind(':year_start', $data...
true
cfe8712d00c86fecd9c3e1e400ad0f17591cd27e
PHP
thewheat/intercom-forms
/contact-form/php/form.php
UTF-8
7,247
2.703125
3
[]
no_license
<?php require "vendor/autoload.php"; use Intercom\IntercomClient; // enter your configuration here $APP_ID = "YOUR_APP_ID"; $TOKEN = "YOUR_ACCESS_TOKEN"; // https://developers.intercom.com/docs/personal-access-tokens) standard access token needed for "lead" mode in order to list leads // $mode values: // - user // ...
true
afe382ab78faffa50b85498e5b7492ff08aab378
PHP
st-universe/core
/src/Component/Player/Deletion/Handler/TradepostDeletionHandler.php
UTF-8
3,650
2.609375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); namespace Stu\Component\Player\Deletion\Handler; use Stu\Module\History\Lib\EntryCreatorInterface; use Stu\Module\Message\Lib\PrivateMessageSenderInterface; use Stu\Module\PlayerSetting\Lib\UserEnum; use Stu\Orm\Entity\UserInterface; use Stu\Orm\Repository\ShipRepositoryInterface; use ...
true
e79053bf53289dc39cfcfbf89ed5a236ca387486
PHP
souparno/cakephp-user-auth
/app/Controller/UsersController.php
UTF-8
5,386
2.546875
3
[]
no_license
<?php App::uses('AppController', 'Controller'); /** * Users Controller * * @property User $User * @property PaginatorComponent $Paginator */ class UsersController extends AppController { public function beforeFilter() { parent::beforeFilter(); $this->Auth->allow('add'); $this->Auth->...
true
7808c45a4c856127ecda8a61a43aedb3d810fd3d
PHP
vickyleon/sagden
/lib/beans/class.Usuario.php
UTF-8
1,436
3.125
3
[]
no_license
<?php /** * */ class Usuario { var $id; var $nombre; var $apellido_paterno; var $apellido_materno; var $correo; var $fecha_nacimiento; var $telefono; var $id_direccion; var $id_login; function Usuario(){ } function getId(){ return $this->nombre; } function getNombre(){ return $this->nombre; ...
true
3809bcdcac165005d4f899e878051caec6a7a22a
PHP
dazeroit/laravel-theme
/src/Console/Commands/ThemeNpm.php
UTF-8
3,327
2.59375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php namespace Dazeroit\Theme\Console\Commands; use Dazeroit\Theme\Console\BeautyCLI; use Dazeroit\Theme\Console\BeautyTask; use Illuminate\Console\Command; class ThemeNpm extends Command { use BeautyCLI; /** * The name and signature of the console command. * * @var string */ protect...
true
bf4f78a568b2f5c6a7dfaaec12efd14cd2729b87
PHP
fbdirks/php_syllabus
/documentor/strokendiagram2.php
UTF-8
3,850
3.015625
3
[]
no_license
<?php /* Documentor ---------- Script om de opbouw van een database te laten zien. : tabellen : velden, veldtypen : sleutels : links Opm: moet zo flexibel mogelijk zijn. */ ?> <head> <link rel="stylesheet" type="text/css" href="strokendiagram.css"> <title>Strokendiagram</title> </head> <body> <?p...
true
46c38e6dd5d93696f9f82adc1184799dcdde0c48
PHP
SavageMike/lyka-systems
/app/Http/Requests/StoreAdministradorRequest.php
UTF-8
790
2.53125
3
[]
no_license
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class StoreAdministradorRequest extends FormRequest { public function authorize() { return true; } public function rules() { return [ 'nome' => 'required', 'apelido' => 'required...
true
2a3032022dcfee461da1b8e6f09f239d0df30f60
PHP
agprince/xz
/admin/Model/LinkModel.class.php
UTF-8
639
2.625
3
[]
no_license
<?php /** * Powerd by ArPHP. * * Model. * * @author ycassnr <ycassnr@gmail.com> */ /** * user 数据库模型. */ class LinkModel extends ArModel { //合作机构 const COOPER_COMPANY = 4; //合作媒体 const COOPER_MEDIA = 1; //友情链接 const COOPER_LINK =2; //footer链接 const COOPER_FOOTER =3; public st...
true
1aa39aef7bab250d6664299214eedade0968864f
PHP
footstep9612/Hallz
/application/V2/Bootstrap.php
UTF-8
3,232
2.71875
3
[]
no_license
<?php /** * 所有在Bootstrap类中, 以_init开头的方法, 都会被Ap调用, * 这些方法, 都接受一个参数:Yaf_Dispatcher $dispatcher * 调用的次序, 和申明的次序相同 */ class Bootstrap extends Yaf_Bootstrap_Abstract { public function _initSession($dispatcher) { Yaf_Session::getInstance()->start(); } public function _initConfig() { $this->...
true
8cd351fe1eda7572d1c5140d5d8978c0cb4dc1b4
PHP
abeinoo/Zend
/application/models/Requests.php
UTF-8
758
2.53125
3
[]
no_license
<?php class Application_Model_Requests extends Zend_Db_Table_Abstract { protected $_name= 'requests' ; public function addRequest($request_data) { $row = $this->createRow(); $row->body =$request_data['body']; $row->rdate =$request_data['rdate']; $row->uid =$request_data['ui...
true
b5b003ab3c58bbb8dd466b1ac84f57732b02414d
PHP
gcmillora/bloodbank_system
/PHP/search_user.php
UTF-8
771
2.671875
3
[]
no_license
<?php include 'db_conn.php'; $columnName = $_POST['filter']; $key = $_POST['value']; $html = ""; $sql = "SELECT User_Name, User_Address, User_Contact_Number,User_Blood_Type,User_Age FROM user WHERE ".$columnName." LIKE '%".$key."%' ORDER BY ".$columnName." ASC"; $result = $conn->qu...
true
f349d0cbc294f75b12a4d66bd0c498f5ff153580
PHP
MdNadimHossain/vicuni-develop
/docroot/profiles/vicuni/modules/custom/vu_rp/modules/vu_rp_api/lib/Drupal/vu_rp_api/Utilities.php
UTF-8
435
2.671875
3
[]
no_license
<?php namespace Drupal\vu_rp_api; /** * Class Utilities. * * @package Drupal\vu_rp_api */ class Utilities { /** * Convert string to camelcase. */ public static function toCamelCase($string, $ucfirst = FALSE) { $parts = explode('_', $string); $parts = $parts ? array_map('ucfirst', $parts) : [$st...
true