text
stringlengths
2
1.03M
<?php include(__DIR__."/config.inc"); $slug=CAnassa::readSessionFromGet("slug", null); $content=new CContent($anassa["db"]); $user=new CUser($anassa["db"]); $sql="SELECT * FROM ".ANASSA_TABLE_CONTENT." WHERE _type=? AND _published<=? ORDER BY _published DESC"; $blogs=$content->getSQL($sql, array("post", CAnassa:...
<?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 Doctrine\ORM\Tools\Sch...
@extends('layouts.appAdmin') @section('css') <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto|Varela+Round"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?famil...
@include('pomorye.header') <div class="content"> <div class="breadcrumbs"> <span class="breadcrumbs__item"><a href="">Главная</a></span> / <span class="breadcrumbs__item"><a href="">Бизнес и экономика</a></span> / <span class="breadcrumbs__item"><a href="">Подкатегория</a></span> </div> <div class="single...
<?php namespace app\modules\nsautexter; use yii\web\AssetBundle; /** * @author Qiang Xue <qiang.xue@gmail.com> * @since 2.0 */ class TexterAsset extends AssetBundle { public $sourcePath = '@app/modules/nsautexter'; public $js = [ 'js/texter.js', ]; public $depends = [ 'yii\web\YiiAss...
<?php namespace App\Models; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; class User extends Authenticatable { use HasFactory, Notifiable; protected $table...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreatePropertyConstructionReportTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { if (!Schema:...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="author" content="Mukul Kant"> <link rel="shortcut icon" href="{{URL::to('/')}}/images/favicon.png"> <title>Welcome to Karma Circle</title> <link href="{{URL::to('/')}}/css/font.css" rel="stylesheet"> </head> <body> <div style="width:640px;ma...
<?php use Illuminate\Database\Seeder; class GradeLevelsTableSeeder extends Seeder { /** * Auto generated seed file * * @return void */ public function run() { \DB::table('grade_levels')->delete(); \DB::table('grade_levels')->insert(array ( ...
<main id="main-container"> <div class="content"> <div class="block"> <?php $success_msg= $this->session->flashdata('success_msg'); $error_msg= $this->session->flashdata('error_msg'); if($success_msg){ ...
<?php declare(strict_types=1); namespace Doctrine\Tests\ORM\Functional; use Doctrine\ORM\Exception\MissingIdentifierField; use Doctrine\ORM\Exception\UnrecognizedIdentifierFields; use Doctrine\ORM\Query\QueryException; use Doctrine\Tests\IterableTester; use Doctrine\Tests\Models\Navigation\NavCountry; use Doctrine\T...
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" > <!--jQuery library--> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <!--Latest compiled and minified JavaS...
admin haha
@extends('layouts.app') {{--Important Variables--}} <?php $moduleName = " Ledger Group"; $createItemName = "Create" . $moduleName; $breadcrumbMainName = $moduleName; $breadcrumbCurrentName = " Trashed"; $breadcrumbMainIcon = "fas fa-file-invoice-dollar"; $breadcrumbCurrentIcon = "archive"; $ModelName = 'App\Inco...
<?php declare (strict_types=1); namespace Ssch\TYPO3Rector\Rector\v8\v1; use PhpParser\Node; use PhpParser\Node\Expr\ArrayDimFetch; use PhpParser\Node\Expr\ConstFetch; use PhpParser\Node\Expr\Variable; use PhpParser\Node\Scalar\String_; use Rector\Core\Rector\AbstractRector; use Symplify\RuleDocGenerator\ValueObject\...
<?php /** * @copyright Frederic G. Østby * @license http://www.makoframework.com/license */ namespace mako\validator\rules; use function preg_match; use function sprintf; /** * Alpha unicode rule. */ class AlphaUnicode extends Rule implements RuleInterface { /** * {@inheritDoc} */ public function valid...
{{-- resources/views/admin/dashboard.blade.php --}} @extends('adminlte::page') @section('title', 'Dashboard') @include('layouts.sidebar') @section('content_header') <div class="container"> <h1 class="mb-3">Create a Doctor</h1> </div> @stop @section('content') <div class="container"> @if ($errors->any()) ...
<?php /** * This file is part of the Propel package. * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @license MIT License */ namespace Propel\Generator\Platform; use Propel\Generator\Config\GeneratorConfigInterface; use Propel\Gen...
<?php use Illuminate\Database\Seeder; class VendorsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // DB::table('vendors')->delete(); $vendors = [ ['name' => 'Avijit Bhattachajee','adress'=>'sekhpara...
<link href="{{ asset('frountend/css/bootstrap.css') }}"rel="stylesheet"> <link href="{{ asset('frountend/assetsDashbord/css/main.css') }}"rel="stylesheet"> <link href="{{ asset('frountend/assetsDashbord/css/util.css') }}"rel="stylesheet"> <link href="{{ asset('frountend/assetsDashbord/css/mycss.css') }}"rel="styleshee...
<?php /** * Tplfunc Runtime Methods callTemplateFunction * * @package Smarty * @subpackage PluginsInternal * @author Uwe Tews * **/ class Smarty_Internal_Runtime_TplFunction { /** * Array of source information for known template functions * * @var array */ private $tplFunction...
@extends('layouts.back-end.app') @section('title', \App\CPU\translate('Order Details')) @push('css_or_js') <link href="{{asset('assets/back-end')}}/vendor/datatables/dataTables.bootstrap4.min.css" rel="stylesheet"> @endpush @section('content') <div class="content container-fluid"> <!-- Page Header --...
<?php declare(strict_types=1); namespace PHPJava\Kernel\Mnemonics; use PHPJava\Kernel\Structures\IntegerInfo; use PHPJava\Kernel\Structures\StringInfo; use PHPJava\Kernel\Structures\Utf8Info; use PHPJava\Kernel\Types\Float_; use PHPJava\Kernel\Types\Int_; final class _ldc_w extends AbstractOperationCode implements Op...
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Session; class CheckIsCustomer { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ pu...
@extends('app.dashboard.dashboard') @section('dyanamicpage') <div class="content-wrapper"> <div class="dashboard-header d-flex flex-column grid-margin"> <div class="d-flex align-items-center justify-content-between flex-wrap border-bottom pb-3 mb-3"> <div class="d-flex align-items-center"> ...
<?php /* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * 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/LICENS...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class todo extends Model { use HasFactory; protected $table='mytodo'; protected $fillable=[ 'todo','file','file_name','updatedAt','createdAt' ]; }
<?php /** * WooCommerce Admin: Migrate from Shopify to WooCommerce. * * Adds a note to ask the client if they want to migrate from Shopify to WooCommerce. */ namespace Automattic\WooCommerce\Admin\Notes; defined( 'ABSPATH' ) || exit; /** * Migrate_From_Shopify. */ class MigrateFromShopify { /** * Note trait...
<?php namespace RectorPrefix20210609\TYPO3\CMS\Core\Authentication; if (\class_exists('TYPO3\\CMS\\Core\\Authentication\\BackendUserAuthentication')) { return; } class BackendUserAuthentication { /** * @var array */ public $userTS = ['tx_news.' => ['singleCategoryAcl' => 1]]; /** * @ret...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateMaeCategoriesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('mae_categ...
<?php declare(strict_types=1); namespace App\ValueObject\User; class Status { const NOT_ACTIVE = 0; const ACTIVE = 1; private int $value; private function __construct(int $value) { $this->value = $value; } public static function notActive(): self { return new self(se...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Notification extends Model { use HasFactory; // テーブル名 protected $table = 'notifications'; // 可変項目 protected $fillable = [ 'modified_date', 'bo...
<?php /** * 编辑微信账号 * @authors Amos (szhcool1129@sina.com) * @date 2018-01-31 16:04:42 * @version $Id$ */ $this->title = '微信管理-编辑'; use yii\helpers\Url; ?> <div class="page-bar"> <ul class="page-breadcrumb"> <li> <a href="<?php echo Url::to(['/site']); ?>">首页</a> <i class="fa...
<?php namespace backend\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; /** * UploadSearch represents the model behind the search form about `common\models\Upload`. */ class UploadSearch extends Upload { /** * @inheritdoc */ public function rules() { return [ ...
<!--========================== Services Section ============================--> <section id="services"> <div class="container wow fadeInUp"> <div class="row"> <div class="col-md-12"> <h3 class="section-title">Our Services</h3> <div class="section-title-divider"></div> ...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | DATABASE CONNECTIVITY SETTINGS | ------------------------------------------------------------------- | This file will contain the settings needed to access your database. | |...
<?php namespace Tests\Feature\Platform; use App\Entities\Domain; use App\Entities\DomainOrganization; use App\Entities\Organization; use App\Entities\OrganizationUser; use App\Entities\Url; use Illuminate\Auth\Access\AuthorizationException; use Tests\Traits\RefreshDatabase; use Illuminate\Http\Response; use Illuminat...
<?php namespace Cygnite\Http; use Cygnite\Http\Requests\RequestMethods; /** * Class CsrfValidator. */ class CsrfValidator { protected $token; protected $spoofedMethods = [RequestMethods::DELETE, RequestMethods::PATCH, RequestMethods::PUT]; protected $session; protected $randomToken; public ...
<!--<td><a href="--><?//=\yii\helpers\Url::to(['add'])?><!--" class="btn btn-success btn-sm">注册</a>--> <h1>管理员列表</h1> <div class="table-responsive"> <table class="table table-bordered table-responsive table-hover"> <tr> <td>用户序号</td> <td>用户姓名</td> <!-- <td>所属角色</td>--> ...
<?php // ini_set('display_errors', 'On'); // error_reporting(E_ALL); if (isset($_POST['signup-submit'])) { require 'dbh.inc.php'; $username = $_POST['uid']; $firstName = ""; $lastName = ""; $email = $_POST['mail']; $altEmail = ""; $password = $_POST['pwd']; $passwordRepeat = $_POST['pwd-repeat']; $ha...
<?php return [ 'name' => [ 'name' => 'Name', 'instructions' => [ 'roles' => 'Specify a short descriptive name for this role.', ], ], 'description' => [ 'name' => 'Description', 'instructions' => [ 'roles' => '...
<?php return MS\Mod\B\Operation\L\Machine::getTableRaw();
@extends('layouts.master') @section('upload_videos_menu') active open @endsection @section('content') <!-- <div style="color:red;position:fixed; top:35px;right:0;left:0;z-index:21">123</div> --> <section id="content"> <!-- The classic file input element we'll enhance to a file pond --> <input type="file" cla...
<?php namespace App\Http\Controllers; use App\Exports\ClientesExport; use App\Exports\ReporteGeneral2Export; use App\Exports\ReporteGeneralExport; use App\Exports\RolesExport; use App\Exports\ServiciosExport; use App\Exports\SupervisoresExport; use App\Exports\UsersExport; use Illuminate\Http\Request; use Maatwebsite...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateLMetaTypesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('l_meta_types...
<?php require_once __DIR__ . '/Dashboard/bootstrap.php'; $sandboxFiles = new Listing($_SERVER['DOCUMENT_ROOT']); $list = $sandboxFiles->get_files(8, array('recursive_size' => true)); include_once "./Dashboard/views/main.php";
<?php namespace ascio\lib; use ascio\v3\SslCertificateOrderRequest; require(__DIR__."/../vendor/autoload.php"); Ascio::setConfig(); $order = new SslCertificateOrderRequest(); $order->db()->_id = 1; $order->db()->syncFromDb(); $result = $order->properties()->toArray();
@if( (isset($errors) && count($errors) > 0) || Session::has('status')) <div class="row"> <div class="col-md-12"> <div class="alert alert-dismissable alert-{{ Session::get('status') }}"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidde...
<?php //use voku\htmlmin\src\helper\HtmlMin; $id = $_POST["id"]; if ($id!="") { $this->db->where("id", $id); $d = $this->db->get("tm_persuratan")->row_array(); $nama_surat = $d["nama_surat"]; $template = $d["template"]; $form = $d["form"]; ...
<?php /* WebProfilerBundle:Profiler:header.html.twig */ class __TwigTemplate_5ba56f89f37fd23adf8fc686821651824049c89aad598d36292a5b67f74c453b extends Twig_Template { private $source; public function __construct(Twig_Environment $env) { parent::__construct($env); $this->source = $this->get...
<form action="<?= site_url('setting') ?>" method="POST" id="form-setting"> <?= _csrf() ?> <?= _method('put') ?> <div class="card mb-3"> <div class="card-body"> <h5 class="card-title">Setting Basic</h5> <div class="row"> <div class="col-md-6"> ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AddEmployeesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('employees', func...
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Providers\RouteServiceProvider; use App\Models\User; use Illuminate\Foundation\Auth\RegistersUsers; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; class RegisterController extends Controller { ...
<?php /** * Locale data for 'ki'. * * This file is automatically generated by yiic cldr command. * * Copyright © 1991-2007 Unicode, Inc. All rights reserved. * Distributed under the Terms of Use in http://www.unicode.org/copyright.html. * * Copyright © 2008-2011 Yii Software LLC (http://www.yiiframework.com/lic...
<?php /* +---------------------------------------------------------------------------+ | OpenX v2.8 | | ========== | | ...
<?php namespace App\Models; use PDO; use \App\Token; use \Core\View; use \App\Mail; use \App\Auth; /** * Example user model * * PHP version 7.0 */ class User extends \Core\Model { /** * Error messages * * @var array */ public $errors = []; /** * Class constructor * * @param array...
<?php namespace App\Http\Controllers; use App\Log; use Illuminate\Http\Request; class LogController extends Controller { public function __construct() { $this->middleware('auth'); } public function logs() { $logs = Log::orderBy('created_at' , 'DESC')->get(); $title = 'Log History'; $font_style = "fa fa-...
<?php namespace App\Facades; use App\Services\DingTalkAuthCorp\DingTalkAuthCorpService; use App\Services\DingTalkAuthCorp\Models\GetAccessTokenByCorpIdRequest; use App\Services\DingTalkAuthCorp\Models\GetAccessTokenByCorpIdResponse; use Illuminate\Support\Facades\Facade; /** * Class DingTalkAuthCorp * @package App...
<?php /** * TemplatesService * PHP version 5 * * @category Class * @package InfluxDB2 * @author OpenAPI Generator team * @link https://openapi-generator.tech */ /** * Influx OSS API Service * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) ...
<?php namespace Illuminate\Foundation; use Closure; use RuntimeException; use Illuminate\Support\Arr; use Illuminate\Support\Str; use Illuminate\Http\Request; use Illuminate\Support\Collection; use Illuminate\Container\Container; use Illuminate\Filesystem\Filesystem; use Illuminate\Log\LogServiceProvider; use Illumin...
<?php /** * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\View\Element; /** * Class Text */ class Text extends \Magento\Framework\View\Element\AbstractBlock { /** * Set text data * * @param string $text * @return $this ...
<?php use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. T...
<?php if(isset($_POST['submit'])){ $jari =$_POST['jari']; $phie =22/7; // menghitung luas lingkaran $luas_lingkaran = $phie*($jari*$jari); echo "Hasil hitung luas lingkaran [ $phie x $jari x $jari ] = $luas_lingkaran"; ...
<?php namespace app\index\model; use app\index\model\Base; use app\index\model\Tag; use app\index\model\Attr as AttrModel; use app\index\model\Cart as CartModel; /** * */ class Goods extends Base { public $table = "goods"; public function changelist($thelists){ $tag_obj = new Tag; $tag_list...
<?php namespace Botamp\Botamp\Model; use Magento\Checkout\Model\ConfigProviderInterface; class OrderNotificationsConfigProvider implements ConfigProviderInterface { private $me; private $configHelper; private $sessionHelper; public function __construct( \Botamp\Botamp\ApiResource\Me $me, ...
<?php define('LIB_PATH', dirname(__FILE__) . '/../lib'); define('BIN_PATH', dirname(__FILE__) . '/../bin'); set_include_path(get_include_path() . PATH_SEPARATOR . LIB_PATH ); include_once 'dev.php'; Dev::getInstance() ->add('polls') ->dispatch();
@extends('admin.master') @section('content') <div class="content-header row"> </div> <div class="content-body"> <!-- Dashboard Ecommerce Starts --> <section id="dashboard-ecommerce"> <div class="row"> <div class="col-lg-3 col-sm-6 col-12"> <div class="card"> ...
<?php namespace App\Http\Controllers\Api; use App\Bookable; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class BookablePriceController extends Controller { /** * Handle the incoming request. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Respons...
<div class="form-group"> {!! Form::label('title', 'Title:') !!} {!! Form::text('title', null, ['class' => 'form-control']) !!} <small class="text-danger">{{ $errors->first('title') }}</small> </div> <div class="form-group"> {!! Form::label('body', 'Body:') !!} {!! Form::textarea('body', null, array...
<?php /* * Copyright 2018 Google Inc. * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License version 2 as published by the * Free Software Foundation. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY W...
<?php use App\Models\Sector; use Illuminate\Database\Eloquent\Collection; use Illuminate\Database\Eloquent\Model; use Laravel\Lumen\Testing\DatabaseMigrations; class SectorTest extends TestCase { use DatabaseMigrations; public function testInsertSector(): void { $data = factory(Sector::class)->cr...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\todolist; class todolistController extends Controller { }
<?php // autoload_files.php @generated by Composer $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php', '0d59ee240a4cd96ddbb4ff164fccea4d' => $vendorDir . '/symfony/polyfill-php73/...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateProductImagesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('product_i...
<!doctype html> <html lang=""> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>Ops Dashboard</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class School extends Model { // protected $table = 'category'; protected $fillable = ['school_name','address','email']; }
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; class Citreligion extends Model { use HasFactory; public function citizen(): BelongsTo { return $this->belongsTo(Citizen::c...
<?php declare(strict_types=1); namespace LaminasTest\Stratigility\Middleware; use Generator; use Laminas\Stratigility\Middleware\HostMiddlewareDecorator; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; u...
<?php use Workerman\MySQL\Connection; use Workerman\Worker; require_once __DIR__ . '/../../Autoloader.php'; require_once __DIR__ .'/../../vendor/autoload.php'; $worker = new Worker('websocket://0.0.0.0:8484'); $worker->onWorkerStart = function($worker) { // 将db实例存储在全局变量中(也可以存储在某类的静态成员中) global $db; // 要...
<?php return [ /* |-------------------------------------------------------------------------- | Third Party Services |-------------------------------------------------------------------------- | | This file is for storing the credentials for third party services such | as Mailgun, SparkPos...
<?php namespace Qcm\Bundle\CoreBundle\Form\Type; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; /** * Class UserSessionFormType */ class UserSessionFormType extends AbstractType { /** * @var string $...
<?php namespace App\Http\Controllers\Api\Book; use App\Book; use App\Http\Controllers\Controller; use App\RentedBook; use App\Repositories\Contracts\RentedBookRepository; use Illuminate\Http\Request; class RentedBookController extends Controller { protected $rentedbooks; public function __construct(RentedBo...
<?php namespace AsyncAws\S3; use AsyncAws\Core\AbstractApi; use AsyncAws\Core\RequestContext; use AsyncAws\S3\Input\AbortMultipartUploadRequest; use AsyncAws\S3\Input\CompleteMultipartUploadRequest; use AsyncAws\S3\Input\CopyObjectRequest; use AsyncAws\S3\Input\CreateBucketRequest; use AsyncAws\S3\Input\CreateMultipa...
<?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use App\Http\Requests\LoginRequest; use App\Http\Requests\ProfileRequest; use Auth; use Illuminate\Http\Request; use Mail; use Illuminate\Validation\Rule; class UserController extends Controller { /** * Create a new controller in...
<?php namespace DonkeyCode\VarnishBundle\Listener; use JMS\Serializer\EventDispatcher\PreSerializeEvent; use FOS\HttpCache\ResponseTagger; use Propel\Runtime\ActiveRecord\ActiveRecordInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\EventDispatcher\GenericEvent; use FOS\...
<?php $params = require(__DIR__ . '/params.php'); $config = [ 'id' => 'basic', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'components' => [ 'request' => [ // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation '...
<?php declare(strict_types=1); namespace Enqueue\Redis; use Interop\Queue\Exception\Exception; class ServerException extends Exception { }
<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:80:"D:\phpStudy\PHPTutorial\WWW\taian\public/../application/admin\view\link\lst.html";i:1552125499;s:72:"D:\phpStudy\PHPTutorial\WWW\taian\application\admin\view\public\top.html";i:1552126929;s:73:"D:\phpStudy\PHPTutorial\WWW\taian\application\admin\view\public\left.ht...
<!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" dir="ltr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-4" /> <meta http-equiv="content-type" content="text/html; ch...
<?php /** * 应用入口文件 */ if (version_compare(PHP_VERSION,'5.4.0','<')) { // 检测环境 die('require PHP > 5.4.0 !'); } define('THINK_PATH', './ThinkPHP/'); // 定义thinkphp框架路径 define('APP_PATH', './App/'); // 定义应用目录 define('RUNTIME_PATH', './Runtime/'); // 定义缓存目录 define('ADDON_PATH', './Addons/'); ...
<html> <head> <meta name="viewport" content="width=device-width"> <title>Cloudinary Image Upload</title> <meta name="description" content="Prego is a project management app built for learning purposes"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <...
<?php use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = Yii::t('app', 'Menu'); $this->params['breadcrumbs'][] = $this->title; ?> <div class="menu-index"> <h1><?= Html::encode($this->title) ?></h1> <p> <?= H...
<?php /** * The template for displaying all single posts. * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post * * @package lokta */ get_header(); ?> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php while( have_po...
<?php namespace app\controllers; use Yii; use app\models\Warga; use app\models\WargaSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; use yii\web\UploadedFile; use app\models\Rt; use app\models\Rw; use app\models\Keluarga; use yii\helpers\ArrayHelper; /** * WargaControll...
<?php use App\Http\Controllers\HomeController; ?> @extends('layouts.app') @section('content') <style> .rm { transition: transform 0.5s } .rm:hover { transform: scale(1.05); cursor: pointer; } .tableFixHead { overflow: auto; ...
<?php return array( 'mailservice' => array( 'transport_class' => 'Zend\Mail\Transport\Sendmail' ), 'service_manager' => array( 'shared' => array( 'mailservice_message' => false ), 'invokables' => array( 'mailservice_message' => 'DmnMail\Mail\Service\...
<?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 require 'constants.inc.php'; require 'DbConnPDO.class.php'; require 'Chat.class.php'; $nickname = filter_input(INPUT_POST, 'nickname', FILTER_SANITIZE_STRING); $message = filter_input(INPUT_POST, 'message', FILTER_SANITIZE_STRING); # 1. Inserir a mensagen na base de dados try { $chat = new Chat(); ...
<?php namespace XeroPHP\Remote\OAuth\SignatureMethod; class PLAINTEXT implements SignatureMethodInterface { public static function generateSignature(array $config, $sbs, $secret) { return urlencode($secret); } }
<?php /** * * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Directory\Controller\Currency; class SwitchAction extends \Magento\Framework\App\Action\Action { /** * @return void */ public function execute() { /** @va...