text
stringlengths
2
1.03M
<div class="entity-meta"> @if($entity->isA('revision')) @icon('history'){{ trans('entities.pages_revision') }} {{ trans('entities.pages_revisions_number') }}{{ $entity->revision_number == 0 ? '' : $entity->revision_number }} <br> @endif @if ($entity->isA('page')) @if (userCa...
<?php session_start(); include 'dbh.php'; $questionId=mysqli_real_escape_string($conn,$_POST['questionId']); if(isset($_SESSION['id'])){ $userId=mysqli_real_escape_string($conn,$_SESSION['id']); $stmt= $conn->prepare("SELECT askerId FROM questionstable WHERE askerId=? AND id=?"); $stmt-> bind_param("dd",$UID,$Q...
<?php namespace backend\modules\viewer\controllers; use Yii; use common\models\DashboardGiplet; use common\models\search\DashboardGiplet as DashboardGipletSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * DashboardGipletController implements the CRUD actions for Da...
<?php namespace App\Factory; use App\File; use Illuminate\Foundation\Testing\WithFaker; class FileFactory { use WithFaker; private $status = File::STATUS_PUBLISHED; public function create() { $model = $this->make(); $model->save(); return $model; } public function h...
<?php /** * ReturnPoliciesListReturnPolicyBasic * * PHP version 7.2 * * @category Class * @package AllegroApi * @author OpenAPI Generator team * @link https://openapi-generator.tech */ /** * Allegro REST API * * https://developer.allegro.pl/about Documentation is generated from [this](https://devel...
<!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:...
@extends('layouts.admin') @section('content') <div class="panel-header"> <div class="page-inner"> <div class="page-header"> <h4 class="page-title">Edit Product</h4> <ul class="breadcrumbs"> <li class="nav-home"> <a href=...
<?php namespace JJSoft\Generator\Common; use Exception; use Illuminate\Console\Command; use JJSoft\Generator\Utils\GeneratorFieldsInputUtil; use JJSoft\Generator\Utils\TableFieldsGenerator; class CommandData { public static $COMMAND_TYPE_API = 'api'; public static $COMMAND_TYPE_SCAFFOLD = 'scaffold'; pub...
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Contracts\OrderContract; use App\Http\Controllers\Controller; use App\Http\Controllers\BaseController; class OrderController extends BaseController { protected $orderRepository; public function __construct(OrderContract $orderR...
<?php namespace App\Http\Controllers; use Illuminate\Support\Facades\Log; use Illuminate\Http\Request; use Carbon\Carbon; use Mail; use Validator; use Illuminate\Validation\Rule; use Auth; use DB; use Session; use App\Mikrotik; use App\User; use App\Contrato; use App\Nodo; use App\Ping; class PingsController ...
<?php namespace Tests\Feature; use Tests\TestCase; use Tests\Factories\InMemoryUserFactory as Factory; use App\Repositories\UserInMemoryRepository; use Illuminate\Foundation\Testing\WithFaker; use App\Repositories\UserRepositoryInterface; use Illuminate\Foundation\Testing\RefreshDatabase; class UsersRoutesTest exten...
<?php namespace App\Http\Controllers; use App\PindahGudang; use App\Gudang; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use App\WorkOrders; use App\Employee; use App\Stock; use Response; use App\TransaksiPindahGudang; use DB; use Alert; class PindahGudangController extends Controller { /** ...
<!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>Cetak</title> <!-- Bootstrap --> <link href="{{asset('bootstrap/css/bootstrap.min.css')}}" rel="styl...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Post extends Model { // protected $table = "posts"; public function comments() { return $this->hasMany('App\Comment', 'post_id', 'id'); } }
<?php if (!defined('BOOTSTRAP')) { die('Access denied'); } fn_register_hooks( 'shippings_get_shippings_list_conditions', 'create_order' );
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateComplaintsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('complaints',...
<?php /** * UIDAI * * PHP Version 7.1 * * @category Manage Profile * @author Choice Tech Lab <contact@choicetechlab.com> * @copyright 2017-2018 Choice Tech Lab (https://choicetechlab.com) * @license https://choicetechlab.com/licenses/ctl-license.php CTL General Public License * @version 1.0.1 * @pac...
@extends('layouts.app') @section('title-block')Список предметов@endsection @section('content') <h1>Список предметов:</h1> @foreach($dataLesson as $el) <div class = "alert alert-info"> <h3>{{ $el->lesson }}</h3> <p>День проведения: {{ $dataDays[($el -> id_day) - 1]['day']}}</p> <p>...
<!DOCTYPE html> <html lang="en"> <head> <title> ADMIN PANEL</title> <meta charset="utf-8"> <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"> <link rel="icon" href="<?php echo base_url("assets...
<!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:200,600" rel="styleshee...
<?php namespace Illuminate\Support; use Closure; use InvalidArgumentException; abstract class Manager { /** * The application instance. * * @var \Illuminate\Foundation\Application */ protected $app; /** * The registered custom driver creators. * * @var array */ ...
<?php if (!check_perms('site_torrents_notify')) { json_die("failure"); } define('NOTIFICATIONS_PER_PAGE', 50); list($Page, $Limit) = Format::page_limit(NOTIFICATIONS_PER_PAGE); $cond = ['unt.UserID = ?']; $args = [$LoggedUser['ID']]; if ((int)$_GET['filterid'] > 0) { $cond[] = 'unf.ID = ?'; $args[] = (int...
<?php namespace App\Events; use App\Order; use Illuminate\Broadcasting\Channel; use Illuminate\Queue\SerializesModels; use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminat...
<!DOCTYPE HTML> <html> <head> <meta name="viewport" content="width=device-width,inital-scale=1" /> <title>ADMIN_ChangePassword</title> <link rel="stylesheet" href="css/bootstrap.css" /> <script src="js/jquery-1.11.0.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/bootbox.m...
<?php namespace Czechiaa\Bundle\CommunicationBundle\Response; /** * Class OutputResponse * @package Czechiaa\Bundle\CommunicationBundle\Response */ class OutputResponse { /** * @var int|string|null */ private $key; /** * @var string */ private $format = ''; /** * @var...
@extends('layouts.admin.header') @section('content') <div class="form-comment" style="margin-right:10%"> {{Form::open(array("route"=>array('category.post.create'),"class"=>"form-horizontal"))}} <div class="form-group"> {{Form::label('lblName',"Name", array("class"=>"col-sm-2 control-label"))}} ...
<?php namespace app\controllers\api; use app\helpers\ObservationsHelper; use app\models\History; use Yii; use yii\data\ActiveDataProvider; class HistoryController extends RestController { public $modelClass = 'app\models\History'; public function actionIndex() { $observation = ObservationsHelper...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class BURS_Registry extends Model { protected $table = 'burs_registry'; protected $primaryKey = 'reg_refnum'; protected $fillable = [ 'reg_subamount', 'reg_fundcluster', 'reg_address', 'reg_date', 'reg_orsnum', 'reg_payee', 'reg_rc', 'r...
<?php /* TwigBundle:Exception:exception.js.twig */ class __TwigTemplate_2258561f07ff140e32c1f4f73224d9e8986815460ce10492ae868cda41c8499c extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array...
<?php /** * Copyright (c) 2021 cooldogedev * * 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, m...
<?php /** * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * * $Id: topicadmin_live.php 32028 2012-10-31 10:12:22Z zhangjie $ */ if(!defined('IN_DISCUZ')) { exit('Access Denied'); } if(!$_G['group']['allowlivethread']) { showmessage('no_privilege_l...
<?php namespace Oro\Bundle\DataGridBundle\Entity\Manager; use Doctrine\Bundle\DoctrineBundle\Registry; use Symfony\Component\Translation\TranslatorInterface; use Oro\Bundle\DataGridBundle\Datagrid\Common\DatagridConfiguration; use Oro\Bundle\DataGridBundle\Datagrid\Manager; use Oro\Bundle\DataGridBundle\Entity\Gri...
<?php /** * Created by PhpStorm. * User: Ksh * Date: 2019/1/5 * Time: 12:26 */ namespace xjd\util; /** * DES加密解密 */ class Mcrypt { public function __construct() { } function getSKey($msg) { if (!$msg) { die('请输入参数值'); } /* 打开加密算法和模式 */ $td = mcrypt_module...
<style> #fb{ color:white; } #fb:hover{ text-decoration: none; color: yellow; } </style> <!--top-header--> <div class="top-header"> <div class="container"> <div class="top-header-main"> <div class="col-md-6 top-header-left"> <div class="thongtin label"> <a id="fb" href="https:/...
<?php /** * @copyright Copyright (c) 2017 Robin Appelman <robin@icewind.nl> * * @author Joas Schilling <coding@schilljs.com> * @author Robin Appelman <robin@icewind.nl> * * @license GNU AGPL version 3 or any later version * * This program is free software: you can redistribute it and/or modify * it under the t...
{{-- <a href="/product-details/{{ $pp->id }}"> <img class="default-img" src="{{ $pp->image == '' ? 'https://via.placeholder.com/550x750' : asset('storage/images/thumbnail/'.$pp->image) }}" alt="#"> </a> --}} @extends('layout') @section('menu') @include('includes/menu') @endsection @section('content') <!--...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class product extends Model { protected $table = 'product'; // type public function type() { return $this->beLongsTo('App\Models\type', 'type_id', 'id'); } // category public function category() { retu...
<?php namespace App\Http\Controllers; use App\Models\Travel; use Illuminate\Auth\Events\Validated; use Illuminate\Http\Request; class TravelController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { ...
<h4><a href="[EDIT_ATTENDEE_LINK]">[FNAME] [LNAME]</a></h4> <ul> <li> <strong><?php _e( 'Registration Code:', 'event_espresso' ); ?></strong> <a href="[EDIT_ATTENDEE_LINK]">[REGISTRATION_CODE]</a> </li> <li> <strong><?php _e( 'Tickets:', 'event_espresso' ); ?></strong> <ul>[TICKET_LIST]</ul> </li> </ul> <hr...
<?php /** * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. * * EnrollmentConfigurationAssignment File * PHP version 7 * * @category Library * @package Microsoft.Graph * @copyright (c) Microsoft Corporation. All ri...
<?php namespace Meritocracy\Adapters; use Illuminate\Database\Eloquent\Model; use Meritocracy\Entity\User; use Tymon\JWTAuth\Providers\User\UserInterface; class DoctrineUserAdapter implements UserInterface { /** * @var \Illuminate\Database\Eloquent\Model */ protected $user; /** * Create a...
<?php /* @var $this \yii\web\View */ /* @var $content string */ use app\widgets\Alert; use yii\helpers\Html; use yii\bootstrap\Nav; use yii\bootstrap\NavBar; use yii\widgets\Breadcrumbs; use app\assets\AppAsset; use yii\helpers\Url; AppAsset::register($this); ?> <?php $this->beginPage() ?> <!DOCTYPE html> <h...
<?php $s = new SplFileObject( __FILE__ ); $s->hasChildren('string'); ?>
<?php namespace Synapse\CalendarBundle\Controller; use FOS\RestBundle\Controller\Annotations as Rest; use JMS\DiExtraBundle\Annotation as DI; use Nelmio\ApiDocBundle\Annotation\ApiDoc; use Symfony\Component\HttpFoundation\Request; use Synapse\CalendarBundle\Service\Impl\CronofyWrapperService; use Synapse\CoreBundle\Sy...
<?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 /* vim:set softtabstop=4 shiftwidth=4 expandtab: */ /** * * LICENSE: GNU General Public License, version 2 (GPLv2) * Copyright 2001 - 2014 Ampache.org * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License v2 * as published by the Fre...
<?php use Illuminate\Database\Seeder; class RoleplaySeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { factory(Efed\Models\Roleplay::class, 50)->create(); } }
@extends('layouts.app') @section('meta-content') <title> Announcements | Dotori </title> @endsection @section('content') <div class="sub_top"><!--sub_top--> <div class="sub_title"> <i class="fas fa-fw fa-money-check-alt"></i> Announcements </div> </div><!--sub_top end--> <div class="section_right_inner"...
--TEST-- swoole_http_client_coro: websocket server push first --SKIPIF-- <?php require __DIR__ . '/../../include/skipif.inc'; ?> --FILE-- <?php require __DIR__ . '/../../include/bootstrap.php'; use SwooleTest\WaitRef; $pm = new SwooleTest\ProcessManager; $pm->initFreePorts(); $pm->initRandomDataArray(2, 0, true); Co...
<!DOCTYPE html> <html> <head> <!-- Jquery Core Js --> <script src="<?php echo base_url('assets/AdminBSB/');?>plugins/jquery/jquery.min.js"></script> </head> <body> <!--Breadchumbs--> <div class="block-header"> <h2><?php echo strtoupper($navigasi)?></h2> <ol class="breadcrumb"> <li> ...
<?php namespace frontend\modules\meeting\controllers; use yii\web\Controller; use yii\helpers\Url; use backend\modules\meeting\models\Meeting; use backend\modules\meeting\models\Uses; use yii\data\ArrayDataProvider; class DefaultController extends Controller { public function actionIndex() { return $...
<?php namespace app\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use app\models\Levels; /** * LevelsSearch represents the model behind the search form of `app\models\Levels`. */ class LevelskafSearch extends Levels { /** * {@inheritdoc} */ public function rules() { ...
<?php namespace App; use Illuminate\Support\Facades\DB; use Illuminate\Database\Eloquent\Model; class Mixer extends Model { protected $guarded = []; function total_actualproduct() { $totprod = DB::table('mixer_details') ->select(DB::raw("sum(qty_actual)")) ->where("mixer_...
<?php /* * This file is part of the FiveLab Amqp package * * (c) FiveLab * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code */ declare(strict_types = 1); namespace FiveLab\Component\Amqp\Tests\Unit\Message; use FiveLab\Component\Amqp\...
<?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 RectorPrefix20211019\Symfony\Component\DependencyInjection\Loader\Configu...
<?php namespace Phx\Scrapers\Processors; use Phx\NewsScraper; use Contracts\PhxScraperProcessor; /** * @author Ammar Faizi <ammarfaizi2@gmail.com> https://www.facebook.com/ammarfaizi2 * @package Phx\Scrapers\Processors * @license MIT * @version 0.0.1 */ final class Voxntt implements PhxScraperProcessor { /** ...
<!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>Đăng nhập</ti...
<?php namespace Mtarld\SymbokBundle\Tests\Autoload; use App\Entity\Product1; use App\Entity\ProductInterface; use Mtarld\SymbokBundle\Tests\KernelTestCase; /** * @group functional * @group replacer * @group autoload */ class AutoloadFunctionalTest extends KernelTestCase { public function testClassIsReplacedW...
<?php if ( !class_exists( 'WPUF_Abstract_Integration' ) ) { /** * The Integration abstract class */ abstract class WPUF_Abstract_Integration { /** * The integration id * * @var bool */ public $id; /** * If the integration is enab...
<?hh function main() { $x1 = $x2 = $x3 = array(32, 8, 19, 17, 23); $y1 = $y2 = $y3 = array('orange' => 12, 'apple' => 0, 'banana' => 2); sort(inout $x1); asort(inout $x2); usort(inout $x3, ($a, $b) ==> $a < $b); var_dump($x1, $x2, $x3); ksort(inout $y1); asort(inout $y2); usort(inout $y3, ($a, $b) ...
<?php /** * TimeWorked Work entry controller * * @package GiantLeapLab.TimeWorked * @subpackage com_timeworked * @version 1.3.2 * @date January 18, 2019 * @author Giant Leap Lab. http://www.giantleaplab.com * @copyright Copyright (c) 2014-2019 Giant Leap Lab * @license GNU/GPL v3 http://www.gnu.org/licenses/gp...
<?php /* Plugin Name: Grunion Contact Form Description: Add a contact form to any post, page or text widget. Emails will be sent to the post's author by default, or any email address you choose. As seen on WordPress.com. Plugin URI: http://automattic.com/# AUthor: Automattic, Inc. Author URI: http://automattic.com/ ...
<?php namespace App\Handlers; use App\Ninja\Mailers\ContactMailer; use App\Ninja\Mailers\UserMailer; class InvoiceEventHandler { protected $userMailer; protected $contactMailer; public function __construct(UserMailer $userMailer, ContactMailer $contactMailer) { $this->userMailer = $userMailer...
@extends('layouts.admin') @section('content') <div class="card"> <div class="card-header"> {{ trans('cruds.target.title') }} </div> <div class="card-body"> <p> Text coming soon... </p> </div> </div> @endsection
<?php declare(strict_types=1); namespace AsyncAws\Core; use Symfony\Contracts\HttpClient\ResponseStreamInterface; /** * Stream a response body. * * @author Tobias Nyholm <tobias.nyholm@gmail.com> */ final class StreamableBody implements StreamableBodyInterface { /** * @var ResponseStreamInterface ...
<?php /* @var $content string */ use main\assets\MainAsset; use yii\helpers\Html; use yii\widgets\Breadcrumbs; use yii\helpers\Url; MainAsset::register($this); ?> <?php $this->beginPage() ?> <html lang="<?php echo Yii::$app->language ?>"> <head> <?php $this->registerLinkTag(['rel' => 'icon', 'type' => 'image/pn...
<?php use yii\widgets\ActiveForm; use yii\helpers\Url; use yii\helpers\Html; ?> <style> label { margin: 30px 0 20px 0; } </style> <!-- я и author1 --> <?php if(Yii::$app->user->identity->username == 'anver1' || Yii::$app->user->identity->username == 'shablon4'):?> <?php $form = ActiveForm::begin(['options' => ['enctyp...
<?php namespace App\Models; use Illuminate\Support\Facades\Auth; use Laravel\Cashier\Billable; use Illuminate\Notifications\Notifiable; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; use App\Notifications\ResetPassword as ResetPasswordNotification; use Illuminat...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Imports\ProductsImport; use Maatwebsite\Excel\Facades\Excel; use Maatwebsite\Excel\Concerns\WithValidation; use App\Product; use SpreadsheetReader; class ProductController extends Controller { /** * Create a new controller instance....
@extends('layout') @section('content') <div class="container"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"> <h2> Create Post <a href="/admin/posts" class="b...
<?php namespace Oro\Bundle\AttachmentBundle\Manager\FileRemoval; /** * Provides a configuration for a service to remove resized/filtered image files related to a specified File entity. */ final class ImageFileRemovalManagerConfig implements FileRemovalManagerConfigInterface { /** * {@inheritDoc} */ ...
<?php /** * Order * * PHP version 5 * * @category Class * @package Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ /** * Swagger Petstore * * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use...
<?php $__env->startSection('content'); ?> <br><br><br><br><br><br> <div class="right_col" role="main"> <div class=""> <div class="clearfix"></div> <div class="row"> <div class="col-md-12 col-sm-12 col-xs-12"> <div class="x_panel"> <div ...
<?php use yii\helpers\Html; use yii\widgets\LinkPager; $this->title = "CHANNEL Portal"; $layout=2; //2 代表 列表组(客户档案信息,客户回访信息 ,排课信息) 1 显示一个标题 ?> <div class="body-menu"> <div class="logoInfo"> <img src="/images/icon.png"/> <span class="title"> CHANNEL Portal </span> <a id="hideMenu" href...
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); use Magento\TestFramework\Workaround\Override\Fixture\Resolver; Resolver::getInstance()->requireDataFixture('Magento/Weee/_files/fixed_product_attribute_rollback.php'); $objectManager = \M...
<?php if (function_exists('acf_add_local_field_group')) { acf_add_local_field_group(array( 'key' => 'group_569ceab2c16ee', 'title' => 'Index', 'fields' => array( 0 => array( 'sub_fields' => array( 0 => array( 'layout' => 'horizontal', ...
<? if($INCLUDE_FROM_CACHE!='Y')return false; $datecreate = '001533385365'; $dateexpire = '001533388965'; $ser_content = 'a:2:{s:7:"CONTENT";s:0:"";s:4:"VARS";a:1:{i:0;a:22:{s:3:"LID";s:2:"s1";s:4:"SORT";s:1:"1";s:3:"DEF";s:1:"Y";s:6:"ACTIVE";s:1:"Y";s:4:"NAME";s:32:"Сайт по умолчанию";s:3:"DIR";s:1:"/";s:11:"FORMAT_DAT...
<?php // This file generated by Propel 1.7.1 convert-conf target return array ( 'Activity' => 'Orm/Activity.php', 'ActivityPeer' => 'Orm/ActivityPeer.php', 'ActivityQuery' => 'Orm/ActivityQuery.php', 'ActivityTableMap' => 'Orm/map/ActivityTableMap.php', 'BaseActivity' => 'Orm/om/BaseActivity.php', 'BaseActi...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class AttendanceSetting extends Model { public $timestamps = false; }
<?php require_once __DIR__.'/../../../vendor/autoload.php'; $user = new \Rovast\DesignPatternTalk\Chapter15\v5\User(); $department = new \Rovast\DesignPatternTalk\Chapter15\v5\Department(); // 获取到操作数据的工厂,工厂类型由 DataAccess 的 dbDriver 决定 $dataAccess = new \Rovast\DesignPatternTalk\Chapter15\v5\DataAccess(); // u...
@extends('layout.master') @section('head.silders') <div class="main-header" id="house"> <!--header-top--> <div class="header-top"> <div class="container"> <nav class="navbar navbar-default"> <!-- Brand and toggle get grouped for better mobile display ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateSkillsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('skills', functio...
@extends('layout.app') @section('title', 'VAIO Z') @section('product_nav') @include('products.fuji_z.product_nav') @stop @section('content') <!------ NAV BAR ---------> <div class="navbar-product-page d-lg-flex justify-content-lg-end" style="border-top: 1px solid #fff; border-bottom: 1px solid #fff;"> <ul c...
--TEST-- Shutdown crash when attached/removed same key segment multiple times --SKIPIF-- <?php if (!extension_loaded("sysvshm")){ print 'skip'; } ?> --FILE-- <?php /*$key = ftok(__FILE__, 't'); var_dump($key);*/ $key = 42; var_dump($s = shm_attach($key, 1024)); shm_remove($s); var_dump($s = shm_attach($key, 1024)); s...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); $this->load->view('common/header'); $about_desc=(isset($about[0]->about_desc)!='')?$about[0]->about_desc:""; //echo $about_desc; ?> <!--SECTION START--> <section> <div class="container com-sp pad-bot-70"> <div class="row...
<style> .item{ border: 1px solid #D0D0D0; padding: 10px 15px; margin: 0 0 15px 0; } .offline{ color: red; } .online{ color: green; } .friend_add{ float: right; margin: 0 0 0 10px; } </style> <?php $date = date('Y-m-d H:i:s'); if(isset($friends[0])): ?> <h1>Друзья</h1> <?php foreach ($friend...
<?php use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $searchModel backend\models\BookSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Books'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="book-index"> <h1><?= Html::encode($this->t...
<?php /** * osCommerce Online Merchant * * @copyright Copyright (c) 2011 osCommerce; http://www.oscommerce.com * @license BSD License; http://www.oscommerce.com/bsdlicense.txt */ namespace osCommerce\OM\Core\Site\Admin\Application\TaxClasses; use osCommerce\OM\Core\OSCOM; class Controller extends \osComm...
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateShopOrdersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('shop_orders', function(Blueprint $table) { $table->increments('id'); ...
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="csrf-token" content="{{ csrf_token() }}"> <title>{{ config('app.name', 'Laravel') }}</title> <!-- Fonts --> ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Announcement extends Model { use HasFactory; protected $fillable = [ "subject", "message", "show_staff", "show_customer", "show_my_name",...
<?php /** * File name: TranslationHelper.php * Last modified: 25/01/21, 1:41 PM * Author: NearCraft - https://codecanyon.net/user/nearcraft * Copyright (c) 2021 */ if (!function_exists('translations')) { /** * return translation if translation file exists * * @param $json * @return array|m...
<?php /* * PHP QR Code encoder * * This file contains MERGED version of PHP QR Code library. * It was auto-generated from full version for your convenience. * * This merged version was configured to not requre any external files, * with disabled cache, error loging and weker but faster mask matching. * If you ...
<?php /** * Test the Components entry point. * * PHP version 5 * * @category Horde * @package Components * @subpackage UnitTests * @author Gunnar Wrobel <wrobel@pardus.de> * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @link http://pear.horde.org/index.php?package=Components */ ...
<?php return [ /* |-------------------------------------------------------------------------- | Default Search Engine |-------------------------------------------------------------------------- | | This option controls the default search connection that gets used while | using Laravel Scou...
<?php namespace App\Controllers; class Pages extends BaseController { public function index() { // $faker = \Faker\Factory::create(); // dd($faker->name); $data = [ 'title' => 'Home | WPU' ]; return view('pages/home', $data); } public function abou...
@extends('back.layouts.master') @section('content') <!-- Main Content --> <div class="main-content"> <section class="section"> <div class="section-header"> <h1>Sidebar</h1> <div class="section-header-breadcrumb"> <div class="breadcrumb-item active"><a href="#">Menu</...
<?php $goToNextStep = true; // php version $currentPhpVersion = phpversion(); $phpVersionOk = version_compare($currentPhpVersion, $requirements['phpVersion']) >= 0; if (!$phpVersionOk) $goToNextStep = false; // extensions $loadedExtensions = get_loaded_extensions(); foreach ($loadedExtensions as $key => $ext...
<?php /** * Created by PhpStorm. * User: kevin * Date: 19/09/2017 * Time: 12:50 PM */ namespace Kevupton\LaravelCoinpayments\Exceptions; use Kevupton\LaravelCoinpayments\Models\Ipn; use Throwable; class IpnIncompleteException extends \Exception { /** * @var Ipn */ private $ipn; public fu...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class AdminManageUsersController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middleware('auth'); } /** * Show the applicati...