text
stringlengths
2
1.03M
@extends('layouts.frontend') @section('title', trans('messages.subscription')) @section('page_script') @endsection @section('content') @include("account._menu") <div class="row"> <div class="col-sm-12 col-md-6 col-lg-6"> <div class="sub-section"> {!! trans('messages.subscription_paid_f...
<?php namespace App\Http\Controllers\Auth; use App\User; use App\Month; use Validator; use App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\ThrottlesLogins; use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers; class AuthController extends Controller { /* |----------------------------...
@extends('layouts.master') @section('title') New Invoice @endsection @section('current-page')New Invoice @endsection @section('content') <!-- Default box --> <div class="card"> <div class="header with-border"> <h2 class="panel-title">New Invoice</h2> <div class="heading-elements"> ...
<?php if( ! isset($detalhesProduto['nome'])) { $detalhesProduto = array(); $detalhesProduto['id'] = ''; $detalhesProduto['nome'] = ''; $detalhesProduto['preco'] = ''; $detalhesProduto['tamanho'] = '0'; $detalhesProduto['cor'] = '0'; $detalhesProduto['tipo'] = '0'; } ?> <div class="row col s12"> <...
<?php // @formatter:off namespace PHPSTORM_META { /** * PhpStorm Meta file, to provide autocomplete information for PhpStorm * * @author Barry vd. Heuvel <barryvdh@gmail.com> * @see https://github.com/barryvdh/laravel-ide-helper */ override(new \Illuminate\Contracts\Container\Container, map...
<?php /* --------------------------------------------------------------------------- * @package : Autoload : Including Required Files * @author : Invoice Generator * @version : 1.0 * @link : # * @copyright : Copyright (c) 2019 * --------------------------------------------------------------------------- */ r...
<?php use yii\db\Migration; /** * Handles the creation of table `partner`. */ class m180527_104750_create_partner_table extends Migration { /** * {@inheritdoc} */ public function safeUp() { $this->createTable('{{%partner}}', [ 'id' => $this->primaryKey(), 'image...
<?php namespace App\Http\Controllers; use App\Country; use App\CountryRequsition; use App\StudentRequsition; use Illuminate\Http\Request; class CountryRequsitionController extends Controller { public function create() { return view('admin.student.country_requsition.add'); } public function ...
<?php namespace CrestApps\CodeGenerator\Commands\Migrations; use CrestApps\CodeGenerator\Commands\Bases\MigrationCommandBase; use Illuminate\Console\ConfirmableTrait; use Illuminate\Database\Migrations\Migrator; class MigrateAllCommand extends MigrationCommandBase { use ConfirmableTrait; /** * The name...
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Models\User; use App\Providers\RouteServiceProvider; use Illuminate\Auth\Events\Registered; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; class RegisteredUserController ext...
@extends('layouts.swim') @section('title') <title>{{ config('app.name', 'Laravel') }} {{ __('Reset Password') }}</title> @endsection @section('content') <div class="card-header">{{ __('Reset Password') }}</div> <div class="card-body"> <form method="POST" action="{{ route('password.update') }}"> @csrf...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class MarqWtgTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('marquee_wtg_table', f...
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Sylius\Behat\Context\Api\Shop; use ApiPlatform\Core\Api\IriConver...
<!DOCTYPE html> <html lang="en"> <head> <title> postedit</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" href="{{asset('css/bootstrap.css')}}"> </head> <body> <div class="container"> <h2>Posts Edit</h2> <f...
<?php /** * LICENSE: 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/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software *...
<?php /** * SAHARA Web Interface * * User interface to Sahara Remote Laboratory system. * * @license See LICENSE in the top level directory for complete license terms. * * Copyright (c) 2010, University of Technology, Sydney * All rights reserved. * * Redistribution and use in source and binary forms, with or...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Servicing extends Model { public function shore() { return $this->belongsTo(Shore::class); } public function participants() { return $this->belongsToMany(Person::class, 'people_servicings'); } public fun...
@extends('layouts.master') @section('content') <div class="row row-cols-1 row-cols-md-3 g-4"> @foreach ($posts as $post) {{-- "id" => "eea5a60a-5d8b-411d-9590-78b84a85db57" "slug" => "my-post-by-wink" "title" => "My Post by wink" "excerpt" => "This exce...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Article extends Model { protected $fillable = ['title','img','alias','text','desc','keywords','meta_desc','category_id']; public function user() { return $this->belongsTo('App\User'); } public function category() { return $this->belong...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Admin_Panel_Business extends CI_Controller{ public function index() { if($this->session->userdata("admin_id")){ $x = 0; $data['number'] = 1; $data['inquiries'] = $this->db->get...
<?php namespace App\Http\Controllers\Admin\Auth; use App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\AuthenticatesUsers; use Illuminate\Http\Request; class LoginController extends Controller { /* |-------------------------------------------------------------------------- | Login Controlle...
<?php require_once('constants.php'); ?> <nav> <ul> <?php if (isset($_SESSION["user"])) : ?> <?php if ($user_role === 'admin') : ?> <li> <a href="/..<?php echo ROOT_SITE ?>/admin/">Admin</a> <ul> <li> ...
<script> var map; var myLatlng; var marker; function initMap() { var contentString = '<div id="content">'+ '<div id="siteNotice">'+ '</div>'+ '<h1 id="firstHeading" class="firstHeading">Greek Hotel</h1>'+ '<div id="bodyContent">'+ '<p>7...
<?php use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { $this->call(PersonalsTableSeeder::class); } }
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model backend\models\department\DepartmentSearch */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="department-search"> <?php $form = ActiveForm::begin([ 'action' => ['index'], 'method' => 'get'...
<?php namespace Tests\Feature\Jobs; use App\Jobs\ProcessGeneralData; use App\Models\DailyStats; use Carbon\Carbon; use Illuminate\Foundation\Testing\RefreshDatabase; use Tests\FeatureTestCase; class ProcessGeneralDataTest extends FeatureTestCase { use RefreshDatabase; private array $generalData = [ ...
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Defaults |-------------------------------------------------------------------------- | | This option controls the default authentication "guard" and password | reset options for y...
<?php namespace App\Http\Controllers\Admin; use App\DataTables\Admin\IsikelasDataTable; use App\DataTables\Admin\PembagianKelasSiswaDataTable; use App\Http\Controllers\ControllerAdmin; use App\Models\PembagianKelas; use App\Models\PembagianKelasSiswa; use Exception; use Illuminate\Contracts\Encryption\DecryptExceptio...
<?php namespace App\Http\Controllers; use App\BalanceConsultant; use Illuminate\Http\Request; class BalanceConsultantController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // } /** ...
<?php namespace Pact\Service; interface ServiceInterface { /** * Returns formatted route with pasted parameters * * @param string template * @param array values to insert in route template * @param array optional url parameters * @return string */ public function formatEnd...
@extends('layouts.app') @section('content') <link href="css/iCheck/custom.css" rel="stylesheet"> <link href="css/animate.css" rel="stylesheet"> <link href="css/style.css" rel="stylesheet"> @if (session('status')) <div class="alert alert-success"> {{ session('status') }} </div> @endif @if($errors->any()...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class ValidaUbicacion extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * Get t...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class QualificationLanguage extends Model { protected $guarded= []; public function company(){ return $this->hasOne('App\company','id','company_id'); } }
@extends('layouts.app') @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-md-8"> <form method="POST" action="{{route('company.store')}}" enctype="multipart/form-data"> @csrf <div class="form-group"> ...
--TEST-- mysqli_fetch_object() - calling constructor on class wo constructor --SKIPIF-- <?php require_once('skipif.inc'); require_once('skipifemb.inc'); require_once('skipifconnectfailure.inc'); ?> --FILE-- <?php require_once("connect.inc"); $tmp = NULL; $link = NULL; require('table.inc'); if...
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle 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. // // Moodle ...
<?php declare(strict_types=1); namespace BusFactor\Scenario; use BusFactor\EventBus\EventBus; use BusFactor\EventStream\Stream; use PHPUnit\Framework\TestCase; class EventBusTraceMiddlewareTest extends TestCase { /** @test */ public function it_publish_a_recorded_event_stream_without_tracing(): void { ...
@extends('layouts.admin.main') @section('title', 'About Us - Life Saving Foundation') @section('more-css') <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs/jq-3.3.1/dt-1.10.20/r-2.2.3/datatables.min.css"/> @endsection @section('content') <div class="blank"> <h2><i class="fa fa-cogs" aria...
<?php namespace App\Http\Middleware; use Closure; use App\Category; class VerifyCategoriesCount { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { ...
<x-guest-layout> <x-jet-authentication-card> <x-slot name="logo"> <x-jet-authentication-card-logo /> </x-slot> <x-jet-validation-errors class="mb-4" /> @if (session('status')) <div class="mb-4 font-medium text-sm text-green-600"> {{ session('...
<?php /* * PSX is an open source PHP framework to develop RESTful APIs. * For the current version and information visit <https://phpsx.org> * * Copyright 2010-2022 Christoph Kappestein <christoph.kappestein@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file...
<?php namespace ReaZzon\Editor\Console; use Illuminate\Console\Command; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputArgument; /** * RefreshStaticPages Command */ class RefreshStaticPages extends Command { /** * @var string name is the console command name ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class FotosCenso extends Model { use HasFactory; protected $table = 'cne2021_fotos'; /** * The primary key associated with the table. * * @var string */ prot...
<?php use Faker\Generator as Faker; $factory->define(App\Models\Product::class, function (Faker $faker) { $image = $faker->randomElement([ "https://iocaffcdn.phphub.org/uploads/images/201806/01/5320/7kG1HekGK6.jpg", "https://iocaffcdn.phphub.org/uploads/images/201806/01/5320/1B3n0ATKrn.jpg", ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class select extends Model { // protected $fillable = [ 'title', 'body' ]; }
<?php declare(strict_types=1); namespace Kennynguyeenx\LibraryHexagonal\Infrastructure; use DI\Container; use Doctrine\ORM\EntityManager; use Kennynguyeenx\LibraryHexagonal\Domain\Borrowing\Core\Model\AvailableBook; use Kennynguyeenx\LibraryHexagonal\Domain\Borrowing\Core\Model\BorrowedBook; use Kennynguyeenx\Librar...
<div class="tab-content"> <div class="tab-pane tabs-animation fade active show" id="tab-content-2" role="tabpanel"> <div class="row"> <div class="col-md-12"> <div class="main-card mb-3...
<?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +---------------------------------------------------------------------- // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved. // +-------------------------------------------------...
<!-- Content Header (Page header) --> <section class="content"> <div class="row"> <div class="col-xs-12"> <div class="box"> <div class="box-header"> <h4><?php echo $this->template_view->nama_menu('nama_menu'); ?></h4> <h5><?php echo $this->template_view->nama_menu('judul_menu'); ?></h5> ...
<?php return [ /* |-------------------------------------------------------------------------- | Application Settings |-------------------------------------------------------------------------- | | In here you can define all the settings used in your app, it will be | available as a setting...
<?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\Twig\Tests\Extension; use Symfony\Bridge\Twig\Extension\...
<?php /*************************************************************************** * * * (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev * * * * ...
<?php namespace App\Controllers; class Protein_collection extends DmsBase { function __construct() { $this->my_tag = "protein_collection"; $this->my_title = "Protein Collection"; } } ?>
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CriarTabelaEpisodios extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('episodios', f...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Session; class ControllerSwitchLanguage extends Controller { public function postsSwitchLanguage(Request $request){ if($request->switch_lang == null){ Session::put('lang', 'vn'); } else { Session::...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateShiciTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('shicis', function...
<?php namespace Shopsys\FrameworkBundle\Model\Customer; use Shopsys\FrameworkBundle\Component\EntityExtension\EntityNameResolver; class UserFactory implements UserFactoryInterface { /** * @var \Shopsys\FrameworkBundle\Component\EntityExtension\EntityNameResolver */ protected $entityNameResolver; ...
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to plac...
<?php require_once(dirname(__FILE__) . "/../base/functional.php"); /** * Uploads a file and touches it to find out * if the expiry date is correctly updated. */ class test_func_touch extends test_base_functional { function testDefaultExpiry() { $this->upload(); $date = date('Y/m/d', time() + ( 7...
<div class="minutes-header">Meeting 16 (with Prof Prem and Team Members)</div> <div class="minutes-subheader">Time:</div> <ul> <li>2nd May 10:00 - 11:00</li> </ul> <div class="minutes-subheader">Attendance:</div> <?php echo $this->render('./../attendees_with_prem.php') ?> <div class="minutes-subheader">Discussed Topic...
<?php // trup v lokacii // otobrazitq imja (ssylku podnjatq to chto v has) i esli estq chto osvezhitq to ssylku na eto include_once ('modules/f_get_dead_info.php'); $d = get_dead_info ($inloc[$i]); $f .= '<a class="blue" href="game.php?sid='.$sid.'&action=take_dead&dead='.$inloc[$i].'">'; $f .= $d['name']....
<?php /** * Webiny Framework (http://www.webiny.com/framework) * * @copyright Copyright Webiny LTD */ namespace Webiny\Component\Cache\Bridge\Memory; use Jamm\Memory\MemcacheObject; use Webiny\Component\Cache\Bridge\CacheStorageInterface; /** * Bridget to Jamm\Memory Memcache library. * * @package Web...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class modelkwitansi extends CI_Model { public function __construct() { parent::__construct(); } public function InsertData($data){ $checkinsert = false; try{ $this->db->insert('kwitansi',$data); $checkinsert = true; }catch (Exc...
<?php use Illuminate\Database\Seeder; class DiariaSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { factory(\App\Models\Diaria::class, 10)->create(); } }
<?php namespace App; use Illuminate\Database\Eloquent\Model; use App\Http\Traits\UseUuid; class Inventory extends Model { use UseUuid; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'name', 'model_no', 'in_house', ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Config extends Model { protected $table = 'config'; protected $fillable = ['start_time', 'duration', 'option']; }
<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads/v7/services/campaign_extension_setting_service.proto namespace Google\Ads\GoogleAds\V7\Services; use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil; /** ...
<?php /** * Unit Tests: Basic_Object cloass * * @package WordPress * @subpackage UnitTests * @since 4.7.0 */ trigger_error( __FILE__ . ' is deprecated since version 5.0.0 with no alternative available.' ); /** * Class used to test accessing methods and properties * * @since 4.0.0 */ class Basic_Object { pr...
<?php /** * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Setup\Model; use Magento\Framework\Module\FullModuleList; use Magento\Framework\ObjectManagerInterface; use Magento\Framework\Setup\UninstallInterface; use Magento\Setup\Module\DataSetupF...
<?php $installer = $this; $installer->startSetup(); $installer->run(" -- DROP TABLE IF EXISTS {$this->getTable('deliverydate')}; CREATE TABLE {$this->getTable('deliverydate')} ( `deliverydate_id` int(11) unsigned NOT NULL auto_increment, `title` varchar(255) NOT NULL default '', `filename` varchar(255) NOT NUL...
<?php namespace App\Http\Controllers; use Alert; use App\Http\Controllers\Controller; use App\Models\pinjam; use Illuminate\Http\Request; class LaporanController extends Controller { public function pinjam() { return view('admin.laporan.form'); } public function reportPinjam(Request $request...
<?php /** * Author: Pavel Petrov <itnelo@gmail.com> * Date: 19.03.16 0:25 */ return [ 'Admin Panel' => 'Панель управления', 'Module' => 'Модуль', ];
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class ChatModel extends CI_Model{ public function __construct() { $this->load->library('session'); $this->load->database(); } public function last_chat_id() { $this->db->select_max('id'); $result = $thi...
@extends('layouts.sidebar') @section('content') <div class="jumbotron"> <h1>Register</h1> @if(Session::has('message')) <div class="alert alert-info"> {!! Session::get('message') !!} </div> @endif @if ($errors->has()) <div class="ale...
@extends('layouts.dashboard') @section('dashboard-content') <h1>Carousel Slide</h1> <a href="{{ route('dashboard.carousel.index') }}">Back to All</a> <form action="{{ $action }}" method="POST" class="form-horizontal"> @csrf @if ($method !== 'POST') @method($method) @end...
<div class="row"> <div class="col-sm-12 col-md-12"> <div class="panel panel-bd lobidrag"> <div class="panel-heading"> <div class="panel-title"> <h4> <?php echo display('update_credit_voucher')?> </h4> </...
@extends('layouts.capp') @section('content') <div class="container-img" style="width: 100%; height:450px; overflow:hidden;"> <div class="img-content"> <img src="img/cn.png" alt="" class="w-100" style=" padding: 0px; margin-top:-20px; "> </...
<?php ///SEARCH MEMBER ID NAME AND CURRENT PRP function getMemberName($ccf_id){ // //$con = mysqli_connect('pogsnet07023.ipagemysql.com','dim_1heart','dimskie@123','oneheart'); // $con = mysqli_connect('localhost','root','','ccf'); // if (!$con) { // die('Could not connect: ' . mysqli_error($con)); // } ...
--TEST-- ZE2 A derived class does not know about privates of ancestors --FILE-- <?php class Bar { public static function pub() { Bar::priv(); } private static function priv() { echo "Bar::priv()\n"; } } class Foo extends Bar { public static function priv() { echo "Foo::priv()\n"; } } Foo::pub(); Foo::pri...
<?php /** * @package FOF * @copyright Copyright (c)2010-2020 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 2, or later */ namespace FOF30\Factory\Exception; use Exception; use RuntimeException; defined('_JEXEC') or die; class ModelNotFound extends RuntimeException { p...
<?php include("conexion.php"); //CHEQUEO LA CONEXION A LA BASE DE DATOS Y LA SELECCIONO. if (!$link) { die('No Conecta: ' . mysql_error()); } $labase=mysql_select_db($base); //------------------------------------ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtm...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class HomeController extends Controller { /** * Create a new controller instance. * * @return void */ public function __construct() { $this->middleware('auth'); } /** * Show the application dashbo...
<?php /** * Laravel - A PHP Framework For Web Artisans * * @package Laravel * @author Taylor Otwell <taylor@laravel.com> */ define('LARAVEL_START', microtime(true)); /* |-------------------------------------------------------------------------- | Register The Auto Loader |----------------------...
<?php return [ /* |-------------------------------------------------------------------------- | Default Filesystem Disk |-------------------------------------------------------------------------- | | Here you may specify the default filesystem disk that should be used | by the framework. T...
<?php /* +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2019 | +---------------------...
<?php namespace Apps\Core_Pages\Block; use Phpfox; defined('PHPFOX') or exit('NO DICE!'); class DeleteCategory extends \Phpfox_Component { public function process() { Phpfox::isUser(true); Phpfox::getUserParam('admincp.has_admin_access', true); $iCategoryId = $this->request()->getInt...
<?php namespace App\models; use Illuminate\Database\Eloquent\Model; class InviteeModel extends Model { // protected $table = "yb_interview_invitees"; }
<?php /* TwigBundle:Exception:exception.html.twig */ class __TwigTemplate_096150323bcd475a266a9d0f602098eda3c9132fc5700232b0445f8ada6324ae extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = arr...
<?php namespace VK\Actions\Enums; class MessagesGetConversationMembersNameCase { const NOM = 'nom'; // nominative const GEN = 'gen'; // genitive const DAT = 'dat'; // dative const ACC = 'acc'; // accusative const INS = 'ins'; // instrumental const ABL = 'abl'; // prepositional }
@extends('la.layouts.app') @section('htmlheader_title') BarangKeluar View @endsection @section('main-content') <div id="page-content" class="profile2"> <div class="bg-primary clearfix"> <div class="col-md-4"> <div class="row"> <div class="col-md-3"> <!--<img class="profile-image" src="{{ asset('la-as...
<?php /** * Common 逻辑层 */ namespace app\index\logic; class Common extends IndexBase { /** * 发送短信 */ public function sendSms($param = []) { if(empty($param['mobile'])) return ['code'=>400,'msg'=>'请输入手机号']; if(empty($param['userId'])) return ['code'=>400,'msg'=>'请刷新页面后重试']; ...
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
<?php trait foo { public function serialize() { return 'foobar'; } public function unserialize($x) { var_dump($x); } } class bar implements Serializable { use foo; } var_dump($o = serialize(new bar)); var_dump(unserialize($o)); ?>
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Spatie\Permission\Models\Permission; use Spatie\Permission\Models\Role; class RoleController extends Controller { public function __construct(){ $this->middleware('can:roles.index')->only('index')...
<?php /** * @author Tony Lea <tony@devdojo.com> * @package google-image-search */ namespace DevDojo\Tests; use DevDojo\GoogleImageSearch\ImageSearch; /** * Class ImageSearchTest. Main test class for image search. */ class ImageSearchTest extends \PHPUnit_Framework_TestCase { /** * Just a main image searc...
<?php namespace app\controllers; use Yii; use app\models\Actions; use app\models\search\ActionsSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * ActionsController implements the CRUD actions for Actions model. */ class ActionsController extends Controller { /*...
<?php namespace Iyzipay\Tests\Request; use Iyzipay\Model\Locale; use Iyzipay\Request\RetrieveSubMerchantRequest; use Iyzipay\Tests\TestCase; class RetrieveSubMerchantRequestTest extends TestCase { public function test_should_get_json_object() { $request = $this->prepareRequest(); $jsonObject ...
<?php $type = 'TrueType'; $name = 'Philosopher-BoldItalic'; $desc = array('Ascent'=>900,'Descent'=>-220,'CapHeight'=>660,'Flags'=>96,'FontBBox'=>'[-432 -330 1047 1020]','ItalicAngle'=>-10,'StemV'=>120,'MissingWidth'=>542); $up = -75; $ut = 50; $cw = array( chr(0)=>542,chr(1)=>542,chr(2)=>542,chr(3)=>542,chr(4)=>542,ch...
@extends('layouts.app') @section('title',' Posts Lists') @section('content') <div class="container"> <a href="{{route("admin.posts.create")}}"><button type="button" class="btn btn-info">Aggiungi Post</button></a> <ul class="responsive-table"> <li class="table-header"> {{-- <div class="col ...
<?php /* +------------------------------------------------------------------------+ | Phalcon Developer Tools | +------------------------------------------------------------------------+ | Copyright (c) 2011-2016 Phalcon Team (https://www.phalconphp.com) | ...