text stringlengths 2 1.03M |
|---|
<?php
namespace Database\Factories;
use App\Models\Categorie;
use App\Models\User;
use App\Models\SousCategorie;
use Illuminate\Database\Eloquent\Factories\Factory;
class SousCategorieFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protect... |
<?php
/**
* BaseDatUnion
*
* This class has been auto-generated by the Doctrine ORM Framework
*
* @property decimal $idunion
* @property decimal $idmapeo
* @property string $campoinicial
* @property string $operador
* @property string $campofinal
* @property string $logico
* @property ModReccomplejas2.dat... |
<?php
namespace ishop;
class ErrorHandler
{ public function __construct(){
if (DEBUG){
error_reporting(-1);
}else{
error_reporting(0);
}
set_exception_handler([$this,'exceptionHandler']);
}
public function exceptionHandler($e){
$this->logErrors($e->getMessage() , $e->getF... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function(Blueprint $table)
{
$table->increments('id');
... |
<?php
namespace Tests\Support\Builders;
use Apitizer\QueryBuilder;
use Tests\Feature\Models\User;
use Illuminate\Database\Eloquent\Model;
class EmptyBuilder extends QueryBuilder
{
public function fields(): array
{
return [];
}
public function filters(): array
{
return [];
}
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<footer class="main-footer">
<div class="footer-left">
© 2020
• Made with 🔥 by <a href="https://wibowo-dev.web.app" target="_blank">Wibowo Devs</a>
• Supported by <a href="https://rsiwonosobo.com"... |
@extends('app')
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Koreksi Pemasukan
<small>Koperasi</small>
</h1>
</section>
<!-- Main content -->
... |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
INFO - 2017-03-14 10:19:27 --> Config Class Initialized
INFO - 2017-03-14 10:19:27 --> Hooks Class Initialized
DEBUG - 2017-03-14 10:19:27 --> UTF-8 Support Enabled
INFO - 2017-03-14 10:19:27 --> Utf8 Class Initialized
INFO - 2017-03-14 10:19:27 ... |
<?php
namespace App\Http\ViewComposers;
use App\Post;
use Illuminate\View\View;
class InjectRecentPosts
{
protected $posts;
public function __construct(Post $posts)
{
$this->posts = $posts;
}
public function compose(View $view)
{
$recentPosts = $this->posts->with('author') -... |
<?php
namespace App\Http\Controllers\Client;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class shopController extends Controller
{
/**
* Handle the incoming request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public fun... |
<?php
// +----------------------------------------------------------------------
// | LinkPHP [ Link All Thing ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016-2017 http://linkphp.cn All rights reserved.
// +-----------------------------------------------------------... |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use app\models\general\GeneralLabel;
use app\models\general\GeneralMessage;
/* @var $this yii\web\View */
/* @var $searchModel app\models\LtbsSenaraiNamaHadirAgmSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = GeneralLabel::senarai_nama... |
<?php include("include/header.php"); ?>
<div class="wrapper">
<?php include("include/top_bar.php"); ?>
<!-- Left side column. contains the logo and sidebar -->
<?php include("include/side_bar.php"); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page hea... |
<?php
/**
* Выход
*
* @version 09.09.2016
* @author Дмитрий Щербаков <atomcms@ya.ru>
*/
namespace MFLPHP\Pages\User;
use MFLPHP\Abstracts\PageControllerUser;
use MFLPHP\Configs\Settings;
class ControllerLogout extends PageControllerUser
{
//
//
// mm mm
// ... |
<script src="<?php echo base_url('resources/js/jquery-2.2.3.min.js'); ?>" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
(function ($) {
$('#filtrar').keyup(function () {
var rex = new RegExp($(this).val(), 'i');
... |
<?php return array (
'providers' =>
array (
0 => 'Illuminate\\Auth\\AuthServiceProvider',
1 => 'Illuminate\\Broadcasting\\BroadcastServiceProvider',
2 => 'Illuminate\\Bus\\BusServiceProvider',
3 => 'Illuminate\\Cache\\CacheServiceProvider',
4 => 'Illuminate\\Foundation\\Providers\\ConsoleSuppor... |
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class SendMailable extends Mailable
{
use Queueable, SerializesModels;
public $count;
/**
* Create a new message instance.
*
... |
<x-guest-layout>
<x-auth-card>
<x-slot name="logo">
<a href="/">
<x-application-logo class="w-20 h-20 fill-current text-gray-500"/>
</a>
</x-slot>
<!-- Session Status -->
<x-auth-session-status class="mb-4" :status="session('status')"/>
... |
<?php
namespace PlanEventBundle\AfficheListener;
use Symfony\Component\Security\Http\Authentication\AuthenticationSuccessHandlerInterface;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Authorization\AuthorizationChecker;
use Symfony\Component\HttpFoundati... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePostsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('posts', function ... |
@extends('layouts.app')
@section('template_title')
{{ Auth::user()->name }}'s Homepage
@endsection
@section('template_fastload_css')
@endsection
@section('content')
<div class="container">
<div class="row">
<div class="card" style="width: 100%">
<div class="card-header @role('kantor', tr... |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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 3 of the License, or
// (at your option) any later version.
//
// Moodle... |
<?php
namespace App;
use DB;
use Illuminate\Database\Eloquent\Model;
class ToDo extends Model
{
public $timestamps = false;
protected $table = 'toDo';
protected $fillable = ['nota','fecha','estado','Evento_idEvento','prioridad','nombre'];
protected $primaryKey = 'idItem';
/**
* Get the post that owns the... |
<?php
namespace Drupal\system\Tests\Menu;
use Drupal\simpletest\WebTestBase;
abstract class MenuTestBase extends WebTestBase {
use AssertBreadcrumbTrait;
} |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Order extends Model
{
protected $table = 'order';
/**
* The attributes that are mass assignable.
* @author Rob Biemans
* @var array
*/
protected $fillable = [
'user_id', 'product_id', 'count', 'totalPrice' , '... |
<?php
return [
'Id' => '唯一标识',
'Name' => '出发地',
'Content' => '出发地描述'
]; |
<div style="width: 700px; margin:0 auto;">
<h3>Hello!</h3>
<p>You are receiving this email because we received a password reset request for your account.</p><br>
<div style="text-align: center;">
<a href="{{route('reset.links',$reset->token)}}" style="color:#fff; padding:12px; background-color:#000;... |
<?php
namespace Horizon\Routing;
use Symfony\Component\Routing\Route as SymfonyRoute;
class RouteCompiler {
/**
* @var Route
*/
private $route;
/**
* Constructs a new RouteCompiler instance for the given Route instance.
*/
public function __construct(Route $route) {
$this->route = $route;
}
public... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class UsersLikeProductController extends Controller
{
//
} |
@extends('layouts.admin.app')
@section('template_title')
{!! trans('usersmanagement.create-new-user') !!}
@endsection
{{-- @section('head')
@include('panels.head')
@endsection --}}
@section('template_fastload_css')
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
@endsec... |
<?php
class UserController extends \BaseController {
protected $user;
protected $userType;
protected $apiKey;
function __construct(
Ironquest\Services\User $user,
Ironquest\Services\UserType $userType
)
{
$this->user = $user;
$this->userType = $userType;
... |
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| r... |
<?php
header('Location: public/');
header('Location: public/');
?> |
<?php
/*
* Copyright 2014 Google Inc.
*
* 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 agreed ... |
<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "block".
*
* @property integer $id
* @property string $key
* @property string $name
* @property string $code
* @property string $style
* @property string $img
* @property string $type
*/
class Block extends \yii\db\ActiveRecord... |
<?php
namespace App\Providers;
use App\Services\UserService;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Support\ServiceProvider;
class UserLayerServiceProvider extends ServiceProvider
{
/**
* Bootstrap services.
*
* @return void
*/
public function boot()
{
}
... |
<?php
namespace Hccfu\EasyTK\JingDong\Request;
class WarePriceGetRequest
{
private $apiParas = array();
public function getApiMethodName(){
return "jingdong.ware.price.get";
}
public function getApiParas(){
if(empty($this->apiParas)){
return "{}";
}
return json_encode($this... |
<?php
/* @var $this yii\web\View */
use app\models\Concert;
use app\models\Couple;
use app\models\Tour;
use yii\helpers\Html;
/* @var $provider \yii\data\ActiveDataProvider */
/* @var $tour Tour */
$this->title = 'Списки регистраций на ' . $tour->getReadableName();
$this->params['breadcrumbs'][] = ['label' => 'Списк... |
<?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\Finder;
use Symfony\Component\Finder\Comparator\DateC... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateEmployeesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('employees', f... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
use App\Models\Color;
use App\Models\Size;
class SuperAdminController extends Controller
{
public function index(){
return "I am Super Admin";
}
public function colors(){
return vie... |
<?php
return function($page) {
$form = new Kirby\Panel\Form(array(
'page' => array(
'label' => 'pages.delete.headline',
'type' => 'text',
'readonly' => true,
'icon' => false,
'default' => $page->title(),
'help' => $page->id(),
)
));
$form->style('del... |
@extends('layouts.app')
@section('title', 'Create')
@section('sidebar')
@parent
<p>This is appended to the master sidebar.</p>
@endsection
@section('content')
<div class="row">
<div class="col-lg-6 mx-auto">
@if ($errors->any())
<div class="alert alert-danger">
... |
<?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\Bridge\Doctrine\Tests\Security\User;
use Symfony\Bridge\Doctrin... |
@extends('nexus::layouts/master')
@section('app')
@include('nexus::layouts/sidebar')
<!-- MAIN CONTENT
================================================== -->
<div id="app" class="main-content">
@include('nexus::layouts/nav')
<div class="container-fluid">
@yield('content')
... |
<?php
/*
* This file is part of By Night.
* (c) 2013-2021 Guillaume Sainthillier <guillaume.sainthillier@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migr... |
<?php
namespace app\modules\jk\models;
use app\models\Model;
use app\modules\jk\Module;
use Yii;
use yii\helpers\ArrayHelper;
/**
* This is the model class for table "jk_aid_standards".
*
* @property int $id
* @property int $created_at
* @property int $created_by
* @property int|null... |
<?php
namespace ventas_project\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
class VerifyCsrfToken extends BaseVerifier
{
/**
* The URIs that should be excluded from CSRF verification.
*
* @var array
*/
protected $except = [
//
];
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class TransactionItem extends Model
{
use HasFactory;
protected $fillable = [
'users_id',
'products_id',
'transactions_id',
];
public function product()... |
<?php
/**
* Message translations.
*
* This file is automatically generated by 'yiic message' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message (key).
... |
<?php
/**
*------
* BGA framework: © Gregory Isabelli <gisabelli@boardgamearena.com> & Emmanuel Colin <ecolin@boardgamearena.com>
* nineteensixtynine implementation : © <Your name here> <Your email address here>
*
* This code has been produced on the BGA studio platform for use on http://boardgamearena.com.
* Se... |
<?php
declare(strict_types=1);
namespace OpenIDConnect\Tests\Factories;
use DateInterval;
use DateTimeImmutable;
use League\OAuth2\Server\CryptKey;
use League\OAuth2\Server\Entities\AccessTokenEntityInterface;
use League\OAuth2\Server\Entities\ClientEntityInterface;
use OpenIDConnect\Entities\AccessTokenEntity;
use ... |
@extends('layouts.app')
@section('search')
<div class="container w-75">
@if ($search_count == 0)
<h1 class="text-center text-light">Nie znaleziono żadnego postu</h1>
@else
<h1 class="text-center text-light mb-3">Znalezione wyniki:</h1>
@foreach ($search as $post)
<div class="contai... |
<?php
declare (strict_types=1);
namespace RectorPrefix20210904;
use Rector\Defluent\Rector\MethodCall\FluentChainMethodCallToNormalMethodCallRector;
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
use Rector\Renaming\ValueObject\MethodCallRename;
use Rector\Transform\Rector\FuncCall\FuncCallToMethodCallRect... |
<?php
namespace common\models\order;
use common\models\AdminUser;
use Yii;
use yii\db\ActiveRecord;
use yii\db\Exception;
/**
* This is the model class for table "{{%order_goods_action}}".
*
* @property int $id
* @property int $order_goods_id 订单商品id,关联order_goods表id字段
* @property string $title 操作标题/类型
* @prope... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Rap2hpoutre\LaravelLogViewer\LogViewerController;
class LogController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
public function index()
{
$class = new LogViewerControlle... |
<?php
include 'simple_html_dom.php';
# Use the Curl extension to query Google and get back a page of results
$broken = [21, 652];
function compress_htmlcode($codedata)
{
$searchdata = [
'/\>[^\S ]+/s', // remove whitespaces after tags
'/[^\S ]+\</s', // remove whitespaces before tags
'/(\s... |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle 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 3 of the License, or
// (at your option) any later version.
//
// Moodle... |
<?php
namespace App\Http\Controllers\Frontend;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
use App\User;
class USERController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
... |
<?php
namespace Database\Factories;
use App\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
class UserFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = User::class;
/**
* Defi... |
<?php
/*
[Destoon B2B System] Copyright (c) 2008-2015 www.destoon.com
This is NOT a freeware, use is subject to license.txt
*/
require 'common.inc.php';
if($moduleid < 4) $moduleid = 4;
$AREA = cache_read('area.php');
$pid = isset($pid) ? intval($pid) : 0;
$back_link = $pid ? 'area.php?moduleid='.$moduleid.'&pid='.$A... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Address extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'user_id',
... |
<?php
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
* @author Lukas Reschke <lukas@statuscode.ch>
* @author Morris Jobke <hey@morrisjobke.de>
* @author Roeland Jago Douma <roeland@famdouma.nl>
* @author Thomas Müller <thomas.mueller@tmit.eu>
*
* @license AGPL-3.0
*
* This code is free software: you ca... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Auth;
use App\Model\Category;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
// $this->middleware('auth');
}
p... |
--TEST--
ReflectionClass::getModifierNames() basic tests
--CREDITS--
Felix De Vliegher <felix.devliegher@gmail.com>
--FILE--
<?php
class a {}
abstract class b {}
final class c {}
class x
{
function __construct() {}
function __destruct() {}
private function a() {}
private static function b() {}
pro... |
<?php
namespace SunnyFlail\Console\Tests;
require_once __DIR__."/../vendor/autoload.php";
use PHPUnit\Framework\TestCase;
use SunnyFlail\Console\Console;
final class ConsoleTest extends TestCase
{
public function textProvider(): array
{
return [
"Singular front color" => [
... |
<?php
namespace App\Models;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class Teacher extends Authenticatable
{
use Notifiable;
protected $table = "teachers";
/**
* The attributes that are mass assignable.
*
* @var array
*/
prot... |
<?php
// autoload_static.php @generated by Composer
namespace Composer\Autoload;
class ComposerStaticInitaf391286e2499632208841adca627620
{
public static $prefixLengthsPsr4 = array (
'P' =>
array (
'PHPMailer\\PHPMailer\\' => 20,
),
);
public static $prefixDirsPsr4 =... |
{{-- <!DOCTYPE html>
<html>
<head>
<title> My Application</title>
</head>
<body>
<div class="container">
@yield('content')
</div>
@yield('footer')
</body>
</html> --}}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
require_once("Persons.php");
class Employees extends Persons
{
public function __construct()
{
parent::__construct('employees');
}
/*
Returns employee table data rows. This will be called with AJAX.
*/
public function search()
{
/... |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class Anggota extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->model('Anggota_model');
$this->load->library('form_validation');
}
public function index()
{
... |
<?php
/**
* Example of retrieving an authentication token of the Foursquare service
*
* PHP version 5.4
*
* @author David Desberg <david@daviddesberg.com>
* @author Pieter Hordijk <info@pieterhordijk.com>
* @copyright Copyright (c) 2012 The authors
* @license http://www.opensource.org/licenses/mit-... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
<div class="card">
<div class="card-header">Hai, <b>{{ Auth::user()->name }}</b></div>
<div class="card-b... |
<?php
require_once '../src/CPUchainPHP/CPUchainECDSA/CPUchainECDSA.php';
use CPUchainPHP\CPUchainECDSA\CPUchainECDSA;
$cpuchainECDSA = new CPUchainECDSA();
$cpuchainECDSA->generateRandomPrivateKey(); //generate new random private key
$message = "Test message";
$signedMessage = $cpuchainECDSA->signMessage($message);... |
@extends('layouts/master')
@section('title','Home')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-12">
<h1>Home</h1>
</div>
</div>
</div>
@endsection |
@extends('layouts.app')
@section('title')
Add Role
@endsection
@section('css')
<style>
</style>
@endsection
@section('content')
<div class="kt-content kt-grid__item kt-grid__item--fluid kt-grid kt-grid--hor" id="kt_content">
<!-- begin:: Subheader -->
<div class="kt-subheader kt... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-12">
<h1>Export Employee</h1>
{{----------------- Query FORM -----------------}}
<div class="pull-right">
{!! Form::open(['method'=>'GET','url'=>'expor... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\Partner */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="partner-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'partnertitle')->textInput(['maxlength' => true]) ?... |
<?php
declare(strict_types=1);
namespace Phel\Compiler\Analyzer;
use Phel\Compiler\Ast\LiteralNode;
use Phel\Compiler\NodeEnvironment;
use Phel\Lang\AbstractType;
final class AnalyzeLiteral
{
/**
* @param AbstractType|string|float|int|bool|null $value
*/
public function analyze($value, NodeEnviron... |
<?php
namespace rdoepner\CleverReach;
use rdoepner\CleverReach\Http\AdapterInterface as HttpAdapter;
class ApiManager implements ApiManagerInterface
{
/**
* @var HttpAdapter
*/
protected $adapter;
/**
* ApiManager constructor.
*
* @param HttpAdapter $adapter
*/
public f... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\SearchAgency */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="agency-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $... |
<?php
/*
+---------------------------------------------------------------------------------------+
| Copyright (c) 2012, Joerg Di Terlizzi |
| All rights reserved. |
| Author: Joerg Di Terlizzi <joerg.diterlizzi@jvm.de> |
+------------------------------------------------------------... |
<?php
namespace App\Repositories\Orders;
use App\Order;
use App\Restorant as Vendor;
use App\Items;
use App\Models\Variants;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
use App\Http\Controllers\Controller;
use App\Notifications\OrderNotification;
use App\Events\NewOrder as PusherNewOrder;
... |
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2004 The zen-cart developers |
// | ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>BSM – Yönetim Sistemi</title>
<!... |
<!DOCTYPE html>
<html>
<head>
<title>Find Case</title>
</head>
<body>
<form method="post">
<table width="600" border="1" cellspacing="5" cellpadding="5">
<tr>
<td width="230">Enter Case Number </td>
<td width="329"><input type="text" name="casenumber"/></td>
<... |
<?php
namespace App\Http\Middleware;
use Illuminate\Auth\Middleware\Authenticate as Middleware;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
class Authenticate extends Middleware
{
protected function redirectTo($request)
{
return null;
}
} |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Welcome extends Application
{
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/
* - or -
* http://example.com/welcome/index
*
* So any other public methods not prefixed with an un... |
<?php
namespace App\Observers;
use App\Models\Reply;
use App\Notifications\TopicReplied;
// creating, created, updating, updated, saving,
// saved, deleting, deleted, restoring, restored
class ReplyObserver
{
public function creating(Reply $reply)
{
$reply->content = clean($reply->content, 'user_to... |
<?php
include_once("../modelo/Habitaciones.php");
$id = $_POST['id'];
$wish = new Habitaciones;
//$wish->cerrarSesion();
$wish->ver($id);
$wish->cerrar();
?> |
<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "entry".
*
* @property int $id
* @property int $plan_id
* @property string $date
* @property int $amount
* @property bool $entered
*/
class Entry extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static ... |
<div>
@php
$asrLocalSamples = [
['filename'=>'ui_looks_title', 'language'=>'html'],
['filename'=>'ui_looks_parenthetical', 'language'=>'html'],
['filename'=>'list_unordered', 'language'=>'html'],
['filename'=>'list_unordered', 'language'=>'html'],
['filename'=>'ui_looks_links_to', 'l... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class data_seguridad extends Model
{
protected $fillable = [
'ip','navegador','version','os',
];
} |
<?php
namespace app\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use app\models\LguHardwarePeripherals;
/**
* LguHardwarePeripheralsSearch represents the model behind the search form of `app\models\LguHardwarePeripherals`.
*/
class LguHardwarePeripheralsSearch extends LguHardwarePeripheral... |
@php
session_start();
$codalumno = '';
if (isset($_SESSION['codalumnox'])) {
$codalumno = $_SESSION['codalumnox'];
}
$semestreactual=semestreactual();
function cursosolocod($codalumno, $semestre)
{$sql="SELECT
curso.cur_vcCodigo
FROM
matricula
INNER JOIN matriculadetalle ON matriculadetalle.mat_iCodigo = matricula.... |
</div>
<!-- ============================================================== -->
<!-- End Wrapper -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- All Jquery -->
<!-- ===========================... |
<div class="row">
<title class="hidden">Visualizar Cliente</title>
<div class="col-md-12">
<div class="portlet light bordered">
<div class="portlet-body">
<fieldset>
<div class="col-sm-12">
<div class="form-body">
<label class="control-label">Nome</label>
<div class... |
<?php
include_once get_template_directory().'/theme-includes.php';
/* Add css */
if (!function_exists('qode_styles')) {
function qode_styles()
{
global $qode_options_proya;
global $wp_styles;
global $is_chrome;
global $is_safari;
global $woocommerce;
wp_enqueue... |
<?php
/**
* PDF2PNG
* @param $pdf 待处理的PDF文件
* @param $path 待保存的图片路径
* @param $page 待导出的页面 -1为全部 0为第一页 1为第二页
* @return 保存好的图片路径和文件名
* 注:此处为坑 对于Imagick中的$pdf路径 和$path路径来说, php版本为5+ 可以使用相对路径。php7+版本必须使用绝对路径。所以,建议大伙使用绝对路径。
*/
function pdf2png($pdf,$path,$page=-1)
{
if(!extension_loaded('imagick'))
{
... |
<?php
namespace Marshmallow\ExactOnline;
use Laravel\Nova\Card;
class ExactOnlineCard extends Card
{
/**
* The width of the card (1/3, 1/2, or full).
*
* @var string
*/
public $width = '1/3';
/**
* Get the component name for the element.
*
* @return string
*/
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.