text stringlengths 2 1.03M |
|---|
<?php
/**
* The create view file of holiday module of ZenTaoPMS.
*
* @copyright Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
* @license ZPL (http://zpl.pub/page/zplv12.html)
* @author chujilu <chujilu@cnezsoft.com>
* @package attend
* @ve... |
<?php
namespace app\modules\admin\models;
use Yii;
/**
* This is the model class for table "image".
*
* @property integer $id
* @property string $filePath
* @property integer $itemId
* @property integer $isMain
* @property string $modelName
* @property string $urlAlias
* @property string $name
*/
class Ima... |
@extends('main')
@section('brand')
<div class="site-branding">
<div class="wrapper grid-wrapper">
<div class="site-title-description">
<p class="site-title"><a href="https://foxland.fi/demo/some/" rel="home">csgo-cfg.com</a></p>
... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Nunito:... |
<?php
namespace App\Providers;
use App\Repositories\OrderRepository;
use App\Repositories\PrepaidBalanceRepository;
use App\Repositories\ProductRepository;
use Illuminate\Support\ServiceProvider;
use App\Interfaces\OrderInterface;
use App\Interfaces\PrepaidBalanceInterface;
use App\Interfaces\ProductInterface;
class... |
<?php
namespace common\utility;
use yii\helpers\Html;
use common\models\Campaign;
/**
* Created by PhpStorm.
* User: ASUS
* Date: 2017/7/20
* Time: 15:30
*/
class CampaignUtil{
/**生成campaign_info模板
* @param $deliver
* @return string
*/
public static function genCampaignInfo($deliver){
... |
<!-- Begin Page Content -->
<div class="container-fluid">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<?= base_url('admin'); ?>">Dashboard</a></li>
<li class="breadcrumb-item active" aria-current="page"><?= $judul ?></li>
</ol>
</nav>
<div class="row">
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Moving extends Model
{
use HasFactory;
protected $fillable = [
'ipa_date',
'ipa_no',
'from_project_id',
'to_project_id',
'tujuan_row_1',
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class UpdateRolesAddPermissions extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('roles', f... |
<!DOCTYPE html>
<html lang="{{ app()->getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ co... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\View;
use Illuminate\Support\Facades\Auth;
use Illuminate\Sup... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Caja extends Model
{
use SoftDeletes;
protected $dates = ['deleted_at', 'ultimo_ingreso'];
public function users(){
return $this->hasMany(User::class);
}
} |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class HomeController extends Controller
{
public function index()
{
return view('admin.index');
}
} |
<?php
namespace App\Console\Commands;
use App\Models\Conversation;
use Carbon\Carbon;
use Illuminate\Console\Command;
class MarkUnreadAsPoke extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'command:markunread';
/**
... |
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/var/www/user/plugins/archives/blueprints.yaml',
'modified' => 1528569014,
'data' => [
'name' => 'Archives',
'version' => '1.5.1',
'description' => 'The **Archives** plugin creates links for pages g... |
<?php
namespace App\Http\Controllers\Auth;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
class AdminLoginController extends Controller
{
public function __construct()
{
$this->middleware('guest:admin');
}
public function showLoginFor... |
<?php declare(strict_types = 1);
namespace PHPStan\File;
class SimpleRelativePathHelper implements RelativePathHelper
{
private string $currentWorkingDirectory;
public function __construct(string $currentWorkingDirectory)
{
$this->currentWorkingDirectory = $currentWorkingDirectory;
}
public function getRela... |
<?php
/*
[UCenter] (C)2001-2099 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: frame.php 1059 2011-03-01 07:25:09Z monkey $
*/
!defined('IN_UC') && exit('Access Denied');
class control extends adminbase {
var $members;
var $apps;
var $friends;
function __construct() {
$this->co... |
<?php
use yii\helpers\Html;
$this->title = 'Add New Feedback';
#$this->params['breadcrumbs'][] = ['label' => 'Dealfeedbacks', 'url' => ['index']];
#$this->params['breadcrumbs'][] = $this->title;
?>
<div class="dealfeedback-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', ['feed... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePasswordResetsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if(!Schema::hasTable('password_resets'))
{
... |
<div class="col-12">
@include('layouts.uso')
<div class="col-12 text-center">
<h3 class="py-3">VALIDADOR DE TEXTOS</h1>
</div>
<div class="jumbotron col-12 text-left py-3">
<h5>1. Importar archivo</h5>
<form id="formcargavalidador" enctype="multipart/form-data">
<inpu... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Environment
|--------------------------------------------------------------------------
|
| This value determines the "environment" your application is currently
| running in. This m... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| T... |
<?php
return [
[6, '0.25'],
[18, '0.75'],
[12, '0.5'],
[14, '0.6'],
[11, '"11-Nov-1918 11:11"'],
[23, '"11:59 PM"'],
[23, '"23:59:59"'],
[0, '3600'],
['#NUM!', '-3600'],
[0, '7200'],
[0, '65535'],
['#VALUE!', '"1 O\'Clock"'],
[0, 'Q15'],
[0, 'false'],
[0, 'tr... |
@extends ('admin_layout')
@section('content')
<table>
<div class="container">
<form action=" {{ route('admin.user.update', $data->id) }} " method="POST" enctype="multipart/form-data">
@csrf
<div class="form-group">
<label for="exampleInputEmail1">name:</label>
... |
<?php
class RolesTableSeeder extends Seeder {
/**
* Auto generated seed file
*
* @return void
*/
public function run()
{
\DB::table('roles')->delete();
\DB::table('roles')->insert(array (
0 =>
array (
'id' => 1,
'name' => 'Root',
'created_by' => 0,
'updated_by' => 0,
... |
<?php
namespace App\Models;
use CodeIgniter\Model;
class ObatModel extends Model
{
protected $table = 'obat';
protected $primaryKey = 'kode_obat';
protected $protectFields = true;
protected $allowedFields = ['kode_obat', 'kode_suplier', 'nama_obat', 'produsen', 'harga', 'jm... |
<?php
/*
* This file is part of NotificationPusher.
*
* (c) 2013 Cédric Dugat <cedric@dugat.me>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sly\NotificationPusher;
use Sly\NotificationPusher\Collection\PushCollecti... |
<?php
namespace App\Http\Controllers;
use App\Pasien;
use App\Events\PasienCreated;
use App\Events\StatusUpdated;
use Carbon\Carbon;
use Illuminate\Http\Request;
class PasienController extends Controller
{
public function page()
{
return view('pasien');
}
public function antrian()
{
... |
<?= $this->extend('backend/layout/home'); ?>
<?= $this->section('content'); ?>
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">Department</h1>
</div><!-- /.col -->
<div cla... |
<?php
use Nette\Application\Routers\SimpleRouter;
// Load Nette Framework
if (@!include __DIR__ . '/../vendor/autoload.php') {
die('Install Nette using `composer update`');
}
// Configure application
$configurator = new Nette\Configurator;
// Enable Nette Debugger for error visualisation & logging
$configurator->... |
<?php
namespace App\Http\Helpers;
use App\Http\Helpers\B_Log;
class B_Response
{
protected $log;
function __construct(){
$this->log = new B_Log;
}
public static function error($message="",$data=array(),$status=400){
if(!is_array($data)){
$data= json_decode($data,true);
}
$self = new self;
$sel... |
@extends('layouts.admin.master')
@section('title','Daftar Outlet')
@section('page-title','Outlet')
@section('breadcrumb','outlet')
@section('header-script')
<link rel="stylesheet" href="{{ asset('assets/plugins/sweetalert2-theme-bootstrap-4/bootstrap-4.min.css') }}">
@endsection
@php
$no = $outlets->firstItem()
@en... |
<?php
/**
* BINSHOPS
*
* @author BINSHOPS
* @copyright BINSHOPS
*
*/
require_once dirname(__FILE__) . '/../AbstractRESTController.php';
class BinshopsrestListcommentsModuleFrontController extends AbstractRESTController
{
protected function processGetRequest()
{
$idProduct = (int) Tools::getValu... |
<?php
namespace App\Model;
use Illuminate\Database\Eloquent\Model;
class SupplierGroupRole extends Model
{
protected $table = 'supplier_group_role_type';
protected $guarded=[];
} |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
ERROR - 2019-07-02 00:33:17 --> 404 Page Not Found: Robotstxt/index
ERROR - 2019-07-02 04:49:35 --> 404 Page Not Found: Assets/global
ERROR - 2019-07-02 04:50:29 --> 404 Page Not Found: Js/jquery.min.js
ERROR - 2019-07-02 04:50:29 --> 404 Page No... |
<?php
use Illuminate\Database\Seeder;
class EventTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
for($i=0; $i<10; $i++){
DB::table('event')->insert([
'name' => str_random(10)
]);
}
}
} |
<?php
defined('InSchoolAssistant') or exit('Access Invalid!');
/**
* 共有語言
*/
/**
* 商品頁
*/
$lang['goods_index_no_goods'] = '商品已下架或不存在';
$lang['goods_index_no_store'] = '您要查看的店舖不存在';
$lang['goods_index_all_store'] = '所有店舖';
$lang['goods_index_store_index'] = '店舖首頁';
$lang['goods_index_group'] = '團購活動';
$la... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ValidateCart extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that ap... |
<?php
namespace App\Repositories;
use App\Models\Alocacao;
use InfyOm\Generator\Common\BaseRepository;
/**
* Class AlocacaoRepository
* @package App\Repositories
* @version October 17, 2017, 2:56 pm UTC
*
* @method Alocacao findWithoutFail($id, $columns = ['*'])
* @method Alocacao find($id, $columns = ['*'])
... |
@extends('layouts.front.app')
@section('content')
<!-- navbar ends -->
<!-- home section starts -->
<section id="home">
<div class="container z10">
<div class="row">
<div class="col-md-12 text-center">
</div>
</div>
<div class="ro... |
@extends('layouts.admin')
@section('title', 'Admin Rezervation List')
@section('content')
<div class="content-wrapper">
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h3>... |
<?php
namespace Google\AdsApi\AdWords\v201609\cm;
/**
* This file was generated from WSDL. DO NOT EDIT.
*/
class CampaignSharedSetOperation extends \Google\AdsApi\AdWords\v201609\cm\Operation
{
/**
* @var \Google\AdsApi\AdWords\v201609\cm\CampaignSharedSet $operand
*/
protected $operand = null;
... |
<?php
/*------------------------------------------------------------------------
Solidres - Hotel booking plugin for WordPress
------------------------------------------------------------------------
@Author Solidres Team
@Website http://www.solidres.com
@Copyright Copyright (C) 2013 - 2020 Solidres. All... |
<?php
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Checkout\Controller;
use Magento\Customer\Api\AccountManagementInterface;
use Magento\Customer\Api\CustomerRepositoryInterface;
use Magento\Framework\Exception\NotFoundException;
use Mage... |
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Demo: Array Searching</title>
<link rel="stylesheet" href="style.css" media="screen">
<link rel="stylesheet" href="../../../resources/style/demo.css" media="screen">
</head>
<body>
<h1>Demo: Array Searching</h1>
<p>The following list r... |
<?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Carbon;
class DetailEventSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$data = [
['UGMTalks merupakan event yang diadakan oleh pihak UGM. UGMtalks mengha... |
@extends('layouts.boutique')
@extends('boutique.sections')
@section('content')
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">Edit Product</h3>
</div>
<form action="{{url('editproduct/'.$produc... |
@extends('admin')
@section('content')
<a class="btn btn-default" href="/admin/category/{{ $category->id }}/edit">Edit Category</a>
<h1> Category </h1>
<h4>Name</h4>
<p>{{ $category->name }} </p>
@endsection |
<?php
define('EMA', APPPATH.'/Views');
echo view('parts/header');
if ($page != "login" && $page != "register") {
# code...
echo view('parts/sidebar');
}
require_once EMA."/gen/".$page.".php";
echo view('parts/footer'); |
<?php
use Gaurang\GstCalculator\Calculator;
it('can calculate gst', function () {
$gst = Calculator::fromCost(1000, 9)->getGst();
$this->assertEquals($gst, 90);
});
it('can get total amount including gst', function () {
$gst = Calculator::fromCost(1000, 9)->getTotalWithGst();
$this->assertEquals($gst... |
<?php echo file_get_contents(DOCS_RESOURCES."/notifications/telegram-intro.html"); ?>
<h4>Set Up in the Deployment Wizard</h4>
<p>Follow these steps to set up Telegram notifications in the deployment wizard:</p>
<ol>
<li>On the Deploy Live page, enable at least one of the notification types.</li>
<p>The follo... |
<?php
session_start();
?>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------... |
<?php
/*
* This file is part of the Marlon Ogone package.
*
* (c) Marlon BVBA <info@marlon.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Ogone\ShaComposer;
use Ogone\ParameterFilter\GeneralParameterFilter;
use Og... |
<?php
namespace App;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
p... |
@extends('layouts.admin')
@section('title', trans('general.title.edit', ['type' => trans_choice('general.reports', 1)]))
@section('content')
<div class="card">
{!! Form::model($report, [
'id' => 'report',
'method' => 'PATCH',
'route' => ['reports.update', $report->id],
... |
<?php declare(strict_types=1);
/*.
require_module 'standard';
.*/
/**
* @OA\Get(
* tags={"volunteers"},
* path="/member/{id}/volunteer/hours/summary",
* summary="Gets member volunteer summary",
* @OA\Parameter(
* description="Id of the member.",
* in="path",
* ... |
<?php
/**
* Functions which enhance the theme by hooking into WordPress
*
* @package WordPress
* @subpackage Twenty_Nineteen
* @since Twenty Nineteen 1.0
*/
/**
* Adds custom classes to the array of body classes.
*
* @param array $classes Classes for the body element.
* @return array
*/
function twentyninet... |
<?php declare(strict_types=1);
namespace Shopware\Core\Framework\MessageQueue\DeadMessage;
use Shopware\Core\Framework\DataAbstractionLayer\Entity;
use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
use Shopware\Core\Framework\MessageQueue\ScheduledTask\ScheduledTaskEntity;
class DeadMessageEntity exten... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\User;
use App\Models\Cart;
use App\Models\Paket;
class UserController extends Controller
{
public function go(int $id) {
$user = User::find($id);
if ($user->orders == NULL) {
$orders = NULL;
} el... |
<?php
namespace App\Http\Controllers\Product;
use App\Http\Controllers\ApiController;
use App\Product;
use App\Category;
use Illuminate\Http\Request;
class ProductCategoryController extends ApiController
{
public function __construct(){
$this->middleware('auth:api')->only(['index' ]);
}
public f... |
<?php // Шаблон одной записи на стене // ?>
<?php
$count = 0;
if (empty($max_entries)){ $max_entries = false; }
if (empty($page)){ $page = false; }
?>
<?php foreach($entries as $entry){ ?>
<?php
$count++;
$is_can_add = !empty($permissions['reply']) && $entry['parent_id'] == 0;
$is_can_edit ... |
<?php
return [
'fullname'=>'Full Name',
'master'=>'Master',
'role'=>'Role',
'user'=>'User',
'add'=>'Add',
'edit'=>'Edit',
'add_new'=>'Add New',
'role_name'=>'Role name',
'permission'=>'Permission',
];
?> |
<div class="row mx-auto p-4 mt-5" style="background-color: #ddd;">
<!-- Adding Comment -->
<h2>{{$post->countComments()}} Komentarzy</h2>
<div class="row mx-auto w-100 mb-3 px-3 text-center">
@guest
<h4 class="mx-auto"><a href="{{ route('login') }}">Zaloguj się</a> aby dodawać komentarze... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Password Reminder Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are... |
@extends('layouts.master')
@section('custom_css')
@endsection
@section('title')
TAMBAH TIPE KAMAR
@endsection
@section('content')
<div class="row">
<div class="col-lg-12">
<!-- Form Elements -->
<div class="panel panel-default">
<div class="panel-heading">
<!-- -->
... |
@extends('layouts.default')
@section('content')
<div class="row">
<div class="col-md-6 col-md-offset-3">
<h1>Results:</h1>
@include('layouts.partials.errors')
Thank you {{ $email }} The result of the sorting is:
@forelse($results as $key => $value)
<p>{{{ $value->id . "... |
<?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Route;
class RouteServiceProvider extends ServiceProvider
{
/**
* This namespace is applied to your controller routes.
*
* In addition, it is set as th... |
<?php
/*
* (c) Darko Poposki <darko.poposki@sitewards.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Poposki\ModCom\Composer;
use Poposki\ModCom\Console\Config;
class FileMagentoBuilder
{
/**
* @param Con... |
<?php
// Array with names
$a[] = "Anna";
$a[] = "Brittany";
$a[] = "Cinderella";
$a[] = "Diana";
$a[] = "Eva";
$a[] = "Fiona";
$a[] = "Gunda";
$a[] = "Hege";
$a[] = "Inga";
$a[] = "Johanna";
$a[] = "Kitty";
$a[] = "Linda";
$a[] = "Nina";
$a[] = "Ophelia";
$a[] = "Petunia";
$a[] = "Amanda";
$a[] = "Raquel";
$a[] = "Cin... |
<?php
namespace RBDTools;
interface YamlHandlerInterface
{
public function read($filename);
public function write($data, $filename);
} |
<?php
namespace sisOTB\Providers;
use Illuminate\Contracts\Auth\Access\Gate as GateContract;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for the application.
*
* @var array
*/... |
<?php
declare(strict_types=1);
/*
* This file is part of the CFONB Parser package.
*
* (c) SILARHI <dev@silarhi.fr>
* (c) @fezfez <demonchaux.stephane@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Siarhi\Cfonb\Tests\Par... |
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyrig... |
<?php namespace Illuminate\Foundation\Http;
use Illuminate\Container\Container;
use Illuminate\Contracts\Validation\ValidatesWhenResolved;
use Illuminate\Http\Exception\HttpResponseException;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Routing\Redirector;... |
<?php
namespace Lonquan\TaobaoSDK\Top\Request;
use Lonquan\TaobaoSDK\Top\RequestCheckUtil;
use Lonquan\TaobaoSDK\Top\RequestInterface;
/**
* TOP API: tmall.product.schema.match request
*
* @author auto create
* @since 1.0, 2016.04.13
*/
class TmallProductSchemaMatchRequest implements RequestInterface
{
/**
... |
<?php namespace App\Http\Controllers;
use DB;
use App;
class QrController extends Controller {
public function index($code)
{
$qrcodes=DB::table('qrcode')->where('code',$code)->get();
$aresult=array('msg'=>'','report'=>0);
if(isset($qrcodes[0])){
if($qrcodes[0]->last_checked=='0000-00-00 00:00:00'){
$... |
<?php
namespace Mangati\Portainer;
use Mangati\Api\Client as BaseClient;
use Mangati\Api\Path;
/**
* Portainer Client
* @author Rogerio Lino <rogeriolino@gmail.com>
*/
class Client
{
protected $client;
public function __construct(string $endpoint)
{
$this->client = new BaseClient($endpoint);
... |
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use App\User;
use Illuminate\Foundation\Auth\RegistersUsers;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
class RegisterController extends Controller
{
/*
... |
<?php
$current_year = date("Y");
$info = new Info();
$fetch_info = $info->get_details_for($tin_num);
$emp_info = $fetch_info->fetch_array();
?>
<table class="table table-bordered bg-white table-official table-striped">
<thead>
<tr>
<th colspan="4" class="text-center">Personal Information</th>
</tr>... |
<?php declare(strict_types=1);
/**
* ___ _ _
* | _ \__ _| |_ __ _| |__ __ _ ___ ___
* | _/ _` | _/ _` | '_ \/ _` (_-</ -_)
* |_| \__,_|\__\__,_|_.__/\__,_/__/\___|
*
* This file is part of Kristuff\Patabase.
* (c) Kristuff <kristuff@kristuff.fr>
*
* For the full copyright and license informa... |
<?php
require_once __DIR__.'/../vendor/autoload.php';
try {
(new Dotenv\Dotenv(__DIR__.'/../'))->load();
} catch (Dotenv\Exception\InvalidPathException $e) {
//
}
/*
|--------------------------------------------------------------------------
| Create The Application
|-----------------------------------------... |
<?php
// Please encrypt me
require_once("include/functions.php");
dbconn();
global $BASEURL, $CURUSER, $language, $btit_settings, $TABLE_PREFIX;
if(!isset($CURUSER) || !is_array($CURUSER))
{
session_name("BluRG");
session_start();
$CURUSER=$_SESSION["CURUSER"];
}
$THIS_BASEPATH=dirname(__FILE__);
if($bt... |
<?php
use PHPUnit\Framework\TestCase;
class NotVoidTestCase extends TestCase
{
} |
@extends('layouts.default')
@section('content')
<div class="page-title">
<h4>Account Setting</h4>
</div>
<div class="row">
<div class="col-lg-12 margin-tb">
<div class="pull-right">
<a class="btn btn-info" href="{{ route('cities.index') }}"> <i class="fa fa-arrow-circle-lef... |
@extends('user.layouts')
@section('css')
@endsection
@section('content')
<!-- BEGIN CONTENT BODY -->
<div class="page-content" style="padding-top:0;">
<!-- BEGIN PAGE BASE CONTENT -->
<div class="portlet light bordered">
<div class="portlet-body">
<div class="alert al... |
<?php
namespace Application\Migrations;
use Doctrine\DBAL\Migrations\AbstractMigration;
use Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your needs!
*/
class Version20210816133550 extends AbstractMigration
{
/**
* @param Schema $schema
*/
public function up(Schema... |
<?php
namespace App\Providers;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
use Illuminate\Pagination\Paginator;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{... |
<?php
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2015 Spomky-Labs
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace Jose;
use Jose\Object\JWEInterface;
use Jose\Object\JWKSetInterface;
/**
* Decrypter Interface.
*/... |
<?php if(!defined('BASEPATH')) exit('No direct script allowed');
class Song extends CI_Model{
function get($id) {
$this->db->select('title, author, duration, createdAt, path, deleted');
$this->db->where('id', $id);
$query = $this->db->get('m_song', $id);
return $query->row_array();
}
function getByPath($p... |
<?php
namespace Oino\Aggregates;
use \Oino\ValueObjects\VOExistTable;
use \Oino\ValueObjects\VOExistColumn;
use \Oino\Helpers\InstanceHelper;
class AExistTable
{
private $table;
/** @var VOExistColumn[] */
private $columns;
public function __construct(VOExistTable $table, array $columns)
{
... |
<?php
/**
* This file is a part of the bluemvc-forms package.
*
* Read more at https://bluemvc.com/
*/
declare(strict_types=1);
namespace BlueMvc\Forms;
use BlueMvc\Forms\Base\AbstractTextInputField;
use BlueMvc\Forms\Interfaces\TextFieldInterface;
/**
* Class representing a text field.
*
* @since 1.0.0
*/... |
<?php
return [
'slides' => 'Lista slajdów',
'sliders' => 'Slider',
'title' => 'Slajder',
'system_name' => 'Nazwa systemowa',
'slider' => 'Zarządzanie slajderem',
'create slider' => 'Tworzenie slajdera',
'edit slider' => 'Edycja slajdera',
'delete slider' => 'Usuwanie s... |
<?php
/**
* URL text field.
*
* @package WPForms
* @author WPForms
* @since 1.0.0
* @license GPL-2.0+
* @copyright Copyright (c) 2016, WPForms LLC
*/
class WPForms_Field_URL extends WPForms_Field {
/**
* Primary class constructor.
*
* @since 1.0.0
*/
public function init() {
// De... |
@extends('seller.common.layout')
@section('pagetitle','Dashboard')
@section('breadCrumbs')
<li>Merchant</li>
<li>Shop Management</li>
@stop
@section('top-nav')
@stop
@section('layoutContent')
<div class="row" id="store-list">
<div class="col-sm-12">
<!--<div class="user_heading">
<div class="row">
<div c... |
<?php
namespace Blogger\BlogBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Blogger\BlogBundle\Entity\Comment;
use Blogger\BlogBundle\Form\CommentType;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Validator\Constraints\DateTime;
class CommentController extends ... |
<?php
namespace Mbright\Validation\Rule\Sanitize;
class Field implements SanitizeRuleInterface
{
/** @var string */
protected $otherField;
/**
* @param string $other_field The name of the other subject field.
*/
public function __construct(string $otherField)
{
$this->otherField... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Register</div>
<div class="panel-body">
... |
<?php
namespace AppBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class BallotType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $options
*/
... |
<?php
class ControllerApiCustomer extends Controller {
public function index() {
$this->load->language('api/customer');
// Delete past customer in case there is an error
unset($this->session->data['customer']);
$json = array();
if (!isset($this->session->data['api_id'])) {
$json['error']['warning'] = $... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.