text stringlengths 2 1.03M |
|---|
<?php
namespace common\models;
use Yii;
use yii\behaviors\SluggableBehavior;
/**
* This is the models class for table "categories".
*
* @property int $id
* @property string $title
* @property string $content
* @property string $image
* @property string $slug
*
* @property Products[] $products
*/
class Categ... |
<?php
declare(strict_types = 1);
namespace TBolier\RethinkQL\Query\Transformation;
use TBolier\RethinkQL\Query\AbstractQuery;
use TBolier\RethinkQL\Query\QueryInterface;
use TBolier\RethinkQL\RethinkInterface;
use TBolier\RethinkQL\Types\Term\TermType;
class IsEmpty extends AbstractQuery
{
/**
* @var QueryI... |
<?php
/*
ListMessenger - Professional Mailing List Management
Copyright 2009 Silentweb [http://www.silentweb.ca]. All Rights Reserved.
Developed By: Matt Simpson <msimpson@listmessenger.com>
For the most recent version, visit the ListMessenger website:
[http://www.listmessenger.com]
License Information is foun... |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Language" content="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>@yield("title")</title>
<meta name="viewport"
conten... |
<?php
use yii\db\Migration;
/**
* Создается таблица "Статистика по файловому хранилищу".
*/
class m180131_171043_create_file_storage_stats_table extends Migration
{
/**
* @inheritdoc
*/
public function up()
{
$tableOptions = null;
if ($this->db->driverName === 'mysql') {
... |
<?php
namespace App\Http\Middleware;
use Illuminate\Http\Request;
use Fideloper\Proxy\TrustProxies as Middleware;
class TrustProxies extends Middleware
{
/**
* The trusted proxies for this application.
*
* @var array|string
*/
protected $proxies = "**";
/**
* The headers that sh... |
<?php declare(strict_types = 1);
namespace Apitte\OpenApi\Schema;
class MediaType
{
/** @var Schema|Reference|null */
private $schema;
/** @var mixed */
private $example;
/**
* @param mixed[] $data
*/
public static function fromArray(array $data): MediaType
{
$mediaType = new MediaType();
if (isset(... |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
$lang['global:control-panel'] = 'Πίνακας Ελέγχου';
$lang['global:profile'] = 'Προφίλ';
$lang['global:title'] = 'Τίτλος';
$lang['name_label'] = 'Όνομα';
$lang['desc_label'] = 'Περιγραφή';
$lang['version_label'] = 'Έκδοση';
$lang['glo... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateOrderTypesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('order_types'... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| T... |
<?php
namespace Malendar\Infrastructure\Persistence;
use Doctrine\ORM\EntityRepository;
use Malendar\Domain\Model\Master\Master;
use Malendar\Domain\Model\ValueObject\UuId;
use Malendar\Domain\Repository\Master\MasterRepositoryInterface;
class DoctrineMasterRepository extends EntityRepository implements MasterReposi... |
@include('layouts.style')
<title>All Categories</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<link href="../css/treeview.css" rel="stylesheet">
<d... |
<!DOCTYPE HTML>
<!--
Phantom by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>TEMA 6</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link r... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Dosen extends Model
{
protected $fillable = ['nama','nipd'];
public $timestamps = true;
public function mahasiswa(){
return $this->hasMany('App\Mahasiswa','id_dosen');
}
} |
<?php
/**
* Contains Class TestInitialSetup.
*
* @package WP-Auth0
*
* @since 4.0.0
*/
/**
* Class TestInitialSetup.
*/
class TestInitialSetup extends WP_Auth0_Test_Case {
use HookHelpers;
public function testThatClearAdminActionFunctionsAreHooked() {
$expect_hooked = [
'wp_auth0_setup_callback_step3_... |
<div class="block-header">
<h2>MASTER JURUSAN</h2>
</div>
<div class="row clearfix">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="card">
<div class="header">
<div class="row clearfix">
<div class="col-xs-12 col-sm-6">
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class KantongBelanja extends Model
{
protected $table = 'kantong_belanja';
protected $fillable = [
'jumlah', 'keterangan', 'katalog_id', 'users_id', 'total_harga'
];
public function katalog()
{
return $this->belongsTo('App\K... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Path extends Model
{
protected $fillable = [
'resource_id',
'name',
'description',
'logo',
];
public function panels()
{
return $this->hasMany('App\Panel');
}
} |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Orders extends Model
{
protected $fillable = [
'name',
'email',
'phone',
'location',
'ordertype',
'foodlist',
'totalprice',
'status'
];
} |
<?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 Version20200703125754 extends AbstractMigration
{
public function getDescription() : string
{... |
<?php
$sensorlist = new \Monitor\SensorList();
$sensors = $sensorlist->find(); |
<?php
session_start();
error_reporting(-1);
ini_set('display_errors', 'On');
$title = "Hlavní stránka";
$subtitle = "Aktuální vývoj";
require_once "../config.inc.php";
require_once "../functions.inc.php";
if(count($_COOKIE) <= 0) {
if(isset($_SESSION['cookie_error_count']... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class AddPrepareForBills extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('estimates', function(Blueprint $table) {
});
Schema::rename('expences', 'est... |
<form
@if(@$class) class="{{ $class }}" @endif
method="{{ @$method == 'get' ? 'get' : 'post' }}"
action="{{ @$action ?: '#' }}"
enctype="multipart/form-data"
@foreach((array) @$attrs as $attrName => $attrValue)
@if(is_int($attrName))
{{ $attrValue }}
@else
{{ ... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateNewsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('news', function (B... |
<?php
/**
* Handles all tasks related to locking.
*
* - Loads the WordPress Heartbeat API and scripts & styles for GF Locking
* - Provides standardized UX
*
* @package GFLocking
* @author Rocketgenius
*/
abstract class GFLocking {
private $_object_type;
private $_object_id;
private $_edit_url;
... |
<div class="modal-body p-4 added-to-cart">
<div class="text-center text-success mb-4">
<i class="las la-check-circle la-3x"></i>
<h3>{{ translate('Item added to your cart!')}}</h3>
</div>
<div class="media mb-4">
<img src="{{ static_asset('assets/img/placeholder.jpg') }}" data-src="{... |
<?php
class WOZStuurgegevensLv05
{
/**
* @var BerichtcodeLv05 $berichtcode
*/
protected $berichtcode = null;
/**
* @var Systeem $zender
*/
protected $zender = null;
/**
* @var Systeem $ontvanger
*/
protected $ontvanger = null;
/**
* @var Refnummer $ref... |
@extends('layouts.app', [
'namePage' => 'Register page',
'activePage' => 'register',
'backgroundImage' => asset('assets') . "/img/bg16.jpg",
])
@section('content')
<div class="content">
<div class="container">
<div class="row">
<div class="col-md-5 ml-auto">
<div class="info-a... |
<script src="<?php echo base_url(); ?>assets/libs/jquery/dist/jquery.min.js"></script>
<script src="<?php echo base_url(); ?>assets/dist/js/jquery.ui.touch-punch-improved.js"></script>
<script src="<?php echo base_url(); ?>assets/dist/js/jquery-ui.min.js"></script>
<!-- Bootstrap tether Core JavaScript -->
<script ... |
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... |
<div class="page-title-box">
<h4 class="font-size-18">{{ $title }}</h4>
<ol class="breadcrumb mb-0">
@if(isset($li_1))
<li class="breadcrumb-item">
<a href="javascript: void(0);">
{{ $li_1 }}
</a>
</li>
@endif
@if(isset($title_li))
... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTypesTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('type', function(Blueprint $table)
{
$table->increments('id');
$table->stri... |
<style type="text/css">
table {
padding: 5px;
}
table tr td:first{
text-align: right;
}
</style>
<div>
<br>
<b>Header</b>
<br>
<table>
<tr>
<td>Document No.</td>
<td> <?= $header['DCM_DocNo'] ?></td>
<td>Document Date... |
@extends('admin_layout')
@section('admin_content')
<div class="table-agile-info">
@foreach($errors->all() as $value)
<div class="alert alert-danger">{{$value}}</div>
@endforeach
<?php
$stt = 1;
$message = Session::get('message_status');
if(strlen(strstr($message, 'Hidden')... |
<!DOCTYPE html>
<html>
<head>
<!--BI-->
<meta charset="UTF-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link hr... |
<?php
/**
* Created by PhpStorm.
* User: Andrew
* Date: 22.06.14
* Time: 22:45
*/
return array(
'error' => 'Ошибка',
'email_already_registered' => 'Пользователь с таким адресом эл.почты уже существует',
'token expired' => 'Время действия ключа истекло.',
); |
<?php
require_once('../../namespace.php');
use Lib\Teacher\Announcement;
Announcement::Controller();
?> |
<?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\Mapping\Cache;
use Symfony\Component\Valida... |
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\SDK_DATA_1598238000612\Models;
use AlibabaCloud\Tea\Model;
use AlibabaCloud\SDK\SDK_DATA_1598238000612\Models\GetCcoserviceServicegroupParams;
class GetCcoserviceServicegroupRequest extends Model {
public function validate()... |
<?php
namespace crmcomercial\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
Comm... |
<?php
return [
'dashboard' => 'dashboard',
'users' => 'users',
'first_name' => 'name',
'last_name' => 'last_name',
'email' => 'email',
'control' => 'control',
'edit' => 'edit',
'delete' => 'delete',
'add' => 'add',
'userscreate' => 'userscreate',
'search' => 'search',
'p... |
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class MixedContentTest extends TestCase
{
use RefreshDatabase;
/** @test */
public function can_get_a_list_of_mixed_content_for_a_site()
{
$this->bot->receives('/mixedcontent example')
... |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\Catalog\Ui\Component\Product;
use Magento\Framework\AuthorizationInterface;
use Magento\Framework\View\Element\UiComponentInterface;
use Magento\Framework\View\Element\UiC... |
<?php
namespace Illuminate\Console;
use Psr\Container\ContainerInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\CommandLoader\CommandLoaderInterface;
use Symfony\Component\Console\Exception\CommandNotFoundException;
class ContainerCommandLoader implements CommandLoaderInterface... |
<?php
namespace Imingxin\TaobaoTopClient\request;
/**
* TOP API: taobao.top.ipout.get request
*
* @author auto create
* @since 1.0, 2021.03.22
*/
class TopIpoutGetRequest
{
private $apiParas = array();
public function getApiMethodName()
{
return "taobao.top.ipout.get";
}
public function getApiParas()
{... |
<?php namespace App\Controllers;
use App\Models\InvoicesModel;
use App\Models\SellingModel;
use App\Models\UserModel;
use App\Models\BranchesModel;
use App\Models\CategoriesModel;
use App\Models\MainStoreModel;
use App\Models\ClientModel;
class Home extends BaseController
{
private $data = array();
private $log_sta... |
<?php
/*
* This file is part of the Elcodi package.
*
* Copyright (c) 2014-2015 Elcodi.com
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Feel free to edit as you please, and have fun.
*
* @author Marc Morera <yuhu@mmoreram.c... |
<?php
headerAdmin($data);
getModal('modalPerfil',$data);
?>
<main class="app-content">
<div class="row user">
<div class="col-md-12">
<div class="profile">
<div class="info"><img class="user-img" src="<?= media();?>/images/fotos/<?=$_SESSION['userData']['nombre_foto']?>">
<h4><?= $_SE... |
<?php
namespace LaravelMigrationGenerator\Tokenizers;
use LaravelMigrationGenerator\Helpers\WritableTrait;
abstract class BaseTokenizer
{
use WritableTrait;
protected $tokens = [];
private string $value;
private const SPACE_REPLACER = '&!@';
public function __construct(string $value)
{
... |
<?php
class Payment extends CI_Controller {
public function __construct()
{
parent::__construct();
}
public function index()
{
$this->load->view('Template/Header');
$this->load->view('Payment/Index');
$this->load->view('Template/Footer');
}
} |
<?php
include_once 'logica/funciones.php';
$fun = new funciones();
session_start();
$nom="";
$app="";
$correo="";
$dir="";
$tel="";
$use="";
if(isset($_POST["nombre"])){
$nom=$_POST["nombre"];
$app=$_POST["apellidos"];
$correo=$_POST["email"];
$dir=$_POST["direccion"];
$tel=$_POST["telefono"];
$use=$_POST["... |
<div>
<div class="content-wrapper">
@if (session()->has('message'))
<div class="alert alert-success" style="margin-top:30px;">
{{ session('message') }}
</div>
@endif
<div class="row">
<div class="d-flex justify-content-end">
<button class="bt badge badge-success mb-3" type="button" ... |
<?php
namespace Bolt\Configuration;
use Bolt\Application;
class Composer extends Standard
{
/**
* Constructor initialises on the app root path.
*
* @param string $path
*/
public function __construct($root, Request $request = null)
{
parent::__construct($root, $request);
... |
<footer class="container-fluid text-center">
<div class="row">
<div class="col-sm-4">
<h2>Contact us</h3>
<h4>EMAIL US AT: quoteshuddle@gmail.com</h4>
</div>
<div class="col-sm-4">
<h3>Connect Us At</h3>
<a href="#" class="fa fa-facebook"></a>
<a href="#" class="fa fa-twit... |
<div class="page-sidebar navbar-collapse collapse">
<?php
$controller = Request::segment(2);
$method = Request::segment(3);
$authId = Auth::user()->user_type;
?>
<!-- BEGIN SIDEBAR MENU -->
<!-- DOC: Apply "page-sidebar-menu-light" class right after "page-sidebar-menu" to enable light sideba... |
<?php
/**
* @package Joomla.Platform
* @subpackage Database
*
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('JPATH_PLATFORM') or die;
/**
* Joomla Platform Database Driver Class
... |
<html>
<head>
<?php
require_once('../connection2.php');
$clli= $_GET['clli'];
$result3= $dev->query("Select * from Cap_NVX where CLLI='$clli'");
$row3= $result3->fetch_assoc();
$nvxDS3= $row3['DS3'];
$nvxUnassigned= $row3['UNASSIGNED'];
$nvxInService= $row3['INSERVICE'];
$nv... |
<?php
namespace App\Repositories\Masters;
use App\Models\Masters\MasterSubmissionValidationStatuses;
use App\Repositories\BaseRepository;
/**
* Class MasterSubmissionValidationStatusesRepository
* @package App\Repositories\Masters
* @version November 22, 2020, 8:03 am UTC
*/
class MasterSubmissionValidationStatu... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Auth;
class RoleController extends Controller
{
public function profile(){
return view('profile', array('user' => Auth::user()));
}
} |
<?php
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit2e0f0e0c245f832b365350d00b642c78
{
private static $loader;
public static function loadClassLoader($class)
{
if ('Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php';
}
... |
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$this->call(ActionTableSeeder::class);
$this->call(WhitelistTableSeeder::class);
$this->call(TeamTableSeeder::cl... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAlumnosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('_alumnos', func... |
<?php
namespace ElasticEmailEnums;
class ContactCollection
{
/**
* Lists which contain the requested contact
*/
public /*Array<\ElasticEmailEnums\ContactContainer>*/ $Lists;
/**
* Segments which contain the requested contact
*/
public /*Array<\ElasticEmailEnums\ContactContainer>*... |
<?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\DB;
use App\Models\Category;
use App\Models\Posts;
use App\User;
class DashboardController extends Controller
{
public function index(){
$post = Posts::all();
$us... |
<?php
/**
* PHPUnit
*
* Copyright (c) 2002-2010, Sebastian Bergmann <sb@sebastian-bergmann.de>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code m... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Poke extends CI_Model {
public function get_all_users($user_id)
{
return $this->db->query("SELECT id, name, alias, email, poke_received FROM users
WHERE id != ?", $user_id)->result_array();
}
public functio... |
<?php
namespace App\Http\Controllers;
use App\Models\Sponserform;
use App\Models\User;
use App\Models\Orphan;
use App\Models\Sponsor;
use App\Models\Guardian;
use App\Models\Payment;
use App\Http\Requests\StoreSponserformRequest;
use App\Http\Requests\UpdateSponserformRequest;
use Spatie\Permission\Models\Role;
use S... |
<!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" />
<!-- Título da página -->
<title>@yield('title')</title>
<!-... |
<?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... |
<?php
/*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+---------------------... |
<?php
namespace ContainerHXtbRXm;
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 getSecurity_Command_UserPassword... |
<?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', fun... |
<?php
namespace App\EventListener;
use App\Entity\Task;
use App\Service\GoogleClient;
use Doctrine\ORM\Event\LifecycleEventArgs;
/**
* Class TaskListener
* @package App\EventListener
*/
class TaskListener
{
/**
* @var GoogleClient
*/
protected $googleClient;
/**
* TaskListener construc... |
<?php
/**
* This file is part of the Nette Framework (https://nette.org)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
declare (strict_types=1);
namespace RectorPrefix20211201\Nette\Utils;
use RectorPrefix20211201\Nette;
/**
* PHP reflection helpers.
*/
final class Reflection
{
use Nette\Stati... |
<?php
require_once __DIR__ . '/../../autoload.php';
use Qiniu\Auth;
use Qiniu\Rtc\AppClient;
// 控制台获取密钥:https://portal.qiniu.com/user/key
$accessKey = getenv('QINIU_ACCESS_KEY');
$secretKey = getenv('QINIU_SECRET_KEY');
$auth = new Auth($accessKey, $secretKey);
$client = new AppClient($auth);
// app 的唯一标识,创建的时候由系统生... |
<?php
namespace Pktharindu\NovaPermissions\Traits;
use Pktharindu\NovaPermissions\Role;
trait HasRoles
{
/**
* Get all Roles given to this user.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
*/
public function roles()
{
return $this->belongsToMany(Role::cla... |
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->call(CreateUsersSeeder::class);
$this->call(CreateSleeveSeeder::class);
$this->call(CreateNeckSe... |
@extends('layouts.default')
@push('styles')
<link href="{{ asset('plugins/custom/datatables/datatables.bundle.css')}}" rel="stylesheet" type="text/css" />
@endpush
@section('content')
<!--begin::Subheader-->
<div class="subheader py-2 py-lg-12 subheader-transparent" id="kt_subheader">
<div class="container d... |
<?php if(Session::has('success')): ?>
<div class="alert alert-success alert-dismissable">
<button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
<?php echo e(Session::get('success')); ?>
</div>
<?php endif; ?>
<?php if(Session::has('error')): ?>
<div class="alert alert-danger a... |
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* referent
*
* @ORM\Table(name="referent")
* @ORM\Entity(repositoryClass="AppBundle\Repository\referentRepository")
*/
class referent
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\G... |
<?php
namespace app\index\controller;
use think\Request;
use think\Session;
class Pay extends BaseController
{
public function index(Request $request)
{
//判断用户是否已经登陆了
if(!Session::get("user"))
{
$this->error("请先登录,不要做越权行为,这是不好的!","/index/user/login");
}
//... |
<html>
<?php include("../start_script.php") ?>
<?php include("../header.php"); ?>
<body>
<?php include("../navbar.php"); ?>
<div class="container-fluid">
<?php
session_start();
if( isset( $_SESSION["user"] ) ) {
$id = $_POST["id"];
include("../gpulab-remove.php");
} else {
session_destroy(); ?>
... |
@extends('layouts.main')
@section('content')
<div class="col-sm-8 col-sm-offset-2">
@foreach ($bears as $bear)
<h2>{{ $bear->name }} <small> {{ $bear->type }}: Level {{ $bear->danger_level }}</small></h2>
<h4>Trees</h4>
@foreach ($bear->trees as $tree)
<p>{{ $tree->type }}</p>
@endforeach
<h4>... |
<?php
namespace ContainerWHfJAD5;
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 getDoctrineMigrations_MigrateCom... |
@extends('layouts.app')
@section('title', $mantenedor)
@section('breadcrumb')
<ol class="breadcrumb pull-right">
<li class="breadcrumb-item"><a href="{{ route('home') }}">Dashboard</a></li>
<li class="breadcrumb-item"><a href="{{ route('foods.index') }}">Alimentos</a></li>
</ol>
@endsection
@... |
@extends('layouts.app')
@section('content')
<div class="row">
<ol class="breadcrumb bc-3">
<li>
<a href="/"><i class="fa fa-home"></i>Home</a>
</li>
<li>
<a href="{{route('lesson-test.index')}}">{{trans('tut::table.lesson_test')}}</a>
... |
<?php
namespace PhpParser\Node\Stmt;
use PhpParser\Node;
/**
* @property Node\Expr[] $vars Variables to unset
*/
class Unset_ extends Node\Stmt
{
/**
* Constructs an unset node.
*
* @param Node\Expr[] $vars Variables to unset
* @param array $attributes Additional attributes
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class eduLevel extends Model
{
//
} |
<?php
include "class/includes.php";
$photo = $_GET['photo'];
$mode = $_GET['mode'];
if (!$photo || !$mode) {
die('photo and mode param must be set.');
}
switch ($mode) {
case Photo::SIZE_THUMBNAIL:
$height = 400;
$width = 400;
$crop = true;
break;
case Photo::SIZE_NORMAL:
$height = 600;
$width = 600... |
<?php
namespace Github\Normalizer;
use Jane\Component\JsonSchemaRuntime\Reference;
use Github\Runtime\Normalizer\CheckArray;
use Symfony\Component\Serializer\Exception\InvalidArgumentException;
use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface;
use Symfony\Component\Serializer\Normalizer\Denormal... |
<?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 Kerox\Messenger\Model\Callback;
class Delivery
{
/**
* @var int
*/
protected $watermark;
/**
* @var int
*/
protected $sequence;
/**
* @var array
*/
protected $messageIds;
/**
* Delivery constructor.
*
* @param array $messageId... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateMediaTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('media', function ... |
<?php
/* Copyright (C) 2010-2014 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
*
* This program 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;... |
<?php
/**
*
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\PageCache\Observer;
use Magento\Framework\App\ObjectManager;
use Magento\Framework\Event\ObserverInterface;
class FlushCacheByTags implements ObserverInterface
{
/**
* @var \... |
<?php
namespace REBELinBLUE\Deployer\Tests\Unit\Events\Listeners;
use Illuminate\Session\Store;
use Mockery as m;
use REBELinBLUE\Deployer\Events\Listeners\ClearJwt;
use REBELinBLUE\Deployer\Tests\TestCase;
/**
* @coversDefaultClass \REBELinBLUE\Deployer\Events\Listeners\ClearJwt
*/
class ClearJwtTest extends Test... |
<?php
/**
* Контроллер, отвечающий за просмотр профиля, смену почты и пароля.
* То есть за действия авторизованного пользователя
*
* @category YupeComponents
* @package yupe.modules.user.controllers
* @author YupeTeam <team@yupe.ru>
* @license BSD http://ru.wikipedia.org/wiki/%D0%9B%D0%B8%D1%86%D0%B5%D0%BD%... |
<?php
/**
* Settings manager
*
* Project: User Role Editor WordPress plugin
*
* Author: Vladimir Garagulya
* email: support@role-editor.com
*
**/
class URE_Settings {
protected static function get_action() {
$action = 'show';
$update_buttons = array(
'ure_settings_update',... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.