text
stringlengths
2
1.03M
<?php declare(strict_types=1); /* * Created by solutionDrive GmbH * * @copyright 2018 solutionDrive GmbH */ namespace solutionDrive\MultiStepBundle\Model; use solutionDrive\MultiStepBundle\StepChecker\StepRequiredCheckerInterface; interface MultiStepInterface { public function getId(): string; public f...
<?php /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2012 Phalcon Team (http://www.phalconphp.com) | +...
<nav class="navbar navbar-expand-lg navbar-light navbar-shop fixed-top navbar-fixed-top" data-aos="fade-down"> <div class="container"> <a class="navbar-brand" href="index.html"> <img src="/images/logo-tokokami.svg" alt="" /> TokoKami.com </a> <button class="navbar-tog...
@extends('layouts.main') @section('content') <!-- Page Heading --> <div class="d-sm-flex align-items-center justify-content-between mb-4"> <h1 class="h3 mb-0 text-gray-800">Devise</h1> {{-- <a href="#" class="d-none d-sm-inline-block btn btn-sm btn-primary shadow-sm"><i class="fas ...
<?php /* * Template Name: Imprint */ ?>
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Admin\Brand; use App\Models\Admin\Category; use App\Models\Admin\Product; use App\Models\Admin\Blogcate; use App\Models\Admin\Blog; use App\Models\Admin\Slider; use App\Models\Admin\Course; use App\Models\Admin\Portfoliocate; use App\Mo...
<?php namespace App\Http\Controllers\Backend; use DB; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class MenuController extends Controller { public function index() { return view( 'backend.menus.index' ); } public function addmenu( Request $request ) { if ( ! $request->has( 'data' ) ) { ...
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Laravel</title> <link rel="stylesheet" href="{{ asset('css/main.css') }}"> <!-- Fonts --> ...
<i class="fa fa-gratipay tl-site" style="font-size:48px;color:red"></i>
@extends('layouts.dashboard') @section('content') <!-- begin:: Content Head --> <div class="kt-subheader kt-grid__item mt-4" id="kt_subheader"> <div class="kt-container kt-container--fluid "> <div class="kt-subheader__main"> <h3 class="kt-subheader__title"> ...
<?php /** * Hide or show widgets conditionally. */ class Jetpack_Widget_Conditions { static $passed_template_redirect = false; public static function init() { if ( is_admin() ) { add_action( 'sidebar_admin_setup', array( __CLASS__, 'widget_admin_setup' ) ); add_filter( 'widget_update_callback', array( _...
<?php namespace App\Http\Controllers; use App\Category; use Illuminate\Http\Request; class CategoryController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $categories = Category::paginate(5); ...
<?php namespace App\Http\Controllers\Employees; use App\Models\User; use App\Helpers\Helper; use App\Helpers\AuthNet; use Illuminate\Support\Str; use Illuminate\Http\Request; use App\Models\Employees\Title; use App\Models\Employees\Agents; use App\Models\Employees\InHouse; use App\Models\Employees\Mortgage; use App\M...
<?php namespace App\Http\Controllers\Admin; use App\Http\Requests\FormuleRequest; use Backpack\CRUD\app\Http\Controllers\CrudController; use Backpack\CRUD\app\Library\CrudPanel\CrudPanelFacade as CRUD; /** * Class FormuleCrudController * @package App\Http\Controllers\Admin * @property-read \Backpack\CRUD\app\Libr...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateCommissionsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::disableForeignKeyConstraints(); Schema::create('commissi...
<div class="ourClientsWrapp"> <h1>OUR CLIENTS</h1> <div class="clientsSlide container arowSty "> @foreach ($our_clients as $client) <div class="clintBox"> <div class="bgcc"> <img src="{{Helper::ImageFit(Helper::getImagePath($client->image,$client->type),10...
<?php /** * Created by PhpStorm. * Page: Bojidar * Date: 8/19/2020 * Time: 2:53 PM */ namespace MicroweberPackages\Page\Observers; use MicroweberPackages\Page\Models\Page; class PageObserver { /** * Handle the Page "saving" event. * * @param \MicroweberPackages\Page\Page $page * @retur...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Language extends Model { protected $fillable = [ 'name','code', ]; public $timestamps = false; }
<?php namespace Laravel\Nova\Http\Requests; use Closure; use Illuminate\Support\Collection; class ForceDeleteResourceRequest extends DeletionRequest { /** * Get the selected models for the action in chunks. * * @param int $count * @param \Closure $callback * @return mixed */ ...
@extends('admin.dashboard') @section('header') <title>Keselamatan</title> @endsection @section('content') <div class="contianer" style="width: 700px;"> <h4>Edit Keselamatan</h4> <form action="{{url('keselamatan/update/')}}" method="POST" enctype="multipart/form-data"> <div class="in...
@extends('layouts.app') @section('content') <div class="container"> <h1>Vi udfører</h1> </div> <div class="container-fluid"> <nav class="navbar navbar-expand-lg navbar-light bg-light no-padding"> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navBarGenres" aria-con...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Jabatan extends Model { protected $table = 'tb_jabatan'; protected $primaryKey = 'jabatan_id'; protected $hidden = [ 'created_at', 'updated_at' ]; public function get_list($text) { return self...
<?php $lang['Validation_error'] = 'Please provide all the required information.'; $lang['mm_validation_error'] = 'Error : invalid data have been sent.'; $lang['something_problem'] = 'An error occurred.'; $lang['mm_email_available'] = 'Sorry, it looks like this email belongs to an existing account.'; $lang['mm_user_cre...
<?php namespace App\Http\Controllers; use App\Models\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class UserController extends Controller { public function register(Request $request) { if (!$request->filled('name') || !$request->filled('email') || !$request->filled('passwor...
<?php namespace spec\Knp\RadBundle\HttpFoundation; use PhpSpec\ObjectBehavior; class RequestManipulatorSpec extends ObjectBehavior { /** * @param Symfony\Component\HttpFoundation\Request $request * @param Symfony\Component\HttpFoundation\ParameterBag $attributesBag */ function let($request, $a...
@extends('backEnd.layouts.master') @section('title','Report Parcel') @section('content') <div class="profile-edit mrt-30"> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12"> <form action="{{url('editor/parcel/report')}}" method="get" class=""> @csrf <div class="r...
<?php /** * DO NOT EDIT THIS FILE! * * This file was automatically generated from external sources. * * Any manual change here will be lost the next time the SDK * is updated. You've been warned! */ namespace Enbit\eBaySDK\Test\MerchantData\Enums; use Enbit\eBaySDK\MerchantData\Enums\TaxDescriptionCodeType; c...
<?php namespace Modules\Security\Http\Requests\Admin; use Illuminate\Foundation\Http\FormRequest; class PoliceStationUserAgentFormRequest extends FormRequest { /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { $ru...
<?php session_start(); include('../conn.php'); if (!isset($_SESSION['id']) ||(trim ($_SESSION['id']) == '')) { header('location:../'); exit(); } $sq=mysqli_query($conn,"select * from `user` where userid='".$_SESSION['id']."'"); $srow=mysqli_fetch_array($sq); if ($srow['access']!=2){ header('locatio...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AddColumeThoiGianPhatHanh extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('van_ban_d...
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Item extends Model { use SoftDeletes; protected $table = 'items'; protected $primaryKey = 'id'; protected $dates = ['deleted_at']; }
<?php namespace Jumbodroid\HttpClient\Psr7; use Psr\Http\Message\StreamInterface; /** * PHP stream implementation. * * @var $stream */ class Stream implements StreamInterface { /** * Resource modes. * * @var string * * @see http://php.net/manual/function.fopen.php * @see http://p...
<?php defined('BASEPATH') or die('No direct script access allowed!'); ?> <div class="modal-dialog modal-lg"> <div class="modal-content"> <form class="form-horizontal" role="form" id="formEditSlider" action="<?= base_url('C_slider/edit_produk') ?>" method="POST" enctype="multipart/form-data"> <i...
<!DOCTYPE html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Laravel pertama saya</title> <!-- Fonts --> <link href="https://fonts.googleapis.com/css2?...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class CuponsController extends Controller { // public function consultar(){ return view("painel.cupons.consultar"); } }
<?php namespace Tests\Feature; use Tests\TestCase; use Illuminate\Foundation\Testing\WithFaker; use Illuminate\Foundation\Testing\RefreshDatabase; class IdTest extends TestCase { /** * A basic test example. * * @return void */ public function testExample() { $response = $this-...
<?php namespace App; use Illuminate\Database\Eloquent\Model; /** * App\Role * * @mixin \Eloquent * @property int $id * @property string $name * @property string $description * @property \Carbon\Carbon|null $created_at * @property \Carbon\Carbon|null $updated_at * @method static \Illuminate\Database\Eloquent...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Barang; use App\Pesanan; use App\PesananDetail; use App\User; use Auth; use SweetAlert; use Carbon\Carbon; class HistoryController extends Controller { public function __construct(){ $this->middleware('auth'); } public f...
<?php /** * Start Session */ session_start(); /** * Auto Load */ require __DIR__ . '/../vendor/autoload.php'; /** * Load .env file */ $dotenv = new Dotenv\Dotenv(__DIR__.'/../'); $dotenv->load(); /** * Display / Hide Errors */ if(getenv('DEBUG') == 1){ ini_set('display_errors', 1); ini_set('display_...
<ul class="sidebar-menu" data-widget="tree"> <li class="header">@lang('admin.main_navigation')</li> <li> <a href="{{route('admin')}}"> <i class="fa fa-dashboard"></i> <span>@lang('admin.dashboard')</span> <span class="pull-right-container"></span> </a> </li> <li>...
<?php defined('BASEPATH') or exit('No direct script access allowed'); $route['default_controller'] = 'PagesController/view'; // $route['(:any)'] = 'PagesController/view/$1'; $route['404_override'] = ''; $route['translate_uri_dashes'] = FALSE; //$route['login/validate_login'] = 'AdminController/validate_login'; $route...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Order extends Model { const PAID = 'paid'; const UNPAID = 'unpaid'; /** * The attributes that aren't mass assignable. * * @var array */ protected $guarded = []; /** * The attributes that should b...
<?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 Route...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateUsersTable extends Migration // Créations de migrations afin de mettre en place les bases de données { /** * Run the migrations. * * @return void ...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title><?php echo $this->_appinfo['tem...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateInteressesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('interesses',...
<?php session_start(); $file = fopen("user_folders/".$_SESSION['username']."/product_data.json", 'r'); if (filesize("user_folders/".$_SESSION['username']."/product_data.json") == 0){ echo "<script>alert('You have not entered any products till now!!!');</script>"; } else{ $file_read = fread($file, filesize("user_fold...
<?php use App\Http\Controllers\Api\ApiProjectController; use App\Http\Controllers\Api\CategoryController; use App\Http\Controllers\Api\HandleApplicateController; use App\Http\Controllers\Api\UserController; use App\Http\Controllers\Api\ApiContractController; use App\Http\Controllers\Api\ApiFileController; use App\Http...
<?php namespace Barryvdh\StackMiddleware\Tests; use Barryvdh\StackMiddleware\ServiceProvider; use PHPUnit_Framework_TestCase; class ServiceProviderTest extends PHPUnit_Framework_TestCase { /** * @var PHPUnit_Framework_MockObject_MockObject */ protected $app; /** * @var \Barryvdh\StackMiddl...
<?php use Faker\Generator as Faker; use Laravel\Passport\Client as Model; $factory->define(Model::class, function (Faker $faker) { return [ 'name' => $faker->word, 'secret' => str_random(60), 'redirect' => $faker->url(), 'personal_access_client' => 0, 'password_client' => 0...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> INFO - 2017-10-28 23:26:45 --> Config Class Initialized INFO - 2017-10-28 23:26:45 --> Hooks Class Initialized DEBUG - 2017-10-28 23:26:45 --> UTF-8 Support Enabled INFO - 2017-10-28 23:26:45 --> Utf8 Class Initialized INFO - 2017-10-28 23:26:45 ...
<?php /** * This file is part of the Phalcon Framework. * * (c) Phalcon Team <team@phalcon.io> * * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ declare(strict_types=1); namespace Phalcon\Tests\Unit\Translate\Adapter\Gettext; ...
<?php namespace Encore\Admin\Grid\Displayers; use Encore\Admin\Admin; class Editable extends AbstractDisplayer { /** * @var array */ protected $arguments = []; /** * Type of editable. * * @var string */ protected $type = ''; /** * Options of editable function....
@extends('admin.index') @section('title') offers @endsection @section('content') <section class="content"> <div class="container-fluid"> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <h3 class="card-title">offers Table <...
<?php namespace App\Http\Controllers; use App\Student; use Illuminate\Http\Request; class StudentController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function __construct() { $this->middleware('auth'); } ...
<?php // autoload_static.php @generated by Composer namespace Composer\Autoload; class ComposerStaticInit03e5efa35a3773cf6672322031a8608a { public static $files = array ( '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', '667aeda72477189d0494fecd3...
<?php return [ '@class' => 'Grav\\Common\\File\\CompiledYamlFile', 'filename' => '/home/yo/Descargas/cms/grav-skeleton-twenty-site/system/config/system.yaml', 'modified' => 1477197689, 'data' => [ 'absolute_urls' => false, 'timezone' => '', 'default_locale' => NULL, 'para...
<?php namespace Myth\Auth\Test\Fakers; use Faker\Generator; use Myth\Auth\Entities\User; use Myth\Auth\Models\UserModel; class UserFaker extends UserModel { /** * Faked data for Fabricator. * * @param Generator $faker * * @return User */ public function fake(Generator &$faker): User { return new Use...
<?php use common\components\Common; use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model common\models\RestaurantMenu */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="restaurant-menu-form"> <div class="navbar navbar-inner block-header"> <div class="muted...
<?php namespace App\Http\Controllers; use App; use Illuminate\Http\Request; use App\Http\Requests\Alumnosrequest; class controllerAlumnos extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function getAlumnos(){ $alumnos =...
<?php namespace Gabievi\Promocodes\Traits; use Carbon\Carbon; use Gabievi\Promocodes\Exceptions\OverAmountException; use Gabievi\Promocodes\Models\Promocode; use Gabievi\Promocodes\Facades\Promocodes; use Gabievi\Promocodes\Exceptions\AlreadyUsedException; trait Rewardable { /** * Get the promocodes that ar...
<?php namespace FedEx\AsyncService\ComplexType; use FedEx\AbstractComplexType; /** * The descriptive data regarding the result of the submitted transaction. * * @author Jeremy Dunn <jeremy@jsdunn.info> * @package PHP FedEx API wrapper * @subpackage ASync Service * * @property \FedEx\AsyncService\Simp...
<div class="form-group wysiwyg-container"> <label class="col-md-{{ $labelSize ?? 2 }} control-label">{{ $label }} @if(isset($required) && $required) @include('pulsar::elements.required') @endif</label> <div class="col-md-{{ $fieldSize ?? 10 }}"> <textarea class="form-control wysiwyg" name="{{ $name }}" ...
<?php namespace StephanSchuler\JsonApi\Demo\Domain\Quantity; class Countable implements Quantity { private $quantity; private $weight; protected function __construct(int $quantity, string $weight = null) { $this->quantity = $quantity; $this->weight = $weight; } public stati...
<?php use App\Http\Requests\Request; use App\Http\Requests; /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a br...
<x-quiztemplate> @php if ($totalTimer) { $timerss = Carbon\CarbonInterval::seconds($totalTimer)->cascade()->forHumans(); }else{ $timerss = '0 second'; } @endphp <div class="container"> <div class="row justify-content-center"> <div class="col-lg-6 col-md-8"> <div class="card shadow quizrule...
<?php //if (!defined("HDPHP_PATH")) // exit('No direct script access allowed'); $path = dirname(__FILE__); $url = str_replace("/www","http://localhost",$path); $action = isset($_GET['action']) ? $_GET['action'] : "show"; switch ($action) { case "show": require $path . '/tpl/show.php'; break; }
<?php namespace Concrete\Core\Permission\Key; use Loader; use User; use Concrete\Core\Permission\Duration as PermissionDuration; class EditPageThemePageKey extends PageKey { protected function getAllowedThemeIDs() { $u = new User(); $pae = $this->getPermissionAccessObject(); if (!is_ob...
<?php namespace App\Repository; use App\Entity\BriefApprenant; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; /** * @method BriefApprenant|null find($id, $lockMode = null, $lockVersion = null) * @method BriefApprenant|null findOneBy(array $criteria,...
<?php use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model common\models\FaqCategory */ $this->title = $model->name; $this->params['breadcrumbs'][] = ['label' => 'Разделы', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; \yii\web\YiiAsset::register($this)...
<?php include 'inc/header.php'; $result = mysqli_query($con, "SELECT * FROM `subscriptions` WHERE `username` = '$username' AND `active` = '1' AND `expires` >= '$date'") or die(mysqli_error($con)); if (mysqli_num_rows($result) < 1 && $_SESSION['rank'] != "5") { $subscription = "0"; }else{ $subscription = "1"; } if...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Role extends Model { use HasFactory; public function user() { return $this->belongsToMany('App\Models\User'); } }
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class UploadOnlyPhotoRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** ...
<?php namespace App\Services; use Nette\Utils\DateTime; interface IOrderService { public function getMyOrders() : array; public function getMyAllOrders(DateTime $dateBegin, DateTime $dateTo) : array; public function getOrders() : array; public function getArchiveOrders(DateTime $dateFrom, DateTime $d...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class LoginReport extends Model { protected $table = 'by_running_human_login'; //禁用 timestamps public $timestamps = false; }
<?php if (!function_exists('failure')) { /** * 错误抛出函数 * @param $code * @param $msg * @return \think\response\Json */ function failure($code, $msg = '') { if ($msg == '') { $msg = config("msg.{$code}"); } $arr = [ 'ret' => (string)$code, ...
<div class="modal fade" tabindex="-1" role="dialog" id='modalEdit'> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span...
<div class="modal fade" id="delete_subject{{$subject->id}}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <form action="{{route('admin.subjects.delete')}}" method="post"> @csrf <div class="modal-con...
<?php namespace App\Http\Controllers\LawSchools; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class FeesController extends Controller { public function index(){ return view('fees.index'); } }
<?php /** * @version $Id: backup.php 5034 2017-07-26 08:35:49Z mic $ * @package Language Language Translation German Backend * @author mic - https://osworx.net * @copyright 2017 OSWorX * @license GPL - www.gnu.org/copyleft/gpl.html */ // Heading $_['heading_title'] = 'Sichern &amp; Wiederherstellen'; // Te...
<?php use Illuminate\Database\Seeder; use App\Models\ServiceInfo; class ServiceInfoSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $serviceInfo = [ [ 'name' => 'address', 'value' => '7...
<?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\Validator\Mapping; use Symfony\Component\Validator\Co...
<?php declare(strict_types=1); namespace VDOLog\Core\Infrastructure\Doctrine; use Doctrine\ORM\EntityManagerInterface; use VDOLog\Core\Domain\Game; use VDOLog\Core\Domain\Game\Exception\GameNotFound; use VDOLog\Core\Domain\GameRepository; class DoctrineGameRepository implements GameRepository { private EntityMa...
<?php namespace App\Models; use App\Models\User; use App\Models\Review; use App\Models\CommentOfWork; use App\Models\WorkList; use App\Models\PushAlarm; use App\Models\SubscribeOrInterest; use App\Models\ChatRoom; use App\Models\RecommendOfWork; use App\Models\Grade; use App\Models\CategoryWork; use App\Models\Contra...
<?php namespace ContainerXCidtB8; use Symfony\Component\DependencyInjection\Argument\RewindableGenerator; use Symfony\Component\DependencyInjection\Exception\RuntimeException; /** * @internal This class has been auto-generated by the Symfony Dependency Injection Component. */ class getTranslation_Loader_MoService ...
<?php /** * Copyright 2010 - 2017, Cake Development Corporation (https://www.cakedc.com) * * Licensed under The MIT License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2010 - 2017, Cake Development Corporation (https://www.cakedc.com) * @license MIT License (http:...
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* | ------------------------------------------------------------------- | SMILEYS | ------------------------------------------------------------------- | This file contains an array of smileys for use with the emoticon helper. | Individual ima...
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class CategoriaPlatoRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** *...
<?php declare(strict_types = 1); namespace Rebing\GraphQL\Tests\Unit; use GraphQL\Type\Definition\InputObjectType; use Rebing\GraphQL\Tests\Support\Objects\ExampleInputType; use Rebing\GraphQL\Tests\TestCase; class InputTypeTest extends TestCase { public function testToType(): void { $type = new Exam...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Photo extends Model { use HasFactory; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'name', 'des...
<?php use Illuminate\Database\Seeder; class UserTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // DB::table('users')->insert([ 'name'=>'admin', 'email'=>'admin@admin.com', 'is_a...
<?php session_start(); require_once "database.php"; if(!isset($_SESSION["logged"]) || $_SESSION["logged"]!==true){ header("Location: index.php"); exit; } $sqlO = "SELECT * FROM `round`"; $resO = $conn->query($sqlO); $rowO = $resO->fetch_assoc(); $number = $rowO["number"]; $number = 3; ?> <!DOCTYPE html>...
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable implements MustVerifyEmail { use Notifiable; /** * The attributes that are mass assignable. * ...
<?php /* @var $this yii\web\View */ use yii\helpers\Html; ?> <h1>tools/index</h1> <p><?=$data?></p> <p><?=$this->render('@front_public/datetime')?></p> <p><?php $form = \yii\widgets\ActiveForm::begin() ?></p> <p> <?=$form->field($model, 'username')?> <?=$form->field($model, 'auth_key')?> <?=\yii\helpers\Html::encode($m...
<?php declare(strict_types = 1); use Pu239\User; if (empty($_GET['wantusername'])) { die('<div class="margin10 has-text-info">You can\'t post nothing please enter a username!</div>'); } require_once __DIR__ . '/../../include/bittorrent.php'; global $container; $is_valid = valid_username($_GET['wantusername'], t...
<?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; use Illuminate\Database\Eloquent\Model; /** * @property int $idmedia * @property int $idtype * @property int $IDMEDIAPRESSE * @property boolean $actif * @property string $CREATED_AT * @property string $UPDATED_AT * @property Medium $medium * @property Typepresse $typepresse */ class Med...
<?php namespace App\Http\Controllers\Admin; use App\Model\Menudashboard; use App\Model\Role; use App\Model\Submenudashboard; use App\Model\User; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class LevelManageController extends Controller { public function index() { $roles = Role::...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class OffersToProduct extends Model { protected $tabl=['offers_to_products']; protected $fillable=array('product_id','offer_id'); }
<?php namespace GetCandy\Api\Core\Search\Providers\Elastic\Sorts; use GetCandy\Api\Core\Categories\Models\Category; class CategorySort extends AbstractSort { /** * The category model. * * @var Category */ protected $category; public function __construct(Category $category) { ...