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
55e1e21b29bfbb3a88621128eedafaa59b899cf4
PHP
jitendrathakur/yii-forum
/forum/protected/models/Answer.php
UTF-8
1,758
2.859375
3
[ "BSD-3-Clause" ]
permissive
<?php class Answer extends CActiveRecord { /** * Returns the static model of the specified AR class. * @return CActiveRecord the static model class */ public static function model($className=__CLASS__) { return parent::model($className); } /** * @return string the associated database table name */ ...
true
d7a441e97a33c82c6756174bdb9ca81d1ba5b672
PHP
eman1986/elite-bulletin-board
/application/helpers/user_helper.php
UTF-8
9,083
2.609375
3
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
<?php if (!defined('BASEPATH')) {exit('No direct script access allowed');} /** * user_helper.php * @package Elite Bulletin Board v3 * @author Elite Bulletin Board Team <http://elite-board.us> * @copyright (c) 2006-2013 * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License * @version ...
true
76e425136f77a18ce04140f27689acabdbbc5fcf
PHP
Vicdeabreu/desafiosDigitalHouse
/desafioInstagram/models/Post.php
UTF-8
1,314
3.015625
3
[]
no_license
<?php include_once "Conexao.php"; class Post extends Conexao{ public function cadastrarPost($userID,$img,$descricao,$likes){ $db = parent::criarConexao(); $query = $db->prepare("INSERT INTO posts(usuarios_id,img,descricao,likes) VALUES (?,?,?,?)"); return $query->execute([$userID,$img,$descr...
true
0be0263d22edb6e43f5472d53fda4c837e4551eb
PHP
Bavragor/function-documentor
/src/Formatter/FormatterInterface.php
UTF-8
316
2.734375
3
[ "MIT" ]
permissive
<?php namespace Bavragor\FunctionDocumentor\Formatter; interface FormatterInterface { /** * Formats argumentValue * * @param $class * @param $function * @param $argumentValue * * @return string */ public function formatArgument($class, $function, $argumentValue); }
true
7aa4f10e30baaffb8be02d961f6281723f8ad527
PHP
violinist-dev/phony
/src/Spy/ArraySpy.php
UTF-8
3,583
3.234375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
<?php declare(strict_types=1); namespace Eloquent\Phony\Spy; use Eloquent\Phony\Call\Call; use Eloquent\Phony\Call\Event\CallEventFactory; /** * Spies on an array. */ class ArraySpy implements IterableSpy { /** * Construct a new array spy. * * @param Call $call The call ...
true
353c76537be1c5c821db8e6a2b6880547f38b13e
PHP
RefaktorCo/Soho
/template.php
UTF-8
15,298
2.53125
3
[]
no_license
<?php /** * Modify theme_html_head_alter() */ function soho_html_head_alter(&$head_elements) { unset($head_elements['system_meta_generator']); foreach ($head_elements as $key => $element) { if (isset($element['#attributes']['rel']) && $element['#attributes']['rel'] == 'canonical') { unset($head_elements[$key...
true
eee6cf5ddb28230615a9be571a7692e54b1840d2
PHP
undefeatedsando/tryingrest
/src/app/Test.php
UTF-8
449
2.65625
3
[]
no_license
<?php namespace App; class Test{ public static function test(){ echo "testy shit "; return 0; } public function pdo(){ global $config; $host = $config['db']['host']; $db = $config['db']['dbname']; $user = $config['db']['user']; $pass = $config['db']['pass']; $charset = 'utf8'; $dsn...
true
85e41f9b37a513409fda507a8d42c96f3b718070
PHP
abhay05/IWP_Course
/search.php
UTF-8
816
2.59375
3
[]
no_license
<!DOCTYPE html> <html> <head> <title> Search </title> </head> <body> <form id="formn" name="formn" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <input type="text" name="search" id="search"> <input type="submit" name="submit" value="Submit"> </form> </body> </html> <?php if(isset($_PO...
true
16d2f5beb3111b71f835a23b832d5dad0971db9d
PHP
Lundmarks/ramverk1BTH
/test/Controller/LocWeatherControllerTest.php
UTF-8
5,643
2.53125
3
[]
no_license
<?php namespace Anax\Controller; use Anax\DI\DIFactoryConfig; use PHPUnit\Framework\TestCase; /** * Testclass. */ class LocWeatherControllerTest extends TestCase { // Create the di container. protected $di; /** * Prepare before each test. */ protected function setUp() { glo...
true
46343ecd23122b851500891d9fb398d9ea5d92d7
PHP
esvit/bazalt-site
/src/Bazalt/Site.php
UTF-8
4,163
2.75
3
[]
no_license
<?php namespace Bazalt; class Site { const PUNYCODE_PREFIX = 'xn--'; protected static $enableMultisiting = false; protected static $currentSite = null; public static function enableMultisiting($enableMultisiting = null) { if ($enableMultisiting !== null) { self::$enableMulti...
true
ff028a66eace9ff97d0ff6fd7da35e0d61b4543f
PHP
ricardorohde/hungrice
/class/WeekMenu.class.php
UTF-8
999
2.984375
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of WeekMenu * * @author Fabio-CSM */ class WeekMenu { private $id; private $daysMe...
true
7aed66f5fb8bd1ffed23917aceabf1333661a15d
PHP
gibihub/Licenta
/app/Http/Controllers/BookingController.php
UTF-8
4,047
2.546875
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Booking; class BookingController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middleware('auth', ['except' => ['index', 'sho...
true
8c3d9a37de48ee29df4bc43d6805532a67873268
PHP
OatTeeraphat/visa2017
/admin/index.php
UTF-8
6,907
2.59375
3
[]
no_license
<?php include '../Cores/Settings.php'; ?> <?php include '../Cores/template/header_public.php' ?> <?php $db = Settings::database(); function DateTimeDiff($strDateTime1,$strDateTime2) { return (strtotime($strDateTime2) - strtotime($strDateTime1))/ (60 ); // 1 Hour = 60*60 } //Gener...
true
969d21825094ecc62dbd4c628a328730d78a8738
PHP
si2san/design-patterns
/structural/Bridge/Circle.php
UTF-8
500
3.125
3
[]
no_license
<?php declare(strict_types=1); namespace SiThuSan\Structural\Bridge; final class Circle extends Shape { private DrawingApi $drawingApi; // overriding a method just to call the same method from the super class // without performing any other actions is useless and misleading; public function __const...
true
9717eebbebdeea8d928d5024f6a68d53684b1d09
PHP
mscivoli/Sito-Web-Esame-PWR
/libri.php
UTF-8
6,824
2.609375
3
[]
no_license
<?php session_start(); ?> <?php include "header.php"; ?> <?php include "functions.php"; ?> <?php $disponibili; ?> <?php $totali; ?> <?php libriDisponibili(); ?> <?php libriTotali(); ?> <?php if(!empty($_SESSION['username'])): ?> <?php $errori = array(); ?> <?php if($_SERVER['REQUEST_METHOD'] == "...
true
894c821c193230b398b7114d30df7aa65dd0c135
PHP
anarki1234/es
/system/core/common.php
UTF-8
10,585
2.5625
3
[]
no_license
<?php defined('SYSPATH') OR exit('POWERED BY Enozoomstudio'); /* * 公共方法 **/ if(!function_exists('auto_loader')){ /** * 自动装载控制器类 * --------------------- * 2015年10月13日13:29:35 * 增加对system/core的自动载入 * --------------------- * @param string $classname * @return void|'' */ function auto_loader($cla...
true
3dae1f067df37ab74a28e617f942e8fe8c3aac26
PHP
arif-ak/bimmertech-test
/src/AppBundle/Entity/OrderItemUnit.php
UTF-8
2,233
2.546875
3
[ "MIT" ]
permissive
<?php namespace AppBundle\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Sylius\Component\Core\Model\OrderItemInterface; use Sylius\Component\Core\Model\OrderItemUnit as BaseOrderItemUnit; /** * Class OrderItemUnit * @package AppBundle\Entity */ class Orde...
true
07e16fb2d8203642b933457691607c39137870ea
PHP
phooty/simulation
/src/Support/MapPlacer.php
UTF-8
2,298
2.859375
3
[]
no_license
<?php namespace Phooty\Simulation\Support; use Phooty\Simulation\Match\MatchContainer; use Phooty\Simulation\Entities\Team; use Phooty\Simulation\Tilemap\Tilemap; use Phooty\Simulation\Entities\SherrinEntity; use Phooty\Simulation\Entities\PlayerEntity; class MapPlacer { /** * The MatchContainer instance ...
true
8c829c363c20c2040f50ef3d9422dc49e51083c5
PHP
adotahirovich/Web-project
/ePharmacy-main/api/dao/ProductsDao.class.php
UTF-8
1,548
2.734375
3
[]
no_license
<?php require_once dirname(__FILE__) . '/BaseDao.class.php'; class ProductsDao extends BaseDao { public function __construct() { parent::__construct('products'); } public function get_products($search, $offset, $limit, $order){ list($order_column, $order_direction) = self::parse_orde...
true
66a2c3614f7bbd1d8f192368f0b5c0492e8ecec2
PHP
ertyseidohl/crowdcomic2
/api/db.php
UTF-8
1,437
2.984375
3
[]
no_license
<?php class DBO{ private $db; public $query_count; private $print_debug = false; public function __construct($db_host, $db_name, $db_username, $db_password) { $this->db = new PDO("mysql:host=$db_host;dbname=$db_name", $db_username, $db_password); $this->query_count = 0; } public function getHandle() { ...
true
5a5fd8ae676b7cdb3ad9ea2ba252e83d8d679bd4
PHP
dimbergy/priceobservatory
/models/GrocersModel.class.php
UTF-8
1,062
2.890625
3
[]
no_license
<?php /** * Created by PhpStorm. * User: dimitriosvergados * Date: 19/9/20 * Time: 6:31 PM */ class GrocersModel extends Database { public function getSuppliers() { $suppliers = []; $conn = $this->connect(); $stmt = $conn->prepare("SELECT * FROM suppliers ORDER BY sup_name ASC");...
true
ccc5c06a5fa949bcc22fcd9d56a9744e07178ac4
PHP
felipeschossler/project-php
/agencia-c.php
UTF-8
3,461
3.015625
3
[]
no_license
<?php //verificando valor da acao para redirecionar para a determinada acao if(isset($_POST["acao"])){ if ($_POST["acao"] == "Enviar"){ inserirAgencia(); } if ($_POST["acao"] == "Alterar"){ alterarAgencia(); } if ($_POST["acao"] == "Excluir"){...
true
0f0ec4ce8ff77a5f4462b3be24c2fe501b3c77a4
PHP
galousis/cqrs-ddd-php-example
/src/Shared/Infrastructure/Monolog/Processor/CodelyTvRequestProcessor.php
UTF-8
2,227
2.8125
3
[ "MIT" ]
permissive
<?php declare(strict_types = 1); namespace CodelyTv\Shared\Infrastructure\Monolog\Processor; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; use function Lambdish\Phunctional\any; final class CodelyTvRequestProcessor { private $requestStack; public function ...
true
b1992dbf5860839d43b0e9bb449fa6f79f0ddb34
PHP
bradt/website
/app/Http/Controllers/HomeController.php
UTF-8
1,387
2.78125
3
[ "MIT" ]
permissive
<?php namespace App\Http\Controllers; use stdClass; class HomeController extends Controller { /** * Show the homepage. * Gets content from the blog to show. * @return View */ public function home() { // Get Blog articles if ($this->cache->has('blog-feed')) { $blogI...
true
50869d31b36c0e3ae32c95e967773e1a6f1ce316
PHP
aalfiann/event-locker-php
/src/EventLocker.php
UTF-8
954
3.03125
3
[ "MIT" ]
permissive
<?php namespace aalfiann; /** * EventLocker class * * @package EventLocker * @author M ABD AZIZ ALFIAN <github.com/aalfiann> * @copyright Copyright (c) 2019 M ABD AZIZ ALFIAN * @license https://github.com/aalfiann/event-locker-php/blob/master/LICENSE.md MIT License */ class EventLocker { /** ...
true
d6c6869f5e42313d1c22fbb1e3c499f887037f1e
PHP
Irenke11/ireneDockerTest
/database/migrations/2021_06_23_134921_create_bets_table.php
UTF-8
1,316
2.625
3
[ "MIT" ]
permissive
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateBetsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('bets', function (B...
true
0bf8c6fecae49409d04f599084b788f412793a3f
PHP
Sjoekoe/vogelzang
/app/Http/Requests/RiderRequest.php
UTF-8
399
2.515625
3
[ "MIT" ]
permissive
<?php namespace Vogelzang\Http\Requests; class RiderRequest extends Request { /** * @return bool */ public function authorize() { return true; } /** * @return array */ public function rules() { return [ 'firstname' => 'required', ...
true
777500212433939474ad2804566b5e20f2277096
PHP
ncowboy/gu_php1
/lesson1/index.php
UTF-8
2,836
3.625
4
[]
no_license
<?php /* 1. Установить программное обеспечение: веб-сервер, базу данных, интерпретатор, текстовый редактор. Проверить, что все работает правильно. 2. Выполнить примеры из методички и разобраться, как это работает. 3. Объяснить, как работает данный код: <?php $a = 5; $b = '05'; var_dump($a == $b); //...
true
c437055b694af2b65b80c447f3f7fa6a19d5bc6c
PHP
ResolventaGroup/morphological-search
/src/SemanticText/SemanticObjectInterface.php
UTF-8
154
2.578125
3
[ "MIT" ]
permissive
<?php namespace Morphy\SemanticText; interface SemanticObjectInterface { public function getIdentifier(); public function getText(): string; }
true
d1e521dd1668e071648467296cd2d4db2332996d
PHP
weWeb/warlords
/src/Warlords/GameBundle/Entity/User.php
UTF-8
4,401
2.671875
3
[ "MIT" ]
permissive
<?php namespace Warlords\GameBundle\Entity; use Doctrine\ORM\Mapping as ORM; use FOS\UserBundle\Model\User as BaseUser; use FOS\MessageBundle\Model\ParticipantInterface; /** * User */ class User extends BaseUser implements ParticipantInterface { /** * @var integer */ protected $id; /** ...
true
42cf63667db8b5494cd1323dd09bf88c3cf04d4e
PHP
luigif/WsdlToPhp
/samples/ebay-trading/Product/Type/EbayTradingTypeProductSearchPageType.php
UTF-8
5,421
2.640625
3
[]
no_license
<?php /** * Class file for EbayTradingTypeProductSearchPageType * @date 04/07/2012 */ /** * Class EbayTradingTypeProductSearchPageType * Documentation : * @date 04/07/2012 */ class EbayTradingTypeProductSearchPageType extends EbayTradingWsdlClass { /** * The SearchCharacteristicsSet * Meta informations : ...
true
39c6164f5c3fdcdd1e08eedf7bbba9074c0f3a26
PHP
takma32/memcached_test
/config/db_mem.php
UTF-8
770
2.640625
3
[]
no_license
<?php /** * DB操作、キャッシュ対応 */ // TODO キャッシュプログラムをDI出来るようにして Memcached TokyoTyrantなど差し替えできるようにする class DB_mem extends DB { protected $primary_key = ''; public function deleteCache($unique_key){ $m = mem::get(); $m->delete($unique_key); } public function updateCache($unique_key, $value){ $m = mem::get(); $m-...
true
3df91b3cd2f11622831bdbc185820313b2be2a33
PHP
eno-lang/enophp
/spec/elements/empty.spec.php
UTF-8
1,514
2.59375
3
[ "MIT" ]
permissive
<?php declare(strict_types=1); use Eno\{EmptyElement, Section}; describe('EmptyElement', function() { beforeAll(function() { $this->_context = (object) []; $this->instruction = (object) [ 'name' => 'language' ]; $this->section_instruction = (object) [ 'depth' => 0, 'name' => 'mock', 's...
true
c0c3cf8a499756cfdad0fe4ba22f59aeed09e0f6
PHP
masmomo/wanderlust-v3
/admin/custom/pages/home/banner/get.php
UTF-8
940
2.546875
3
[ "Apache-2.0" ]
permissive
<?php /* # ---------------------------------------------------------------------- # PAGES BANNER # ---------------------------------------------------------------------- */ function count_page_banner(){ $conn = connDB(); $sql = "SELECT COUNT(*) AS rows FROM `tbl_page_banner`"; $query = mysql_query($sql...
true
b4f28cc92df1c4db6cf2c7fa4c87377231586ca6
PHP
jsaavedrac-phinet/ug
/app/Console/Commands/VerifyRegisters.php
UTF-8
1,473
2.671875
3
[]
no_license
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Illuminate\Support\Facades\Log; class VerifyRegisters extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'sponsored:register'; /** * The consol...
true
83fea54038907d60f1b3ad2710fa9f10fdbb1d10
PHP
jawngee/HeavyMetal
/sys/cloud/provider/amazon/simpledb_request.php
UTF-8
2,468
3.046875
3
[]
no_license
<? /** * SimpleDB Request wrapper * Very simple wrapper around the SimpleDB API. Other PHP implementations were grossly * lacking or java engineered. */ uses('system.cloud.provider.amazon.aws_request'); /** * Represents a simple db api request. */ class SimpleDBRequest extends AWSRequest { /** * Constructo...
true
4c9695889797d3d0e5ca22b586cfcaa66d6f018c
PHP
dirsouza/papfull
/vendor/papfull/classes/src/Models/Level.php
UTF-8
2,702
2.8125
3
[]
no_license
<?php namespace PapFull\Models; use PapFull\Dao\Dao; use PapFull\Model; class Level extends Model { public static function listAll() { $sql = new Dao(); return $sql->select("SELECT * FROM level ORDER BY level"); } public static function LevelId() { $sql = new Dao(); ...
true
3f6dc2d01d3fde3a2d556b7a7aaf701cef91c6b7
PHP
georgedenning/jwt-auth
/app/Http/Controllers/Auth/ResetController.php
UTF-8
2,572
2.53125
3
[]
no_license
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\User; use DB; use Hash; use Illuminate\Foundation\Auth\ResetsPasswords; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\Support\Facades\Password; use Validator; class ResetController extends Controll...
true
d191aece152770efec975c5350273c47cd2244f7
PHP
openactive/models-php
/src/Models/OA/ConceptScheme.php
UTF-8
4,529
2.890625
3
[ "MIT" ]
permissive
<?php namespace OpenActive\Models\OA; /** * This type is derived from http://www.w3.org/2004/02/skos/core#ConceptScheme. * */ class ConceptScheme extends \OpenActive\BaseModel { /** * @return string[]|null */ public static function getType() { return "ConceptScheme"; } public...
true
6e3d00112669195fb1612d87fc4f9bf50d89dfd8
PHP
j9wppl/http-zadanie-fitatu
/app/models/TaxRepository.php
UTF-8
452
2.78125
3
[ "MIT" ]
permissive
<?php namespace Fitatu\Models; class TaxRepository extends Repository { /** * TaxRepository constructor. * @param Tax $tax */ public function __construct(Tax $tax) { $this->model = $tax; } /** * @return array */ public function allAssoc() { $result...
true
98e4aea53cd107076fc4e53cf26450c718505e80
PHP
jackmathi/currency-switcher-woocommerce-pro
/includes/functions/alg-switcher-selector-functions.php
UTF-8
6,833
2.640625
3
[]
no_license
<?php /** * Currency Switcher Selector Functions * * @version 2.8.4 * @since 2.0.0 * @author Tom Anbinder */ if ( ! function_exists( 'alg_format_currency_switcher' ) ) { /** * alg_format_currency_switcher. * * @version 2.8.4 * @since 2.1.1 */ function alg_format_currency_switcher...
true
aea7109e8e593cd2762b751776c2a29df5830eea
PHP
TZNaso/indicadores
/application/models/Usuario.php
UTF-8
1,735
2.6875
3
[]
no_license
<?php class Application_Model_Usuario { protected $_nuUsuario; protected $_noMatrFunc; protected $_senha; protected $_email; protected $_nuFuncionario; protected $_icAdministrador; public function __construct(array $options = null) { if (is_array($optio...
true
588e099acfd0bed6b8a366a85db9c9e77cb4ea43
PHP
NathanHaley/Web_PHP_ZF2
/module/ChangeLog/src/ChangeLog/Mapper/ChangeLogMapperInterface.php
UTF-8
938
2.609375
3
[ "MIT" ]
permissive
<?php namespace ChangeLog\Mapper; use ChangeLog\Model\ChangeLogInterface; interface ChangeLogMapperInterface { /** * @param int|string $id * @return ChangeLogInterface * @throws \InvaldArgumentException */ public function fetch($id); /** * Just need id, add_ts, description column...
true
d3753fd8472874bd614061f24f10863f98bc670d
PHP
AmauryCarrade/minutis-redcall-app
/symfony/src/Facade/Phone/PhoneFacade.php
UTF-8
1,355
2.5625
3
[ "MIT" ]
permissive
<?php namespace App\Facade\Phone; use App\Contract\PhoneInterface; use App\Validator\Constraints as CustomAssert; use Bundles\ApiBundle\Annotation as Api; use Bundles\ApiBundle\Contracts\FacadeInterface; use Symfony\Component\Validator\Constraints as Assert; /** * @CustomAssert\Phone */ class PhoneFacade implement...
true
bc15305d545eca9a5b548cc09fabafe98dcae2a7
PHP
a410202049/movies
/application/libraries/Http.php
UTF-8
1,424
2.671875
3
[]
no_license
<?php class Http{ // public function __construct() { // header("Content-type: text/html; charset=utf-8"); // } public function httpRequest($url,$method,$params=array()){ if(trim($url)==''||!in_array($method,array('get','post'))||!is_array($params)){ return false; } $...
true
460003ab9b089b032f82cf0f91341ec9cc2b5d39
PHP
yousra-elghalb/test-2
/app/Http/Services/CourseServiceImpl.php
UTF-8
2,643
2.59375
3
[]
no_license
<?php namespace App\Http\Services; use App\categorie; use App\course; use App\Http\Requests\CourseRequest; use App\image; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\Storage; class CourseServiceImpl implements CourseService { ...
true
e7ba60c227eb2fb8dae9f982f1665c326ec44fdb
PHP
zamandiue44/MyHomePractice
/3rd PHPV01RevisionProcess/Php-23.01.php
UTF-8
349
2.703125
3
[]
no_license
<!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8"> <title>PHP Learning</title> </head> <?php $stuendts = array('Syed Zaman Mostafiz', 'Razzak', 'Sadia', 'Hassan'); foreach($stuendts as $all_name) { echo $all_name."<br />"; } ?> <br /> <a href="http://localhost/php/">Localhost</a> <a href="Php-...
true
f52c7e456257771763cb767fd92044f7c1280720
PHP
p0larbeer/yii2-polymer
/paper/Menu.php
UTF-8
1,851
2.875
3
[]
no_license
<?php /** * Created by PhpStorm. * User: p0larbeer * Date: 22.07.15 * Time: 16:26 * * Documentation: * <paper-menu> implements an accessible menu control with Material Design styling. * The focused item is highlighted, and the selected item has bolded text. */ namespace p0larbeer\yii\polymer\paper; use yii\h...
true
b470841362095815f7627d12de16998c591ac9de
PHP
epicea45/orleans-0917-ateliero
/src/Model/CreationManager.php
UTF-8
2,421
2.703125
3
[]
no_license
<?php /** * Created by PhpStorm. * User: emlv * Date: 18/10/17 * Time: 09:51 */ namespace AtelierO\Model; use AtelierO\Controller\CreationController; class CreationManager extends EntityManager { public function add(Creation $creation) { $req = "INSERT INTO creation_shop (...
true
27ddc3aa0656e87649dcc80539d28aa44a093b8f
PHP
mhabibi/rpg
/app/Repositories/StateRepositoryInterface.php
UTF-8
568
2.984375
3
[ "MIT" ]
permissive
<?php namespace App\Repositories; use App\Entities\StateInterface; /** * Interface StateRepositoryInterface * * @package App\Repositories */ interface StateRepositoryInterface { /** * @param $title * * @return StateInterface|null */ public function getByTitle(string $title): ?StateInte...
true
8364d6638ac7d9d85fcad361eeb66abcc89542ac
PHP
Trivette/cs4413
/lab3/tj_lab3/WebContent/controllers/SignupController.class.php
UTF-8
910
2.6875
3
[]
no_license
<?php class SignupController { public static function run() { if ($_SERVER["REQUEST_METHOD"] == "POST") { $webuser = new WebUser($_POST); if ($webuser->getErrorCount() == 0){ if(!empty(WebUserDB::getUsersBy('hockName', $webuser->getHockName()))){ $webuser->setError('hockName', 'HOCKUSER_NAMEC...
true
eb514f2380c193ec0a9c7aa511b9b83075593d7d
PHP
bartaakos/algorithms
/tape_equilibrium/solution.php
UTF-8
395
3.34375
3
[]
no_license
<?php function solution($A) { $l = count($A); $st = $A[0]; $nd = 0; for($i=1; $i<$l; $i++) { $nd += $A[$i]; } $min = abs($st-$nd); for($i=1; $i<$l-2; $i++) { $st += $A[$i]; $nd -= $A[$i]; $diff = abs($st-$nd); if($diff < $min) ...
true
18f880436e8e97d4e16a0a36ac92f2b8e8fc7460
PHP
wojciechadamczyk/Podstawy_Php
/4_Tablice/zadanie01.php
UTF-8
211
3.03125
3
[]
no_license
<?php $table = array( "pierwsza", "druga", "trzecia", "czwarta" ); function printArray($array) { foreach ($array as $value) { echo $value . "<br>"; } } printArray($table);
true
560c1a94f6d2577a361bd681451e3d52ee3d1694
PHP
PrathamG/cpmt_visitor
/backend/model.php
UTF-8
22,836
2.640625
3
[]
no_license
<?php //model.php //File contains functions which retrieve data from the DB. function getMarketplace($location) //Returns array containing records of all campaigns in the marketplace. { global $mydb; $endDate = time()-(86400*360); $sql = "SELECT id, refId, facebook, youtube, instagram, title, businessId, crea...
true
a2505ecad1befef664646eeeaf22a72d6a65d4d5
PHP
laravel/valet
/cli/Valet/Drivers/Specific/SculpinValetDriver.php
UTF-8
934
2.6875
3
[ "MIT" ]
permissive
<?php namespace Valet\Drivers\Specific; use Valet\Drivers\BasicValetDriver; class SculpinValetDriver extends BasicValetDriver { /** * Determine if the driver serves the request. */ public function serves(string $sitePath, string $siteName, string $uri): bool { return $this->isModernScul...
true
f9c79250beb3c4253eb4cec7f08fc439b5ab3501
PHP
afosto/fashion-partner
/src/Models/Orders/Contact.php
UTF-8
1,508
2.90625
3
[ "Apache-2.0" ]
permissive
<?php namespace Afosto\FashionPartner\Models\Orders; use Afosto\FashionPartner\Components\Model; /** * Class Contact * @package Afosto\FashionPartner\Models\Order * @property string $name * @property string $street1 * @property string $street2 * @property string $postalCode * @property string $city * @proper...
true
f73ffcf13b06cbb52acef107e9af31fb2fedbacb
PHP
pandaengine/qingmvc
/src/url/UrlInterface.php
UTF-8
477
2.5625
3
[ "Apache-2.0" ]
permissive
<?php namespace qing\url; /** * URL生成器接口 * * @author xiaowang <736523132@qq.com> * @copyright Copyright (c) 2013 http://qingmvc.com * @license http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0 */ interface UrlInterface{ /** * * @param string $module 模块 * @param string $ctrl 控制器 * @param string $ac...
true
ba590fa9c761959df5802a09b77f95a8a0a89a6d
PHP
Mzsmunna/LibraryManagement-PHP
/editborrower.php
UTF-8
2,094
2.5625
3
[]
no_license
<?php include('dbconnect.php'); //$error=""; if(isset($_POST['btnsave'])) { echo "Clicked"; $book_id=$_POST['Book_id']; $name=$_POST['Name']; $memb_id=$_POST['Member_id']; $title=$_POST['Title']; $due_date=$_POST['Due_date']; $return_date=$_POST['Return_date']; //if($_POST['textid']=="0") //{ ...
true
0069660e7c2095a71dd56195ea2b98b7a6815270
PHP
renangtm/rtc
/php/testes/testeInterpretadorBooleano.php
UTF-8
2,113
2.640625
3
[]
no_license
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Description of InterpretadorNumerico * * @author Renan */ include("includes.php"); class testeInterpretadorBooleano...
true
1bb9a7871de8b5743cf1de4e19363f72a3d40b0b
PHP
mvenkat777/server-api
/se/Line/Handlers/Commands/AttachSampleCommandHandler.php
UTF-8
833
2.609375
3
[]
no_license
<?php namespace Platform\Line\Handlers\Commands; use Platform\App\Commanding\CommandHandler; use Platform\Line\Repositories\Contracts\StyleRepository; use Platform\App\Exceptions\SeException; class AttachSampleCommandHandler implements CommandHandler { private $style; public function __construct(StyleReposi...
true
821dcf8a66b52b17420fb70fd8c17f258b3d0536
PHP
matthew1670/ims
/docs/dist/php/DeleteAsset.php
UTF-8
591
2.765625
3
[ "MIT", "CC-BY-3.0" ]
permissive
<?php require '../php/functions.php'; //Check if can connect to server if (! $conn = connect()){ header("HTTP/1.0 503 service unavailable"); exit(); } //Check if Request is correct type if ($_SERVER['REQUEST_METHOD'] !== 'POST' || !isset($_POST["id"]) || empty($_POST["id"]) || ! $id = $_POST["id"]) { he...
true
1bd3862326e0a2eb6a70885a53930f5c2af96b3c
PHP
yoheikaku/phptest
/staff/staff_branch.php
UTF-8
2,286
2.90625
3
[]
no_license
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>ろくまる農園</title> </head> <body> <?php //ログイン認証 session_start(); //sessionの合言葉(ここでは1)の合言葉をセキュリティ対策の為自動で変更する session_regenerate_id(true); //ログインOKの認証がなかったら if(isset($_SESSION['login'])==false){ echo 'ログインされていません。<br/>'; echo '<a href="../staff_login/staff...
true
ab073aaed0789045ffbcfc6160e952c0458eb2de
PHP
t-geindre/goprod
/src/ApiBundle/Service/Golive/Client.php
UTF-8
3,537
2.625
3
[]
no_license
<?php namespace ApiBundle\Service\Golive; use Buzz\Message\RequestInterface; use ApiBundle\Service\AccessToken\AccessTokenAwareInterface; /** * Golive client */ class Client implements AccessTokenAwareInterface { /** * @var Buzz\Browser */ protected $client; /** * @var string */ ...
true
451081fdd0dae0c1491757cd1a58b55b5949244d
PHP
phonesorvixay/school_student
/models/course.model.php
UTF-8
1,368
2.875
3
[]
no_license
<?php class CourseModel { public $course_id; public $course_name; public $status; // public $block; public $page; public $limit; public $keyword; public function __construct($object) { if (!$object) { echo '{"message":" data is empty"}'; die(); ...
true
0551b818845fa747f9eb69a26b9d510a44af4c56
PHP
lksalencar/CodeFlix
/database/seeds/VideosTableSeeder.php
UTF-8
1,980
2.640625
3
[ "MIT" ]
permissive
<?php use CodeFlix\Repositories\VideoRepository; use Illuminate\Database\Seeder; use Illuminate\Database\Eloquent\Collection; class VideosTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $series = \CodeFlix\Models\Serie::al...
true
fd09608378dee50ac5d66ff546b83e61a107e0bd
PHP
nowbotica/mvp
/parts/System.php
UTF-8
7,198
2.625
3
[]
no_license
<?php /******************/ /* Action Factory */ /******************/ /** * Uploads file to wordpress media library. * * Takes uploaded file from POST and stores using the wordpress api. * * @return json Object with attachemnt id and image url */ function mvpm_upload_file(){ check_ajax_referer( 'mvpm_sy...
true
b6751c690688714331cea76a9654fcfc6f75691e
PHP
bbszt/app
/database/migrations/2015_03_02_134558_create_profit_percent_table.php
UTF-8
697
2.515625
3
[]
no_license
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateProfitPercentTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('profit_percent', function(Blueprint $table) { $table->increments('id'...
true
078bcc9d05d8d268926ac0f36d1374a5e428810f
PHP
skrilladeville/admin
/app/PatientList.php
UTF-8
551
2.703125
3
[ "MIT" ]
permissive
<?php namespace App; use Illuminate\Database\Eloquent\Model; class PatientList extends Model { /** * The table associated with the model. * * @var string */ protected $table = 'patient_profiles'; protected $appends = array('name'); /** * Accessor to get the fulle name assoc...
true
21580a227a46d4b0a10d6d44daf6425cc81d1105
PHP
harisinfo/HgReloaded
/Core/Classes/SessionHandler/SessionManager.class.php
UTF-8
1,164
3.171875
3
[]
no_license
<?php /** * @name: SessionManager * @author: Hari Ramamurthy <info@harisinfo.co.uk> * @since: 2012/10/12 * @internal: singleton class */ class SessionManager { public $allowedSessionVariables; protected static $instance, $session; public static function getInstance() { if ( isset( self::$instance ) !== TRU...
true
086f9ea61d670c5be33af6fef4b8e26267c9b886
PHP
frdl/webfan
/.ApplicationComposer/lib/webfan/InstallShield/apc/cmd1.php
UTF-8
3,352
2.84375
3
[ "MIT" ]
permissive
<?php namespace webfan\InstallShield\apc; class cmd1 extends \frdl\aSQL\Engines\Terminal\CLI { public $vm; /** \frdl\aSQL\Engines\Terminal\CLI abstract protected function boot(); abstract protected function _exec($args); abstract protected function force_state($state); abstract public function parseQuery(); a...
true
a7967bac601b3e68f24414475be67c970e1af150
PHP
WeekTripCN-Org/StackForMe
/DesignPattern/结构型模式/Decorator/Decorator.php
UTF-8
497
3.25
3
[]
no_license
<?php namespace decorator; /** * Class Decorator * * @package \decorator * * @author WeekTrip<weektrip@weektrip.cn> */ abstract class Decorator implements ShoesInterface { // 产品生产线对象 protected $shoes; // 构造函数 public function __construct(ShoesInterface $shoes) { $this->shoes = $shoe...
true
9f973549a9334cb22547a250b5f211c18d36b325
PHP
luketlancaster/cal-php
/lib/Year.php
UTF-8
462
3.4375
3
[]
no_license
<?php class Year { private $_year = null; public function __construct($year) { $this->_year = $year; } public function leap() { $y = $this->_year; if ($y % 4 == 0 && $y % 100 == 0 && $y % 400 == 0) return true; if ($y % 4 == 0 && $y % 100 == 0) return false; ...
true
a27a4eeb0f32c31b50f049d3b9115f56a2b89797
PHP
ThomasH-W/avrio
/www/js/includes/functions.inc.php
UTF-8
5,401
2.984375
3
[]
no_license
<?php // 2014-01-09 V0.3 by Thomas Hoeser /************************************************ Letztes Zeichen hinter einem String entfernen * ************************************************/ function delLastChar($string="") { $t = substr($string, 0, -1); return($t); } /***********************************************...
true
38119d0a98396ed15cd5954ae31974d9a7c78af6
PHP
Trentclark2012/WoW
/signup.php
UTF-8
4,115
2.671875
3
[]
no_license
<?php session_start(); require_once('class.user.php'); $user = new USER(); if($user->isLoggedIn()!="") { $user->redirect('home.php'); } if(isset($_POST['btn-signup'])) { $uname = strip_tags($_POST['input_uname']); $umail = strip_tags($_POST['input_umail']); $upass = strip_tags($_POST['input_upass']); ...
true
0ada700e571fdbb9d888b35f9628250cc4c1a594
PHP
theintz/PHP-Daemon
/src/PhpDaemon/Plugin/Server.php
UTF-8
8,663
2.859375
3
[ "MIT" ]
permissive
<?php namespace Theintz\PhpDaemon\Plugin; use Theintz\PhpDaemon\Daemon; use Theintz\PhpDaemon\Exception; use Theintz\PhpDaemon\IPlugin; use Theintz\PhpDaemon\Lib\Command; /** * Create a simple socket server. * Supply an IP and Port for incoming connections. Add any number of Command objects to parse client input. ...
true
1ed4b9590f94c6870fb675025ccf77158ed9bd29
PHP
DarwinOnLine/DoLLdapBundle
/Driver/LdapDriverInterface.php
UTF-8
1,779
2.765625
3
[ "MIT" ]
permissive
<?php namespace DoL\LdapBundle\Driver; use Symfony\Component\Security\Core\User\UserInterface; /** * Driver interface. * Ldap drivers must implement this interface. * * @see http://www.php.net/ref.ldap.php * * @author DarwinOnLine * @author Maks3w * * @see https://github.com/DarwinOnLine/DoLLdapBundle */ i...
true
ecb510cb8265dbb409a3c1d5b1201cd531200c84
PHP
damirazo/DMF-PHP
/framework/packages/DMF/Core/Autoloader/Autoloader.php
UTF-8
5,197
2.875
3
[]
no_license
<?php /** * Этот файл часть фреймворка DM Framework * Любое использование в коммерческих целях допустимо лишь при разрешении автора. * * @author damirazo <me@damirazo.ru> */ namespace DMF\Core\Autoloader; use DMF\Core\Autoloader\Exception\ClassNotFound; /** * Class Auto...
true
9ad0d63ee3bf89a5aaf4127daf5043e4fdb1e954
PHP
maddoger/yii2-website
/frontend/widgets/Menu.php
UTF-8
7,411
2.515625
3
[]
no_license
<?php /** * @copyright Copyright (c) 2014 Vitaliy Syrchikov * @link http://syrchikov.name */ namespace maddoger\website\frontend\widgets; use Yii; use yii\base\InvalidParamException; use yii\helpers\ArrayHelper; use yii\helpers\Html; use yii\helpers\Url; use yii\widgets\Menu as BaseMenu; /** * Menu * * @author...
true
18fa1faf472f4d43c0a041e623ba829d813032a6
PHP
Alexander-var/VARGAS
/namis/cursos/Parcial2/clases.php
UTF-8
2,623
2.734375
3
[]
no_license
<?php class Biblioteca { private $my; function __construct() { // $this->my = new mysqli("localhost", "root", "", "base1"); $this->my = new mysqli("localhost","root","","bd_biblioteca"); if ($this->my->connect_error) die("Problemas con la conexión a la base de datos"); }...
true
b6c84da2b742488397169b693e0298b08aa6b13a
PHP
catterpiler74/StartCMS
/models/newsUI.php
UTF-8
1,574
2.890625
3
[]
no_license
<?php /* * Object table for a news database */ class newsUI extends core { /* * Getting a list of news */ function get_news() { $query = "SELECT * FROM `news` ORDER BY `date` DESC"; $result = $this->db->query($query); return $result->fetchAll(); } /* * G...
true
4833038ae397d5da0910c721fd92fa599ff652b5
PHP
experientia/SIGP
/apps/default/models/pasante.php
ISO-8859-1
21,294
2.59375
3
[]
no_license
<?php include_once 'Utils/Util.php'; class Pasante extends ActiveRecord{ protected $id; protected $cedula; protected $nombre; protected $apellido; protected $fchNacimiento; protected $sexo; protected $telefono; protected $semestre; protected $indiceAcademico; protected $foto; protected $direccio...
true
bd9fe8e21bffb8c9fbf983d8e3e14e6d08ed47b6
PHP
daxingyou/honingwon
/game/manage/control/BMAccount/GroupProvider.php
UTF-8
2,766
2.65625
3
[]
no_license
<?php require_once(DATALIB . '/SqlResult.php'); require_once(DATACONTROL . '/BMAccount/EventLog.php'); /** * 基础信息 分组 */ class GroupProvider { private static $instance; private function __construct() {} public static function getInstance() { if(self::$instance == null) ...
true
afb710902b77cf678debfbbc1a493838f5c1f6cd
PHP
cse442-at-ub/cse442-project-swag-overflow
/back-end/event/create.php
UTF-8
3,931
2.640625
3
[]
no_license
<?php // required headers header("Access-Control-Allow-Origin: *"); header("Content-Type: application/json; charset=UTF-8"); header("Access-Control-Allow-Methods: POST"); header("Access-Control-Max-Age: 3600"); header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Aut...
true
f35bd588727049444221603e41da608d4e978414
PHP
robert-mill/cover
/frontend/models/AboutUs.php
UTF-8
820
2.625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace frontend\models; use Yii; /** * This is the model class for table "about_us". * * @property integer $aboutus_id * @property string $aboutus_title * @property string $aboutus_body */ class AboutUs extends \yii\db\ActiveRecord { /** * @inheritdoc */ public static function tableN...
true
0b91e9868f5e7af1fe0f5e9b71497e1ba173068e
PHP
ashleyhood/php-lxd
/tests/Endpoint/ProfilesTest.php
UTF-8
8,328
2.734375
3
[ "MIT" ]
permissive
<?php namespace Opensaucesystems\Lxd\Tests\Endpoint; class ProfilesTest extends TestCase { protected function getEndpointClass() { return 'Opensaucesystems\Lxd\Endpoint\Profiles'; } /** * Test getting all profiles */ public function testAllMatchesRequest() { $expecte...
true
627e708be552e7b06187f861c9c34b3ffe631131
PHP
inajob/twlink
/template/my.inc
UTF-8
2,840
2.625
3
[]
no_license
<?php require('header.inc');?> <p> <h2><img src="http://img.tweetimag.es/i/<?php echo urlencode($view['name']); ?>" /> <a href="?action=user&user=<?php echo urlencode($view['name']); ?>"><?php echo esc($view['name']);?></a> </h2> <?php foreach($view['data'] as $cid => $v){ if(empty($cid))continue; foreac...
true
b99cfa81e5845439602b37416755b70f63beec33
PHP
scancode-system/portalmodule
/Observers/EventSettingObserver.php
UTF-8
510
2.515625
3
[]
no_license
<?php namespace Modules\Portal\Observers; use Modules\Portal\Entities\EventSetting; class EventSettingObserver { public function creating(EventSetting $event_setting) { $module = $event_setting->setting->module; $class = 'Modules\\'.$module.'\Entities\\'.$module; $custom_setting = new $class(); $custom_s...
true
e9dbe630ef3c902ec9ed31f83b9e1ee678082f1d
PHP
mxmff/book
/design-patterns/Builder/LexusBuilder.php
UTF-8
710
3.046875
3
[]
no_license
<?php /** * LexusBuilder.php * * @User : wsj6563@gmail.com * @Date : 16/3/3 14:44 * @Encoding: UTF-8 * @Created by PhpStorm. */ namespace designPatterns\Builder; class LexusBuilder implements Builder { /** * @var Car */ private $car; public function __construct() { $this...
true
0c1a3d07c018f194456318415c347fbdb3ee3591
PHP
internationalisering/InternationaleDagen
/application/models/Presence_model.php
UTF-8
3,824
2.953125
3
[]
no_license
<?php /** * @class Presence_model * Model-klasse voor alle presences (aanwezigheden) */ class Presence_model extends CI_Model { /** * Constructor */ function __construct() { parent::__construct(); } /** * Geeft terug de aanwezigheid met id=$id uit de tabel aanwezigheid * @...
true
cc5841258318e39a369ce912b21b0eb6290429b0
PHP
piyushac123/BreakCOVID19
/app/hackathon.php
UTF-8
4,017
2.609375
3
[]
no_license
<?php /*$con = mysqli_connect('localhost','root','','BreakCovid19'); if (!$con) { die('Could not connect: ' . mysqli_error($con)); } //mysqli_select_db($con,"ajax_demo"); $sql1="select registration_id from Registration where flag=...
true
84df2dd55c89e848dfa3abe4105dd67d4e94f316
PHP
zhukovich/test
/application/models/Database.php
UTF-8
1,145
2.8125
3
[]
no_license
<?php class Database extends App { public function __construct() { parent::__construct(); $this->connect(); } public function __destruct() { $this->disconnect(); } public function connect() { if(!empty($this->mysqli)) { return $this->mysqli; } else { $this->mysqli = new mysqli($this->c...
true
1a2d61a7a2b77e23b400a232b240394a5fde5736
PHP
ivqonsanada/RPL-Lelang
/app/Http/Controllers/userController.php
UTF-8
16,440
2.578125
3
[]
no_license
<?php namespace App\Http\Controllers; use App\AlamatPengiriman; use App\Pengguna; use Firebase\JWT\JWT; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; class UserController extends Controller { public function index(Request $request) { try { $user = Pengguna::where('user...
true
c5a14fe347f743427b81bda04c078ed255b386f8
PHP
Kmolina009/PHP_Basics
/www/IteratorsAndcontrolFlow/ifElseStatements.php
UTF-8
835
3.28125
3
[]
no_license
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <nav> <a href="/ifStatements.php">IF Statements</a> <a href="/ifElseStatements.php">IfElse Statements</a> <a href="/whileLo...
true
30e5a5ab31ca4762c52dbf4b788722f7fdf75e6b
PHP
lokothodida/clean-architecture-php-cms-example
/plugins/api-gateway/Http/Router.php
UTF-8
1,159
2.921875
3
[ "MIT" ]
permissive
<?php namespace PageManagementSystem\Plugins\ApiGateway\Http; class Router { private $url; private $routes = []; public function __construct(string $url) { $this->url = $url; } public function add(string $route, callable $callback): void { $this->routes[$this->routeToReg...
true
8a3f368e789ca34d636ee91dd536bfc4be57b4f2
PHP
KaranamVijayKumar/gdp-laurel-review
/Code/Source Code/app/Project/Models/SubmissionStatus.php
UTF-8
1,270
2.546875
3
[]
no_license
<?php /** * File: SubmissionStatus.php * Created: 26-08-2014 * * Description * * @author Arpad Olasz <arpi@wingsline.com> */ namespace Project\Models; use Story\ORM; /** * Class SubmissionStatus * * @package Project\Models */ class SubmissionStatus extends ORM { /** * Name of the all status ...
true
d027d789aaa8339867cf841fe726ef930aeb89f4
PHP
chispita/host-admin
/include/vzinc/CmdVz_beancounters.inc.php
UTF-8
2,195
2.875
3
[]
no_license
<?php /* Compruenba los beamcounters de todas los containers */ # Primero llamamos a cada nodo y nos traemos copia de todos los beamcounters con errores: $aNodos = VZ::getNodos(); decir("> Comprobando beancounters de todos los nodos."); foreach($aNodos as $nodo) { $aTmp = Sistema::Ejecuta($nodo, "", "/usr/local...
true
e4c1a946928e1d5b1c0bacff693a87f05c02674a
PHP
Ldqtheone/php_week
/algo/Algorithmie.php
UTF-8
6,967
3.96875
4
[]
no_license
<?php /** * Class Algorithmie */ class Algorithmie { /** * Algorithmie constructor. */ public function __construct() { } /** * Function associate with story 3 * @param int $number */ public function getPrimaryNumber($number) : void { echo "Jusqu'à " . $number...
true
9e6f4ccbf3c0bc15a63a546a7e02dfd99557bfa5
PHP
Top-World-Dev/Service-School-Student
/source/app/Models/Group.php
UTF-8
1,993
2.59375
3
[ "MIT", "Apache-2.0" ]
permissive
<?php namespace App\Models; use App\CustomAR\Record; use App\CustomAR\Relation; use Cycle\ORM\Promise\Reference; class Group extends Record { public const TABLE = 'groups'; public const RELATIONS = [ Relation::BELONGS_TO => [ 'owner' => User::class, ], ]; /** * @var...
true
dbc4f2900649a4db25af41a5d997c32e8b213c58
PHP
Nemiana/remont-kvartyr.com.ua
/admin/export_price.php
UTF-8
1,342
2.703125
3
[]
no_license
<?php require_once ('/query/queries.php'); //If session is not exists, creates it if (session_status() == PHP_SESSION_NONE) { session_start(); } //If not login user with access rights 'admin', exit to start page if (!isset($_SESSION['user']) || $_SESSION['rights'] != 'admin') { h...
true
28534066e8fcb4614d5dab462e1cf4a6ed02b1a5
PHP
pengfen/WWW
/backend/controllers/RecycleController.php
GB18030
1,910
2.5625
3
[ "BSD-3-Clause" ]
permissive
<?php namespace backend\controllers; use Yii; use yii\web\Controller; use backend\models\Recycle; /** * (б ɾ) * : caopeng * ʱ: 2016-09-15 */ class RecycleController extends Controller { /** * ʹԶactionǰù * * @inheritdoc */ public function behaviors() { return [ 'access...
true