text stringlengths 2 1.03M |
|---|
<?php
namespace Mockery\Generator\StringManipulation\Pass;
use Mockery\Generator\MockConfiguration;
class InterfacePass implements Pass
{
public function apply($code, MockConfiguration $config)
{
$interfaces = array_reduce((array) $config->getTargetInterfaces(), function ($code, $i) {
return $code . ", \\" . ... |
<?php declare(strict_types=1);
/**
* This file is part of the Yasumi package.
*
* Copyright (c) 2015 - 2019 AzuyaLabs
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Sacha Telgenhof <me@sachatelgenhof.com>
*/
namespace ... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('products', function (Bl... |
<?php
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'Twig\\' => array($vendorDir . '/twig/twig/src'),
); |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
* Pagination Config Bootstrap 3 CSS Style
* harviacode.com
*/
$config['query_string_segment'] = 'start';
$config['full_tag_open'] = '<nav><ul class="pagination" style="margin-top:0px">';
$config['full_tag_close'] = '</ul></nav>';
$co... |
<?php
namespace Config;
// Create a new instance of our RouteCollection class.
$routes = Services::routes();
// Load the system's routing file first, so that the app and ENVIRONMENT
// can override as needed.
if (file_exists(SYSTEMPATH . 'Config/Routes.php')) {
require SYSTEMPATH . 'Config/Routes.php';
}
/**
* --... |
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Validator;
class ValidationServiceProvider extends ServiceProvider
{
/**
* Register services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstra... |
@extends('public.layouts.app')
@section('content')
{{-- 1. Hottest table, with the most rated rumours --}}
@include ('public.tabs.hottestTab')
{{-- Button for the stock exchange tab --}}
@include ('public.tabs.partials.homeButton', [
'controller' => 'Frontend\TabsController@officialRankT... |
<?php
defined('SYSPATH') or die('No direct script access.');
class Controller_Admin_Site_Carrier extends Controller_Admin_Site
{
//设置站点默认物流
public function action_default()
{
if ($_POST)
{
$tam = 0;
$data = array();
$data['site_id'] = $this->site_id;
... |
@extends('layouts.app')
@section('contenido')
<div class="container">
<div class="row">
<div class="col s12 m8 offset-m2">
<div class="row"></div>
<div class="row"></div>
<div class="row"></div>
<div class="row"></div>
<div class="row"></div>
... |
<?php
namespace Application\Model;
class Form_Galeria extends \Zend\Form\Form {
public function __construct()
{
parent::__construct();
$this->add( [
'name' => 'descricao',
'type' => \Zend\Form\Element\Text::class,
'options' => [
'label' =>... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateScoresTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('scores', function (Blueprint $table) {
$tab... |
<?php
namespace app\controllers;
use app\models\SignupForm;
use Yii;
use app\models\User;
use app\models\UserSearch;
use yii\filters\AccessControl;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* UserController implements the CRUD actions for User model.
*/
class UserCo... |
<?php
namespace App\Imports;
use App\Employee;
use Maatwebsite\Excel\Concerns\ToModel;
use Maatwebsite\Excel\Concerns\WithBatchInserts;
use Maatwebsite\Excel\Concerns\WithChunkReading;
use Maatwebsite\Excel\Concerns\WithHeadingRow;
use Maatwebsite\Excel\Imports\HeadingRowFormatter;
class EmployeeCsvImport implements... |
<?php
namespace Drupal\fontawesome\Plugin\Field\FieldFormatter;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Field\FormatterBase;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Field\FieldDefinitionInterface;
use D... |
<?php
/**
* Shorthand way to display a Video Lead field.
*
* @since 1.0
*/
function video_lead_field( $field ) {
return page_lead_field( 'video_lead', $field );
}
/**
* Shorthand way to display a Video Lead field.
*
* @since 1.0
*/
function video_lead_fields() {
$bg_image = video_lead_field( 'bg_image' )... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateFercilitatorsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('fercilita... |
@extends('layouts.splashscreen')
@section('content')
<container id="container">
<div id="app"></div>
</container>
@endsection |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class CustomerSettings extends Model
{
protected $table = 'customer_setting';
protected $guarded = [];
public function customer(){
return $this->hasOne('App\User','id','user_id');
}
} |
<?php
$node = new SimpleXMLElement('<foo><bar>whoops</bar></foo>');
var_dump((string)$node); |
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use Tightenco\Ziggy\Ziggy;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for ... |
<?php $this->load->view("partial/header"); ?>
<script type="text/javascript">
$(document).ready(function (){
var table_columns = ["","smsmail_group_id", "name","","",""];
enable_sorting("<?php echo site_url("$controller_name/manage_group_send_SMS_email/1/t"); ?>", table_columns, 0,'smsmail_group_id','asc', '#so... |
--TEST--
parser - parses mustaches with this/foo
--DESCRIPTION--
parser - parses mustaches with this/foo
--SKIPIF--
<?php
if( !extension_loaded('handlebars') ) die('skip ');
if( !class_exists('Handlebars\Compiler') ) die('skip handlebars AST not enabled');
?>
--FILE--
<?php
use Handlebars\Compiler;
use Handlebars\Parse... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateOrderExtraTables extends Migration
{
public function up()
{
Schema::create('order_extra', function (Blueprint $table) {
$table->integer('order_detail_id');
$table->integer... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class CustomerWallet extends Model
{
protected $dates = ['created_at', 'updated_at'];
public function customer() {
return $this->belongsTo('App\Customer');
}
} |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunito:... |
@section('title', 'Modifier '. $deck->title)
<x-app-layout>
<x-slot name="header">
</x-slot>
<nav style="--bs-breadcrumb-divider: '>';" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ route('user') }}">Accueil</a></li>
<li class="breadcrum... |
<?php
$ap = $array['ap'];
$monapp = $array['monrev'];
$m = date('m');
$y = date('q');
$date = date('Y-m-d');
if($count =count($monapp))
{
//echo "<pre>";
$daterange = '';
$moneyrange = '';
$high = 5;
$total =0;
$... |
@extends('agent.layout.master')
@section('title') User Profile @stop
@section('page_name')
Company profile
<small></small>
@stop
@section ('breadcrumbs')
<li> <a href="{!! route('agent.dashboard') !!}"><i class="fa fa-dashboard"></i> Dashboard</a></li>
<li class="active"> {!! link_to_route... |
@extends('layout.master')
@section('title','Verify')
@section('style')
.signup_btn{
color: #fc3f00;
outline: medium none;
}
.signup_btn:hover{
color: #ff6533;
outline: medium none;
}
@endsection
@section('content')
<div class="container">
<br />
@include('messages.message')
<div class="row">
<d... |
<?php
/* TwigBundle:Exception:exception.json.twig */
class __TwigTemplate_201f937e070f50df0e3b5118f783071c6a46e135cd962c1f479211a89d83b535 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = arr... |
<?php
namespace App\Providers;
use Illuminate\Contracts\Events\Dispatcher as DispatcherContract;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* The event listener mappings for the application.
*
* @var... |
<?php
define('EmpireCMSAdmin','1');
require("../../class/connect.php");
require("../../class/db_sql.php");
require("../../class/functions.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
//验证用户
$lur=is_login();
$logininid=$lur['userid'];
$loginin=$lur['username'];
$loginrnd=$lur['rnd'];
$loginlevel=$lur[... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTableLaud extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('laud', function (B... |
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Coefficient_i
*
* @ORM\Table(name="coefficient_i")
* @ORM\Entity(repositoryClass="AppBundle\Repository\Coefficient_iRepository")
*/
class Coefficient_i
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @... |
<?php
namespace AppBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\DependencyInjection\ContainerInterface;
class FrontController extends Controller
{
public ... |
<?php
/**
* This file is part of the PHP Video Toolkit v2 package.
*
* @author Oliver Lillie (aka buggedcom) <publicmail@buggedcom.co.uk>
* @license Dual licensed under MIT and GPLv2
* @copyright Copyright (c) 2008-2014 Oliver Lillie <http://www.buggedcom.co.uk>
* @package PHPVide... |
<?php
$config = owly_kirki_config();
OWLY_Kirki::add_section( 'dt_site_layout_section', array(
'title' => esc_html__( 'Site Layout', 'owly' ),
'priority' => 20
) );
# site-layout
OWLY_Kirki::add_field( $config, array(
'type' => 'radio-image',
'settings' => 'site-layout',
'label' => esc_html__( 'Site ... |
<?php
namespace Tochka\Promises\Conditions;
use Tochka\Promises\Contracts\ConditionContract;
use Tochka\Promises\Core\BasePromise;
final class Positive implements ConditionContract
{
public function condition(BasePromise $basePromise): bool
{
return true;
}
} |
<div class="am-content">
<div class="page-head">
<h2>Edit Leave Type</h2>
<ol class="breadcrumb">
<li><a href="#">Home</a></li>
<li><a href="<?php echo base_url(); ?>maintenance/leaves">Leave Masterlist</a></li>
<li class="active">Modify</li>
</ol>
</div... |
<?php
/*
* This file is part of Sulu.
*
* (c) MASSIVE ART WebServices GmbH
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Sulu\Component\DocumentManager;
use ProxyManager\Proxy\LazyLoadingInterface;
use Sulu\Component\DocumentManage... |
@extends('layout-fontend.index')
@section('title','Chi tiết sim vinaphone')
@section('content')
<div class="wrapper mt-4">
<div class="clearfix">
<span class="text-uppercase" style="font-size: 15px;font-weight: 700;margin-left: 15px;">Sim Vinaphone</span>
<span class="float-right font-weight-bold te... |
<?php
namespace common\models;
use Yii;
use yii\behaviors\TimestampBehavior;
use yii\behaviors\BlameableBehavior;
use yii\db\Expression;
/**
* This is the model class for table "order_product".
*
* @property integer $id
* @property integer $order_id
* @property integer $product_id
* @property string $sku
* @p... |
<?php $__env->startSection('content'); ?>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">Dashboard</div>
<div class="card-body">
<?php if(session('status')): ... |
<?php
namespace App\Http\Controllers;
use Validator;
use App\Models\User;
use Firebase\JWT\JWT;
use Illuminate\Http\Request;
use Firebase\JWT\ExpiredException;
use Illuminate\Support\Facades\Hash;
class AuthController extends Controller
{
/**
* The request instance.
*
* @var \Illuminate\Http\Reque... |
<!--
=========================================================
Material Dashboard - v2.1.2
=========================================================
Product Page: https://www.creative-tim.com/product/material-dashboard
Copyright 2020 Creative Tim (https://www.creative-tim.com)
Coded by Creative Tim
==================... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddFieldDokumenToPenghargaanTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('p... |
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class ProductResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
... |
<?php
include("db.php");
if (isset($_REQUEST['id']) ){
$id= $_REQUEST['id'];
?>
<?php
$sql = mysqli_query($con,"SELECT * FROM `survey_questionnaire` WHERE survey_ID = $id");
$sql1 = mysqli_query($con,"SELECT * FROM `survey` WHERE survey_ID = $id");
$i = 1;
$title = mysqli_fetch_array($sql1);
?>
<h1 class="text-cente... |
@extends('template.template')
@section('content')
<div class="section">
<div class="container">
<div class="row">
<div class="col-sm-5">
<div class="basic-login">
<div class="form-group {{$errors->has('email') ? 'has-error' : ''}}">
{!! Fo... |
<?php
/*
* This file was automatically generated by sel-utils and
* released under the MIT License.
*
* License: https://github.com/sel-project/sel-utils/blob/master/LICENSE
* Repository: https://github.com/sel-project/sel-utils
* Generated from https://github.com/sel-project/sel-utils/blob/master/xml/protocol/... |
<?php
declare(strict_types=1);
return function (Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->import(__DIR__ . '/php73.php');
$services = $containerConfigurator->services();
// Requires use of null coalesce equal operator w... |
<?php
/**
* (c) shopware AG <info@shopware.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Configuration;
use Doctrine\ORM\Tools\SchemaTool;
use DoctrineExtensio... |
@extends('../layouts.purchaser-dashboard')
@section('page-title','Profile')
@section('content')
<div class="m-content">
<!--Begin::Companies List-->
<div class="row">
<div class="col-xl-12">
<!--begin::Portlet-->
<div class="m-portlet">
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Order_detail extends Model
{
protected $guarded = [];
public function product()
{
return $this->belongsTo(Product::class, 'product_id');
}
} |
<?php
namespace App\Policies;
use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;
use App\Models\Status;
class StatusPolicy
{
use HandlesAuthorization;
/**
* Create a new policy instance.
*
* @return void
*/
public function destroy(User $user, Status $status)
{... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Menu extends Model
{
public function submenus(){
return $this->hasMany('App\Submenu');
}
} |
<?php include ('include/header.php'); ?>
<!-- Main wrapper -->
<div class="wrapper" id="wrapper">
<?php include ('include/topheader.php'); ?>
<!-- Start Search Popup -->
<div class="brown--color box-search-content search_active block-bg close__top">
<form id="search_mini_form" class="min... |
@extends('layouts.admin')
@section('content')
<div id="msj-success" class="alert alert-success alert-dismissible" role="alert" style="display:none">
<h5> Usuario Actualizado Correctamente.</h5>
</div>
<div id="msj-errors" class="alert alert-danger fade in" style="display:none">
<a href="#" ... |
@extends('admin')
@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-body">
<div class="col-md-12">
<div class="table-responsive">
... |
<?php
namespace backend\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use backend\models\ParametersAl;
/**
* ParametersAlSearch represents the model behind the search form about `backend\models\ParametersAl`.
*/
class ParametersAlSearch extends ParametersAl
{
/**
* @inheritdoc
... |
@extends('master')
@section('content')
<div class="fullwidthbanner-container">
<div class="fullwidthbanner">
<div class="bannercontainer">
<div class="banner">
<ul>
@foreach($slide as $sl)
<!-- THE FIRST SLIDE -->
... |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
$config['ksoftcron'] = array(
'login' => 'Your_windows_admin_login',
'password' => 'Your _password',
'phpExePath' => 'Path_to_your_PHP_exe_file -f '
); |
<div class="col-md-4 col-sm-6">
<div class"form-group">
<label for="name_of_pet">
{!! trans('pet::pet.label.name_of_pet') !!}
</label><br />
{!! $pet['name_of_pet'] !!}
</div>
</div>
<div class="col-md-4 col-sm-6">
<div cla... |
<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title><?php echo ($title); ?></title>
<!... |
<?php
return [
"success" => "Success",
"error" => "Error",
"something-wrong" => "Some Wrong!",
"system-error" => "System Error",
'setting' => 'Setting',
'update' => 'Update',
'never' => "Never",
'enable' => 'Enable',
'disable' => 'Disable',
'app-name' => 'App Name',
'app... |
<?php
/**
* File containing the ezcWebdavOutputResult struct.
*
* @package Webdav
* @version 1.1.3
* @copyright Copyright (C) 2005-2009 eZ Systems AS. All rights reserved.
* @license http://ez.no/licenses/new_bsd New BSD License
*/
/**
* Struct representing a result to display.
*
* @version 1.1.3
* @package ... |
<?php
use yii\db\Migration;
/**
* Handles the creation of table `{{%catering_category}}`.
*/
class m200111_075755_create_catering_category_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->createTable('{{%catering_category}}', [
'id' => $thi... |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel app\models\DepartmentsSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'แผนก';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="departments-index">
<!-- <h1><?= Html::en... |
<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "contact_info".
*
* @property int $id
* @property string $email
* @property string $general_trading_phone
* @property string $it_phone
* @property string $facility_management_phone
* @property string $addtess
* @property int $st... |
<?php
if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
class Complaint extends Admin_Controller
{
public function __construct()
{
parent::__construct();
$this->load->library('form_validation');
}
public function index()
{
if (!$this->rbac->hasPri... |
<?php $__env->startSection('content'); ?>
<div id="app">
<div class="container">
<h1><a href="<?php echo e(url(config('dotenveditor.route.prefix'))); ?>"><?php echo e(env('APP_NAME',"")); ?> .env </a></h1>
<div class="row">
<div class="col-md-12">
<ul class="nav nav-tabs">
<li v-... |
<?php
namespace yii2module\account\module;
use Yii;
use yii\base\Module as YiiModule;
use yii\web\NotFoundHttpException;
/**
* user module definition class
*/
class Module extends YiiModule
{
public function beforeAction($action)
{
$controllerId = Yii::$app->controller->id;
$moduleId = 'account';
Yii::$a... |
<div class="p-6">
<h2 class="table-title">My Inbox</h2>
<div class="flex items-center justify-end px-4 py-3 text-right sm:px-6">
<a href="https://sois-gpoa.puptaguigcs.net/officer/events/partnership-requests" target="_blank">
<x-jet-button>
{{ __('Visit your GPOA Pending Part... |
<?php
/*
Gibbon, Flexible & Open School System
Copyright (C) 2010, Ross Parker
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... |
<?php
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
namespace Twilio\Rest\Api\V2010\Account;
use Twilio\Exceptions\TwilioException;
use Twilio\InstanceResource;
use Twilio\Values;
use Twilio\Version;
/**
* @property string $accountSid
* @property stri... |
<script type="text/javascript" src="<?php echo base_url();?>assets/js/jquery-2.2.3.min.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>assets/js/tether.min.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>assets/js/bootstrap.min.js"></script>
<script type="text/jav... |
<?php
/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
namespace Piwik\Plugins\CoreHome\Columns\Metrics;
use Piwik\DataTable\Row;
use Piwik\Piwik;
use Piwik\Plugin\ProcessedMetric;
/**
* The average number of actions... |
<?php namespace App\Database\Migrations;
class transaksi extends \CodeIgniter\Database\Migration{
public function up(){
$this->forge->addField([
'id'=>[
'type'=>'INT',
'constraint'=>11,
'unsigned'=>TRUE,
'auto_increment'=>TRUE
],
'id_barang'=>[
'type'=>'INT',
'constraint'=>11,
... |
@extends('layouts.auth')
@section('title', 'Forget Password')
@section('heading', 'Please provide your e-mail to reset your password.')
@section('content')
{!! Form::open() !!}
<div class="form-group">
{!! Form::label('email') !!}
{!! Form::text('email', null, ['class' => 'form-control']) !!... |
<!DOCTYPE html>
<html>
<head>
<title>Admin Panel </title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--Stylesheets Start-->
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/lightbox.css">
<link rel="stylesheet" type="text... |
<?php
namespace StarForged;
use StarForged\Tags\Div;
use StarForged\Tags\Tag;
class Search extends HtmlObject
{
/**
* Search constructor.
* @param array $classes
*/
public function __construct(array $classes = [])
{
$body = new Tag(Tag::INPUT, "", ["form-control", "search-input"]... |
<?php
declare(strict_types=1);
namespace Edde\Dto\Common;
use Edde\Dto\AbstractDto;
class SelectItemDto extends AbstractDto {
/**
* @var string
*/
public $id;
/**
* @var string
*/
public $code;
} |
<?php
namespace ContainerShpvg7F;
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 get_ServiceLocator_I83v4AqServic... |
<?php
use Illuminate\Database\Seeder;
use App\Models\Cate;
class CateSeeder extends Seeder {
/**
* Run the database seeds.
*
* @return void
*/
public function run() {
Cate::create([
'cname' => '租房',
'pid' => 0
]);
Cate::create([
... |
<?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
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class Posts extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
// blog table
Schema::create('posts', fu... |
<?php
require_once("includes/config.php");
if(!empty($_POST["bookid"])) {
$bookid=$_POST["bookid"];
$sql ="SELECT BookName,id FROM books WHERE (ISBNNumber=:bookid)";
$query= $dbh -> prepare($sql);
$query-> bindParam(':bookid', $bookid, PDO::PARAM_STR);
$query-> execute();
$results = $query -> fetchAll(PDO::FET... |
<?php
/*
* This file is part of the phpunit-mock-objects package.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Builder interface for unique identifiers.
*
* Defines the... |
<!doctype html>
<!--MainApp binds to the MainApp angular module in js/Main.js-->
<!--This serves as the root of our application structure-->
<html ng-app="MainApp">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Project CRUD</title>
<base href="/">
<link re... |
@extends('admin.layouts.header-footer')
@section('css')
<link rel="stylesheet" type="text/css" href="{{asset('admin/vendors/css/forms/selects/select2.min.css')}}">
@endsection
@section('content')
<div class="col-md-12">
<div class="card">
<div class="card-content collapse show">
... |
@extends('layouts.main')
@section('content')
<section class="section">
@if($currantWorkspace)
<div class="row mb-2">
<div class="col-sm-4">
<h2 class="section-title">{{ __('Clients') }}</h2>
</div>
<div class="col-sm-8">
@if($curran... |
<?php
namespace App;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Database\Eloquent\Model;
class User extends Model implements Authenticatable
{
use \Illuminate\Auth\Authenticatable;
public function posts()
{
return $this->hasMany('App\Post');
}
public function like... |
<!doctype html>
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
<title><?php echo e(con... |
<?php
/* @var $this yii\web\View */
/* @var $model app\models\NewsletterForm */
use yii\widgets\ActiveForm;
use yii\helpers\Html;
use yii\helpers\Url;
$this->title = 'Prehľad skupín | BP Mailer';
?>
<div class="site-index">
<h1>Prehľad skupín</h1>
<div class="container">
<table class="ta... |
<?php $this->load->view("partial/header"); ?>
<?php $this->load->view("partial/nav"); ?>
<section>
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="blog-post-area">
<h2 class="title text-center">Publicaciones</h2>
<?php
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DB;
use Session;
use App\Gambar;
class PengumumanController extends Controller
{
public function index()
{
$Pengumuman = DB::table('pengumuman')->orderBy('id', 'desc')->paginate(8);
return view('pengumuman', ['Pengumum... |
<?php
include "include.inc";
$logfile = dirname(__FILE__).'/php-fpm.log.tmp';
$port = 9000+PHP_INT_SIZE;
$cfg = <<<EOT
[global]
error_log = $logfile
[unconfined]
listen = 127.0.0.1:$port
pm.status_path = /status
pm = static
pm.max_children = 1
EOT;
$fpm = run_fpm($cfg, $tail);
if (is_resource($fpm)) {
fpm_disp... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\NewsSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="news-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
'options' => [... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class AuthController extends Controller
{
public function login(Request $request)
{
$http = new \GuzzleHttp\Client;
return config('services.passport.login_endpoint');
// return config('services.passport.client_secret');
// return ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.