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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
cc4e095de671326935d706125be9246b49bd3c30 | PHP | pmSven/pm-shopware-base-project | /src/public/engine/Shopware/Bundle/PluginInstallerBundle/Struct/StructHydrator.php | UTF-8 | 21,062 | 2.515625 | 3 | [
"Apache-2.0",
"AGPL-3.0-only",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* perm... | true |
ac703c50de03b5b49e2f0fedde8bf0a2960ec4df | PHP | danimoncerro/CursPHP | /TemePHP/Tema28/tema5.php | UTF-8 | 975 | 3.640625 | 4 | [] | no_license | <?php
abstract class Fruct {
public $nume;
protected $gust;
private $provenienta;
abstract function setNume($nume);
abstract function getNume();
abstract function setGust($gust);
abstract function getGust();
abstract function setProvenienta($provenienta);
abstract function getProvenienta();
}
class Mar exte... | true |
90954edaa42586fc9d402258573424cc3a2453bd | PHP | randrahim/StudentGradebook | /add_info.php | UTF-8 | 2,405 | 3.46875 | 3 | [] | no_license | <?php // Script 13.7 - add_info.php
/* This script adds the student information. */
// Define a page title and include the header:
define('TITLE', 'Add Student Information');
include('templates/header.html');
print '<h2>Add the Student Information</h2>';
// Restrict access to administrators only:
if (!is_admi... | true |
8770fb1bdce81975a918e5441f98f1b82da7d827 | PHP | ihortymoshenko/IMTYiiAssetic | /src/FilterInitializer.php | UTF-8 | 3,550 | 2.734375 | 3 | [
"MIT"
] | permissive | <?php
/*
* This file is part of the IMTYiiAssetic package.
*
* (c) Igor M. Timoshenko <igor.timoshenko@i.ua>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace IMT\YiiAssetic;
use Assetic\Filter\FilterInterface;
use Asset... | true |
d021b79b9afaae8f37bd19249b7429b70656428c | PHP | DennisRono/alphax-php | /den_functions/payment.php | UTF-8 | 2,070 | 3.03125 | 3 | [
"MIT"
] | permissive | <?php
function amortiazationTable($pNum, $periodicPayment, $balance, $monthlyInterest){
// Calculate payment interest
$paymentInterest = round($balance * $monthlyInterest, 2);
//Calculate payment principal
$paymentPrincipal = round($periodicPayment - $paymentInterest, 2);
//Deduct principal from the rema... | true |
31ccee1f7e0b2f9b4257dc5545b6819bb896fca1 | PHP | powellblyth/flowers | /app/Policies/MembershipPurchasePolicy.php | UTF-8 | 2,149 | 2.515625 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Policies;
use App\Models\MembershipPurchase;
use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;
class MembershipPurchasePolicy
{
use HandlesAuthorization;
public function before($user, $ability)
{
// if ($user->isAdmin()) {
// return true;
// ... | true |
7070880de108264fe58a24d7582b4e3f4a27ce60 | PHP | AlekseyTroshin/phpFastStart | /experiments/Dog.php | UTF-8 | 311 | 2.625 | 3 | [] | no_license | <?php
header("Content-Type: text/html;charset=utf-8");
?>
<meta http-equiv="Content-TYpe" content="text/html;charset=utf-8"/>
<?php
require_once 'Pet.php';
class Dog extends Pet {
public function speak() {
return "Gav! Gav!";
}
public function plays() {
return 'bring me anything';
}
}
?> | true |
0c8da636781e0adbd8642ec84f75ea7e2bc6b4b3 | PHP | Bartlomeij/fitness-planner | /src/Command/RecommendWorkoutCommand.php | UTF-8 | 737 | 3.046875 | 3 | [] | no_license | <?php
namespace App\Command;
/**
* Class RecommendWorkoutCommand
* @package App\Command
*/
class RecommendWorkoutCommand
{
/**
* @var int
*/
private $workoutId;
/**
* @var int
*/
private $userId;
/**
* RecommendWorkoutCommand constructor.
* @param int $workoutId
... | true |
b349c2cbfd6af752381084f38d4b42253521fb73 | PHP | teunissenstefan/snippets | /models/snippet.php | UTF-8 | 6,036 | 3.03125 | 3 | [] | no_license | <?php
class Snippet {
public $id;
public $beschrijving;
public $snippet;
public $aangemaaktdoor;
public $language;
public $datum_aangemaakt;
public $datum_update;
public function __construct($id, $beschrijving, $snippet, $aangemaaktdoor, $language, $datum_aangemaakt, $datum_update) {
... | true |
0c832c9d46823f2bd15f05db1ead60176ccfbca8 | PHP | r0manSharapov/proj | /database/seeds/DocsSeeder.php | UTF-8 | 1,671 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
use Illuminate\Database\Seeder;
class DocsSeeder extends Seeder
{
private $docPath = 'docs';
private $allFiles;
public function run()
{
$this->command->line('--- > Criar Docs (cópias digitais de docs)');
$this->command->line('Docs vão ser armazenados na pasta ' . storage_path('... | true |
e635b9dcb3df85f26e5710002ffd2dd32c551a75 | PHP | FJHerculano/projeto_paulo | /ws-operators-com-php/app/config/Routes.php | UTF-8 | 953 | 2.75 | 3 | [] | no_license | <?php
namespace Config;
use Slim\App;
use Controllers\V1\OperatorController;
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Message\ResponseInterface as Response;
final class Routes {
private $app;
public function __construct(App $app) {
$this->app = $app;
if (!empty(... | true |
067af1afbf2ea326f9b2bc45171c78fed3e3f952 | PHP | chancesmith/sk-todolist | /noneed/start_punchcard.php | UTF-8 | 963 | 2.515625 | 3 | [] | no_license | <?PHP
require_once("./include/membersite_config.php");
if(!$fgmembersite->CheckLogin())
{
$fgmembersite->RedirectToURL("login.php");
exit;
}
$day = date("Y-M-d H:m:s");
$punchcard = $_POST[punchcard];
$con = mysql_connect("localhost","betterj1_chance","wcsadmin");
if (!$con)
{
die('Could not connect: '... | true |
07fbda1179c240849cba081eafadc129a0e54f52 | PHP | kuyoto/getallheaders | /src/getallheaders.php | UTF-8 | 1,927 | 2.6875 | 3 | [
"MIT"
] | permissive | <?php
/**
* kuyoto getallheaders (https://github.com/kuyoto/getallheaders/).
*
* PHP version 5 and 7
*
* @category Library
*
* @author Tolulope Kuyoro <nifskid1999@gmail.com>
* @copyright 2020 Tolulope Kuyoro <nifskid1999@gmail.com>
* @license http://www.opensource.org/licenses/mit-license.php (MIT Lice... | true |
45fec4419ffd9deb4f84a0875cdeb51c185a6c3b | PHP | kkuris160508/kkurisProject | /application/helpers/MY_array_helper.php | UTF-8 | 525 | 3.078125 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: chris
* Date: 2019-08-29
* Time: 오후 1:40
*/
function any_in_array($needle, $haystack)
{
$needle = is_array($needle) ? $needle : array($needle);
foreach ($needle as $item)
{
if (in_array($item, $haystack))
{
return TRUE;
}
... | true |
635819897954dbcd7ced3371715ac6ec54518e8b | PHP | MechaTrickster/Bot-Ticelli | /setup.php | UTF-8 | 1,033 | 2.703125 | 3 | [
"Unlicense"
] | permissive | <?php
/*
* Telegram Bot Sample
* ===================
* UWiClab, University of Urbino
* ===================
* Setup script: if you need database access in your Telegram bot,
* ensure that the MySQL connection is properly configured in file
* config.php and run this script once.
*/
include ('lib.php');
echo 'He... | true |
fe4852f49c56111f400280f1ee9be6a3377ea9df | PHP | BibiFock/euler | /src/EulerProject/Command/Problem21Command.php | UTF-8 | 2,605 | 3.15625 | 3 | [
"MIT"
] | permissive | <?php
namespace EulerProject\Command;
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 Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Conso... | true |
1984250736d42f0126bb84c55297ae078e3e5d79 | PHP | volovodenko/php_homework_5 | /functions_forms_tasks/10/wordsUniqCount.php | UTF-8 | 778 | 3.515625 | 4 | [] | no_license | <?php
/**
* @param $string
* @return array
* Ф-ция возвращает уникальные слова в строке
*/
function wordsUniqCount($string) {
$string = mb_convert_encoding(trim($string), "UTF-8"); //преобразовали строку в UTF-8
$array = explode(" ", $string);//разбили в массив по каждому слову
$array = array_filter($ar... | true |
48ac8c459d68a3a5058e23ba36e5807e89d1a9cd | PHP | karademy/git-example-project | /index.php | UTF-8 | 139 | 2.765625 | 3 | [] | no_license | <?php
echo "<h1>My GIT Project is ready!</h1>";
$user = "Karademy";
if($user) {
echo "hello $user";
} else {
echo "bye Karademy";
}
| true |
9d38b66ee276ed0a9616b6ed8b0c5f9f0a3deda0 | PHP | tmfc/TPHPFramework | /lib/ajaxbase.php | UTF-8 | 1,429 | 2.53125 | 3 | [] | no_license | <?php
require_once(dirname(__FILE__) ."/conf/config.php");
require_once(dirname(__FILE__) ."/const.php");
require_once(dirname(__FILE__) ."/func.template.php");
require_once(dirname(__FILE__) ."/func.format.php");
require_once(dirname(__FILE__) ."/func.utilities.php");
require_once(dirname(__FILE__) ."/func.sessi... | true |
e58e31f81932af2eeff68c947998a012fc424b93 | PHP | reandimo/WooCommerce-Mail-Reminder | /includes/meta-box/inc/fields/multiple-values.php | UTF-8 | 1,331 | 3 | 3 | [
"GPL-2.0-or-later",
"MIT"
] | permissive | <?php
/**
* This class implements common methods used in fields which have multiple values
* like checkbox list, autocomplete, etc.
*
* The difference when handling actions for these fields are the way they get/set
* meta value. Briefly:
* - If field is cloneable, value is saved as a single entry in the database
... | true |
911f3ee847950bf783dff8482a5d6c7ffcbbdb83 | PHP | srz-zumix/twilio | /gather.php | UTF-8 | 632 | 2.625 | 3 | [] | no_license | <?php
require 'twilio-php/Services/Twilio.php';
$response = new Services_Twilio_Twiml();
if( isset($_REQUEST['Digits']) ) {
$input = $_REQUEST['Digits'];
switch($input) {
case '9':
$response->say('さようなら', array('language' => 'ja-jp'));
break;
default:
$gather = $response->gather(array('numDigits' =... | true |
4b4852badc6b25dd1ac2b22d2804c3e621d78fa8 | PHP | neone4you/neonesys | /api/Tools.php | UTF-8 | 23,101 | 3.140625 | 3 | [] | no_license | <?php
/**
* Различные утилиты
* @author Mikhail.Pogrebnikov
*
*/
class Tools {
const GB = "Гб";
const MB = "Мб";
const KB = "Кб";
const B = "б";
/**
* Склонение по числам для русского языка
* http://www.gnu.org/software/gettext/manual/html_mono/gettext.html#Plural-forms
* @param integer ... | true |
5180aad0eac5a4fe54a0f61cd4a01fdd29a8154b | PHP | Sywooch/ams | /models/Pshipment.php | UTF-8 | 1,192 | 2.609375 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace app\models;
use Yii;
/**
* This is the model class for table "{{%pshipments}}".
*
* @property integer $id
* @property integer $purchaseid
* @property integer $shipping_deliverymethod
* @property integer $accountnumber
* @property string $created_at
* @property string $modified_at
*/
class Ps... | true |
09893ab02772ec2a0b525312a9bc1aa70c22fee8 | PHP | nisabiyubele/Mueble | /naranja/inv_ven_fecha.php | UTF-8 | 7,350 | 2.59375 | 3 | [] | no_license | <?php require_once('Connections/conexion.php'); ?>
<?php
date_default_timezone_set('America/Mexico_City');
$nuevafecha= date("Y-m-d");
$vendedor = "";
$vendedor = $_POST['trab'];
$carg = $_POST['descargas'];
for($x=0;$x<9;$x++){
$fecha = explode("-",$nuevafecha);
$dias1 = date("w", mktime(0,0,0,$fecha[1],... | true |
45467a7e1d7380ddb814d5fc2d7a084e8b5dcfe2 | PHP | braintree/braintree_php | /lib/Braintree/AuthorizationAdjustment.php | UTF-8 | 1,039 | 2.796875 | 3 | [
"MIT"
] | permissive | <?php
namespace Braintree;
/**
* Creates an instance of AuthorizationAdjustment as returned from a transaction
*
* See our {@link https://developer.paypal.com/braintree/docs/reference/response/transaction#authorization-adjustments developer docs} for information on attributes
*/
class AuthorizationAdjustment ext... | true |
7b74f87adf7cc9df1966ad0b46434171a8919ed4 | PHP | lingluadmin/ll_jdy_code | /9douyu-module/app/Http/Dbs/Picture/PictureDb.php | UTF-8 | 2,097 | 2.75 | 3 | [
"MIT"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: liuqiuhui
* Date: 16/6/16
* Time: 下午4:50
*/
namespace App\Http\Dbs\Picture;
use App\Http\Dbs\JdyDb;
class PictureDb extends JdyDb
{
protected $table = 'picture';
/**
* @param $id
* @return array
* @desc 通过id获取图片
*/
public function getByI... | true |
cc9f851a5121469a6d09b06ea30449117a762c32 | PHP | filmoteca/filmoteca | /app/html.macros.php | UTF-8 | 2,816 | 2.890625 | 3 | [] | no_license | <?php
/**
* Recibe un array de links hacia scripts.
* Cada entrada puede ser o una url hacia el script
* o un array cuya primer entrada es un link y cuya
* segunda entrada es una lista de atributos.
* @var array
*/
HTML::macro('scripts', function($scripts = array()){
return HTML::resource('script', $scripts);
... | true |
4e98bd3864a467a7281b2bf574143fddf27efaac | PHP | abearly/curiosity | /app/Http/UserRepository.php | UTF-8 | 2,343 | 2.890625 | 3 | [] | no_license | <?php
namespace App\Http;
use App\User;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Response;
class UserRepository
{
/**
* @var string
*/
protected $file;
/**
* @var Symfony\Component\HttpFoundation\JsonResponse
*/
protected $response;
... | true |
19bff196fb867ebf4a3af9e83d2ea89446a5a4e0 | PHP | adrianoshr/ilnovo | /panel/model/p001_cortar_do.php | UTF-8 | 3,637 | 2.625 | 3 | [] | no_license | <?php
header('Cache-Control: no-cache, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Content-type: application/json');
$targ_w = 1276;
$targ_h = 668;
$jpeg_quality = 90;
$src = '../../files/articulos/original/' . $_POST['imagen'];
if (true == $_POST['imagen']) {
$ext = pathinfo($sr... | true |
4e66a6830c95a1512263a9b1e63b43bb3e72c2a2 | PHP | hibimosaku/portfolio | /php/join/index.php | UTF-8 | 2,949 | 2.578125 | 3 | [] | no_license | <?php
require_once 'common.php';
session_start();
if (!empty($_POST)) {
if ($_POST['name']=='') {
$error['name']='blank';
}
if ($_POST['email']=='') {
$error['email']='blank';
}
if (strlen($_POST['password'])<4) {
$error['password']='length';
}
if ($_POST['password']... | true |
385d0c37cf17f727a5fd127ad8b438645d835aa7 | PHP | TiMoChao/lc_ad_first | /web_common5.8/SharedMemory/SharedMemory/Shmop.php | UTF-8 | 5,989 | 2.625 | 3 | [] | no_license | <?php
/**
*
* The Shmop driver for SharedMemory
*
* PHP versions 4 and 5
*
* LICENSE: This source file is subject to version 3.0 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_0.txt. If you did not receive a copy of
* the PHP License and... | true |
1701396306b23d5dbe5d1f19c4723f3c9ebe7abd | PHP | pinoox/paper | /component/setting.class.php | UTF-8 | 4,998 | 2.703125 | 3 | [
"MIT"
] | permissive | <?php
/**
* **** * * * **** **** * *
* * * * * * * * * * * * *
* **** * * * * * * * * *
* * * * * * * * * * * *
* * * * ** **** **** * *
* @author Pinoox
* @link https://www.pinoox.com/
* @license https://opensource.org/... | true |
55b42ac1343be7b63aa6447551c44e6f1bb7bf6f | PHP | charleshein93/laravel-electivo | /app/Http/Controllers/FacturaController.php | UTF-8 | 2,646 | 2.546875 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use App\Factura;
use Carbon\Carbon;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
class FacturaController extends Controller
{
public function index(){
$facturas = Factura::all();
return view('facturas.index')->with('facturas', $factura... | true |
1a6a134ce2bcf76e6fa5619238c431970c3d6a29 | PHP | surayborys/amobile | /console/migrations/m190411_200152_alter_order_table_add_fullname_column.php | UTF-8 | 752 | 2.515625 | 3 | [] | no_license | <?php
use yii\db\Migration;
/**
* Adds 'fullname' column to the "{{%order}}" table
*/
class m190411_200152_alter_order_table_add_fullname_column extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('{{%order}}', 'fullname', $this->string()->notNull()-... | true |
4b3acd889052971e4e2a1f44d2986bf0a8a9f171 | PHP | Litaya/itbooks | /app/Libraries/WechatModules/Book.php | UTF-8 | 1,350 | 2.609375 | 3 | [] | no_license | <?php
namespace App\Libraries\WechatModules;
use App\Libraries\WechatHandler;
use EasyWeChat\Message\News;
use Illuminate\Support\Facades\Log;
class Book extends WechatHandler{
public function handle()
{
$openid = $this->message->FromUserName;
$book_url = url('/home')."?openid=$openid";
if($this->c... | true |
de471a94a6c4534fa77b9d0b132366a23f52b117 | PHP | zsalwen/Service-Accounting | /manualCheck.php | UTF-8 | 6,237 | 2.96875 | 3 | [] | no_license | <?
include 'functions.php';
include 'security.php';
dbConnect();
$user=$_COOKIE['userdata']['user_id'];
function num_words($number){
$ones=array('','ONE','TWO','THREE','FOUR','FIVE','SIX','SEVEN','EIGHT','NINE');
$tens=array('','ELEVEN','TWELVE','THIRTEEN','FOURTEEN','FIFTEEN','SIXTEEN','SEVENTEEN','EIGH... | true |
230df1c71f30eedc53b5e0ac6e052f56b0b6273c | PHP | Kevinaw/wstOD | /site/membership/my_listings.php | UTF-8 | 1,265 | 2.609375 | 3 | [] | no_license | <?php
session_start();
require_once $_SERVER['DOCUMENT_ROOT']."/includes/dbi.inc";
$db=new Database();
$sql=<<<EOD
select listings.*,listing_users.id as listing_user_id
from listing_users
join listings on listings.id=listing_id
where user_id=[user_id]
order by l... | true |
8aa622edb2e311bcf8ec901bb5cf67818b294adf | PHP | cabloo/php-package-ip-address | /src/IpAddressRangeSubtractor.php | UTF-8 | 1,100 | 3.078125 | 3 | [
"MIT"
] | permissive | <?php
namespace Cabloo\IpAddress;
class IpAddressRangeSubtractor {
/**
* @param IIpAddressRange $remove
* @param IIpAddressRange $from
*
* @return IIpAddressRange[] Returs empty array if $remove covers all of $from
*/
public function subtract(
IIpAddressRange $remove,
IIpAddressRange $from
... | true |
19d5eb8e65cd49a5b1da4c7a1ef73780dbe99995 | PHP | damyanmp/yoga | /src/Template/Layout.php | UTF-8 | 311 | 2.546875 | 3 | [] | no_license | <?php
namespace Yoga\Template;
class Layout extends \Yoga\Template {
/**
* @var string
*/
private $content;
public function setContent($content) {
$this->content = $content;
return $this;
}
public function getContent() {
return $this->content;
}
} | true |
cf075d1041f3b778e908c186629b936067313eef | PHP | mrkekseek/book247 | /app/Http/Libraries/ApiAuth.php | UTF-8 | 9,171 | 2.546875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Http\Libraries;
class ApiAuth
{
const APIKEY = 'apiKey-@f4g8-FH2-8809x-dj22aSwrL=cP24Zd234-TuJh87EqChVBGfs=SG564SD-fgAG47-747AhAP=U456=O97=Y=O6A=OC7b5645MNB-V4OO7Z-qw-OARSOc-SD456OFoCE-=64RW67=QOVq=';
const APIURL = 'http://rankedinbookingsso-test.azurewebsites.net/';
static $erro... | true |
fe38636ff4bd8d0e3cfa5264f880c857b7481697 | PHP | yuri-calabrez/code-editora | /easybook/src/Easybook/Publishers/BasePublisher.php | UTF-8 | 9,980 | 2.75 | 3 | [
"MIT"
] | permissive | <?php
/*
* This file is part of the easybook application.
*
* (c) Javier Eguiluz <javier.eguiluz@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Easybook\Publishers;
use Easybook\DependencyInjection\Applicat... | true |
7ccab84bc868447210b0657461d53cfc21a17094 | PHP | momaabna/Crazy_ITech_Search_Engine | /dumb_urls/arabfeed.php | UTF-8 | 825 | 2.5625 | 3 | [] | no_license | <?php
include('../config.php');
include('../simple_html_dom.php');
$url = "ArabFeed.htm";
echo $url;
$html = file_get_html($url);
//echo $html;
$title=null;
$url =null;
if($html){
echo 'ok';
$items = $html->find('div[class=home-portfolio-title]');
//echo $items;
foreach($items as $item){
$url = mysqli_real_es... | true |
b53ecba56aef563583010891f0d42607420234c5 | PHP | TheRealHavoc/admin.stemadvies | /app/models/objects/account.php | UTF-8 | 2,447 | 3.28125 | 3 | [] | no_license | <?php
class Account {
private $conn;
public $id;
public $username;
public $firstname;
public $lastname;
public $password;
private $created_on;
private $last_edited;
private $last_login;
public function __construct($... | true |
d681fde1c41e3a829a96e9ea52718628033e3cb2 | PHP | Mellodica/AprendendoPHPPOO | /PHPPOO_5/Lutador.php | UTF-8 | 4,147 | 3.25 | 3 | [] | no_license | <?php
//require_once 'iLutador';
/*
* 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 Lutador
*
* @author Helber
*/
class Lutador {
//put your code here
p... | true |
31cc494514fc98d337801791f54ae149b5ab14c1 | PHP | dellpato/Syskar | /class/class.permisos.php | UTF-8 | 1,712 | 2.859375 | 3 | [] | no_license | <?php
require("../cfg/config.php");
class conectaDB extends configuracion
{
private $conex;
public function __construct(){
$this->conex = parent::conectar();
return $this->conex;
}
public function queryBD($consulta,$valores = array()){
$resultado = false;
if($statement = $this->conex->prepare($con... | true |
cbce8563172e81c2ad9feecc35b850b7be3d2d8f | PHP | emadfz/market-front | /app/Models/Country.php | UTF-8 | 1,315 | 2.53125 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Country extends Model
{
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'countries';
/**
* The database primary key value.
*
* @var string
*/
protected $pri... | true |
6a22d65f59730b24f8f8ae1e2c1b7200455fefb9 | PHP | EugenMayer/update_feed_api | /includes/project.class.inc | UTF-8 | 8,143 | 2.859375 | 3 | [] | no_license | <?php
// $Id$
// Copyright (c) 2010 KontextWork
// Author: Eugen Mayer
// A genera Drupal Project "Project" with its meta data
class Project extends FeedEntryContainer {
/**
* @var Release[]
*/
protected $releases = array();
/**
* @var string
*/
protected $server_key = NULL;
public function __c... | true |
f60e78c237f5ce51f0730768660365bb31d97c59 | PHP | pasthortown/tires | /server/entidades/CRUD/Empleado.php | UTF-8 | 307 | 2.75 | 3 | [] | no_license | <?php
class Empleado
{
public $id;
public $idPersona;
public $idSucursal;
public $idCargo;
function __construct($id,$idPersona,$idSucursal,$idCargo){
$this->id = $id;
$this->idPersona = $idPersona;
$this->idSucursal = $idSucursal;
$this->idCargo = $idCargo;
}
}
?> | true |
3152e50ad5b739e810dc2e50f7918be0f974a888 | PHP | emilssonn/1DV408 | /Project/src/user/model/Password.php | UTF-8 | 2,033 | 3.265625 | 3 | [] | no_license | <?php
namespace user\model;
require_once("./src/vendor/Crypt.php");
/**
* @author Daniel Toll - https://github.com/dntoll
* Changes by Peter Emilsson
*/
class Password {
CONST MINIMUM_PASSWORD_CHARACTERS = 6;
CONST MAXIMUM_PASSWORD_CHARACTERS = 16;
/**
* @var String
*/
private $password;
private $encry... | true |
bafb457b23b224ea4d8fa91140d035b4f6a562fc | PHP | wplibs/form | /src/Registry.php | UTF-8 | 5,575 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace WPLibs\Form;
use WPLibs\Form\Helper\Utils;
use WPLibs\Form\Contracts\Field_Type;
class Registry {
/**
* The registered field types bindings.
*
* @var array
*/
protected static $bindings = [];
/**
* The field types has been resolved.
*
* @var array
*/
protected static $resolved = ... | true |
da4dae808ab3e1e12774d7b1485bd37cdc28060a | PHP | a0935893458/Smart-name-system | /nfcorderweb/upload.php | UTF-8 | 444 | 2.546875 | 3 | [] | no_license | <?php
$base=$_REQUEST['image'];
$filename=$_REQUEST['filename'];
echo $filename;
// base64 encoded utf-8 string
$binary=base64_decode($base); //編碼圖片
// binary, utf-8 bytes
//header('Content-Type: bitmap; charset=utf-8');
// print($binary);
//$theFile = base64_decode($image_data);
$file = fopen("./upload/".$fi... | true |
7a59ec1a6c25cee35484bf52df622a8a05fed46f | PHP | vtorres96/DH-PHP-POO | /FS05/aula03_poo/Reptil.php | UTF-8 | 497 | 3.703125 | 4 | [] | no_license | <?php
require_once("Animal.php");
class Reptil extends Animal {
private $corDeEscama;
public function locomover(){
echo "<p>Rastejando</p>";
}
public function alimentar(){
echo "<p>Comendo vegetais</p>";
}
public function emitirSom(){
echo "<p>Som dos répteis</p>"; ... | true |
aca5e96c6034bcab9f08af2a6eae28876dc34c7a | PHP | starme/elasticsearch | /src/Schema/Concerns/Template.php | UTF-8 | 1,745 | 2.640625 | 3 | [
"MIT"
] | permissive | <?php
namespace Starme\Elasticsearch\Schema\Concerns;
use Closure;
trait Template
{
/**
*
* @param string $table
* @param \Closure $callback
* @return void
*/
public function createTemplate(string $table, Closure $callback)
{
$body = $this->build(tap($this->createBlueprint... | true |
7994c03d3413f03e2cc460c9c514f1d19958e77a | PHP | alex-des-santos/personal-management-system-io | /src/DTO/Internal/Module/Search/SearchParametersDTO.php | UTF-8 | 1,717 | 3.09375 | 3 | [
"MIT"
] | permissive | <?php
namespace App\DTO\Internal\Module\Search;
use App\DTO\AbstractDTO;
/**
* Class SearchParametersDTO
* @package App\DTO\Internal\Module\Search
*/
class SearchParametersDTO extends AbstractDTO
{
const KEY_SEARCHED_STRING = "searchedString";
const KEY_MODULE_NAME = "moduleName";
/**
* @va... | true |
84cf1ccb482be08906ada98fdcfd564ed0e3e273 | PHP | triadev/LaravelElasticsearchMigration | /src/Models/Entity/ElasticsearchMigration.php | UTF-8 | 830 | 2.546875 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | <?php
namespace Triadev\EsMigration\Models\Entity;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
/**
* @property integer $id
* @property string $migration
* @property string $status
* @property string|null $error
* @property string $created_at
* @property string $up... | true |
b5dc9645dc1f78e4413093562adfd7ac015fe6be | PHP | OlliePugh/workout-tracking-web-app | /dashboard-tiles/highest-weight-lifted.php | UTF-8 | 1,186 | 2.59375 | 3 | [] | no_license | <div class="tile-content-wrapper">
<h1 style="margin-top: 0px;" class="tile-top">The most you have ever lifted is</h1>
<h1 class ="tile-data" style="text-align:center;">
<?php
$userID = $_SESSION["ID"];
include "phpScripts/connectToDB.php"; //needs to as if coming from directory of the page its... | true |
24591aa27eb0f2c66aac5f5f45b47f874b0818fc | PHP | marie-clerc/boutique | /libraries/view/boutique/addpanier.php | UTF-8 | 1,310 | 2.546875 | 3 | [] | no_license | <?php
require_once '../../autoload.php';
require_once 'layout_front.html.php';
require_once 'header.html.php';
$Produits = new \models\Products();
$Panier = new \models\Panier();
// unset($_SESSION['panier']);
if (isset($_GET['product_id'])) {
$Produits = $Produits->displayproducts();
if (empty($Produits)) {... | true |
1a4be8a32400b35c7b1b7b114c79ca46bbc2f785 | PHP | mcke0368/CST8334 | /AdventureInnovation/AdventureInnovation/app/Models/SocialMedia.php | UTF-8 | 515 | 2.71875 | 3 | [
"MIT"
] | permissive | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* Model lclass for social media. Sets up the dependencies on the user model.
* Class SocialMedia
* @package App\Models
*/
class SocialMedia extends Model
{
protected $fillable = [
'Facebook_URL','Twitter_URL','Instagram_URL'
... | true |
c4a41f7a3379f939dcbfb2b535f1c598eba40fc6 | PHP | bkfrye/Locus | /src/plugins/gravityforms/includes/settings/fields/class-html.php | UTF-8 | 715 | 2.609375 | 3 | [
"MIT",
"GPL-3.0-only"
] | permissive | <?php
namespace Gravity_Forms\Gravity_Forms\Settings\Fields;
use Gravity_Forms\Gravity_Forms\Settings\Fields;
defined( 'ABSPATH' ) || die();
class HTML extends Base {
/**
* Field type.
*
* @since 2.5
*
* @var string
*/
public $type = 'html';
// # RENDER METHODS ---------------------------------... | true |
9521b27c80389063c348815b6920baf4b1b6426f | PHP | ESGI-IW3-2016-01/studentbot | /src/AppBundle/Service/MessageSender.php | UTF-8 | 4,371 | 2.796875 | 3 | [] | no_license | <?php
namespace AppBundle\Service;
use AppBundle\Entity\Facebook\QuickReply;
use AppBundle\Entity\Facebook\QuickReplyResponse;
use Doctrine\Common\Collections\ArrayCollection;
use GuzzleHttp\Client;
use AppBundle\Entity\Facebook\SendMessage;
class MessageSender
{
protected $token;
protected $g... | true |
fe5911df4de644043e51cd380f6eb9134d94c01d | PHP | WPPlugins/wproxylist | /activate.php | UTF-8 | 1,547 | 2.609375 | 3 | [] | no_license | <?php
/////////////////////////////////////////////////////////////////////
/// IMPORTANT NOTE ///
/////////////////////////////////////////////////////////////////////
/*
It is not necessary to run this file alone. Simply activate this
plugin from the administration panel of your ... | true |
23fe8bec34bb0931f2b0db1b80832a9e2a3269f3 | PHP | NipunEranda/giftBay | /public_html/cart.php | UTF-8 | 6,810 | 2.609375 | 3 | [] | no_license | <?php include_once './components/header.php'; ?>
<?php
$userId = $_SESSION['id'];
$user = $_SESSION['username'];
$sqlCurrency = "SELECT * FROM country_units WHERE country = (SELECT country FROM users WHERE user_id = $userId)";
$currencyRes = $con->query($sqlCurrency);
while ($row = $currencyRes->fetch_assoc()) {
$... | true |
3854d31a65ea19bdb7c14c951674555cc962c619 | PHP | ARDivekar/Sponsorship_Management | /table_output.php | UTF-8 | 8,635 | 2.625 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: Abhishek Divekar
* Date: 05-06-2016
* Time: 11:52
*/
include_once "SponsEnums.php";
/*Resume old session:*/
if(!isset($_SESSION[SessionEnums::UserLoginID]))
session_start();
if(!$_SESSION[SessionEnums::UserLoginID])
header("Location: login.php");
include_on... | true |
7e7e82b00d11f8f396e15f9377ff743b46488ef3 | PHP | Mojility/Coaching-Patterns-PHP-Twilio | /inc/modes/OutputBuilder.php | UTF-8 | 290 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
namespace Modes;
use Twilio\ResponseWriter;
abstract class OutputBuilder {
protected $responseWriter;
public function __construct() {
$this->responseWriter = new ResponseWriter();
}
public abstract function buildOutput($group, $from, $digits = null);
}
| true |
9e105272cf5151253c5a6eb93f4a1d7b12820c52 | PHP | Cannonb4ll/LaraBug | /src/Logger/LaraBugHandler.php | UTF-8 | 881 | 2.875 | 3 | [
"MIT"
] | permissive | <?php
namespace LaraBug\Logger;
use Throwable;
use Monolog\Logger;
use LaraBug\LaraBug;
use Monolog\Handler\AbstractProcessingHandler;
class LaraBugHandler extends AbstractProcessingHandler
{
/** @var LaraBug */
protected $laraBug;
/**
* @param LaraBug $laraBug
* @param int $level
* @para... | true |
2af7ec60826a33c1386d171f2eb1475806c73825 | PHP | MantisLord/FreedomCore | /Core/Libraries/FreedomCore/System/Image.FreedomCore.php | UTF-8 | 7,556 | 2.5625 | 3 | [] | no_license | <?php
Class Image extends FreedomCore
{
private static $Image;
private static $Width;
private static $Height;
private static $ImageResized;
public static function Initialize($FileName)
{
Image::$Image = Image::openImage($FileName);
Image::$Width = imagesx(Image::$Image);
... | true |
d05e7153cf800fc6ab065f8c5e59998980fcb203 | PHP | fossabot/HedgeBot | /Core/Console/StorageAwareCommand.php | UTF-8 | 905 | 2.828125 | 3 | [
"MIT"
] | permissive | <?php
namespace HedgeBot\Core\Console;
use Symfony\Component\Console\Command\Command;
use HedgeBot\Core\Data\Provider;
/**
* Class StorageAwareCommand
* TODO: Replace this class by using the API
*
* @package HedgeBot\Core\Console
*/
abstract class StorageAwareCommand extends Command implements StorageAwareInter... | true |
c014e64f38442a5d36bd8a32289b111cdce6cb63 | PHP | yao83472709/oa | /app/Http/Requests/Users/UpdateUserRequest.php | UTF-8 | 1,424 | 2.515625 | 3 | [] | no_license | <?php
/**
* Created by sublime_text
* Author: 补中松
* Data: 2016/09/11 14:20
* 功能:客户表单验证
*/
namespace App\Http\Requests\Users;
use App\Http\Requests\Request;
class UpdateUserRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
pub... | true |
54ffbbe2ef9e74d77dda8cf4da252268b02a58b3 | PHP | teacher-chang/clothing_manage | /application/index/model/User.php | UTF-8 | 1,696 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | <?php
/**
* Created by PhpStorm.
* User: changle
* Date: 2020/3/28
* Time: 6:38 PM
*/
namespace app\index\model;
use think\Db;
use think\Model;
/**
* 移动端用户相关model
* Class User
* @package app\common\model\index
*/
class User extends Model
{
/**
* 用户登录校验
* @param $data
* @return array|fals... | true |
ace50aa604bca519c28713d40ce1445ab474ab51 | PHP | kobec/shrtener | /src/Model/User/Service/UserRequestData.php | UTF-8 | 1,567 | 2.8125 | 3 | [] | no_license | <?php
declare(strict_types=1);
namespace App\Model\User\Service;
use App\Model\User\Service\Interfaces\UserRequestDataInterface;
use Symfony\Component\HttpFoundation\RequestStack;
use Victorybiz\GeoIPLocation\GeoIPLocation;
/**
* Class UserRequestData
* @package App\Model\User\Service
*/
class UserRequestData im... | true |
a42e13adccefec87feba6a73dbfe353f79dcfecf | PHP | hecrj/sea_core | /components/routing/resolvers/MatchResolver.php | UTF-8 | 1,291 | 2.703125 | 3 | [] | no_license | <?php
namespace Sea\Components\Routing\Resolvers;
use Sea\Components\Routing\RequestInterface;
use Sea\Components\Routing\Routes\RouteCompilerInterface;
use Sea\Components\Routing\Routes\RouteCollectionInterface;
class MatchResolver extends ResolverAbstract
{
private $compiler;
public function __construct(RouteCo... | true |
2bcd5647572d8f45132548fc6a0f34ef75a5d2b2 | PHP | ulsdevteam/forena | /docformats/FrxHtmlDoc.inc | UTF-8 | 870 | 2.796875 | 3 | [] | no_license | <?php
/**
* @file FrxHtmlDoc
* Straight html document with no wrapping theme.
* @author davidmetzler
*
*/
class FrxHtmlDoc extends FrxDocument {
public function render($r, $format, $options = array()) {
$css = $this->loadCSSFiles($format);
$output = '<html><head>';
$output .= '<meta http-equiv="Conte... | true |
2ee895cdb56e1502e69bac12164b5d65a5ade32a | PHP | ilhammalik/yii2-simentor | /common/models/DafTugas.php | UTF-8 | 925 | 2.515625 | 3 | [
"BSD-3-Clause"
] | permissive | <?php
namespace common\models;
use Yii;
/**
* This is the model class for table "daf_tugas".
*
* @property integer $id_tugas
* @property string $desc
* @property string $url
* @property integer $status
*/
class DafTugas extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static functi... | true |
07e8f22f147946d1cdf5bd6ddb443fde4891f7f4 | PHP | blmowner/hms_188 | /app/DrugRoute.php | UTF-8 | 731 | 2.578125 | 3 | [
"MIT"
] | permissive | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Validator;
use Carbon\Carbon;
use App\DojoUtility;
class DrugRoute extends Model
{
protected $table = 'drug_routes';
protected $fillable = [
'route_name',
'route_label'];
protected $guarded = ['route_code'];
protected $primaryKey = ... | true |
01979479aad22dc68043b6cbff2e302a4dd632d2 | PHP | sascha-beloborodov/soap-mock-service | /storage/wsdl/1/OrderService.php | UTF-8 | 1,748 | 3.359375 | 3 | [
"MIT"
] | permissive | <?php
class OrderService
{
/**
* @var string $service
*/
protected $service = null;
/**
* @var float $qty
*/
protected $qty = null;
/**
* @var float $price
*/
protected $price = null;
/**
* @var float $total
*/
protected $total = null;
/*... | true |
b216c1bec4643417bc6b3ab3c10637225c8bfe09 | PHP | achrafelayedi/National-security-project | /modules/suiviTempsReel/suiviTempsReel.php | UTF-8 | 1,527 | 2.828125 | 3 | [] | no_license | <?php
// INCLURE DES FONCTIONS UTILES PHP-POSTGRES
require_once "../../assets/php/fonctions.php";
// /INCLURE DES FONCTIONS UTILES PHP-POSTGRES
// CAS DU REMPLISSAGE DES INPUTS SELECT
if($_POST['selection']){
$donnees = array();
$req = executerRequete("SELECT nom, prenom, imei FROM agent WHERE mobilite = true... | true |
d4a15e17abd585dc4a6ef87462f44449aecc9c1c | PHP | thomasmillergb/LoL-gears-PHP | /tests.php | UTF-8 | 105 | 2.90625 | 3 | [] | no_license | <?php
$array = array(array(5,5),array(2,2));
foreach($array as $chuck) {
echo array_sum($chuck);
}
?> | true |
4fd11a037eed1564a2015b57860c1fe10b39b50e | PHP | kashwa/LaCasaCode | /app/Http/Controllers/UserController.php | UTF-8 | 1,092 | 2.59375 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use App\Http\Requests\RegisterRequest;
use App\Http\Requests\StatusRequest;
use App\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class UserController extends Controller
{
public function signup(RegisterRequest $request)
{
$data = $reque... | true |
6ffd7f0070bb3f4426410513e952930d7d8f3b2d | PHP | rihards/pankki | /app/Http/Controllers/CategoryController.php | UTF-8 | 3,491 | 2.75 | 3 | [] | no_license | <?php
namespace App\Http\Controllers;
use App\Category;
use Illuminate\Http\Request;
use Validator;
/**
* Class CategoryController
*
* @package App\Http\Controllers
*/
class CategoryController extends Controller
{
/**
* @var Category
*/
private $category;
/**
* CategoryController cons... | true |
619c4ae07ce553e14c893a07b77a3d68cd81c9fe | PHP | surya3997/vertigo | /php/models/HackinSessionInfo.php | UTF-8 | 3,309 | 2.703125 | 3 | [] | no_license | <?php
require_once(__DIR__ . "/HackinUserMonitor.php");
/**
Session Information of the hackin user.
Will contain his entire browsing details to be used for
*/
class HackinSessionInfo {
public $emailId;
/**
phpsessionId- Session id for the whole of login15.
... | true |
b4518382727e3d18d3ca0fe239f37225ec7abeb0 | PHP | bobow92/PL10MW | /blog_leslie/src/Model/AuthorModel.php | UTF-8 | 3,321 | 2.75 | 3 | [] | no_license | <?php
namespace Model;
use PDO;
class AuthorModel extends Model
{
public function getAllAuthors(){
return $this -> findAll();
}
public function getAuthorById($id){
$requete = "SELECT DISTINCT * from article, author, commentaire where author.id_author = article.id_author and co... | true |
f3c6d710576bfdf74b5040fc95db1ae0753f8b34 | PHP | web-chefs/DB-LoJack | /tests/DBLoJackTest.php | UTF-8 | 3,400 | 2.5625 | 3 | [
"MIT"
] | permissive | <?php
namespace WebChefs\DBLoJack\Tests;
// Package
use WebChefs\LaraAppSpawn\ApplicationResolver;
use WebChefs\DBLoJack\DBLoJackServiceProvider;
use WebChefs\DBLoJack\Middleware\QueryLoggingMiddleware;
// Framework
use Illuminate\Support\Arr;
use Illuminate\Foundation\Testing\TestCase;
// Aliases
use DB;
class DB... | true |
4573db9dd6b0e5d525a821eff1e11908a6ad4115 | PHP | aymanrb/php-unstructured-text-parser | /src/TextParser.php | UTF-8 | 2,559 | 2.921875 | 3 | [
"MIT"
] | permissive | <?php
declare(strict_types = 1);
namespace aymanrb\UnstructuredTextParser;
use aymanrb\UnstructuredTextParser\Exception\InvalidParseFileException;
use aymanrb\UnstructuredTextParser\Helper\TemplatesHelper;
use Psr\Log\LoggerAwareTrait;
use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;
class TextParser
{
use ... | true |
444c3a8166212b7cd8702a4c39f1a64e310089b4 | PHP | sylvainaubert/orleans-0219-php-petanque | /src/Model/ArticleManager.php | UTF-8 | 4,084 | 2.984375 | 3 | [] | no_license | <?php
/**
* Created by PhpStorm.
* User: sylvain
* Date: 07/03/18
* Time: 18:20
* PHP version 7
*/
namespace App\Model;
/**
*
*/
class ArticleManager extends AbstractManager
{
/**
*
*/
const TABLE = 'article';
/**
* Initializes this class.
*/
public function __construct()... | true |
203ad2d7574b9925292e0ff0595a735ed1b53732 | PHP | rashmi8105/Synapse | /src/Synapse/RiskBundle/Repository/RiskGroupPersonHistoryRepository.php | UTF-8 | 5,409 | 2.65625 | 3 | [
"MIT",
"BSD-3-Clause"
] | permissive | <?php
namespace Synapse\RiskBundle\Repository;
use Doctrine\DBAL\Connection;
use Synapse\CoreBundle\Entity\Person;
use Synapse\CoreBundle\Repository\SynapseRepository;
use Synapse\RiskBundle\Entity\RiskGroupPersonHistory;
class RiskGroupPersonHistoryRepository extends SynapseRepository
{
const REPOSITORY_KEY = '... | true |
73b7c5e6f562fabb4589e28541dcd01fe7c341cd | PHP | cjpm1983/RTHtool | /src/AppBundle/Twig/ImagenExtension.php | UTF-8 | 1,862 | 2.703125 | 3 | [
"MIT",
"BSD-3-Clause"
] | permissive | <?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of GfExtension
*
* @author orlando
*/
namespace AppBundle\Twig;
use Symfony\Component\Yaml\Parser;
/**
* Informacion de las imagenes de los productos.
*/
class ImagenE... | true |
b9ae104d900a3629e32167d1284e9fdafc627bda | PHP | alfredwester/Zazu | /theme/bootstrap/regions.php | UTF-8 | 1,791 | 2.578125 | 3 | [] | no_license | <article class="row">
<div class="span12">
<header class="page-header">
<h1>Regions</h1>
</header>
<nav>
<?php
if($this->permission_handler->has_permission('create', 'region', null)) {
echo "<a href=\"".BASE_PATH."/admin/new_edit/region/\" class=\"btn btn-primary\"title=\"New region\">New Region</a... | true |
1c003ce37346db08eacf001cda8cc2933fb1e90e | PHP | vespakoen/bolt-core | /src/Bolt/Core/Config/Object/Collection/ContentCollection.php | UTF-8 | 1,075 | 2.703125 | 3 | [] | no_license | <?php
namespace Bolt\Core\Config\Object\Collection;
use Bolt\Core\App;
use Bolt\Core\Support\Collection;
use Bolt\Core\Support\Paginator;
use Bolt\Core\Config\Object\Content;
class ContentCollection extends Collection
{
/**
* Create a new collection.
*
* @param array $items
* @return void
... | true |
77e53554b2401555589513c75ee2f598c576b9ba | PHP | romain-codes/allocinetv | /model/Entity/Acteur.php | UTF-8 | 1,443 | 3.171875 | 3 | [] | no_license | <?php
namespace Model\Entity;
use App\AbstractEntity;
class Acteur extends AbstractEntity {
//! Propriétés
private $id;
private $prenom;
private $nom;
private $sexe;
private $dateNaissance;
//! Constructeur
public function __construct($data) {
parent::hydrate(... | true |
caf991bed6f0c5fd44fdd47ba1f43847f41c7698 | PHP | rvtraveller/phplint | /stdlib/it/icosaedro/web/OfflineJob.php | UTF-8 | 23,826 | 2.828125 | 3 | [] | no_license | <?php
namespace it\icosaedro\web;
require_once __DIR__ . "/../../../all.php";
/*. require_module 'pcre'; .*/
use RuntimeException;
use ErrorException;
use InvalidArgumentException;
/**
* Allows to start and control an offline working process. Mostly useful in WEB
* applications to launch background processes t... | true |
605bed9f05e9e6f549c4f5c2d50994d2991bbc7e | PHP | sinnerx/IRIS | /pim/apps/_model/site/access.php | UTF-8 | 709 | 2.796875 | 3 | [] | no_license | <?php
namespace model\site;
use session;
class Access
{
## sets of controller@action access for logged user.
public function loggedAccess()
{
$arrR = Array(
"gallery"=>"all"
);
return $arrR;
}
public function checkLoggedAccess($currController,$currMethod)
{
## if user not logged in.
$list = $t... | true |
a122a2805f7f5240404d903e29d5cc3c62bcee6d | PHP | brunogasparetto/database-query-builder | /src/Builder/Clause/Order.php | UTF-8 | 758 | 3.328125 | 3 | [
"MIT"
] | permissive | <?php
namespace QueryBuilder\Builder\Clause;
/**
* The Order Clause
*/
class Order implements IClause
{
private $orders = [];
/**
* Get the SQL
*
* @return string
*/
public function sql()
{
if (empty($this->orders)) {
return '';
}
$parts = [];... | true |
2e8207e0257fe23eaa82ba9b7146e41eff603f9c | PHP | fritexvz/grafika | /src/Grafika/ImageInterface.php | UTF-8 | 751 | 3.125 | 3 | [
"MIT"
] | permissive | <?php
namespace Grafika;
/**
* Interface ImageInterface
* @package Grafika
*/
interface ImageInterface {
/**
* @param $imageFile
*
* @return mixed
*/
public static function createFromFile( $imageFile );
/**
* @param int $width
* @param int $height
*
* @return mi... | true |
1cbb409c35c638e134f88a4dddf67945106b21fc | PHP | abdullaanasanu/inventory-control-system | /project/add-bill.php | UTF-8 | 4,638 | 2.8125 | 3 | [] | no_license | <?php
include('classes/DB.php');
include('./classes/Login.php');
if (Login::isLoggedIn()) {
echo "Logged in!<p> User ID :".LogIn::isLoggedIn();
if (LogIn::isAdmin()) {
$total = 10;
if (isset($_POST['increase'])){
if ($_POST['no_items'] <= 20) {
$total = $total + $_POST['no_items'];
... | true |
f944d3e4dd33e9c67b1641c9a9ff581136a5293d | PHP | rtumair/training2 | /bilal.ashraf/SMARTY_MVC/app/core/Db_Connection.php | UTF-8 | 702 | 3.234375 | 3 | [] | no_license | <?php
class DB
{
public static $instance = null;
private function __construct()
{
}
public static function getInstance()
{
if( static :: $instance == null) {
static :: $instance = new DB();
}
return static :: $instance;
}
public function getConnec... | true |
1cafe59327228cb166a81dc95aec4126eeb44578 | PHP | zante95/teammanpro | /works_on_queries2.php | UTF-8 | 1,293 | 2.6875 | 3 | [] | no_license | <?php include 'Source/connect.php';?>
<?php
if(isset($_POST['selected_employee_id']) && isset($_POST['selected_project_id'])) {
$projectID = $_POST['selected_project_id'];
$employeeID = $_POST['selected_employee_id'];
$tasks_query = "SELECT WORKS_ON.`WorksID`, TASK.`Description`, TASK.`StartDate`, TASK.`DueDa... | true |
f409f22938aab87ccb8537e68a47a549984f15d4 | PHP | luongdoan277/PHP_basic | /Lab04/Session7/Snippet2.php | UTF-8 | 143 | 2.71875 | 3 | [] | no_license | <html>
<head>
<title></title>
</head>
<body>
<?php
function test1(float $x){
echo 'float $x = ' .$x;
}
test1(true);
?>
</body>
</html>
| true |
1f3ac8384bba610ddd23ffc82ed6d917040c9474 | PHP | thanhpv8/IPC-Website | /UPDATE/em/ipcMaintReport.php | UTF-8 | 3,272 | 2.515625 | 3 | [] | no_license | <?php
/*
* Copy Right @ 2018
* BHD Solutions, LLC.
* Project: CO-IPC
* Filename: ipcMaintReprot.php
* Change history:
* 02-06-2019: created (Thanh)
*/
// Initialize expected inputs
$act = "";
if (isset($_POST['act'])) {
$act = $_POST['act'];
}
$uname = "";
if (isset($_POST['u... | true |
88427b446e95634abe6c88b2046c048d30b8b8f4 | PHP | DeGokkersG19/DeGokkers | /website/scripts/sendmail.php | UTF-8 | 1,188 | 2.640625 | 3 | [] | no_license | <?php
namespace website2;
if(isset($_POST)){
$Name = $_POST["name"];
$email = $_POST["email"];
$message = $_POST["message"];
}
require("emails.php");
require("messages.php");
$emailList = new emails("../text/emails.txt");
$messageList = new messages("../text... | true |
26df247154d4707fc02246c21cf943061506797d | PHP | nrwtaylor/stack-agent-thing | /agents/Json.php | UTF-8 | 14,410 | 2.734375 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | <?php
/**
* Json.php
*
* @package default
*/
namespace Nrwtaylor\StackAgentThing;
//ini_set('display_startup_errors', 1);
//ini_set('display_errors', 1);
//error_reporting(-1);
ini_set("allow_url_fopen", 1);
class Json
{
public $var = 'hello';
/**
*
* @param unknown $uuid
* @return unkno... | true |