text
stringlengths
2
1.03M
<?php /* * This file is part of SwiftMailer. * (c) 2004-2009 Chris Corbyn * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /* * Autoloader and dependency injection initialization for Swift Mailer. */ if (defined('SWIFT_REQUIRED_...
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class pdf { function pdf() { $CI = & get_instance(); log_message('Debug', 'mPDF class is loaded.'); } function load($param=NULL) { include_once APPPATH.'/third_party/mpdf/mpdf.php'; if ($params == NULL) { $param = ...
<?php $filename = "External Lecturers.csv"; header("Content-Type: application/csv"); //mime type header('Content-Disposition: attachment;filename="'.$filename.'"'); //tell browser what's the file name header("Cache-Control: max-age=0"); //no cache $file = fopen('php://output','w'); // $header ...
@extends('loginReg.layouts.master') @section('title', 'Welcome to EMS') @section('content') <div class="login_wrapper"> <div class="login_panel log_section"> <div class="login_head"> <h1>Log In to EMS</h1> </div> <form action="{{ route('login') }}" method="POST"> <div class="form-group"> <lab...
<?php /** * Class to handle compiling template tag calls for "checkboxunit" in admin areas. * * @package XenForo_Template */ class XenForo_Template_Compiler_Tag_Admin_CheckBoxUnit extends XenForo_Template_Compiler_Tag_Admin_Abstract implements XenForo_Template_Compiler_Tag_Interface { /** * Compile the specified tag...
<?php namespace GraphAware\SimpleMQ\Tests\Integration; use GraphAware\SimpleMQ\SimpleMQ; use Symfony\Component\Yaml\Yaml; class ConsumerIntegrationTest extends \PHPUnit_Framework_TestCase { /** * @var \GraphAware\SimpleMQ\SimpleMQ; */ protected $simpleMQ; public function setUp() { ...
@extends("layouts.app") @section("content") <div class="jumbotron col-xs-12"> <div id="map"></div> </div> <script> function initMap() { // Create a map object and specify the DOM element for display. var buildingOne = {lat: 8.963038, lng: 38.839705}; var map = new google.maps.Map(d...
@extends('layouts.mainLayout.main_layout') @section('content') <div class="row"> <div class="col-xs-6"> <div class="LeftTable"> <div class="panel panel-default"> <h1 align="center">{{ __('message.squad') }} 1.</h1> <div class="panel-hea...
<meta http-equiv="refresh" content=0;url="login.php">
<?php namespace App\Model\Foto_prewed; use Illuminate\Database\Eloquent\Model; class Foto_prewed extends Model { protected $table = 'foto_prewed'; protected $primaryKey = 'id_foto_prewed'; }
<?php namespace Modules\Admin\Http\Controllers; /** * A class to get information of application * @author Casudin (com.casudin@gmail.com) * @version 1.0 * @since 2019-10-10 */ use Illuminate\Http\Request; use Illuminate\Http\Response; //use Illuminate\Routing\Controller; use Nwidart\Modules\Routing\Controller; us...
<?php namespace Drupal\config\Tests; use Drupal\simpletest\WebTestBase; /** * Tests config overrides do not appear on forms that extend ConfigFormBase. * * @group config * @see \Drupal\Core\Form\ConfigFormBase */ class ConfigFormOverrideTest extends WebTestBase { /** * Tests that overrides do not affect f...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateSalesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('sales', function ...
@extends('layouts.app') @section('title', 'Account Login') @section('content') <div class="container mt10"> <div class="row" id="content-wrapper"> <div class="col-md-8 col-md-offset-2"> <div class="panel panel-info"> <div class="panel-heading"><div class="heading text-center"><h1...
<?php namespace Swark\Tests\Unit\Subscriber; use Shopware\Components\Test\Plugin\TestCase; use Swark\Subscriber\SaveOrderSubscriber; use Swark\Tests\Mocks\OrderServiceMock; /** * Class SaveOrderSubscriberTest */ class SaveOrderSubscriberTest extends TestCase { protected static $ensureLoadedPlugins = [ ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateOurAbilityTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('our_ability'...
@extends('default') @section('content') <section class="box special"> <h2>Modifier une news</h2> <table> <thead> <tr> <th>titre</th> <th>utilisateur</th> <th>posté le</th> <th>Function</th> </tr> </thead> <tbody> @foreach ($news as $post) <tr> <td>{{ $post->tit...
<?php namespace Foostart\Slideshow\Controllers\Front; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use URL, Route, Redirect; use Foostart\Slideshow\Models\Slideshows; class SlideshowFrontController extends Controller { public $data = array(); public function __construct() { ...
<?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\MerchantData\Types; use maiorADV\eBaySDK\MerchantData\Types\CalculatedShippingRa...
@extends('layouts.app') @section('title','二手交易修改页面') @section('content') <div class="row"> <div class="container"> <div class="col-md-10 col-md-offset-1"> <div class="panel panel-primary"> <ul class="breadcrumb breadcrumb-1"> <h1>编辑二手...
<?php /** * Get Image Sizes * * By having this in a separate function, hopefully * it can be extended upon better. If any plugin or * other feature of the framework requires these * image sizes, they can grab 'em. */ function anva_get_image_sizes() { global $content_width; // Content Width. // Default width...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Home extends CI_Controller { public function __construct() { parent::__construct(); if ($this->session->userdata('id')) { $this->load->model('Ads'); $cat_id=$this->Ads->get_cat(); $d['adds']=$this...
<?php $__env->startSection('title_area'); ?> :: Designation Setup :: <?php $__env->stopSection(); ?> <?php $__env->startSection('show_message'); ?> <?php if(Session::has('message')): ?> <div class="alert alert-success alert-dismissible" id="alert_hide_after" role="alert" style="margin-bottom:10px; "> ...
<?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 namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Gate; class OrderController extends Controller { public function __construct() { $this->middleware(function($request, $next) { if(Gate::allows('manage-orders')) return $next($request); ...
<!doctype html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Kartu Rencana Studi</title> <style> @page { size: auto; /* auto is the initial value */ margin: 0mm; /* this affects the margin in the printer settings */ } .in...
<?php namespace App\Http\Controllers; use App\Models\Service; use App\Models\Work; use Illuminate\Http\Request; class ServiceController extends Controller { public function show( $slug ) { $service = Service::where( 'slug', '=', $slug )->firstOrFail()->load( 'meta' ); $works = Work::where( 'pu...
<?php /** * 后台物流 控制器 * [Haidao] (C)2013-2099 Dmibox Science and technology co., LTD. * This is NOT a freeware, use is subject to license terms * * http://www.haidao.la * tel:400-600-2042 */ Core::load_class('init', 'admin'); class admin_delivery_control extends init_control { public funct...
<?php namespace App\Services\Usuarios; use App\User; use App\Repository\Contracts\UserRepositoryInterface; /** * @author Tiago Franco * Servico responsavel pelas operacoes envolvendo os * cadastros de usuarios do sistema */ class UsuariosService { /** * @var UserRepositoryInterface */ private ...
<?php namespace App\Providers; use Illuminate\Support\Facades\Schema; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { /** * Register any application services. * * @return void */ public function register() { // } /** * B...
<?php use App\Models\Service; use App\Models\Price; use App\Models\Booking; use App\Models\Service_review; ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <!-- CSRF Token --> <meta name="csrf-token" content="{{ csrf_token() }}"> <!-- Scripts --> <script src="https...
<?hh <<__Rx>> function foo(): int { static $a; $a = 5; return $a; }
<!DOCTYPE html> <html lang="en-US"> <head> <meta charset="utf-8"> <title>Meta examples</title> <meta name="author" content="Chris Mills"> <meta name="description" content="This is an example page to demonstrate usage of metadata on web pages."> <meta property="og:image" content="https://developer.cdn.mozil...
<?php return [ /* |-------------------------------------------------------------------------- | Third Party Services |-------------------------------------------------------------------------- | | This file is for storing the credentials for third party services such | as Mailgun, Postmark...
<?php /* * Copyright 2021 LABOR.digital * * 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 ag...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Crud extends Model { public $timestamps = false; protected $table = "tb_crud"; protected $primaryKey = "id_crud"; protected $fillable = [ 'nombre', 'email', 'area', 'Curriculum' ]; }
<?php /* * This file is part of Fixhub. * * Copyright (C) 2016 Fixhub.org * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Fixhub\Bus\Jobs; use Fixhub\Models\Server; use Fixhub\Services\Scripts\Runner as Process; use Il...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); function content_link($id = '', $title = '') { $output = base_url($id); if(!empty($id) && is_numeric($id)) { $output = base_url('content/'.$id.'/').url_title($title).'.html'; }else if(!empty($id) && !is_numeric($id)) { $output = bas...
<?php class UNL_MediaHub_Subscription_AvailableFilters extends GlobIterator { function __construct($options = array()) { parent::__construct(__DIR__ . '/../MediaList/Filter/*.php'); } function current() { $filename = parent::current()->getFileName(); $filter_class = 'UNL_Med...
<?php /** * This file is part of the Kodazzi Framework. * * (c) Jorge Gaitan <info@kodazzi.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Kodazzi\Form\Fields; use Kodazzi\Container\Service; use Kodazzi\Orm\Databas...
--TEST-- runkit_default_property_remove() remove properties with inheritance --SKIPIF-- <?php if(!extension_loaded("runkit") || !RUNKIT_FEATURE_MANIPULATION) print "skip"; if(!function_exists('runkit_default_property_remove')) print "skip"; ?> --INI-- error_reporting=E_ALL display_errors=On --FILE-- <?php class R...
<?php /** * List Table API: WP_Theme_Install_List_Table class * * @package WordPress * @subpackage Administration * @since 3.1.0 */ /** * Core class used to implement displaying themes to install in a list table. * * @since 3.1.0 * @access private * * @see WP_Themes_List_Table */ class WP_Theme_Install_Li...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateDistrictTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('district', fun...
<?php function getSavesArray() { return [ 'priest' => [ 1 => [ 'paralyzation' => 10, 'rod' => 14, 'petrification' => 13, 'breath' => 16, 'spell' => 15, ], 4 => [ 'paralyzation'...
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2016, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this softw...
<?php function say($message, $times = 1) { for ($i = 0; $i < $times; $i++) { echo $message; } echo "\n"; } say('Hello'); say('World', 5);
<?php include_once("database/connection.php"); $nama_pelanggan = $_POST['nm']; $brg = $_POST['brg']; $nama_transaksi = $_POST['nama']; $tgl = $_POST['tgltransaksi']; $hrg = $_POST['harga']; $qty = $_POST['qty']; $disc = $_POST['disc']; $input_data_transaksi = mysqli_query($connect, "INSERT INTO transaksi (nama_tran...
<?php use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Pendidikans'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="pendidikan-index"> <p> <?= Html::a('Create Pendidikan', ['create'], ['class' =...
<?php namespace App\Http\Controllers; use App\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Storage; use Illuminate\Validation\Rule; class AdminUserController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct()...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Migration_Add_supply extends CI_Migration { public function up() { $this->dbforge->add_field(array( 'supply_id' => array( 'type' => 'INT', 'unsigned' => TRUE, 'auto_i...
<?php namespace App\Http\Controllers; use Illuminate\Foundation\Bus\DispatchesCommands; use Illuminate\Routing\Controller as BaseController; use Illuminate\Foundation\Validation\ValidatesRequests; abstract class Controller extends BaseController { use DispatchesCommands, ValidatesRequests; }
<?php function public_url($url=''){ return base_url('public/'.$url); } function admin_theme($url=''){ return base_url('public/admin_temp'.$url); } function pre($list,$exit=true){ echo "<pre>"; print_r($list); if($exit){ die(); } } function action_gioitinh($gioitinh) { if ($gioitinh == 1)...
<?php return [ /* |-------------------------------------------------------------------------- | Default Database Connection Name |-------------------------------------------------------------------------- | | Here you may specify which of the database connections below you wish | to use as...
@extends('layouts.master') @section('title')Редактировать событие@stop @section('content') <section> <div class="section-body"> <div class="row"> <div class="col-lg-12"> {!! Form::model($item, ['method' => 'put', 'url' => '/college/events/'.$item->id, 'class...
<?php namespace SPF\Http; use SPF; /** * Class Http_LAMP * @package SPF */ class PWS implements SPF\IFace\Http { function header($k, $v) { $k = ucwords($k); SPF\App::getInstance()->response->setHeader($k, $v); } function status($code) { SPF\App::getInstance()->response-...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateEtudiantsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('etudiants', f...
<?php /** @var \Illuminate\Database\Eloquent\Factory $factory */ use App\Post; use Faker\Generator as Faker; $factory->define(Post::class, function (Faker $faker) { return [ 'title' => $faker->sentence(), // My First Post 'slug' => \Str::slug($faker->sentence()), // my-first-post 'body...
<?php namespace App\Http\Controllers\Auth; class ValidationCode { private $width; private $height; private $codeNum; //验证码的个数 private $image; //图像资源 private $checkCode; //验证码字符串 function __construct($width=60,$height=20,$codeNum=4) { $this->width=$width; $this->height...
<?php namespace App\Traits; use League\Fractal\Resource\Collection; use League\Fractal\Resource\Item; /** * Class BaseAbstract * @package App\Traits */ trait BaseAbstract { use TransformerTrait; /** * @param $item * @param $callback * @param string $key * @return Item */ prote...
<?php namespace RecBundle\Repository; /** * parentrecRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class parentrecRepository extends \Doctrine\ORM\EntityRepository { }
<!DOCTYPE html> <html lang="en"> <!-- Mirrored from demo.smartaddons.com/templates/html/market/my-account.html by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 27 Aug 2020 15:48:51 GMT --> <!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8" /><!-- /Added by HTTrack --> <head> ...
<?php namespace com\alibaba\openapi\client; class APIId { /** * namespace of API, it is required * * @var string */ var $namespace; /** * name of API, it is required * @var string */ var $name; /** * version of API, optional. * If not setup, the default version defined in requestPolicy is us...
<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/storagetransfer/v1/transfer_types.proto namespace Google\Cloud\StorageTransfer\V1; use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil; /** * A summary of errors by er...
--TEST-- Fiber will expose status. --SKIPIF-- <?php if (!extension_loaded('task')) echo 'Test requires the task extension to be loaded'; ?> --FILE-- <?php use Concurrent\Fiber; $f = new Fiber(function () { Fiber::yield(); }); $line = __LINE__ - 1; var_dump($f->__debugInfo()['status']); var_dump($f->__debugInfo()...
<?php /** * Created by PhpStorm. * User: rocky * Date: 2022-05-23 * Time: 22:43 */ namespace ExAdmin\ui\component\echart; use Carbon\Carbon; /** * 柱状图 * Class BarChart * @package ExAdmin\ui\component\echart */ class BarChart extends LineChart { public function __construct() { parent::__const...
<?php final class DifferentialRemarkupRule extends PhabricatorObjectRemarkupRule { protected function getObjectNamePrefix() { return 'D'; } protected function loadObjects(array $ids) { $viewer = $this->getEngine()->getConfig('viewer'); return id(new DifferentialRevisionQuery()) ->setViewer($v...
@extends('dashboard.layouts.dashboard-layouts') @section('container') <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"> <h1 class="h2">Wellcome Back, {{ auth()->user()->name }}</h1> </div> @endsection
<!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><?php echo $page_title . ...
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'name', 'email',...
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to plac...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Post extends Model { public function category(){ return $this->belongsTo("App\Category"); } }
<?php /** * Test: Operation. * * @author Petr Bugyík * @package Grido\Tests */ namespace Grido\Tests; require_once __DIR__ . '/../bootstrap.php'; use Tester\Assert, Grido\Grid, Grido\Components\Operation; class OperationTest extends \Tester\TestCase { function testSetConfirm() { ...
<?php session_start(); if(!$_SESSION['admin']){ header("location:login.html"); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content=""> <meta name="author" content="...
<?php namespace Flipbox\SDK\Modules\Translation\Contracts; interface TranslationDriver { /** * Translate a key. * * @param string $key * @param string $locale * @param string|array $default * * @return string|array */ public function translate(string $key, s...
<?php return array ( 'codeToName' => array ( 0 => 'uni0000', 13 => 'uni000D', 32 => 'space', 33 => 'exclam', 34 => 'quotedbl', 35 => 'numbersign', 36 => 'dollar', 37 => 'percent', 38 => 'ampersand', 39 => 'quotesingle', 40 => 'parenleft', 41 => 'parenright', 42 =...
<?php namespace Acuerdos\SeguridadBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class UsuarioControllerTest extends WebTestCase { /* public function testCompleteScenario() { // Create a new client to browse the application $client = static::createClient(); ...
<?php /** * Diff table and column constraints * * @package DBSteward * @subpackage mysql5 * @license http://www.opensource.org/licenses/bsd-license.php Simplified BSD License * @author Austin Hyde <austin109@gmail.com> */ class mysql5_diff_constraints extends sql99_diff_constraints { public static function di...
<?php /** * This class has been auto-generated by the Doctrine ORM Framework */ class Version95 extends Doctrine_Migration_Base { public function up() { $this->removeColumn('oauth_clients', 'customer_id'); $this->addColumn('oauth_clients', 'admin_id', 'integer', '4', array( 'notnu...
<?php namespace DSIproject\Http\Controllers\Auth; use DSIproject\User; use DSIproject\Http\Controllers\Controller; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; use Illuminate\Foundation\Auth\RegistersUsers; class RegisterController extends Controller { /* |------------------...
<?php namespace app\models; use Yii; /** * This is the model class for table "country". * * @property int $ixCountry * @property string $sName * @property string $sFormattedName * @property string $ixCountry2 * @property int $sIsoNumCode * @property string $sRegion */ class Country extends \yii\db\ActiveRec...
<?php namespace app\models; use yii\base\Model; use yii\data\ActiveDataProvider; use app\models\Estudiante; /** * EstudianteSearch represents the model behind the search form of `app\models\Estudiante`. */ class EstudianteSearch extends Estudiante { /** * {@inheritdoc} */ public function rules() ...
<?php if(basename($_SERVER["PHP_SELF"]) == "main.php"){ die("403 - Access Forbidden"); } if($_SESSION['id']){ if($_SESSION['admin']){ if($getbase == "admin"){ if($admin == ""){ $getcomments = $mysqli->query("SELECT author, feedback, date, comment FROM ".$prefix."bcomments UNION ALL SELECT author, feedbac...
<?php /** * ALIPAY API: koubei.marketing.campaign.recruit.shop.query request * * @author auto create * @since 1.0, 2020-08-31 10:35:06 */ class KoubeiMarketingCampaignRecruitShopQueryRequest { /** * 招商门店分页查询接口 **/ private $bizContent; private $apiParas = array(); private $terminalType; private $terminal...
<?php header('Content-type:text/html; Charset=utf-8'); $scheme = $_SERVER['HTTPS']=='on' ? 'https://' : 'http://'; $baseUrl = urlencode($scheme.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].$_SERVER['QUERY_STRING']); echo $baseUrl ; ?>
<?php /*@var $this ConsumibleController */ /* @var $model Consumible */ /* @var $form CActiveForm */ ?> <div class="wide form"> <?php $form=$this->beginWidget('CActiveForm', array( 'action'=>Yii::app()->createUrl($this->route), 'method'=>'get', )); ?> <div class="row"> <div class="col-xs-12 col-sm-4 col-md-3...
<?php // +---------------------------------------------------------------------- // | Constructed by Jokin [ Think & Do & To Be Better ] // +---------------------------------------------------------------------- // | Copyright (c) 2016-2018 Jokin All rights reserved. // +------------------------------------------------...
<?php /** * @package Grav.Common * * @copyright Copyright (C) 2015 - 2018 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ namespace Grav\Common; class Session extends \Grav\Framework\Session\Session { /** @var bool */ protected $autoStart = false; ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" r...
<?php /** * Comment model class: * * This is the model class for table "Comment". * * @const int STATUS_APPROVED - Принят * @const int STATUS_DELETED - Удален * @const int STATUS_NEED_CHECK - Проверка * @const int STATUS_SPAM - Спам * * @var public $verifyCode - капча * @var ...
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2015, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this softw...
<?php namespace App\Http\Controllers; use App\Models\Galerie; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Image; use Illuminate\Support\Facades\Storage; use App\Models\User; class GalerieController extends Controller { /** * Display a listing of the resource. * * @return ...
<?php namespace App\Http\Controllers; use App\Http\Requests\UserRequest; use App\Models\SubjectLearning; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class UserController extends Controller { public function logout(Request $request){ Auth::logout(); $req...
@extends('layouts.master') @section('content') <div class="col-lg-12"> <h1 class="page-header">Thu nhập tháng {{ date('m - Y') }}</h1> </div> <div class="panel-body"> <h3>Số view hôm nay: {{ number_format($today) }}</h3> <h3>Số view hôm qua: {{ number_format($yesterday) }}</h3> <h3>Số v...
<?php use Illuminate\Support\Str; return [ /* |-------------------------------------------------------------------------- | Default Database Connection Name |-------------------------------------------------------------------------- | | Here you may specify which of the database connections b...
<?php /** * This file is part of the Makise-Co Framework * * World line: 0.571024a * (c) Dmitry K. <coder1994@gmail.com> */ declare(strict_types=1); namespace MakiseCo\Http\Tests\Commands; use MakiseCo\Application; use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Tester\CommandTester; class RouteD...
<?php namespace App\Http\Controllers; use App\EvidenceActionRoot; use Illuminate\Http\Request; class EvidenceActionRootController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // } /** ...
<?php use Illuminate\Http\Request; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register API routes for your application. These | routes are loaded by the RouteServicePr...
<?php use yii\helpers\Html; use yii\widgets\DetailView; use kartik\grid\GridView; /* @var $this yii\web\View */ /* @var $model app\models\mgcms\db\Product */ $this->title = $model->name; $this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Product'), 'url' => ['index']]; $this->params['breadcrumbs'][] = $this...
<?php namespace Cerbero\LazyJsonPages\Concerns; use Cerbero\LazyJsonPages\Exceptions\OutOfAttemptsException; use Cerbero\LazyJsonPages\Outcome; use Throwable; /** * The trait to retry HTTP requests when they fail. * */ trait RetriesHttpRequests { /** * Retry to return the result of HTTP requests * ...
<?php namespace Google\AdsApi\Dfp\v201805; /** * This file was generated from WSDL. DO NOT EDIT. */ class ProposalLineItemPremium { /** * @var \Google\AdsApi\Dfp\v201805\PremiumRateValue $premiumRateValue */ protected $premiumRateValue = null; /** * @var string $status */ prot...