text stringlengths 2 1.03M |
|---|
<?php
include "../count.php";
header("Access-Control-Allow-Origin: *");
$url = @$_GET['url'];
if (strstr($url,"pipix.com")) {
//获取301跳转真实地址
function getrealurl($url){ $header = get_headers($url,1);
if (strpos($header[0],'301') || strpos($header[0],'302'))
{if(is_array($header['Location'])) {return $header['Location'... |
<?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
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... |
<?php
/**
* 文章相关函数
* @author Seaton Jiang <seaton@vtrois.com>
* @license MIT License
* @version 2020.12.02
*/
// 文章链接添加 target 和 rel
function imgnofollow($content)
{
$regexp = "<a\s[^>]*href=(\"??)([^\" >]*?)\\1[^>]*>";
if (preg_match_all("/$regexp/siU", $content, $matches, PREG_SET_ORDER)) {
if (... |
<?php
namespace App\Http\Controllers\Api\V1;
use App\CrmDocument;
use App\Http\Controllers\Controller;
use App\Http\Resources\CrmDocument as CrmDocumentResource;
use App\Http\Requests\Admin\StoreCrmDocumentsRequest;
use App\Http\Requests\Admin\UpdateCrmDocumentsRequest;
use Illuminate\Http\Request;
use Illuminate\Sup... |
<?php
namespace Wordrobe\Feature;
/**
* Interface DTOInterface
* @package Wordrobe\Feature
*/
interface DTOInterface
{
/**
* DTO getter
* @return mixed
*/
public function getData();
} |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Najomca extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->load->helper('form');
$this->load->library('form_validation');
$this->load->model('Najomca_model');
}
public function index(){
$data = ... |
<?php
declare(strict_types=1);
/**
* This file is part of beotie/core_bundle
*
* As each files provides by the CSCFA, this file is licensed
* under the MIT license.
*
* PHP version 7.1
*
* @category Test
* @package Beotie_Core_Bundle
* @author matthieu vallance <matthieu.vallance@cscfa.fr>
* @license MIT... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Environment
|--------------------------------------------------------------------------
|
| This value determines the "environment" your application is currently
| running in. This m... |
<!-- content start -->
<div class="admin-content">
<div class="am-cf am-padding">
<div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">内容管理</strong> / <small>新增</small></div>
</div>
<hr/>
<div class="am-g">
<div class="am-u-sm-12 am-u-md-4 am-u-md-push-8">
</div>
<div class="am-u-... |
<div id="kind-author" class="hide-if-js">
<h4> <?php _e( 'Information on the Author or Artist of the Piece', 'indieweb-post-kinds' ); ?></h4>
<?php _e( '(Multiple Entries separated by semicolon)', 'indieweb-post-kinds' ); ?><BR />
<p class="field-row">
<label for="cite_author_name" class="three-quarters">
<?php ... |
@extends('web.layouts.indexinner')
@section('title','TERMS OF USE')
@section('bannertitle','TERMS OF USE')
@section('content')
@include('web.layouts.banner')
<div class="col-md-12 col-sm-12 col-xs-12 contact">
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12 right_sidebar">
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class FileController extends Controller
{
public function countryList(){
return response()->download(public_path('avatar.png'), 'User Image');
}
public function countrySave(Request $request){
$file_name = 'user.png';
... |
<?php
// autoload_static.php @generated by Composer
namespace Composer\Autoload;
class ComposerStaticInit7e21e4569caf9445c914db86c90a1e51
{
public static $files = array (
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
'a4a119a56e50fbb293281d9a4800... |
<?php
namespace App\Providers;
use App\User;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
class ComposerServiceProvider extends ServiceProvider
{
/**
* Register services.
*
* @return void
*/
public function register()
{
//
}
/**
* ... |
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use App\Models\Platform;
class PlatformFactory extends Factory
{
protected $model = Platform::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{... |
<?php
namespace App\Http\Controllers\Main;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class QuestionController extends Controller
{
function storeTemp()
{
$questions=request()->validate([
'question'=>'required',
'point'=>'required',
'answer[*]... |
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email',... |
<?php
namespace Database\Seeders;
use Carbon\Carbon;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class WorkExperienceSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('work_experiences')->insert([... |
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper" style="background-color: #C0C0C0">
<!-- Content Header (Page header) -->
<section class="content-header" style="background-color: #C0C0C0">
<h1>
Data Kriteria
</h1>
</section>
<!-- Main content -->
<sect... |
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use T... |
@extends('layouts.app')
@section('title', 'Entrada de Mercancía')
@section('breadcrumb')
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item"><a href="{{ route('entries.index') }}">Entrada de Mercancía</a></li>
</ol>
@endsectio... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Trabajador extends Model
{
use H... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
class User extends Authenticatable
{
use HasFactory;
use Notifiable;
use HasApiTokens;
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Candidato extends Model
{
//
protected $fillable = [
'nombre', 'email', 'cv', 'vacante_id'
];
} |
<?php
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use Symfony\Component\DependencyInjection\Exception\LogicException;
use Symfony\Component\DependencyInjection\Exception\... |
<?php
/**
* 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; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will... |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework;
use Magento\TestFramework\Helper\Bootstrap;
/**
* Class TranslateCachingTest
* @package Magento\Framework
* @magentoAppIsolation enabled
*/
class TranslateCachingTest extends \PHPUn... |
<?php
namespace Kendo\UI;
class PivotGridExcel extends \Kendo\SerializableObject {
//>> Properties
/**
* Specifies the file name of the exported Excel file.
* @param string $value
* @return \Kendo\UI\PivotGridExcel
*/
public function fileName($value) {
return $this->setProperty('fileN... |
<?php
namespace App\Http\Controllers;
use App\Produit;
use App\Categorie;
use App\Lignecommande;
use Illuminate\Http\Request;
class CategorieController extends Controller
{
public function __construct(){
$this->middleware('auth');
}
public function index()
{
$categories = Catego... |
<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>CHI Bpanel</title>
<!-- Tell the ... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddStatusColumnAgentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('agents',... |
<?php
namespace App\Http\Controllers;
use App\Like;
use App\Post;
use App\Tag;
use Illuminate\Http\Request;
use App\Http\Requests;
use Illuminate\Session\Store;
class PostController extends Controller
{
public function getIndex()
{
$posts = Post::orderBy('created_at', 'desc')->get();
return ... |
<?php
namespace App\Database\Migrations;
use CodeIgniter\Database\Migration;
class CreateTableAddress extends Migration
{
public function up()
{
//
$this->forge->addField([
'id' => [
'type' => 'int',
'constraint' => 11,
'unsigned' => true,
'auto_increment' => true
],
... |
<?php
namespace backend\models;
use Yii;
/*
* ---------------------------------------
* 地址模型
* ---------------------------------------
*/
class Address extends \common\models\Address
{
//获取地址信息
public function getinfo()
{
$Info = Orderinfo::find()->asArray()->all();
return $I... |
<?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>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>AdminLTE 2 | Log in</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewpo... |
<?php
/**
* List of plugin optins, contains only default values, actual values are stored in database
* and can be changed by corresponding wordpress function calls
*/
$config = array(
"info_api_url" => "http://www.wpallimport.com",
"history_file_count" => 10000,
"history_file_age" => 365,
"highlight_limit" =... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class EmployeeEvaluationResult extends Model
{
use HasFactory;
protected $guarded = ['id'];
protected $cast = ['evaluation_ids'=> 'json'];
public function companyId(){
r... |
<?php header('Location: /wp/' . trim(parse_url($url, PHP_URL_PATH), '/') . "?" . http_build_query($_GET)); |
<?php
namespace Mockery\Generator;
/**
* This class describes the configuration of mocks and hides away some of the
* reflection implementation
*/
class MockConfiguration
{
protected static $mockCounter = 0;
/**
* A class that we'd like to mock
*/
protected $targetClass;
protected $targe... |
<?= $this->extend('admin/adminLayout/template_ubahBuku') ?>
<?= $this->section('konten') ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2... |
@extends('layouts.app')
@section('content')
</br>
<div class="row">
<div class="col-xs-12">
<div class="box">
<a href="{{route($model.'.create')}}" class="btn btn-primary">Agregar</a>
<div class="box-header">
<div class="box-name">
<i class="fa {{$icon}}"></i>
<span><strong>{{ucfirst($model... |
<?php
namespace AppBundle\Controller;
use AppBundle\Entity\Genus;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBund... |
<h2>{{$data['subject']}}</h2>
<h4>{{$data['message']}} </h4> |
@extends('layouts._app',['page'=>'setting'])
@section('breadcrumb')
<ul class="breadcrumb">
<li><a href="#">Home</a></li>
<li class="active">Account Settings</li>
</ul>
@endsection
@section('content')
<div class="row">
<div class="col-md-12">
@if (Session::has('su... |
<?php
/**
* +----------------------------------------------------------------------
* 在区间内的查询
* +----------------------------------------------------------------------
* 官网:https://www.sw-x.cn
* +----------------------------------------------------------------------
* 作者:小黄牛 <1731223728@qq.com>
* +--------------... |
<?php
namespace App\Http\Controllers;
use App\Http\Resources\ProductsResources;
use App\Http\Requests\ProductsRequest;
use App\Models\Categories;
use App\Models\Images;
use App\Models\Products;
use App\Models\subCat;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Redir... |
@extends('layout/common')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 content-wrapper">
<div class="posts">
@include('discounts.rec_list')
</div>
</div>
<div class="col-md-4">
... |
<?php
/**
* @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
* @copyright Metaways Infosystems GmbH, 2013
* @copyright Aimeos (aimeos.org), 2015-2018
* @package Controller
* @subpackage Jobs
*/
namespace Aimeos\Controller\Jobs\Index\Rebuild;
/**
* Rebuild catalog index job controller.
*
* @package... |
<?php
declare(strict_types=1);
namespace Bolt\Command;
use Bolt\Entity\User;
use Bolt\Repository\UserRepository;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\BufferedOutput;
use... |
<?php
namespace App\Http\Requests\Admin;
use Illuminate\Foundation\Http\FormRequest;
class GalleryRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* ... |
<?php
namespace Mobile\Controller;
use Think\Controller;
class CategoryController extends Controller {
public function index(){
$categoryInfo = M('category')->where('pid=0')->select();
//第一楼
$one=$this->getGoodsCateBycId(1);
$one1=$this->getGoodsCateBycId(2);
$one2=$this->ge... |
<?php
class Follow extends User{
protected $message;
public function __construct($pdo){
$this->pdo = $pdo;
//Added below code for PHP 7
$this->message = new Message($this->pdo);
}
public function checkFollow($followerID, $user_id){
$stmt = $this->pdo->prepare("SELECT * FROM `follow` WHER... |
<?php
declare(strict_types=1);
namespace Efabrica\PHPStanRules\Tests\Type\DynamicMethodReturnType\Source;
/**
* @method post()
* @method asdf()
*/
final class Qwerty
{
} |
<?php
// Copyright (c) 2014, Daiki Umeda (XJINE) - lightweightmarkuplanguage.com
// 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 must retain the above... |
<?php
namespace SmallRuralDog\Store\Models;
use Encore\Admin\Auth\Database\Administrator;
class StoreUser extends Administrator
{
public function store()
{
return $this->hasOne(Store::class, 'user_id');
}
} |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class ProductGallery extends Model
{
//
use SoftDeletes;
protected $fillable = [
'products_id','photo','is_default'
];
protected $hidden = [
];
public function product(){
... |
<?php
namespace common\models\cms;
use Yii;
use common\models\User;
use common\models\Store;
/**
* This is the model class for table "{{%cms_catalog}}".
*
* @property int $id
* @property int $store_id 商家
* @property int $parent_id 父节点
* @property string $name 标题
* @property string $code 代码
* @property int $i... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class PricingSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('pricings')->insert(
[
[
... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateMeasurementFormulasTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('measurement_formulas', function(Blueprint $table)
{
$table->eng... |
<!DOCTYPE html>
<!--[if lt IE 7]>
<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>
<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>
<html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js homepage"> <!--<![endif]-->
<head>
<meta http-equiv="content-type"... |
<?php include "includes/header.php"?>
<p>Copy/paste Galleries research</p>
</section>
<!-- END LEFT COL -->
<!-- START RIGHT COL -->
<aside>
<h3>Citations</h3>
<p>Linked Citations here</p>
</aside>
<!-- END RIGHT COL -->
<?php include "includes/foo... |
@extends('master')
@section('title')
错误页面
@stop
@section('content')
<div class="container main-success">
<div class="col-lg-12 success-info"><span class="position-bottom" style="display: block">这次作业还没有同学上交,暂时不能打包下载</span></div>
</div>
<script>
$(function(){
setTimeout(functio... |
<?php
namespace Usine\MachineBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Alert
*
* @ORM\Table(name="alert")
* @ORM\Entity(repositoryClass="Usine\MachineBundle\Repository\AlertRepository")
*/
class Alert
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
... |
<?php
include 'header.php';
$id = $_GET['id'];
$idj = $_GET['idj'];
$queryForm = "select * from people where id_people='$id'";
$dataForm = mysql_fetch_array(mysql_query($queryForm));
?>
<div id="wrapper">
<?php
include 'nav.php';
?>
<div id="page-wrapper">
<p style="font-siz... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddIsActiveToUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', fun... |
<?php
namespace App\Http\Requests\role;
use Illuminate\Foundation\Http\FormRequest;
class CreateRoleRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return auth()->user()->abilities(... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DB;
class flavavideoController extends Controller
{
public function flavavideo(){
$flavavideo = DB::table('videos')->where('Genre','=','Bongo Flavour')->orderBy('id','desc')->get();
return view('vitamin.flavavideo'... |
<x-app>
<div>
@include('_publish-tweet-panel')
@include('_timeline')
</div>
</x-app> |
<?php if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
class Clientes extends MY_Controller
{
/**
* author: Ramon Silva
* email: silva018-mg@yahoo.com.br
*
*/
public function __construct()
{
parent::__construct();
$this->load->model('clientes... |
<?php
use Phinx\Migration\AbstractMigration;
class AddedNewLabelForErrors extends AbstractMigration
{
public function up()
{
$this
->table('build_error')
->addColumn('hash', 'string', ['limit' => 32, 'default' => ''])
->addColumn('is_new', 'boolean', ['default' => ... |
<?php
/**
* Created by PhpStorm.
* User: alan.magdaleno
* Date: 08/01/18
* Time: 15:15
*/
namespace App;
use Illuminate\Database\Eloquent\Model;
class PackageLanguage extends Model
{
protected $table = 'package_language';
protected $primaryKey = 'package_language_id';
/**
* The attributes th... |
<?php
/**
* Tracy (http://tracy.nette.org)
*
* Copyright (c) 2004, 2014 David Grudl (http://davidgrudl.com)
*/
require __DIR__ . '/Tracy/IBarPanel.php';
require __DIR__ . '/Tracy/Bar.php';
require __DIR__ . '/Tracy/BlueScreen.php';
require __DIR__ . '/Tracy/DefaultBarPanel.php';
require __DIR__ . '/Tracy/Dumper.p... |
<?php
namespace HomeCEU\Tests\Api;
use PHPUnit\Framework\Assert;
class RenderTest extends ApiTestCase {
const ROUTE = '/api/v1/render';
protected function setUp(): void {
parent::setUp();
}
public function testTemplateNotFound(): void {
$templateKey = __FUNCTION__;
$dataKey = __FUNCTION__;
... |
<?php
if($this->session->flashdata('club_updated')){
echo '<div align="center">
<div class="alert alert-success alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
'.$this->session->flashdata('club_updated').'
</div>
</div>';
}
?>
... |
<?php
/**
* BSD 3-Clause License
*
* Copyright (c) 2019, TASoft Applications
* 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 must retain the above copy... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Product extends Model
{
//
protected $guarded = [];
//untuk find by nama di url nya
public function getRouteKeyName(){
return 'title';
}
} |
<?php
namespace WMS\Library\BusinessRulesEngine\Dumper;
use WMS\Library\BusinessRulesEngine\RuleCollection;
/**
* RuleCollectionDumperInterface is the interface that all rule collection dumper classes must implement.
* @author Andrew Moore <me@andrewmoore.ca>
*/
interface RuleCollectionDumperInterface
{
/**
... |
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
class CreateUserRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation r... |
<?php
/**
* Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
* CC-BY License - http://creativecommons.org/licenses/by/3.0/
*/
require_once( BX_DIRECTORY_PATH_INC . 'db.inc.php' );
require_once('BxDolCron.php');
class BxDolCronNotifies extends BxDolCron
{
function processing()
{
global $sit... |
<?php
namespace AppBundle\Controller;
use AppBundle\Entity\User;
use AppBundle\Entity\Film;
use AppBundle\Form\UserType;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
class CatalogueController extends... |
<?php
/**
* @package Joomla.Site
* @subpackage com_config
*
* @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
JHtml::_('bootstrap.tooltip');
JHtml::_('behavior.fo... |
<?php
/**
* Copyright 2010 SURFnet B.V.
*
* 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 a... |
<div class="box_header common_table_header">
<div class="main-title d-md-flex">
<h3 class="mb-0 mr-30 mb_xs_15px mb_sm_20px">{{ __('product.edit_attribute') }}</h3>
</div>
</div>
<form action="" method="POST" id="attributeEditForm">
<div class="white_box_50px box_shadow_white mb-20">
<div cl... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Instituicao extends Model
{
use SoftDeletes;
protected $dates = ['deleted_at'];
protected $fillable = [
'nome', 'estoque_id', 'modalidade_ensino', 'rota', 'periodo_atendimento', 'qtde_alunos',... |
<?php
/**
* Copyright (C) 2015 Derek J. Lambert
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, me... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
class Schedule extends Model
{
protected $table = 'schedules';
public $timestamps = false;
protected $fillable = ['day', 'class_i... |
@extends('dashboard.layout')
@section('page title','Recipe')
@section('content')
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-lg">
<div class="card card-primary card-outline">
<div class="row">
... |
<?php
// check current php version to ensure it meets 2300's requirements
function check_php_version()
{
if (version_compare(phpversion(), '7.0', '<')) {
define('VERSION_MESSAGE', "PHP version 7.0 or higher is required for 2300. Make sure you have installed PHP 7 on your computer and have set the correct PHP path... |
<?php
return [
'class' => 'yii\db\Connection',
'dsn' => 'pgsql:host=10.12.0.171;dbname=gestion_iems',
'username' => 'kylix',
'password' => '2020kylix',
'charset' => 'utf8',
]; |
<?php
namespace App\Http\Controllers\Backend;
use App\Http\Controllers\Controller;
use App\Models\Order;
use App\Models\Revenue;
use App\Models\Statistic;
use Carbon\Carbon;
use Illuminate\Http\Request;
class StatisticalController extends Controller
{
public function index(){
return view('backend.statist... |
<?php
return [
'address' => 'Dirección',
'account' => 'Cuenta',
'account_number' => 'Número de Cuenta',
'expenses' => 'Gastos/pagos',
'expense' => 'Gasto/pago',
'expense_detail' => 'Detalles de gasto/pato bancario',
'expense_responsible' => 'Responsable de la cuenta',
'expense_type' =>... |
<?hh // partial
/**
* ( excerpt from
* http://php.net/manual/en/class.reflectionfunctionabstract.php )
*
* A parent class to ReflectionFunction and ParentMethod. Read their
* descriptions for details.
*/
<<__NativeData('ReflectionFuncHandle')>>
abstract class ReflectionFunctionAbstract implements Reflector {
... |
<?php
/**
* Project: IT Instructor Evaluations
* File: EvaluationController.php
* Authors: James Staab and Craig Koch
* Date: 04/20/2016
*
* This is the model for create editTest page
*/
class EditTestModel
{
private $router;
function __construct($router)
{
$this->router = $router;
}
} |
<!-- website header -->
@include('layouts.website.header')
<!-- website header ends -->
<section class="hero-section">
<div class="row m-0 p-0">
<!-- sidebar slider section starts here -->
<div class="col-md-2 m-0 p-0 bg-main-primary hero-sidebar rounded-bottom-right mb-5">
<div class="... |
<?php
namespace ExtbaseTeam\BlogExample\Domain\Repository;
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright a... |
<?php
/**
* This file is used to register Event Listeners
*
* @since Version 0.2
* @author Kosmo
**/
/**
* This catches created order event
* - adds a Tag on the order if the product is ordered first time
**/
Order::creating(function($order) {
$product_id = $order->product_id;
if (!Order::where("product_id... |
<?php
namespace App\Models;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
class User extends Authenticatable
{
use HasApiToken... |
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\Model;
use Faker\Generator as Faker;
use \App\Models\{Review, Clinic};
$factory->define(Review::class, function (Faker $faker) {
$name = $faker->name();
$email = $faker->email;
$r_preview_text = $faker->numberBetween($min = 150, $ma... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.