text
stringlengths
2
1.03M
@extends('layouts.admin_master') @section('products') active show-sub @endsection @section('title') @if(session()->get('language')== 'bangla') এ্যাড প্রাডাক্ট @else ADD PRODUCT @endif @endsection @section('add-product') active @endsection @section('admin_content') <div class="sl-mainpanel"> <nav class="bread...
<?php /* * 修改功能名称页 */ class Controller_Admin_User_Permission_Modifyfunction extends Controller_Admin_App { /** * 修改功能名称 * @access public * @return Response */ public function action_index($function_id) { $data = array(); //调用共用Header $data['header'] = Request::forge('admin/common/header')->ex...
<?php declare(strict_types=1); namespace Proget\PHPStan\PhpSpec\Type; use PHPStan\Broker\Broker; use PHPStan\Reflection\ClassMemberAccessAnswerer; use PHPStan\Reflection\ConstantReflection; use PHPStan\Reflection\MethodReflection; use PHPStan\Reflection\PropertyReflection; use PHPStan\TrinaryLogic; use PHPStan\Type\...
@extends('layouts.pre_app') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <div class="card"> <div class="card-header">{{ __('Login') }}</div> <div class="card-body"> <form method="...
@extends('master.student-page-master') @section('title') <title>Student Homepage</title> @stop @section('css') @stop @section('content') <div class="container-fluid"> <img src="../img/background.jpg" class="img-responsive" alt="Responsive image" style="height: 100%; width: 100%;"> </div> @stop @section('ja...
<?php use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model app\models\Post */ $this->title = $model->title; $this->params['breadcrumbs'][] = ['label' => 'Posts', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="post-view"> <h1><?= Html:...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUserRequestStatusesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('use...
<?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 Symfony\Component\Validator; /** * @author Bernhard Schussek <bschusse...
@extends('pages.admin.layout') @section('title', 'Chỉnh sửa sách') @section('header', 'Chỉnh sửa sách') @section('content') @if(session('result')) <div class="alert alert-success"> <ul> <li>{{ session('result') }}</li> </ul> </div> @endif <div class="col-sm-offset-2 col-sm-9"> <form class="form-hori...
@include('head') <style> .switch { position: relative; display: inline-block; width: 60px; height: 34px; } .switch input {display:none;} .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0;...
<?php namespace App\Http\Controllers\Backend; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class BackendController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middleware('auth'); } }
<?include_once $_SERVER["DOCUMENT_ROOT"].'/application/views/includes/popheader.php'; ?> <link href="<?php echo base_url(); ?>assets/kanban/dist/hackerskanban.css" rel="stylesheet" type="text/css" /> <style> .group_wrap {clear:both;position:relative;width:100%;height:auto;} .group_wrap ul{clear:both;position:...
<div class="col-md-12 mapwrapper-title"> <h2 class="animated bounce">unleash at our destinations</h2> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. <br/>Lorem Ipsum has been the industry's standard.</p> </div> <div class="container-fluid"> <div class="row"> ...
<?php $num = 4;$size = 35; $width = 265;$height = 70; !$width && $width = $num * 5*$size*1.5 + 5*$size/25; !$height && $height = $size * 2.5; // 去掉了 0 1 O l 等 $str = "23456789abcdefghijkmnpqrstuvwxyzABCDEFGHIJKLMNPQRSTUVW"; $code = ''; for ($i = 0; $i < $num; $i++) { $code .= $st...
<?php namespace App\Jobs; use Illuminate\Bus\Queueable; use Illuminate\Queue\SerializesModels; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Support\Facades\Mail; use Auth; use App\Helpers; use App\CronLog; use App\Batch...
<!-- database --> <div class="data-comment"> <!-- public_table --> <div class="public_table"> <span class="table_name">table name</span> <div class="search_engine"> <form action=""> <input type="text" placeholder="SEARCH"> <button class="knob"><i class="fa-solid fa-magnifying-g...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Post extends Model { protected $table='tb_post'; protected $primaryKey = 'id_post'; public $timestamps = false; protected $guard = []; public function tracking() { return $this->hasMany('App\Tracking','id_post'); ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Str; class BoatVideo extends Model { use HasFactory; /** * The attributes that are mass assignable. * * @var string[] */ protected $fillab...
<?php namespace BankId\Merchant\Library\Schemas\saml\metadata; /** * Class representing ArtifactResolutionService */ class ArtifactResolutionService extends IndexedEndpointType { }
<?php namespace Kunstmaan\NodeBundle\Entity; /** * A StructureNode will always be offline and its nodes will never have a slug. */ abstract class StructureNode extends AbstractPage { /** * A StructureNode will always be offline. * * @return bool */ public function isOnline() { ...
<?php /** * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. * * ComplianceManagementPartnerAssignment File * PHP version 7 * * @category Library * @package Microsoft.Graph * @copyright (c) Microsoft Corporation. Al...
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to plac...
<?php /** @file */ require_once('library/ASNValue.class.php'); require_once('library/asn1.php'); function rsa_sign($data,$key,$alg = 'sha256') { if(! $key) return 'no key'; $sig = ''; if(intval(OPENSSL_ALGO_SHA256) && $alg === 'sha256') $alg = OPENSSL_ALGO_SHA256; openssl_sign($data,$sig,$key,$alg); return $...
@extends('template') @section('Title') Regis Pegawai @endsection @section('Content') <body class="bg-gradient-primary"> <div class="container"> <div class="card shadow-lg o-hidden border-0 my-5"> <div class="card-body p-0"> <div class="row"> <div class="co...
--TEST-- Test mb_strpos() function : error conditions - Pass unknown encoding --SKIPIF-- <?php extension_loaded('mbstring') or die('skip'); function_exists('mb_strpos') or die("skip mb_strpos() is not available in this build"); ?> --FILE-- <?php /* Prototype : int mb_strpos(string $haystack, string $needle [, int $off...
<?php declare(strict_types=1); namespace DoctrineMigrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; /** * Auto-generated Migration: Please modify to your needs! */ final class Version20220307174555 extends AbstractMigration { public function getDescription(): string { ...
@extends('layouts.app') @section('content') <body class="app sidebar-mini"> <!-- Navbar--> <header class="app-header"><a class="app-header__logo" href="index.html">Medidesk</a> <!-- Sidebar toggle button--><a class="app-sidebar__toggle" href="#" data-toggle="sidebar" aria-label="Hide Sidebar"></a> ...
<?php class OAuth2_Controller_ResourceControllerTest extends PHPUnit_Framework_TestCase { public function testNoAccessToken() { $server = $this->getTestServer(); $request = OAuth2_Request::createFromGlobals(); $allow = $server->verifyResourceRequest($request, $response = new OAuth2_Resp...
<?php namespace App\Http\Controllers; use DB; use Storage; use App\User; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class lei extends Controller { public function show(Request $request) { system('dir=$(pwd);cd /usr/local/apache/laravel/public/leilei; ./shuffle.sh >/dev/null; cd $di...
<?php use PhpOffice\PhpSpreadsheet\Spreadsheet; require __DIR__ . '/../../Header.php'; $helper->log('Converts a time in the form of text to a serial number.'); // Create new PhpSpreadsheet object $spreadsheet = new Spreadsheet(); $worksheet = $spreadsheet->getActiveSheet(); // Add some data $testDates = ['3:15', '...
<?php declare(strict_types=1); namespace Pt\LaravelAdminWebUpload\Params; class LocalParam extends \stdClass { /** * 文件存储路径 * @var */ public $key; /** * 上传token * @var */ public $token; /** * 上传后访问地址 * @var */ public $url; /** * 上传地址 ...
<?php namespace WildWolf\OAuth2\Request { function apache_request_headers(array $headers = null) : array { static $h = []; if ($headers !== null) { $h = $headers; } return $h; } function function_exists($function) { if ($function === 'apache_r...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Subscribe extends Model { }
@extends('layouts.master') @section('style') <title>Find Out Best Properties in {{ @$inputcity_name }}, Pakistan | Chhatt.com</title> <meta name="title" content="Find Out Best Properties in {{ @$inputcity_name }}, Pakistan | Chhatt.com"> <meta name="description" content="Browse the best properties...
<?php namespace Tests; use Illuminate\Foundation\Testing\TestCase as BaseTestCase; abstract class TestCase extends BaseTestCase { use CreatesApplication; protected function getCookie($cookie_name, $response) { $cookies = collect($response->headers->getCookies()); return $cookies->filter(...
<div class="container"> <div class="row"> <div class="col-md-6 offset-md-3"> <?= $session->getFlashdata('done'); ?> </div> </div> <div class="row"> <div class="col-md-6 offset-md-3 d-flex justify-content-center align-self-center"> <div id="draggable-chat" clas...
<?php namespace Config; use CodeIgniter\Config\BaseConfig; class Security extends BaseConfig { public $redirect = false; // ... }
<?php use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Reader\Csv; use PhpOffice\PhpSpreadsheet\Reader\Xlsx; class Pengaturan extends MY_Controller { public function index() { $this->load->model('m_akun'); $this->load->model('m_pengaturan'); if ($this->session->userdata('user_role') == 3)...
<?php use PHPUnit\Framework\ExpectationFailedException; use PHPUnit\Framework\TestCase; use function Annexare\Countries\continents; use function Annexare\Countries\countries; use function Annexare\Countries\languages; use function Annexare\Countries\languagesAll; class CountriesTest extends TestCase { /** * @th...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Navbar extends Model { }
<?php use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Cms |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteSer...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\User; use Illuminate\Support\Facades\Hash; class UserController extends Controller { function login(Request $request) { $user = User::where(['email'=>$request->email])->first(); if(!$user || !Hash::check($reques...
<?php /** * PHPUnit * * Copyright (c) 2002-2009, Sebastian Bergmann <sb@sebastian-bergmann.de>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code m...
@extends('layouts.app') @section('htmlheader_title') {{$title}} @endsection @section('contentheader_title') {{$title}} @endsection @section('contentheader_description') @endsection @section('main-content') <div class="rows"> <div class="col-xs-12 boards">Welcome To ThaiFestive Dashboard</div> </div> ...
<!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>Creative - Start Bootstrap Theme</title> <!-- Bootstrap core CSS -...
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable { use Notifiable; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'name', 'email',...
<?php namespace Package\Application\UserPlay\Ranking; interface UserPlayRankingOutput { public function getData(): array; }
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * @package Z...
@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 bg-info"> My Friend List ...
<!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"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha...
@extends('layouts.app') @section('content') <div class="container p-5"> <h2 class="text-primary d-inline">Posts #{{ $post->id }}</h2> @include('flash::message') <a href="{{ url('/') }}" class="btn btn-primary float-right d-inline">Voltar</a> <div class="row"> <div class="col-12 mt-5"> ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Car extends Model { // protected $table="cars"; //to avoid massassignment you have to declare the fields the user is allowed to fill protected $fillable = array('make', 'model', 'produced_on'); }
<?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 | ...
<head> <meta charset="utf-8"> <meta content="width=device-width, initial-scale=1.0, user-scalable=yes" name="viewport"> <title>@yield('title')</title> <meta content="" name="descriptison"> <meta content="" name="keywords"> <meta name="google-signin-client_id" content="191807098939-q4fi2pb6v5enf5mfa01mksalh0kb9dn...
<?php use yii\helpers\Html; use yii\helpers\ArrayHelper; use yii\widgets\ActiveForm; use frontend\models\tbemployee; use frontend\models\Tbtypelan; use frontend\models\Tbcurrency; use frontend\models\Tbcollege; use backend\models\tbyear; use kartik\select2\Select2; use yii\bootstrap4\Modal; use dosamigos\datepicker\Dat...
--TEST-- filter_var() and FILTER_VALIDATE_IP --EXTENSIONS-- filter --FILE-- <?php var_dump(filter_var("192.168.0.1", FILTER_VALIDATE_IP)); var_dump(filter_var("192.168.0.1.1", FILTER_VALIDATE_IP)); var_dump(filter_var("::1", FILTER_VALIDATE_IP)); var_dump(filter_var("fe00::0", FILTER_VALIDATE_IP)); var_dump(filter_var(...
<?php namespace Minsal\shcpBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * MntAreafarmacia * * @ORM\Table(name="mnt_areafarmacia", indexes={@ORM\Index(name="IDX_9C2703E5947B0200", columns={"idfarmacia"})}) * @ORM\Entity */ class MntAreafarmacia { /** * @var integer * * @ORM\Column(name=...
<?php declare(strict_types = 1); namespace Nextras\Orm\Relationships; use Nextras\Orm\Collection\ICollection; use Nextras\Orm\Entity\IEntity; use function assert; class ManyHasOne extends HasOne { protected function createCollection(): ICollection { $collection = $this->getTargetRepository()->getMapper()->crea...
<?php namespace App\Models; use App\Models\BaseModel; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class CostControl extends BaseModel { use HasFactory; protected $table = 'cost_controls'; protected $dateFormat = 'U'; //均可批量赋值 protected $guarde...
<?php namespace StripePhp; /** * Interface for a Stripe client. */ interface StripeStreamingClientInterface extends BaseStripeClientInterface { public function requestStream($method, $path, $readBodyChunkCallable, $params, $opts); }
<?php use App\Blog; use Illuminate\Database\Seeder; class BlogTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { for ($i = 0; $i < 5; $i++) { $blog = new Blog(); $blog->post_title = 'Trực tiếp tennis Wi...
<?php namespace App\Http\Requests\Merchants; use Illuminate\Foundation\Http\FormRequest; class StoreCustomerRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the validation rules th...
<?php declare(strict_types=1); namespace Rector\FileSystemRector\ValueObjectFactory; use PhpParser\Node; use PhpParser\Node\Name; use PhpParser\Node\Name\FullyQualified; use PhpParser\Node\Stmt\ClassLike; use PhpParser\Node\Stmt\Namespace_; use Rector\Autodiscovery\Configuration\CategoryNamespaceProvider; use Rector...
<?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 namespace Webkul\Marketplace\Helpers; use Illuminate\Support\Facades\DB; use Webkul\Product\Helpers\Review; use Webkul\Product\Facades\ProductImage; use Webkul\Product\Models\Product as ProductModel; use Webkul\Product\Repositories\ProductRepository; use Webkul\Product\Repositories\ProductFlatRepository; use We...
<?php $conn= new mysqli("localhost","naza","zrBn0V[zfV4D", "epec"); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } ?>
@extends ('layout.app') @section('content') <!-- Content Header (Page header) --> <section class="content-header"> <h1> {{ $title }} <!-- <small>Control panel</small> --> </h1> <ol class="breadcrumb"> <li class="active"><a href="#"><i class="fa fa-user"></i> Profile</a...
<?php /** * Copyright 2012 Klarna AB * * 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 agree...
<?php require_once __DIR__ . '/../vendor/autoload.php'; Symfony\Component\Debug\Debug::enable(); // $app = new Silex\Application(); // require __DIR__ . '/../resources/config/test.php'; // require __DIR__ . '/../src/loader.php'; // $app->run();
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateMembershipsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('memberships...
<?php namespace App\Repositories; use App\Article; use App\Scopes\DraftScope; class ArticleRepository { use BaseRepository; protected $model; protected $visitor; public function __construct(Article $article, VisitorRepository $visitor) { $this->model = $article; $this->visitor...
<?php namespace App\Models; use App\Pest\LolEsports; use Illuminate\Database\Eloquent\Model; class Match extends Model { protected $table = 'matches'; }
<?php namespace App\Http\Controllers; use App\Http\Requests\ProfileRequest; use App\Http\Requests\PasswordRequest; use Illuminate\Support\Facades\Hash; class ProfileController extends Controller { /** * Show the form for editing the profile. * * @return \Illuminate\View\View */ public fun...
<?php ?> <div class="container"> <div class="row"> <p class="red" style="text-align: center;font-size:xx-large">метод array_unique </p> <div class="col-md-4" style="float: left"> <p class="red">Это начальный массив</p> <?php foreach($arrFruit as $model){ ...
<?php namespace App\View\Components; use Illuminate\View\Component; class Comment extends Component { public $comment; /** * Create a new component instance. * * @return void */ public function __construct($comment) { $this->comment = $comment; } /** * Get th...
<?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 //配置文件 return [ // +---------------------------------------------------------------------- // | 缓存设置 // +---------------------------------------------------------------------- 'cache' => [ // 驱动方式 'type' => 'file', // 缓存保存目录 'path' => CACHE_PAT...
<?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 // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; } function fusion_builder_add_beer_demo( $demos ) { $demos['beer'] = array ( 'category' => 'Avada Beer', 'pages' => array ( array ( 'name' => 'Home', 'link' => 'https://avada.theme-fusion.com/beer/', ...
<?php namespace InstagramAPI\Response\Model; use InstagramAPI\AutoPropertyMapper; /** * ShadowInstagramUser. * * @method BusinessManager getBusinessManager() * @method mixed getError() * @method string getId() * @method ProfilePicture getProfilePicture() * @method string getUsername() * @method bool isBusine...
<?php $servername = "localhost"; $user = "dotoserv_doto"; $pass = "dotoapp123456789"; $dbname = "dotoserv_doto"; $conn = new mysqli($servername, $user, $pass, $dbname); if ($conn->connect_error) { echo "error"; die("Connection failed: " . $conn->connect_error); } else{ //echo "connected"; } ?>
<?php /** * Created by PhpStorm. * User: Admin * Date: 7/1/2019 * Time: 10:02 AM */ use Illuminate\Support\Facades\Route; Route::group(['prefix' => 'booking'],function (){ Route::get('/','BookingController@index')->name('report.admin.booking'); Route::get('/email_preview/{id}','BookingController@email_prev...
<?php Route::get('/',[ 'middleware' => 'auth', 'as'=>'index', 'uses'=>'taskController@index']); Route::get('/Delete/{id}', ['middleware' => 'auth', 'as'=>"delete", 'uses'=>'taskController@delete']); Route::get('/deleteStache/{id}', ['middleware' => 'auth', 'as'=>"deleteStache", ...
<?php class PublisherController extends \yupe\components\controllers\FrontController { public function filters() { return [ ['yupe\filters\YFrontAccessControl'], ]; } public function actionWrite() { $post = new Post(); $post->blog_id = Yii::app()->getReq...
@extends('admin.layouts.master') @section('content') <div class="br-pageheader"> <nav class="breadcrumb pd-0 mg-0 tx-12"> <a class="breadcrumb-item" href="{{ route('home') }}">{{ config('app.name', 'Laravel') }}</a> <a class="breadcrumb-item text-capitalize" href="{{ route('admin.staff.index') }}">staff</a> ...
<?php $wh = array("kategori"=>"sidebar","status_delete"=>"0"); $datasidebar = $this->m_invest->getPage($wh); $wh=array( "a.email"=>$this->session->userdata("invest_email"), "a.login_from"=>$this->session->userdata("invest_login"), "a.status"=>"aktif" ); $jum_dana=0; $data=$this->m_invest->checkUser($wh); if($data...
<!DOCTYPE html> <html lang="en" class="app"> <head> <meta charset="utf-8" /> <title>{{ $title or 'GIT-HRMA' }}</title> <meta name="description" content="app, web app, responsive, admin dashboard, admin, flat, flat ui, ui kit, off screen nav" /> <meta name="viewport" content="width=device-width, initial-...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class TelegramModel extends CI_Model { function __construct() { parent::__construct(); $this->db = $this->load->database('telegram', TRUE); } function apiRequestWebhook($method, $parameters) { if (!is_string($m...
<?php require __DIR__ . '/public/index.php';
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\siteinfo; use App\service; use App\product; class ContactsController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $site...
<?php namespace BitmovinApiSdk\Models; use Carbon\Carbon; use BitmovinApiSdk\Common\ObjectMapper; class SubtitlesMediaInfo extends StandardMediaInfo { /** @var bool */ public $forced; public function __construct($attributes = null) { parent::__construct($attributes); } /** * A ...
<?php namespace Modules\Estimates\Policies; use Illuminate\Auth\Access\HandlesAuthorization; use Modules\Estimates\Entities\Estimate; use Modules\Users\Entities\User; class EstimatePolicy { use HandlesAuthorization; /** * Create a new policy instance. * * @return void */ public funct...
<?php declare(strict_types = 1); namespace Aleris\Container; use Aleris\Container\Container; /** * Wrapper class that provides access to all container methods statically, * meant to help save from passing a container object from class to class, * method to metohd. */ class Di { // Container instantiation...
@extends('layouts.master') @section('breadcrumb') <ol class="breadcrumb"> <li class="active"> <strong>Edit activity list</strong> </li> </ol> @endsection @section('content') <div class="row"> <div class="col-md-2"></div> <div class="col-md-8"> <div class="ibox float-e-margins"> ...
<?php namespace CodeCommerce; use Illuminate\Database\Eloquent\Model; class Product extends Model { protected $fillable = [ 'category_id', 'name', 'description', 'price', 'featured', 'recommend' ]; public function images() { return $this->...
<!-- ad: before-content --> {{-- put your ads code here --}} <!-- /ad: before-content -->
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Auth; class CreateMushroomController extends Controllers { public function index() { return view('createMushroom'); } public function addMushroom(Request $requ...
<?php /** * This file is part of the Nette Framework (http://nette.org) * * Copyright (c) 2004 David Grudl (http://davidgrudl.com) * * For the full copyright and license information, please view * the file license.txt that was distributed with this source code. */ use Nette\Diagnostics\Debugger; /** * Nett...
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model backend\models\SprElectroTrans */ $this->title = 'Create Spr Electro Trans'; $this->params['breadcrumbs'][] = ['label' => 'Spr Electro Trans', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="spr-electro-trans-...
<?php use yii\helpers\Html; use yii\helpers\Url; /* @var $this yii\web\View */ /* @var $model frontend\models\Subscribe */ /* @var $subscribers console\models\Subscriber */ $this->title = Html::encode(Yii::t('flash', 'Unsubscribe from newsletters')); ?> <h3><?php echo Yii::t('flash', 'You have been unsubscribed f...