text
stringlengths
2
1.03M
<?php require_once PUREMVC.'patterns/facade/Facade.php'; require_once COMMON.'controller/command/CommonInitialiseCommand.php'; require_once BASEDIR.'controller/commands/application/StateCommand.php'; foreach( glob(BASEDIR.'controller/commands/view/*.php') as $filename ) require $filename; class ApplicationFacade exte...
@extends('base') @section('content') apt list --installed @endsection
@if ($bus->status=='pending') <strong> <span class="text-warning">{{$bus->status}}</span> </strong> @elseif ($bus->status=='rejected') <strong> <span class="text-danger">{{$bus->status}}</span> </strong> @elseif($bus->status=='approved') <strong> <span class="text-success">{{$bus->status}}</span> </strong> @endif
<?php $connection = mysqli_connect('localhost', 'root', ''); if (!$connection){ die("Database Connection Failed" . mysqli_error($connection)); } mysqli_set_charset($connection,"utf8"); $select_db = mysqli_select_db($connection, 'busproject'); if (!$select_db){ die("Database Selection Failed" . mysqli_error($co...
@extends('layout.master') @section('title', 'Taskboard') @section('parentPageTitle', 'Project') @section('content') <div class="row clearfix"> <div class="col-lg-3 col-md-6 col-sm-6"> <div class="card state_w1"> <div class="body d-flex justify-content-between"> <div> ...
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use App\Models\{User, Category, Course, Post}; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { User::factory(5)->create(); Category...
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\Auth; class NotAdminMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure...
<!DOCTYPE html> <!-- This is a starter template page. Use this page to start your new project from scratch. This page gets rid of all links and provides the needed markup only. --> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv=...
<?php namespace Pkerrigan\DeliverabilityChecker; /** * * @author Patrick Kerrigan <patrick@patrickkerrigan.uk> * @since 23/05/17 */ class CidrMask { /** * @var int|null */ private $cidr1; /** * @var int|null */ private $cidr2; public function __construct(int $cidr1 = null,...
@extends('layouts.main') @section('content') <div class="container"> <h1>Film</h1> <div class="d-flex flex-wrap"> @forelse ($movies as $movie) <div class="card m-2" style="width: 18rem;"> <div class="card-body"> <h4 class="card-ti...
<?php namespace baibaratsky\yii\rollbar; use Rollbar\Payload\Level; use Rollbar\Rollbar; use Yii; use yii\base\ErrorException; use yii\helpers\ArrayHelper; trait ErrorHandlerTrait { public $rollbarComponentName = 'rollbar'; /** * @var callable Callback returning a payload data associative array or null...
@extends('layouts\app') @section('content') <div class="cont"> <h1> Voli </h1> <h3> <a href="{{ route('blog') }}">Blog</a> </h3> <div class="voli"> @foreach ($trips as $trip) <div> <p> ...
@extends('layouts.master') @section('content') <h4>Halo, selamat datang <b>{{ Auth::user()->name }}</b>. Ini adalah halaman admin, dinmana hanya admin yang bisa mengakses halaman ini.</h4> @endsection
<?php namespace Wordless\Contracts\Controller; use Wordless\Abstractions\Guessers\ControllerResourceNameGuesser; use Wordless\Abstractions\Guessers\ControllerVersionGuesser; use Wordless\Abstractions\InternalCache; use Wordless\Exceptions\FailedToFindCachedKey; trait Guesser { private ?ControllerResourceNameGues...
@if ($message = Session::get('success')) <div class="alert alert-success alert-block"> <button type="button" class="close" data-dismiss="alert">×</button> <strong>{{ $message }}</strong> </div> @endif @if ($message = Session::get('error')) <div class="alert alert-danger alert-block"> <button type="butt...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\InventoryModel; class InventoryModelController extends Controller { function __construct(InventoryModel $inventory_model) { $this->inventory_model = $inventory_model; } /** * Display a listing of the resource...
<?php // start session if not running if(!isset($_SESSION)) { session_start(); } // variable declaration $errors = array(); $_SESSION['success'] = ""; $_SESSION['error'] = ""; // connect database require './inc/config/database.php'; /** * create new ticket */ if (isset($_POST['create_ticket'])) { ...
<?php if(!defined("ROOT"))define("ROOT", dirname(__DIR__)); if(!defined("WWW"))define("WWW", ROOT.'/public'); if(!defined("APP"))define("APP", ROOT.'/app'); if(!defined("CORE"))define("CORE", ROOT.'/resources'); if(!defined("LIBS"))define("LIBS", CORE.'/libs'); if(!defined("CACHE"))define("CACHE", ROOT.'/tmp/cache'); i...
<?php /** * The template for displaying all single posts and attachments */ get_header(); ?> <div class="container"> <div class="row"> <main class="main column medium-column-75" role="main"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <article id="post-<?php the_ID(); ?>" ...
<?php namespace Tests\Feature; use App\Contact; use App\User; use Carbon\Carbon; use Symfony\Component\HttpFoundation\Response; use Tests\TestCase; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Foundation\Testing\RefreshDatabase; class ContactsTest extends TestCase { use RefreshDatabase; prot...
<? /* vi: set sw=4 ts=4: */ anchor("/runtime/upnp/wan:".$WID."/entry:".$target); ?><NewInternalPort><? query("port1"); ?></NewInternalPort> <NewInternalClient><? query("ip"); ?></NewInternalClient> <NewEnabled><? query("enable"); ?></NewEnabled> <NewPortMappingDescription><? query("description"); ?></NewPortM...
30 mtime=1556800758.264398665 24 SCHILY.fflags=extent
@extends('home') @section('content') @if (Session::has('alert')) <div class="alert alert-warning alert-dismissible fade show" role="alert"> {{ Session('alert') }} <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">&t...
@extends('layouts.app') @section('content') <div class="container"> <div class="row bg-secondary rounded shadow-lg"> <div class="col-3 p-4"> <img src="{{asset('/storage/images/'.Auth::user()->profile->image)}}" alt="Profile Image" class="rounded-circle" height="200" width="200"> ...
<?php declare(strict_types=1); namespace App\Modules\Audit\Projectors; use App\Modules\Audit\Enum\{ChangeType, EntityType}; use App\Modules\Audit\Exceptions\RevisionNotFoundException; use App\Modules\Audit\Models\Revision; use App\Modules\Audit\Snapshots\AlbumSnapshot; use App\Modules\Audit\Snapshots\ReciterSnapshot...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class ClientAccountContactDetailController extends GenericController { // }
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateReturnInvoiceItemsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { /*$table->unsignedBi...
<?php /** * Login form * * This template can be overridden by copying it to yourtheme/woocommerce/global/form-login.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do ...
<?php namespace App\Http\Requests\App\Image; use App\Http\Requests\App\AppFormRequest; use App\Http\Requests\JobBoard\JobBoardFormRequest; use Illuminate\Foundation\Http\FormRequest; class UpdateImageRequest extends FormRequest { public function authorize() { return true; } public function r...
<?php namespace App; use Illuminate\Database\Eloquent\SoftDeletes; class Role extends BaseModel { use SoftDeletes; protected $dates = ['deleted_at']; public function users() { return $this->belongsToMany('App\User', 'user_role')->withTimestamps()->using('App\UserRole'); } }
<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/cloud/oslogin/v1beta/oslogin.proto namespace Google\Cloud\OsLogin\V1beta; use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil; /** * A request message for importing an...
<?php namespace Huangdijia\Ssdb\Cache; use Illuminate\Contracts\Cache\Store; class Ssdb implements Store { /** * @var \Huangdijia\Ssdb\Ssdb */ protected $ssdb; /** * Cache prefix, eg: my_prefix| * @var string */ protected $prefix; public function __construct($app) { ...
<?php $pic = ltrim($row->pic, UPLOADS_NIFS_SEND_PHOTO_PATH . CROP_SMALL); echo '<img src="' . UPLOADS_NIFS_SEND_PHOTO_PATH . $pic . '" style="width:100%;">';
@extends('layouts.master') @section('contenido') <div class="container"> <div class="row"> <div class="col-sm-12 "> <div class="panel panel-primary"> <div class="panel-heading"><i>Articulos Mas Vendidos</i> </div> @if (s...
<!DOCTYPE html> <html class="loading" lang="en" data-textdirection="{{app()->getLocale() ==='ar'?'rtl':'ltr'}}"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1...
<?php namespace App\Controllers; use App\Models\PostsModel; use App\Models\CategoriesModel; use App\Models\CustomModel; use App\Models\MantenModel; use App\Models\UsersModel; use App\Models\TagsModel; use App\Models\PostsTagsModel; class Blog extends BaseController { public function __construct() { $db = d...
@extends('adminlte::page') @section('title', 'Configurações') @section('content_header') <div class="container-fluid"> <div class="d-flex justify-content-end"> <ol class="breadcrumb float-sm-right"> <li class="breadcrumb-item"><a href="#">Configurações</a></li> ...
<?php /** * CoolMS2 Calendar Module (http://www.coolms.com/) * * @link http://github.com/coolms/calendar for the canonical source repository * @copyright Copyright (c) 2006-2015 Altgraphic, ALC (http://www.altgraphic.com) * @license http://www.coolms.com/license/new-bsd New BSD License * @author Dmitry ...
<div class="row contact-wrap"> <!-- <div class="feature-img-thumb relative"> <div class="overlay overlay-bg"></div> <img class="img-fluid" src="<?=IMAGES?>f1.jpg" alt=""> </div> --> <div class="col-md-12" style="background: #f2f2f2;"> <div data-nanogallery2='{ "userID": "163096312@N02", "kind...
<?php namespace monsieurgourmand\Bundle\InterfaceBundle\Route\Supplier; use monsieurgourmand\Bundle\InterfaceBundle\Model\SupplierPicture; use monsieurgourmand\Bundle\InterfaceBundle\Model\Supplier; use monsieurgourmand\Bundle\InterfaceBundle\Service\MGD; class Picture { /** @var string */ private $entity; ...
<?php /** * Prohibit direct script loading. * * @package Convert_Plus. */ // Add new input type "slider". if ( function_exists( 'smile_add_input_type' ) ) { smile_add_input_type( 'slider', 'cp_slider_settings_field' ); } add_action( 'admin_enqueue_scripts', 'smile_slider_admin_scripts' ); /** * Function Name:sm...
<?php namespace App\Http\Controllers\Api; use App\Models\Friends; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class CobaController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { ...
<?php /* +---------------------------------------------------------------------------+ | OpenX v2.8 | | ========== | | ...
<?php namespace App; use Illuminate\Auth\Authenticatable; use Illuminate\Database\Eloquent\Model; use Illuminate\Auth\Passwords\CanResetPassword; use Illuminate\Foundation\Auth\Access\Authorizable; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; use Illuminate\Contracts\Auth\Access\Authoriza...
<?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 defined('BASEPATH') or exit('No direct script access allowed'); $autoload['packages'] = array(); $autoload['libraries'] = array('parser', 'database', 'session', 'form_validation', 'encryption'); $autoload['drivers'] = array(); $autoload['helper'] = array('url', 'theme', 'auth', 'tanggal', 'enkripsi', 'downloa...
<?php namespace App\Http\Controllers\Market\Administration; use App\Exports\CashProductExport; use App\Http\Controllers\Controller; use App\Models\Catalogue\CatPaymentMethodTypes; use App\Models\Master\Cash; use App\Models\Master\CashDocument; use App\Models\Master\Company; use App\Models\Master\DocumentItem; use App...
<?php /** * @package Joomla.Platform * @subpackage Cache * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */ defined('JPATH_PLATFORM') or die; /** * APCu cache storage handler * * @see h...
<?php namespace Oro\Bundle\EntityExtendBundle\Tests\Unit\Tools\GeneratorExtensions; use CG\Core\DefaultGeneratorStrategy; use CG\Generator\PhpClass; use Oro\Bundle\EntityConfigBundle\Config\Id\FieldConfigId; use Oro\Bundle\EntityExtendBundle\Tools\GeneratorExtensions\AbstractAssociationEntityGeneratorExtension; use ...
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integri...
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\Config; class TypeClassificationSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $typeClassifications = Config::get('typeClassifica...
<?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 namespace Concrete\Core\Calendar\Event\Workflow\Progress; use Concrete\Core\Workflow\Progress\CalendarEventProgress; class Event { protected $event; protected $progress; public function __construct(\Concrete\Core\Entity\Calendar\CalendarEvent $event, CalendarEventProgress $progress) { $...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class SpawnGroup extends Model { protected $table = 'spawn_group'; public $incrementing = false; public $timestamps = false; protected $casts = [ 'groupId' => 'int', 'spawnType' => 'int', 'spawnId' => 'int' ]; }
<?php // # Authorize Payment // This sample code demonstrates how you can authorize a payment. require __DIR__ . '/../../bootstrap.php'; use PayU\Api\Address; use PayU\Api\Amount; use PayU\Api\CreditCard; use PayU\Api\Customer; use PayU\Api\CustomerInfo; use PayU\Api\FundingInstrument; use PayU\Api\PaymentCard; use P...
<?php namespace App\Http\Requests\Personnel; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Support\Facades\Auth; class CreatePersonnelRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() ...
@extends('layout.site') @section('titulo','Home') @section('conteudo') <section> <div class="container padding-container"> <div class="row centralizar-conteudo"> <div class="col-sm-8"> <article class="article-center"> <div> <h3 class="tit...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Site extends Model { use HasFactory; protected $fillable=['name','url','image']; }
@section('title') 找回密码 @endsection @extends('pcview::layouts.auth') @section('body_class')class="gray"@endsection @section('content') <div class="reg_cont" style="height:580px;"> <ul class="reg_menu"> <li><a href="{{ route('pc:findpassword') }}" @if($type == 'phone') class="current" @endif>手机找回</a></li> ...
<?php namespace App\Controllers\Help; use App\Config; use App\Helper; use App\Models\Help; use App\Models\Player; use Core\Locale; use Core\View; use Library\Json; use stdClass; class Requests { private $data; public function __construct() { $this->data = new stdClass(); } public fu...
<?php namespace App\Repositories; use App\MyValueBinder; use Maatwebsite\Excel\Excel; use Maatwebsite\Excel\Readers\LaravelExcelReader; class ExcelRepositoryDefault implements ExcelRepository { /** * @var Excel */ private $excel; /** * ExcelRepositoryDefault constructor. * @param Exc...
<?php namespace App\Models; use Illuminate\Foundation\Auth\User as Authenticatable; use Zizaco\Entrust\Traits\EntrustUserTrait; class Admin extends Authenticatable { use EntrustUserTrait; protected $fillable = [ 'name', 'email', 'password', ]; /** * The attributes that should be hidden...
<?php /** * Capitalization * * PHP version 5 * * @category Class * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech */ /** * OpenAPI Petstore * * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this...
<?php namespace pdt256\Shipping\RateRequest; abstract class Adapter { protected $curlConnectTimeoutInMilliseconds = 1500; protected $curlDownloadTimeoutInSeconds = 50; abstract public function execute($url, $data = null); }
<?php namespace App\Controller\Admin; use App\Entity\ { UFR, Post, User, Level, Address, UsersData, Gender, BalanceSheet }; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Routing\Annotation\Route; use Sensio\Bundle\FrameworkExtraBundle\Configur...
<?php return unserialize('a:1:{i:0;O:27:"Doctrine\\ORM\\Mapping\\Column":9:{s:4:"name";s:11:"set3joueur2";s:4:"type";s:7:"integer";s:6:"length";N;s:9:"precision";i:0;s:5:"scale";i:0;s:6:"unique";b:0;s:8:"nullable";b:1;s:7:"options";a:0:{}s:16:"columnDefinition";N;}}');
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddPhoneToUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('users', functi...
<?php use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $searchModel app\models\AnoSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Años'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="col-lg-8"> <div class="ano-index"> <h1><?= Html...
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors"> <meta name="generator" content="Hugo 0.88.1"> ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; use App\ParcodePreOne; class OrderInformation extends Model { protected $table = 'order_informations'; public $timestamps = true; use SoftDeletes; protected $dates = ['deleted_at']; prot...
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use App\Entity\Interfaces\VoteInterface; use App\Entity\Traits\VoteTrait; use App\Repository\HasVotedRepository; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass=HasVotedRepository::class) * @ApiResource( * itemOperatio...
<?php return [ 'title' => '本地储存', 'name' => '本地储存适配器插件', 'description' => '文件模块所使用的本地储存适配器.', ];
<?php namespace App\Model; use Nette; class AssaultsRepository { /** @var Nette\Database\Context */ private $database; public function __construct(Nette\Database\Context $database) { $this->database = $database; } public function findAllAssaultStats() { return $this->database->table('assault_stats'); }...
<div class="float-sphere" data-toggle="sphere" title="Click me to access more settings for your feed! I'm also Draggable!"> <!-- <div class="sphere-content"> <div class="sphere-clearfx"> </div> <div class="sphere-content-area"> <button id="politics" type="button" class=...
@extends('layouts.main') @section('title','Employees') @section('body') @php $active = 'employees' @endphp <div class="row align-items-center"> <div class="col-12 mt-5"> <div class="card"> <div class="card-body row p-5"> <div class="col-10"> ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateHistoryTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('History', funct...
@extends('materialdesign.mastermaterial') @section('title', 'Ver Lista Convenios') @section('content') <?php include(app_path().'/includes/funciones.php'); ?> <div class="container col-md-12 col-md-offset-0"> <div class="panel panel-default"> <div class="panel-heading"> ...
<?php // autoload_namespaces.php @generated by Composer $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( 'Twig_Extensions_' => array($vendorDir . '/twig/extensions/lib'), 'Twig_' => array($vendorDir . '/twig/twig/lib'), 'Symfony\\Component\\Icu\\' => array($vendorDir...
<?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\Tests\Constraints; use PHPUnit\Framework\Te...
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\Post; use App\Models\Category; use App\Models\Tag; use Illuminate\Support\Facades\Storage; use App\Http\Requests\PostRequest; class PostController extends Controller { /** * Display ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Home extends Model { } //
<?php session_start(); require_once("../lib/config.inc.php"); require_once("../lib/classes/Admin.php"); $adminObj=new Admin(); $adminObj->validateAdmin(); $commonObj->cleanInput(); if(isset($_POST['submitForm']) && $_POST['submitForm']=="yes"){ $adminObj->InsertCommission($_POST); } if($_SESSION['SESS_UID']){ $sql=...
<x-app-layout> <x-slot name="header"> Grupos </x-slot> <div class="py-5 px-2" x-data> <div class="max-w-7xl mx-auto sm:px-6 lg:px-8"> @livewire('show-grupos') </div> </div> </x-app-layout>
@extends('admin/public/layout') <link href="{{ asset('/static/js/select2/css/select2.min.css')}}" rel="stylesheet"> <link href="{{ asset('/static/js/select2/css/select2-bootstrap.min.css')}}" rel="stylesheet"> <link href="{{ asset('/static/js/webuploader/webuploader.css')}}" rel="stylesheet"> <link href="{{ asset('/sta...
<?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 Version20200831114815 extends AbstractMigration { public function getDescription() : string {...
<?php require APPPATH . 'libraries/REST_Controller.php'; require APPPATH . '/libraries/CreatorJwt.php'; class CustomerAuth extends REST_Controller { public function __construct() { parent::__construct(); //load database date_default_timezone_set("Asia/Kolkata"); $this->objOfJw...
<?php /** * This file is part of the Zf2LdapAuth Module (https://github.com/Nitecon/Zf2LdapAuth) * * Copyright (c) 2013 Will Hattingh (https://github.com/Nitecon/Zf2LdapAuth) * * For the full copyright and license information, please view * the file LICENSE.txt that was distributed with this source code. */ na...
<?php namespace Admin\Model; use Think\Model; class UsersModel extends Model { //判断用户名和密码是否正确 ,返回1为登陆成功 ,2为密码错误,3为用户名错误 public function login($userid,$userpwd) { $flag=$this->where("userid='%s'",$userid)->count(); if($flag==1) { $data=$this->field("userid,userpassword") ->where("userid='%s'",$userid...
<?php namespace Torann\MediaSort\Exceptions; use Exception; class InvalidUrlOptionException extends Exception { // }
<?php use Illuminate\Database\Seeder; class UsersTypeSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('user_type')->insert([ 'name' => 'Administrator', ]); DB::table('user_type')->insert([ ...
@extends('index') @section('content') <div class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1 class="m-0 text-dark">Data Transaksi</h1> </div><!-- /.col --> <div class="col-sm-6"> <ol class="breadcr...
<?php namespace App\IndexModel; use Illuminate\Database\Eloquent\Model; class store extends Model { public $table="store"; protected $primaryKey="store_id"; public $timestamps=false; }
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class CreditAccount extends Model { use HasFactory; protected $guarded = []; protected $casts = [ 'balance' => 'float', 'active' => 'boolean' ]; public fun...
<?php namespace App\Http\Controllers\Auth; use App\User; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Validator; use Illuminate\Foundation\Auth\RegistersUsers; class RegisterController extends Controller { /* |-------------------------------------------------------------------------- ...
<ul class="nav nav-tabs nav-justified mb-3"> <li class="nav-item"><a href="{{ route('users.show', ['id' => $user->id]) }}" class="nav-link {{ Request::is('users/' . $user->id) ? 'active' : '' }}">TimeLine <span class="badge badge-secondary">{{ $count_twitters }}</span></a></li> <li class="nav-item"><a href="{{ ...
<?php namespace Google\Site_Kit_Dependencies; /* * 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 * * Unl...
<?php /** * This file is part of the Yasumi package. * * Copyright (c) 2015 - 2019 AzuyaLabs * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @author Sacha Telgenhof <me@sachatelgenhof.com> */ namespace Yasumi\tests\Australia\Vi...
<?php /** * Created by PhpStorm. * User: welli * Date: 07/04/2018 * Time: 13:33 */ class Combos extends CI_Controller { public function __construct() { parent::__construct(); if (!$this->session->userdata("user")) { redirect('sair'); } // $this->load->library('t...
<?php return [ 'singular' => 'Role', 'plural' => 'Roles', 'empty' => 'There are no roles yet.', 'count' => 'Roles count', 'search' => 'Search', 'select' => 'Select Role', 'perPage' => 'Roles Per Page', 'filter' => 'Search for role', 'description' => 'Show All User Roles', 'actio...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class TypeOfCluster extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('type_of_clusters', f...