text
stringlengths
2
1.03M
<?php declare(strict_types=1); /* * This file is part of the Yasumi package. * * Copyright (c) 2015 - 2021 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 namespace PhpBench\Assertion; use Doctrine\Common\Lexer\AbstractLexer; class ExpressionLexer extends AbstractLexer { public const T_NONE = 'none'; public const T_INTEGER = 'integer'; public const T_FLOAT = 'float'; public const T_TOLERANCE = 'tolerance'; public const T_DOT = 'dot'; publ...
<?php /** * Test: Tracy\Dumper::toHtml() lazy => false */ declare(strict_types=1); use Tester\Assert; use Tracy\Dumper; require __DIR__ . '/../bootstrap.php'; require __DIR__ . '/fixtures/DumpClass.php'; // no lazy dump of scalars & empty array $options = [Dumper::LAZY => false]; Assert::match('<pre class="tr...
<?php // WARNING, this is a read only file created by import scripts // WARNING // WARNING, Changes made to this file will be clobbered // WARNING // WARNING, Please make changes on poeditor instead of here // // ?> <p> Uloskirjautuminen onnistui, kiitos käynnistä! </p>
@extends('vcms5::base') <?php $active = ['<span class="text-danger">Inactive</span>', '<span class="text-success">Active</span>']; ?> @section('top-white') <h1>All Users</h1> @stop @section('content-title') Users @stop @section('content') <div class="col-lg-12"> <div class="ibox float-e-margins"> <d...
<?php namespace App\Containers\AppSection\Game\Actions\Entity\World; use App\Containers\AppSection\Game\Actions\Entity\World\WorldAdapter\Setting; use App\Containers\AppSection\Game\Enum\GameValidationTypeEnum; use App\Containers\AppSection\Game\Exceptions\GameValidationFailedException; abstract class AbstractWorldA...
<?php namespace Symfony\Tests\Component\Form\Fixtures; use Symfony\Component\Form\Field; class InvalidField extends Field { public function isValid() { return false; } public function render(array $attributes = array()) { } }
<?php namespace App\Http\Resources; use Illuminate\Http\Resources\Json\JsonResource; class UserResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array */ public function toArray($request) { ...
<?php /** * @see https://github.com/laminas/laminas-validator for the canonical source repository * @copyright https://github.com/laminas/laminas-validator/blob/master/COPYRIGHT.md * @license https://github.com/laminas/laminas-validator/blob/master/LICENSE.md New BSD License */ namespace LaminasTest\Valid...
<?php /** * MobFirst * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file AFL_license.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/AFL-3.0 * If you did not receive a c...
@extends('admin.index') @section('content') @component('admin.event.components.sermons') @endcomponent <form method="POST" action="{{ route('admin.event.store') }}" enctype="multipart/form-data" autocomplete="off"> @csrf @section('page-heading') <legend>{{__('Create Event')}}</legend> ...
<?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; use Laravel\Sanctum\HasApiTokens; use App\Models\Company; class User extends Authenticatab...
<div id="page-wrapper"> <!-- Page Heading --> <div class="row"> <div class="col-lg-12"> <h1 class="page-header"> Modificar Usuarios </h1> <ol class="breadcrumb"> ...
<?php class Cockpit_Community_Note extends Cana_Table { public static function lastNoteByCommunity( $id_community ){ return self::q( 'SELECT * FROM community_note WHERE id_community = ? ORDER BY id_community_note DESC LIMIT 1', [$id_community])->get( 0 ); } public function date() { if (!isset($this->_date)) {...
<?php /** * Created by PhpStorm. * User:yanyl * Date: 2017/10/13 * Time: 11:12 */ namespace app\index\controller; use Couchbase\UserSettings; use think\Controller; use app\index\model\Ucpaas; use app\index\model\User; use app\index\model\QQ; class Auth extends Controller { /** 功能:注册界面的显示 * @return mixe...
<!-- Footer section --> <footer class="footer-section"> <h2>2017 All rights reserved. Designed by <a href="https://colorlib.com" target="_blank">Colorlib</a></h2> </footer> <!-- Footer section end -->
<?php namespace App\Models; // HasFactory -> テストデータの際に使用 use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Folder extends Model { use HasFactory; public function tasks() { // 外部キーと主キーの命名が同じ場合、引数を省略できる return $this->hasMany("App\Models\Task"...
@include("layout.header") </head> <body> <div class="uk-position-relative"> <!-- slider --> @foreach ($views as $selid) <div class="userdashboard" style=" background:linear-gradient(rgba(0,0,0,.3),rgba(0,0,0,.3)),url(image/destination/{{$selid -> feat}}); width: 100%; height: 500px; backgro...
<?php if (!function_exists('post_api_webservice')) { function post_api_webservice($url, $array) { $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => $url, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_RETURNTRANSFER => true, CURLOPT_EN...
<?php /** * Created by PhpStorm. * User: Doraemon * Date: 7/24/2018 * Time: 10:09 PM */ namespace App\Repositories; class UserRepository { }
@extends('layout.admin') @section('style') @stop @section('title') Analísis Cuantitativo {{$project->name}} <!--Aca va el nombre del proyecto--> @stop @section('content') <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script type="text/javascript"> ...
<?php include 'header.php';?> <script type="text/javascript" src="<?php echo base_url();?>assets/js/plugins/notifications/pnotify.min.js"></script> <script type="text/javascript" src="<?php echo base_url();?>assets/js/pages/components_notifications_pnotify.js"></script> <style> body { font-family: Arial, Helvetica,...
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class ION_Config { /* * Content of the config file to alter * */ static protected $content = NULL; /* * Complete path to the config file * */ static protected $path = NULL; // ---------------------------------------------...
<?php // Figure out page request method, then grab needed inputs $requestmethod = $input->requestMethod('POST') ? 'post' : 'get'; $action = $input->$requestmethod->text('action'); // Set up filename and sessionID in case this was made through cURL $filename = ($input->$requestmethod->sessionID) ? $input->$request...
<?php namespace App\Http\Controllers\Customer; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Response; use Validator; use Yajra\DataTables\DataTables; class TypeCustomer extends Controller { /** * نمایش لیست انواع مشتریان */ public function index(Request $request) { ...
<div class="edit-box edit-box-info"> <div class="edit-carousel edit-images"> <div class="edit-shop-header"> <h3>文本设置</h3> </div> <div class="edit-shop-content"> <form class="ivu-form ivu-form-label-right"> <div class="ivu-form-item"> <label class="ivu-form-item-label" style="width:75px">文本...
<?php /** * @filename Assets.php * @encoding UTF-8 * @author kangsa@126.com * @datetime 2015-7-15 18:26:32 * @version 1.0 * @Description */ namespace common\widgets\Qiniu; use yii\web\AssetBundle; class AssetBackend extends AssetBundle { public $js = [ 'js/plupload/plupload.full.min.js', ...
<?php /* default.html.twig */ class __TwigTemplate_27c2732b8438a0d0441a398c1ac288531276a570b7d0d907b28313a63c4f71ef extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 1 $this->parent = $this->loadTemplate("partials/base.html....
<?php namespace Scalr\Api\Service\User\V1beta0\Adapter; use Scalr\Api\DataType\ApiEntityAdapter; use Scalr\DataType\ScopeInterface; use Scalr\Api\Rest\Exception\ApiErrorException; use Scalr\Api\DataType\ErrorMessage; use Scalr\Model\Entity\RoleCategory; /** * RoleCategoryAdapter V1 * * @author Vitaliy Demidov ...
<?php use Monolog\Handler\NullHandler; use Monolog\Handler\StreamHandler; use Monolog\Handler\SyslogUdpHandler; return [ /* |-------------------------------------------------------------------------- | Default Log Channel |-------------------------------------------------------------------------- ...
<?php /** * Copyright (c) 1998-2015 Browser Capabilities Project * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use,...
<!doctype html> <html lang="{{ 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="{{ csrf_token() }}"> <title>{{ config('app.name', 'Laravel') }}</tit...
<?php /** * PHPUnit * * Copyright (c) 2001-2013, Sebastian Bergmann <sebastian@phpunit.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 must ...
<?php namespace App\Http\Livewire; use Livewire\Component; class VendorDisplay extends Component { public $vendor; public $modes = [ 'purchaseList' => false, 'pendingBills' => false, 'settle' => false, ]; protected $listeners = [ 'exitSettlement', 'vendorSett...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateAcheivesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('acheive', func...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Task; class StatController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $tasks = Task::all(); return view('stat....
<?php namespace App\Controllers\Admin; use App\Controllers\BaseController; use App\Models\UserModel; use App\Models\LoginModel; use App\Models\KategoriModel; use App\Models\TokoModel; class Profile extends BaseController { public function __construct() { $this->UserModel = new UserModel();; $...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; use App\Repositories\Job\EloquentJobRepository; use App\Models\Contact; class SiteController extends Controller { /** * Display a listing of the resource. * * @return \Ill...
<?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 use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $searchModel app\models\DepartmentSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = Yii::t('app', 'Departments'); $this->params['breadcrumbs'][] = $this->title; ?> <div class="col-lg-12"> <div cla...
<?php return [ /* |-------------------------------------------------------------------------- | Default Database Connection Name |-------------------------------------------------------------------------- | | Here you may specify which of the database connections below you wish | to use as...
<?php function getProducts($pdo){ $sql = "SELECT * FROM produto "; $stmt = $pdo->prepare($sql); $stmt->execute(); return $stmt->fetchAll(PDO::FETCH_ASSOC); } function getProductsByIds($pdo, $ids) { $sql = "SELECT * FROM produto WHERE id_prod IN (".$ids.")"; $stmt = $pdo->prepare($sql); $stmt->execute(); ret...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Home extends Model { protected $table='assets'; public static function getAllMenus(){ return self::where(['active'=>1])->orderBy("ordering")->get(); } }
<?php return unserialize('a:1:{i:0;O:27:"Doctrine\\ORM\\Mapping\\Column":9:{s:4:"name";s:4:"iso3";s:4:"type";s:6:"string";s:6:"length";i:45;s:9:"precision";i:0;s:5:"scale";i:0;s:6:"unique";b:0;s:8:"nullable";b:0;s:7:"options";a:0:{}s:16:"columnDefinition";N;}}');
<?php namespace Zenstruck\RedirectBundle\Tests\DependencyInjection; use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase; use Zenstruck\RedirectBundle\DependencyInjection\ZenstruckRedirectExtension; /** * @author Kevin Bond <kevinbond@gmail.com> */ class ZenstruckRedirectExtensionTest exte...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class SpecSubCategory extends Model { protected $fillable=['id','specs_category_id','specs_sub_category_name']; protected $table='tbl_specs_sub_category'; public function spec_cat() { return $this->belongsTo('App\SpecCategory','specs_categ...
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\AuthenticatesUsers; class LoginController extends Controller { /* |-------------------------------------------------------------------------- | Login Controller |----------------------------...
<?php /** * Really simple plugin. * * @return string */ function smarty_function_plugintest() { return 'Plugin works'; }
<?php /** * @package WPSEO\XML_Sitemaps */ /** * Sitemap provider for author archives. */ class WPSEO_Taxonomy_Sitemap_Provider implements WPSEO_Sitemap_Provider { /** @var array $options All of plugin options. */ protected $options; /** @var WPSEO_Sitemap_Image_Parser $image_parser Holds image parser instanc...
<?php /** * */ namespace Commercetools\Symfony\CartBundle\Tests\Event; use Commercetools\Core\Model\Payment\Payment; use Commercetools\Symfony\CartBundle\Event\PaymentPostCreateEvent; use PHPUnit\Framework\TestCase; class PaymentPostCreateEventTest extends TestCase { public function testPaymentPostCreateEvent...
<?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 RectorPrefix20210919\Symfony\Contracts\HttpClient\Exception; /** * When...
<?php class Swift_Bug34Test extends \PHPUnit_Framework_TestCase { public function setUp() { Swift_Preferences::getInstance()->setCharset('utf-8'); } public function testEmbeddedFilesWithMultipartDataCreateMultipartRelatedContentAsAnAlternative() { $message = new Swift_Message(); ...
<?php use App\Http\Controllers\Dashboard\LocationController; use App\Http\Controllers\UserController; use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is...
<?php declare(strict_types = 1); /** * This file is part of the jordanbrauer/phelpers PHP library. * * @copyright 2021 Jordan Brauer <18744334+jordanbrauer@users.noreply.github.com> * @license MIT * * For the full copyright and license information, please view the LICENSE * file that was distributed with this ...
<?php namespace MindbodyAPI\structures; class GetClientAccountBalancesResult { public $Clients; // ArrayOfClient } ?>
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model app\models\Comment */ $this->title = 'Update Comment: ' . ' ' . $model->id; $this->params['breadcrumbs'][] = ['label' => 'Comments', 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model-...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | DATABASE CONNECTIVITY SETTINGS | ------------------------------------------------------------------- | This file will contain the settings needed to access your database. | |...
@extends('layouts.app') @section('content') <div class="container"> <div class="row"> @include('admin.sidebar') <div class="col-md-9"> <div class="card"> <div class="card-header">Create New reportnumber</div> <div class="card-...
<?php /** * @copyright (c) JTL-Software-GmbH * @license http://jtl-url.de/jtlshoplicense */ /** * Stellt alle Werte die fuer das Update in der DB wichtig sind zurueck * * @return bool */ function resetteUpdateDB() { $oColumns_arr = Shop::DB()->query("SHOW COLUMNS FROM tversion", 2); if (is_array($oColum...
<?php namespace Database\Seeders; use App\Models\Contabilidad\CuentaPlan; use Carbon\Carbon; use Illuminate\Database\Seeder; class CuentaPlanSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { foreach ( $this->get_data() as $data )...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Notifications\LikeSong; use App\Song; use App\Like; use Auth; use App\User; class LikeController extends Controller { public function like($song_id) { $song = Song::find($song_id); $user_id = $song->user_id; $user...
<?php declare(strict_types=1); namespace Yiisoft\Csrf\Tests; use LogicException; use PHPUnit\Framework\TestCase; use Yiisoft\Csrf\CsrfToken; use Yiisoft\Csrf\Tests\Mock\MockCsrfTokenStorage; use Yiisoft\Security\TokenMask; final class CsrfTokenTest extends TestCase { public function testBase(): void { ...
<!-- footer content --> <footer> <div class="pull-right" style="color: black;"> SMO Tracking 2018 -Tous droits réservés </div> <div class="clearfix"></div> </footer> <!-- /footer content -->
<!DOCTYPE html> <html lang="en"> <!-- Bootstrap core CSS --> <link href="css/bootstrap.min.css" rel="stylesheet"> <!--Import Google Icon Font--> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Raleway:600&amp;...
<?php use Twig\Environment; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; use Twig\Markup; use Twig\Sandbox\SecurityError; use Twig\Sandbox\SecurityNotAllowedTagError; use Twig\Sandbox\SecurityNotAllowedFilterError; use Twig\Sandbox\SecurityNotAllowedFunctionError; use Twig\Source; use Twig\Template; /* @D...
<?php /** * TechDivision\Import\Converter\Product\Attribute\Observers\ProductToAttributeOptionValueConverterObserver * * PHP version 7 * * @author Tim Wagner <t.wagner@techdivision.com> * @copyright 2019 TechDivision GmbH <info@techdivision.com> * @license https://opensource.org/licenses/MIT * @link ...
<?php namespace Field\Support\Relations; use Field\Models\Field; trait BelongsToField { /** * Get the field that owns the resource. * * @return \Illuminate\Database\Eloquent\Model */ public function field() { return $this->belongsTo(Field::class); } }
<?php /** * File for class AllegroStructDoGetMyDataResponse * @package Allegro * @subpackage Structs * @date 2015-04-14 * @author Roman Lip * @version 1 */ /** * This class stands for AllegroStructDoGetMyDataResponse originally named doGetMyDataResponse * Meta informations extracted from the WSDL * - from sch...
<script src="<?= base_url(); ?>/assets/template_home/js/jquery-3.3.1.slim.min.js"></script> <script src="<?= base_url(); ?>/assets/template_home/js/bootstrap.js"></script> <!-- DATA TABLE SCRIPTS --> <script src="<?php echo base_url('assets/js/dataTables/jquery.dataTables.js') ?>"></script> <script src="<?php ...
<!-- need to remove --> <li class="nav-item"> <a href="{{ route('admin.user.index') }}" class="nav-link {{ Request::routeIs('admin.user*') ? 'active' : '' }}"> <i class="fas fa-users"></i> <p>Пользователи</p> </a> </li>
<div> <!-- I begin to speak only when I am certain what I will say is not better left unsaid - Cato the Younger --> @if(session()->has('status')) <div class="py-4 px-2 bg-green-200"> {{session()->get('status')}} </div> @elseif(session()->has('error')) <div class="py-4 px-2 bg-red-200"> ...
<html> <head> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600' rel='stylesheet' type='text/css'> <link href="style/style.css" rel="stylesheet" charset=UTF-8> <title>ConfigWeb - TTU</title> <link rel="shortcut icon" href="/img/icon.ico" /> </head> <body> <!-- Est...
<?php declare(strict_types=1); namespace Antidot\Application\Http\Handler; use Antidot\Application\Http\Middleware\MiddlewareQueue; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\MiddlewareInterface; use Psr\Http\Server\RequestHandlerInterface; use SplQueue; ...
@extends('layouts.app') @push('scripts') <style type="text/css"> #users>li { cursor: pointer; } </style> @endpush @section('content') <div class="container"> <div class="row justify-content-center"> <div class="col-12"> <div class="card"> <div class="card-header...
<?php class RPC_JSON_PARSER extends Exception { protected $message = 'JSON Parser Error in RPC Request'; protected $code = -32700; } class RPC_INVALID_REQUEST extends Exception { protected $message = 'Malformed or Invalid Request'; protected $code = -32600; } class RPC_METHOD_NOT_EXISTS extends Except...
<?php defined('BASE') or exit('No direct script access allowed!'); require_once BASE.'/app/model/base/BaseBO.php'; /** * Auto generated Model Class represents table 'user' * @author: Thin PHP Framework * @date: 2011-05-27 12:47 */ class User extends BaseBO { private $fields; private $userId; private $email; p...
<?php namespace LITC\HeadBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; /** * This is the class that validates and merges configuration from your app/config files * * To learn more see {@link http://symfony.c...
@extends('sistema.principal') @section('contenido') <div class="main-content"> <div class="section__content section__content--p30"> <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <div class="overview-wrap"> <h2 class="title-1">Empleados</h2> ...
<?php /** * Saga pattern implementation. * * @author Maksim Masiukevich <contacts@desperado.dev> * @license MIT * @license https://opensource.org/licenses/MIT */ declare(strict_types=0); namespace ServiceBus\Sagas\Configuration\Exceptions; /** * */ final class InvalidSagaConfiguration extends \RuntimeExcep...
<?php include("db.php"); session_start(); if(isset($_SESSION["vendoruserid"])){ ?> <html> <head> <title>FARMAZON</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstra...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Userr extends Model { }
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\Auth; class RedirectIfAuthenticated { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @param string|null $guard * @return mixed */ ...
<?php /** * Invoicing_company Model * */ class Invoicing_company extends Abstract_model { public $table = "invoicingcompany"; public $pkey = "invoicing_co_id"; public $alias = ""; public $fields = array( ); public $selectCla...
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class PacienteSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { DB::table('pacientes')->insert([ [ 'nombres' ...
<?php use Illuminate\Database\Seeder; class SolicitantesSeed extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { //Popula tabela de solicitantes factory(iService\Solicitante::class, 60)->create(); } }
<?php namespace Tests\Feature; use Tests\TestCase; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Foundation\Testing\RefreshDatabase; class SubscribeToThreadsTest extends TestCase { use RefreshDatabase; /** @test */ public function a_user_can_subscribe_to_threads() { $this->sign...
<?php namespace App\Http\Middleware; use Closure; class Cors { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { return $next($request) ...
@extends('backend.layouts.default') @section('title') Admin Panel - {{ $banner->name }} - Edit @endsection @section('content') <div class="page-header"> <div class="pull-right"> <button class="btn btn-primary" type="submit" form="form-banner"><i class="glyphicon glyphicon-floppy-disk"></i> Save</button> </di...
<?php require_once('includes/load.php'); // Checkin ¿Qué nivel de usuario tiene permiso para ver esta página? page_require_level(2); ?> <?php $product = find_by_id('products',(int)$_GET['id']); if(!$product){ $session->msg("d","ID vacío"); redirect('product.php'); } ?> <?php $delete_id = delete_by...
@extends('layout') @section('header') <div class="page-header"> <h1><i class="glyphicon glyphicon-edit"></i> Funcionarios / Edit #{{$funcionario->id}}</h1> </div> @endsection @section('content') @include('error') <div class="row"> <div class="col-md-12"> <form action="{{ route('funcionarios.update', $funcio...
<?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\Component\DependencyInjection\Tests; use Symfony\Component\Depe...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use TorMorten\Eventy\Facades\Eventy; class TourAvailability extends Model { protected $table = 'gmz_tour_availability'; protected $primaryKey = 'id'; public function __construct(array $attributes = []) { $this->setFillable()...
<?php /** This file is part of curriculum - http://www.joachimdieterich.de * FormProcessor * @package core * @filename fp_group.php * @copyright 2016 Joachim Dieterich * @author Joachim Dieterich * @date 2016.05.28 18:06 * @license: * * The MIT License (MIT) * Copyright (c) 2012 Joachim Dieterich http://www.curriculum...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePermissionsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('permissions...
<?php if(!isset($_SESSION ['idsesi'])) { echo "<script> window.location.assign('../index.php'); </script>"; } ?> <div class="container"> <div class="row"> <div class="col-xs-12"> <div class="panel panel-success"> <div class="panel-heading"> <h3 class="pan...
<?php namespace MixerApi\Crud\Test\TestCase\Services; use Cake\Http\Response; use Cake\TestSuite\TestCase; use MixerApi\Crud\Services\Delete; class CrudTraitTest extends TestCase { public function test_set_table_name(): void { $this->assertInstanceOf(Delete::class, (new Delete())->setTableName('name'...
<?php class TestHelper { private static $aimeos; private static $context = array(); public static function bootstrap() { $aimeos = self::getAimeos(); $includepaths = $aimeos->getIncludePaths(); $includepaths[] = get_include_path(); set_include_path( implode( PATH_SEPARATOR, $includepaths ) ); } pri...
<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it sho...
<!-- Optional JavaScript; choose one of the two! --> <!-- Option 1: Bootstrap Bundle with Popper --> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Session; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; use App\Models\User; use App\Models\Series; use App\Models\...