text
stringlengths
2
1.03M
<?php namespace Illuminate\Foundation\Console; use Illuminate\Console\Command; class OptimizeCommand extends Command { /** * The console command name. * * @var string */ protected $name = 'optimize'; /** * The name of the console command. * * This name is used to ident...
<?php declare(strict_types=1); namespace Wazelin\UserTask\Core\Contract; use Symfony\Component\HttpFoundation\Exception\BadRequestException; use Symfony\Component\HttpFoundation\Request; interface WebRequestDataExtractorInterface { /** * @param Request $request * @return array * * @throws Ba...
<?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 /** * Copyright 2007-2017 Horde LLC (http://www.horde.org/) * * See the enclosed file COPYING for license information (LGPL). If you did * not receive this file, see http://www.horde.org/licenses/lgpl21. * * @author Duck <duck@obala.net> * @category Horde * @license http://www.horde.org/licenses/lgpl21...
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * Produit * * @ORM\Table(name="produit") * @ORM\Entity(repositoryClass="AppBundle\Repository\ProduitRepository") */ class Produit { /** * @var int * * @ORM\Column(name...
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Support\Facades\Auth; class User extends Authenticatable { use Notifiable; /** * Метод возвращает правила валидации. *...
<?php final class DarkConsoleXHProfPlugin extends DarkConsolePlugin { protected $profileFilePHID; public function getName() { return pht('XHProf'); } public function getColor() { $data = $this->getData(); if ($data['profileFilePHID']) { return '#ff00ff'; } return null; } publi...
<!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:...
<?php namespace App\Http\Controllers\ApiSIMRS\Apm; use App\Http\Controllers\Controller; use App\Http\Resources\RujukanInternalResource; use App\Service\Simrs\ServiceRujukanInternal; use App\Validation\RujukanInternal; use Illuminate\Http\Request; class RujukanInternalController extends Controller { protected $se...
<?php include dirname(__FILE__).'/include/header.php'; //include './user_config.php'; /*included in header.php*/ //include_once '....library/Utils.php'; $param_name_user = "u"; $param_name_passw = "p"; $_USER = null; if(session_status()!=PHP_SESSION_ACTIVE)session_start(); $first_time = true; $_SESSION["u_valid"] = ...
<?php class A { const ARRAY = 1; const FUNCTION = 1; const LIST = 1; } class B { const FUNCTION = 1; } class C { const INCLUDE = 1; const DEFAULT = 2; }
<?php namespace modules\site\models\query; use modules\lang\models\Lang; /** * This is the ActiveQuery class for [[\modules\site\models\Technology]]. * * @see \modules\site\models\Technology */ class TechnologyQuery extends \yii\db\ActiveQuery { /*public function active() { $this->andWhere('[[stat...
<?php return [ /* |-------------------------------------------------------------------------- | PDO Fetch Style |-------------------------------------------------------------------------- | | By default, database results will be returned as instances of the PHP | stdClass object; however, ...
<?php use Illuminate\Support\Facades\Route; Route::get('/roles', 'RoleController@index')->name('roles.index'); Route::post('/roles', 'RoleController@store')->name('roles.store'); Route::delete('/roles/{role}/destroy', 'RoleController@destroy')->name('roles.destroy'); Route::get('/roles/{role}/edit', 'RoleControll...
<table class="table" id="mainProductTable"> <thead> @php $user = auth()->user(); $type = $user->role->type; @endphp <tr> <th scope="col">{{ __('common.sl') }}</th> <th scope="col">{{ __('common.name') }}</th> <th scope="col">{{ __('common.product_t...
<?php return [ 'backup' => [ /* * The name of this application. You can use this name to monitor * the backups. */ 'name' => env('APP_URL'), 'source' => [ 'files' => [ /* * The list of directories that should be pa...
<?php /* @Framework/Form/url_widget.html.php */ class __TwigTemplate_0571ca1ac71edb6242ff55eabbdf64bed120b463a1634e5b09a96dcd1228f878 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ...
<?php require_once "../../mostraerros.php"; function __autoload($nomeClass){ require_once "$nomeClass.php"; var_dump($nomeClass); } $carro = new DelRay(); echo "<br><br>"; $carro->acelerar(80); ?>
@extends('admin_layout') @section('admin_content') <div class="row"> <div class="col-lg-12"> <section class="panel"> <header class="panel-heading"> Thêm user </header> <?php ...
<?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...
@section('title', 'Data Pegawai') @extends('layouts.master') @section('content') <div class="container-fluid"> <div class="row justify-content-center"> <div class="col-sm-10"> <h4>Data Pegawai</h4> <hr> <div class="row"> <div class="col-sm-9"> <a class="btn btn-sm btn-success" href="dataPegawai...
<?php declare(strict_types=1); namespace Sura\Exception; use JetBrains\PhpStorm\Pure; /** * */ class SuraException extends \InvalidArgumentException { /** * @param string $message * @return static */ #[Pure] public static function error(string $message): self { return new static($message); } /...
<!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>KOPAJA</title> <link rel="icon" href="{{url('/')}}/etrain/img/favicon.png"> <!...
--TEST-- call_user_func() in combination with "Call to a member function method() on a non-object" --FILE-- <?php $comparator= null; var_dump(call_user_func([$comparator, 'compare'], 1, 2)); echo "Alive\n"; ?> --EXPECTF-- Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a ...
<?php return [ /* |-------------------------------------------------------------------------- | Look & feel customizations |-------------------------------------------------------------------------- | | Make it yours. | */ // Date & Datetime Format Syntax: https://carbon.nesbot.co...
<?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 namespace App\Models; use Illuminate\Database\Eloquent\Model; class Emailtemplate extends Model { /** * The database table used by the model. * * @var string */ protected $table = 'email_templates'; }
<?php namespace App\Models; use Spatie\MediaLibrary\HasMedia; use Illuminate\Database\Eloquent\Model; use Spatie\Translatable\HasTranslations; use Spatie\MediaLibrary\InteractsWithMedia; use Illuminate\Database\Eloquent\Factories\HasFactory; use Spatie\MediaLibrary\MediaCollections\Models\Media; class Category exten...
<?php use Seatplus\Auth\Models\Permissions\Permission; use Seatplus\Auth\Models\User; use Seatplus\Web\Services\Sidebar\SidebarEntries; use Spatie\Permission\PermissionRegistrar; beforeEach(function () { //Permission::findOrCreate('superuser'); test()->test_character->roles()->update(['roles' => ['']]); ...
<?php /*+********************************************************************************** * The contents of this file are subject to the vtiger CRM Public License Version 1.1 * ("License"); You may not use this file except in compliance with the License * The Original Code is: vtiger CRM Open Source * The Initia...
<?php /* @Security/Collector/security.html.twig */ class __TwigTemplate_a86814a82ac5383de03679ec886935fa19931cc5c79a140a347923405e46ab1f extends Twig_Template { private $source; public function __construct(Twig_Environment $env) { parent::__construct($env); $this->source = $this->getSourc...
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to plac...
<?php namespace Lzpeng\Auth\Exception; /** * 配置相关异常 * * @author lzpeng <liuzhanpeng@gmail.com> */ class ConfigException extends Exception { }
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Article extends Model { use HasFactory; protected $fillable = ['title', 'body']; // public function createdBy() // { // return $this->belongsTo(User::class, '...
<?php class ledger_model extends CI_Model { function save_details($varLedType,$varLedName,$varLedNum,$varDescri) { $this->load->database(); $data = array('ledger_type'=>$varLedType, 'ledger_no'=>$varLedNum, 'ledger_name'=>$varLedName, 'description'=>$varDescri, ); $this->db->inse...
<div class="container text-center"> <span class="text-light">©新井は何かを作った!</span> </div>
@extends('layouts.admin') @section('content') <div class="content"> <div class="row"> <div class="col-lg-12"> <div class="panel panel-default"> <div class="panel-heading"> {{"Temporary Disconnection Request"}} </div>...
<?php if($_VPS !== true) { die("x"); } class Country extends CPHPDatabaseRecordClass { public $fill_query = "SELECT * FROM countries WHERE `Id` = '%d'"; public $verify_query = "SELECT * FROM countries WHERE `Id` = '%d'"; public $table_name = "countries"; public $prototype = array( 'string' => array( 'Name' ...
<?php namespace App\Providers; use Illuminate\Support\Facades\Route; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; class RouteServiceProvider extends ServiceProvider { /** * This namespace is applied to your controller routes. * * In addition, it is set as th...
<?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 /** * 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...
<?=$this->extend("darky/templates/base")?> <?=$this->section('content')?> <?=$this->endSection()?>
<?php use Illuminate\Database\Seeder; use App\UserRole; class UserRoleTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $roles = [ [ 'id' => 1, 'role' => 'Client'], [ 'id' => 2, 'role' => 'Employee'],...
{{--背景高度--}} @php $bg_height = @$data['99-1'][0]['height'] != null ? $data['99-1'][0]['height'] : '400'; @endphp <div class="drop-item {{ $is_valid != '1' ? 'invalid' : ''}}" id='{{ $uid }}' data-tpl_id='' data-shop_id='{{ $shop_id ?? '' }}' data-tpl_name='{{ $tpl_name }}' data-is_valid='{{ $is_valid }}'> <!-...
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use App\KantoorOrder; use Illuminate\Contracts\Queue\ShouldQueue; class KantoorOrderReady extends Mailable { use Queueable, SerializesModels; protected $order; /** * Create ...
<?php return unserialize('a:2:{i:0;O:48:"Symfony\\Component\\Validator\\Constraints\\NotBlank":3:{s:7:"message";s:31:"This value should not be blank.";s:7:"payload";N;s:6:"groups";a:1:{i:0;s:7:"Default";}}i:1;O:27:"Doctrine\\ORM\\Mapping\\Column":9:{s:4:"name";s:14:"typeconvention";s:4:"type";s:6:"string";s:6:"length";...
<div class="row"> <div class="col s12"> <div class="row"> <div class="input-field col s12 m6 l6"> <input id="inr" type="text" class="validate" value="" required> <label for="inr">Inventar Nummer</label> </div> </div> <div class="row"> <div class="input-field col s12 ...
<?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...
@extends('admin.layouts.index_layout' , ['title' => __('admin.categories') ,'route' => 'category']) @section('content') <div class="row"> <form class="m-form" action="{{url('admin/categories/search')}}" method="get" id="search_form"> <div class="form-group m-form__group row "> <label for="q" c...
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; class HomeServiceProvider extends ServiceProvider { /** * Register services. * * @return void */ public function register() { // } /** * Bootstrap services. * * @return void */ ...
<!DOCTYPE html> <?php require_once("dbconnection.php"); include("functions.php"); include("validation_functions.php"); include_once("ui_functions.php"); session_start(); //need this to access session variables if (!$_SESSION) { //in case of logout when all session variables are destroyed, do not display ...
<div class="full-box page-header"> <h3 class="text-left"> <i class="fas fa-plus fa-fw"></i> &nbsp; AGREGAR CLIENTE </h3> <p class="text-justify"> Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quidem odit amet asperiores quis minus, dolorem repellendus optio doloremque error a omnis soluta quae magnam...
<?php /************************************************************ * * Command line: * phpunit tests/TestCUSDbNArr.php * * */ // for dev @ ini_set( 'display_errors', 'On' ); @ ini_set( 'max_execution_time', '600' ); @ ini_set( 'max_input_time', '0' ); @ ini_set( 'memory_limit', '512M' ); @ error_reporting( ...
<?php namespace Tests\Feature\Http\Controllers; use App\Models\Order; use App\Models\Product; use App\Models\User; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\WithFaker; use Tests\TestCase; class GatewayControllerTest extends TestCase { use RefreshDatabase, WithFaker; ...
<?php namespace Computools\CLightORM\Tools; class Condition { private $field; private $operator; private $value; public function __construct(string $field, string $operator, $value) { $this->field = $field; $this->operator = $operator; $this->value = $value; } pub...
@extends('layouts.app', ['page' => __('Officer'), 'pageSlug' => 'document']) @section('content') @include('alert._messages') <div class="row"> <div class="col-12"> <div class="card card-chart"> <h4 class="card-header" style="background-color: #89e3fa "> <ul class="row"> ...
<!-- Start Card Content --> <div class="card-content"> <div class="field is-horizontal"> <div class="field-label is-normal"> <label class="label required">اسم الكتاب </label> </div> <div class="field-body"> <div class="field"> <div class="control"> ...
<?php namespace Triangulum\Yii\Unit\Html\Button; use Triangulum\Yii\Unit\Html\Tooltip; final class ButtonConfig { private array $class = ['margin5px']; private array $url = []; private string $title = 'Button'; private array $data = []; private ?string $toolt...
@extends('layouts.master') @section('content') <div class="page-content"> <div class="clearfix"></div> <div class="row"> <div class="col-md-12 col-sm-12 col-xs-12"> <div class="x_panel"> <div class="x_content"> ...
<?php use mvc\interfaces\controllerActionInterface; use mvc\controller\controllerClass; use mvc\config\configClass as config; use mvc\request\requestClass as request; use mvc\routing\routingClass as routing; use mvc\session\sessionClass as session; use mvc\i18n\i18nClass as i18n; /** * Description of indexActionClas...
<?php namespace app; /** * */ class Model { public static $table = ""; public function __construct() { } public function addTo($column, $num) { if (isset($this->{$column})) { $this->{$column} += $num; } $sql = " UPDATE `" . get_class($this)::...
@extends('layouts.modular') @section('title') Messages @endsection @section('header') <h1>Messages</h1> <h4>/w {{ $thread->getReceiver() }}</h4> @endsection @section('left-column') <div class="panel panel-default panel-modular"> <div class="panel-heading">Conversations</div> <div class="panel-body"> ...
<?php session_start(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>Concordia | Release</title> <!-- css --> <!-- Font Awesome --> <link rel="styleshee...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class EnfantEcole extends Model { use HasFactory; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'ecole_id',...
<?php /* * Your installation or use of this SugarCRM file is subject to the applicable * terms available at * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/. * If you do not agree to all of the applicable terms or do not have the * authority to bind the entity as an authorized representative...
<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond ...
<?php namespace Goxob\Slideshow\Block\Admin\Grid; use Goxob\Core\Block\Grid; class Group extends Grid{ protected function prepareCollection() { $model = \Goxob::getModel('slideshow/groups'); $items = $this->getData($model); return $items; } protected function prepareColumns(...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateCountriesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('countries', f...
<?php namespace Spatie\Permission\Models; use Spatie\Permission\Guard; use Illuminate\Support\Collection; use Spatie\Permission\Traits\HasRoles; use Illuminate\Database\Eloquent\Model; use Spatie\Permission\PermissionRegistrar; use Spatie\Permission\Traits\RefreshesPermissionCache; use Illuminate\Database\Eloquent\Re...
<meta name="description" content="SurGIS of Texas Corp. We focus on results that make for life long customers. Over 50 years of land surveying, built in USA by Americans"> <meta property="og:title" content="SurGIS of Texas - Texas Land Surveying" /> <meta property="og:description" content="SurGIS of Texas Land Surv...
@extends('core/base::layouts.master') @section('content') <div id="main-settings"> <license-component verify-url="{{ route('settings.license.verify') }}" activate-license-url="{{ route('settings.license.activate') }}" deactivate-license-url="{{ route('settings.license.dea...
<?php // Copyright (c) 2015, Fujana Solutions - Moritz Maleck. All rights reserved. // For licensing, see LICENSE.md session_start(); if(!isset($_SESSION['username'])) { exit; } // checking lang value if(isset($_COOKIE['sy_lang'])) { $load_lang_code = $_COOKIE['sy_lang']; } else { $load_lang_code = "en";...
@extends('layouts.app') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="card-header">Crear</div> <div class="card-body" > <a href="{{ route('ListarEmpresa...
<?php namespace ccxt; // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code use Exception; // a common import use \ccxt\ExchangeError; use \ccxt\ArgumentsRequired; class bybit extends Exchange { public functi...
<?php use yii\helpers\Url; /* @var $this yii\web\View */ $this->title = 'My Yii Application'; ?> <div class="site-index"> <div class="jumbotron" id="index_slide"> <div class="slide-content" style="position: absolute;bottom: 78px;"> </div> <div class="body-content"> <div class="row"> ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="generator" content="http://www.movabletype.org/" /> ...
<?php require(__DIR__.'/config/config.php'); require(__DIR__.'/function/log.php'); date_default_timezone_set("Asia/Taipei"); $start = microtime(true); $method = $_SERVER['REQUEST_METHOD']; if ($method == 'GET' && $_GET['hub_mode'] == 'subscribe' && $_GET['hub_verify_token'] == $C['FBWHtoken']) { echo $_GET['hub_cha...
<?php use yii\helpers\Html; use yii\data\ActiveDataProvider; use yii\widgets\ListView; ?> <li> <?= $vacancy->title?> <?= \yii\widgets\ListView::widget([ 'dataProvider' => $dataProvider = new ActiveDataProvider([ 'query' => $vacancy->getReviews() ]), 'itemView' => "../../shared/review/_review" ]) ...
<?php namespace Spatie\Backup\Notifications\Notifications; use Spatie\Backup\Notifications\BaseNotification; use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Messages\SlackMessage; use Illuminate\Notifications\Messages\SlackAttachment; use Spatie\Backup\Events\HealthyBackupWasFound as H...
<!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=""> <title> Zonebiz - Business Consulting Bootstrap4 Responsive Template </title> <!-- Bootstrap co...
<?php /** * InlineResponse2002 * * PHP version 7.2 * * @category Class * @package Rossity\PhpQuickbase * @author OpenAPI Generator team * @link https://openapi-generator.tech */ /** * Quick Base API * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-g...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Employeewise_details_ledger_report extends CI_Controller { public function __construct() { parent:: __construct(); $this->load->library('form_validation'); $this->load->helper('settings_helper'); $this->lo...
<?php use yii\db\Migration; class m191018_145939_wechat_rule_stat extends Migration { public function up() { /* 取消外键约束 */ $this->execute('SET foreign_key_checks = 0'); /* 创建表 */ $this->createTable('{{%wechat_rule_stat}}', [ 'id' => "int(10) unsigned NOT NUL...
<?php namespace Khrizt\PushNotiphications\Model; interface ResponseInterface { public function getNotificationId(): string; public function getToken(): string; public function isUnregisteredToken(): bool; public function isInvalidToken(): bool; public function isOk(): bool; public functio...
<?php //$this->erp->print_arrays($invs) ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Invoice&nbsp;<?= $invs->reference_no ?></title> <link href="<?php echo $assets ?>styles/theme.css" rel="stylesheet"> <link href="<?php echo $assets ?>styles/bootstrap.min.css" rel="styleshee...
<?php namespace Boodcode\ContactBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class ContactType extends AbstractType { /** * @param FormBuilderInterface $builder * @param array ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="<?php echo base_url(); ?>assets/dist/app.css"> <title>CodeIgniter Tutorial</title> <script src="<?php echo base_url(); ?>assets/node_modules/vue/dist/...
<?php /* Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); Description: Parses input from a file according to a format */ /* Test fscanf() to scan float values using different char format types */ $file_path = dirname(__FILE__); echo "*** Test fscanf(): different char format types wi...
<?php /** * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyrig...
<?php /* * This file is part of the Ariadne Component Library. * * (c) Muze <info@muze.nl> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ class TestXML extends PHPUnit_Framework_TestCase { var $RSSXML = '<?xml version="1...
<?php /* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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/LICENS...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class SeedLedStatusesData extends Migration { /** * Run the migrations. * * @return void */ public function up() { $ledstatuses = [ [...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Minsts extends Model { public $fillable = ['id','week', 'area', 'estimated']; }
<body id="falcon" class="main_Wrapper"> <div id="wrap" class="animsition"> <div id="header"> <header class="clearfix"> <!-- Branding --> <div class="branding"> <a class="brand" href="index.html"> <span>iNSURE</span> </a> <a role="button" tabindex="0" class="offcanvas-togg...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateNewsTable extends Migration { /** * Run the migrations. */ public function up() { Schema::create('news', function (Blueprint $table) { ...
@extends('layouts.vendor') @section('content') <div class="content-area"> <div class="mr-breadcrumb"> <div class="row"> <div class="col-lg-12"> <h4 class="heading">{{ $lang...
<?php namespace App\Observers; // use App\Models\Script as Model; class ScriptObserver { public function __construct() { } // public function creating(Model $result) { // } public function created() { cache()->forget('scripts'); } // public function updating(Model) { ...
<?php /* * CKFinder Configuration File * * For the official documentation visit https://docs.ckeditor.com/ckfinder/ckfinder3-php/ */ $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://"; $base = $_SERVER['HTTP_HOST'] . "/admin/assets/"; ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreatePostsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('posts', function ...
<?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...