text stringlengths 2 1.03M |
|---|
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use App\Blog;
class DashboardController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
public function index()
{
if (Auth::user()->admin)
... |
@extends('layout.main')
@section('container')
@if (Auth()->user()->role == 1)
@if (session()->has('success'))
<div class="alert alert-info alert-dismissible fade show" role="alert">
{{ session('success') }}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
@end... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Temp extends Model
{
protected $table = 'temp';
protected $guarded = [];
} |
<?php
namespace Container2oRP5bu;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getDoctrine_SchemaCreateCommandS... |
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Contact Page</title>
</head>
<body>
<h1... |
<?php
/**
* This file is part of Laravel Entrust,
* Handle Role-based Permissions for Laravel.
*
* @license MIT
* @package Jeankex\LaravelEntrust
* @category Commands
* @author Jeankex
*/
namespace Jeankex\LaravelEntrust\Commands;
use Illuminate\Support\Facades\Config;
use Illuminate\Console\... |
<?php
namespace App\Http\Controllers\ServerDS;
use App\Http\Controllers\Controller;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7;
use GuzzleHttp\Exception\ClientException;
use Illuminate\Http\Request;
class MethodController extends Controller
{
protected static $uri = 'http://localhost:8093/dschs/api/Tsvrmethod/';... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model as Model;
/**
* Class Pengurus
* @package App\Models
* @version October 18, 2020, 1:34 pm UTC
*
* @property string $nama
* @property integer $jabatan_id
* @property string $photo
* @property integer $divisi_id
*/
class Pengurus extends Model... |
<?php
namespace App\Models;
use CodeIgniter\Model;
class RegModel extends Model
{
protected $table = 'regencies';
protected $primaryKey = 'id';
protected $returnType = 'array';
protected $useSoftDeletes = false;
protected $useTimestamps = false;
} |
<?php namespace Olabs\Oims\Updates;
use Schema;
use October\Rain\Database\Updates\Migration;
class BuilderTableCreateOlabsOimsProjectAssetMonitoring extends Migration
{
public function up()
{
Schema::create('olabs_oims_project_asset_monitoring', function($table)
{
$table->engine = ... |
<?php
require_once '../../../core/controllers/ajaxController.php';
require_once '../../../core/models/ajaxModel.php';
class ajax{
public function ejecutaAjax() {
// Creacion de instancia de modellogin
$ajaxController = new \controllers\ajaxController();
$respuestaAj... |
@extends('emails.template')
@section('content')
<h2>Hello, {{ $orderItem->order->customer_name }}!</h2>
<div>
Your order item of <a href="{{ route('customer.tracking.detail', array('id' => $orderItem->order->id)) }}">{{ $orderItem->order->number() }}</a> is shipped via {{ $orderItem->jobTrackingMet... |
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... |
<?php
/**
* 数据验证
*
* @author: honglinzi
* @version: 1.0
*/
namespace app\admin\common;
class Validate
{
//规则数组,元素形式如: ['email' => 'require|email'],
public $rules = [];
//要检验的数据
public $data = [];
//场景,元素形式如: ['edit' => ['email', 'copyright']]
public $scene = [];
//活动的场景
public $at... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class DelegateCreateRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
*... |
<?php
// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
exit( 'Direct script access denied.' );
}
/**
* Widget class.
*/
class Fusion_Widget_Social_Links extends WP_Widget {
/**
* Custom social icon array.
*
* @static
* @access public
* @since 5.0.0
* @var array
*/
publ... |
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\SDK_DATA_1598238000612\Models;
use AlibabaCloud\Tea\Model;
use AlibabaCloud\SDK\SDK_DATA_1598238000612\Models\GrouprobotOapiBipaasNotifyParams;
class GrouprobotOapiBipaasNotifyRequest extends Model {
public function validate... |
<?php
namespace floor12\MindBox\Tests;
use floor12\MindBox\Exceptions\EmptyApiEndPointException;
use floor12\MindBox\Exceptions\EmptyApiKeyException;
use floor12\MindBox\MindBoxClient;
use floor12\MindBox\MindBoxRequest;
use GuzzleHttp\Client;
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\HandlerStack;
use Guzzl... |
<?php
namespace ChatReport;
use pocketmine\plugin\PluginBase;
use pocketmine\event\player\PlayerChatEvent;
use pocketmine\event\Listener;
use pocketmine\command\Command;
use pocketmine\command\CommandSender;
class Main extends PluginBase implements Listener{
private $last_id = 0;
private $last_chat;
pu... |
<?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
| ... |
@extends('layouts.admin.base', ['title' => 'Create new package'])
@section('content')
<div class="row">
<div class="col-md-8">
<packages-form mode="create"></packages-form>
</div>
<div class="col-md-4">
<errors></errors>
</div>
</div>
@endsection |
<?php
declare(strict_types=1);
namespace Objectiphy\Annotations\Tests\Entity;
use Objectiphy\Annotations\Tests\Annotations\Relationship as ObjectiphyRelationship;
use This\Silly\Ns;
use Another\Ns as OtherNamespace;
use My\Full\Classname as Another, \My\Full\NSname;
use TestEntity as AliasedTestEntity;
use Objectiph... |
<?php
/*
* This file is part of jwt-auth.
*
* (c) Sean Tymon <tymon148@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tymon\JWTAuth\Providers\Storage;
use BadMethodCallException;
use Tymon\JWTAuth\Contracts... |
@extends('layouts.dashboard')
@section('content')
<class class="content">
<div class="container-fluid" style="padding-top: 75px;">
<div class="row2">
<div class="col-md-8">
<div class="card">
<div class="card-header card-header-primary card-colecao">
<h4 class="card-title">Edi... |
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class SenderGiftCardMail extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @retur... |
<?php
namespace App\Model;
use Illuminate\Database\Eloquent\Model;
class ArticleCategory extends Model
{
//
protected $table="jy_article_category";
public $timestamps=false;
//获取分类列表的数据
public function getCategoryList()
{
return self::get()->toArray();
}
//获取分类详情
public ... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateDepartmentTeachersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('depa... |
<?php
namespace App\Libs;
use Monolog\Handler\StreamHandler;
use Monolog\Logger;
class Log {
const NAME_USER = 'user';
const NAME_STORE = 'store';
const LEVEL_ERROR = 'error';
const LEVEL_INFO = 'info';
const LEVEL_EMERGENCY = 'emergency';
private static $logInstances = array();
publi... |
<!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>Asheville Community Calendar</title>
<!-- Fonts -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/aja... |
<?php
declare(strict_types=1);
namespace Documents;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
/**
* @ODM\EmbeddedDocument
* @ODM\HasLifecycleCallbacks
*/
class Chapter
{
/** @ODM\Field(type="string") */
public $name;
/** @ODM\EmbedMany(targ... |
<?php
use Faker\Generator as Faker;
$factory->define(App\Orden_Plan_Type_Washes::class, function (Faker $faker) {
return [
//
];
}); |
<?php
$theme = array();
// Theme name
$theme['name'] = 'Overboard (Ukko2)';
// Description (you can use Tinyboard markup here)
$theme['description'] = 'Board with threads and messages from all boards';
$theme['version'] = 'v0.2';
// Theme configuration
$theme['config'] = array();
$theme['config'][] = ar... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model frontend\models\Location */
$this->title = 'Create Location';
$this->params['breadcrumbs'][] = ['label' => 'Locations', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="location-create">
<h4>Add New Merch... |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Login</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHft... |
<?php
namespace MagmaticLabs\Obsidian\Http\Controllers\API;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Relations\Relation;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use... |
<?php
/*
* This file is part of the Predis package.
*
* (c) Daniele Alessandri <suppakilla@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Predis\Protocol\Text;
use Predis\Helpers;
use Predis\Protocol\IRespo... |
<?php
namespace BitWasp\Bitcoin\Serializer\Block;
use BitWasp\Bitcoin\Block\FilteredBlock;
use BitWasp\Buffertools\BufferInterface;
use BitWasp\Buffertools\Buffertools;
use BitWasp\Buffertools\Parser;
class FilteredBlockSerializer
{
/**
* @var BlockHeaderSerializer
*/
private $headerSerializer;
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateGroupUserTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Dashboard extends CI_Controller {
public function index()
{
check_not_login();
$this->template->load('template', 'dashboard');
}
} |
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:71:"D:\wamp\www\huichaoxuan\public/../application/admin\view\link\link.html";i:1505464257;}*/ ?>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta... |
<?php
class Kwc_Shop_Cart_Form_Component extends Kwc_Form_Component
{
public static function getSettings($param = null)
{
$ret = parent::getSettings($param);
$ret['generators']['child']['component']['success'] = false;
$ret['placeholder']['submitButton'] = trlKwfStatic('Save');
$... |
<div style="margin: 0 auto; text-align: center; display: flex; justify-content: center; align-items: center; padding: 10% 0; font-size: 1.5rem;">
<h1 style="font-family: 'Bold'">Страница не найдена</h1>
</div> |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Get extends Resto_Controller {
public function index()
{
$this->_restrict_access('rest');
$this->load->model('table_model');
$this->table_model->set_datatable_param($this->_datatable_param());
$user_data = $... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class ProductPostRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return false;
}
/**
* G... |
<?php
namespace FaqsBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Product
*
* @ORM\Table(name="product", indexes={@ORM\Index(name="idCategory", columns={"categoryId"})})
* @ORM\Entity
*/
class Product
{
/**
* @var integer
*
* @ORM\Column(name="idProduct", type="integer", nullable=fals... |
<?php
/**
* TitleSchemaTest
*
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author Swagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Rustici Engine API
*
* Rustici Engine API
*
* OpenAPI spec version: 2.0
*
* Generated by: https://github.com... |
<?php
/* display/results/comment_for_row.twig */
class __TwigTemplate_18eee55d2a06a85d1a541e6113318128c2f416f871db8c574586e71cb66f4581 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = [
... |
<?php
namespace App\Controllers;
use CodeIgniter\RESTful\ResourcePresenter;
use App\Models\MenuModel;
class Menu extends ResourcePresenter
{
/**
* Present a view of resource objects
*
* @return mixed
*/
public function __construct()
{
$this->menu = new MenuModel();
}
... |
<?php
use yii\db\Migration;
/**
* Class m180925_111044_create_table_airports
*/
class m180925_111044_create_table_airports extends Migration
{
// Use up()/down() to run migration code without a transaction.
public function up()
{
$tableOptions = null;
if ($this->db->driverName === 'mys... |
<?php
namespace Server\Logic;
use EPS\Standard\Debug;
class Gateway
{
public function __construct($server)
{
$this->server = $server;
}
public function onConnect($sid, $connection)
{
Debug::info('Client Connect %s >> %s[%d]', $sid, $connection->ip, $connection->port);
$t... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Visitor_Count extends CI_Model{
public function visitor(){
$qry = $this->db->get('ci_sessions');
return $qry->num_rows();
}
public function unique_visit(){
//$sql = "SELECT DISTINC... |
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class SendMail extends Mailable
{
use Queueable, SerializesModels;
public $data;
/**
* Create a new message instance.
*
... |
<?php
use App\Http\Controllers\Admin\Courier\AdminCourierController;
use App\Http\Controllers\Admin\Courier\AdminRestaurantCourierController;
use App\Http\Controllers\Admin\Item\ItemController;
use App\Http\Controllers\Admin\Item\MenuItemController;
use App\Http\Controllers\Admin\Restaurant\MenuRestaurantController;
u... |
<?php
namespace Navindex\AuthX\Entities;
use CodeIgniter\Entity;
abstract class BaseEntity extends Entity
{
/**
* Holds the current values of all class vars.
*
* @var array
*/
protected $attributes = [];
/**
* Maps names used in sets and gets against unique
* names within the class, allowing independ... |
@extends('layouts.app')
@section('content')
<div class="flex justify-center">
<div class="w-8/12 bg-white p-6 rounded-lg">
Home
</div>
</div>
@endsection |
<header>
<nav class="wrap">
<img src="{{ asset('img/dc-logo.png') }}" alt="">
<ul>
<li><a href="{{ route('characters')}}" class="{{ (request()-> is ('characters')) ? 'active' : ' ' }}">CHARACTERS</a></li>
<li><a href="{{ route('comics')}}" class="{{ (request()-> is ('/')) ?... |
<?php
namespace App\Application\Requests\Admin\Country;
use Illuminate\Foundation\Http\FormRequest;
class AddRequestCountry extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
... |
@foreach($category_news as $value)
<li data-page="{{ $category_news->currentPage() }}">
<a href="{{ route('news.view').'/'.$value['attributes']['id'] }}" rel="bookmark">
<div class="row-widget-img left relative">
<img width="300" height="180" src="{{ route('images.q').'?q='.$valu... |
@extends('cooperation.layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">@lang('auth.email.form.header')</div>
<div class="panel-body">
... |
<?php
/**
* Custom template tags for this theme.
*
* Eventually, some of the functionality here could be replaced by core features.
*
* @package under-material
*/
if ( ! function_exists( 'under_material_posted_on' ) ) :
/**
* Prints HTML with meta information for the current post-date/time and author.
*/
funct... |
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Mail\SendMailExpirationDate;
use App\Mail\SendMailTwoDaysExpiration;
use Illuminate\Support\Facades\Mail;
use Twilio\Rest\Client;
use DB;
class CheckExpirationDate extends Command
{
/**
* The name and signature of the console comm... |
<?php
$names = array(
"johnnatan_messias" => array("<strong>Johnnatan Messias</strong>", "http://johnnatan.me"),
"fabricio_benevenuto" => array("Fabrício Benevenuto", "http://homepages.dcc.ufmg.br/~fabricio"),
"mirella_moro" => array("Mirella M. Moro", "http://homepages.dcc.ufmg.br/~mirella"),
"ricardo_rabelo" ... |
<?php
/**
* Checks that control structures have boolean operators in the correct place.
*
* @author Greg Sherwood <gsherwood@squiz.net>
* @copyright 2006-2019 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
*/
namespace PHP_CodeS... |
<?php
declare(strict_types=1);
namespace BusFactor\Aggregate;
trait AggregateRootTrait
{
use AggregateEntityTrait;
/** @var string */
private $aggregateRootTrait_aggregateId;
/** @var int */
private $aggregateRootTrait_version = 0;
/** @var RecordedEvent[] */
private $aggregateRootTrai... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateChatGroupsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('chat_groups'... |
<?php
/**
* CDbHttpSession class
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright 2008-2013 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
/**
* CDbHttpSession extends {@link CHttpSession} by using database as session data storage.
*
* CDbHttp... |
<?php
namespace Encore\LargeFileUpload\Http\Controllers;
use Encore\Admin\Layout\Content;
use Illuminate\Routing\Controller;
class LargeFileUploadController extends Controller
{
public function index(Content $content)
{
}
} |
<?php class Control extends MX_Controller
{
function __construct()
{
parent::__construct();
$this->load->helper(array('form', 'url'));
$this->load->library('form_validation');
$this->load->model('control/Control_model');
}
// For Auth
function login()
{
... |
@extends('app')
@section('title', 'projects.edit')
@section('breadcrumb')
<li><a href="/projects">projects</a></li>
<li><a href="/projects/{{ $project->id }}">{{ $project->name }}</a></li>
<li class="active">edit</li>
@stop
@section('content')
<h1>projects.edit</h1>
{!! Form::model($project, ['id' => 'form'... |
<?php
/**
* Decorator/extender XSLT processor specifically for HTML documents.
*/
class ConfigDoc_HTMLXSLTProcessor
{
/**
* Instance of XSLTProcessor
*/
protected $xsltProcessor;
public function __construct($proc = false) {
if ($proc === false) $proc = new XSLTProcessor();
$th... |
<?php
/**
* @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
*
* @author Julius Härtl <jus@bitgrid.net>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* pu... |
<?php
namespace App\Domain\ApiClient\WeatherApiClient\Response;
class Main
{
/**
* Temperature.
*
* Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheit.
*
* @var float
*/
private $temperature;
/**
* Humidity, %.
*
* @var int
*/
private $humidi... |
<?php
/*
* WellCommerce Open-Source E-Commerce Platform
*
* This file is part of the WellCommerce package.
*
* (c) Adam Piotrowski <adam@wellcommerce.org>
*
* For the full copyright and license information,
* please view the LICENSE file that was distributed with this source code.
*/
namespace WellCommerce\... |
<!-- jQuery -->
<script src="{{asset('Backend/plugins/jquery/jquery.min.js')}}"></script>
<!-- Bootstrap 4 -->
<script src="{{asset('Backend/plugins/bootstrap/js/bootstrap.bundle.min.js')}}"></script>
<!-- AdminLTE App -->
<script src="{{asset('Backend/dist/js/adminlte.min.js')}}"></script>
@stack('scripts') |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Patilla;
use Illuminate\Support\Facades\Auth;
class PatillaController extends Controller
{
public function cargarPatilla(Request $request){
if(Auth::check() && Auth::user()->isAdmin()){
$request=$request->all();
... |
<?php
namespace Speicher210\CloudinaryBundle\Tests\DependencyInjection\Compiler;
use PHPUnit\Framework\TestCase;
use Speicher210\CloudinaryBundle\DependencyInjection\Compiler\RemoveTwigExtensionPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class RemoveTwigExtensionPassTest extends TestCase
{
... |
<footer class="container-fluid text-center" style="background-color: #222; color: white;">
<p>Basketball Wear and Accessories</p>
<form class="form-inline">Get deals:
<div class="input-group">
<input type="email" class="form-control" size="50" placeholder="Email Address">
<div class="input-group-btn">
... |
<ul class="msg" id="cmt<?php echo $comment->ID; ?>">
<li class="msgname"><img class="avatar" src="<?php echo $comment->Author->Avatar; ?>" alt="" width="32"><span class="commentname"><a href="<?php echo $comment->Author->HomePage; ?>" rel="nofollow" target="_blank" class="mcolor"><?php echo $comment->Author->St... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Simple Login with CodeIgniter - Private Area</title>
</head>
<body>
<h1>Home</h1>
<h2>Welcome <?php echo $username; ?>!</h... |
<?php namespace DiegoCaprioli\Larachimp\Services;
use DiegoCaprioli\Larachimp\Traits\BasicLogging;
use \GuzzleHttp\Client;
use \Illuminate\Contracts\Logging\Log;
use \Illuminate\Support\Collection;
/**
* Handles the basic interaction with Mailchimp v3 API
*/
class Larachimp {
/**
* Base URI for Mailchimp ... |
<div class="theme-hero-area theme-hero-area-primary">
<div class="theme-hero-area-bg-wrap">
<div class="theme-hero-area-bg ws-action" style="background-image:url({{asset('img/bg.jpg')}});"
data-parallax="true"></div>
<div class="theme-hero-area-mask theme-hero-area-mask-half"></div>
... |
<?php
/**
* This file is part of Notadd.
*
* @author TwilRoad <heshudong@ibenchu.com>
* @copyright (c) 2017, notadd.com
* @datetime 2017-05-23 17:14
*/
namespace Notadd\Mall\Handlers\Seller\Store\Dynamic;
use Notadd\Foundation\Passport\Abstracts\Handler;
/**
* Class ListHandler.
*/
class ListHandl... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Score extends Model
{
public $id_node;
public $id_node1;
public $id_node2;
public $score;
use HasFactory;
} |
<?php
namespace Application\BDEBundle\Admin;
use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Show\ShowMapper;
class EventCategoryAdmin extends Admin
{
/**
* @param D... |
<?php
use yii\db\Migration;
/**
* Class m210603_204434_comm_author
*/
class m210603_204434_comm_author extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('comment', 'author', $this->text());
}
/**
* {@inheritdoc}
*/
public func... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class UserPermission extends Model
{
protected $table = 'user_permission';
} |
--TEST--
Binary type: subtype 0x03
--DESCRIPTION--
Generated by scripts/convert-bson-corpus-tests.php
DO NOT EDIT THIS FILE
--FILE--
<?php
require_once __DIR__ . '/../utils/tools.php';
$canonicalBson = hex2bin('1D000000057800100000000373FFD26444B34C6990E8E7D1DFC035D400');
$canonicalExtJson = '{"x" : { "$binary" : {"... |
<?php
namespace App\Http\Controllers\Authentication;
use App\Helpers\GlobalFunction;
use App\Http\Controllers\Controller;
use App\Http\Models\Role;
use App\Http\Models\User;
use App\Mail\SignUpEmail;
use Carbon\Carbon;
use \Guzzle;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
use Illumina... |
<!-- Logout Modal-->
<div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Ingin Kel... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
\App\Models\User::factory(10)->create();
}
} |
<?php
declare(strict_types=1);
namespace Elephox\Web;
use Elephox\Collection\ArrayList;
use Elephox\Collection\EmptySequenceException;
use Elephox\Support\Contract\ExceptionHandler;
use Elephox\Web\Contract\RequestPipelineEndpoint;
use Elephox\Web\Contract\WebMiddleware;
class RequestPipelineBuilder
{
/**
* @var ... |
<?php require_once('Connections/localhost.php'); ?>
<?php
if (!isset($_SESSION)) {
session_start();
}
$MM_authorizedUsers = "";
$MM_donotCheckaccess = "true";
// *** Restrict Access To Page: Grant or deny access to this page
function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
// For security, st... |
<?php
namespace App\Http\Controllers;
use App\Category;
use App\Menu;
use App\NavigationMenu;
use Illuminate\Http\Request;
class TermsController extends Controller
{
public function companyTerms(){
$menuNav = Menu::all();
$menuNavegacao = NavigationMenu::all();
//dd($menuNavegacao[0]->... |
<?php
final class PhabricatorObjectMentionedByObjectEdgeType
extends PhabricatorEdgeType {
const EDGECONST = 51;
public function getInverseEdgeConstant() {
return PhabricatorObjectMentionsObjectEdgeType::EDGECONST;
}
public function shouldWriteInverseTransactions() {
return true;
}
public fun... |
<?php
declare(strict_types=1);
namespace Meetup\Repository;
use Meetup\Entity\Meetup;
use Doctrine\ORM\EntityRepository;
final class MeetupRepository extends EntityRepository
{
public function persist($meetup) : void
{
$this->getEntityManager()->persist($meetup);
$this->getEntityManager()->... |
<?php
declare (strict_types=1);
namespace RectorPrefix20210701\Symplify\SmartFileSystem;
use RectorPrefix20210701\Nette\Utils\Strings;
use RectorPrefix20210701\Symfony\Component\Filesystem\Exception\IOException;
use RectorPrefix20210701\Symfony\Component\Filesystem\Filesystem;
/**
* @see \Symplify\SmartFileSystem\Te... |
<?php
declare(strict_types=1);
namespace Pggns\MidocoApi\Order\StructType;
use InvalidArgumentException;
use WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for RulesetDTO StructType
* @subpackage Structs
*/
class RulesetDTO extends AbstractStructBase
{
/**
* The content
* @var st... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\Task */
$this->title = 'Update Task: ' . $model->title;
$this->params['breadcrumbs'][] = ['label' => 'Tasks', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->title, 'url' => ['view', 'id' => $model->id]];... |
<?php
class ModelExtensionReportSale extends Model {
public function getTotalSales($data = array()) {
$sql = "SELECT SUM(total) AS total FROM `" . DB_PREFIX . "order` WHERE order_status_id > '0'";
if (!empty($data['filter_date_added'])) {
$sql .= " AND DATE(date_added) = DATE('" . $this->db->escape($data['filt... |
<?php
namespace app\learn\validate;
use app\learn\exception\ParameterException;
use think\Request;
use think\Validate;
class BaseValidate extends Validate
{
/*
* 构造简便check方法
* $result = $validate->batch()->check($date);
* 首先获得数据,然后调用验证层验证数据
* */
public function goCheck(){
$reques... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.