text
stringlengths
2
1.03M
<?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...
@extends('layouts.master') @section('title','Profil') @section('content') <div class="content ml-4"> <div class="container-fluid"> <div class="row"> <div class="col-md-12 mt-4"> <div class="card card-primary card-outline"> <div class="c...
<nav class="navbar is-spaced"> <div class="container "> <div class="navbar-brand"> <div class="navbar-burger burger" data-target="navbarMenu"> <span></span> <span></span> <span></span> </div> </div> <div id="navb...
<?php /** * @see https://github.com/jguittard/mezzio-content-validation for the canonical source repository * @copyright Copyright (c) 2018 Julien Guittard. (https://julienguittard.com) * @license https://github.com/jguittard/mezzio-content-validation/blob/master/LICENSE.md * MIT License */ declare(s...
<?php namespace Mapbender\PrintBundle\Component; use Mapbender\PrintBundle\Component\Export\Box; use Mapbender\PrintBundle\Component\Export\ExportCanvas; use Mapbender\PrintBundle\Component\Export\Resolution; abstract class LayerRenderer { /** * Should render the image modeled by the given $layerDef array...
<?php namespace Neoan3\Apps; /** * Class Curl * * @package Neoan3\Apps */ class Curl { /** * @var string */ private static $responseFormat = 'plain'; /** * set output to verbose */ static function setResponseFormatVerbose(){ self::$responseFormat = 'verbose'; } ...
@extends('layouts.app') @section('title') <div class="text-center"> <h2>Single engine view</h2> </div> <hr> @endsection @section('content') <div class="row"> <div class="col-md-4"> </div> <div class="col-md-4 text-center"> <table class="table table-hover"> <thead> <tr> <th class="text-center">Eng...
<?php namespace Github\Normalizer; use Jane\Component\JsonSchemaRuntime\Reference; use Github\Runtime\Normalizer\CheckArray; use Symfony\Component\Serializer\Exception\InvalidArgumentException; use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface; use Symfony\Component\Serializer\Normalizer\Denormal...
<?php namespace App\Models; use Carbon\CarbonInterface; use Illuminate\Auth\Authenticatable; use Illuminate\Auth\MustVerifyEmail; use Illuminate\Auth\Passwords\CanResetPassword; use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract; use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableC...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\Cache; use Laravel\Lumen\Routing\Controller as BaseController; class ShowMainPageController extends BaseController { /************************************************************************************************/ ...
<?php /** * Created by WangQi. * All Rights Reserved * Time: 10:58 */ namespace DataBundle\EventSubscriber; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\EventDispatcher\Event; class DataSubscriber implements EventSubscriberInterface { public static function getSubscrib...
<?php /** * Created by PhpStorm. * User: id_orange * Date: 2019/2/15 * Time: 13:43 */ namespace app\teacher\model; use think\model\concern\SoftDelete; class OtherGradeModel extends BaseModel { protected $table = "t_special_other_grade"; }
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to plac...
<?php namespace App\Http\Controllers; use App\models\PcrmProjectsLoginsTypes; use Illuminate\Routing\Controller; class PcrmProjectsLoginsTypesController extends Controller { /** * Display a listing of the resource. * GET /pcrmprojectsloginstypes * * @return Response */ public function index() { return...
<?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 RectorPrefix202206\Symfony\Component\Config\Definition\Builder; use Rect...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePortfoliosTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('portfolios',...
<?php namespace app\controllers; use Yii; use yii\filters\AccessControl; use app\models\User; use yii\helpers\Url; use app\models\ContactForm; use yii\web\UploadedFile; class FeedbackController extends \yii\web\Controller { /** * {@inheritdoc} */ public function behaviors() { return [ ...
<div class="pull-right"> {!! Form::open(['route' => ['users.groups.destroy', $group->slug], 'method' => 'DELETE']) !!} <button class="btn btn-danger btn-block" type="submit"> <i class="fa fa-trash-o"></i> Eliminar grupo </button> {!! Form::close() !!} </div>
<?php namespace Fuel\Tasks; class Orm { static $string_max_lengths = array( 'char' => 255, 'varchar' => 255, 'tinytext' => 255, 'tinyblob' => 255, 'text' => 65536, 'blob' => 65536, 'mediumtext' => 16777216, 'mediumblob' => 16777216, 'longtext' => 4294967296, 'longblob'...
<?php defined('PHPFOX') or exit('NO DICE!'); ?> <?php $aContent = array ( 9 => array ( 'menu_id' => '9', 'parent_id' => '0', 'm_connection' => 'profile', 'var_name' => 'menu_profile', 'disallow_access' => NULL, 'module' => 'profile', 'url' => 'profile', 'module_is_active' => '1', ...
<?php return [ 'title' => 'Fakultas', 'subTitle' => 'Master', 'modalTitleTambah' => 'Tambah Fakultas', 'placeHolderTambah' => 'Masukkan Fakultas', 'modalTitleUbah' => 'Ubah Fakultas' ];
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Messages extends Model { protected $table = 'messages'; protected $fillable = ['msg', 'user_id', 'room_id']; public function user(){ return $this->belongsTo('App\User','user_id') ; } public function room(){ re...
@extends('layouts.admin') @section('content') <div class="row"> <div class="col-lg-12"> <!-- Advanced Tables --> <div class="panel panel-default"> <div class="panel-heading"> Comments <div class="pull-right"> <div class="pull-right"> ...
<?php /* * <auto-generated> * This code was generated by a Codezu. * * Changes to this file may cause incorrect behavior and will be lost if * the code is regenerated. * </auto-generated> */ namespace Mozu\Api\Contracts\Core; /** * Dimensions of the packaged product. */ class Measurement { /** ...
<?php namespace App\Http\Controllers; use App\Models\PengajuanKomisiStart; use Illuminate\Http\Request; use App\Models\PengajuanManual; use App\Models\PengajuanTender; use App\Models\RekapKomisi; use Illuminate\Routing\Controller; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Session; class HomeC...
<?php if (!empty($CONFIG['areasServed'])) { foreach ($CONFIG['areasServed'] as $serviceAreaPage) { echo '<div class="service-area-page" data-key="'.$serviceAreaPage['url'].'" data-country="'.$serviceAreaPage['country'].'" data-state="'.$serviceAreaPage['state'].'" data-city-town="'.$serviceAreaPage['cityTow...
<div class="t"> <div class="b"> <div class="l"> <div class="r"> <div class="bl"> <div class="br"> <div class="tl"> <div class="tr"> <div class="y"> <div id="post"> <h1 class="title">:: Data Pengeluaran ::</h1> <div class="entry"> <div align="center" class="link"> <a href=?act=InputPengeluaran&a...
<?php /** * @var $context \SiteMaster\Core\Events\Navigation\SiteCompile */ $nav = $context->getNavigation(); $site = $context->getSite(); ?> <div class="site-nav"> <div class="head-container"> <div class="left"> <div class="title"><?php echo $site->getTitle();?></div> <div class=...
<?php namespace Nomina\V1\Rest\Tmmaeg; use Zend\Paginator\Paginator; class TmmaegCollection extends Paginator { }
<div id="addcompetitor" class="page_content page_content_master "> @if (!isset($PersonId)) <h2>Persoana de inregistrat</h2> @else <h2>Ma inregistrez</h2> @endif <form class="" action="finishuser" method="POST"> @csrf <input Name = "Compe...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Gallery extends Model { protected $table = 'gallery'; protected $fillable = true; }
<footer class="py-5"> <div class="container"> <div class="row"> <div class="col-md-4 d-none d-md-block"> <h2 class="row"><a href="{{route('home')}}" class="nav-link rounded-circle py-5" style="background-color: #000;">CEDRIC</a></h2> </div> <div class="col-md-8"> <div class="row...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class EmployeeAttendance extends Model { //WhizzAct protected $fillable = array('emp_id','work_date', 'in_time','out_time','attendance_status','created_at', 'updated_at'); protected $table = 'emp_attendance'; }
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Tingkat extends Model { use HasFactory; protected $table = 'rb_tingkat'; protected $primaryKey = "id_tingkat"; public $timestamps = false; protected $guarded = []; ...
<nav class="navbar navbar-light navbar-vertical navbar-expand-xl" style="display: none;"> <script> var navbarStyle = localStorage.getItem("navbarStyle"); if (navbarStyle && navbarStyle !== 'transparent') { document.querySelector('.navbar-vertical').classList.add(`navbar-${navbarStyle}`);...
<?php declare(strict_types=1); /** * This file is part of phpDocumentor. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @link http://phpdoc.org */ namespace phpDocumentor\Reflection\DocBlock\Tags; use phpDocumentor\Reflection...
<?php namespace Kalnoy\Cruddy\Schema\Filters; use Illuminate\Database\Eloquent\Builder as EloquentBuilder; use Kalnoy\Cruddy\Contracts\SearchProcessor; use Kalnoy\Cruddy\Schema\BaseCollection; class Collection extends BaseCollection implements SearchProcessor { /** * @param EloquentBuilder $builder * ...
<?php namespace Codex\ComposerPlugin; use Composer\Composer; use Composer\Installer\InstallationManager; use Composer\Installer\LibraryInstaller; use Composer\IO\IOInterface; use Composer\Plugin\PluginInterface; class Plugin implements PluginInterface { /** * Installers * * @var array */ p...
<?php ModuleRoute::context('Partners'); ModuleRoute::group(['as' => ModuleRoute::getAdminNamePrefix()], function () { ModuleRoute::resource('admin/partner-cats', 'AdminPartnerCatsController'); ModuleRoute::get( 'admin/partner-cats/{id}/restore', ['as' => 'partner-cats.restore', 'uses' => 'Admi...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateOrderInfoTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('order_info', ...
<?php /** * PHPUnit * * Copyright (c) 2010-2013, Sebastian Bergmann <sb@sebastian-bergmann.de>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code m...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; //fa riferimento alla tabella del database User(classe) --> users(tabella), // perché Laravel considera che ci sia nel database una tabella nominata al prurale minuscolo. class User extends Model{ protected $hidden = ['pas...
<aside class="main-sidebar sidebar-dark-primary elevation-4"> <!-- Brand Logo --> <a href="/admin" class="brand-link"> <img src="{{asset('dist/img/AdminLTELogo.png')}}" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8"> <span class="brand-text font-w...
<?php /** * Created by PhpStorm. * Author: ZhiPeng * Date: 2017/2/20 * Project: Cat Visual */ use yii\widgets\ActiveForm; use \yii\helpers\Url; $this->title = '菜单管理'; $this->params['title_sub'] = '管理菜单信息'; ?> <div class="row"> <div class="col-md-12"> <!-- Begin: life time stats --> <div clas...
@extends('layouts.admin') @section('content') <!-- Begin Page Content --> <div class="container-fluid"> <!-- Page Heading --> <div class="d-sm-flex align-items-center justify-content-between mb-4"> <h1 class="h3 mb-0 text-gray-800">Paket Travel</h1> <a href="{{route('travel-package.create')}}"...
@extends('layout') @section('order') <p class="card-title">Create Order</p> <form action="/postorder" method="post" id="myForm" enctype="multipart/form-data" target="_blank" class="form-horizontal"> {{ csrf_field() }} <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12...
<?php require_once $_SERVER['DOCUMENT_ROOT'].'/scripts/classes/ImageCoder.php'; require_once $_SERVER['DOCUMENT_ROOT'].'/scripts/classes/ImageFilter.php'; if ($_SERVER["REQUEST_METHOD"] === "POST") { $outputJson = json_encode(array()); try { if(isset($_FILES['imageFile']) && $_FILES['i...
@extends('layouts.main') @section('container') <form method="post" action="{{route('contacts.store')}}"> {{csrf_field()}} <div class="form-floating mb-3"> <input type="text" class="form-control" id="inputname" placeholder="Nama" name="nama"> <label for="inputname">Nama</label> </div> ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateLocationsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('locations', f...
<?php class SupInfoBridge extends BridgeAbstract { const MAINTAINER = 'teromene'; const NAME = 'SupInfoBridge'; const URI = 'https://www.supinfo.com'; const DESCRIPTION = 'Returns the newest articles.'; const PARAMETERS = array(array( 'tag' => array( 'name' => 'Category (not mandatory)', 'type' => 'text'...
<?php namespace App\Models; use Eloquent as Model; use Illuminate\Database\Eloquent\SoftDeletes; /** * Class Orden * @package App\Models * @version July 23, 2018, 7:27 am UTC * * @property \App\Models\User user * @property \Illuminate\Database\Eloquent\Collection OrdenDetalle * @property integer numero * @pr...
<?php use \helpers\Form; use \helpers\BaseHtml; $this->title = 'Register'; $this->breadcrumb = [ ['label' => $this->title] ]; ?> <div class="main-title"> <h1><?= $this->title ?></h1> </div> <div class="row"> <div class="col-sm-6 col-sm-offset-3"> <?= $form = new Form ?> <?...
<?php namespace Pagekit\Console\NodeVisitor; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\MethodCall; use PhpParser\Lexer; use PhpParser\Node; use PhpParser\NodeTraverser; use PhpParser\NodeVisitor as BaseVisitor; use PhpParser\ParserFactory; class PhpNodeVisitor extends NodeVisitor implements BaseVisit...
<?php // autoload_real.php @generated by Composer class ComposerAutoloaderInitac3c4d85a66eeafc39cc2318a0e8e1bb { private static $loader; public static function loadClassLoader($class) { if ('Composer\Autoload\ClassLoader' === $class) { require __DIR__ . '/ClassLoader.php'; } ...
<?php /* * *********************** * PAGE: TO Add The packages. * #COPYRIGHT: Ripenapps * @AUTHOR: vicky kashyap * CREATOR: 04/07/2018. * UPDATED: --/--/----. * codeigniter framework * *** *********************/ ?> <style> select { width: 100%; height: 35px; /*font-weight: bold;*/ } .span_ajax_class { cur...
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Spatie\Permission\Models\Permission; class PermissionSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $permission = [ 'create post' , 'read post'...
<?php namespace Place\Exceptions; class InvalidRequest extends APIException { public static $error_type = 'Error'; public static $status_code = 400; } ?>
<div id="brands-carousel" class="logo-slider wow fadeInUp"> <div class="logo-slider-inner"> <div id="brand-slider" class="owl-carousel brand-slider custom-carousel owl-theme"> <div class="item m-t-15"> <a href="#" class="image"> <img data-echo="{{asset('frontend/assets/images/brands/brand1.png')}}" ...
<?php use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model common\models\Product */ $this->title = $model->product_name; $this->params['breadcrumbs'][] = ['label' => 'Products', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div class="box"> <div cl...
<?php namespace Laiz\Func; class Curry { use CurryTrait; public function __construct(callable $f) { $this->value = self::curry($f); } }
<?php /** * @author Nikita Kolosov <anexroid@gmail.com> * @license MIT License * @year 2016 */ namespace Wav; use Wav\File\DataSection; use Wav\File\FormatSection; use Wav\File\Header; class Builder { const DEFAULT_SAMPLE_RATE = 44100; const DEFAULT_VOLUME = 32768; /** * @var int */ ...
<?php //-------------------------------------------------------------------------------- // RSS2Writer (v2.1) and sample controller // // (c) Copyright Daniel Soutter // // Blog: http://www.code-tips.com/ // // This script may be used or developed at your own risk as long as it is // referenced appropriate...
<?php declare(strict_types=1); namespace Stefna\PhpCodeBuilder; use Stefna\PhpCodeBuilder\CodeHelper\CodeInterface; use Stefna\PhpCodeBuilder\CodeHelper\VariableReference; use Stefna\PhpCodeBuilder\ValueObject\Identifier; use Stefna\PhpCodeBuilder\ValueObject\Type; /** * Class that represents the source code for a ...
@extends('layouts.admin') @section('content') <div class="card"> <div class="card-header"> {{ trans('global.show') }} {{ trans('cruds.contract.title') }} </div> <div class="card-body"> <div class="form-group"> <div class="form-group"> <a class="btn btn-default" ...
<?php /** * Created by PhpStorm. * Team: jungle * User: Roma Baranenko * Contacts: <jungle.romabb8@gmail.com> * Date: 05.12.17 * Time: 18:50 */ namespace TelegramBotAPI\Tests\InputMessageContent; use PHPUnit\Framework\TestCase; use TelegramBotAPI\InputMessageContent\InputLocationMessageContent; /** * Class ...
<?php # is form voor het toevoegen van een groep ipv wijzigen van een $isNew = (isset($data['isnew'])); # vraag de opgegeven securitygroup op if (!$isNew) { $securitygroup = $tplHelper->getSecGroup($data['groupid']); } else { $securitygroup = array('name' => ''); }# if # bereid alvast een UL voor voor de ...
<html> <head> <title>Frontend ADE - Hari ke-5</title> <link rel="stylesheet" type="text/css" href="css/jquery.dataTables.css"> <link rel="icon" type="image/x-icon" href="image/images.png"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sh...
<?php if (!defined ('TYPO3_MODE')) die ('Access denied.'); t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Expose Webservice Configuration'); t3lib_extMgm::allowTableOnStandardPages('tx_expose_domain_model_token'); $TCA['tx_expose_domain_model_token'] = array( 'ctrl' => array( 'title' => 'LLL:EX...
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Tipo de Conta</title> <!-- Tell the browser to be responsive to screen width --> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Font Awesome ...
@extends('admin::layouts.master') @section('title', 'Liste des responsables') @section('css') @parent @stop @section('section') @parent <div class="box"> <div class="box-header"> <h3>Lisitry mpiandraikitry ny Sampana,Sampan'Asa ary Fikambanana</h3> </div> <div class="row ...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Izin extends CI_Controller { public function index() { $this->load->model('model_izin'); $data['izin'] = $this->model_izin->izin()->result(); $data['judul'] = "Izin"; ...
<footer class="footer"> <div class="container-fluid"> <div class="copyright float-right"> &copy; <script> document.write(new Date().getFullYear()) </script>, made with <i class="material-icons">favorite</i> by <a href="https://www.creative-tim.com" target="_blank">Creative Tim</a> ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateProductsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('products', fun...
<?php namespace Neos\Flow\Http\Client; /* * This file is part of the Neos.Flow package. * * (c) Contributors of the Neos Project - www.neos.io * * This package is Open Source Software. For the full copyright and license * information, please view the LICENSE file which was distributed with this * source code. ...
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class MissionResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArray($request) { ...
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Pendaftar_model extends CI_Model { private $_table = "pendaftar"; public $pendaftar_id; public $nama; public $alamat; public $telp; public $tujuan; public $jumlah; public function rules() { return ...
<?php use App\Http\Controllers\Admin\AdminController; use App\Http\Controllers\Admin\AppController; use App\Http\Controllers\Admin\AttributeController; use App\Http\Controllers\Admin\Auth\RegisterController; use App\Http\Controllers\Admin\BannerController; use App\Http\Controllers\Admin\CategoryController; use App\Htt...
<?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 Rout...
<div class="container-fluid"> <div class="row"> <div class="col-sm-2 col-md-2 left-nav-box"> <ul class="left-nav-first-list-group"> <li>Overview <span class="sr-only">(current)</span></li> <li><a href="/admin"><span class="glyphicon glyphicon-list-alt" style="col...
<?= \Micro\web\helpers\Html::heading(1, 'Hello, world!') ?>
<?php namespace SilverStripe\Core\Tests\Injector\AopProxyServiceTest; class AnotherService { public $filters = array(); }
<?php namespace App\Repositories; use App\Models\Project; use App\Models\Task; use App\Models\User; class TaskRepository { public static function find($id) { return Task::where('id', $id) ->with(['history', 'history.user:id,name', 'comments']) ->first(); } /** * ...
<?php /* Arquivo de configuração do Axe para o seu blog © 2013 Augusto Campos http://augustocampos.net/ (9.05.2013) 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...
<?php class M_login extends ci_model{ function cek_login($table, $where){ return $this->db->get_where($table, $where); } }
<?php class hFrameworkResources_4to5 extends hPlugin { public function hConstructor() { $this->hFrameworkResources->insert( array( 'hFrameworkResourceId' => 23, 'hFrameworkResourceTable' => 'hPlugins', 'hFrameworkResourcePrimaryKey' => '...
<?php /*+*********************************************************************************** * The contents of this file are subject to the vtiger CRM Public License Version 1.0 * ("License"); You may not use this file except in compliance with the License * The Original Code is: vtiger CRM Open Source * The Initi...
<?php function getAuthorizationHeader(){ $headers = null; if (isset($_SERVER['Authorization'])) { $headers = trim($_SERVER["Authorization"]); } else if (isset($_SERVER['HTTP_AUTHORIZATION'])) { //Nginx or fast CGI $headers = trim($_SERVER["HTTP_AUTHORIZATION"]); ...
<?php namespace ThreadAndMirror\EditorsPicksBundle\Entity; use Doctrine\Common\Collections\ArrayCollection; use Symfony\Component\Validator\Constraints as Assert; use Doctrine\ORM\Mapping as ORM; use ThreadAndMirror\ProductsBundle\Entity\Product; use Gedmo\Mapping\Annotation as Gedmo; /** * @ORM\Table(name="tam_edi...
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014 - 2016, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this soft...
<?php namespace nntp\server\handlers; use Generator; use nntp\protocol\{Command, Response}; use nntp\server\ClientContext; class NextHandler implements Handler { public function handle(Command $command, ClientContext $context): Generator { // Make sure we have a valid cursor. if (!$context->g...
<?php namespace Myapp\GestionProjetBundle\Controller; use Myapp\GestionProjetBundle\Entity\Resaux; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; /** * Resaux controller. * */ class ResauxController extends Controller { /** * Lists all resaux entit...
<?php return [ 'class' => 'yii\db\Connection', 'dsn' => 'pgsql:host=localhost;port=5432;dbname=metabolize', 'username' => 'metabolize', 'password' => '123456', 'charset' => 'utf8', ];
<?php namespace app\models; use Yii; use yii\base\Model; /** * ContactForm is the model behind the contact form. */ class ContactForm extends Model { public $name; public $email; public $subject; public $body; public $verifyCode; /** * @return array the validation rules. */ ...
<?php namespace Admin\Controller; use Think\Controller; class IndexController extends Controller { public function index(){ $this->display(); } public function admin(){ $name=I('post.name'); $password=I('post.password'); $this->display(); } public function user(){ $...
<?php declare(strict_types=1); namespace App\Http\Requests\GOI; use Illuminate\Foundation\Http\FormRequest; class TheaterOfOperationsEventUpdateStatus extends FormRequest { /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\BelongsToMany; class Article extends Model { protected $fillable = [ 'title', 'body', ]; // public function user() { ...
<?php declare(strict_types=1); namespace Shopware\Core\Migration; /** * @deprecated tag:v6.5.0 Will be deleted. Migrations are now namespaced by major version */ class Migration1536233160ProductConfigurator extends \Shopware\Core\Migration\V6_3\Migration1536233160ProductConfigurator { }
<?php namespace Gedmo\Uploadable\FilenameGenerator; /** * FilenameGeneratorAlphanumeric * * This class generates a filename, leaving only lowercase * alphanumeric characters * * @author Gustavo Falco <comfortablynumb84@gmail.com> * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com> * @package Ged...
<?php /** * PHPUnit * * Copyright (c) 2002-2010, Sebastian Bergmann <sb@sebastian-bergmann.de>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code m...
<?php /** * Created by PhpStorm. * User: link * Date: 2016/12/7 * Time: 13:07 */ namespace guyanyouyou; trait EasemobGroups { /** * 获取群信息 * * @param array $group_ids [群id] * * @return mixed * @throws EasemobError */ public function groups($group_ids) { $url...