text stringlengths 2 1.03M |
|---|
<?php
session_start();
$hashedkey = '$2y$10$jZ8G8YA/b6sAIUMYDsBYNeV.O6p8Paz/6B1GZmK5Atm96mvm8ceOa';
# Create a hash for a password with hashgenerator.php; in this case, I used "test1234"
if (isset($_SESSION["verified"]) && $_SESSION["verified"]) {
header("Location: /index.php");
# Check if a user has been previousl... |
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/11/6
* Time: 15:29
*/
namespace app\admin\model;
use think\Model;
class HomeCat extends Model
{
public function del($id){
if (is_array($id)) {
$error = '';
foreach ($id as $k => $v) {
if ($v ... |
<?php
//////////////////////////////////////
// //
// Opencart France //
// http://www.opencart-france.fr //
// Traduit par LeorLindel //
// Exclusivité d’Opencart France //
// //
//////////////////////////////////////
// Heading
$_['heading_title'] = 'Commande gratuite';
// Text
$_['text_ext... |
<?php
namespace Base\Components;
class Divider extends Text
{
public $infill = '─';
protected $height = 1;
/**
* @param int|null $key
* @throws \Exception
*/
public function draw(?int $key): void
{
$this->text = str_repeat($this->infill, $this->surface->width());
pa... |
<?php
namespace App\Core\Model;
trait Searchable
{
/**
* Search Scope
*
* @param \Illuminate\Database\Eloquent\Builder $query
* @param $search
*
* @return \Illuminate\Database\Eloquent\Builder
*/
public function scopeSearch($query, $search)
{
$searchable = $this-... |
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
@if($lShop)
<div class="user-panel" style="height: 40px;">
<div class="info" style="left: ... |
<!--{template header}-->
<div style="width:100%; height:15px;color:#000;margin:0px 0px 10px;">
<div style="float:left;"><a href="index.php?admin_main/stat{$setting['seo_suffix']}" target="main"><b>控制面板首页</b></a> » CMS系统整合</div>
</div>
<!--{if isset($message)}-->
<!--{eval $type=isset($type)?$type:'c... |
<?php
return [
'adminEmail' => 'admin@example.com',
'senderEmail' => 'noreply@example.com',
'senderName' => 'Example.com mailer',
'hostDomain' => 'http://web.pms.test',
'upload' => [
'path' => '/home/vagrant/code/pms/web/upload/',
'url' => 'http://pms.test',
'extensions' => null,
'maxSize' => 1024,
'max... |
<?php
namespace Smtm\Crawlbot\Model\Entity\Hydrator\Factory;
use Interop\Container\ContainerInterface;
use Zend\Hydrator\ClassMethods;
use Zend\Hydrator\Filter\FilterComposite;
use Zend\ServiceManager\Factory\FactoryInterface;
class CrawlbotUriClassMethodsHydratorDecoratorFactory implements FactoryInterface
{
pu... |
<?php
namespace JLaso\TradukojConnector\Tests;
use JLaso\TradukojConnector\ClientSocketApi;
use JLaso\TradukojConnector\Model\Loader\ArrayLoader;
use JLaso\TradukojConnector\Output\ConsoleOutput;
use JLaso\TradukojConnector\Output\NullOutput;
use JLaso\TradukojConnector\Socket\SocketInterface;
use JLaso\TradukojConne... |
<?php
namespace App\Listeners\Observers;
use App\Models\Profile;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Cache;
use Neves\Events\Contracts\TransactionalEvent;
use Ramsey\Uuid\Uuid;
class ProfileObserver implements TransactionalEvent
{
public function creating(Model $model)
{
... |
<?php
namespace Webkul\Product\Models;
use Illuminate\Database\Eloquent\Model;
use Webkul\Inventory\Models\InventorySource;
class ProductInventory extends Model
{
public $timestamps = false;
protected $fillable = ['qty', 'product_id', 'inventory_source_id'];
/**
* Get the product attribute fam... |
<?php
function page_css() { ?>
<!-- datatable css -->
<link href="<?php echo base_url('assets/admin'); ?>/css/datatables/dataTables.bootstrap.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url('assets/select2-4.0.0/css/select2.min.css') ?>" rel="stylesheet" />
<?php } ?>
<?php include('hea... |
<?php
namespace App\Controller;
use App\Repository\TricksRepository;
use Doctrine\Common\Persistence\ObjectManager;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class HomeController extends AbstractCo... |
<?php
class JournalTransactions extends Eloquent {
use SoftDeletingTrait;
protected $dates = ['deleted_at'];
} |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Visit extends Model
{
protected $table = 'visit';
public $timestamps = false;
protected $guarded = ['id'];
protected $fillable = [
'info',
'type',
... |
<?php
/**
* TBulletedList class file
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link https://github.com/pradosoft/prado
* @license https://github.com/pradosoft/prado/blob/master/LICENSE
* @package Prado\Web\UI\WebControls
*/
namespace Prado\Web\UI\WebControls;
/**
* TBulletedListDisplayMode class.
* TBul... |
<?php
include("include/routines.php");
$json = file_get_contents('php://input');
$obj = json_decode($json);
$uid = $_SESSION['panel_user']['id'];
$utype = $_SESSION['panel_user']['utype'];
function insertUOW($uow_name,$uow_status,$response_array)
{
global $db_con, $datetime;
global $uid;
global $obj;
$sql_check_... |
<?php namespace App\Http\Models;
use Illuminate\Database\Eloquent\Model;
class PhotosPeer extends Model {
protected $table = 'photos';
/********************************* START CUSTOM METHODS / FUNCTION ************************************/
/********************************* END METHODS / FUNCTION *************... |
<?php
namespace App\Models;
use App\Helpers\Helper;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class SessionData extends Model
{
use HasFactory;
protected $table = "sessions";
protected $keyType = 'string';
public $timestamps = false;
protecte... |
<?php
/**
* @version $Id: readmore.php 14401 2010-01-26 14:10:00Z louis $
* @package Joomla
* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public L... |
<?php
/**
* PhpUnderControl_PhalApiLoader_Test
*
* 针对 ../PhalApi/Loader.php PhalApi_Loader 类的PHPUnit单元测试
*
* @author: dogstar 20141004
*/
require_once dirname(__FILE__) . '/test_env.php';
if (!class_exists('PhalApi_Loader')) {
require dirname(__FILE__) . '/../PhalApi/Loader.php';
}
class PhpUnderControl_Ph... |
@extends('admin.layouts.master')
@section('users', 'active')
@section('content')
<div class="row wrapper border-bottom white-bg page-heading">
<div class="col-lg-12">
<h2>Users</h2>
<ol class="breadcrumb">
<li>
<a href="{{ url('/') }}">Home</a>
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Usuario;
class HonorCodeCtrl extends Controller
{
public function accept(Request $request){
$user = Usuario::find($request->uid);
$user->terminos_uso = true;
$user->save();
return response()->json(['success' => ... |
@extends('layouts.app')
@section('title', 'All User')
@section('content')
<div class="row wrapper border-bottom white-bg page-heading">
<div class="col-lg-10">
<h2>Admin / User List</h2>
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a hr... |
<?php
/**
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace ClassroomTest\Controller;
use... |
<?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 App;
use Illuminate\Database\Eloquent\Model;
class Estado extends Model
{
protected $fillable=[
'id',
'nome',
'sigla',
//fk
'pais_id',
'empresa_id',
'usuario_id'
];
protected $table = 'estado';
} |
<?php
/**
* This file is part of the wangningkai/olaindex.
* (c) wangningkai <i@ningkai.wang>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace App\Http\Controllers;
use App\Helpers\Tool;
class ShareController extends BaseController
{
... |
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark">Ganti Password</h1>
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Task extends Model
{
protected $with = array('status', 'user', 'users');
public function users(){
return $this->belongsToMany(\App\User::class);
}
public function status(){
return $this->belongsTo(\App\Status::c... |
<?php declare(strict_types=1);
/**
* @author Igor Nikolaev <igor.sv.n@gmail.com>
* @copyright Copyright (c) 2016-2020, Darvin Studio
* @link https://www.darvin-studio.ru
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
name... |
<?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\Notifier\Bridge\Firebase\Tests;
use Symfony\Component... |
@extends('backend.layouts.app')
@section('title','Dashboard')
@section('content')
<div class="app-page-title">
<div class="page-title-wrapper">
<div class="page-title-heading">
<div class="page-title-icon">
<i class="metismenu-icon icon-gradient bg-mean-fruit pe-7s-display2"></i... |
<?php
namespace App\Http\Controllers;
use App\Models\Empleado;
use Illuminate\Http\Request;
class EmpleadoController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
return view('empleado.index');
... |
<?php
use Illuminate\Database\Seeder;
// composer require laracasts/testdummy
use Laracasts\TestDummy\Factory as TestDummy;
class {{class}}TableSeeder extends Seeder {
public function run()
{
// TestDummy::times(20)->create('App\Post');
}
} |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Reestablecer Contraseña') }}</div>
<div class="card-body">
... |
<?php
if (function_exists("date_default_timezone_set")) {
date_default_timezone_set("UTC");
}
function simple() {
$a = 0;
for ($i = 0; $i < 1000000; $i++)
$a++;
$thisisanotherlongname = 0;
for ($thisisalongname = 0; $thisisalongname < 1000000; $thisisalongname++)
$thisisanotherlongname++;
}
/****/... |
<?php
$config = Array(
'protocol' => 'smtp',
'smtp_host' => 'smtp.mailtrap.io',
'smtp_port' => 2525,
'smtp_user' => '634a6a1da62bed',
'smtp_pass' => '263b2464fbe25e',
'crlf' => "\r\n",
'newline' => "\r\n",
'mailtype' => 'html',
); |
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class OrderDeliveryRecourse extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
... |
<?php
// Import PHPMailer classes into the global namespace
// These must be at the top of your script, not inside a function
require_once('path/to/PHPMailer/src/Exception.php');
require_once('path/to/PHPMailer/src/PHPMailer.php');
require_once('path/to/PHPMailer/src/SMTP.php');
use PHPMailer\PHPMailer\PHPMailer;
use ... |
<?php
namespace App\Http\Controllers\admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\BlogCategory;
use App\Http\Requests\BlogCategoryCreate;
use App\Http\Requests\BlogCategoryUpdate;
use Image;
use Auth;
class BlogCategoryController extends Controller {
public function index(Req... |
<?php
namespace App\Model\HistoryProcess;
use Illuminate\Database\Eloquent\Model;
class HistoryProcess extends Model
{
protected $fillable =
[
'id', 'process_user', 'process_permission', 'process_screen', 'process_description', 'created_at', 'updated_at'
];
} |
@extends('brackets/admin-ui::admin.layout.default')
@section('title', trans('admin.craftableproyecto.actions.edit', ['name' => $craftableproyecto->id]))
@section('body')
<div class="container-xl">
<div class="card">
<craftableproyecto-form
:action="'{{ $craftableproyecto->res... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCodeTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('codes', function (... |
<div class="modal fade" id="vobo" tabindex="-1" role="dialog" aria-labelledby="exampleModalLongTitle"
aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="exampleModalLongTi... |
<h3>Deleting existing record</h3>
<p>Coming soon...</p> |
<?php
use Illuminate\Database\Seeder;
class SettingsSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
\DB::table('settings')->delete();
\DB::table('settings')->insert(array (
0 =>
array (
... |
<div class="container-fluid backgroud"></div>
<div class="container-fluid homePage">
<div class="row">
<div class="col-md-8">
<h2 class="heading" id="homeHeading">Recent Tweets</h2>
<?php displayTweets('public'); ?>
</div>
<div class="col-md-4">
<?php displaySearch();... |
<?php
namespace Nilemin\Virtualmin\Managers\SSL;
use Nilet\Components\FileSystem\IFile;
/**
* @author Tsvetelin Tsonev <github.tsonev@yahoo.com>
*/
interface SSLManagerInterface {
/**
* Generates a Certificate Signing Request file and RSA(Rivest-Shamir-Adleman) private key for a given domain.
*
*... |
<?php
/*
* This file is part of the PHPBench package
*
* (c) Daniel Leech <daniel@dantleech.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/
namespace PhpBench\Tests\Unit\Subject;
use PhpBench\Model\Benchmark;
use PhpBenc... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for y... |
<?php
namespace Lexik\Bundle\TranslationBundle\Document;
use Lexik\Bundle\TranslationBundle\Model\File as FileModel;
use Lexik\Bundle\TranslationBundle\Manager\FileInterface;
/**
* @author Cédric Girard <c.girard@lexik.fr>
*/
class File extends FileModel implements FileInterface
{
/**
* {@inheritdoc}
... |
<?php
/**
* @package CRM
* @copyright CiviCRM LLC (c) 2004-2019
*
* Generated from xml/schema/CRM/Contact/ContactType.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:ab123a55d492c003df354c32e8b9863c)
*/
/**
* Database access object for the ContactType entity.
*/
class CRM_Contact_DAO_Con... |
<?php
/**
* ownCloud
*
* @author Tom Needham <tom@owncloud.com>
* @author Michael Barz <mbarz@owncloud.com>
* @copyright (C) 2018 ownCloud GmbH
* @license ownCloud Commercial License
*
* This code is covered by the ownCloud Commercial License.
*
* You should have received a copy of the ownCloud Commercial Lic... |
<?php
/**
* PHP表单生成器
*
* @package FormBuilder
* @author xaboy <xaboy2005@qq.com>
* @version 2.0
* @license MIT
* @link https://github.com/xaboy/form-builder
* @document http://php.form-create.com
*/
namespace FormBuilder\UI\Elm\Traits;
use FormBuilder\UI\Elm\Components\Rate;
trait RateFactoryTrait... |
<?php
/**
* Created by Chris Wilkinson.
* Title: oop
* Date: 28/05/2018
* Time: 02:03
*/
$showcases = null;
if (\Classes\Core\User::hasPrivilege()){
$showcases = \Classes\Core\Showcase::find_all();
}else{
$showcases = \Classes\Core\Showcase::find_by_user_id(\Classes\Core\Session::instance()->user... |
<?php
class ShopCurrencyTest extends SapphireTest{
function testField(){
ShopCurrency::config()->currency_symbol = "X";
ShopCurrency::config()->decimal_delimiter = "|";
ShopCurrency::config()->thousand_delimiter = "-";
ShopCurrency::config()->negative_value_format = "- %s";
$field = new ShopCurrency("Pri... |
<?php
// SSLCommerz configuration
return [
'projectPath' => env('PROJECT_PATH'),
'apiDomain' => env("API_DOMAIN_URL", "https://sandbox.sslcommerz.com"),
'apiCredentials' => [
'store_id' => env("STORE_ID"),
'store_password' => env("STORE_PASSWORD"),
],
'apiUrl' => [
'make_pa... |
<?php
/*
┌─────────────────────────────────────────────────────────────┐
| For More Modules Or Updates Stay Connected to Kodi dot AL |
└─────────────────────────────────────────────────────────────┘
┌───────────┬─────────────────────────────────────────────────┐
│ Product │ Iframe Player ... |
<?php
/**
* Box plugin for HiDev
*
* @link https://github.com/hiqdev/hidev-box
* @package hidev-box
* @license BSD-3-Clause
* @copyright Copyright (c) 2016-2017, HiQDev (http://hiqdev.com/)
*/
return [
'controllerMap' => [
'build' => [
'after' => [
'box',
... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>DBD 2-2021</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Nun... |
<?php declare(strict_types=1);
/**
* @license http://opensource.org/licenses/mit-license.php MIT
* @link https://github.com/nicoSWD
* @author Nicolas Oelgart <nico@oelgart.com>
*/
namespace nicoSWD\Rule\Expression;
final class LessThanEqualExpression extends BaseExpression
{
public function ev... |
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class UserActivate extends Notification
{
use Queueable;
/**
* Create a new notification instance.
*
* @param $user
* @return voi... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class DropAlatBeratHistyAndFoto extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::dropIfExists('al... |
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\ImageSearch\V20210120\Models\GeneralRecognitionResponseBody;
use AlibabaCloud\SDK\ImageSearch\V20210120\Models\GeneralRecognitionResponseBody\data\result;
use AlibabaCloud\Tea\Model;
class data extends Model
{
/**
* @va... |
<div id="sidebar-left" class="col-xs-2 col-sm-3 col-md-2">
<ul class="nav main-menu">
<li>
<a href="#dashboard" class="ajax-link">
<i class="fa fa-dashboard"></i>
<span class="hidden-xs">Dasbor</span>
</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle">
<i class="fa fa-shopp... |
<?php
/**
* The header for our theme
*
* This is the template that displays all of the <head> section and everything up until <div id="content">
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package WordPress
* @subpackage Twenty_Seventeen
* @since 1.0
* @versi... |
@extends('admin/index')
@push('css')
<!-- DataTables -->
<link href="/vendors/datatables.net-bs/css/dataTables.bootstrap.min.css" rel="stylesheet">
<!-- DataTables END -->
@endpush
@push('scripts')
<!-- DataTables -->
<script src="/vendors/datatables.net/js/jquery.dataTables.min.js"></script>
<script src="/vendors/d... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Product;
class HomeController extends Controller
{
public function index()
{
$posts_count = Product::all()->count();
return view('admin.home.index',[
'posts... |
<?php
namespace Elastica6\Test\Connection\Strategy;
use Elastica6\Connection\Strategy\CallbackStrategy;
use Elastica6\Connection\Strategy\Simple;
use Elastica6\Connection\Strategy\StrategyFactory;
use Elastica6\Test\Base;
/**
* Description of StrategyFactoryTest.
*
* @author chabior
*/
class StrategyFactoryTest e... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCitacionesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('citaciones',... |
<?php include_once "encabezado.php" ?>
<?php
include_once "base_de_datos.php";
$sentencia = $base_de_datos->query("SELECT * FROM productos;");
$productos = $sentencia->fetchAll(PDO::FETCH_OBJ);
?>
<div class="col-xs-12">
<h1>Productos</h1>
<div>
<a class="btn btn-success" href="./formulario.php">Nuevo <i class... |
<?php
namespace Google\AdsApi\AdManager\v202008;
/**
* This file was generated from WSDL. DO NOT EDIT.
*/
class BaseContact
{
public function __construct()
{
}
} |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\softDeletes;
class Comment extends Model
{
use SoftDeletes;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'text'
];
public ... |
<?php
namespace Slides\Saml2\Tests;
use PHPUnit\Framework\TestCase;
use Slides\Saml2\Auth;
class Saml2AuthTest extends TestCase
{
public function tearDown(): void
{
\Mockery::close();
}
public function testIsAuthenticated()
{
$oneLoginAuth = \Mockery::mock(\OneLogin\Saml2\Auth::c... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App;
class PaymentMethodController extends GenericController
{
function __construct(){
$this->model = new App\PaymentMethod();
$this->tableStructure = [
'columns' => [
],
'foreign_tables' => [
... |
<?php
function getUsers() {
return [
["name" => "Jean-luc", "password" => "Simplon1478963", "status" => "admin", "sexe" => "homme"],
["name" => "Claire45", "password" => "toutlesmatINS", "status" => "admin", "sexe" => "femme"],
["name" => "Doudou", "password" => "password", "status" => "user", "sexe" => ... |
<?php
namespace Drupal\Tests\blazy\Traits;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\blazy\BlazyManager;
/**
* A Trait common for Blazy related service managers.
*/
trait BlazyManagerUnitTestTrait {
/**
* Setup the unit manager.
*/
protected function setUpUnitServices() {
$thi... |
<?php
namespace Encore\Admin;
use Closure;
use Encore\Admin\Exception\Handle;
use Encore\Admin\Form\Builder;
use Encore\Admin\Form\Field;
use Encore\Admin\Form\Field\File;
use Encore\Admin\Form\Tab;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Http\Reques... |
<?php
/**
* Created by PhpStorm.
* User: luoruiyong
* Date: 2019/5/9/009
* Time: 14:16
*/
namespace app\index\model;
use think\Model;
class FeedbackPictureRelation extends Model
{
const TABLE_NAME = 'feedback_picture_relation';
const COLUMN_IMPEACH_ID = 'feedback_id';
const COLUMN_URL = 'url';
... |
<?php namespace ZN\IndividualStructures\Exception;
class InvalidArgumentException extends \InvalidArgumentException
{
use \ExclusionAbility;
} |
<?php
namespace Goxob\Cms\Admin;
use Goxob\Core\Helper\Data;
use Goxob\Core\Html\Toolbar;
use View, Input, Session, Redirect, Route, Request, Form, Event, File, Validator, Str, Lang;
class ContentController extends \Goxob\Core\Controller\AdminController {
} |
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>系统后台</title>
<meta name="robots" content="noindex,nofollow">
<link href="template/css/login.css" rel="stylesheet" />
<script type="text/javascript" src="js/login.js"></script>
</head>
<body>
<div class="topbg">
<span class="left"><a href="<?... |
<?php
use Illuminate\Http\Response;
use Laravel\Lumen\Http\ResponseFactory;
use PHPUnit\Framework\TestCase;
class ResponseFactoryTest extends TestCase
{
public function testMakeDefaultResponse()
{
$content = 'hello';
$responseFactory = new ResponseFactory();
$response = $responseFactor... |
<?php
declare(strict_types=1);
/**
* This file has been auto generated
* Do not change it.
*/
namespace Commercetools\Api\Models\ProductType;
use Commercetools\Api\Models\Common\ResourceIdentifier;
use Commercetools\Api\Models\Common\ResourceIdentifierModel;
use Commercetools\Base\DateTimeImmutableCollection;
use... |
<div class="form-group row">
<label class="col-sm-2 control-label">Descripción</label>
<div class="col-sm-8">
<input type="text" name="descripcion" value="{{ old('descripcion',@$semestre->descripcion) }}" placeholder="20xx-II" class="form-control">
</div>
</div>
<div class="form-group row">
<label class="col-... |
<?php
class ControllerStartupRouter extends Controller {
public function index() {
// Route
if (isset($this->request->get['route']) && $this->request->get['route'] != 'startup/router') {
$route = $this->request->get['route'];
} else {
$route = $this->config->get('action_default');
}
$data = array();... |
@foreach($comments as $comment)
<div comment-id="{{ $comment->id }}">
<p>
<span><b>{{ $comment->first_name }}</b></span>
<span style="float: right"><a href="#" class="delete-comment">x</a></span>
<span style="float: right; margin-right: 15px">{{ date_format($comment->crea... |
<?php
/** Basa Banyumasan (Basa Banyumasan)
*
* To improve a translation please visit https://translatewiki.net
*
* @ingroup Language
* @file
*
* @author Bawoor
* @author Slamet Serayu (on map-bms.wikipedia.org)
* @author StefanusRA
* @author לערי ריינהארט
*/
$fallback = 'jv, id'; |
@extends('layouts.app')
@section('css')
<link href="{{ asset('template/css/plugins/dataTables/datatables.min.css')}}" rel="stylesheet">
<link href="{{ asset('template/css/select2.min.css') }}" rel="stylesheet" />
@endsection
@section('content')
<div class="row wrapper border-bottom white-bg page-heading">
<div cla... |
<!doctype html>
<html lang="{{ app()->getLocale() }}">
<head>
<link rel="icon" href="img/chambita2.png" type="image/png" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scaled=1.0">
<title> Chambita </title>
<link rel ="stylesheet" href="css/estilosIndex.css">
... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class EnvioRequest extends FormRequest
{
public function rules()
{
return [
'user_id' => 'required',
'envio_tipo_id' => 'required',
'pago_tipo_id' => 'required',
'envio_direc... |
<?php
namespace Grafite\Cms\Models;
use Grafite\Cms\Models\CmsModel;
class Translation extends CmsModel
{
public $table = 'translations';
public $primaryKey = 'id';
protected $guarded = [];
public static $rules = [];
protected $fillable = [
'entity_id',
'entity_type',
... |
<!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">
<title>{{ config('app.name') }}</title>
<link href="{{ asset('front/css/bootstrap.min.css') }}" rel="stylesheet">
... |
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- Sidebar user panel -->
<div class="user-panel">
<div class="pull-left image">
<?php /*?><img src=... |
<?php
declare(strict_types=1);
namespace dev\winterframework\pdbc\core;
use dev\winterframework\pdbc\ResultSet;
interface RowCallbackHandler {
/**
* Process Single Row
*
* @param ResultSet $rs
*/
public function processRow(ResultSet $rs): void;
} |
<div class="quickview">
<div class="row-top">
<div class="col-xs-12 row-top-header">
<h3>Xem nhanh sản phẩm <b class="btn-close glyphicon glyphicon-remove-circle pull-right"></b></h3>
</div>
</div>
<div class="row-info">
<div class="col-xs-4 col-sm-3 col-md-3">
<img class="img-responsive" src="" alt="qui... |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +-------------------------------------------------... |
<?php
declare(strict_types=1);
namespace Kerox\Messenger\Response;
use Kerox\Messenger\Model\Persona;
class PersonaDataResponse extends AbstractResponse
{
private const DATA = 'data';
/**
* @var Persona[]
*/
protected $data = [];
/**
* @param array $response
*/
protected fu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.