text stringlengths 2 1.03M |
|---|
<?php
/***************************************************************************
* *
* (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev *
* *
* ... |
<?php
namespace App\Http\Controllers;
use App\Models\About;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View;
use Illuminate\Http\Request;
class AboutController extends Controller
{
/**
* Display a listing of the resource.
*
... |
<?php
namespace Modules\Iprofile\Repositories\Cache;
use Modules\Iprofile\Repositories\RoleApiRepository;
use Modules\Core\Repositories\Cache\BaseCacheDecorator;
class CacheRoleApiDecorator extends BaseCacheDecorator implements RoleApiRepository
{
public function __construct(RoleApiRepository $roleapi)
{
... |
<?php
namespace InepZend\Module\Corporative\Entity;
use Doctrine\ORM\Mapping as ORM;
use InepZend\Entity\Entity;
use InepZend\Util\Date;
/**
* AgenciaBancaria
*
* @ORM\Table(name="CORP.TC_AGENCIA_BANCARIA")
* @ORM\Entity(repositoryClass="InepZend\Module\Corporative\Entity\AgenciaBancariaRepository")
*/
class Ag... |
<?php
/*
* This file is part of the DataGridBundle.
*
* (c) Abhoryo <abhoryo@free.fr>
* (c) Stanislav Turza
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace APY\DataGridBundle\Grid\Column;
use Symfony\Component\Form\Ex... |
<?php
//------------------------------------------------------//
// FUNCTIONS //
//------------------------------------------------------//
//------------------------------------------------------//
function get_app_data($val)
//---------------------------------------... |
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title><?php echo SYSTEMNAME;?></title>
<link rel='stylesheet prefetch' href=<?php echo base_url('media/css/font-awesome-4.7.0/css/font-awesome.min.css')?>>
<link rel="stylesheet" href=<?php echo base_url("media/css/log_style1.css")?>>
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class FontController extends Controller
{
public function index(){
return view('frontView.home.homeContent');
}
} |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class RenameParentId extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('categories', functio... |
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for the application.
*
* @var array
*/
protected $policies ... |
<?php
/**
* System messages translation for CodeIgniter(tm)
*
* @author CodeIgniter community
* @copyright Copyright (c) 2014 - 2017, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://opensource.org/licenses/MIT MIT License
* @link https://codeigniter.com
*/
defined('BASEPATH') OR exit... |
<?php declare(strict_types = 1);
namespace SlevomatCodingStandard\Sniffs\TypeHints;
use PHP_CodeSniffer\Files\File;
use PHP_CodeSniffer\Sniffs\Sniff;
use SlevomatCodingStandard\Helpers\SniffSettingsHelper;
use SlevomatCodingStandard\Helpers\TokenHelper;
use const T_DECLARE;
use const T_LNUMBER;
use const T_OPEN_TAG;
... |
<?php
namespace Icecave\Chrono\Iterator;
use Icecave\Chrono\Date;
use Icecave\Chrono\Interval\Interval;
use Icecave\Chrono\Interval\Year;
use PHPUnit\Framework\TestCase;
class YearIntervalIteratorTest extends TestCase
{
public function setUp(): void
{
$this->startTime = new Date(2010, 12, 25);
... |
--TEST--
Test date_sun_info() function : usage variations - Pass unexpected values for longitude argument
--FILE--
<?php
/* Prototype : array date_sun_info ( int $time , float $latitude , float $longitude )
* Description: Returns an array with information about sunset/sunrise and twilight begin/end.
* Source code: ... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Pages extends CI_Controller{
public function __construct (){
parent::__construct();
}
public function view($page = 'home'){
if($this->session->userdata('logged_in')){
if(!file_exists(APPPATH.'views/pages/'... |
<?php
// This file was auto-generated from sdk-root/src/data/rds/2014-10-31/paginators-1.json |
<?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 Nette\Forms\Controls;
use Nette;
/**
* Choice control that allows multiple items selection.
*
* @property array $items
* @property-read ... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Requests\PackageRequest;
use App\Models\Package;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class PackagesController extends Controller
{
public function index()
{
$packages = Package::all();
return view('admin.p... |
<?php
namespace Vindi;
/**
* Class Issue
*
* @package Vindi
*/
class Issue extends Resource
{
/**
* The endpoint that will hit the API.
*
* @return string
*/
public function endpoint()
{
return 'issues';
}
} |
<?php
require "../src/magic.class.php";
$test = new Priler\Text2Image\Magic(
"
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
public function user()
{
return $this->belongsTo('App\User');
}
} |
@extends('admin.layout')
@section('content')
<div class="row">
<div class="col-lg-12">
<h3 class="text-center">Đơn hàng</h3>
</div>
<div class="col-lg-12">
@if (session('success'))
<div class="alert alert-success text-center">
{{ session('success') }}
... |
<?php
namespace app\admin\controller;
use app\admin\AdminController;
class Aboutus extends AdminController {
protected $beforeActionList = [
'isLogin', //所有方法的前置操作
// 'isLogin' => ['except' => 'login'], //除去login其他方法都进行isLogin前置操作
// 'three' => ['only' => 'hello,data'],//只有hello,... |
<?php
/* Cachekey: cache/stash_default/doctrine/[concrete\core\entity\notification\notificationalert$user@[annot]][1]/ */
/* Type: array */
/* Expiration: 2017-04-02T03:44:18+02:00 */
$loaded = true;
$expiration = 1491097458;
$data = array();
/* Child Type: array */
$data['return'] = unserialize(base64_decode('YT... |
<?php
namespace App\Http\Controllers\Api;
use App\Events\DonationCompleted;
use App\Http\Controllers\Controller;
use App\Models\Entity;
use App\Models\Transaction;
use Illuminate\Http\Request;
class EntityController extends Controller
{
public function info(Request $request, $uniqueName){
$success = fals... |
<?php
namespace app\api\common\library;
use app\common\exception\ApiException;
use app\api\common\library\Aes;
use app\common\model\UserToken;
use app\common\model\User;
use think\Request;
/**
* Iauth相关
* Class IAuth
*/
class IAuth
{
public static $signAttr = '';
/**
* 获取用户信息 需要登录用户header中必须传acces... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Start your development with a Dashboard for Bootstrap 4.">
<meta name="author" content="Creative Tim">
<title><?= $title ?></title>
<... |
<?php
/**
* /home/criera/Projects/ceneac_yii/runtime/giiant/e0080b9d6ffa35acb85312bf99a557f2
*
* @package default
*/
namespace app\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\Preregistered;
/**
* PreregisteredSearch represents the model behind the search form about `app... |
<?php
/**
* Encoder.php
*
* @since 2015-02-21
* @category Library
* @package Barcode
* @author Nicola Asuni <info@tecnick.com>
* @copyright 2015-2015 Nicola Asuni - Tecnick.com LTD
* @license http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)
* @link https://gi... |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
$this->load->view('admin/header');
?>
<style>
#txt_search
{
width:150px;
}
#btn_edit
{
cursor:pointer;
}
#div_pagination li:nth-child(1) a:nth-child(1)
{
display:none;
}
@media (max-width:320px)
{
#txt_search
{
width:100%;
mar... |
<?php
if(!empty($contentdata))
{
echo $contentdata;
}
else
{
echo "No data";
}
?> |
<?php
use Faker\Generator as Faker;
use Carbon\Carbon;
$factory->define(App\Models\Question::class, function (Faker $faker) {
$now = Carbon::now()->toDateTimeString();
return [
'title' => $faker->sentence(),
'content' => $faker->text(),
'created_at' => $now,
'updated_at' => $... |
<!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">
<link rel="stylesheet" href="<?php echo base_url();?>public/css/bootstrap.css">
<link rel="stylesheet" href="<?p... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Illust extends Model
{
use HasFactory;
protected $fillable = [
'illust_name',
'illust_path',
'description',
];
//ユーザ関連
public fun... |
@extends('layouts.app')
@section('content_title')
<h1 class="panel-title">
ECB: {{ $ecb->t('name') }}
</h1>
@endsection
@section('content')
<div class="row">
<div class="col-md-12">
<h1>ECB: {{ $ecb->t('name') }}</h1>
</div>
</div>
<div class="row">
<div... |
<?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
class Controller extends BaseController
... |
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
/*
* 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 no... |
<?php
namespace LaunchDarkly;
/**
* Interface for the component that sends events to the LaunchDarkly service.
*
* The default implementation is {@see \LaunchDarkly\Integrations\Curl::eventPublisher()}. The SDK also
* provides {@see \LaunchDarkly\Integrations\Guzzle::eventPublisher()}.
*/
interface EventPublishe... |
<?php
/*
* Copyright (C) 2013 Mailgun
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace Mailgun\Api;
use Mailgun\Assert;
use Mailgun\Model\PagingProvider;
use Mailgun\Hydrator\ArrayHydrator;
use Psr\Http\Message\ResponseInterfa... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class TagTarefa extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tag_tarefa', function (B... |
<?php
namespace Brammm\Vat\Validator;
/**
* VAT format: [C1 C2 C3 C4 C5 C6 C7 C8 C9]
*
* Range:
* C1 ... C8 Numeric from 0 to 9
* C9 Alphabetic
* C1 0, 1, 3, 4, 5, 9
*
* Rules:
* C1 C2
* C1C2 cannot be 12 (e.g. 12000139V is invalid)
*/
class ValidatorCY implements Validator
{
use Co... |
<?php
/**
* baserCMS : Based Website Development Project <http://basercms.net>
* Copyright (c) baserCMS Users Community <http://basercms.net/community/>
*
* @copyright Copyright (c) baserCMS Users Community
* @link http://basercms.net baserCMS Project
* @package Baser.Test.Case.View.Helper
* @since baser... |
@extends('template')
@section('title', 'New sub')
@section('content')
<div class="container">
<h2>New sub</h2>
@include('partials.validation-messages')
<form method="post" action="{{ route('sub.store') }}">
{!! csrf_field() !!}
<fieldset class="form-group">
... |
@extends('layouts.master')
@section('sidebar')
@parent
Lista de negocios
@stop
@section('content')
<h1>
Negocios
</h1>
{{ HTML::link('negocios/nuevo', 'Crear Negocio'); }}
<ul>
@foreach($negocios as $negocio)
<li>
{{ HTML::link( 'negocios/'.$negocio->id ... |
<?php
/* WebProfilerBundle:Profiler:toolbar.css.twig */
class __TwigTemplate_b4ef060bb2a259fd034f7ab63ba09eac0f0e8efb2ea173f3c67c8f16e424dd46 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = ... |
<?php namespace Fisdap\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\HasLifecycleCallbacks;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\JoinColumn;
use Doctrine\ORM\M... |
<?php
require('get_db.php');
header('Content-Type: application/json');
if(isset($_GET['story_id'])) {
$story_id = $_GET['story_id'];
$conn = DBConn();
$sql = 'SELECT id FROM comment WHERE is_recorded = 1 AND approved = 1 AND story_id = '.$story_id.' ORDER BY id ASC';
if ($result = $conn->query($sql)) {
$c... |
<?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\DataCollector;
use Symfony\Component\Form\F... |
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\totalviewController;
use App\Http\Controllers\statusController;
use Illuminate\Http\Request;
use App\usermealmodel;
use App\usertotalviewmodel;
class mealController extends Controller
{
public function index(){
return view("Tabs/mytodaymeal");
... |
@extends('layouts.app')
@section('content')
<section class="content-header">
<h1 class="pull-left">Tipos de Proyecto</h1>
<h1 class="pull-right">
<a class="btn btn-primary pull-right" style="margin-top: -10px;margin-bottom: 5px" href="{!! route('tipoProyectos.create') !!}">Agregar Nuevo<... |
<form action="{{url( app_get_locale(false,false,'/').config('hotel.hotel_route_prefix') )}}" class="form bravo_form d-flex justify-content-start" method="get" onsubmit="return false;">
@php $hotel_map_search_fields = setting_item_array('hotel_map_search_fields');
$hotel_map_search_fields = array_values(\Ill... |
<?php
require_once "Tests/Auth/OpenID/TestUtil.php";
require_once "Tests/Auth/OpenID/MemStore.php";
require_once "Auth/OpenID/Message.php";
require_once "Auth/OpenID/Consumer.php";
class Tests_Auth_OpenID_VerifyDisco_1 extends Auth_OpenID_GenericConsumer {
function _discoverAndVerify($claimed_id, $to_match_endpo... |
<?php require_once('layout/header-erros.php'); ?>
<section>
<div class="error-page">
<h2 class="headline text-red">502</h2>
<div class="error-content">
<h3><i class="fa fa-warning text-red"></i> Desculpe. Serviço indisponível no momento.</h3>
<p>
Estamos em ma... |
<?php
/**
* Cetemaster Services
* Cetemaster Framework v1.0
*
* Script loading time count
* Author: $CTM['Erick-Master']
* Last Update: 18/05/2012 - 14:42h
*
* Cetemaster Services, Limited
* Copyright (c) 2010-2013. All Rights Reserved,
* www.cetemaster.com.br / www.cetemaster.com
*/
if(CTM_Framework::Check... |
<?php
namespace Wallabag\CoreBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation\Exclude;
use JMS\Serializer\Annotation\Groups;
use JMS\Serializer\Annotation\XmlRoot;
use Symfony\Bridge\RulerZ\Validator\Constraints as RulerZAssert;
use Symfony\Component\Validator\Constraints as Assert;
/**
... |
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class All_artikel extends CI_Model {
public $list_kategori;
public $list_tag;
function __construct()
{
parent::__construct();
}
function get_artikel(){
$cari=$this->db->query("SELECT * FROM artikel WHERE artikel_terhapus='N' ORDER ... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateWorkdaysTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::connection('pgsql-ignu... |
<?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\bootstrap\ActiveForm;
?>
<span id="assistnum">1</span>
<div class="span9">
<h1 class="page-title">
<i class="icon-user"></i>
作业发布与批改
</h1>
<div class="row">
<div class="span9">
<div class="widget">
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\post;
use App\comment;
class CommentsController extends Controller
{
//
public function store(post $post, Request $request)
{
$validatedData = $request->validate([
'body' => 'required|min:2'
]);
comment::c... |
<?php
$lang["items_add_minus"] = "הוספה או החסרה של מלאי.";
$lang["items_allow_alt_description"] = "אפשר תיאור חלופי";
$lang["items_amount_entry"] = "ערך כניסה";
$lang["items_bulk_edit"] = "עריכה גורפת";
$lang["items_buy_price_required"] = "מחיר הרכישה הינו שדה חובה.";
$lang["items_cannot_be_deleted"] = "לא ניתן למחו... |
<?php
//****************************************************
// Auteur: CraftMyCMS (Kévin GUIOT)
// CraftMyCMS PERSO 4.0.2.2
// Copyright © 2012 - 2015
// Sortie: 26 avril 2015 à 19h30
// Contact: contact@craftmycms.fr
//
// http://www.craftmycms.fr/
// http://developpeur.craftmycms.fr/changelog/cms/#zsl7zgdmzs
//*****... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{env('app_name')}}-Mail-</title>
<!-- Scripts -->
<script src="https://unpkg.com/axios/dist/axios.min.js"></scri... |
<?php
echo "failed"; |
<?php get_header(); ?>
<div id="content">
<div class="post">
<h2><?php _e('Архивы') ?></h2>
<h3><?php _e('Архивы по месяцам') ?></h3>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
<p> </p>
<h3><?php _e('Архивы по рубрикам') ?></h3>
<ul>
<?php wp_list_cats(); ?>
</ul>
<?php if( function_exists('w... |
<?php
namespace App\Http\Controllers;
use App\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class LoginController extends Controller
{
public function index()
{
return view('admin.login');
}
public function postLogin(Request $request)
{
// //validate du lie... |
<?php
class ViewDatabaseVideoField extends ViewControl
{
/**
* addJSFiles
* Add control JS files to page object
*/
function addJSFiles()
{
$this->AddJSFile("include/video/projekktor-1.0.24r90.min.js");
$this->getJSControl();
}
/**
* addCSSFiles
* Add control CSS files to page object
*/
functio... |
<?php
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| Here you may define all of your model factories. Model factories give
| you a convenient way to create models for testing and seeding yo... |
<?php
use Illuminate\Database\Seeder;
use bfinlay\SpreadsheetSeeder\SpreadsheetSeeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->call([
SpreadsheetSeeder::class,
]);
... |
<?php namespace transfor\Providers;
use Illuminate\Routing\Router;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
class RouteServiceProvider extends ServiceProvider {
/**
* This namespace is applied to the controller routes in your routes file.
*
* In addition, it is set ... |
@extends('app')
@section('content')
@include('layouts.contentheader')
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-hea... |
<?php
/**
* @author Kuba Slawinski <kslawinski@telaxus.com>
* @copyright Copyright © 2006, Telaxus LLC
* @version 1.0
* @license MIT
* @package epesi-tests
* @subpackage tooltip
*/
defined("_VALID_ACCESS") || die('Direct access forbidden');
class Tests_TooltipInstall extends ModuleInstall {
public functio... |
@if (!empty($options))
<script type="text/javascript">
var RecaptchaOptions = {{json_encode($options)}};
</script>
@endif
<script type="text/javascript" src="{{$server}}/challenge?k={{$public_key}}"></script>
<noscript>
<iframe src="{{$server}}/noscript?k={{$public_key}}"
height="300" ... |
<?php
//dezend by http://www.yunlu99.com/
if (!defined('IN_IA')) {
exit('Access Denied');
}
class List_EweiShopV2Page extends WebPage
{
protected function orderData($status, $st)
{
global $_W;
global $_GPC;
$pindex = max(1, intval($_GPC['page']));
$psize = 20;
$merch_plugin = p('merch');
$merch_data = m... |
<div class="row">
<div class="col-sm-12 col-md-12">
<div class="card">
<div class="card-header">
<h4><?php echo html_escape((!empty($title)?$title:null)) ?></h4>
</div>
<div class="card-body">
<?php echo form_open('hrm/weekly-holiday-upda... |
<?php
namespace app\controllers;
use Yii;
use yii\filters\AccessControl;
use yii\web\Controller;
use yii\filters\VerbFilter;
use app\models\LoginForm;
use app\models\ContactForm;
use app\models\PersonaMySQL;
use app\models\PersonaPgSQL;
class SiteController extends Controller
{
public function behaviors()
{... |
<?php
namespace GlobalPayments\Api\Gateways;
use DOMDocument;
use GlobalPayments\Api\Builders\PayFacBuilder;
use GlobalPayments\Api\Entities\Transaction;
use GlobalPayments\Api\Entities\Enums\TransactionType;
use GlobalPayments\Api\Entities\Exceptions\GatewayException;
use GlobalPayments\Api\Entities\Exceptions\Unsup... |
<?php
namespace HotelBundle\Controller;
use HotelBundle\Entity\Season;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;use Symfony\Component\HttpFoundation\Request;
/**
* Season controll... |
<script type="text/javascript">
$(document).ready(function() {
$('#redisTab a').click(function (e) {
e.preventDefault();
$(this).tab('show');
});
$('#bulkdelete').submit(function(e) {
e.preventDefault();
var url = baseurl+'/keys/bulkdelete/<?p... |
<?php
/**
* Language entries for DE
*
* @author best it GmbH & Co. KG <info@bestit-online.de>
*/
$sLangName = "Deutsch";
$aLang = array(
'charset' => 'UTF-8',
'BESTITAMAZONPAY_SWITCH_BACK_2_STANDARD' => "Umschalten von Amazon Pay auf S... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddDateToEvents extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('events', function (... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Documento extends CI_Model {
public function crear_documento($documento_nombre)
{
$documento = array(
"notaria_id" => 1
,"nombre" => $documento_nombre
);
$this->db->insert('documento', $documento);
return $this->db->inse... |
<?php
require_once "monitor-constants.php";
require_once "common.php";
define('listUrl',baseUrl.'getMeters.php');
define('dataUrl1h',baseUrl.'get1h.php');
define('dataUrl10mn',baseUrl.'get10mn.php');
define('dataUrlMonth',baseUrl.'getMonthlyProd.php');
pageHeader(nameAppli());
date_default_timezone_set("Europe/Paris... |
<?php
declare(strict_types=1); |
<?php
namespace Spatie\Backup\Exceptions;
use Exception;
class InvalidCommand extends Exception
{
public static function create(string $reason): InvalidCommand
{
return new static($reason);
}
} |
<?php
namespace GuzzleHttp;
use GuzzleHttp\Event\HasEmitterInterface;
use GuzzleHttp\Message\RequestInterface;
use GuzzleHttp\Message\ResponseInterface;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Exception\AdapterException;
/**
* Client interface for sending HTTP requests
*/
interface ClientInterfac... |
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
Route::post('introduction', "VisitorController@introduction")->name('api.introduction');
Route::post('conversation', "VisitorController@conversation")->name('api.conversation');
Route::post('conversation/send', "VisitorController@sendConversatio... |
<?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',... |
@extends('layouts.adminlte')
@section('content')
@livewire('sectors.sectors-component')
@endsection |
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<meta name="csrf-token" content="{{ csrf_token() }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="images/favicon.ico">
<!-- CSRF Token -->... |
@extends('layouts.layout')
@section('breadcrumbs')
<ul class="page-breadcrumb breadcrumb">
<li><a href="{{ route('dashboard') }}">Dashboard</a><i class="fa fa-angle-right"></i></li>
<li><span>Lead</span></li>
</ul>
@stop
@section('content')
<div class="page-content-inner">
<div cla... |
<?php declare(strict_types=1);
namespace Forrest79CodingStandard\Sniffs\Exceptions;
class ClassThatDoesNotExtendException extends \Consistence\Sniffs\Exceptions\NotAnExceptionClass
{
} |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Category extends Model
{
protected $fillable = [
"name", "slug", "featured", "desc", "img",
];
public function games()
{
return $this->hasMany("App\Game");
}
} |
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2016 Leo Feyer
*
* @license LGPL-3.0+
*/
namespace Contao;
/**
* Provide methods regarding FAQs.
*
* @author Leo Feyer <https://github.com/leofeyer>
*/
class ModuleFaq extends \Frontend
{
/**
* Add FAQs to the indexer
*
* @param array $ar... |
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
class UsersRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules ... |
<?php
/**
* @author Virtuosi Media Inc.
* @license MIT License
* @description A unit test that tests if x is greater than or equal to y, fails if x is less than y.
* @namespace Test\Assert
*/
namespace Test\Assert;
class GreaterThanOrEqual extends \Test\Assert {
/**
* @description Tests if x is greater than o... |
<html>
<head>
<title>Pivot Demo</title>
<!-- external libs from cdnjs -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.4/jquer... |
@extends('layouts.app_master_admin')
@section('content')
<section class="content-header">
<h1>
Thêm mới Menu
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
<li class="active"><a href="{{route('admin.menu.index'... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Invitation extends Model
{
protected $table = 'invitation';
public $timestamps = false;
} |
<div class="sidebar-user">
<div class="user_categories">
<ul>
<li>
<span>حساب کاربری</span>
<ul>
<li><a href="">اطلاعات مشتری</a> </li>
<li><span> گزارش عملکرد</span> </li>
<li><span>ویرایش اطلاعات</span> </li>
<li><span> آدرس</span> </li>
... |
<?php
use Faker\Generator as Faker;
$factory->define(App\Post::class, function (Faker $faker) {
return [
'title' => $faker->word,
'content' => $faker->text,
'user_id' => $faker->numberBetween(1,2)
];
}); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.