text stringlengths 2 1.03M |
|---|
<?= $this->extend('layout/template');?>
<?= $this->section('content');?>
<div class="container">
<div class="row">
<div class="col">
<div class="card text-center mt-5">
<div class="card-header">
DATA DIRI
</div>
<div class="card-body">
... |
<?php
namespace App\Http\Controllers;
use App\Models\Article;
use App\Models\CategoryArticle;
use App\Models\Message;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as Bas... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class HomeController extends Controller
{
public function __construct()
{
$this->middleware('admin');
}
public function index()
{
return view('admin.index');
}
} |
@extends('layouts.app')
@section('content')
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<div class="panel panel-primary">
<div class="panel-heading">Selección de Paciente </div>
</div>
<div class="input-gro... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Stripe, Mailgun, ... |
<!DOCTYPE HTML>
<html lang="en">
<head>
@include('layouts.head')
</head>
<body @if (!Auth::guest())class="nav-md" @endif >
<div class="container body">
<div class="main_container">
@include('layouts.sidemenu.sidemenu')
@include('layouts.navbar.navbar')
<div class="right... |
<?php
namespace AppBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="catalog")
*/
class Catalog
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/*... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Http\Requests;
class CommonController extends Controller
{
protected $request="";
protected $model="";
protected function setVlaue($data){
if(class_exists($data['request'])||$da... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
// use Illuminate\Support\Facades\DB;
// use App\Http\Controllers\Controller;
use App\User;
use App\User_friend;
use App\Memo;
class UsersController extends Controller
{
public function index()
{
$users = User::paginate(20);
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Auth;
use App\Http\Requests;
use App\Http\Requests\LoginRequest;
use App\Http\Requests\EmpleoRequest;
use App\Http\Controllers\Controller;
use App\Inmueble;
use App\Estado;
use App\Ciudad;
use App\Sector;
use App\Negociacion;
use App\Tipo;
use App... |
<div class="row mt-3">
<div class="col-md-12">
<div class="card">
<div class="card-body">
<div class="card-title">
<h2>{{ $answersCount . " " . Str::plural('Answer', $answersCount) }}</h2>
<hr />
... |
<?php
/*
* add .styleci.yml
*/
namespace App\Listeners;
use App\Events\CommentedEvent;
use App\Notifications\CommentNotification;
use Illuminate\Support\Facades\Notification;
class CommentEventListener
{
public function handle($event)
{
if ($event instanceof CommentedEvent) {
// 发送通知
... |
<?php
require_once 'unittests/selenium_tests/SeleniumTest.php';
class HeaderMenuTest extends SeleniumTest
{
protected $start_url_path = '';
public function testHeaderMenu()
{
extract($this->getKeyBindings());
$this->setupUnauthenticated();
$this->assertEquals(0, $this->get... |
<?php
namespace Olenaza\BlogBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as SymfonyConstraint;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use JMS\Serializer\Annot... |
<?php
namespace App\Models\Admin;
use Illuminate\Database\Eloquent\Model;
class GoogleAnalytic extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'google_analytic_code',
];
} |
<div id="accordion" class="sj-addarticleholdcontent sj-collapsehold sj-sildersettinghold">
<div class="sj-dashboardboxtitle" id="headingOne-5" data-toggle="collapse" data-target="#collapseOne-5"
aria-expanded="true" aria-controls="collapseOne-5">
<h2><?php echo e(trans('prs.home_slider_sett')); ?></... |
@extends('layouts.mainlayout')
@section('content')
@if(session('success'))
<script>
$( document ).ready(function() {
swal("Success", "{{session('success')}}", "success");
});
</script>
@endif
@if(session('failed'))
<script>
$( docu... |
<?php
session_start();
if(!isset($_SESSION['employee']))
{
header("Location: ../index.php");
}
require_once '../admin/master_engine/pagination.php';
require_once '../admin/master_engine/database_io.php';
$query = "SELECT ID , Name , Quantity , Unit FROM " . TBL_PRODUCTS . " WHERE (Quantity <= Alert) ORDER BY Nam... |
<?php $this->load->viewF('inc/header.php'); ?>
<!--============= Paypal section Section ================-->
<div class="grey-background">
<div class="cart-section">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="starter-template">
<h1>PayPa... |
<?php
namespace App\Http\Controllers;
use App\User;
use Carbon\Carbon;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
class UserController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
... |
<?hh
function add($a, $b) {
return HH\Lib\Legacy_FIXME\cast_for_arithmetic($a) + HH\Lib\Legacy_FIXME\cast_for_arithmetic($b);
}
<<__EntryPoint>>
function main_1808() {
$server = new SoapServer(NULL, darray['uri' => 'http://test-uri']);
$str = '<?xml version="1.0" '
. 'encoding="ISO-8859-1"?>'
. '<SOAP-E... |
<?php
use Illuminate\Database\Seeder;
use App\Models\Post;
use App\Models\PostLocation;
class PostsSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$faker = Faker\Factory::create();
for($i = 1; $i <= 1000; $i++){
Pos... |
<?php
/**
* This file is part of the Kdyby (http://www.kdyby.org)
*
* Copyright (c) 2008 Filip Procházka (filip@prochazka.su)
*
* For the full copyright and license information, please view the file license.txt that was distributed with this source code.
*/
namespace Kdyby\DoctrineCache;
interface Exception
{
... |
<?php
/**
* Test: Tracy\Debugger::exceptionHandler() error.
* @exitCode 255
* @httpCode 500
* @outputMatch %A%<title>Server Error</title>%A%Tracy is unable to log error%A%
*/
declare(strict_types=1);
use Tracy\Debugger;
require __DIR__ . '/../bootstrap.php';
if (PHP_SAPI === 'cli') {
Tester\Environment:... |
<?php
declare(strict_types=1);
namespace Package\User\Application\InputData;
class RegisterUserInputData
{
private $email;
private $password;
public function __construct(string $email, string $password)
{
$this->email = $email;
$this->password = $password;
}
public function... |
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class WelcomeMail extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
... |
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
use AlibabaCloud\SDK\Dysmsapi\V20170525\Models\ModifySmsSignRequest\signFileList;
use AlibabaCloud\Tea\Model;
class ModifySmsSignRequest extends Model
{
/**
* @description appKey
*
*... |
<?php
/*site define*/
define('HOST_NAME',env('ENV_HOST_NAME'));
define('CACHE_TIME', 1);
define('SHORT_CACHE_TIME', 10);
/* base path */
define('ROOT_PATH', dirname(__DIR__));
define('APP_PATH', ROOT_PATH . '/app');
/* resources */
define('RESOURCES_PATH', ROOT_PATH .'/resources');
define('VIEW_PATH', RESOURCES_PATH... |
<?php include('inc/header.php'); ?>
<?php include('inc/connection.php'); ?>
<script src="js/validation.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://max... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Services\UserService;
use App\Services\TokenService;
class UserController extends Controller
{
private $userService;
private $tokenService;
public function __construct(UserService $userService,
Toke... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use App\Student;
class LeaderboardController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
// ... |
<?php
namespace Database\Seeders\Badaso\Post;
use Illuminate\Database\Seeder;
class BadasoPostModuleSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$this->call(PostMenusSeeder::class);
$this->call(PostFixedMenuItemSeede... |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
* 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 Cp
*
* @author edisite
*/
class Cp ext... |
<?php
namespace Com\Pdd\Pop\Sdk\Api\Request;
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
class PddMallInfoGroupListStoreGetRequest extends PopBaseHttpRequest
{
public function __construct()
{
}
/**
* @JsonProperty(Long, "group_id")
*/
private $groupId;
/**
* @JsonPrope... |
<polyline points="13 17 18 12 13 7"></polyline><polyline points="6 17 11 12 6 7"></polyline> |
<?php
namespace BackBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Movie
*
* @ORM\Table(name="movie")
* @ORM\Entity(repositoryClass="BackBundle\Repository\MovieRepository")
*/
class Movie
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedVa... |
<?php
namespace App\Http\Controllers\api;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\User;
use Log;
use Auth;
class NotificationController extends Controller
{
public function toggle($status){
User::where("id", Auth::user()->id)->update(["notification_status" => $st... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class NewsMirror extends Model
{
use HasFactory;
protected $table = 'news_mirrors';
protected $fillable = [
'title',
'link',
'guid',
'description',
... |
<?php include('header.php');
$ID=$_GET['bkid'];
?>
<div>
<ul class="breadcrumb">
<li>
<a href="#">Home</a>
</li>
<li>
<a href="#">Vertical file</a>
</li>
</ul>
</div>
<div class="row">
<div class="box col-md-12">
<div class="box-inner">
... |
<?php
namespace AchatBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
trait HashPremium
{
/**
* @var boolean
*
* @ORM\Column(name="premium", type="boolean")
*/
private $premium = false;
/**
* @param boolean $premium
* @return $this
*/
public function setPremium($premi... |
<?php
/**
* Date: 2019/2/25 Time: 14:49
*
* @author Eddy <cumtsjh@163.com>
* @version v1.0.0
*/
namespace App\Http\Controllers\Admin;
use App\Events\MenuUpdated;
use App\Http\Controllers\Controller;
use App\Http\Requests\Admin\MenuRequest;
use App\Model\Admin\Menu;
use App\Repository\Admin\MenuRepository;
use I... |
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\SDK_DATA_1598238000612\Models;
use AlibabaCloud\Tea\Model;
use AlibabaCloud\SDK\SDK_DATA_1598238000612\Models\UnbindOapiSmartdeviceDeviceParams;
class UnbindOapiSmartdeviceDeviceRequest extends Model {
public function valida... |
<?php
declare(strict_types=1);
namespace Camuthig\ServiceBus\Package;
use Barryvdh\Debugbar\LaravelDebugbar;
use Camuthig\ServiceBus\Package\Contracts;
use Camuthig\ServiceBus\Package\Plugin\DataCollectorPlugin;
use Illuminate\Foundation\Application;
use Illuminate\Support\ServiceProvider;
class ServiceBusServicePr... |
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... |
<?php
class Client_Model extends CI_model{
//Buyer
public function insertData_B ($clinsert){
$result = $this->db->insert('buyercl', $clinsert);
if($result){
return true;
} else {
return false;
}
}
//Seller
public function insertDat... |
<?php
namespace Sk\Mid\Tests\integration;
use PHPUnit\Framework\TestCase;
use Sk\Mid\Rest\Dao\Request\CertificateRequest;
use Sk\Mid\Tests\Mock\MobileIdRestServiceRequestDummy;
use Sk\Mid\Tests\Mock\TestData;
use Sk\Mid\MobileIdClient;
use Sk\Mid\Exception\NotMidClientException;
class MobileIdCertificateIT extends Tes... |
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class ClotheModelResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
... |
<?php declare(strict_types=1);
namespace Shopware\Storefront\Test\Framework\Seo\SeoUrl;
use PHPUnit\Framework\TestCase;
use Shopware\Core\Content\Category\CategoryDefinition;
use Shopware\Core\Content\LandingPage\LandingPageEntity;
use Shopware\Core\Content\Product\Aggregate\ProductVisibility\ProductVisibilityDefinit... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. A... |
<?php
namespace App;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
//use Yajra\Oci8\Eloquent\OracleEloquent as Eloquent; NAO PRECISA
class User extends Authenticatable
{
use Notifiable;
/**
* The attribut... |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Z... |
<?php
require_once '../../lib/DataSourceResult.php';
require_once '../../lib/SchedulerDataSourceResult.php';
require_once '../../lib/Kendo/Autoload.php';
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
header('Content-Type: application/json');
$request = json_decode(file_get_contents('php://input'));
$result... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
/**
* Show the application dashbo... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Giftcode extends Model
{
use HasFactory;
public $timestamps = false; //set time to false
protected $fillable = [
'giftcode_name', 'giftcode_times', 'giftcode_condidtion... |
<x-app-layout>
<div class="container py-8">
<h1 class="text-4xl fond-bold text-gray-600">Planetastico, un libro que desarrolla conciencia
ambiental</h1>
{{-- <div class="text.lg text-gray-500 mb-2">
{{ $post->extract }}
</div> --}}
<div class="grid grid-cols-1 lg:gr... |
<?php
/**
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will... |
<?php
/**
* This file is part of the planb project.
*
* (c) jmpantoja <jmpantoja@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Britannia\Domain\Repository;
use Britannia\Domain\E... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class UpdateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function (... |
<?php
namespace PhpSchool\PhpWorkshopTest\Exception;
use PhpSchool\PhpWorkshop\Exception\CodeExecutionException;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Process\Process;
class CodeExecutionExceptionTest extends TestCase
{
public function testException(): void
{
$e = new CodeExecutionExc... |
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/main.js"></script> |
<?php
use LRVM\Core\ApiController;
use LRVM\Domain\Video\VideoRepository;
class ApiVideosController extends ApiController {
/**
* @var VideoRepository
*/
protected $rVideo;
/**
* @param VideoRepository $rVideo
*/
public function __construct(VideoRepository $rVideo) {
$th... |
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => 'C:/xampp/htdocs/oakandaspen-grav-v1/user/plugins/admin/languages/pl.yaml',
'modified' => 1569425144,
'data' => [
'PLUGIN_ADMIN' => [
'ADMIN_BETA_MSG' => 'To jest wersja Beta! Używasz jej w produkcji na ... |
<?php
namespace Eye4web\ZfcUserPmTest\Form;
use PHPUnit_Framework_TestCase;
use Eye4web\ZfcUser\Pm\Form\NewMessageForm as Form;
class NewMessageFormTest extends PHPUnit_Framework_TestCase
{
protected $messageForm;
public function setUp()
{
$this->messageForm = new Form();
}
/**
* @... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class MakeMoreNullableColumnsUsers extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::statement(" ALTER... |
<?php
class Course_model extends CI_Model
{
public function __construct(){
$this->load->database();
}
public function create(){
$data = array(
'c_name' => $this->input->post('c_name'),
'c_section' => $this->input->post('c_section'),
'c_code' => $this->input->post('c_code'),
'c_sched' => ... |
<?
/**
* XiinEngine
*
* * XiinEngine is supplied under the MIT license. Please read license.md in the root directory
*
* @package XiinEngine Legacy AdminCP
* @author Ian Karlsson <ian.karlsson@xiinet.com>
* @author Philip Whitehall <philip.whitehall@xiinet.com>
* @copyright Copyright 2006-2013 Xiin Networks <... |
<!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/css?family=Nunito:... |
<div class="container">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<div class="login-panel panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">S'inscrire</h3>
</div>
<div class="panel-body">
... |
<?php
REQUIRE_ONCE '../../../config/default.conf.php';
$mDB = &DB::instance();
$mMember = &Member::instance();
$member = $mMember->GetMemberInfo();
$mCoupon = new ModuleCoupon();
$action = Request('action');
$get = Request('get');
$start = Request('start');
$limit = Request('limit');
$sort = Request('sort');
$dir = R... |
<?php
namespace App\Repository\DB;
use App\Domain\ValueObject\ImgDir\BookName;
use App\Domain\ValueObject\ImgDir\BookOptions;
use App\Domain\ValueObject\ImgDir\Description;
use App\Domain\ValueObject\ImgDir\OpenType;
use App\ImageDir;
use App\Domain\Entities;
use App\Domain\ValueObject\UserId;
use App\Domain\ValueO... |
<?php
$session = \Config\Services::session();
?>
<!doctype html>
<html class="no-js h-100" lang="en">
<head>
<!-- End Google Tag Manager -->
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Pipel</title>
<meta name="description" content="A high-quality & ... |
<?php
/**
* This is the model class for table "acc_external_pays".
*
* The followings are the available columns in table 'acc_external_pays':
* @property string $id
* @property string $createDate
* @property integer $createUser
* @property string $sourceId
* @property integer $userId
* @property string $docum... |
@extends('layouts.admin.main')
@section('description', '')
@section('keywords', '')
@section('title', 'Admin')
@section('style')
@include('include.admin.dashboard_charts_styles')
@endsection
@section('searchfield')
@include('include.admin.header_search_news')
@endsection
@section('menubutton')
@include('incl... |
<?php
namespace Braintree;
/**
* Braintree SamsungPayCard module
* Creates and manages Braintree SamsungPayCards
*
* @package Braintree
* @category Resources
*
* @property-read \Braintree\Address $billingAddress
* @property-read string $bin
* @property-read string $cardType
* @property-read string $card... |
<?php
namespace App\Models\Modulos\Seguridad\PerfilPorUsuario;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class PerfilPorUsuario extends Model
{
use HasFactory;
/**
* @var string
*/
protected $table = 'SG_OPCION_APLICACION_POR_PERFIL';
/**... |
<?php
/**
* Author: Nil Portugués Calderó <contact@nilportugues.com>
* Date: 12/18/15
* Time: 11:36 PM.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace NilPortugues\SchemaOrg\Properties;
use NilPortugues\SchemaOrg\Schem... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for y... |
<?php
namespace App\Http\Controllers\Api;
use App\Handlers\MyTree;
use App\Models\Branch;
use Illuminate\Http\Request;
use App\Http\Resources\Branch AS BranchResource;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Validator;
class BranchController extends ApiC... |
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use App\Entity\User;
use App\Entity\Video;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
//
use App\Listeners\VideoCreatedLis... |
<?php
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
$this->title = 'Đăng nhập';
//$ga = new GoogleAuthenticator();
////$secret = $ga->createSecret();
//$secret = $ga->createSecret();
//echo "Secret... |
{{-- Pterodactyl - Panel --}}
{{-- Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com> --}}
{{-- This software is licensed under the terms of the MIT license. --}}
{{-- https://opensource.org/licenses/MIT --}}
@extends('layouts.admin')
@section('title')
Create User
@endsection
@section('content-header'... |
<div class="row wrapper border-bottom white-bg page-heading">
<div class="col-lg-10">
<h2>Profile</h2>
<ol class="breadcrumb">
<li>
<a href="<?= url('dashboard'); ?>">Home</a>
</li>
<li>
<a href="<?=url('privacy_policy')?>">Pages</... |
<?php
declare(strict_types=1);
namespace Metadata;
/**
* Base class for class metadata.
*
* This class is intended to be extended to add your own application specific
* properties, and flags.
*
* @author Johannes M. Schmitt <schmittjoh@gmail.com>
*/
class ClassMetadata implements \Serializable
{
/**
... |
<?php
namespace app\controllers;
use Yii;
use yii\filters\AccessControl;
use yii\web\Controller;
use yii\web\Response;
use yii\filters\VerbFilter;
use app\models\LoginForm;
use app\models\Product;
use app\models\ProductAtribute;
use app\models\Category;
use yii\web\NotFoundHttpException;
use yii\data\ActiveDataProvid... |
<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>后台管理</title>
<link rel="stylesheet" type="text/css" href="/Public/Admin/css/common.css"/>
<link rel="stylesheet" type="text/css" href="/Public/Admin/css/main.css"/>
<!-- <link rel="stylesheet" type... |
<?php
function nmbulan($angka)
{
switch ($angka) {
case 1:
return "Januari";
break;
case 2:
return "Februari";
break;
case 3:
return "Maret";
break;
case 4:
return "April";
break;
... |
<?php
/*
* Copyright 2014 Google Inc.
*
* 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 applicable law or agreed t... |
<?php
namespace Admin\Controller;
use Admin\Controller;
class CompanyController extends IndexController {
public function __construct() {
parent::__construct();
include_once(COMMON_PATH.'Conf/MyConfig.php');
$this -> assign('com_config', $com_config);
}
//查看企业资质首页
public function... |
<?php
namespace Artanis\BillPlz\Payment;
use Illuminate\Support\Facades\Config;
use Webkul\Payment\Payment\Payment;
use Billplz\Client;
use Illuminate\Http\RedirectResponse;
use Symfony\Component\HttpFoundation\Response;
class BillPlz extends Payment
{
/**
* Payment method code
*
* @var string
... |
<?php
use common\models\Registerdetail;
function thai_date($time){
global $thai_day_arr,$thai_month_arr;
// $thai_date_return=" ".$thai_day_arr=array("อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์")[date("w",$time)];
$thai_date_return= "วันที่ ".date("j",$time);
$thai_date_return.=" ".$tha... |
<?php
declare(strict_types=1);
namespace FR3D\SwaggerAssertions\PhpUnit;
use JsonSchema\Validator;
/**
* Validate request query parameters match against defined Swagger request query schema.
*/
class RequestQueryConstraint extends JsonSchemaConstraint
{
/**
* @param \stdClass[] $queryParameters
* @p... |
@php
@include ('contato')
@endphp |
<?php
declare(strict_types=1);
namespace Doctrine\ODM\MongoDB\Persisters;
use BadMethodCallException;
use DateTime;
use Doctrine\Common\Persistence\Mapping\MappingException;
use Doctrine\ODM\MongoDB\DocumentManager;
use Doctrine\ODM\MongoDB\Hydrator\HydratorException;
use Doctrine\ODM\MongoDB\Hydrator\HydratorFactor... |
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Review;
use App\Http\Resources\ReviewResource;
use App\Booking;
class ReviewController extends Controller
{
public function show($id)
{
return new ReviewResource(Review::findOrFail($id));... |
<?php
declare( strict_types = 1 );
namespace App\Model\Values;
use App\Enum\AbstractEnum;
class UserLoginFields extends AbstractEnum {
const ID = 'id';
const USER_ID = 'user_id';
const LOGIN_ID = 'login_id';
} |
<?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit2314778f9f73acad6c6c580cf58dc1ea::getLoader(); |
<?php
/**
* Setup the environment
*/
date_default_timezone_set('UTC');
if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
require __DIR__ . '/../vendor/autoload.php';
} else {
require __DIR__ . '/../src/Autoload.php';
} |
<?php
/*
The MIT License (MIT)
Copyright (c) 2014-2015 Ng Simon
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, ... |
<?php
namespace CodeEduBook\Repositories;
use CodePub\Criteria\CriteriaTrashedInterface;
use CodePub\Repositories\RepositoryRestoreInterface;
use Prettus\Repository\Contracts\RepositoryCriteriaInterface;
use Prettus\Repository\Contracts\RepositoryInterface;
/**
* Interface BookRepository
* @package namespace CodeP... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.