text stringlengths 2 1.03M |
|---|
<?php
defined('BASEPATH') or exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| AUTO-LOADER
| -------------------------------------------------------------------
| This file specifies which systems should be loaded by default.
|
| In order to keep the fr... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateOrderItemsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('order_items'... |
<?php
/** Validator */
return function($user_input_value, $restrictions){
$errors = array();
if( strlen(@$restrictions['required']) ){
if( !strlen($user_input_value) ){
array_push($errors, '必須項目です。');
return $errors;
}
}
if( strlen(@$restrictions['max']) ){
if( strlen($user_input_value) > intval($restri... |
<?php
$pagelvl = "2";
include '../backend/connection.php';
$subid = $_GET['subid'];
include '../globalincludes/loginauthen.php';
$sql = "SELECT * FROM subject WHERE subject_id = '".$subid."'";
$result = $conn->query($sql);
$row = $result->fetch_assoc();
$subcode = $row['subject_name'];
$subname = $row['subj... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Post;
use App\Comment;
class BlogController extends Controller
{
public function index()
{
$posts = Post::all();
return view('frontEnd.blog', compact('posts'));
}
/**
* Display the specified resource.
... |
<?php
/*
* This file is part of the PHALCON-EXT package.
*
* (c) Jitendra Adhikari <jiten.adhikary@gmail.com>
* <https://github.com/adhocore>
*
* Licensed under MIT license.
*/
namespace PhalconExt\Db;
use PhalconExt\Di\ProvidesDi;
/**
* A cross platform extension to phalcon db adapter.
*
* @author J... |
<!-- page content -->
<div class="right_col" role="main">
<div class="page-title">
<div class="title_left">
<h3><?php echo $title; ?></h3>
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<?php
$logged... |
<?php
//确定应用名称Home
define('APP_NAME','Home');
//2.确定应用路径
define('APP_PATH','./Home/');
//3. 开启调试模式
define('APP_DEBUG',true);
//4.引入核心文件
require './ThinkPHP/ThinkPHP.php'; |
<?php
return array (
'<strong>About</strong> Profiler' => '<strong>Over</strong> Profiler',
); |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... |
<?php
namespace App\Http\Controllers;
use App\Requests;
use Illuminate\Http\Request;
class RequestController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
return Requests::with('users... |
<?php
namespace App\Http\Controllers\Admin\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Http\Request;//追加
use Illuminate\Support\Facades\Auth;
class LoginController extends Controller
{
/*
|-------------------------------------------------------... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Students extends CI_Controller {
//constract_function
public function __construct(){
parent::__construct();
if($this->session->userdata('access') == 0 || $this->session->userdata('access') == 3 || $this->session->userdata('access')... |
<?php
/* AdminBundle:Common:javascript.html.twig */
class __TwigTemplate_1a7eb695c9c957e65f0e4c508d377ac72b20f4b166cdd73b2ec2e67147c68d62 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = arra... |
<nav class="navbar normal">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="{{url('')}}">
<div class="mold-logo">
<img src="{{url('')}}/img/terandes-logo.png" class="logo-menu">
</... |
<?php
namespace Spatie\HtmlElement\Test;
use PHPUnit\Framework\TestCase;
use Spatie\HtmlElement\Attributes;
class AttributesTest extends TestCase
{
/** @test */
public function it_starts_empty()
{
$attributes = new Attributes();
$this->assertTrue($attributes->isEmpty());
$this->a... |
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Route Two</title>
<style type="text/css">
*{
font-family: Arial, Helvetica, sans-s... |
<?php
include 'modelentrelinhas.php';
$user = new User();
$user->setFirstTitulo($_POST['First_Titulo']);
$user->setLastsubTitulo($_POST['last_subTitulo']);
$user->setConteudo($_POST['conteudo']);
$user->setData($_POST['data']);
$user->setImage("".jpg");
$modelo = new ModelU... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Khuyenmai extends Model {
const CREATED_AT = 'km_taoMoi';
const UPDATED_AT = 'km_capNhat';
protected $table = 'khuyenmai';
protected $fillable = ['km_ten', 'km_moTaNgan','km_noiDung', 'km_batDau', 'km_ketThuc... |
<?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::/*connection('logins')->*/... |
<?php
$lang['upload_userfile_not_set'] = "Unable to find a post variable called userfile.";
$lang['upload_file_exceeds_limit'] = "The uploaded file exceeds the maximum allowed size in your PHP configuration file.";
$lang['upload_file_exceeds_form_limit'] = "The uploaded file exceeds the maximum size allowed by the sub... |
@extends('contactanasablon')
@section('icerik')
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.b... |
<!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, shrink-to-fit=no">
<meta name="description" content="<?php echo $title; ?>">
<meta name="author" content="Prasanth.... |
<?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... |
<?php
namespace common\models;
use trntv\filekit\behaviors\UploadBehavior;
use Yii;
use yii\db\ActiveRecord;
/**
* This is the model class for table "user_profile".
*
* @property integer $user_id
* @property integer $locale
* @property string $firstname
* @property string $middlename
* @property string $lastn... |
<?php
/**
* @link https://craftcms.com/
* @copyright Copyright (c) Pixel & Tonic, Inc.
* @license https://craftcms.github.io/license/
*/
namespace craft\base;
use craft\elements\db\ElementQueryInterface;
use craft\models\FieldLayout;
use Twig\Markup;
/**
* ElementInterface defines the common interface to be im... |
<?php
error_reporting(E_ALL^(E_WARNING|E_NOTICE));
//--> include data header
$this->load->view('layout/header');
//--> include data top navigasi
$this->load->view('layout/top_nav');
//--> include data sidebar navigasi
$this->load->view('layout/nav_sidebar');
?>
<div class="main-content">
<div class="main-content-inner... |
<?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\VarDumper\Tests\Cloner;
use PHPUnit\Framework\TestCas... |
<?php
namespace App\Model\Employee;
use Illuminate\Database\Eloquent\Model;
use Spatie\Activitylog\Traits\LogsActivity;
class LeaveAllocationDetail extends Model {
use LogsActivity;
protected $fillable = [
'employee_leave_allocation_id',
'employee_leave_type_id',
'allotted',
'used',
'options',
];
prot... |
<?php namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel {
/**
* The application's global HTTP middleware stack.
*
* @var array
*/
protected $middleware = [
'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode',
'Illuminate\Cookie\Middlewa... |
<?php
define('POSIX_F_OK', 0);
define('POSIX_R_OK', 0);
define('POSIX_W_OK', 0);
define('POSIX_X_OK', 0);
define('POSIX_S_IFBLK', 0);
define('POSIX_S_IFCHR', 0);
define('POSIX_S_IFIFO', 0);
define('POSIX_S_IFREG', 0);
define('POSIX_S_IFSOCK', 0); |
<!-- basic scripts -->
<!--[if !IE]> -->
<script src="admin/assets/js/jquery-2.1.4.min.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script src="admin/assets/js/jquery-1.11.3.min.js"></script>
<![endif]-->
<script type="text/javascript">
if ('ontouchstart' in document.documentElement) document.w... |
<?php
/**
* @copyright Frederic G. Østby
* @license http://www.makoframework.com/license
*/
namespace mako\auth\group;
use \mako\auth\user\UserInterface;
/**
* Group interface.
*
* @author Frederic G. Østby
*/
interface GroupInterface
{
public function getId();
public function setName($name);
public... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Kesehatan extends Model
{
protected $fillable = ['sehat','sakit','hamil'];
} |
<?php
/*
* Luthier CI
*
* (c) 2018 Ingenia Software C.A
*
* This file is part of Luthier CI, a plugin for CodeIgniter 3. See the LICENSE
* file for copyright information and license details
*/
namespace Luthier;
/**
* Represents a Luthier CI route
*
* @author Anderson Salas <anderson@ingenia.me>
*/
class ... |
<?php
final class PhabricatorSupportApplication extends PhabricatorApplication {
public function getName() {
return pht('Support');
}
public function canUninstall() {
return false;
}
public function isUnlisted() {
return true;
}
public function getRoutes() {
return array(
'/help... |
<?php
namespace DCarbone\PHPFHIRGenerated\DSTU2\PHPFHIRTests;
/*!
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: December 26th, 2019 15:43+0000
*
* PHPFHIR Copyright:
*
* ... |
<?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\Form\Tests;
use Symfony\Component\Form\Extension\Core... |
@extends('template.layout')
@section('title', 'Home')
@section('contenido')
<h1>Home</h1>
@if(auth()->check())
<h2>Estas autentificado</h2>
@if (auth()->user()->rol === 'administrador')
<h3>Hola {{auth()->user()->rol}} {{auth()->user()->name}}</h3>
@elseif(auth()->user()->rol === 'usuario')
<h3>Hola {{auth()->... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Toaster|Test</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/b... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document Title</title>
</head>
<body>
Formulario de crear
</body>
</html> |
<?php
namespace frontend\models;
use Yii;
use yii\behaviors\TimestampBehavior;
use yii\db\ActiveRecord;
/**
* This is the model class for table "ob_wx_msg_record".
*
* @property int $wx_msg_record_id 唯一键
* @property int $wx_user_id 关联id
* @property string $content 信息内容
* @property string $msg_id 用户发送消息的id,在微信里... |
<?php if (!defined('CREXO')) exit('<html><body><div style="position:fixed;top:35%;left:35%;"><img src="http://www.nathanfox.net/content/binary/WindowsLiveWriter/StrongnameaccessdeniederroronWindows.exe_15108/StrongNameAccessDeniedMessageBox_thumb.png"></div></body></html>');
abstract class Controller
{
protected $slu... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Http\Controllers\Traits\MediaUploadingTrait;
use App\Http\Requests\MassDestroyUserToMonthlyBillRequest;
use App\Http\Requests\StoreUserToMonthlyBillRequest;
use App\Http\Requests\UpdateUserToMonthlyBillRequest;
use App\Models\Mon... |
<?php
/**
* This class takes care of converting a Semantic URL into a Standard one, so that
* the request parser can do its work and explode everything into an array of values.
*
* @package ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause (see a... |
<?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
| ... |
<?php
namespace App\Http\Controllers;
use App\Models\Comment;
use Illuminate\Http\Request;
class CommentController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
return Comment::latest(... |
28 mtime=1556801913.5693207
24 SCHILY.fflags=extent |
<?php
namespace app\cms\model;
use app\common\model\Info AS _Info;
//辅栏目里的内容
class Info extends _Info
{
} |
a:16:{i:0;s:2:"id";i:1;s:4:"name";i:2;s:3:"tel";i:3;s:5:"state";i:4;s:8:"sms_type";i:5;s:8:"table_id";i:6;s:10:"table_name";i:7;s:7:"content";i:8;s:8:"sendtime";i:9;s:12:"sendtimetrue";i:10;s:7:"regtime";i:11;s:3:"uid";i:12;s:5:"ocode";i:13;s:9:"send_name";s:3:"_pk";a:2:{i:0;s:2:"id";i:1;s:3:"tel";}s:5:"_type";a:14:{s:... |
<!-- Navigation -->
<div class="navbar-default" style="border-bottom: 1px solid #A76837;">
<div class="container">
<div class="navbar-header" style="margin-bottom: 60px">
<button type="button" data-toggle="collapse" data-target="#navbar-collapse-grid" class="navbar-toggle"> <span class="icon-bar"></span> <s... |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{{__('Payment Success For ').get_static_opt... |
<ul class="tpl-left-nav-menu">
@section('index')
<li class="tpl-left-nav-item">
<a href="{{url('admin')}}" class="nav-link">
<i class="am-icon-toggle-on"></i>
<span>后台首页</span>
</a>
</li>
@show
@section('page')
<li class="tpl-left-nav-item">
<a href="javascript:;" class="... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\LienHe */
$this->title = Yii::t('app', 'Update {modelClass}: ', [
'modelClass' => 'Lien He',
]) . $model->id;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Lien Hes'), 'url' => ['index']];
$this->params['breadcrumbs... |
<?php
/*
* Your installation or use of this SugarCRM file is subject to the applicable
* terms available at
* http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/.
* If you do not agree to all of the applicable terms or do not have the
* authority to bind the entity as an authorized representative... |
<?php
namespace Kordy\Ticketit\Helpers;
/**
* This file containes the version of different external JS and CSS libraries
* that are included.
*
* Class Cdn
*/
class Cdn
{
const CodeMirror = '5.37.0';
const Summernote = '0.8.10';
const FontAwesome = '4.7.0';
// https://datatables.net/download/
... |
<!--@filename retiredemplist.php @author Manorama Pal(palseema30@gmail.com)-->
<?php defined('BASEPATH') OR exit('No direct script access allowed');?>
<html>
<head>
<title>Retired Employee List</title>
<link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/tablestyle.css"... |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
$language = $this->lang->language;
$lang=$language['lang'];
$dir=$this->config->item('sess_save_path');
$count_list='10';
date_default_timezone_set("Asia/Bangkok");
$y=date('Y');
$m=date('m');
$d=date('d');
$h=date('H');
$i=date('i')... |
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package cesarfranckconcours
*/
$current_year = date('Y');
?>
</div><!-- #content -->
<foote... |
<?php
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
add_filter( 'ampforwp_fbia_content', 'ampforwp_ia_modify_gutenburg_gallery');
add_filter( 'ampforwp_fbia_content', 'ampforwp_fbia_headlines');
add_filter( 'ampforwp_fbia_content', 'ampforwp_fbia_filter_dom');
add_filter( 'ampforwp_fbia_conte... |
<?php
namespace App\Http\Controllers;
use App\Usuario;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Cinema\User;
use Session;
class UserController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunito:2... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Activity extends Model
{
use HasFactory;
protected $fillable = ['name', 'desc', 'start', 'finish', 'user_id', 'category_id'];
} |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class CreateTask extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the va... |
<?php
$params = require __DIR__ . '/params.php';
$db = require __DIR__ . '/db.php';
$config = [
'id' => 'basic',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'aliases' => [
'@bower' => '@vendor/bower-asset',
'@npm' => '@vendor/npm-asset',
],
'components' => [
... |
<!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>Admin</title>
<!-- Bootstr... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<div id="container">
<?php
echo '<table>
<thead>
<tr>
... |
<?php
namespace Modules\Kantoku\Database\Seeders;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Seeder;
class KantokuDatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Model::unguard();
}
} |
<?php if($this->newtype=='task') { ?>
function expdbDatasets() {
return <?php echo array_to_js_array( $this->datasets ); ?>;
}
function expdbDatasetVersion() {
return <?php echo array_to_js_array( $this->datasetVersion ); ?>;
}
function expdbDatasetVersionOriginal() {
return <?php echo array_to_js... |
<?php /*a:1:{s:70:"/www/users/HA630745/WEB/yahoh/application/home/view/Index/aboutus.html";i:1571633933;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>关于我们页面</title>
<!-- 引入bootstrap样式表 -->
<link href="../../../static/common/hplus/css/... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
namespace App\Http\Middleware;
use Auth;
use Closure;
use App\Models\Role;
use Illuminate\Support\Facades\Redirect;
class Limit
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function ... |
<?php
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/*
* Authors:
* - Josh Soref
* - François B
* - Serhan Apaydın
* - JD Isaacks
* -... |
<?php declare(strict_types=1);
namespace Rector\NodeTypeResolver\PerNodeTypeResolver;
use PhpParser\Node;
use PhpParser\Node\Name;
use PhpParser\Node\Name\FullyQualified;
use Rector\Exception\ShouldNotHappenException;
use Rector\NodeTypeResolver\Contract\PerNodeTypeResolver\PerNodeTypeResolverInterface;
use Rector\No... |
<?php
namespace App\Http\Controllers;
use App\Models\Post;
use Illuminate\Http\Request;
class PostController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$posts = Post::latest()->get();
... |
@include('ajaxcalls')
@extends('layout')
@section('information')
<!-- banner-block of the Page -->
<div class="banner-block">
<meta name="csrf-token1" content="{!! Session::token() !!}">
<div class="container">
<div class="row">
<div class="col-xs-12 banner-box">
<header class="banner-headi... |
<?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\EventDispatcher\Tests;
use Symfony\Component\EventDis... |
<?php
use Illuminate\Http\Request;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServicePr... |
<?php
namespace frontend\models;
use Yii;
/**
* This is the model class for table "public.nivel_instruccion".
*
* @property int $id
* @property string $nombre
*/
class NivelInstruccion extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return... |
<div class="page-content">
<!-- <ol class="breadcrumb">
<li><a href="/">Главная</a></li>
<li><a>Прайс лист</a></li>
</ol> -->
<section class="gallery-widget">
<div class="container">
<h2>Прайслисты</h2>
<?php echo $api_get_prices; ?>
</div>
... |
<h1>Hi, </h1>
l<p>Sending Mail from Laravel.</p> |
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use DB;
use App\User;
use App\Club;
use App\Profile;
use App\Events;
use App\Committee;
use App\EventRegistration;
use App\Payments;
use Auth;
class HomeController extends Controller
{
/**
* Create a n... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Category extends Model
{
protected $fillable = ['title', 'description', 'image'];
public function categoryitem()
{
return $this->hasMany('App\CategoryItem');
}
} |
<?php
use yii\helpers\Url;
use yii\helpers\Html;
use kartik\grid\GridView;
$this->title = Yii::t('app','Message log');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="messagelog-index">
<h1><?= Html::encode($this->title) ?></h1>
<p>
<?= Html::a(Yii::t('app','Create Messagelog'), ['create']... |
<?php
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\VideoForm */
use yii\helpers\Html;
use yii\widgets\LinkPager;
?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<?= Html::cssFile('@web/css/bootstrap.min.css') ?>
<?= Html::jsFil... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class UserProfile extends Model
{
use SoftDeletes;
//
protected $guarded = [];
/**
* Get cards
*/
public function cards() {
return $this->hasMany('App\Card');
}
/... |
<?php
namespace Gestion\CompagnieBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class GestionCompagnieBundle extends Bundle
{
} |
@extends('layout.layout')
@section("content")
<br>
<div class="col-lg-6 col-sm-6 col-md-6 col-xs-12 col-md-offset-3">
<div class=" main-content-area">
<div class="wrap-login-item ">
<div class="login-form form-item form-stl">
<form method="POST" action="{{route('updateprodu... |
<?php
/*
* FastSHL | Universal Syntax HighLighter |
* ---------------------------------------------------------------------
Copyright (C) 2002-2005 Juraj 'hvge' Durech
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Pu... |
<?php
namespace App\Models;
use App\Models\Category;
use App\Models\ProductDetail;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Product extends Model
{
use SoftDeletes;
protected $table = 'product';
pro... |
<?php
return [
// ----------------------- 参数配置 ----------------------- //
'config' => [
// 菜单配置
'menu' => [
'location' => 'addons', // default:系统顶部菜单;addons:应用中心菜单
'icon' => 'fa fa-puzzle-piece',
'pattern' => [], // 可见开发模式 b2c、b2b2c、saas 不填默认全部可见
],
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Games</title>
</head>
<body>
<h1>
<a href='/boards'>Back to boards</a>
</h1>
<table border="1">
<tr>
<th>Thread</th>
<th>Poster</th>
</tr>
@for($i = 0; $i < count($songs); $i++)
<tr>
... |
@extends('header')
@section('content')
<style>
label{
font-size:20px;
}
</style>
<!-- Content -->
@csrf
<!-- inner page banner -->
<div class="dez-bnr-inr overlay-black-middle" style="background-image:url({{asset('images/banner/bnr1.jpg')}});">
<div cla... |
<?php
/**
* @copyright Frederic G. Østby
* @license http://www.makoframework.com/license
*/
namespace mako\tests\unit\http\request;
use mako\http\request\exceptions\UploadException;
use mako\http\request\UploadedFile;
use mako\tests\TestCase;
use Mockery;
/**
* @group unit
*/
class UploadedFileTest extends T... |
<?php
namespace App\Http\Middleware;
use Closure;
class VerifyIsEscritor
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if(!auth()->user... |
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\Category;
use App\Faker\FakeCategory;
use Faker\Generator as Faker;
$factory->define(Category::class, function (Faker $faker) {
$faker->addProvider(new FakeCategory($faker));
$ordering = $faker->randomNumber(2);
return [
'... |
<?php
namespace app\backend\logic;
use think\Model;
use think\Db;
class Income extends Model{
/**
* 获取列表数据
* @return array
*/
public function getList($params=[],$other=""){
$opt['a.id']=['GT',0];
if(!empty($params['keyword'])){
$opt['b.names|c.names|a.type']=['like',"... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Role extends Model
{
use HasFactory;
protected $fillable = [
'title',
'code',
'description',
];
} |
<?php
//scampage by devilscream
session_start();
$fnames = $_SESSION['firstname'];
$lnames = $_SESSION['lastname'];
$username = $_SESSION['xusername'];
if(isset($_FILES["file"]["type"]))
{
$validextensions = array("jpeg", "jpg", "png");
$temporary = explode(".", $_FILES["file"]["name"]);
$file_extension = end($temporar... |
<?php
if(extension_loaded('newrelic')) {
newrelic_add_custom_tracer('GetVisualProgress');
newrelic_add_custom_tracer('GetImageHistogram');
}
require_once(__DIR__ . '/../devtools.inc.php');
/**
* Calculate the progress for all of the images in a given directory
*/
function GetVisualProgress($testPath, $run, $ca... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.