text stringlengths 2 1.03M |
|---|
<?php
defined('BASEPATH') or exit('No direct script access allowed');
?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Da... |
<?php
namespace App\Http\Controllers\Backend;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\SubCategory;
use App\Models\Category;
use App\Models\SubSubCategory;
class SubCategoryController extends Controller
{
public function SubCategoryView(){
$categories = Category::ord... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Repositories\Banner\BannerRepository;
use App\Http\Requests\BannerRequest;
class BannerController extends Controller
{
protected $bannerRepo;
public function __construct(BannerRepository $bannerRepo)
{
$this->bannerRepo = $ba... |
@extends('layout.layout')
@section('content')
<div class="container">
@if(Session("success"))
<div class="alert alert-success">
{{Session('success')}}
</div>
@endif
<!-- Material form register -->
<div class="card mt-4">
<h5 class="card-header indigo white-text text-center py-4">... |
@extends('layouts.master')
@section('currentUserName')
{{$currentUserInfo['firstNm']}} {{$currentUserInfo['lastNm']}}
@endsection
@section('mainTabs')
@include('mainTabs')
@endsection
@section('subTabs')
@include('admin.subTabs')
@endsection
@section('message')
@include('admin.workingHours.message'... |
<?php
$this->breadcrumbs=array(
'Simple Mailer Templates'=>array('index'),
'Create',
);
$this->menu=array(
array('label'=>'List Templates', 'url'=>array('index')),
array('label'=>'Manage Templates', 'url'=>array('admin')),
);
?>
<h1>Create SimpleMailerTemplate</h1>
<?php echo $this->renderPartial('_form', array(... |
<?php
namespace App\Jobs;
use App\Mail\BirthdayEmail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldBeUnique;
use App\Mail\EmailForQueue;
use App\Models\Employee;
use Carbon\Carbon;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\Intera... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Website FPT Telecom">
<meta name="author" content="Nguyen Tuan Kiet">
<title... |
<?php
/**
* The template for displaying all pages.
*
* @package Betheme
* @author Muffin group
* @link http://muffingroup.com
*/
get_header();
?>
<!-- #Content -->
<div id="Content">
<div class="content_wrapper clearfix">
<!-- .sections_group -->
<div class="sections_group">
<div class="entry-conte... |
<?php
namespace Webcom\MarketPlaceWebServiceProducts\Model;
use Webcom\MarketPlaceWebServiceProducts\AmazonModelAbstract;
/* * *****************************************************************************
* Copyright 2009-2016 Amazon Services. All Rights Reserved.
* Licensed under the Apache License, Version 2.0... |
<section class="testimonials-wrap">
<div class="bg-effect"></div>
<div class="testimonials-content">
<h1 class="testimonials-title">People said</h1>
<hr class="underline center">
<span class="testimonials-overtitle">about us</span>
</div>
<div class="testimonials-background">
... |
<?php
namespace App;
use Illuminate\Auth\Authenticatable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Auth\Passwords\CanResetPassword;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Contracts\Auth\CanResetPassword as CanRese... |
@extends('adminlte::page')
@section('title', 'Solproe')
@section('content_header')
<h1>List Customers</h1>
@stop
@section('content')
@livewire('admin.requestorings-index')
@stop |
<?php
use Illuminate\Database\Seeder;
use App\Schedulle;
use App\Helpers\Calc;
use Carbon\Carbon;
class SchedulleSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$price1 = Calc::price([
'idTransportation' ... |
<?php
declare (strict_types=1);
namespace RectorPrefix20211211\Idiosyncratic\EditorConfig\Declaration;
use RectorPrefix20211211\Idiosyncratic\EditorConfig\Exception\InvalidValue;
use function is_int;
final class MaxLineLength extends \RectorPrefix20211211\Idiosyncratic\EditorConfig\Declaration\Declaration
{
publi... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
require APPPATH . 'libraries/REST_Controller.php';
class Poin extends REST_Controller {
public function __construct()
{
parent::__construct();
$this->load->model('M_berita');
}
public function index_get()
... |
<?php
/*
* Copyright 2018 Google LLC All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
@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 card-body d-flex justify-content-between align-items-center">
Actualización de un Port... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ShippingMethod extends Model
{
//
} |
<?php
namespace App\Http\Resources\API;
use Illuminate\Http\Resources\Json\ResourceCollection;
class CountryCollection extends ResourceCollection
{
/**
* Transform the resource collection into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function... |
<?php
/*
* This file is part of the awesomite/var-dumper package.
*
* (c) Bartłomiej Krukowski <bartlomiej@krukowski.me>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Awesomite\VarDumper\Properties;
/**
* @internal
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class UserController extends Controller
{
public function store(){
}
public function update(){
}
} |
<?php
namespace Swoft\Log;
use Swoft\App;
/**
* 日志使用类
*
* @uses Log
* @version 2017年11月04日
* @author stelin <phpcrazy@126.com>
* @copyright Copyright 2010-2016 swoft software
* @license PHP Version 7.x {@link http://www.php.net/license/3_0.txt}
*/
class Log
{
/**
* trace级别日志
*
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Order extends Model
{
use HasFactory;
protected $fillable = [
'foodname',
'quantity',
'price',
'name',
'phone',
'address'
];
} |
<?php
function encrypted_id($id_proyecto)
{
$key64 = "Reachmx1";
$iv64 = "AAECAwQFBgcICQoLDA0ODw==";
$key = base64_decode($key64, true);
$iv = base64_decode($iv64, true);
$search = "/";
$replace = "_";
$encrypted = openssl_encrypt($id_proyecto, 'AES-256-CBC', $key, 0, $iv);
return str... |
<?php
namespace ContainerPgFZDL3;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getDoctrine_CacheClearMetadataCo... |
<?php return array (
'FrameworkBundle:FormTable:button_row.html.php' => __DIR__.'/../../../vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/views/FormTable/button_row.html.php',
'FrameworkBundle:FormTable:form_row.html.php' => __DIR__.'/../../../vendor/symfony/symfony/src/Symfony/Bundle/Framework... |
<?php
/* @TSAdmin/Candidate/researchTest.html.twig */
class __TwigTemplate_3f616e373939b1d30079dc46ce3140ac28b7d5bd957c3a83227c353fb684d66a extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = ar... |
<?php
/**
* InsaneDB
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2019 - 2022, CodeIgniter Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated do... |
<?php
class Matakuliah extends CI_Controller
{
public function index()
{
$this->load->view('view-form-matakuliah');
}
public function cetak()
{
$this->form_validation->set_rules('kode', 'Kode Matakuliah',
'required|min_length[3]', ['required' => 'Kode Matakuliah Harus diisi',
'min_lenght' => 'Kode t... |
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Redirect;
class VpnMiddleware
{
public function handle($request, Closure $next)
{
$ip = request()->ip();
$vpnurl = "https://proxycheck.io/v2/{$ip}";
$details = json_... |
<?php
include('database.php');
session_start();
$error = '';
$message = '';
// Formular wurde gesendet und Besucher ist noch nicht angemeldet.
if ($_SERVER["REQUEST_METHOD"] == "POST" && empty($error)) {
// username
if (!empty(trim($_POST['username']))) {
$username = trim($_POST['username']);
... |
<?php
/* TwigBundle:Exception:error.atom.twig */
class __TwigTemplate_bda613664b2273cf54a465c9ba654c94fb7305f65f37a20e8faaa84b717f0b84 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Patient extends MY_Controller {
public function __construct()
{
parent::__construct();
$this->load->model('Patient_model');
if(!$this->is_operator() && !$this->uri->segment(3) == 'list_ajax')
redirect('/','refresh');
}
// List a... |
<script>
function onchartload(sender) {
if (!ej.util.isNullOrUndefined(window.orientation) && sender) { //to modify chart properties for mobile view
var model = sender.model,
seriesLength = model.series.length;
model.title.enableTrim = true;
model.element... |
@extends ('layouts.app')
@section('navegacion')
@include('ui.adminnav')
@endsection
{{-- Candidatos de la vacante --}}
@section('content')
<h1 class="text-2xl text-center mt-10">Candidatos: {{$vacante->titulo}} </h1>
@if( count($vacante->candidatos) > 0)
<ul class="max-w-md mx-auto mt-10">
... |
<!-- Page wrapper -->
<div class="page-wrapper">
<!-- Bread crumb -->
<div class="row page-titles">
<div class="col-md-5 align-self-center">
<h3 class="text-primary">Dashboard</h3> </div>
<div class="col-md-7 align-self-center">
<ol class="breadcrumb">
<l... |
<?php
/**
* Match the WordPress page type
*/
class Page_Match extends Red_Match {
use FromUrl_Match;
/**
* Page type
*
* @var String
*/
public $page = '404';
public function name() {
return __( 'URL and WordPress page type', 'redirection' );
}
public function save( array $details, $no_target_url =... |
@extends('frontend.layouts.master')
@section('content')
<div>
<div class="jumbotron jumbotron-sm">
<div class="container">
<div class="row">
<div class="col-sm-12 col-lg-12">
<h1 class="h1">
Contact us <small>Feel free to contact us</small></h1>
... |
<?php
// +----------------------------------------------------------------------
// | CoreThink [ Simple Efficient Excellent ]
// +----------------------------------------------------------------------
// | Copyright (c) 2014 http://www.corethink.cn All rights reserved.
// +---------------------------------------------... |
<?php namespace Modules\User\Database\Seeders;
use Cartalyst\Sentry\Facades\Laravel\Sentry;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Seeder;
class SentryGroupSeedTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
... |
<?php
namespace BladeComponents\Undraw\Components\Illustrations;
use BladeComponents\Undraw\Components\BaseComponent;
class UndrawBookReadingComponent extends BaseComponent
{
} |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Promo extends Model
{
public function Kategori(){
return $this->belongsTo('App\Kategori');
}
protected $fillable = [
'promo',
'kategori_id',
'tanggal_dibuat',
'tanggal_berakhir',
'Harga... |
<?php
session_start();
ob_start();
/*
Captcha script by BerkayZ > https://wwww.github.com/BerkayZ
Example post file
*/
$info="";
$sendedcode = $_POST['cinput'];
if(isset($_SESSION["sccode"])){
if($sendedcode==$_SESSION["sccode"]){
$info = "TRUE";
}else{
$info... |
<!-- Start optional size modal element -->
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true" style="display:none;">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="clo... |
<?php
$primeiro_nome = "Jeandra";
$nome_meio = "Cristina da Silva";
$sobrenome = "Ribeiro";
$nome_completo = "Meu nome é " . $primeiro_nome ." ". $nome_meio ." ". $sobrenome;
echo $nome_completo; |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Category;
class CategoriesController extends Controller
{
public function index()
{
/* esto es equivalente a select * from 'categories;' */
$categories = Category::all();
return 'Hola desde el controlador de l... |
<?php
namespace Drupal\Tests\jsonapi\Kernel\Normalizer;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Url;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\file\Entity\File;
use Drupal\jsonapi\JsonApiResource... |
<!-- Content -->
<body>
<section id="feature" class="transparent-bg">
<div class="container">
<div class="center wow fadeInDown">
<div class="center wow fadeInDown">
<h2>Tabel Guru</h2>
<a align="text-right" href="<?php echo site_url('Crea... |
<?php
namespace App\Models\users;
use Illuminate\Database\Eloquent\Model;
class UsersToken extends Model
{
//
protected $table = 'users_token';
protected $hidden = ['created_at','updated_at','deleted_at'];
} |
<?php
namespace backend\models;
use Yii;
/**
* This is the model class for table "mgf_organisational_details".
*
* @property int $id
* @property int $mgt_Staff
* @property int $senior_Staff
* @property int $junior_Staff
* @property int $others
* @property string $last_board
* @property string $last_agm
* @... |
<?php
session_start();
if(isset($_SESSION['admin_id']) && $_SESSION['admin_id']!=""){
?>
<?php
require_once("config.php");
?>
<!doctype html>
<html class="no-js" lang="en">
<!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Sufee Admin - H... |
<?php
// 刷新token
$config = require('../config.php');
require_once("../functions.php");
$refresh_token = $config['identify']['refresh_token'];
$refresh_url = $config['identify']['refresh_url'];
// 自动根据授权时的信息刷新
$url = "$refresh_url?refresh_token=$refresh_token";
$ch = curl_in... |
@extends('Admin.header')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-9">
<div class="card">
<div class="card-header">All Course</div>
@if(session('questionstatu'))
<div class="alert alert-suc... |
<?php
/**
* Created by PhpStorm.
* User: HosseinYaghmaee@gmail.com
* Date: 9/13/2020
* Time: 12:57 PM
*/
return [
/*
*
*/
"smartApi" => [
"methodsRepositoryClass" => \App\Classes\SmartApiMethodsRepo::class,
],
/*
*
*/
"simotelApi" => [
"apiUrl" => env("SIM... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use App\Http\Controllers\Controller;
use App\Http\Resources\Reservation as ReservationResource;
use App\Http\Resources\UserBook as UserBookResource;
class ReservationController extends Controller
{
private function... |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Login extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->model('M_warga', 'm_warga');
}
public function index()
{
if ($this->session->userdata('role_warga')) {
... |
<?php
return [
'message_title' => 'AirBooking Notification', // заголовок сообщения
'message_body' => 'Рейс "{FLIGHT}" был отменен.', // текст сообщения. {FLIGHT} будет заменен на название рейса
'notification_email' => '', // email с которого будут отправляться сообщения. Обязательно должен быть mail.ru
... |
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Control Panel</title>
<!-- Bootstrap CSS -->
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.mi... |
<?php
/**
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "li... |
<header class="main-header">
<!-- Logo -->
<a href="{{ Auth::user()->email != "huongll@icho.vn" ? route('product.index') : route('product.short') }}" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b>dealhomnay.com</b></span>
<!-- logo for regular state and mobile... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Main extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->model('Inventory');
}
public function index() {
$this->load->model('Inventory');
$results = $this->Inventory->createMa... |
<?php
namespace App\Http\Resources;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class DisputeMessageResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param Request $request
* @return array
*/
public function toArray($... |
<?php
/**
* @package content
*/
/**
* The Datasource Editor page allows a developer to create new datasources
* from the four Symphony types, Section, Authors, Navigation and Static XML
*/
class contentBlueprintsDatasources extends ResourcesPage
{
public $_errors = array();
public function __viewIndex($... |
<!-- First Name Field -->
<div class="form-group">
{!! Form::label('first_name', 'First Name:') !!}
<p>{{ $admission->first_name }}</p>
</div>
<!-- Last Name Field -->
<div class="form-group">
{!! Form::label('last_name', 'Last Name:') !!}
<p>{{ $admission->last_name }}</p>
</div>
<!-- Father Name Fie... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\ExercicioSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="exercicio-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
... |
<!DOCTYPE html>
<html>
<head>
<title>@yield('title')</title>
</head>
<body>
<h1>@yield('head')</h1>
<nav>
@yield('navbar')
</nav>
<div id="main-content">
@yield('content');
</div>
<div id="footer">
<p>copyright@2020</p>
</div>
</body>
</html> |
@extends('layouts.app')
@section('content')
<div class='container'>
<div class='row py-5'>
<div class='col'>
<h1 class='text-uppercase'>Login</h1>
</div>
</div>
<div class='row py-3'>
<div class='col'>
<form method="POST" action="{{ route('login') }... |
<?php
namespace Oro\Bundle\UserBundle\Tests\Unit\Security;
use Doctrine\Common\Cache\ArrayCache;
use Doctrine\Common\Collections\ArrayCollection;
use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder;
use Escape\WSSEAuthenticationBun... |
@extends('user/app')
@section('bg-img', asset('user/img/home-bg.jpg'))
@section('banner-title','Personal Blog')
@section('banner-qoute','This is personal Blog')
@section('main-content')
<!-- Main Content -->
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-10 mx-auto">
... |
<?php
namespace Illuminate\Auth\Passwords;
use Closure;
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
use Illuminate\Contracts\Auth\PasswordBroker as PasswordBrokerContract;
use Illuminate\Contracts\Auth\UserProvider;
use Illuminate\Support\Arr;
use UnexpectedValueException;
class Passw... |
--TEST--
Crash with Big5
--SKIPIF--
<?php
if (!extension_loaded("mbstring")) {
die("skip Requires mbstring extension");
}
?>
--INI--
zend.multibyte=1
internal_encoding=big5
--FILE--
<?php
echo '\'hello';
?>
--EXPECT--
'hello |
<?php
/**
* Created by PhpStorm.
* User: lihang
* Date: 05/09/2017
* Time: 4:19 PM
*/
namespace app\api\service;
use app\api\model\ThirdAppModel;
use app\lib\exception\TokenException;
class AppTokenService extends Token {
public function get($ac, $se)
{
$app = ThirdAppModel::check($ac, $se);
... |
<?php
namespace App\Containers\ChannelAuthorization\Tasks;
use App\Containers\ChannelAuthorization\Data\Repositories\ChannelRoleRepository;
use App\Containers\ChannelAuthorization\Models\ChannelRole;
use App\Ship\Parents\Tasks\Task;
use Illuminate\Support\Facades\App;
class DeleteChannelRoleTask extends Task
{
/... |
<?php
namespace testBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* SetRespuestas
*/
class SetRespuestas
{
/**
* @var integer
*/
private $id;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* @var ... |
<?php
declare(strict_types=1);
namespace PHPSu\Tests\Command;
use PHPSu\Command\CommandGenerator;
use PHPSu\Config\AppInstance;
use PHPSu\Config\Database;
use PHPSu\Config\FileSystem;
use PHPSu\Config\GlobalConfig;
use PHPSu\Config\SshConnection;
use PHPSu\Options\SyncOptions;
use PHPUnit\Framework\TestCase;
final c... |
<?php
namespace Lonquan\TaobaoSDK\Top\Request;
use Lonquan\TaobaoSDK\Top\RequestInterface;
/**
* TOP API: taobao.logistics.address.reachablebatch.get request
*
* @author auto create
* @since 1.0, 2015.12.23
*/
class LogisticsAddressReachablebatchGetRequest implements RequestInterface
{
/**
* 筛单用户输入地址结构... |
<?php
declare(strict_types=1);
namespace Rawilk\LaravelBase\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Rawilk\LaravelBase\Exceptions\InactiveUserException;
class EnsureActiveUserMiddleware
{
public function handle(Request $request, Closure $next)
{
if (! $request->user()) {
... |
<?php
use Monolog\Handler\NullHandler;
use Monolog\Handler\StreamHandler;
use Monolog\Handler\SyslogUdpHandler;
return [
/*
|--------------------------------------------------------------------------
| Default Log Channel
|--------------------------------------------------------------------------
... |
<?php
/**
* @filesource Scan.php
* @author Foo Bar <foo.bar@email.com>
* @version Release:
* Date: 2020/03/11
* Time: 14:56
*/
namespace Inqbate\Appcheck\Models;
use Inqbate\Appcheck\Client;
use Inqbate\Appcheck\Exceptions\ApiModelNotFoundException;
class Run extends ApiModel
{
/**
* @var string
... |
<?php
namespace Deployment;
if (PHP_VERSION_ID < 70100) {
echo 'Error: Deployment requires PHP 7.1 or newer.';
exit(1);
}
require __DIR__ . '/Deployment/Server.php';
require __DIR__ . '/Deployment/FtpServer.php';
require __DIR__ . '/Deployment/SshServer.php';
require __DIR__ . '/Deployment/FileServer.php';
require... |
<?php
namespace App\Models;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
class User extends Authenticatable
{
use HasApiToken... |
<?php
class SampleTest extends PHPUnit_Framework_TestCase
{
public function TestTest()
{
$this->assertTrue(true);
}
} |
@extends('layouts.app')
@section('content')
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Login') }}</div>
<div class="card-body">
<form method="POST" action="{{ route('login') }}">
... |
<?php
// +----------------------------------------------------------------------
// | Author: yaoyihong <510974211@qq.com>
// +----------------------------------------------------------------------
namespace app\api\validate;
use app\common\validate\ValidateBase;
/**
* api基础验证器
*/
class ApiBase extends ValidateBas... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateAcquisitionRegionTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('acquisition_region', function(Blueprint $table)
{
$table->integer... |
<?php
/**
* @see https://github.com/laminas/laminas-db for the canonical source repository
* @copyright https://github.com/laminas/laminas-db/blob/master/COPYRIGHT.md
* @license https://github.com/laminas/laminas-db/blob/master/LICENSE.md New BSD License
*/
namespace Laminas\Db\Adapter\Platform;
use Lami... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="col-md-8 offset-md-2">
<div class="card">
<div class="card-header">
<h4>
<i class="glyphicon glyphicon-edit"></i> 編輯個人資料
</h4>
</div>
<div c... |
<?php
/**
* GENERIC ERROR TEMPLATE
*
* @name error.php
* @package framework.local
* @version
* @since 09-May-2017 14:47:12
* @author Jon Thompson
* @abstract
*/
?>
<p>this is an error message</p> |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Nawawi\Symfony\Component\VarExporter\Internal;
use Nawawi\Symfony\Compo... |
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond t... |
<?php
namespace Address\Service;
use Base\Service\AbstractService;
class City extends AbstractService{
public function __construct(\Doctrine\ORM\EntityManager $em) {
parent::__construct($em);
$this->entity = 'Address\Entity\City';
}
public function insert(array $data)
{
$entit... |
<?php
/**
* Smarty plugin
*
* @package Smarty
* @subpackage PluginsFunction
*/
/**
* Smarty {html_checkboxes} function plugin
*
* File: function.html_checkboxes.php<br>
* Type: function<br>
* Name: html_checkboxes<br>
* Date: 24.Feb.2003<br>
* Purpose: Prints out a list of checkb... |
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use App\Notifications\AdminResetPasswordNotification;
class Admin extends Authenticatable
{
use Notifiable;
protected $table='admins';
protected $guard='admin';
/**
* The attrib... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Page;
use App\People;
use App\Partfolio;
use App\Service;
use DB;
use Mail;
class IndexController extends Controller
{
public function execute(Request $request)
{
if($request->isMethod('GET')){
$pages = Page::all(... |
<?php
namespace Geekco\CmsBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Geekco\CmsBundle\Entity\Page;
use Symfony\Component\HttpKe... |
<div id='divDetailMenu'>
<div class="row">
<!-- DETAIL MENU -->
<div class="col-lg-6 col-md-6 col-sm-6 col-12">
<div class="card card-primary">
<div class="card-header">
<h4>Detail Menu</h4>
</div>
<div class="card-body... |
<?php
namespace app\controllers;
use app\models\MailHistory;
use app\models\MailHistorySearch;
use yii\filters\AccessControl;
use yii\web\Controller;
use yii\web\ForbiddenHttpException;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* MailHistoryController implements the CRUD actions for MailHis... |
<?php
namespace App\Http\Controllers;
use App\Deposit;
use App\General;
use Stripe\Stripe;
use Stripe\Token;
use Stripe\Charge;
use App\Http\Controllers\DepositController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
class StripeController extends Controller
{
public function ipnstri... |
<?php
/**
* Custom functions that act independently of the theme templates.
*
* Eventually, some of the functionality here could be replaced by core features.
*
* @package gabuid
*/
/**
* Adds custom classes to the array of body classes.
*
* @param array $classes Classes for the body element.
* @return array... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.