text stringlengths 2 1.03M |
|---|
<?php
namespace catchAdmin\system\tables\forms;
use catchAdmin\permissions\model\Department as DepartmentModel;
use catcher\library\form\Form;
class SensitiveWord extends Form
{
public function fields(): array
{
return [
Form::input('word', '敏感词')->required()->placeholder('请输入敏感词'),
... |
<?php
declare(strict_types = 1);
namespace KdybyTests\Console;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Tester\Assert;
class TypoCommand extends \Symfony\Component\Console\Command\Command
{
use \Nette\SmartObject;
protected function configure(... |
@extends('layouts.index')
@section('content')
<!-- Start Bradcaump area -->
<div class="ht__bradcaump__area">
<div class="ht__bradcaump__container">
<div class="container">
<div class="row">
<div class="col-lg-12">
... |
<?php
use App\Providers\RouteServiceProvider;
use Laravel\Fortify\Features;
return [
/*
|--------------------------------------------------------------------------
| Fortify Guard
|--------------------------------------------------------------------------
|
| Here you may specify which authen... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function (Bluep... |
@extends('layouts.admin-base')
@section('title') Create Gadget @endsection
@section('content')
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Gadget</h1>
</div>
<!-- /.col-lg-12 -->
</div>
<div class="panel panel-default">
<div class="panel-heading">
<div class="col-md-6">
<... |
<?php
namespace App\Http\Controllers;
use App\Armada;
use Illuminate\Http\Request;
use Illuminate\Validation\Validator;
class ArmadaController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$arma... |
<?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\DependencyInjection\Tests\Compiler;
use PHPUnit\Frame... |
<div class="table-responsive-sm">
<table class="table table-striped" id="student_requests-table">
<thead>
<tr>
<th>@lang('models/student_requests.fields.status')</th>
<th>学生</th>
<th>企業名</th>
<th>募集</th>
<th>申請日時</th... |
<?php namespace Bkwld\Decoy\Input\EncodingProviders;
// Dependencies
use App;
use Bkwld\Decoy\Exceptions\Exception;
use Bkwld\Decoy\Models\Encoding;
use Config;
use Request;
use Illuminate\Support\Str;
/**
* Base class for encoding providers that provides some shared logic
* and defines abstract methods that must b... |
<div class="row">
<div class="col-12">
<div class="page-title-box d-flex align-items-center justify-content-between">
<h4 class="mb-0 font-size-18">Laboratorium</h4>
<div class="page-title-right">
<ol class="breadcrumb m-0">
<li class="breadcrumb-... |
<?php
namespace Reactor\Gekkon\Tags\Common;
use \Reactor\Gekkon\Compiler\BaseTag;
class Tag_cache extends BaseTag {
function compile($compiler) {
$exp_compiler = &$compiler->exp_compiler;
$args = array();
if (trim($this->args_raw) != '') {
$args = $exp_compiler->parse_args($thi... |
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Tools\Console;
use Doctrine\ORM\Mapping\ClassMetadata;
use function count;
use function iterator_to_array;
use function preg_match;
use function sprintf;
/**
* Used by CLI Tools to restrict entity-based commands to given patterns.
*/
class MetadataFilter exten... |
<?php
/**
* @var $faker \Faker\Generator
* @var $index integer
*/
return [
'username' => $faker->userName,
'auth_key' => Yii::$app->security->generateRandomString(),
'password_hash' => Yii::$app->security->generatePasswordHash('password_' . $index),
'password_reset_token' => Yii::$app->security->ge... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Vendors extends Model
{
//
} |
<?php
namespace soluto\kendoui\ui;
use soluto\kendoui\base\InputWidget;
class MaskedTextBox extends InputWidget
{
/**
* @inheritdoc
*/
public $pluginName = 'kendoMaskedTextBox';
} |
<?php
namespace App\Jobs;
use App\Jobs\Job;
use App\Mailers\AttendeeMailer;
use App\Models\Attendee;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
class SendAttendeeTicket extends Job implement... |
<?php
/****************************************************
* Register service post type
*****************************************************/
$labels = array(
'name' => _x( 'Services', 'Post Type General Name', 'wpbootscore' ),
'singular_name' => _x( 'Service', 'Post Type Singular Name', 'wpbo... |
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\Companion;
use Faker\Generator as Faker;
$factory->define(Companion::class, function (Faker $faker) {
return [
//
];
}); |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Envios;
use App\Http\Requests\EnviosFormRequest;
use Illuminate\Support\Facades\Redirect;
use DB;
class EnviosController extends Controller
{
public function __construct()
{
$this->mid... |
<div class="col-md-3 hidden-sm hidden-xs">
<div class="sidebar">
<div class="widget">
<h6 class="upper">Categories</h6>
<ul class="nav">
@php
$category_info = App\Models\ShopCategory::take(5) -> get();
@endphp
@fore... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\AdminPost */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="admin-post-form form-inline">
<?php $form = ActiveForm::begin(); ?>
<div class="rows">
<div class='col-md-4 col-sm-6 ... |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Security\Core\Exception;
/**
* Aut... |
<?php
/**
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2015 - 2017
* @package yii2-tree-manager
* @version 1.0.7
*/
use kartik\form\ActiveForm;
use kartik\tree\Module;
use kartik\tree\TreeView;
use kartik\tree\models\Tree;
use yii\helpers\ArrayHelper;
use yii\helpers\Html;
use yii\helpers\Json... |
<?php
namespace Psalm\Tests\Template;
use const DIRECTORY_SEPARATOR;
use Psalm\Tests\TestCase;
use Psalm\Tests\Traits;
class ClassTemplateTest extends TestCase
{
use Traits\InvalidCodeAnalysisTestTrait;
use Traits\ValidCodeAnalysisTestTrait;
/**
* @return iterable<string,array{string,assertions?:arr... |
<?php
namespace Fundamental\Borica;
use Carbon\Carbon;
class Response
{
const TRANSACTION_CODE = 'TRANSACTION_CODE';
const TRANSACTION_TIME = 'TRANSACTION_TIME';
const AMOUNT = 'AMOUNT';
const TERMINAL_ID = 'TERMINAL_ID';
const ORDER_ID = 'ORDER_ID';
const RESPONSE_CODE = 'RESPONSE_CODE';
... |
<?php
namespace frontend\controllers;
use Yii;
use yii\base\InvalidParamException;
use yii\web\BadRequestHttpException;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use common\models\LoginForm;
use frontend\models\PasswordResetRequestForm;
use frontend\models\ResetPasswordForm;
us... |
<?php
namespace App\Containers\Drivers\ApiTask;
use App\Containers\Common\ApiHelper;
use App\Containers\Common\Configs_Class;
use App\Containers\Common\GetConfigs;
use App\Containers\Drivers\Models\DriverCancelModel;
use App\Containers\Drivers\Models\DriverModel;
use App\Containers\Jobs\AndroidPushNotificationJob;
use... |
<?php
/**
* Copyright 2012 GroupDocs.
*
* 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 o... |
<?php
/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim/blob/3.x/LICENSE.md (MIT License)
*/
namespace Slim\Tests\Mocks;
use Exception;
use Psr\Http\Message\StreamInterface;
class SmallChunksStream implements StreamInterface
{
const CHUNK_SIZE = 10;
const SIZE ... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Product extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name',
];
} |
<?php
namespace App\Http\Middleware;
use Closure;
use Auth;
class SuperAdminCiComdt {
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next) {
//START... |
@extends('agentadmin::layouts.content')
@section('page_title')
{{ __('admin::app.customers.note.title') }}
@stop
@section('content')
<div class="content">
<form method="POST" action="{{ route('agentadmin.customer.note.store', $customer->id) }}">
<div class="page-header">
<d... |
<!DOCTYPE html>
<html lang="es">
<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>VERTEC Admin</t... |
<?php
/*
* This file is part of ibrand/EC-Open-Core.
*
* (c) 果酱社区 <https://guojiang.club>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return [
'database' => [
'prefix' => 'ibrand_'
],
/*
|-----------... |
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="{{asset('image/logo/bamz.png')}}">
<title>@yield('t... |
<?php
// 数据库备份配置
return array(
// 数据库文件备份的目录路径
'BACKUP_DIR_PATH' => WEB_ROOT . 'Data/',
// 数据库文件zip存放目录路径
'BACKUP_ZIP_DIR_PATH' => WEB_ROOT . 'Data/zip/',
// 数据库文件备份名称前缀
'BACKUP_PREFIX' => 'jy_',
// 数据库备份文件名中的随机数长度
'BACKUP_FILE_CODE_LENGTH' => 6,
// sql文件注释头名称
'BACKUP_DESCRI... |
<?php
class ClassName {
function functionName($param) {
echo $param;
if (true) {
return 5;
} else {
return 10;
}
}
}
?> |
<?php
/**
* [ADMIN] グローバルメニュー一覧
*
* baserCMS : Based Website Development Project <http://basercms.net>
* Copyright 2008 - 2014, baserCMS Users Community <http://sites.google.com/site/baserusers/>
*
* @copyright Copyright 2008 - 2014, baserCMS Users Community
* @link http://basercms.net baserCMS Project
* @p... |
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\Resource;
class ReviewResource extends Resource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request
* @return array
*/
public function toArray($request)
{
return [
... |
<?php
/*
* Copyright 2004-2017, AfterLogic Corp.
* Licensed under AGPLv3 license or AfterLogic license
* if commercial version of the product was purchased.
* See the LICENSE file for a full license statement.
*/
/**
* @internal
*
* @package Users
* @subpackage Storages
*/
class CApiUsersNodbStorage extend... |
<?php
require_once __DIR__ . '/../model/Shelf.php';
require_once __DIR__ . '/WareHouseException.php';
class QueryShelf {
public function getFullList() {
$data = [];
$sql = "SELECT * FROM shelf";
global $mysqli;
if ($result = $mysqli->query($sql)) {
if ($result->num_... |
<?php
/*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DB;
class DashboardController extends Controller
{
public function beranda_dinas(Request $request)
{
$kode_wilayah = $request->kode_wilayah ? $request->kode_wilayah : '052100';
// Jadwal
$jadwal = DB::connection('... |
<?php
namespace PhpParser\Builder;
use PhpParser;
use PhpParser\Node\Name;
use PhpParser\Node\Stmt;
class Trait_ extends Declaration
{
protected $name;
protected $properties = array();
protected $methods = array();
/**
* Creates an interface builder.
*
* @param string $name Name of th... |
<?php
/**
* @package entegre-bootstrap
* @subpackage Factories
* @author James Linden <kodekrash@gmail.com>
* @copyright 2016 James Linden
* @license MIT
*/
namespace entegre\bootstrap\factory;
trait size {
private static $_sizes = [ 'lg', null, 'sm', 'xs', 'block' ];
protected $_prefix = null;
public fun... |
<?php
namespace Brackets\AdminGenerator\Tests\Feature\Classes;
use Brackets\AdminGenerator\Tests\TestCase;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Support\Facades\File;
class ModelNameTest extends TestCase
{
use DatabaseMigrations;
/** @test */
public function model_name_sho... |
<?php
namespace Apitte\Core\Mapping;
use ReflectionObject;
trait TReflectionProperties
{
/** @var array */
protected $properties = [];
/**
* @return array
*/
public function getProperties()
{
if (!$this->properties) {
$properties = [];
$rf = new ReflectionObject($this);
$class = get_class($this... |
<?php
namespace Knp\Component\Pager\Event\Subscriber\Paginate\Doctrine\ODM\MongoDB;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Knp\Component\Pager\Event\ItemsEvent;
use Doctrine\ODM\MongoDB\Query\Builder;
class QueryBuilderSubscriber implements EventSubscriberInterface
{
public function ... |
<?php
namespace Mvaliolahi\SMS;
use Mvaliolahi\SMS\Contracts\ShortMessageService;
/**
* @package Mvaliolahi\SMS
*/
class SMS implements ShortMessageService
{
/**
* SMS driver Implementation
*
* @var ShortMessageService
*/
protected $driver;
/**
* SMS constractor
*
*... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateJobsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('jobs', function (B... |
@extends('saude::layouts.master')
@section('content')
<h1>Hello World</h1>
<p>
This view is loaded from module: {!! config('saude.name') !!}
</p>
@stop |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateBooksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('books', function ... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... |
<div class="col-md-3 left_col">
<div class="left_col scroll-view">
<div class="navbar nav_title" style="border: 0;">
<a href="index.html" class="site_title"><span> Quản trị</span></a>
</div>
<div class="clearfix"></div>
<!-- menu profile quick info -->
<div clas... |
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/4/17
* Time: 21:53
*/
namespace app\{$module}\model;
use think\Model;
use think\model\concern\SoftDelete;
class {$model} extends Model
{
//引用软删除
use SoftDelete;
//定义表中删除字段,记录删除时间
protected $deleteTime = 'delete_time';
//定义默认... |
<?php
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model app\models\LoginForm */
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
$this->title = 'Вход';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-login">
<h1><?= Html::encode($this->title) ?></h1>
... |
<?php
class PeThemeFormElementSelectColumns extends PeThemeFormElementSelect {
public function registerAssets() {
parent::registerAssets();
PeThemeAsset::addScript("framework/js/admin/jquery.theme.field.selectColumns.js",array(),"pe_theme_field_selectColumns");
wp_enqueue_script("pe_theme_field_selectColumns"... |
<!DOCTYPE html>
<html lang="en">
<head>
<?php //include_once("includes/hpheader.php");
?>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Home</title>
<script... |
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ResetsPasswords;
use Password;
use Illuminate\Http\Request;
use Auth;
class AdminResetPasswordController extends Controller
{
/*
|--------------------------------------------------------------------... |
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylorotwell@gmail.com>
*/
$uri = urldecode(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server.... |
<?php
/*+***********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initi... |
<?php
if (($url = getenv('DATABASE_URL')) !== false) {
// Configuración para Heroku:
$config = parse_url($url);
$host = $config['host'];
$port = $config['port'];
$dbname = substr($config['path'], 1);
$username = $config['user'];
$password = $config['pass'];
} else {
// Configuración par... |
{{-- @extends('layouts.main') --}}
@extends('layouts.master')
@section('pagetitle',"| $tag->name Tag")
@push('css')
@endpush
@section('content')
<div class="row">
<div class="col-md-8">
<h1>{{$tag->name}} Tag <small>{{$tag->posts()->count()}} Posts</small></h1>
</div>
<div class="col-md-2">... |
<?php
/**
* @version $Id: forgotten.php 4989 2017-06-22 09:22:42Z mic $
* @package Translation - Frontend
* @author mic - https://osworx.net
* @copyright 2017 OSWorX
* @license GPL - www.gnu.org/copyleft/gpl.html
*/
// Heading
$_['heading_title'] = 'Passwort vergessen';
// Text
$_['text_account'] = 'Konto... |
<?php
/**
* File containing the ezcMailStorageSet class
*
* @package Mail
* @version 1.7.1
* @copyright Copyright (C) 2005-2010 eZ Systems AS. All rights reserved.
* @license http://ez.no/licenses/new_bsd New BSD License
*/
/**
* ezcMailStorageSet is a wrapper around other mail sets and provides saving of
* m... |
<?php
use Illuminate\Database\Seeder;
class TaskSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
\App\Task::create([
'description'=>'Problem description',
'comment'=>'comment',
'problem_ty... |
<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
{{ __('Category') }}
</h2>
</x-slot>
<x-slot name=script>
<script>
// ajax datatables
var dataTable = $('#crudtable').DataTable({
... |
<?php
namespace TrekSt\Modules\ProductsAttributes\Models;
use Illuminate\Database\Eloquent\Model;
use Kyslik\ColumnSortable\Sortable;
use Spatie\Translatable\HasTranslations;
class ProductsAttributesGroup extends Model
{
use Sortable;
use HasTranslations;
protected $table = 'products_attributes_groups';
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\Hash;
use Illuminate\Http\Request;
use Auth;
use App\Models\TeachersKey;
use App\Models\StudentsKey;
use App\Models\Degree;
use App\Models\Image;
use App\Models\User;
class AuthController extends Controlle... |
<?php
namespace Ddd\Domain\Message\Command;
use Ddd\Domain\Entity\Book;
class UpdateBook
{
private Book $book;
public function __construct(Book $book)
{
$this->book = $book;
}
public function getBook(): Book
{
return $this->book;
}
} |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace ... |
<?php
use Anomaly\Streams\Platform\Database\Migration\Migration;
class VisiosoftModuleLocationCreateCountriesStream extends Migration
{
/**
* The stream definition.
*
* @var array
*/
protected $stream = [
'slug' => 'countries',
'title_column' => 'name',
'translat... |
<?php
declare(strict_types=1);
namespace Bolt;
use ComposerPackages\Packages;
/**
* Bolt's current version.
*
* @author Carson Full <carsonfull@gmail.com>
*/
final class Version
{
/**
* Bolt's version constant.
*
* This should take the form of:
* x.y.z [[alpha|beta|RC|patch] n]
*
... |
<?php
namespace app\index\controller;
use app\index\controller\Common;
class Tag extends Common {
/**
* 标签详情页
* @author 杨栋森 mutoe@foxmail.com at 2017-04-04
*/
public function read($id) {
//
$tag = model('Tag');
// 分享 排序
$order = $this->constructSortAttr(input('g... |
<?php
namespace Shopsys\FrameworkBundle\Model\Pricing\Currency\Exception;
use Exception;
class DeletingNotAllowedToDeleteCurrencyException extends Exception implements CurrencyException
{
/**
* @param string $message
* @param \Exception|null $previous
*/
public function __construct($message = ... |
<?php
$currDir = dirname(__FILE__);
require("{$currDir}/incCommon.php");
$GLOBALS['page_title'] = $Translation['app documentation'];
include("{$currDir}/incHeader.php");
$app_title = 'Online Clinic Management System';
?>
<div class="page-header"><h1><?php echo $app_title . ' ' . $Translation['app documentation']... |
<?php
namespace Account\Controller;
use Think\Controller;
class IndexController extends CommonController {
public function _initialize() {
parent::_initialize();
}
public function index() {
if (!$this->accountObj->isLogin()) {
urlRedirect(U('Home/login/index'));
exit... |
<?php
declare(strict_types=1);
namespace WoohooLabs\Larva\Connection;
use DomainException;
use function count;
use function in_array;
use function is_array;
use function random_int;
class ConnectionFactory
{
private array $config;
public static function createFromFile(string $path): ConnectionFactory
... |
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019-07-24
* Time: 10:28
*/
namespace app\common\model;
use think\Model;
class Oplog extends Model
{
/**添加日志
* @param $log
* @return bool
*/
public function add($log)
{
return Oplog::allowField(true)->save($log);
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class DescripcionDomicilio extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
$path = 'app/devel... |
@extends('admin.layouts.app')
@section('title')
<title>Create details car</title>
@endsection
@section('content')
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0"> Car details</h1>
... |
<?php
include 'db.php';
include 'validate.php';
if (!isset($_GET['pwd'])) { exit(); }
if ($_GET['pwd'] != "HardCodedToChange") { exit(); }
try {
//$id = getIdFromToken($db);
$stmt = $db->prepare("SELECT attacker_id,SUM(upgrades.gpu) as tot_gpu FROM botnet JOIN upgrades ON botnet.defense_id = upgrades.id GROUP ... |
<?php
require_once 'view/includes/head.php';
$param = explode('/', $url);
// switch($url)
// {
// case 'home':
// include_once 'view/home.php';
// break;
// case 'devocional':
// include_once 'view/devocional/listar.php';
// break;
// case "devocional/criar":
// Us... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Auth;
class UserAcademicPath extends Model
{
//
protected $table = 'user_academic_paths';
protected $fillable = ['UserId','InstitutionName','InstitutionImg','Qualification','Activities'];
static public function AddAcademicPath($request... |
@extends('layouts.admin')
@section('title')
Edit Model
@endsection
@section('page_heading')
Edit Model
@endsection
@section('content')
@include('admin.shared.error_messages')
{{Form::model($fuelType, ['route' => ['admin.fuelTypes.update', $fuelType->id], 'method' => 'patch'])}}
@include('admin.fuelType... |
<?php
Route::get('/admin/login', 'Admin\AuthController@login')->name('admin.login');
Route::post('/admin/login', 'Admin\AuthController@authenticate')->name('admin.authenticate');
Route::group(['prefix' => 'admin', 'namespace' => 'Admin', 'middleware' => ['web', 'admin']], function(){
Route::get('/', 'AdminControl... |
<?php
namespace App\Models\Traits;
trait FindByPhone
{
/**
* @param $phone
*
* @return mixed
*/
public static function findByPhone($phone)
{
return self::findByColumn('phone', $phone)->first();
}
} |
<!doctype html>
<html lang="en">
<head>
<!--inc dec button -->
<style>
input,
textarea {
border: 1px solid #eeeeee;
box-sizing: border-box;
margin: 0;
outline: none;
padding: 10px;
}
input[type="button"] {
-webkit-appearance: button;
cursor: pointer;
}
input::-webkit-outer-spin-button,
i... |
@extends('layout.main')
@section('content')
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class=... |
<?php
namespace Igorsgm\LaravelApiResponses\Macros;
use Igorsgm\LaravelApiResponses\ResponseMacroInterface;
use Illuminate\Http\JsonResponse;
use Illuminate\Routing\ResponseFactory;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
use Throwable... |
<?php
namespace PicturePark\API\Normalizer;
use Jane\Component\JsonSchemaRuntime\Reference;
use PicturePark\API\Runtime\Normalizer\CheckArray;
use Symfony\Component\Serializer\Exception\InvalidArgumentException;
use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface;
use Symfony\Component\Serializer\N... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="<?= base_url('assets/guru/') ?>img/logo.PNG">
<title>Guru MTs Bima Bhakti Pertiwi</title>
<!-- Google Font: Source Sans Pro -->
<link rel="stylesheet" h... |
<div class="col-lg-3 col-sm-6">
<div class="caseta minimize" >
<div class="minimize-caseta">+</div>
<div class="caseta-titlu"><?php echo lang('invoices_pay'); ?></div>
<form id="form-calc2" action="calculator/pay_invoice" method="post">
<div class="radio-container1 depeCard" style="width:50%; ">
<div cla... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateRoleUserTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('role_user', fu... |
<?php
namespace Laravel\Nova;
use BadMethodCallException;
use Illuminate\Http\Request;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Route;
use Illum... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class LotteryYield extends Model
{
protected $table = "lottery_yield";
public function stock_contains() {
return $this->belongsTo("App\StockHeader");
}
} |
@include('admin.sidebar');
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
slider List
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Ho... |
<?php
namespace Zenstruck\Messenger\Test\Tests;
use PHPUnit\Framework\AssertionFailedError;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpKernel\KernelInterface;
use Symfony\Component\Messenger\Envelope;
use Symfony\Compone... |
<?php /*a:1:{s:37:"../Theme/adminsys/userbank\index.html";i:1550187480;}*/ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.