text
stringlengths
2
1.03M
<x-app-layout> </x-app-layout> <!DOCTYPE html> <html lang="en"> <head> @include("admin.admincss") </head> <body> <div class="container-scroller"> @include("admin.navbar") <style type="text/css"> .form{ width: 50%; margin: auto; } .form input{ display: block; width: 100%; margin-...
<!-- begin:: Aside --> <button class="kt-aside-close " id="kt_aside_close_btn"> <i class="la la-close"></i> </button> <div class="kt-aside kt-aside--fixed kt-grid__item kt-grid kt-grid--desktop kt-grid--hor-desktop" id="kt_aside"> <!-- begin:: Aside --> <div class="kt-aside__brand kt-grid__item " id="kt_aside_bra...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Profile extends Model { protected $guarded = ['id']; public static function rules($update = false, $id = null) { $rules = [ 'nama' => 'required', 'email' => 'required', 'telp' => 'required', 'alamat' => 'requ...
<?php /** * @see https://github.com/rpdesignerfly/access-control * @copyright Copyright (c) 2018 Ricardo Pereira Dias (https://rpdesignerfly.github.io) * @license https://github.com/rpdesignerfly/access-control/blob/master/license.md */ declare(strict_types=1); use Illuminate\Support\Facades\Schema; use I...
<?php use yii\helpers\Html; use yii\widgets\ListView; use funson86\cms\Module; //$this->title = Yii::$app->params['blogTitle'] . ' - ' . Yii::$app->params['blogTitleSeo']; $this->params['breadcrumbs'][] = '文章'; /*$this->breadcrumbs=[ //$post->catalog->title => Yii::app()->createUrl('post/catalog', array('id'=>$po...
<?php namespace App\Http\Controllers; use App\Borj; use App\Elan; use App\Factor; use App\MostajerFactor; use Carbon\Carbon; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class HomeController extends Controller { /** * Create a new controller instance. * * @return void */ ...
@extends('layout') @section('content') <div id="wrapper"> <div id="page" class="container"> <div id="content"> <div class="title"> <h2>About us!</h2> <span class="byline">Mauris vulputate dolor sit amet nibh</span> </div> ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateSectorDistrictsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('sector_...
<?php final class DarkConsoleXHProfPlugin extends DarkConsolePlugin { protected $profileFilePHID; public function getName() { return pht('XHProf'); } public function getColor() { $data = $this->getData(); if ($data['profileFilePHID']) { return '#ff00ff'; } return null; } publi...
@extends('layouts.admin',['module'=>'kategori','judul'=>'Kategori Produk']) @section('title') <title>Kategori Produk</title> @endsection @section('content') <section class="content"> <div class="container-fluid"> <div class="row"> <p class="ml-4"> Kategori digunakan untuk men...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class NewsCategory extends Model { protected $fillable = [ 'id', 'type', 'user_id', 'status' ]; }
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <!-- Meta, title, CSS, favicons, etc. --> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> ...
<h3><?php echo xpre("Lista publicações sem citação"); ?></h3> <?php $query1 = "SELECT * "; $query1 .= "FROM publicacao "; mysqli_set_charset($connection,"utf8"); $result1 = mysqli_query( $connection, $query1 ); if ( !$result1 ) { die( "1. Query falhou: " . $query1 . "<br />" ); } while ( $row1 = mysqli_fetch_assoc(...
<?php /** * @package omeka * @subpackage moas-itemtypes * @copyright 2015 University of Nottingham * @license MIT * @author Adam Cooper <adam.cooper@nottingham.ac.uk> */ class MOASItemTypesPlugin extends Omeka_Plugin_AbstractPlugin { protected $_hooks = array( 'install', 'uni...
@extends('admin_layout') @section('admin_content') <h3>Chào Mừng Bạn Đến Với Admin </h3> @endsection
<?php use Twig\Environment; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; use Twig\Markup; use Twig\Sandbox\SecurityError; use Twig\Sandbox\SecurityNotAllowedTagError; use Twig\Sandbox\SecurityNotAllowedFilterError; use Twig\Sandbox\SecurityNotAllowedFunctionError; use Twig\Source; use Twig\Template; /* fo...
<?php require_once ('includes/config.inc.php'); $page_title = 'تسجيل جديد'; include ('includes/header_login.html'); if (isset($_POST['submitted'])) { // Handle the form. require_once (MYSQL); // Trim all the incoming data: $trimmed = array_map('trim', $_POST); // Assume invalid values: $fn = $ln = $e = $p = $p...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Assigning Detail</title> <link rel="stylesheet" href="style.css" media="all" /> <style> .clearfix:after { content: ""; display: table; clear: both; } a { color: ...
<?php /* @var $this UserController */ /* @var $model User */ $this->breadcrumbs=array( 'Users'=>array('index'), $model->name, ); $this->menu=array( array('label'=>'List User', 'url'=>array('index')), array('label'=>'Create User', 'url'=>array('create')), array('label'=>'Update User', 'url'=>array('update', 'id'=...
<?php //session_start(); ob_start(); if(!isset($_SESSION['admin_name'])||$_SESSION['admin_name']==""){ header("Location:".base_url()."admin/login"); } else{ $id_admin=$_SESSION['id_admin']; $admin_name=$_SESSION['admin_name']; $last_login=$_SESSION['last_login']; $curt='other_task'; } $id_worker=$this->input->get('us...
<?php namespace App\Http\Controllers; use Validator; use Illuminate\Http\Request; use App\Librerias\Libreria; use App\Conductor; use App\Conductordocument; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Auth; use App\Events\UserHasCreatedOrDeleted; use App\Events\UserHasEdited; use App\Rules\RuleI...
@extends('admin.layouts.admin') @section('title') Tarjetas &nbsp; <a class="btn btn-primary" href="{{ route('admin.cards.create') }}"><i class="fa fa-plus-circle"></i> Nuevo</a> @endsection @section('content') <div class="row"> <table class="table table-striped table-bordered dt-responsive no...
<?php namespace App\Http\Controllers\Admin; use App\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use App\Http\Controllers\Controller; use App\Patient; class UserController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response ...
<?php use Carbon\Carbon; use Illuminate\Database\Seeder; class TestingTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { /* Table users */ \App\User::create([ 'name' => 'Im Administrator', ...
<?php error_reporting(E_ALL^E_NOTICE^E_WARNING^E_DEPRECATED); //载入配置文件 include_once("./config.php"); //载入zdir类 include_once("./functions/zdir.class.php"); //获取当前目录 $thedir = __DIR__; $i = 0; //获取目录 $dir = $_GET['dir']; //对目录进行过滤 if((stripos($dir,'./') === 0) || (stripos($dir,'../')) || (stripos($dir,'.....
<?php // Aqui é onde fica os metodos padrões namespace App\Repositories\Eloquent; use Illuminate\Database\Eloquent\Collection; use Illuminate\Pagination\LengthAwarePaginator; abstract class AbstractRepository { protected $model; function __construct() { $this->model = $this->resolveModel(); ...
<?php /** * 到付运费插件 FPD(freight payable at destination) */ $shipping_lang = BASE_PATH.'languages/' .C('lang'). '/shipping/fpd.php'; if (file_exists($shipping_lang)) { global $_LANG; include_once($shipping_lang); } /* 模块的基本信息 */ if (isset($set_modules) && $set_modules == TRUE) { $i = (isset($modules)) ? ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>@yield('title')</title> <link rel="preconnect" href="https://fonts.gstatic.com"> <link href="https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600...
@if (count($errors) > 0) <script> $('#alert_close').click(function(){ $( "#alert_box" ).fadeOut( "slow", function() { }); }); </script> <div class="row" id="alert_box"> <div class="col s12 m12"> <div class="card red darken-1"> <div...
<?php namespace Hyperwallet\Model; /** * Represents a V4 Webhook Notification * * @property string $token The webhook notification token * @property string $type The webhook notification type * @property \DateTime $createdOn The webhook notification creation date * * @package Hyperwallet\Model */ class Webhook...
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; class AuthCheck { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next ...
@extends('templates.app') @section('content') <div class="container"> <div class="row"> <div class="col-md-8 col-md-offset-2"> <div class="panel panel-default"> <div class="panel-heading">Login</div> <div class="panel-body"> <form class="form...
<?php $ime = array('ivan','goran','zeljko','mario','braco'); echo '<pre>'; echo $ime[0]; echo '<pre>'; echo $ime[1]; echo '<pre>'; echo $ime[2]; echo '<pre>'; echo $ime[3]; echo '<pre>'; echo $ime[4]; echo '<pre>';
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to plac...
<?php /** * @copyright Copyright (c) 2015 ublaboo <ublaboo@paveljanda.com> * @author Pavel Janda <me@paveljanda.com> * @package Ublaboo */ namespace Ublaboo\DataGrid\Column; use Nette\Utils\Html; use Ublaboo\DataGrid\DataGrid; use Ublaboo\DataGrid\Exception\DataGridColumnRendererException; use Ublaboo...
<?php /** * Part of the Fuel framework. * * @package Fuel * @version 1.0 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2012 Fuel Development Team * @link http://fuelphp.com */ namespace Fuel\Core; /** * Error class tests * * @group Core * @group Error */ ...
<?php namespace Elastica\Test\Query; use Elastica\Document; use Elastica\Query\Fuzzy; use Elastica\Test\Base as BaseTest; class FuzzyTest extends BaseTest { /** * @group unit */ public function testAddField() { $fuzzy = new Fuzzy(); $err = array(); set_error_handler(fun...
<?php /* list/unordered.twig */ class __TwigTemplate_c4a82b051212d5bc055884e479e3ae24b0c877c19ca31f23e6fbcf812a888eb6 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = [ ]; } ...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* * Source table : "performance_m_kpi" */ class M_department extends CI_Model { public function get_id($id) { return $this->db->get_where('departement',array('ID_DEPARTMENT'=>$id),1)->result(); } public function get_all() { return $this-...
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK IT ] // +---------------------------------------------------------------------- // | Copyright (c) 2006-2013 http://thinkphp.cn All rights reserved. // +-----------------------------------------...
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Providers\RouteServiceProvider; use Illuminate\Foundation\Auth\AuthenticatesUsers; use Illuminate\Http\Request; use Auth; class LoginController extends Controller { /* |----------------------------------------------------...
@extends('app') @section('content') <div class="rightside bg-grey-100"> <!-- BEGIN PAGE HEADING --> <div class="page-head bg-grey-100 padding-top-15 no-padding-bottom"> @include('flash::message') <h1 class="page-title">发送短信</h1> </div> <div class="container-fluid">...
<?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 namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class translators extends Model { use HasFactory; protected $fillable = ['name']; }
<?php require "../modelo/clientes_rp_modelo.php"; $cliente = $_POST['cliente']; $ubicacion = $_POST['ubicacion']; $region = new clientes_reporte; echo '<option value="TODOS">TODOS</option>'; $datos = $region->llenar_puesto($cliente,$ubicacion); if($cliente != 'TODOS' && $ubicacion!='TODOS'){ foreach ($datos as ...
<?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 ...
<?php /** * @package mod_qlform * @copyright Copyright (C) 2014 ql.de All rights reserved. * @author Mareike Riegel mareike.riegel@ql.de * @license GNU General Public License version 2 or later; see LICENSE.txt */ // no direct access defined('_JEXEC') or die; $strModuleId='mod_qlform_'.$module->id; $moduleIdSe...
<?php declare(strict_types=1); namespace Shopware\Storefront\Test\Page; use PHPUnit\Framework\TestCase; use Shopware\Core\Content\Cms\DataResolver\FieldConfig; use Shopware\Core\Content\Cms\DataResolver\FieldConfigCollection; use Shopware\Core\Content\Product\Aggregate\ProductReview\ProductReviewEntity; use Shopware\...
<?php namespace AdinanCenci\Climatempo\History; class History { protected $slave; use Wrapper { __get as protected __parentGet; } protected static $map = array( 'dateBr' => '$this->slave->date_br', 'precipitation' => '$this->slave->rain...
<?php $this->title = 'Admin menu'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="admin-default-index"> <h1>Welcome to ADMIN MENU</h1> <p> You may choose:<br> </p> <h4>Categories:</h4> <ul> <li><a href="/admin/category/index">Show</a></li> <li><a href="/admin/categor...
<!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>The Institute</title> <!-- Scripts ...
<?php // 主页 include_once '_approot.php'; include_once APPROOT . '/lib/header.php'; $base = new PageBase(TEMPLATE, '主页', PageBase::$LAYOUT_COLUMN1_NARROW); $base->addScript(array ( '/js/validate.js', '/js/login.js' )); $loginPart = new LoginPart(); $base->addPart(PageBase::$BODY_CENTER, $loginPart); $base->show(...
<?php // Allow from any origin if (isset($_SERVER['HTTP_ORIGIN'])) { // Decide if the origin in $_SERVER['HTTP_ORIGIN'] is one // you want to allow, and if so: header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}"); header('Access-Control-Allow-Credentials: true'); header('Access-Control-...
<?php require __DIR__ . '/../autoload.php';
<!DOCTYPE html> <html lang="ja"> <head> <meta charset="utf-8"> <title>Tasklist</title> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css"> </...
<?php namespace yiiunit\framework\db; use yii\db\Connection; use yiiunit\TestCase as TestCase; abstract class DatabaseTestCase extends TestCase { protected $database; protected $driverName = 'mysql'; /** * @var Connection */ protected $db; protected function setUp() { parent::setUp(); $databases = $thi...
<?php namespace backend\controllers; use Yii; use yii\web\Controller; use yii\filters\VerbFilter; use yii\filters\AccessControl; use common\models\LoginForm; /** * Site controller */ class SiteController extends Controller { /** * {@inheritdoc} */ public function behaviors() { return [...
<?php /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ namespace Twilio\Rest\Serverless\V1\Service\Environment; use Twilio\Deserialize; use Twilio\Exceptions\TwilioException; use Twilio\InstanceResource; use Twilio\Options; use Twilio\Values; use Twilio\Ver...
<?php /* * $Id: ChmodTask.php 905 2010-10-05 16:28:03Z mrook $ * * 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....
<?php namespace ContainerB2u1gfW; use Symfony\Component\DependencyInjection\Argument\RewindableGenerator; use Symfony\Component\DependencyInjection\Exception\RuntimeException; /* * @internal This class has been auto-generated by the Symfony Dependency Injection Component. */ class getDebug_DumpListenerService exte...
<?php var_dump(gglinux_hello()); // Hello World! var_dump(gglinux_long_42()); //NULL var_dump(gglinux_str_hello()); //int(42) var_dump(gglinux_no_return()); //string(15) "Hello,gglinux! gglinux_no_return(); //PHP Notice: gglinux_no_return(): Warning!gglinux
<?php final class PhortuneStripePaymentProvider extends PhortunePaymentProvider { const STRIPE_PUBLISHABLE_KEY = 'stripe.publishable-key'; const STRIPE_SECRET_KEY = 'stripe.secret-key'; public function isAcceptingLivePayments() { return preg_match('/_live_/', $this->getPublishableKey()); } publ...
<?php use App\Admin\Query; ?> <div class="w-full wrapper-content-right overflow-x-auto max-w-full p-3"> <table class="w-full bg-white" id=""> <tr> <td class="p-2">STT</td> <th class="p-2">ID Tài Khoản</th> <th class="p-2">Họ</th> <th class="p-2">Tên</th> ...
<h2>Halaman About</h2>
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateOrdersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('orders', functio...
--TEST-- MongoDB\BSON\toJSON(): Encoding extended JSON types --FILE-- <?php require_once __DIR__ . '/../utils/basic.inc'; $tests = [ [ '_id' => new MongoDB\BSON\ObjectId('56315a7c6118fd1b920270b1') ], [ 'binary' => new MongoDB\BSON\Binary('foo', MongoDB\BSON\Binary::TYPE_GENERIC) ], [ 'date' => new MongoD...
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class CanEnterTestResults { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public fu...
<!-- Deleted inFormation Student --> <div class="modal fade" id="Delete_receipt{{$payment_student->id}}" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 style="font-family:...
<?php echo '<?xml'; ?> version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0"> <?php foreach ($urls as $url) { echo '<url><loc>'.$url.'</loc><mobile:mobile/></url>'."\n"; } ?> </urlset>
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved. // +-------------------------------------------------...
<?php namespace Illuminate\Validation\Concerns; use DateTime; use Countable; use Exception; use Throwable; use DateTimeZone; use DateTimeInterface; use Illuminate\Support\Arr; use Illuminate\Support\Str; use InvalidArgumentException; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\Date; use Illuminate\V...
<?= $this->extend('templates/dashboard') ?> <!-- Vaccine form --> <?= $this->section('content') ?> <div class="row"> <div class="col-md-6"> <form action="" method="post"> <div class="form-group"> <label for="my-select">Vaccine Name</label> <input class="form-control" t...
<?php /* @Framework/Form/hidden_row.html.php */ class __TwigTemplate_a1bb9608e754547d475da3601e828a19466d8211a19e2576a4bc98accb16c1c7 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ...
@extends('admin.adminMaster') @section('content') <div class="page-content"> <div class="page-header"> <h1>Edit Category</h1> </div><!-- /.page-header --> <div class="page-link"> <div class="page-link"> <a href="{{url('/')}}/category/add" class="btn btn-primary">Add C...
@extends('admin.layout.master') @section('style') <style> body{ background-color: #e9ecef !important; } .center-login-form { position: absolute; top: 50%; left: 50%; -ms-transform: translateX(-50%) translateY(-50%); -we...
<!-- Page Content --> <div id="page-wrapper"> <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <h1 class="page-header">Surat Masuk</h1> </div> <!-- /.col-lg-12 --> <div class="col-lg-12"> <div class="row">...
<!DOCTYPE html> <html dir="ltr" lang="en-US"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="author" content="SemiColonWeb" /> <!-- Stylesheets ============================================= --> <link href="{{URL('https://fonts.googleapis.com/css?family=Lato:300,400,400i,...
<?php echo $__env->make('layouts.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <div class="card bg-light login-card"> <article class="card-body mx-auto"> <h4 class="card-title mt-3 text-center">Login</h4> <form> <div class="form-grou...
<header> This is footer. </header>
<?php /** * @package WordPress * @subpackage EcoNature * @version 1.0.0 * * Sidebar Template * Created by CMSMasters * */ if (class_exists('woocommerce') && is_shop()) { $cmsms_page_id = wc_get_page_id('shop'); } else { $cmsms_page_id = get_the_ID(); } if ( !is_404() && !is_archive() && !is_s...
<?php class VinculacionTableSeeder extends Seeder { public function run() { //delete users table records DB::table('vinculaciones')->delete(); $proyectoVinculacionOne = Vinculacion::create(array( 'folio_proyecto' => '1', 'razones' ...
<?php /* * Copyright 2012-2016 Youzan, 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 b...
<?php /* * Libraries * - CakePHP library for PHP validation * - jQuery Validation plugin for JS validation * * Flow * - Hooks to form filtering to collect data * - Filters data-wpt-validation (adds array of rules) to form element * - Queues scripts if any field is conditional * - JS is initialized and checks ...
<!-- Footer start --> <footer class="footer text-dark"> <div class="container footer-inner"> <div class="row"> <div class="col-xl-4 col-lg-4 col-md-6 col-sm-6"> <div class="footer-item clearfix"> <img src="{{ asset('public/frontend/img/logos/hhhhhhh.png')}}" a...
<?php namespace App; use PostTypes\PostType; use PostTypes\Taxonomy; /** * Theme customizer */ add_action( 'customize_register', function ( \WP_Customize_Manager $wp_customize ) { // Add postMessage support $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customi...
<?php namespace Tests\InputOutput; use App\InputOutput\Request; use App\Util\DependencyInjection; use PHPUnit\Framework\TestCase; class RequestTest extends TestCase { public function testGetMethod() { $di = new DependencyInjection(); $array = $di->getConfig()->get("commands"); $item...
<?php /** * This file is part of the Fy\Carbon package. * * (c) Brian Nesbitt <brian@nesbot.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ return array_replace_recursive(require __DIR__.'/en.php', [ 'meridiem' => ['I bik...
@extends('layouts.master') @section('content') <div class="container"> <form action="{{ route('users.store') }}" method="POST" class="" role="form"> @csrf <div class="form-group"> <legend>Add user</legend> </div> <div class="form-group"> ...
<?php namespace App\Observers; use App\Models\Cms\UsefulLink; class UsefulLinkObserver { // All functions : creating, created, updating, updated, deleting, deleted, saving, saved, restoring, restored // ! important: Add these to your: AppServiceProvider.php // use App\Models\Cms\UsefulLink; // use A...
<?php /** * This file is part of the Carbon package. * * (c) Brian Nesbitt <brian@nesbot.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /* * Unknown default region, use the first alphabetically. */ return re...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Brand extends Model { use HasFactory; protected $fillable = ['name','icon']; }
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Laravel</title> {{-- Libraries --}} {{-- <link rel="stylesheet" href="https://maxcdn.bootst...
<?php namespace App\UseCases\App; use App\Models\User; use DB; class ResetEmailUseCase { public function __invoke(int $userId, array $attributes): void { DB::transaction(function () use ($userId, $attributes) { $user = User::findOrFail($userId); $user->requestResetEmail($attri...
<?php namespace WP_CLI\I18n; use Exception; use Gettext\Extractors\JsCode; use Gettext\Translations; use Peast\Syntax\Exception as PeastException; use WP_CLI; final class JsCodeExtractor extends JsCode { use IterableCodeExtractor; public static $options = [ 'extractComments' => [ 'translators', 'Translators' ],...
<?php //define("CONTENT", '../../content/'); require_once('admin_functions.php'); require_once('feedback.php'); $msg = false; $msg_type = false; $path = isset($current_page) ? $current_page : urldecode($_GET['page']); $site_conf = parseConf('../mra.conf',true); $file = splitConf(CONTENT.$path); $page_conf = $file[...
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <h1 style="...
<?php /** * Created by PhpStorm. * User: ing26sistemas * Date: 13/07/17 * Time: 1:09 PM */ namespace App\Funpacol\Repositories; use App\Funpacol\Entities\Postmen; use Illuminate\Support\Facades\Auth; class PostmenRepo extends BaseRepo { public function getModel() { return new Postmen(); } ...
@extends('layouts.app') @section('head') <title>register</title> @endsection @section('content') <div class="container my-5"> <div class="row justify-content-center"> <div class="col-md-6"> <div class="card shadow-sm"> <div class="card-header mb-5 fw-bolder text-uppercase text...
<?php if (!isset($_SESSION)) { session_start(); } $connfile = 'config/dbconnection.php'; if (file_exists($connfile)) { require 'config/dbconnection.php'; require 'Autoload.php'; $login = new UserClass(); $check = new CheckValidUser(); $level = new AccessLevel(); } else { header('Location: i...
<?php use Illuminate\Foundation\Application; use Illuminate\Support\Facades\Route; use Inertia\Inertia; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes ...