text
stringlengths
2
1.03M
<? define("STOP_STATISTICS", true); define("BX_SECURITY_SHOW_MESSAGE", true); require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); if(!$USER->IsAdmin()) die(); if(!CModule::IncludeModule('socialnetwork')) die(); IncludeModuleLangFile(__FILE__); $name = ""; if ( array_key_e...
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Models\User; use App\Http\Requests\EditUserRequest; use Auth; use Illuminate\Support\Facades\Hash; class AdminUserController extends Controller { public function getEditUser($id) { $data[...
<?php $directoryLevel = "../"; $pageTitle = "Anime Video Game Resource Center : Kamen Rider"; include_once($directoryLevel."header.php"); ?> <h2 class="center">Kamen Rider</h2> <table border="0" width="100%"> <tr> <td valign="top"><img src="<?php print($directoryLevel); ?>images/series/castKamen.jpg" width="509...
@extends('master.master') @section('title','Chi tiết sản phẩm') @section('content') <div class="hero-wrap hero-bread" style="background-image: url('images/bg_1.jpg');"> <div class="container"> <div class="row no-gutters slider-text align-items-center justify-content-center"> <div...
<?php use Illuminate\Database\Seeder; use Illuminate\Support\Facades\Hash; class TypearchivesTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // DB::table('typearchives')->insert([ 'nombre' => 'Informe Se...
<?php $params = require __DIR__ . '/params.php'; $db = require __DIR__ . '/db.php'; $config = [ 'id' => 'basic', 'basePath' => dirname(__DIR__), //'bootstrap' => ['log'], 'aliases' => [ '@bower' => '@vendor/bower-asset', '@npm' => '@vendor/npm-asset', ], 'modules' => [ ...
<?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 declare(strict_types=1); namespace Contributte\NewRelic\DI; use Contributte\NewRelic\Agent\ProductionAgent; use Contributte\NewRelic\Callbacks\OnErrorCallback; use Contributte\NewRelic\Callbacks\OnRequestCallback; use Contributte\NewRelic\Config\ErrorCollectorConfig; use Contributte\NewRelic\Config\ParametersC...
<?php /** * written by http://99webtools.com/blog/php-simple-captcha-script/ */ session_start(); $code=rand(1000,9999); $_SESSION["code"]=$code; $im = imagecreatetruecolor(50, 24); $bg = imagecolorallocate($im, 22, 192, 212); // background color cyan $fg = imagecolorallocate($im, 55, 55, 55); // text color gray ima...
<?php /** * This file is part of the Juvem package. * * (c) Erik Theoboldt <erik@theoboldt.eu> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace AppBundle\Entity; /** * Class ParticipantCommentRepository * * @package A...
<?php /** * This file is part of the Spryker Commerce OS. * For full license information, please view the LICENSE file that was distributed with this source code. */ namespace Orm\Zed\ProductReview\Persistence; use Spryker\Zed\ProductReview\Persistence\Propel\AbstractSpyProductReviewQuery as BaseSpyProductReviewQ...
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Category; class CategoryController extends Controller { public function index() { $categories = Category::orderBy('name')->paginate(10); return view('admin.categories.index')->with(co...
tess
<?php use yii\helpers\Url; use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $searchModel common\models\MessagesSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Messages'; $this->params['breadcrumbs'][] = $this->title; ?> <!-- ============================================== ...
<?php namespace SistemApi\Model\Urun; use SistemApi\Model\Base\Model; /** * @deprecated use Siparis\SiparisAdres * * @property int id * @property int site_id * @property int kullanici_id * @property string adi * @property string mail * @property string telefon * @property int ilce_id * @property string semt...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateSuscripcionsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('suscripcio...
<?php use yii\helpers\ArrayHelper; use yii\jui\DatePicker; use yii\widgets\MaskedInput; ?> <div class="row"> <div class="col-md-4"> <?= $form->field($model, 'jp_type')->dropDownList($model->getJPTypeList(), ['prompt' => 'Выберите ...']); ?> <?= $form->field($model, 'jp_address')->textarea() ?> ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Piutang extends Model { public $table = 'piutang'; protected $guarded = ['id']; }
<?php namespace backend\modules\vacancies\controllers; use backend\models\VacanciesFilter; use common\models\EmploymentType; use common\models\Locality; use common\models\Specializations; use common\models\Vacancies; use yii\filters\AccessControl; use yii\helpers\ArrayHelper; use yii\web\Controller; use yii\web\NotFo...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class CategoriaRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get ...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Admin extends CI_Controller { public function __construct() { parent::__construct(); $admin_id = $this->session->userdata('admin_id'); if ($admin_id == NULL) { redirect('Admin_login'); } } ...
<!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N3VKM2V" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) -->
<?php /** * Created by Miki Maine Amdu. * For : INNOVATE E-COMMERCE * User: MIKI$ * Date: 4/22/2016 * Time: 3:37 PM. */ namespace Innovate\Eav\Value; use Innovate\BaseModel; use Innovate\Eav\Value\Traits\Relationship\ProductAttributeVarcharRelationship; class ProductAttributeVarchar extends BaseModel { use ...
<?php namespace App\Admin\Controllers; use App\Models\ControlMode; use Encore\Admin\Form; use Encore\Admin\Grid; use Encore\Admin\Facades\Admin; use Encore\Admin\Layout\Content; use App\Http\Controllers\Controller; use Encore\Admin\Controllers\ModelForm; class ControlModeController extends Controller { use Mode...
<?php declare(strict_types=1); namespace App\Action\Comment; final class AddCommentRequest { private $body; private $tweetId; public function __construct(string $body, int $tweetId) { $this->body = $body; $this->tweetId = $tweetId; } public function getBody(): string { ...
<?php namespace app\models; class User extends \yii\base\Object implements \yii\web\IdentityInterface { public $id; public $username; public $password; public $authKey; public $accessToken; private static $users = [ '100' => [ 'id' => '100', 'username' => 'admi...
<?php /** * LICENSE: 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 to in writing, software ...
<?php namespace WeProvide\NginxRedirect\Controller\Adminhtml\Redirect; use Magento\Framework\App\Filesystem\DirectoryList; use Magento\Framework\App\Response\Http\FileFactory; use Magento\Framework\File\Csv; use WeProvide\NginxRedirect\Model\ResourceModel\Redirect\CollectionFactory; class Export extends Index { ...
<?php /* Cachekey: cache/stash_default/doctrine/[concrete\core\entity\file\image\thumbnail\type\type$fttypewidth@[annot]][1]/ */ /* Type: array */ /* Expiration: 2017-05-05T06:33:16+03:00 */ $loaded = true; $expiration = 1493955196; $data = array(); /* Child Type: array */ $data['return'] = unserialize(base64_dec...
@extends('layouts.occupation') <title>{{ config('app.name') }} - {{ $career_user->company_name }} - {{ __('menu.MENU_CREATE_JOB') }}</title> @section('content') <div class="container-fluid gedf-wrapper"> <div class="row"> <div class="col-md-6 gedf-main"> <section class="bar background-white relative-p...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Job extends Model { protected $table = 'Job2'; // public function enters() // { // return $this->belongsToMany('App\Enter_job'); // } public function enters() { return $this->belongsToMany('App\Enter', 'User_...
<?php namespace Loevgaard\DandomainImageOptimizerBundle\Console; use Symfony\Component\Console\Output\NullOutput; use Symfony\Component\Console\Output\OutputInterface; trait OutputAwareTrait { private $output; /** * @param OutputInterface $output * @return $this */ public function setOutpu...
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Handles DB QBE search * * @package PhpMyAdmin */ namespace PhpMyAdmin\Database; use PhpMyAdmin\Core; use PhpMyAdmin\DatabaseInterface; use PhpMyAdmin\Relation; use PhpMyAdmin\Table; use PhpMyAdmin\Template; use PhpMyAdmin\Url; use PhpMyAdmin\Util; /** * Class...
<?php declare(strict_types=1); namespace App\Assets; use App\Environment; use InvalidArgumentException; class AssetFactory { public const TYPE_ALBUM_ART = 'album_art'; public const TYPE_BACKGROUND = 'background'; public const TYPE_BROWSER_ICON = 'browser_icon'; public static function createAlbumArt...
<?php /** * This file is part of Totara Learn * * Copyright (C) 2019 onwards Totara Learning Solutions LTD * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the Licens...
@extends('layout.master') @section('content') @include('layout.header') <body> </div> <div class="slide mb-5"> <div id="demo" class="carousel " data-ride="carousel"> <ul class="carousel-indicators"> <li data-target="#demo" data-slide-to="0" class="active"><...
<?php use Twig\Environment; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; use Twig\Extension\SandboxExtension; use Twig\Markup; use Twig\Sandbox\SecurityError; use Twig\Sandbox\SecurityNotAllowedTagError; use Twig\Sandbox\SecurityNotAllowedFilterError; use Twig\Sandbox\SecurityNotAllowedFunctionError; use T...
@extends("theme") @section("content") <div class="inner-banner"> </div> <section class="w3l-breadcrumb"> <div class="container"> <ul class="breadcrumbs-custom-path"> <li class="active"><span class="fa fa-arrow-right mx-2" aria-hidden="true"></span> Contact Us</li> </ul> ...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>{{$info['title']}}</title> <link type="text/css" rel="stylesheet" href="/vendors/css/wenjuan_ht.css"> <link type="text/css" rel="stylesheet" href="/vendors/css/icon.css"> <link type="text/css" rel="stylesheet" href="/vendors/css/easyui.css"...
<?php namespace App\Http\Livewire; use App\Client; use Livewire\Component; class ClientList extends Component { public $clients; public $clientsCollection; public function mount() { $this->clientsCollection = Client::orderBy('created_at', 'DESC')->get(); $this->clients = $this->clie...
<?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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Tingpend_model extends MY_Model{ public $_table = 'ref_tingpend'; }
<?php /* @var $this yii\web\View */ /* @var $form yii\bootstrap\ActiveForm */ /* @var $model \frontend\models\ContactForm */ use yii\helpers\Html; use yii\bootstrap\ActiveForm; use yii\captcha\Captcha; $this->title = 'Contact'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="site-contact"> <h1><?= ...
<?php namespace App\Exceptions; use Exception; class DocumenterException extends Exception { const GENERAL_ERROR = 0; // const NOT_ENOUGH = 1; // const BAD_SIGNATURE = 2; // const UNABLE_TO_CREATE_INVOICE = 3; // const INVOICE_NOT_FOUND = 4; }
<?php namespace domain\Services; use App\Models\Todo; class TodoService { protected $task; public function __construct(){ $this-> task = new Todo(); } public function all(){ return $this-> task->all(); // dd($response); // return view('pages.todo.index')->with($respon...
<svg hidden> <defs> @foreach($_BLICONS_LIST_ as $name => $x) <g id="icon:{{ $name }}">{!! $list[$name] ?? '' !!}</g> @endforeach </defs> </svg>
<!-- Main section--> <section> <!-- Page content--> <div class="content-wrapper"> <h3 style="height: 50px; font-size: 13px;"> <a name="admin/marca/index" style="top: -12px;position: relative; text-decoration: none" class="holdOn_plugin"> <button type="button" class="mb-sm...
<?php return [ '_type' => 'Gantry\\Component\\Content\\Block\\HtmlBlock', '_version' => 1, 'id' => '58f668b3312923.54599630', 'content' => '<div class="g-content g-particle"> <a href="/" title="" rel="home" class="g-logo g-logo-helium"> ...
<?php $con = mysqli_connect("localhost","root","","miumiu"); if(!$con) echo $con->error;
<?php namespace App\Http\Controllers; use App\Models\Action; use App\Models\Models\Image; use App\Models\User; use DateTime; use Illuminate\Http\Middleware\SoloUser; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; class UserController extends Controller { pub...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); Class Monitor extends WFF_Controller { function __construct() { parent::__construct(); $only_main_content = (bool) $this->input->get("omc"); $this->_build_template($only_main_content); } public function one() { ...
<?php /* Cachekey: cache/stash_default/doctrine/[concrete\core\entity\attribute\key\filekey@[annot]][1]/ */ /* Type: array */ /* Expiration: 2017-04-02T02:40:37+02:00 */ $loaded = true; $expiration = 1491093637; $data = array(); /* Child Type: array */ $data['return'] = unserialize(base64_decode('YToyOntpOjA7Tzoy...
<?php class conectar{ private $servidor="localhost"; private $usuario="root"; private $bd="soiling"; private $password=""; public function conexion(){ $conexion=mysqli_connect($this->servidor, $this->usuario, $this->password, $this->bd); return $conexion; } } ...
<!doctype html> <html class="no-js" lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>@yield('title')</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="shortcut icon" type="image.png" href="{{ asset('admin_ass...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateSizeDetailsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::connection('mysql')...
<?php // +---------------------------------------------------------------------- // | snake // +---------------------------------------------------------------------- // | Copyright (c) 2016~2022 http://baiyf.cn All rights reserved. // +---------------------------------------------------------------------- // | License...
<?php /* * This file is part of PhpSpec, A php toolset to drive emergent * design by specification. * * (c) Marcello Duarte <marcello.duarte@gmail.com> * (c) Konstantin Kudryashov <ever.zet@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with t...
<?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 Ben\UserBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class BenUserBundle extends Bundle { public function getParent() { return 'FOSUserBundle'; } }
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Team extends Model { protected $fillable = ['name', 'position', 'text', 'image', 'modal_id']; public function getImageTag() { return '<img height="50px" id="uploaded_photo" src="'. $this->image .'">'; } public function ...
--TEST-- Test strncmp() function : usage variations - binary safe(binary values) --FILE-- <?php /* Prototype : int strncmp ( string $str1, string $str2, int $len ); * Description: Binary safe case-sensitive string comparison of the first n characters * Source code: Zend/zend_builtin_functions.c */ /* Test strncmp()...
<?php /** * Form helper * * @package Nails * @subpackage nails/module-cms * @category Helper * @author Nails Dev Team */ namespace Nails\Cms\Helper; use Nails\Common\Helper\ArrayHelper; use Nails\Factory; class Form { /** * The following constants represent the various field types avail...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <p>Sehubung adanya blog baru yang ditulis oleh {{$nama}}, dengan judul {{$judul}}. Dimohon untuk segera mereview blog tersebut agar...
<?php namespace App\View\Components; use Illuminate\View\Component; class SearchDemandeComponent extends Component { /** * Create a new component instance. * * @return void */ public function __construct() { // } /** * Get the view / contents that represent the c...
<?php /** * Created by PhpStorm. * User: lincoln * Date: 12/08/2017 * Time: 13:42 */ use yii\widgets\ActiveForm; use yii\helpers\Html; /* @var $username */ /* @var $currentRoles */ /* @var $allRoles */ $this->title = $username; $this->params['breadcrumbs'][] = ['label' => '管理员', 'url' => ['index']]; $this->params...
<div class="offset-top-5 offset-md-top-0"> <ul class="list-inline list-inline-sm reveal-inline reval-md-block"> <li class="text-white text-italic">Make an Appointment Now!</li> <li><a class="text-white text-extra-bold link-underline" href="#" data-toggle="modal" data-target="#bookAppointment">Book a...
<?php declare(strict_types=1); /* * This file is part of the Explicit Architecture POC, * which is created on top of the Symfony Demo application. * * (c) Herberto Graça <herberto.graca@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this ...
<?php class Customer_model extends CI_Model { public function create_new_customer($email) { $data = array( 'email' => $email ); $this->db->insert('customer', $data); } public function getCustomer($email) { $this->db->select('*'); $this->db->where('...
<h2 style="margin-top:0px">Rawat_inap <?php echo $button ?></h2> <form action="<?php echo $action; ?>" method="post"> <div class="form-group"> <label for="int">Id Tindakan <?php echo form_error('id_tindakan') ?></label> <input type="text" class="form-control" name="id_tindakan" id="...
<?php class Iati_Aidstream_Element_Activity_Conditions_Condition extends Iati_Core_BaseElement { protected $isMultiple = true; protected $className = 'Condition'; protected $displayName = 'Condition'; protected $tableName = 'iati_conditions/condition'; protected $attribs = array('id', '@type'); ...
<?php session_start(); ob_start("ob_gzhandler"); ini_set('display_errors', 'off'); ini_set('memory_limit', '64M'); set_time_limit(1024); /* Maximum execution time of each script, in seconds */ include('config.php'); include('functions.php'); $debugExtract = $_POST['debug_mode']; $url_address = $_POST['url_address']; $u...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" style="min-height:100%;background:#f3f3f3"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body style="min-width:100%;-webkit-...
<?php /** * The template for displaying featured content * * @package Foodie_World */ ?> <?php $enable_content = get_theme_mod( 'foodie_world_featured_content_option', 'disabled' ); if ( ! foodie_world_check_section( $enable_content ) ) { // Bail if featured content is disabled. return; } $featured_posts = foo...
<?php /** * Created by PhpStorm. * User: ivan * Date: 09.03.17 * Time: 11:39 */ namespace App\Repositories; use App\Post; use App\Redis; class Posts { protected $redis; public function __construct(Redis $redis) { $this->redis = $redis; } public function all() { return P...
@extends('master') @section('title', 'Mina bokningar') @section('content') <h1>Kommande</h1> <table style="width: 100%"> <thead> <tr> <th>Entitet</th> <th style="width:30px;"></th> <th>Beskrivning</th> <th>Status</th> <th>Från</th> <th>Till</th> </tr> </thead> @forelse ($future a...
<?php /** * Created by PhpStorm. * User: bhavin * Date: 17/10/2017 * Time: 05:00 */ namespace App\Console\Commands; use App\Lib\Account; use App\Lib\AmazonS3; use App\Lib\CompanyConfiguration; use App\Lib\CronHelper; use App\Lib\GatewayAccount; use App\Lib\Helper; use App\Lib\Job; use App\Lib\JobFile; use App\...
<div class="app-sidebar colored"> <div class="sidebar-header"> <a class="header-brand" href="index.html"> <div class="logo-img"> <img src="src/img/brand-white.svg" class="header-brand-img" alt="lavalite"> ...
<?php namespace frontend\modules\rate\controllers; use common\models\oldbk\EventRating; use common\models\oldbk\EventRatingCondition; use common\models\rateCondition\BaseCondition; use common\models\RateManager; use common\models\RateManagerCondition; use common\models\search\RateManagerSearch; use frontend\component...
<?php namespace App\Events; 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 Illuminate\Contracts\Bro...
@extends('layouts.app') @section('content') <div class="container"> <div class="col-md-12"> <div class="row"> <div class="card"> <div class="card-header"></div> <div class="card-body"> <table class="table table-bor...
<?php /** * Created by PhpStorm. * User: xu.gao * Date: 2016/1/20 * Time: 9:32 */ namespace backend\services\menu; interface IMenuService { /** * 查询菜单 * $where 条件数组 * @return mixed */ public function queryMenus($where = []); /** * 添加菜单 * @param array $params * @r...
<?php namespace App\Models; use Illuminate\Auth\Authenticatable; use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Facades\DB; use Laravel\Lumen\Auth\Author...
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\CatalogInventory\Model\Spi; /** * Interface StockRegistryProviderInterface */ interface StockRegistryProviderInterface { /** * @param int $scopeId * @return \Magento\CatalogInventor...
@extends('layouts.app') @section('content') <h1 class="text-center font-weight-bold">Administración de Proveedores</h1> <div class="card-body"> <a type="button" class="btn btn-primary" href="{{route('supplier.supplier.create')}}" > Crear Proveedores</a> </div> @livewire('Supplier.proveedores.proveedor') @endsec...
<?php defined('SONIC') or exit; /** * Sonic Web Framework * @license Apache License 2.0 * @link https://github.com/iamdual/sonic * @author Ekin Karadeniz (iamdual@icloud.com) */ // Load composer require SONIC . '/vendor/autoload.php'; // Load environment Sonic\Config\Environment::getInstance();
<?php require_once 'Mage/Customer/controllers/AccountController.php'; class Emp_Emma_AccountController extends Mage_Customer_AccountController { /** * Create customer account action */ public function createPostAction() { $session = $this->_getSession(); if ($session->isLoggedI...
<?php use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\Container; use Symfony\Component\DependencyInjection\Exception\InactiveScopeException; use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; use Symfony\Component\DependencyInjection\Ex...
<?php /** * This file is part of the GreenFedora PHP framework. * * (c) Gordon Ansell <contact@gordonansell.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace GreenFedora\Stdlib\Exception; use...
<div class="row"> <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12"> <div class="page-header"> <h2 class="pageheader-title">Petugas</h2> <div class="page-breadcrumb"> ...
<?php namespace ttmvc\Tests\Controllers; class MockController { private $calledMethods = []; public function isCalled($name, $args = null) { if (!isset($this->calledMethods[$name])) { return false; } return $this->calledMethods[$name]['args'] === $args; } public ...
@extends('includes.addy') @section('content_ter') <h1>Новый пост</h1> <hr/> {!! Form::open(['url' => 'article']) !!} <div class="form-group"> {!!Form::label('title', 'Title:')!!} {!!Form::text('title', null, ['class' => 'form-control'])!!} </div> <div class="form-group"> ...
<?php Yii::setAlias('@tests', dirname(__DIR__) . '/tests/codeception'); $params = require(__DIR__ . '/params.php'); $db = require(__DIR__ . '/db.php'); $config = [ 'id' => 'basic-console', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'controllerNamespace' => 'app\commands', 'components...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Actor extends Model { protected $table = 'actors'; public function films () { return $this->belongsToMany('App\Models\Film','actor_film','actor_id','film_id'); } // 1 actor thuộc 1 countries // 1 countries có n ...
<?php namespace DynamicFormBundle\Form\BaseType; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\OptionsResolver\OptionsResolver; /** * @package DynamicFormBundle\Form\BaseType */ class RadioGroupType extends AbstractType { /** * @p...
@extends('layouts.base') @section('content') <!-- ##### Breadcumb Area End ##### --> <div class="breadcumb-area box-shadow bg-overlay-header"> <div class="container h-100"> <div class="row h-100 align-items-center"> <div class="col-12 col-md-12"> <div cl...
{{-- <x-admin-layout> <x-slot name="header"> <h2 class="font-semibold text-xl text-gray-800 leading-tight"> {{ __('New State') }} </h2> </x-slot> <div class="container mx-auto "> <!-- This example requires Tailwind CSS v2.0+ --> <div class="flex flex-col"> ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class QuestionPaper extends Model { protected $fillable = ['question','a','b','c','d','result','papercode_id']; // }
<?php Route::group(['middleware' => ['web']], function () { Route::prefix('admin')->group(function () { Route::get('/', 'Webkul\Admin\Http\Controllers\Controller@redirectToLogin'); // Login Routes Route::get('/login', 'Webkul\User\Http\Controllers\SessionController@create')->defaults('_co...
<?php namespace Starlight\Framework\Collections\Views; /** * Lewis Lancaster 2017 * * Class Flight * * @package Starlight\Framework\Collections\Views */ use Flight as Renderer; use Starlight\Framework\Collections\Settings; class Flight { /** * H...
@extends('layouts.app') @section('styles') @endsection @section('content') <!-- breadcrumb --> <div class="breadcrumb-header justify-content-between"> <div class="my-auto"> <div class="d-flex"> <h4 class="content-title mb-0 my-auto">Advanced ui</h4><span class="text-muted mt-1 tx-13 m...