text
stringlengths
2
1.03M
<?php declare(strict_types=1); namespace EonX\EasyErrorHandler\Interfaces\Exceptions; interface SubCodeAwareExceptionInterface { /** * Returns the sub code of an exception. */ public function getSubCode(): int; }
<?php namespace App\Http\Controllers; use App\Posts; use Illuminate\Http\Request; class PostsController extends Controller { public function store(Request $request) { $validatedData = $request->validate([ 'title' => 'required', 'post' => 'required', 'user_id' => 'r...
<?php namespace DH\DoctrineAuditBundle\User; use Exception; use Symfony\Component\Security\Core\Authentication\Token\SwitchUserToken; use Symfony\Component\Security\Core\Role\SwitchUserRole; use Symfony\Component\Security\Core\Security; use Symfony\Component\Security\Core\User\UserInterface as BaseUserInterface; cla...
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use App\Models\Data_biaya_kirim; use App\Models\Data_harga; use App\Models\Data_komisi; use App\Models\Data_toko; use App\Models\Transaksi; use App\Models\Users; use App\Models\User_menu; use App\Models\Dataadmin; use Illuminate\Http\Req...
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014-2019 British Columbia Institute of Technology * Copyright (c) 2019-2020 CodeIgniter Foundation * * Permission is hereby granted, free of charge,...
<?php /* * Copyright 2021 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
<?php namespace Authentication\Factory; use Interop\Container\ContainerInterface; use Zend\ServiceManager\Factory\FactoryInterface; use \Zend\Db\Adapter\AdapterInterface; use \Zend\Db\TableGateway\TableGateway; use Authentication\Model\UserTable; /** * User Table Factory */ class UserTableFactory implements Factory...
<?php // autoload_real.php @generated by Composer class ComposerAutoloaderInit44c7131aeee3c973ef32e6b23132c564 { private static $loader; public static function loadClassLoader($class) { if ('Composer\Autoload\ClassLoader' === $class) { require __DIR__ . '/ClassLoader.php'; } ...
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to plac...
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Session; use App\Product; use App\ProductGallery; use App\Category; use App\Department; use App\ProductAttributeOption; class AdminProductsController extends Controller { public function __co...
<?php class MySql{ public static $pdo; public static function connect(){ if(self::$pdo == null){ self::$pdo = new PDO("mysql:host=".HOST.";dbname=".DB, USER, PASS); } return self::$pdo; } } ?>
<link rel="stylesheet" href="/user/assets/libs/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" href="/user/assets/libs/material-design-iconic-font/css/material-design-iconic-font.min.css"> <link rel="stylesheet" href="/user/assets/libs/jquery-ui/jquery-ui.min.css"> <link rel="stylesheet" href="/user/assets/lib...
@extends('layouts.miniblog') @section('contant') <div class="site-cover site-cover-sm same-height overlay single-page" style="background-image: url('{{asset("images/post")}}/{{$single_post->image}}');"> <div class="container"> <div class="row same-height justify-content-...
<?php declare(strict_types=1); namespace Tests; use AdventOfCode\Day02DiveEx1\Submarine; use AdventOfCode\Day02DiveEx1\ValueObjects\Command; use PHPUnit\Framework\TestCase; require __DIR__ . '/../../vendor/autoload.php'; class SubmarineTest extends TestCase { /** @test */ public function shouldReturnZeroWh...
@extends('layouts.app') @section('content') <div class="grid grid-cols-1 md:grid-cols-2 gap-x-24"> <!-- form --> <div class="pt-12 w-full"> <p class="font-semibold text-3xl md:w-1/2 py-10">Become a part of the Luxe Tribes!</p> @include('message') <form method="POST" action="{{ route('...
<?php namespace LaravelEnso\StructureManager\app\Classes; use LaravelEnso\MenuManager\app\Models\Menu; use LaravelEnso\PermissionManager\app\Models\Permission; use LaravelEnso\PermissionManager\app\Models\PermissionGroup; use LaravelEnso\StructureManager\app\Contracts\EnsoStructure; class Destroyer extends Structure...
<?php /* * This file is part of the PHPExifTool package. * * (c) Alchemy <support@alchemy.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\File; use JMS\Serializer\Annotation\ExclusionPolicy; ...
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /*-------------------------------+ | MAIN CONFIGURATION | | important notice: | | ci folder : system/application | +--------------------------------*/ // template directory $config['view_dir'] = 'del_db/'; // system/ap...
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\User; use App\Rules\MatchOldPassword; use Illuminate\Support\Facades\Hash; class ChangePasswordController extends Controller { /** * Display a listing of the resource. * * @return ...
<!-- Modal Update --> <div wire:ignore.self class="modal fade" id="updateOrdermethodForm" tabindex="-1" aria-labelledby="updateOrdermethodFormLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="u...
<?php declare(strict_types=1); namespace Overblog\GraphQLSubscription\Tests; use Overblog\GraphQLSubscription\Builder; use Overblog\GraphQLSubscription\SubscriptionManager; use PHPUnit\Framework\TestCase; class BuilderTest extends TestCase { public function testMinimalBuild(): void { $manager = (new...
<?php require_once '../inc/init.php'; global $loggedInUser; if (!$loggedInUser) { $returnPage = isset($_GET['page']) ? esc($_GET['page']) : ''; echo "<script>location.href='".ROOT_URL."auth?page=login'</script>"; exit; } // if ($_GET['page'] == 'dashboard' && $loggedInUser->user_type == 'admin') { // echo "...
<?php use yii\db\Migration; /** * Class m180729_100501_add_admin_user */ class m180729_100501_add_admin_user extends Migration { /** * {@inheritdoc} */ public function safeUp() { $user = new \common\models\User(); $user->username = "admin"; $user->email = "admin@test.ru...
<?php declare (strict_types=1); namespace RectorPrefix20220126\Symplify\Astral\NodeNameResolver; use PhpParser\Node; use PhpParser\Node\Stmt\Namespace_; use RectorPrefix20220126\Symplify\Astral\Contract\NodeNameResolverInterface; final class NamespaceNodeNameResolver implements \RectorPrefix20220126\Symplify\Astral\C...
<?php namespace Database\Seeders; use Carbon\Carbon; use App\Models\User; use App\Models\Scholarship; use Illuminate\Support\Str; use App\Traits\YearSemTrait; use App\Models\ScholarResponse; use App\Models\ScholarshipPost; use Illuminate\Database\Seeder; use App\Models\ScholarshipScholar; use App\Models\ScholarshipCa...
<?php use Laracasts\Presenter\PresentableTrait; class Layanan extends Eloquent { use \Venturecraft\Revisionable\RevisionableTrait; use PresentableTrait; protected $presenter = 'Acme\Presenters\LayananPresenter'; protected $guarded = array(); public static $rules = array( 'nama' => 'required' ); publi...
<?php /* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS B...
--TEST-- stream_resolve_include_path(string path) --FILE-- <?php $include_path = __DIR__ . '/test_path'; $include_path_nested = $include_path . '/nested'; $include_path_file = $include_path . DIRECTORY_SEPARATOR . 'file'; $include_path_nested_file = $include_path_nested . DIRECTORY_SEPARATOR . 'file'; mkdir($include_...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | AUTO-LOADER | ------------------------------------------------------------------- | This file specifies which systems should be loaded by default. | | In order to keep the fr...
<?php namespace HttpOz\Roles\Exceptions; use Exception; class GroupDeniedException extends Exception { /** * Create a new group denied exception instance. * * @param string $group */ public function __construct($group) { $this->message = sprintf("You are not in the required [%s...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use DB; class HoldingInventory extends Model { protected $table = "holdinginventory"; protected $fillable = ['stockimage','strainname','asset_type_id','upc_fk','batch_fk','coa','um','weight','qtyonhand','bestbefore']; public static funct...
<?php use kartik\select2\Select2; use yii\easyii\widgets\Redactor; use yii\easyii2\widgets\DateTimePicker; use yii\helpers\ArrayHelper; use yii\helpers\Html; use yii\helpers\Url; use yii\web\JsExpression; use yii\widgets\ActiveForm; use grozzzny\widgets\switch_checkbox\SwitchCheckbox; use yii\web\View; /** * @var View...
<?php /** * amadeus-ws-client * * Copyright 2015 Amadeus Benelux NV * * 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 requir...
<?php namespace App\Forms; use Distilleries\FormBuilder\FormValidator; class AddressForm extends FormValidator { public static $rules = []; public static $rules_update = null; public function buildForm() { $this ->add('city_id', 'choice_ajax_add', [ 'label' => '...
<?php namespace App; use Illuminate\Database\Eloquent\Model; use PhpParser\Node\Stmt\Function_; class Empleados extends Model { // }
<?php include("database/db_conection.php");//make connection here if(isset($_POST['submit'])) { $itemcode =""; $prefix = "DAPL00"; $itemname=$_POST['itemname'];//here getting result from the post array after submitting the form. $category =$_POST['category'];//same $hsncode =$_POST['hsncode'];//same //$status =$...
<?php namespace DynEd\Vasara; use Illuminate\Support\ServiceProvider; class VasaraServiceProvider extends ServiceProvider { /** * Boot service provider. */ public function boot() { $this->publishes([ realpath(__DIR__ . '/../config/vasara.php') => config_path('vasara.php'), ...
<meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>Corona Admin</title> <!-- plugins:css --> <link rel="stylesheet" href="admin/assets/vendors/mdi/css/materialdesignicons.min.css"> <link rel="stylesheet" href="admin/assets/vendors/cs...
<?php namespace Base; use \Orderdetails as ChildOrderdetails; use \OrderdetailsQuery as ChildOrderdetailsQuery; use \Exception; use \PDO; use Map\OrderdetailsTableMap; use Propel\Runtime\Propel; use Propel\Runtime\ActiveQuery\Criteria; use Propel\Runtime\ActiveQuery\ModelCriteria; use Propel\Runtime\ActiveQuery\Model...
<?php namespace SIAM; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Ahf extends Model { use SoftDeletes; /** * Tabla de la base de datos usada por el modelo * * @var string */ protected $table = 'antecedenteshf'; /** * Atributos que son asignados ...
<?php namespace Wordpapi\Endpoints; use Wordpapi\Exceptions\InvalidEndpointException; use Wordpapi\Models\Category; /** * Categories endpoint * @see https://developer.wordpress.org/rest-api/reference/categories */ class Categories extends Endpoint { protected string $route = "categories"; protected function b...
<?php namespace App\Http\Controllers\agencypanel; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use App\Models\Client; use App\Models\Agency; use Validator; use Illuminate\Pagination\Paginator; class ClientController extends Controller { private $paginatio...
<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?> <? include('../../connect.php'); session_start(); $user = $_COOKIE['user']; $sql_user = " SELECT * FROM admin WHERE admin_username = '$user' "; $query_user = mysql_query($sql_user) or die("Can't Query...
<?php namespace SundaySim\Http\Requests; use SundaySim\Http\Requests\Request; class UpdatePageRequest extends Request { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get the ...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Income; use App\Outcome; use App\Invoice; use App\Utang; class IncomeStatementController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function __con...
<?php if(!defined('BASEPATH')) exit('No direct script access allowed'); /** * Class : Login (LoginController) * Login class to control to authenticate user credentials and starts user's session. * @author : Kishor Mali * @version : 1.1 * @since : 15 November 2016 */ class Login extends CI_Controller { /** ...
<main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4"> <?php if($this->session->has_userdata('log_email')){ $fname = $this->session->userdata('fname'); $lname = $this->session->userdata('lname'); }else { redirect(); } ?> <section> <div class="row"> <div class="col-10"> <...
<?php /** * This file is automatically @generated by {@link BuildMetadataPHPFromXml}. * Please don't modify it directly. */ return array ( 'generalDesc' => array ( 'NationalNumberPattern' => '[1-3689]\\d{9,10}', 'PossibleNumberPattern' => '\\d{6,11}', ), 'fixedLine' => array ( 'NationalNumb...
<div class='container'> </div> <script> // Replace the <textarea id="editor1"> with a CKEditor // instance, using default configuration. CKEDITOR.replace( 'editor1' ); CKEDITOR.replace( 'editor2' ); </script> ...
<!DOCTYPE html> <html lang="es"> <head> <!-- CSS --> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link href="<?php echo base_url(); ?>css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/> <meta name="viewport" content="width=device-width, initial-s...
<?php namespace App\Models; use CodeIgniter\Model; class UserModel extends Model { protected $table = 'user'; public function getNews() { return $this->findAll(); } }
<?php namespace App\Http\Controllers; use App\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use App\Http\Controllers\UserController; use DB; class HomeController extends Controller { private $user; private $role; private $questions; /** * Create a new controller instan...
@extends('master') @section('container') <div class="line"> <div class="margin"> <div class="s-12 m-7 l-8 margin-bottom" style="height:1000px;"> <div class="box" style="height:1000px;"> @foreach($notices as $notice) <h3><a href="{{ route('notices.show', $notice->id) }}">{{$no...
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>php-piads Sistema de controle financeiro</title> <?php echo link_tag('assets/bootstrap/css/bootstrap.m...
<?php namespace XeroPHP\Models\Assets\Asset; use XeroPHP\Remote; class BookDepreciationDetail extends Remote\Model { /** * When an asset is disposed, this will be the sell price minus the purchase price if a profit was made. * * @property float CurrentCapitalGain */ /** * When an as...
<?php /** * Copyright 2017, Cake Development Corporation (http://cakedc.com) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2017, Cake Development Corporation (http://cakedc.com) * @license MIT License (http://www.opensource.org/lice...
<?php namespace AndreasGlaser\Helpers\Tests\View; use AndreasGlaser\Helpers\HtmlHelper; use AndreasGlaser\Helpers\Tests\BaseTest; use AndreasGlaser\Helpers\View\PHPView; /** * Class PHPViewTest * * @package AndreasGlaser\Helpers\Tests\View */ class PHPViewTest extends BaseTest { public function test() { ...
<?php if (is_front_page()) { get_template_part('templates/featured-content'); } ?> <?php while (have_posts()) : the_post(); ?> <?php get_template_part('templates/page', 'header'); ?> <?php get_template_part('templates/content', 'page'); ?> <?php endwhile; ?>
<?php namespace app\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use app\models\Code; /** * CodeSearch represents the model behind the search form of `app\models\Code`. */ class CodeSearch extends Code { /** * {@inheritdoc} */ public function rules() { return ...
<?php namespace SparrowSilence\OperationLog; use Dcat\Admin\Extend\Setting as Form; use Dcat\Admin\Support\Helper; use SparrowSilence\OperationLog\Models\OperationLog; class Setting extends Form { public function title(): array|string|null { return $this->trans('log.title'); } protected func...
<?php class ControllerCatalogOption extends Controller { private $error = array(); public function index() { $this->load->language('catalog/option'); $this->document->setTitle($this->language->get('heading_title')); $this->load->model('catalog/option'); $this->getList(); } public function add() { $th...
<?php namespace DrupalCodeGenerator\Command\Drupal_8\Yml; use DrupalCodeGenerator\Command\BaseGenerator; use DrupalCodeGenerator\Utils; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Question\Question; /** * Implements d8:yml:t...
<?php /** * @link https://github.com/yii2tech * @copyright Copyright (c) 2015 Yii2tech * @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php) */ namespace yii2tech\balance; use yii\db\Connection; use yii\db\Expression; use yii\db\Query; use yii\di\Instance; /** * ManagerDb is a balance...
<?php namespace Clevis\Geolocation; /** * */ interface IGeocodingCache extends IGeocodingService { /** * Saves geocoding request result * * @param Position * @param Address * @param string|Address|Position * @param array */ function saveResult(Position $position, Address $address, $query, $options...
<?php namespace Puphpet\Extension\MongoDbBundle\Controller; use Puphpet\MainBundle\Extension; use Symfony\Bundle\FrameworkBundle\Controller\Controller; class FrontController extends Controller implements Extension\ControllerInterface { public function indexAction(array $data, $extra = '') { return $...
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; class LogoSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // } }
<?php /* * This file is part of the sfCacheTaggingPlugin package. * (c) 2009-2013 Ilya Sabelnikov <fruit.dev@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Custom HTTP Request class to access t...
<?php /** * Created by PhpStorm. * User: Giansalex * Date: 10/03/2019 * Time: 22:00 */ namespace Greenter\Data\Generator; use Greenter\Data\DocumentGeneratorInterface; use Greenter\Data\SharedStore; use Greenter\Model\Client\Client; use Greenter\Model\Despatch\Despatch; use Greenter\Model\Despatch\DespatchDetail...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Sparepart extends CI_Model{ private $id; private $idAdmin; private $nama; private $harga; private $jumlah; public function init($id,$idAdmin, $nama, $harga, $jumlah){ $this->setId($id); $this->setNama($...
<div class="col s12"> <div class="main-wrapper"> <div class="breadcrumb-box"> <div class="col s12"> <a href="<?= base_url() ?>admin/dashboard" class="breadcrumb">Dashboard</a> <a class="breadcrumb">Pembayaran</a> </div> </di...
<?php defined('C5_EXECUTE') or die("Access Denied."); /** * Contains the file attribute key and value objects. * @package Pages * @author Andrew Embler <andrew@concrete5.org> * @category Concrete * @copyright Copyright (c) 2003-2008 Concrete5. (http://www.concrete5.org) * @license http://www.concrete5.org/li...
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePingersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('pingers', function(Blueprint $table) { $table->string('slack_id'); $tabl...
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateArticleTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('articles', function (Blueprint $table) { $...
<?php function parseurl($url="") { $url = urlencode($url); $a = array("%3A", "%2F", "%40" , "%3F","%3D"); $b = array(":", "/", "@" ,"?","="); $url = str_replace($a, $b, $url); return $url; }
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * Class Migration_Create_table_exercises * @property CI_DB_forge $dbforge */ class Migration_Create_table_exercises extends CI_Migration { public function up() { $this->dbforge->add_field([ 'id' => ['type' => 'INT'...
<?php /** * @link https://github.com/ixocreate * @copyright IXOLIT GmbH * @license MIT License */ declare(strict_types=1); namespace Ixocreate\Template; use Ixocreate\Application\Service\SerializableServiceInterface; final class TemplateConfig implements SerializableServiceInterface { /** * @var array ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateListsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('lists', function ...
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; class AnnualAccountReport extends Mailable { use Queueable, SerializesModels; protected $content; protected $sender; /** * Cr...
@extends('layouts.app1') @section('content') <section class="hero-wrap hero-wrap-2 js-fullheight" style="background-image: url('{{ URL::asset('/template/images/image_1.jpg') }}');" data-stellar-background-ratio="0.5"> <div class="overlay"></div> <div class="container"> <div class="row no-gutters...
<?php /** * @copyright Copyright (c) 2013 2amigOS! Consulting Group LLC * @link http://2amigos.us * @license http://www.opensource.org/licenses/bsd-license.php New BSD License */ namespace sims\components; use yii\web\AssetBundle; /** * DateTimePickerAsset * @author Antonio Ramirez <amigo.cobos@gmail.com> * @l...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Category; class CategoryController extends Controller { public function __construct() { $this->middleware('auth:admins'); } public function index() { $allcat = Category::select('categories.id','categories.name')...
<?php use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the Route...
<?php namespace App\Database\Migrations; use CodeIgniter\Database\Migration; class Users extends Migration { public function up() { $this->db->disableForeignKeyChecks(); $this->forge->addField([ '_id' => [ 'type' => 'INT', 'constraint' => 11, 'unsigned' => true, 'auto_increment' => tru...
<?php use Twig\Extension\StringLoaderExtension; class_exists('Twig\Extension\StringLoaderExtension'); @trigger_error(sprintf('Using the "Twig_Extension_StringLoader" class is deprecated since Twig version 2.7, use "Twig\Extension\StringLoaderExtension" instead.'), E_USER_DEPRECATED); if (\false) { /** @deprecat...
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- CSRF Token --> <meta name="csrf-token" content="{{ csrf_token() }}"> <title>{{ config(...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class MailStore extends Model { protected $table = 'mail_store'; protected $fillable = ['name', 'email', 'subject', 'message', 'read', 'trash']; }
<?php # Copyright 2006,2007 Chris Kuethe <chris.kuethe@gmail.com> # Updated 2015 by Sanjeev Gupta <ghane0@gmail.com> # # This file is Copyright 2010 by the GPSD project # SPDX-License-Identifier: BSD-2-clause // This program originally read a logfile of filtered gpsd messages, // type Y. The gpsd protocol changed in...
<?php namespace Turismo\Http\Controllers; use Illuminate\Foundation\Bus\DispatchesJobs; use Illuminate\Routing\Controller as BaseController; use Illuminate\Foundation\Validation\ValidatesRequests; use Illuminate\Foundation\Auth\Access\AuthorizesRequests; abstract class Controller extends BaseController { use Aut...
@extends('master') @section('content') <div class="container-fluid"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h4 class="card-title">View Extension Surplus</h4> </div> <div class="card-body"> <div class="row"> <div ...
<?php function secondsToWords($seconds) { $ret = ""; /*** get the days ***/ $days = intval(intval($seconds) / (3600 * 24)); if ($days > 0) { $ret .= "$days hari "; } /*** get the hours ***/ $hours = (intval($seconds) / 3600) % 24; if ($hours > 0) { $ret .= "$hours jam ...
<?php namespace Infusionsoft\Api\Rest\Traits; use Infusionsoft\InfusionsoftException; trait CannotFind { public function find($id) { throw new InfusionsoftException( __CLASS__.' cannot use '.__FUNCTION__.' function.' ); } }
<?php namespace App\Http\Controllers; use App\diagnoses; use Illuminate\Http\Request; class DiagnosesController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // } /** * Show the fo...
<?php namespace App\Controllers; class Migrate extends \CodeIgniter\Controller { public function index() { $migrate = \Config\Services::migrations(); $seeder = \Config\Database::seeder(); try { $result = $migrate-...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class UpdatePostsTableAddUrl extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('posts', func...
<?php /* * This file is part of the Symfony CMF package. * * (c) 2011-2017 Symfony CMF * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Cmf\Component\RoutingAuto; /** * Class which holds all the necessary infor...
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTestStatusesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('test_statuses', function (Blueprint $table) { $table->eng...
@extends('layouts.frontend') @section('title', $post->title) @section('content') <h1>{{$post->title}}</h1> <p>{{$post->author->name}} | {{$post->created_at->format('d/m/Y')}}</p> <div> <div class="entry_content"> {!! $post->content !!} </div> <br /> <div class="post_cats"> <h3>Catego...
<?php namespace App\Models; class Attachment extends BaseModel { /** * The database table used by the model. * * @var string */ protected $table = 'attachments'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'p...
<?php namespace Ixudra\Authentication\Services\Factories; use Ixudra\Authentication\Acl\Interfaces\PermissionableInterface; use Ixudra\Authentication\Models\Permission; class PermissionFactory { public function make(PermissionableInterface $object, $data) { return Permission::create( $this->extractP...
<?php if (!defined('THINK_PATH')) exit();?><!doctype html> <html> <head> <meta charset="UTF-8"> <title><?php echo ($meta_title); ?>|OneThink管理平台</title> <link href="/Public/favicon.ico" type="image/x-icon" rel="shortcut icon"> <link rel="stylesheet" type="text/css" href="/Public/Admin/css/base.css" medi...