text stringlengths 2 1.03M |
|---|
@extends('layouts.admin')
@section('content')
<div class="row">
<div class="col offset-m2 m8 s12">
@include('partials.error')
<div class="card">
<div class="card-content">
<div class="card-title center-align">
Add Prizes For {{ $event->title }}
... |
<?
$m_config_connect="設定設備的網際網路(Internet)連線方式";
$m_internet_connection="網際網路連線方式選擇";
$m_static_ip="固定IP位址";
$m_dhcp="動態IP位址(DHCP)";
$m_pppoe="PPPoE";
$m_ip_addr="IP 位址";
$m_sub_mask="子網路遮罩";
$m_gateway="通訊閘位址";
$m_primary_dns="主要DNS伺服器";
$m_second_dns="次要DNS伺服器";
$m_user_name="PPPoE連線使用者名稱";
$m_passwd="PPPoE連線密碼";
$m_c... |
<!DOCTYPE html>
<html>
<head>
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="{{ asset('css/materialize.min.css') }}" media="screen,projection" />
<link t... |
<?php
namespace App\Models;
use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* Class test
* @package App\Models
* @version September 25, 2020, 6:43 pm UTC
*
* @property string $test
*/
class test extends Model
{
use SoftDeletes;
public $table = 'tests';
protected $dat... |
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use T... |
@php
$helper=\App\Helpers\AppHelper::instance();
$symbol='';
if(isset($tenderviewlist->symbol) && !empty($tenderviewlist->symbol) )
{
$symbol=$tenderviewlist->symbol;
}
else {
$symbol=\App\Helpers\AppGlobal::$Default_Currency_Symbol;
}
@endphp
@extends('layouts.app_layout', ['layout' => 'left_side_menu_compac... |
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\View;
use Illuminate\Http\Request;
use App\Models\Blog;
use App\Model\Category;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
... |
@extends('layouts.app', ['titlePage' => 'User', 'activePage' => 'user-admin'])
@section('breadcrumb')
<nav aria-label="breadcrumb">
<ol class="breadcrumb bg-transparent mb-0 pb-0 pt-1 px-0 me-sm-6 me-5">
<li class="breadcrumb-item text-sm"><a class="opacity-5 text-dark" href="#">Pages</a></li>
<li cl... |
<?php
use Eliepse\Argile\Core\Application;
require __DIR__ . '/../vendor/autoload.php';
$app = Application::init(dirname(__DIR__));
$app->boot(); |
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Planetschematicstypemap
*
* @ORM\Table(name="planetSchematicsTypeMap", indexes={@ORM\Index(name="schematicID", columns={"schematicID"}), @ORM\Index(name="typeID", columns={"typeID"})})
* @ORM\Entity
*/
class Planetschematicstypemap
{
/... |
<nav class="navbar navbar-default navbar-static-top m-b-0">
<div class="navbar-header">
<div class="top-left-part">
<!-- Logo -->
<a class="logo" href="#">
<!-- Logo icon image, you can use font-icon also -->
<b>
<!--This is dark lo... |
<?php
// Check for empty fields
if(empty($_POST['name']) ||
empty($_POST['email']) ||
empty($_POST['phone']) ||
empty($_POST['message']) ||
!filter_var($_POST['email'],FILTER_VALIDATE_EMAIL))
{
echo "No arguments Provided!";
return false;
}
$name = $_POST['name'];
$email_address = $_POST['e... |
<?php
namespace App\Projects\DgmeStudents\Features\Report;
class ModuleList extends ModuleReportBuilder
{
} |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="card">
<div class="card-header">
Edit book
</div>
<div class="card-body">
@if ($errors->any())
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\Feature;
/**
* @property-read int $id
* @property-read string $token
* @property-read int $selected_feature_id
* @property-read Fe... |
<?php
/**
* Class YourFieldBehavior
*/
class MemberRoleBehavior extends EntityReference_BehaviorHandler_Abstract
{
/**
* Alter the schema to add our field
*
* @param $schema
* @param $field
*/
public function schema_alter(&$schema, $field) {
$schema['columns']['clubmember_memb... |
<?php
declare(strict_types=1);
namespace DatingLibre\AppBundle\Entity;
use DateTime;
use DateTimeInterface;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\JoinColumn;
use Doctrine\ORM\Mapping\OneToOne;
/**
* @ORM\Table(name="datinglibre.profiles")
* @ORM\Entity(repositoryClass="DatingLibre\AppBundle\Re... |
<?php
/**
* This file is authored by PrestaShop SA and Contributors <contact@prestashop.com>
*
* It is distributed under MIT license.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PrestaShop\TranslationToolsBundle\Tran... |
@if(Session::has('message'))
<div class="alert alert-success flash-message">
{{ Session::get('message') }}
</div>
@endif |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateFlightsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('flights', funct... |
<?php
class Webservice_App_Profile extends Webservice_App
{
/**
* Get User's information
*/
public function get_profiles($params)
{
$this->frequency(30, 10);
$this->check_params($params, 'uid', 'token');
$this->token_auth($params['uid'], $params['token']);
... |
<?php
/**
*
*/
class User extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->model('User_model');
}
public function home()
{
$data_user = $this->User_model->select();
$data['user']=$data_user;
if( ! $this->session->userdata('authenticated'))
... |
<?php
use yii\bootstrap\ActiveForm;
use yii\helpers\Html;
use yii\helpers\Url;
?>
<?php $form = ActiveForm::begin([
'fieldConfig'=>[
'template'=>'{label}{input}{error}',
],
]); ?>
<div class="form-group">
<h2 class="admin_tit">添加商品</h2>
<h3 class="admin_tit" style="color: #ff0000;"><?php if (Yii::$ap... |
<div class="col-md-10 konten">
<article class="shadow-sm p-3 bg-white rounded">
<p>
<h2>Tentang Kami</h2>
<div class="text-center">
<img src="http://localhost:8080/img/pp.jpg" alt="..." class="img-thumbnail" width="20%">
</div>
<br>
... |
@extends('layouts.master')
@section('title', 'Acc Presensi')
@section('container')
<div class="main-content">
<section class="section">
<div class="section-header">
<h1>Acc Presensi</h1>
</div>
<div class="section-body">
<a href="/presensi" class="btn btn-sm p-2 bt... |
<?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInita86063deaf671f15ede8ae84a0ec5650::getLoader(); |
<?php
namespace Inventory\Form;
use Laminas\Form\Form;
use Laminas\Form\Element;
use Laminas\Form\Element\Text;
use Laminas\Form\Element\Select;
use Laminas\Form\Element\Hidden;
use Laminas\Form\Element\File;
class ProductForm extends Form {
public function __construct($name = 'product'){
parent::__constr... |
@extends('layouts.layout')
@section('title')
<title>Shops Details | Foodzone</title>
@endsection
@section('content')
@if($shop)
<div class="mt-2 flex justify-center">
<div class="bg-white p-1 rounded shadow">
<img class="w-12 h-12 md:h-24 md:w-24" src="/storage/{{$shop->image}}" alt="Image"/>
</div> ... |
<?php
namespace App\Http\Controllers\Backend;
use App\Http\Controllers\Controller;
use App\Models\Access\Permission\Permission;
use App\Models\Access\Role\Role;
use App\Models\Access\User\User;
use App\Models\Settings\Setting;
use Illuminate\Http\Request;
/**
* Class CodeController.
*/
class CodeController extends... |
<?php
namespace PhpOffice\PhpSpreadsheet\Calculation\MathTrig;
use Exception;
class Sin
{
/**
* SIN.
*
* Returns the result of builtin function sin after validating args.
*
* @param mixed $angle Should be numeric
*
* @return float|string Rounded number
*/
public static... |
@section('title', '专家修改')
@extends('common.common')
@section("content")
<div style="width: 100%; text-align: center;margin-top: 10px; height: 20px;">
<strong>个人信息</strong>
</div>
<form class="layui-form" action="/admin/judges/update" method="post">
<div class="layui-form-item">
... |
<?php
use PHPUnit\Framework\TestCase;
require_once 'solutions/php/integer-length.php';
class IntegerLengthTest extends TestCase
{
public function test_IntegerLength()
{
$this->assertEquals(1, IntegerLength(1));
$this->assertEquals(2, IntegerLength(22));
$this->assertEquals(3, IntegerLe... |
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>MEU CRUD </title>
<!-- Scripts -->
... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Register') }}</div>
<div class="card-body">
<form method="P... |
<?php
/**
* OcrPhotoTextElement
*
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* ocrapi
*
* The powerful Optical Character Recognition (OCR) APIs let you convert scanned images of pages into... |
<?php
/**
* This file is part of the Nette Framework (https://nette.org)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
declare (strict_types=1);
namespace RectorPrefix20211201\Nette\Neon\Node;
use RectorPrefix20211201\Nette\Neon;
use RectorPrefix20211201\Nette\Neon\Node;
/** @internal */
final class... |
<!-- Footer section -->
<footer class="footer-section">
<h2>2017 All rights reserved. Designed by <a href="https://colorlib.com" target="_blank">Colorlib</a></h2>
</footer>
<!-- Footer section end -->
<!--====== Javascripts & Jquery ======-->
<script src="/js/app.js"></script>
{{-- <script src="js/jqu... |
<?php
/**
* Laravel PostcodeNL API
*
* @author Danny van Wijk <info@vwmedia.nl>
* @copyright 2014 Danny van Wijk
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link https://github.com/dannyvw/laravel-postcodenl
*/
namespace Dannyvw\LaravelPostcodenl\Facades;
use Illuminate\Supp... |
<?php
/**
* Implementation of UpdateDocument controller
*
* @category DMS
* @package SeedDMS
* @license GPL 2
* @version @version@
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2010-2013 Uwe Steinmann
* @version Release: @package_version@
*/
/**
* Class which does ... |
<?php
namespace Illuminate\Database\Eloquent;
use Closure;
use DateTime;
use Exception;
use ArrayAccess;
use Carbon\Carbon;
use LogicException;
use JsonSerializable;
use DateTimeInterface;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use InvalidArgumentException;
use Illuminate\Contracts\Support\Jsonable;
... |
<?php
/**
* JournalEntry class for QuickBooks
*
* @author Keith Palmer Jr. <keith@ConsoliBYTE.com>
* @license LICENSE.txt
*
* @package QuickBooks
* @subpackage Object
*/
/**
* QuickBooks object base class
*/
QuickBooks_Loader::load('/QuickBooks/QBXML/Object.php');
/**
*
*/
QuickBooks_Loader::load('/Q... |
<?php
declare (strict_types=1);
namespace PHPStan\Type\PHPUnit\Assert;
use PhpParser\Node\Expr\StaticCall;
use PHPStan\Analyser\Scope;
use PHPStan\Analyser\SpecifiedTypes;
use PHPStan\Analyser\TypeSpecifier;
use PHPStan\Analyser\TypeSpecifierAwareExtension;
use PHPStan\Analyser\TypeSpecifierContext;
use PHPStan\Refle... |
<?php
namespace Webkul\UVDesk\CoreFrameworkBundle\EventListener;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Webkul\UVDesk\CoreFrameworkBundle\SwiftMailer\Event\ConfigurationRemovedEvent;
use Webkul\UVDesk\CoreFrameworkBundle\SwiftMailer\Event\ConfigurationUpdatedEvent;
class Swiftmailer
{
... |
<?php
include("db_config.php");
function Redirect($url, $permanent = true){
header('Location: ' . $url, true, $permanent ? 301 : 302);
exit();
}
$short = $_REQUEST['short'];
$db = mysql_connect($host, $username, $password);
$query = mysql_query("SELECT * FROM url_redirects WHERE short = '".mysql_real_... |
<?php namespace Expressuals\StudentInfo\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class AddNewFields extends Migration
{
public function up()
{
Schema::table('users', function($table)
{
$table->string('student_id')->nullable();
$table->string('g... |
<link rel="stylesheet" href="{{ url('css') }}/nav.css"/>
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#bs-example-navb... |
<?php
declare(strict_types = 1);
namespace App\Application\Actions\Auth;
use App\Infrastructure\Services\AuthService;
use Psr\Http\Message\ResponseInterface as Response;
/**
* Get minimal information of an account
*/
class PublicInfoAction extends AuthAction
{
/**
* {@inheritdoc}
*/
protected fu... |
<?php
$ids=$_GET["ids"];
$idh=$_GET["idh"];
require_once('inspection.php');
$pdf = new inspection('P', 'mm', 'A4', true, 'UTF-8', false);
$pdf->SetCreator(PDF_CREATOR);
$pdf->SetAuthor('tiba redha');
$pdf->SetTitle('DECISION');
$pdf->SetSubject('PROTOCOLE');
$pdf->SetFillColor(230); //fond gris il faut ajouter au... |
<?php
return [
'cwik', # 0x00
'cwit', # 0x01
'cwip', # 0x02
'cwih', # 0x03
'cyu', # 0x04
'cyug', # 0x05
'cyugg', # 0x06
'cyugs', # 0x07
'cyun', # 0x08
'cyunj', # 0x09
'cyunh', # 0x0a
'cyud', # 0x0b
'cyul', # 0x0c
'cyulg', ... |
<?php
namespace macropage\ebaysdk\trading\EnumType;
/**
* This class stands for ReturnsAcceptedOptionsCodeType EnumType
* Meta informations extracted from the WSDL
* - documentation: Specified whether returns are accepted.
* @subpackage Enumerations
*/
class ReturnsAcceptedOptionsCodeType
{
/**
* Consta... |
<?php
class Picks_model extends CI_Model {
private $gameTypeList = array(
'ncaa_m'=> 'NCAA M',
'nba'=> 'NBA',
'football'=> 'NFL',
'ncaa_f'=> 'NCAA F',
'soccer'=> 'SOC',
'mlb'=> 'MLB'
);
private $gameJsonTpl = array(
'id',
'vrn',
'dat... |
<?php
/**
* baserCMS : Based Website Development Project <https://basercms.net>
* Copyright (c) baserCMS Users Community <https://basercms.net/community/>
*
* @copyright Copyright (c) baserCMS Users Community
* @link https://basercms.net baserCMS Project
* @package Baser.Lib
* @since ... |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace ... |
<?php
/**
* XPHP Configure File
*
* You can add your providers here.
*
*/
return function ($App) {
$App->boot('\X\Middleware\Filter');
$App->boot('\Avatar\Middleware\Handle');
}; |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>My Blog</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunito:... |
<?php
declare(strict_types=1);
namespace Ssch\TYPO3Rector\Tests\Rector\v9\v0\RefactorBackendUtilityGetPagesTSconfig;
use Iterator;
use Rector\Testing\PHPUnit\AbstractCommunityRectorTestCase;
use Symplify\SmartFileSystem\SmartFileInfo;
final class RefactorBackendUtilityGetPagesTSconfigRectorTest extends AbstractComm... |
<!DOCTYPE html>
<html lang="en">
<!-- Mirrored from thememinister.com/crm/register.html by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 02 Jun 2019 11:10:02 GMT -->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=devi... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
<div class="card">
<div class="card-header">{{ __('Donors') }}</div>
<div class="card-body">
<div class="cont... |
<?php
namespace DoctrineProxies\__CG__\Siacme\Dominio\Expedientes;
/**
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
*/
class MordidaBordeBorde extends \Siacme\Dominio\Expedientes\MordidaBordeBorde implements \Doctrine\ORM\Proxy\Proxy
{
/**
* @var \Closure the callback responsible ... |
<?php
if( function_exists('acf_register_block_type') ):
acf_register_block_type(array(
'name' => 'social-share',
'title' => 'Block - Social Share',
'description' => '',
'category' => 'boilerlane',
'keywords' => array(
0 => 'social-share',
),
... |
<!doctype>
<html lang='ind'>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="assets/css/styles-menu-admin.css">
<link rel="stylesheet" href="assets/css/bootstrap.min.css">... |
<div>
<div class="ClctMnRtTp">
<div class="row cstUsrDashboard">
<div class="col-xl-12">
<div class="ClctMnRtTpRt">
<div class="search">
<span class="SrchHvr">
<form action="">
<input type="... |
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->call(LaratrustSeeder::class);
$this->call(UserSeeder::class);
$this->call(FormComponentSeeder::c... |
<?php
/*
* NodCMS
*
* Copyright (c) 2015-2021.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pub... |
<?php
namespace App\Http\Controllers\Flipbook;
use App\Http\Controllers\Controller;
use App\Models\Flipbook\CategoryFlipbook;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
class CategoryController extends Controller
{
public function index()
{
$category = CategoryFlipbook::or... |
<?php
$this->load->view ( 'includes/defaultHeader' );
?>
<link rel="stylesheet"
href="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<div id="pageId" style="dis... |
<section class="gallery">
<div class="container">
<h2>View the gallery</h2>
<div class="gallery_slider">
<div class="gallery_slider_inner">
<div class="gallery_slide"></div>
<div class="gallery_slide"></div>
<div class="gallery_slide"></d... |
@extends('backend.layout.main')
@section('title', 'Konfirmasi')
@section('judul', 'List Data Konfirmasi')
@section('content')
<div class="w-full overflow-hidden rounded-lg shadow-xs">
<div class="w-full overflow-x-auto">
<table class="w-full whitespace-no-wrap">
<thead>
<tr
... |
<section id="slider"><!--slider-->
<div class="container">
<div class="row">
<div class="col-sm-12">
<div id="slider-carousel" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#slider-carous... |
<?php
// Skrip berikut ini adalah skrip yang bertugas untuk meng-export data tadi ke excell
header("Content-type: application/vnd-ms-excel");
header("Content-Disposition: attachment; filename=Firepump.xls");
?>
<h3>Data Firepump</h3>
<table border="1" cellpadding="5">
<h3>Bulan : <?php echo DATE('M-Y')?></h3>
... |
<?php
/*
+---------------------------------------------------------------------------+
| Revive Adserver |
| http://www.revive-adserver.com |
| ... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Photo;
class FotoController extends Controller
{
public function index()
{
$items = Photo::latest()->paginate(40);
return view('pages.foto', [
'items' => $items
]);
}
} |
@extends('layouts.standard')
@section('title')
{{ config('app.name') . ' - ' . $title }}
@endsection
@section('header-title', $title)
@section('main-content')
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#idclient').on('change',function() {
var idclient = jQ... |
<?php
namespace Zrcms\CoreSite\Model;
use Zrcms\Core\Exception\PropertyMissing;
use Zrcms\Core\Model\ContentAbstract;
use Zrcms\CoreSite\Fields\FieldsSite;
use Reliv\Json\Json;
use Reliv\ArrayProperties\Property;
/**
* @author James Jervis - https://github.com/jerv13
*/
abstract class SiteAbstract extends ContentA... |
<?php
namespace App\Http\Livewire;
use App\Models\Product;
use Illuminate\Database\Eloquent\Builder;
use Livewire\Component;
use Livewire\WithPagination;
class CategoryFilter extends Component
{
use WithPagination;
public $category, $subcategoria, $marca;
public $view = "grid";
public function rende... |
<?php
/**
* Created by PhpStorm.
* User: August.Fang
* Date: 2017/11/28
* Time: 9:59
*/
namespace app\lib\exception;
use think\Exception;
class BaseException extends Exception
{
public $code = 400;
public $msg = 'invalid parameters!';
public $errorCode = 99999;
public function __construct($par... |
<?php
declare(strict_types=1);
use function Eloquent\Phony\Kahlan\stub;
use function Eloquent\Phony\Kahlan\mock;
use Psr\Http\Server\MiddlewareInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Quanta\Http\LazyMiddleware;
... |
<?php
/**
* MIT License
*
* Copyright (c) 2018 PHP DLX
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, m... |
<?php
/**
* Sample implementation of the Custom Header feature
*
* You can add an optional custom header image to header.php like so ...
*
<?php the_header_image_tag(); ?>
*
* @link https://developer.wordpress.org/themes/functionality/custom-headers/
*
* @package Foodie_World
*/
/**
* Sets up the WordPress ... |
<?php
/**
* LICENSE: ##LICENSE##
*
* @package Com_Topics
* @subpackage Schema_Migration
*/
/**
* Schema Migration
*
* @package Com_Topics
* @subpackage Schema_Migration
*/
class ComTopicsSchemaMigration5 extends ComMigratorMigrationVersion
{
/**
* Called when migrating up
*/
public func... |
<?php
namespace Grafika\Gd\Filter;
use Grafika\FilterInterface;
use Grafika\Gd\Image;
/**
* Sharpen an image.
*/
class Sharpen implements FilterInterface
{
/**
* @var int
*/
protected $amount;
/**
* Sharpen constructor.
*
* @param int $amount Amount of sharpening from >= 1 to <... |
<?php
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Newsletter\Block\Adminhtml;
/**
* @magentoAppArea adminhtml
*/
class SubscriberTest extends \PHPUnit_Framework_TestCase
{
public function testGetShowQueueAdd()
{
/** @var $layout ... |
<?php
require_once dirname(dirname(__DIR__)) . '/vendor/autoload.php';
$dotenv = Dotenv\Dotenv::create(__DIR__);
$dotenv->load();
// DB Params
define('DB_HOST', getenv('DB_HOST'));
define('DB_USER', getenv('DB_USER'));
define('DB_PASS', getenv('DB_PASS'));
define('DB_NAME', getenv('DB_NAME'));
// A... |
<?php
namespace test\output;
require_once __DIR__ . '/../../vendor/autoload.php';
use bitcodin\FtpOutputConfig;
use bitcodin\Output;
class SftpOutputTest extends AbstractOutputTest
{
public function __construct()
{
parent::__construct();
}
/**
... |
<?php
namespace App\Admin\Controllers;
use App\Status;
use Encore\Admin\Controllers\AdminController;
use Encore\Admin\Form;
use Encore\Admin\Grid;
use Encore\Admin\Show;
class StatusController extends AdminController
{
/**
* Title for current resource.
*
* @var string
*/
protected $title ... |
<?php
// autoload_classmap.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'App\\AjaxCrud' => $baseDir . '/app/AjaxCrud.php',
'App\\Console\\Kernel' => $baseDir . '/app/Console/Kernel.php',
'App\\Exceptions\\Handler' => $baseDir . '/app/Ex... |
<!-- Ten Field -->
<div class="form-group">
{!! Form::label('ten', 'Tên dự án:') !!}
<p>{{ $duAnNgo->ten }}</p>
</div>
<!-- Chu Dau Tu Field -->
<div class="form-group">
{!! Form::label('chu_dau_tu', 'Chủ đầu tư:') !!}
<p>{{ $duAnNgo->chu_dau_tu }}</p>
</div>
<!-- Noi Dung Field -->
<div class="form-g... |
<?php
namespace App\Domain\Post\Data;
use Selective\ArrayReader\ArrayReader;
/**
* Data Model.
*/
final class PostData
{
public ?int $id = null;
public ?string $title;
public ?string $body;
public ?int $createdUserId;
/**
* The constructor.
*
* @param array $data The data
... |
<?php
namespace spec\Guzzle\ConfigOperationsBundle\Normalizer;
use Doctrine\Common\Annotations\AnnotationReader;
use Guzzle\ConfigOperationsBundle\Normalizer\Annotation\Type;
use Guzzle\ConfigOperationsBundle\Normalizer\RecursiveObjectNormalizer;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
use Symfony\Componen... |
<!-- Extendemos de la plantila por defecto creada -->
@extends('backend.layouts.default')
@section('contenido')
<!-- page content -->
<div class="right_col" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
<h3>Pregunt... |
<?php
/**
* tpAdmin [a web admin based ThinkPHP5]
*
* @author yuan1994 <tianpian0805@gmail.com>
* @link http://tpadmin.yuan1994.com/
* @copyright 2016 yuan1994 all rights reserved.
* @license http://www.apache.org/licenses/LICENSE-2.0
*/
return [
/**
* 单表最大纪录值,大于该值会自动分表
*/
'max_rows' ... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class CartController extends Controller
{
public function addToCartGuest(Request $request,$id)
{
if($request->session()->get('guest_cart') === null)))
{
$request->session()->put... |
<?php namespace Victorem\Libraries\Sms\Elibom;
class Delivery extends Resource{
public function get($id) {
$client = new Client($this->user, $this->token);
$response = $client->get('messages/' . $id);
return $response;
}
}
?> |
<?php
namespace app\admin\controller;
use app\BaseController;
use think\facade\Db;
use think\facade\View;
class Base extends BaseController
{
protected $admin;
// 权限校验
public function initialize() {
// 获取session中的用户数据
$admin = session('admin');
// 是否已经登录(已经登录:放行;未登录:跳转到登录页面
... |
<?php
namespace App\Models;
use App\Traits\Friendable;
use App\Traits\Likeable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Illuminate\Support\Facades\Auth;
use Laravel\Fortify\TwoFactorAuthenticatable;
use... |
<?php
// This file was auto-generated from sdk-root/src/data/lakeformation/2017-03-31/docs-2.json |
<?php
namespace Modules\Account\Http\Controllers;
use Illuminate\Support\Facades\Auth;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Routing\Controller;
use Modules\Account\Entities\DiscountType;
class DiscountTypeController extends Controller
{
public function __construct() {
... |
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
class ACP_Filtering_Model_Comment_AuthorUrl extends ACP_Filtering_Model {
public function filter_by_author_url( $comments_clauses ) {
global $wpdb;
$comments_clauses['where'] .= ' ' . $wpdb->prepare( "AND {$wpdb->comments}.comment_author_url = %s", $this->get_filte... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;
?>
<div class="jenis-form">
<div class="col-md-6">
<?php $form = ActiveForm::begin(); ?>
<?= $form -> field($model,'nama_jenis')->textInput()->label('Nama Jenis Barang'); ?>
<?= $form -> field($model,'keterangan')->textInpu... |
<input type="hidden" style="width:4em;text-align:center;" name="id" id="id" value="{{$dt['id']}}">
<input type="hidden" style="width:4em;text-align:center;" name="proses" id="proses" value="2">
<input type="hidden" style="width:4em;text-align:center;" name="target_id" id="target_id" value="{{$dt['target_id']}}">
<br... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.