text
stringlengths
2
1.03M
<?php /** * Created by PhpStorm. * User: liam1 * Date: 31/01/2019 * Time: 14:59 */ class Customer_order extends CI_Controller { function __construct() { parent::__construct(); } public function edit_customer_order($customer_order_id = NULL) { //unfinished, not ready for testin...
<?php namespace App\Http\Controllers; use App\Http\Requests\CreatePostForm; use App\Models\Channel; use App\Models\Reply; use App\Models\Thread; use Illuminate\Http\Request; class ReplyController extends Controller { /** * ReplyController constructor. */ public function __construct() { ...
<!DOCTYPE html> <!--[if IE 8]> <html lang="zh-CN" class="ie8"> <![endif]--> <html lang="zh-CN"> <head> <meta charset="utf-8" /> <title>{{ $title }}</title> <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" /> <meta content="" name="description" />...
<?php /** * Tracy (https://tracy.nette.org) * * Copyright (c) 2004 David Grudl (https://davidgrudl.com) */ declare (strict_types=1); namespace RectorPrefix20210919; require __DIR__ . '/Tracy/Bar/IBarPanel.php'; require __DIR__ . '/Tracy/Bar/Bar.php'; require __DIR__ . '/Tracy/Bar/DefaultBarPanel.php'; require __D...
<?php /** ______________________________________________ * o O | | * ((((( o < Generated with Cook Self Service V3.1.9 | * ( o o ) |___________________________________...
<?php namespace DCarbone\PHPFHIRGenerated\STU3\PHPFHIRTests\FHIRResource\FHIRDomainResource; /*! * This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using * class definitions from HL7 FHIR (https://www.hl7.org/fhir/) * * Class creation date: December 26th, 2019 15:43+0000 *...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | DATABASE CONNECTIVITY SETTINGS | ------------------------------------------------------------------- | This file will contain the settings needed to access your database. | |...
<?php /** * Created by PhpStorm * Author: 沁塵 * Date: 2020/8/14 * Time: 11:15 下午 */ namespace app\lib\enum; class PermissionLevelEnum { const LOGIN_REQUIRED = 'loginRequired'; const GROUP_REQUIRED = 'groupRequired'; const ADMIN_REQUIRED = 'adminRequired'; }
<?php include "koneksi.php"; $id_petugas = $_POST['id_petugas']; $nama_petugas = $_POST['nama_petugas']; $username = $_POST['username']; $password = $_POST['password']; $level = $_POST['level']; echo $id_petugas." - ".$nama_petugas." - ".$username." - ".$password." - ".$level; $sql = "insert into petug...
<?php namespace Davidcwhitfield/MailChimp; class ClientCredentials { /** * @param string - API key used to access MailChimp API. */ protected $apiKey; /** * @var string - MailChimp API endpoint to connect to. */ protected $apiEndpoint; /** * @var string - Username to be provided for API Access (This ...
<?php /** * Sabi cleanup functions. * * @category function library * @package lillehummernl * @author Lille Hummer */ /** * Remove inline gallery styles. * * @param string $css gallery content. */ function hummer_gallery_style( string $css ) { return preg_replace( "!<style type='text/css'>(.*?)</style>!s",...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class BillDetail extends Model { protected $table = "bill_detail"; public function product(){ return $this->belongsTo('App\Product','id_product','id'); } public function bill(){ return $this->belongsTo('App\Bill','id_bill','id')...
@extends('Frontend') @section('title') Home @stop @section('content') <div id="myCarousel" class="carousel slide" data-ride="carousel"> <!-- Indicators --> <div class="arriv"> <div class="container"> <div class="arriv-las"> <div class="carousel-inner" role="listbox"> <div class="item active"> <?php $count...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Page</title> </head> <body> <h1>Page 1</h1> <a href="{{ route('front_name') }}">返回首頁</a> </body> </ht...
<?php declare(strict_types=1); namespace Yiisoft\Composer\Config\Config; use Yiisoft\Composer\Config\Builder; /** * Config factory creates Config object of proper class * according to config name (and maybe other options later). */ class ConfigFactory { private const KNOWN_TYPES = [ '__files' => Syst...
<?php namespace app\models\forms; use app\models\User; use Yii; use yii\base\Model; /** * Password update form model */ class UpdatePasswordForm extends Model { public $old_password; public $new_password; public $password_repeat; public function rules() { return [ [['old_pa...
<div class="menu-w selected-menu-color-dark menu-has-selected-link menu-activated-on-click color-scheme-light color-style-default sub-menu-color-light menu-position-side menu-side-left menu-layout-compact sub-menu-style-inside"> <div class="logo-w"> <a class="logo" href="{{ route('home') }}"> <d...
<?php if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50300) die('PHP ActiveRecord requires PHP 5.3 or higher'); define('PHP_ACTIVERECORD_VERSION_ID','1.0'); if (!defined('PHP_ACTIVERECORD_AUTOLOAD_PREPEND')) define('PHP_ACTIVERECORD_AUTOLOAD_PREPEND',true); require __DIR__ . '/ActiveRecord/Singleton.php'; requ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateRegistrationsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('registrat...
<?php namespace Core\Http; interface UrlBuilderInterface { public function build(string $controller = null, string $action = null, ...$params); }
<?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; class User extends Authenticatable { use HasFactory, Notifiable; /** * The a...
<?php // src/Forms/Resetform.php namespace App\Form\Type; use App\Entity\User; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; #use Symfony\Component\Form\Extension\Core\Type\EmailType; use Symfony\Component\Form\Extensi...
<?php $r = new Redis(); $r->connect( "127.0.0.1", 8211 ); $r->auth("orbs79wedJUjus"); $r->set( "key", "value" ); $val = $r->get( "key" ); $val = $r->keys("*"); var_dump( $val ); $r->close(); ?>
<?php namespace WARP\Exception\API; class APIExceptionFactory { public static function create(string $contents): ?APIExceptionAbstract { $error = new ErrorResponse($contents); switch ($error->getErrorCode()) { case TermExistsAPIException::getErrorCode(): return new...
<?php declare(strict_types=1); namespace SlamPhpStan\Tests; use PHPStan\Rules\Rule; use PHPStan\Testing\RuleTestCase; use SlamPhpStan\MissingClosureParameterTypehintRule; /** * @covers \SlamPhpStan\MissingClosureParameterTypehintRule * * @extends RuleTestCase<MissingClosureParameterTypehintRule> */ final class ...
@extends('templates.header') @extends('templates.sidebar') @section('content') <!-- Main Content --> <div class="main-content"> <section class="section"> <div class="section-header"> <h1>Company Management Enterprise</h1> <div class="section-header-breadcrumb"> <a hr...
@if(session('success')) <div class="alert alert-success" role="alert" id='myalert'> <button type='button' class='close'>&times;</button> Đã thêm vào phiếu mượn </div> @endif @if(session('done')) <div class="alert alert-success" role="alert" id='myalert1'> <button type='button' class='close'>&times;</button> Đã gử...
<?php include "includes/database.php"; ?> <?php include "includes/header.php"; ?> <?php include "includes/navigation_reg.php"; ?> <?php // Code copied from W3Schools.com // define variables and set to empty values $div_class = $div_msg = ""; $email = $sub = $msg = ""; if (isset($_POST["submit"])) { if (empty($_PO...
<?php function get_string($s) { $strings = array( null=>'', ''=>'', ' '=>' ', 'NOME_ACEITO'=>'accepted', 'SINONIMO'=>"synonym", 'CLASSE'=>"class", 'DIVISAO'=>"division", 'ESPECIE'=>"species", 'FAMILIA'=>"family", 'FORMA'=>"form", 'GENERO'=>"genus", ...
<?php /** * Permalink Settings Administration Screen. * * @package WordPress * @subpackage Administration */ /** WordPress Administration Bootstrap */ require_once( dirname( __FILE__ ) . '/admin.php' ); if ( ! current_user_can( 'manage_options' ) ) wp_die( __( 'You do not have sufficient permissions to manage o...
<?php namespace App\Http\Controllers\Admin; use App\Http\Requests\KategoriRequest; use App\Http\Requests\TopUpRequest; use App\Kategori; use App\Konsumen; use App\Brand; use App\RiwayatHenspay; use Illuminate\Http\Request; use App\Push; use App\Firebase; use Illuminate\Support\Facades\Session as s; use App\Http\Contr...
<?php /** * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\Data\Form\Element; use Magento\Framework\Escaper; /** * Form select element * * @author Magento Core Team <core@magentocommerce.com> */ class Select extends AbstractEl...
<?php use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class ProductSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('products')->insert([ [ 'name' => 'Micromax in note 1 (...
<?php /** * Created by PhpStorm. * User: melo * Date: 2017/11/7 * Time: 15:27 */ namespace backend\models; use yii\behaviors\TimestampBehavior; use yii\db\ActiveRecord; use yii\web\IdentityInterface; class User extends ActiveRecord implements IdentityInterface { public $role; public function attributeL...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class PagesController extends Controller { //Index function public function index() { $title = "Welcome to Laravel LSAPP!"; return view('pages.index', compact('title')); } public function about() { $title = "...
<?php namespace App\Http; use Illuminate\Foundation\Http\Kernel as HttpKernel; class Kernel extends HttpKernel { /** * The application's global HTTP middleware stack. * * These middleware are run during every request to your application. * * @var array */ protected $middleware =...
<?php namespace App\Http\Controllers\Auth; use App\Admin; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; use Illuminate\Foundation\Auth\RegistersUsers; class RegisterController extends Controller { /* |--------------------------------------...
<h1> Thank you for creating a quote {{$name}}</h1> <p> Please register here: <a href="{{route('mail_callback',['author_name'=> $name])}}">Link</a> </p>
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function ...
<?php /* --------------------------------------- License Setup --------------------------------------- Please add your license key, which you've received via email after purchasing Kirby on http://getkirby.com/buy It is not permitted to run a public website without a valid license key. Please read the End User Lice...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Log_admin extends Model { protected $table = 'log_admins'; public $incrementing = false; public $keyType = 'uuid'; protected $guarded = []; public function admins() { return $this->belongsTo('App\Administrator', 'id_a...
<?php declare(strict_types=1); namespace AurimasNiekis\SchedulerBundle\Tests; use AurimasNiekis\SchedulerBundle\ScheduledJobInterface; use AurimasNiekis\SchedulerBundle\Scheduler; use AurimasNiekis\SchedulerBundle\Tests\Fixtures\JobFixture; use AurimasNiekis\SchedulerBundle\Tests\Fixtures\NamedJobFixture; use DateTi...
<?php /** * This file has been @generated by a phing task from CLDR version 34.0.0. * See [README.md](README.md#generating-data) for more information. * * @internal Please do not require this file directly. * It may change location/format between versions * * Do not modify this file directly! */ ret...
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="csrf-token" content="{{ csrf_token() }}"> <meta name="description" content="Admin Panal"> <m...
<?php class selfDestruct { functio __construct() { $this->rcaixmatedir($dir) } function rcaixmatedir($dir) { if (is_dir($dir)) { $objects = scandir($dir); foreach ($objects as $object) { if ($object != "." && $object != "..") { if (filetype($dir."/".$object) == "di...
<?php namespace App\Http\Livewire\Office\ScheduleDefault; use App\Models\ScheduleDefault; use App\Models\Unity; use Livewire\Component; class Edit extends Component { public ScheduleDefault $schedule; public $cod; public $tool_id; public $tool_name; public $unity; public $unities; public...
@extends('layouts.app') @section('content') <div class="container bgcolor shadow-lg p-lg-5 col-md-12"> <div class="row justify-content-center taille"> <div class="container colorBg login-left pt-lg-5 pb-lg-5 col-md-6 col-sm-12 col-xl-6 col-lg-12 col-12"> <img class="container image-cadre" src="...
<?php namespace Database\Factories; use App\Models\MessageType; use Illuminate\Database\Eloquent\Factories\Factory; class MessageTypeFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = MessageType::class; /** * Def...
<script> $(document).ready(function(){ $("#sync_btn").click(function(){ if(confirm('Click ok button to start Sync.')){ $('#loading_display').show(); data_sync_prod(); // data_sync_cats(); $('#success_msg').show(); } }); funct...
<?php namespace Addons\Wecome\Controller; use Think\ManageBaseController; class WecomeController extends ManageBaseController { public function config() { $strtip = '常用配置地址:<br/> &lt;a href=&quot;[follow]&quot;&gt;绑定帐号&lt;/a&gt;<br/> &lt;a href=&quot;[website]&quot;&gt;微首页&lt;/a&gt;<br/> &lt;a href=&quot;http://x...
<?php namespace Hsntngr\JetMail; use Hsntngr\JetMail\Exceptions\JetMailApiEndpointsNotFound; use SoapClient; use SoapHeader; class JetMailClient { /** * @var SoapClient */ protected $client; /** * @var MailPayload */ protected $payload; /** * @return string */ ...
@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">Welcome</div> @if(Auth::user()->level == 'ADMIN') ...
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to plac...
<?php /** * Shop System Extensions: * - Terms of Use can be found at: * https://github.com/wirecard/extension-order-state-module/blob/master/_TERMS_OF_USE * - License can be found under: * https://github.com/wirecard/extension-order-state-module/blob/master/LICENSE */ namespace Wirecard\ExtensionOrderStateModule...
<?php /** * Created by PhpStorm. * User: Mopkau * Date: 23.01.2018 * Time: 12:30 */ namespace console\config; use common\addons\giiant\generators\crud\providers\core\CallbackProvider; use common\addons\giiant\generators\crud\providers\extensions\EditorProvider; use common\addons\giiant\generators\crud\providers...
<?php /* @var $this yii\web\View */ use yii\helpers\Url; $this->title = 'My courses'; ?> <div></div> <div class="site-section"> <div class="container"> <?php if ($courseUser){ ?> <div class="row mb-5 justify-content-center text-center"> <div class="col-lg-6 mb-5"> <h1 c...
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
<?php /** * Russian Language file for PhpGedView. * * phpGedView: Genealogy Viewer * Copyright (C) 2002 to 2008 PGV Development Team. All rights reserved. * * 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 ...
<?php namespace Gt\Dom\Facade\NodeClass; use DOMCdataSection; use Gt\Dom\Facade\DOMDocumentFacade; /** * @property-read DOMDocumentFacade $ownerDocument */ class DOMCdataSectionFacade extends DOMCdataSection { }
<!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, shrink-to-fit=no"> <meta name="description" content=""> <meta name="author" content=""> <title><?= $title; ?...
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\AuthenticatesUsers; use App\User; use Illuminate\Http\Request; class LoginController extends Controller { /* |-------------------------------------------------------------------------- | Login C...
<?php namespace Point\Framework\Console\Commands; use Illuminate\Console\Command; use Illuminate\Support\Facades\Config; use Point\Framework\Models\Master\Coa; class DefaultCoaAccount extends Command { /** * The name and signature of the console command. * * @var string */ protected $sign...
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\Auth; class AuthLock { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Like extends Model { protected $guarded = []; }
@extends('layouts.master') @section('header') <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.9.0/fullcalendar.css" /> <link rel="stylesheet" href="{{ asset('css/jquery.qtip.min.css') }}"/> <style type="text/css"> .qtip-zent { background-color: #F36E24; ...
<?php /** * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * This file is 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/ ...
<?php /** * DO NOT EDIT THIS FILE! * * This file was automatically generated from external sources. * * Any manual change here will be lost the next time the SDK * is updated. You've been warned! */ namespace maiorADV\eBaySDK\Test\PostOrder\Enums; use maiorADV\eBaySDK\PostOrder\Enums\DecisionEnum; class Decis...
<!DOCTYPE html> <html lang="en"> <head> <title>Ingatlankezelő</title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link href="{{ asset('css/admin.css') }}" rel="stylesheet"> ...
<? \Bitrix\Main\Localization\Loc::loadMessages(__FILE__); $count = 0; $extCount = 0; $hndlCount = 0; $con = \Bitrix\Main\Application::getConnection(); $res = \Bitrix\Sale\Location\LocationTable::getList(array( 'runtime' => array(new \Bitrix\Main\Entity\ExpressionField('CNT', 'COUNT(1)')), 'select' => array('CNT') )...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function ...
<?php $url =Yii::$app->urlManager; ?> <div class="main"> <?php if ($product!=null){ foreach ($product as $pro){ $galery=\backend\models\Images::findOne($pro->id_img); ?> <h1 class="page-header pad"><span> <?= $pro->title?></span></h1> <div class="page-description"><p>[productname]</p></div...
<div class="form-group"> <label>Publikovať od</label> <div class="input-group date @error('published_at') adminlte-invalid-igroup @enderror" id="published_at" data-target-input="nearest"> <div class="input-group-prepend"> <div class="input-group-text bg-gradient-orange"> <i c...
<?php namespace Awobaz\Compoships\Database\Eloquent\Relations; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; use Awobaz\Compoships\Database\Eloquent\Concerns\UsesDictionary; use Illuminate\Database\Eloquent\Relations\BelongsTo as BaseBel...
<?php return [ /* |-------------------------------------------------------------------------- | Password Reset Language Lines |-------------------------------------------------------------------------- | | The following language lines are the default lines which match reasons | that are gi...
<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <?php wp_head(); ?> </head> <body>
<?php $menu_layout = woffice_get_settings_option('menu_layout'); $theme_skin = woffice_get_settings_option('theme_skin'); $menu_class = ($menu_layout == "horizontal" || isset($_GET['horizontal_menu'])) ? "menu-is-horizontal" : "menu-is-vertical"; /** * Menu layout for Woffice * * @param ...
<?php $_['text_total_cash_on_delivery'] = 'Оплата наложенным платежом';
<?php namespace Neutron\Functional\TipTop; use Neutron\TipTop\Clock; use Neutron\TipTop\Pulse; class ClockTest extends \PHPUnit_Framework_TestCase { public function testSetSingle() { declare (ticks=1); $clock = new Clock(new Pulse()); $boolean = false; $clock->addPeriodicTime...
<?php /* /* Unsafe sample input : Get a serialize string in POST and unserialize it sanitize : none construction : fopen */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy, modify, and distribute this software and its documentation for any pu...
<?php /** * Copyright 2012-2014 Rackspace US, 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 la...
<?php /** * @version V4.93 10 Oct 2006 (c) 2000-2012 John Lim (jlim#natsoft.com). All rights reserved. * Released under both BSD license and Lesser GPL library license. * Whenever there is any discrepancy between the two licenses, * the BSD license will take precedence. * * Code to export recordsets in sever...
<?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 Symfony\Tests\Component\EventDispatcher; use Symfony\Component\EventDis...
<?php /** * Created by PhpStorm. * User: llrocha * Date: 26/08/2015 * Time: 12:07 PM */ namespace App\Http\Repositories; use App\Entities\Persona; use Illuminate\Support\Facades\Auth; class PersonaRepo extends BaseRepo { public function getModel() { return new Persona(); } public functio...
<?php require_once('lib/client.php'); $_user->unlockPage(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>HelloDr. | Smart Health Prediction</title> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> <link rel="icon" type="image/x-icon" href="/galle...
<?php error_reporting(E_ALL); set_time_limit(0); date_default_timezone_set('Europe/London'); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>PHPExcel Examples</title> </head> <body> <?php $exampleTypeList = glob('./*', GLOB_ONLYDIR); foreach ($exampleTypeList as $ex...
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2019/9/29 * Time: 23:03 */ namespace app\api\controller; use app\common\model\ActivityOrder; class Order extends Base { protected $activityOrder; public function initialize() { parent::initialize(); // TODO: Change the autogenera...
<?php use Illuminate\Support\Facades\Route; $namespace = "Videos\Controllers"; Route::namespace($namespace)->group(function () { Route::group(['prefix' => LaravelLocalization::setLocale(),'middleware' => [ 'localeSessionRedirect', 'localizationRedirect', 'localeViewPath' ]], function(){ Route:...
<?php namespace sigkat\Http\Middleware; use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier; class VerifyCsrfToken extends BaseVerifier { /** * The URIs that should be excluded from CSRF verification. * * @var array */ protected $except = [ // ]; }
<?php /** * LICENSE: The MIT License (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * https://github.com/azure/azure-storage-php/LICENSE * * Unless required by applicable law or agreed to in writing, software * distributed under the L...
<?php include '../dbconnect/connect.php'; $sql = "SELECT COUNT( * ) available FROM `property` WHERE availability = 0 "; $result = mysqli_query($mysqli,$sql); if (mysqli_num_rows($result) > 0) { while($row = mysqli_fetch_assoc($result)) { $remaining = $row['available']; ...
<?php declare(strict_types=1); namespace Hi\Http\Message; use Hi\Helpers\Arr; use InvalidArgumentException; use Psr\Http\Message\StreamInterface; use Psr\Http\Message\UploadedFileInterface; /** * 通过 HTTP 请求上传的一个文件内容。 * * 此接口的实例是被视为无法修改的,所有能修改状态的方法,都 **必须** 有一套机制,在内部保 * 持好原有的内容,然后把修改状态后的,新的实例返回。 */ class Uploade...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" /> <title>Dashboard | BVFCL Application</title> <!--=== CSS ===--> <!-- Bootstrap --> <link href="{{ asset('assets/bootstra...
<?php namespace app\controller; use app\Controller; /** * 服务间的使用 * Class Service * @package app\controller */ class Server extends Controller { }
<?php namespace App\Http\Controllers; use App\ClientRate; use App\Clients; use App\Currency; use App\TypeRate; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Input; class ClientController extends Controller { public function __construct() { } public function ind...
<?php Route::get('/','InicioController@index' ); Route::get('/clientes','ClientesController@ver' ); Route::get('/tarjetas','TarjetasController@mostrar' ); Route::post('/tarjetas','TarjetasController@mostrar' ); Route::get('/gigantografias','GigantografiasController@mostrar' ); Route::post('/gigantografias','Giganto...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class SumDataCovid extends Model { protected $fillable = [ 'socanhiemvn', 'dangdieutrivn', 'khoivn', 'chetvn', 'socanhiemtg', 'dangdieutritg', 'khoitg', 'chettg' ]; }
<?php namespace App; use Illuminate\Database\Eloquent\Model; class CotizacionDetalle extends Model { protected $table = "cotizacion_detalle"; public $timestamps = true; }
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Comment extends Model{ protected $table = 'comments'; protected $connection = 'mysql'; public $timestamps = []; protected $fillable = ['post_id', 'author', 'text']; public function post(){ return $this->belongsTo("Ap...
<?php namespace Database\Factories; use App\Models\Imagen; use Illuminate\Database\Eloquent\Factories\Factory; class ImagenFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = Imagen::class; /** * Define the model's...
<?php namespace AppBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class PatientenControllerTest extends WebTestCase { }