text
stringlengths
2
1.03M
<style type="text/css"> #small-chat {position: fixed;bottom: 20px;right: 0px;z-index: 100;} #small-chat .badge {position: absolute;top: -3px;right: -4px;} .open-small-chat {height: 38px;width: 38px;display: block;background: #1ab394;padding: 9px 8px;text-align: center;color: #fff;border-radius: 50%;} ....
<?php $__env->startSection('content'); ?><p>Outspoken Hollywood star and anti-masker Scott Baio has hit back at the movie industry for shutting down his film production over coronavirus breaches, insisting 'let me live my life.'</p> <p>Baio expressed his anger at not being allowed to work during the pandemic and insis...
<div id="admin"> <?php if(isset($data['files'])){ $files = $data['files']; $dir="photo/".$_GET['category']; // Путь к директории, в которой лежат фото $dir2="photo/i/".$_GET['category']; // Путь к директории, в которой лежат уменьшенные копии фото ?> <form method="post" > <table > <tr> <th>Фото</th>...
<?php // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. $tldTree = array('ac' => array('com' => array(), 'edu' => array(), 'gov' => array(), 'net' => array(), 'mil' =...
<div id="con_1"> <span class="breadcrumbs"> <i class="fa fa-pencil-square-o"></i> Ledger Manager &rarr; Update Ledger</span> <span class="logout"> <a class="btn btn-danger" href="<?php echo base_url(); ?>index.php/author/category"> -Cancle</a> </span> </div> <div id="con_main"> <div id="add_form"> ...
@if (isset($studentInfo)) {!! Form::hidden('contactable_type', 'Modules\Student\Entities\Student', ['value' => "{{ old('contactable_type') }}"]) !!} @else {!! Form::hidden('contactable_type', 'Modules\Employee\Entities\Employee', ['value' => "{{ old('contactable_type') }}"]) !!} @endif <div class="row"> <di...
<?hh <<__EntryPoint>> function main_407() { $a = darray['a' => 'va']; $a += darray['c' => 20]; var_dump($a); }
<?php include_once 'class/user.class.php'; class SpecialOffer{ private $data=array(); public static function get($scrn) { try { $sweetQuery = array('scrn'=>$scrn); $res =MongoConnect::getInstance()->specialoffer->find($sweetQuery); return $res; } catch (Exception $e) { throw new Exception('Offer(s)...
@extends('admin.main') @section('content') <main> <div class="container-fluid"> <h1 class="mt-4">Backend</h1> <ol class="breadcrumb mb-4"> <li class="breadcrumb-item"><a href="index.html">Dashboard</a></li> <li class="breadcrumb-item active">Static Navigation</li> </...
@extends('layouts.dashboard.layout') @section('content') @include('layouts.others.mobile') <div class="d-flex flex-column flex-root"> <div class="d-flex flex-row flex-column-fluid page"> @include('menus.menu') <div class="d-flex flex-column flex-row-fluid wrapper" id="kt_wrappe...
<?php /** @var \Illuminate\Database\Eloquent\Factory $factory */ use App\Detailproduit; use Faker\Generator as Faker; $factory->define(Detailproduit::class, function (Faker $faker) { return [ 'dateentree'=>$faker->datetime, 'datesortie'=>$faker->datetime, 'quantite'=>$faker->randomNumber,...
<?php namespace App; use Illuminate\Database\Eloquent\Model; use App\Maquinaria; use App\Proyecto; class AsignacionMaquinaria extends Model { protected $table='asignacion_maquinarias'; protected $fillable=[ 'maquinaria_id', 'proyecto_id' ]; public function maquinaria() { r...
<?php /* develop/yeapf.develop.php YeAPF 0.8.56-100 built on 2017-05-05 10:47 (-3 DST) Copyright (C) 2004-2017 Esteban Daniel Dortta - dortta@yahoo.com 2014-08-12 16:55:06 (-3 DST) */ function binarySlice($fieldBasename) { $aValue=$GLOBALS[$fieldBasename]; for($b=0; $b<8; $b++) $GLOBA...
<?php namespace Openpp\NotificationHubsRest\Notification; /** * * @author shiroko@webware.co.jp * */ class GcmNotification extends AbstractNotification { /** * {@inheritdoc} */ public function getFormat() { return "gcm"; } /** * {@inheritdoc} */ public function...
<?php namespace App\Models\Post; use App\Models\PostType\PagePostType; use Illuminate\Database\Eloquent\Builder; class PagePost extends Post { /** * The post post_type default value. * * @var string */ const DEFAULT_POST_TYPE = 'page'; /** * The model's default values for attri...
<?php namespace App\Src\entity; use Illuminate\Database\Eloquent\Model; class AddressTypes extends Model { protected $table = 'address_types'; public function supplierAddress(){ return $this->hasMany('App\Src\entity\SupplierAddress', 'address_types_id'); } }
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePasswordResetsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('password_resets', function (Blueprint $table) {...
<?php namespace App\Providers; use App\Category; use App\Post; use App\Comment; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\Schema; class AppServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @return void */ public function b...
<?php // +---------------------------------------------------------------------- // | ShuipFCMS 内容删除完成时行为调用 // +---------------------------------------------------------------------- // | Copyright (c) 2012-2014 http://www.shuipfcms.com, All rights reserved. // +--------------------------------------------------------...
@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"><strong>{{ __('Admin Login') }}</strong></div> <div class="card-body"> ...
<?php namespace app\library\sms; class SmsBaMi extends \app\library\SmsHelper{ public static $sms_id = 1667; public static $sms_key = '247380503'; public static $sms_url = 'http://www.itcc8.com:8890/mtPort/mt2?'; // y000000 /** * 发送的信息内容 * @param unknown $phonelist * @param unknown $content */ public fu...
<div id="content" class="clearfix"> <aside id="left-sidebar"> <div id="profile-summary"> <div class="content"> <div id="profile_name"> <?php echo Html::anchor(Uri::create('profile/public_profile'), $current_user->username, array("id" => "profile-link")); ?></div> ...
<?php namespace Psalm\Internal\Analyzer\Statements\Block\IfElse; use PhpParser; use Psalm\Internal\Analyzer\ScopeAnalyzer; use Psalm\Internal\Analyzer\Statements\ExpressionAnalyzer; use Psalm\Internal\Analyzer\StatementsAnalyzer; use Psalm\Internal\Type\Comparator\UnionTypeComparator; use Psalm\Codebase; use Psalm\Cod...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Avatar extends Model { use HasFactory; protected $table = 'avatar'; }
<?php // +---------------------------------------------------------------------- // | OneThink [ WE CAN DO IT JUST THINK IT ] // +---------------------------------------------------------------------- // | Copyright (c) 2013 http://www.onethink.cn All rights reserved. // +-----------------------------------------------...
<?php declare(strict_types=1); namespace Kishlin\Backend\Shared\Infrastructure\Persistence\Doctrine; use Doctrine\ORM\EntityManagerInterface; use Kishlin\Backend\Shared\Domain\Aggregate\AggregateRoot; abstract class DoctrineRepository { public function __construct( protected EntityManagerInterface $enti...
<?php namespace app\modules\backlog\models\base; use Yii; use yii\behaviors\TimestampBehavior; use yii\behaviors\BlameableBehavior; /** * This is the base model class for table "task_delivery". * * @property integer $id * @property integer $id_sprint * @property integer $id_aplikasi * @property integer $id_pic...
@extends ('backend.layouts.master') @section ('title', trans('menus.permission_management') . ' | ' . trans('menus.edit_permission_group')) @section('page-header') <h1> {{ trans('menus.permission_management') }} <small>{{ trans('menus.edit_permission_group') }}</small> </h1> @endsection @sect...
<!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=""> <link href="/images/admin/logo/log...
<?php require './includes/bootstrap.php'; if ( ! ctype_digit($_GET['id'])) { error::fatal('Invalid ID.'); } try { $topic = new Topic( $_GET['id'], (empty($_GET['page']) || ! $_SESSION['settings']['posts_per_page']) ? 0 : (int) $_GET['page'] ); $OP = $topic->OP; } catch(Exception $e) { $template->title = 'Non-exis...
<?php require_once ('Base.php'); /** * * * * Entity Face item, represent an option in a facet group * * @author dev-HebertSaak * */ class Entity_FacetItem extends Entity_Base { public $facetName = ''; public $facetPrintName = ''; public $facetCount = ''; public $facetSelectCondition = ''; // se...
<?php if($_POST) { $visitor_name = ""; $visitor_email = ""; $email_title = ""; $concerned_department = ""; $visitor_message = ""; $email_body = "<div>"; if(isset($_POST['visitor_name'])) { $visitor_name = filter_var($_POST['visitor_name'], FILTER_SANITIZE_STRING); $...
<?php /** * This file is part of phpcq/autoload-validation. * * (c) 2014 Christian Schiffler, Tristan Lins * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * This project is provided in good faith and hope to be usable by anyone. ...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Visitor; class VisitorController extends Controller { /** * Returns view of all visitors * * @return void */ public function index() { $visitors = Visitor::all(); return view('visitors....
<?php return array ( 'en' => 'अंग्रेज़ी', 'en_AS' => 'अंग्रेज़ी (अमेरिकी समोआ)', 'en_IM' => 'अंग्रेज़ी (आइल ऑफ़ मैन)', 'en_IE' => 'अंग्रेज़ी (आयरलैंड)', 'en_ER' => 'अंग्रेज़ी (इरिट्रिया)', 'en_MP' => 'अंग्रेज़ी (उत्तरी मारियाना द्वीपसमूह)', 'en_AI' => 'अंग्रेज़ी (एंग्विला)', 'en_AG' => 'अंग्रेज़ी (एंटिग...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateSeriesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('series', functio...
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class InterestGroupPostResponse extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArray($request) ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class UserIndicator extends Model { protected $fillable = [ 'value','cycle_id','user_id' ,'indicator_id' ]; public function user() { return $this->belongsTo('App\Models\User'); } }
<?php namespace App\Events; use Illuminate\Auth\Events\Registered; use Illuminate\Broadcasting\Channel; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Queue\InteractsWithQueue; class GoogleAuthConfirmed implements ShouldBroadcast { /** * Cre...
@extends('layouts.manage') @section('content') @stop
<?php /* SVN FILE: $Id: test_plugin_other_helper.php 6311 2008-01-02 06:33:52Z phpnut $ */ /** * Short description for file. * * Long description for file * * PHP versions 4 and 5 * * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite> * Copyright 2005-2008, Cake Software Foundation, Inc. ...
<?php namespace Ojs\JournalBundle\Event; use Symfony\Component\EventDispatcher\Event; use Symfony\Component\HttpFoundation\Response; class CitationNewEvent extends Event { /** * @var Response */ private $response; /** * @var int */ private $journalId; /** * @var int ...
<?php use App\Http\Controllers\AdminController; use App\Http\Controllers\CartController; use App\Http\Controllers\ExcelController; use App\Http\Controllers\GuzzleController; use App\Http\Controllers\ProductController; use App\Http\Controllers\StripeController; use App\Http\Controllers\UserController; use App\Models\Ca...
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to plac...
<?php namespace Hossein7441\TwoFactorAuth\Facades; use Imanghafoori\SmartFacades\Facade; class BaseFacade extends Facade { // }
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Book; class BooksController extends Controller { public function store() { $book = Book::create($this->validateRequest()); return redirect($book->path()); } public function update(Book $book) { ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateLFMFileMimeTypes extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('lfm_file_mi...
<!doctype html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- CSRF Token --> <meta name="csrf-token" content="{{ csrf_token() }}"> <title>{{ config('app.name', 'Laravel') }}</tit...
<?php /** * @copyright Bluz PHP Team * @link https://github.com/bluzphp/skeleton */ /** * @namespace */ namespace Application\Tests\Dashboard; use Application\Tests\ControllerTestCase; use Application\Users; use Bluz\Proxy\Response; /** * @package Application\Tests\Dashboard * @author Anton Shevchuk * @cre...
<?php namespace Gtt\Bundle\DataTransformerBundle\Tests\TestFieldSetBuilder; use Gtt\Bundle\DataTransformerBundle\Fields\FieldSet; use Gtt\Bundle\DataTransformerBundle\Fields\FieldSource\FieldSource; use Gtt\Bundle\DataTransformerBundle\Service\AbstractFieldSetBuilder; class TestOtherInformationFieldSetBuilder exte...
<?php declare(strict_types = 1); namespace PHPCensor\Command; use PHPCensor\ConfigurationInterface; use PHPCensor\DatabaseManager; use PHPCensor\Common\Exception\InvalidArgumentException; use PHPCensor\Model\Build; use PHPCensor\Service\BuildService; use PHPCensor\Store; use PHPCensor\Store\ProjectStore; use PHPCens...
@extends('layouts.frontend.app') @section('title', 'Posts') @push('css') <link rel="stylesheet" href="{{asset('assets/frontend/css/category/styles.css')}}"> <link rel="stylesheet" href="{{asset('assets/frontend/css/category/responsive.css')}}"> <style> .favorite_posts{ color: blue; ...
<!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"> <title>Home</title> <link rel="shortcut icon" type="image/x-icon" href="assets/images/favicon1.ico"> <link href="https://fon...
<?php namespace app\lib\exception; use Exception; use think\exception\Handle; use think\Log; use think\Request; /** * Created by PhpStorm. * User: wang * Date: 2017/5/21 * Time: 14:44 * Description: */ class ExceptionHandler extends Handle { private $code; private $msg; private $errorCode; publi...
<?php use Illuminate\Database\Seeder; use App\Role; use Carbon\Carbon; class RolesTableSeeder extends Seeder { public function run() { DB::table('roles')->insert([ [ 'id' => 'adm', 'name' => 'administer', 'created_at' => Carbon::now()->format...
<div class="jumbotron"> <h1 class="text-center fs-home-logo"><?= $title ?></h1> <hr> <br> <?php foreach($users as $u){ echo'<a class="btn btn-primary fs-food-page" role="button" href="'.base_url("/users/view_cv/?id=".$u["id"]).'">'; echo'View Details'; echo '</a>'; echo "<h4>";...
<?php use ramosisw\CImaterial\web\MaterialAsset; use yii\authclient\widgets\AuthChoice; use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $form yii\widgets\ActiveForm */ /* @var $model \frontend\modules\user\models\SignupForm */ $this->title = 'Criar Conta'; $this->params['bread...
<?php /** * This file is part of PHP Mess Detector. * * Copyright (c) Manuel Pichler <mapi@phpmd.org>. * All rights reserved. * * Licensed under BSD License * For full copyright and license information, please see the LICENSE file. * Redistributions of files must retain the above copyright notice. * * @author...
<?php declare(strict_types=1); namespace App\Controller; /** * Firearms Controller * * @property \App\Model\Table\FirearmsTable $Firearms * @method \App\Model\Entity\Firearm[]|\Cake\Datasource\ResultSetInterface paginate($object = null, array $settings = []) */ class FirearmsController extends AppController { ...
<?php namespace helsingborg_dsc_startpage; function get_top_links($pages) { if(!is_array($pages)) { $pages = []; } $posts = array_map(function($pageId) { $page; $lang = $_REQUEST['lang']; if(get_post_id_translated($pageId) != null) { $page = get_post(get_post_id_translated($pageId)); }...
<!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Bootstrap CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="s...
<?php // vars from the form $form_name = $_POST["form_name"]; $form_email = $_POST["form_email"]; $form_body = $_POST["form_body"]; $form_admin_email = $_POST["form_admin_email"]; // I check if all the variables are set and if not I end the script and print an error if (!isset( $form_name, $form_email, $form_bo...
<li id="menu-item-254" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-has-icon menu-item-254"> <a href="#"><i class="menu-item-icon fa fa-chart-bar" ></i>رتبه بندی</a> <ul class="sub-menu sub-menu-has-icons"> <li id="menu-item-1954" class="menu-item menu-...
<?php include_once '../session.php'; include_once APP_PATH . '/classes/Settings.php'; include_once APP_PATH . '/classes/Mailer.php'; if ($_SERVER['REQUEST_METHOD'] === "POST") { $status = null; if (isset($_POST['Form1'])) { $settings = new Settings; if ($_SESSION['csrf'] !== $utils->sanitize($_...
<?php /** * * @package Legacy * @version $Id: install_checkDB.inc.php,v 1.3 2008/09/25 15:12:17 kilica Exp $ * @copyright Copyright 2005-2007 XOOPS Cube Project <https://github.com/xoopscube/legacy> * @license https://github.com/xoopscube/legacy/blob/master/docs/GPL_V2.txt GNU GENERAL PUBLIC LICENSE Version 2 * ...
<section class="container-fluid" style="position: relative;"> @if(count($products)==0) <section class="alert alert-info">Không tìm thấy sản phẩm !</section> @else <div class="container"> <div class="row"> @foreach ($products as $product) <div class="col-xs-12 col-sm-8 col-md-3" style="padding-right: 0px;"> ...
<?php namespace App\Providers; use App\Permission; use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; use Illuminate\Support\Facades\Gate; class AuthServiceProvider extends ServiceProvider { /** * The policy mappings for the application. * * @var array */ ...
<?php namespace App\Http\Controllers; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Hash; class UserController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { re...
<?php /** * Tests the options for retrieving events since a date * * @author Aaron Saray */ namespace MadMimi\Tests\Options\Members; use MadMimi\Options\Members\EventsSince; /** * Class EventsSinceTest * @package MadMimi\Tests\Options\Members */ class EventsSinceTest extends \PHPUnit_Framework_TestCase { p...
<?php declare(strict_types=1); namespace App\Doctrine\Functions; use Doctrine\ORM\Query\AST\Functions\FunctionNode; use Doctrine\ORM\Query\AST\PathExpression; use Doctrine\ORM\Query\Lexer; use Doctrine\ORM\Query\Parser; use Doctrine\ORM\Query\SqlWalker; class Date extends FunctionNode { public ?PathExpression $...
<?php /** * This file is part of CodeIgniter 4 framework. * * (c) CodeIgniter Foundation <admin@codeigniter.com> * * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ // Pager language settings return [ 'pageNavigation' => ...
<?php # # $Id: //Infrastructure/GitHub/Database/avo/web/session_drilldown.php#2 $ # # Locks and active session history for the session # include 'start.php'; $sid = u::request_val('sid'); $sql = 'select s.sid, s.serial# serial,'; $sql .= "'kill -9 ' || p.spid kill_os" ; $sql .= ' from v$session s left outer join v$p...
<?php class CandidatesController extends BaseController { /** * Display a listing of the resource. * * @return Response */ public function index() { $candidates = Candidate::orderBy('actual_votes', 'DESC') ->orderBy(DB::raw('RAND()')) ...
<div class="kt-section"> <div class="kt-section__content kt-section__content--solid"> <h4>CARGOS ACADÉMICOS <small class="kt-hide">With faded secondary text</small></h4> </div> </div> <div class="form-group row"> <div class="col-lg-12"> <!--begin: Datatable --> <table class="table table-striped table-hover t...
<?php /* * Copyright (c) 2020 Tobias Briones. All rights reserved. * * SPDX-License-Identifier: MIT * * This file is part of Example Project: Apps for the MySQL Northwind DB. * * This source code is licensed under the MIT License found in the * LICENSE file in the root directory of this source tree or at * htt...
<?php namespace NotificationChannels\Infobip\Exceptions; use NotificationChannels\Infobip\InfobipMessage; use NotificationChannels\Infobip\InfobipSmsAdvancedMessage; class CouldNotSendNotification extends \Exception { /** * @return static */ public static function invalidCredentials() { ...
@extends('frontend.app') @section('content') <livewire:comment /> @endsection
<?php namespace ChurchTools\Api2\Exception; class GetCampusByIdForbiddenException extends \RuntimeException implements ClientException { public function __construct() { parent::__construct('Forbidden to see campus', 403); } }
<?php declare(strict_types = 1); namespace Vairogs\Cache\EventListener; use JetBrains\PhpStorm\ArrayShape; use Psr\Cache\InvalidArgumentException; use Symfony\Component\Cache\Adapter\ChainAdapter; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpFoundation\Request; use Symfony...
<?php $this->load->view('template/header.php');?> <?php $this->load->view('template/sidebar.php');?> <!DOCTYPE html> <html> <head> <title></title> <style type="text/css"> #header { width: 100%; height: 50px; } #footer { width: 100%; height: 100px; } #sidebar { width: 15%; float: left; ...
<?php /** * Copyright 2017 Google Inc. 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/LICENSE-2.0 * * Unless required by ...
<!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="Refresh" content="300"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Conte...
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace spec\Sylius\Bundle\CoreBundle\CatalogPromotion\Processor; use Php...
<?php class Pages extends CI_Controller{ public function view($page = '/posts'){ if(!file_exists(APPPATH.'views/pages/'.$page.'.php')){ redirect('/posts'); show_404(); } $data['title'] = ucfirst($page); $this->load->view('templates/header'); $this->load->view('page...
<?php /* TwigBundle:Exception:error.txt.twig */ class __TwigTemplate_169c90e24b4baa85e313ee46202c8f0fb342f0f98a931c28879703ba38b4cfbf extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; class Admin extends Authenticatable { use HasFactory; protected $table = 'admin'; protected $primaryKey = 'admin_id'; protected $fillable = [ 'admin_nama...
<?php use Restserver\Libraries\REST_Controller; defined('BASEPATH') or exit('No direct script access allowed'); require APPPATH . 'libraries/REST_Controller.php'; require APPPATH . 'libraries/Format.php'; class Mahasiswa extends REST_Controller { public function __construct() { parent::__construct(...
<?php namespace LolAPI\Service\Game\Ver1_3\Recent; use LolAPI\APIKey; use LolAPI\GameConstants\RegionalEndpoint\RegionalEndpointInterface; class Request { /** * API Key * @var APIKey */ private $apiKey; /** * Regional endpoint * @var RegionalEndpointInterface */ private ...
@extends('layouts.app') @section('content') <div class="container spark-screen"> <div class="row"> <div class="col-md-10 col-md-offset-1"> <div class="panel panel-default"> <div class="panel-heading"> <span class="text-left">Kundnummer {{ $customer->customer_...
<?php declare(strict_types=1); namespace Tests\Commands\Upgrade\V5_5_10_0\Seeds; use Illuminate\Database\Seeder; class ConsolesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { \DB::table('consoles')->delete(); \DB...
<?php namespace app\weixin\controller; use think\Controller; use EasyWeChat\Factory; class Wauth extends Controller{ public function server_content(){ $config = config('wechat.official_account.default'); $app = Factory::officialAccount($config); $app->server->push(function ($message) { ...
<?php namespace App\Http\Controllers\API; use App\Http\Requests\API\CreateCategoryAPIRequest; use App\Http\Requests\API\UpdateCategoryAPIRequest; use App\Models\Category; use App\Repositories\CategoryRepository; use Illuminate\Http\Request; use App\Http\Controllers\AppBaseController; use Response; /** * Class Categ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Album extends Model { protected $fillable = array('name', 'description', 'cover_image'); public function photos(){ return $this->hasMany('App\Photo'); } }
<?php namespace Oro\Bundle\FilterBundle\Twig; use Symfony\Component\Form\FormView; use Symfony\Component\Form\Extension\Core\View\ChoiceView; class RenderLayoutExtension extends AbstractExtension { /** * Extension name */ const NAME = 'oro_filter_render_layout'; /** * JS block suffix ...
<x-app-layout> <x-articles-container :tweets="$tweets" /> </x-app-layout>
<?= $this->extend('pages/layout') ?> <?= $this->section('content') ?> <?php $username = [ 'name' => 'username', 'id' => 'username', 'value' => null, 'class' => 'form-control' ]; $password = [ 'name' => 'password', 'id' => 'password', 'class' => 'form-control' ]; $session = session(); $erro...
<!-- Header Inner --> <div class="header-inner"> <div class="container"> <div class="cat-nav-head"> <div class="row"> <div class="col-lg-3"> <div class="all-category"> <h3 class="cat-heading"><i class="fa fa-bars" aria-hidden="true"></i>CATEGORIES</h3> <ul class="main-category...
<?php mysql_connect(DB_HOST, DB_USERNAME , DB_PASSWORD); mysql_select_db(DB_NAME); mysql_query("SET CHARSET utf8"); mysql_query("SET NAMES `utf8` COLLATE `utf8_polish_ci`"); ?>
<?php namespace App\Notifications; use Illuminate\Bus\Queueable; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; class PasswordResetRequest extends Notification implements ShouldQueue { use Queueable; protected $token; ...
<?php namespace Application\Form; use Zend\Form\Form; use Zend\Form\Element; use Zend\Form\Factory; /** * Description of ContactForm * * @author seyfer */ class ContactForm extends Form { public function __construct($name = null, $options = array()) { parent::__construct("page", $options); ...