text
stringlengths
2
1.03M
<?php $start = microtime(true); require("config.php"); $data = json_decode(file_get_contents("php://input")); $truePath = $basePath . $data->fileName; $timeStamp = $data->timeStamp; try { // delete any old data that may have been uploaded $stmt = $pdo->prepare('DELETE FROM spectra WHERE timestamp = :times...
<?hh final class C implements HH\MethodAttribute {} type Alias = C; final class Foo<T> { // Reserved user attribute <<__Memoize>> public function bar(): void {} <<C>> public function baz(): void {} // Not allowed <<NotFound>> public function qux(): void {} // No generics allowed <<T>> public...
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
<?php /*- * #%L * Smart ID sample PHP client * %% * Copyright (C) 2018 - 2019 SK ID Solutions AS * %% * 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 wi...
<nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block bg-light sidebar collapse"> <div class="sidebar-sticky pt-3"> @if (auth()->user()->role == 1) <h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted"> <span>Admin</span> <a class="d-flex align...
<html> <head> </head> <body> <div class="row"> <div class="col-xs-12 col-sm-12 col-md-10 col-lg-10 ficha-producto"> <center> <h1>{{"Resumen de Registro"}} </h1> </center> <div class="table-responsive"> <table class="table no-m...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>@yield('title')</title> <!-- Google Font: Source Sans Pro --> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&displa...
<?php /*----------------------------------------------------------------- !!!!警告!!!! 以下为系统文件,请勿修改 -----------------------------------------------------------------*/ namespace app\model\console; use app\model\Pm as Pm_Base; use ginkgo\Arrays; //不能非法包含或直接执行 if (!defined('IN_GINKGO')) { return 'Access denied'; } /...
<?php use Faker\Generator as Faker; /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | This directory should contain each of the model factory definitions for | your application. Factories pro...
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class PayGrade extends Model { protected $table = "pay_grades"; public $guarded = ['id']; public $timestamps = false; public function currency() { return $this->belongsToMany(Currency::class)->withPivot('max_salary','mi...
<?php declare(strict_types = 1); namespace DrdPlus\Tables\Theurgist\Spells\SpellParameters\Exceptions; class InvalidFormatOfPropertyUsedForTrap extends \InvalidArgumentException implements Logic { }
<?php defined('BASEPATH') or exit('No direct script access allowed'); class Auth extends MY_Controller { public function __construct() { parent::__construct(); $this->load->database(); $this->load->model('Auth_model'); } public function sendNotification() { $token = 'Regist...
<x-guest-layout> <script src="{{ URL::to('/js/pages/register.js') }}" defer></script> <x-jet-authentication-card> <x-slot name="logo"> <img src="{{ URL::to('img/favicon.ico') }}" width="100" height="150"> </x-slot> <x-jet-validation-errors class="mb-4" /> <form meth...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class UserPermissions extends Model { public $appends = ['route']; /** * Gets the name attribute. * * @return <type> The name attribute. */ public function getRouteAttribute() { $permission = Permissions::where(...
<?php // +---------------------------------------------------------------------- // | ShopXO 国内领先企业级B2C免费开源电商系统 // +---------------------------------------------------------------------- // | Copyright (c) 2011~2019 http://shopxo.net All rights reserved. // +-------------------------------------------------------------...
<?php exit; 156 => array( 'url' => url('my-notice-156'), 'name' => '@我', 'class' => 'info', 'icon' => '' ), ?>
<!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.0"> <title>tugas4psdk</title> </head> <body> <form action="enkVigenere.php" method="get"> Plainteks : <...
<?php /** * Vrací pátý pád jména k prvnímu pádu * @param string $jmeno první pád jména */ function osloveni($jmeno) { $ljmeno = " " . mb_convert_case($jmeno, MB_CASE_LOWER, "UTF-8"); switch ($ljmeno[strlen($ljmeno) - 1]) { case 'a': $replacepair = $ljmeno[strlen($ljmeno) - 2] == 'i' ? ["a", "e"] : ["a", "o"]; ...
<?php /** * DEMO文件. 展示基于Telnet协议的数据传输 * * 收集部署在服务器上的客户端发送来的数据,整理入库 * Created by Lane * User: lane * Date: 16/4/16 * Time: 下午10:05 * E-mail: lixuan868686@163.com * WebSite: http://www.lanecn.com */ //引入MeepoPS require_once '../../MeepoPS/index.php'; //使用文本传输的Api类 $telnet = new \MeepoPS\Api\Telnet('0.0.0.0', ...
<?php /** * PackUserParams * * PHP version 5 * * @category Class * @package Kleister * @author Thomas Boerger <thomas@webhippie.de> * @license http://www.apache.org/licenses/LICENSE-2.0.html Apache-2.0 * @link https://github.com/kleister/kleister-php */ /** * Kleister OpenAPI * * API definition fo...
<?php /** * * EGMapKMLFeed Class * * KML Feed Creator * * @author Antonio Ramirez Cobos * @link www.ramirezcobos.com * * * @copyright * * Copyright (c) 2010 Antonio Ramirez Cobos * Permission is hereby granted, free of charge, to any person obtaining a copy of this software * and associated documen...
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://doc.hyperf.io * @contact group@hyperf.io * @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE */ namespace App\Controller; use Hyperf\HttpServer\Annotation\AutoControlle...
<?= $this->extend('layout/main_template') ?> <?= $this->section('content') ?> <center> <h4> Rekap Kelompok Tani Berdasarkan Jumlah Anggota </h4> </center> <div class="card"> <div class="table-responsive"> <table class="table align-items-center mb-0"> <thead> <tr> ...
<?php define("_RAND_MAX",32767); class Backpropagation { public $output=null; public $delta=null; public $weight=null; public $numLayers=null; public $layersSize=null; public $beta=null; public $alpha=null; public $prevDwt=null; // public $dataTrain=null; public $dataTest=null; public $NumPattern=null; pu...
<?php namespace App\Controllers; use App\Models\InviteCode; use App\Models\User; use App\Models\Code; use App\Models\Payback; use App\Services\Auth; use App\Services\Config; use App\Utils\Tools; use App\Utils\Telegram; /** * HomeController */ class HomeController extends BaseController { public function inde...
<?php declare(strict_types=1); namespace AutoTextGen; class Context { private array $variables; public function __construct(array $variables) { $this->variables = $variables; } public static function fromArray(array $variables): self { return new self($variables); } ...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Expense_category_model extends CI_Model { public $tableName = "expense_category"; public function __construct() { parent::__construct(); } public function get_records($where = array(), $orderBy, $limit, $count) ...
<?php namespace Rule; use Morebec\Validator\Rule\IsEmail; use PHPUnit\Framework\TestCase; class IsEmailTest extends TestCase { public function testValidate() { $rule = new IsEmail(); $this->assertTrue($rule->validate('email@domain.com')); $this->assertFalse($rule->validate('@domain.co...
<?php session_start(); unset($_SESSION['username']); echo" <script> alert('Berhasil Logout'); window.location='login.php'; </script>"; ?>
@include('layout._includes.header') <form action="" method="POST"> <div class="container"> <fieldset class="space_field"> <legend class="edit_legend"><h4>Editar Usuário</h4></legend> <form action="#!"> <div class="row"> <div class="i...
@extends('layouts.app') @section('content') <div class="container"> <div class="row"> <div class="col-md-8 col-md-offset-2"> <div class="panel panel-default"> <div class="panel-heading">Resetear Contraseña</div> <div class="panel-body"> @if (s...
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\user_request; class RequestController extends Controller { public function loanRequest(Request $request){ $this->validate($request,[ 'type'=>'required', 'loan_pu...
@extends('frontend.templates.default') @section('content') <h2>Koleksi Buku</h2> <blockquote> <p class="flow-text">Koleksi buku yang bisa kamu baca dan pinjam!</p> </blockquote> <div class="row"> @foreach ($books as $book) @include('frontend.templates.components.card-book', ['book' => $book]) @endf...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateUsersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('users', function ...
<?php namespace CarlosIO\Geckoboard\Widgets; class HighchartsChartTest extends \PHPUnit_Framework_TestCase { public function testJsonForSingleSeriesData() { $myWidget = new HighchartsChart(); $myWidget->setId('56797-7e3d4237-f798-433a-abe7-ac1857dfdf0f'); $myWidget->setType('line'); ...
<?php require_once 'db_config.php'; require_once 'config.php'; require_once '../lib/functions.php'; spl_autoload_register('__autoload'); function __autoload($class_name){ require_once "../lib/".$class_name.".php"; }
@extends('admin') @section('content_admin') @include('admin.partials._header') @include('admin.partials._sidebar') <!-- page content --> <div class="rightpanel"> <ul class="breadcrumbs"> <li><a href="dashboard.html"><i class="iconfa-home"></i></a> <span class="separator"></s...
<?php namespace App\Http\Controllers\Auth; use App\User; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; use Illuminate\Foundation\Auth\RegistersUsers; class RegisterController extends Controller { /* |---------------------------------------...
<?php namespace App\Http\Controllers; use App\Product; use Illuminate\Http\Request; class ProductController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $products=Product::all(); return...
<?php namespace App\Http\Controllers\Admin\Bill; use App\Models\BillReceive; use App\Http\Controllers\Controller; use App\Models\CategoryCosts; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class ReceiveController extends Controller { /** * @var BillReceive */ private $receive; ...
<?php namespace addons\RfMerchants; use Yii; use backend\interfaces\AddonWidget; /** * 升级数据库 * * Class Upgrade * @package addons\RfMerchants */ class Upgrade implements AddonWidget { /** * @var array */ public $versions = [ '1.0.0', // 默认版本 '1.0.1', '1.0.2', ]; ...
<?php namespace App\Http\Controllers; use App\Methods\GenericMethod; use App\Models\Document; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Illuminate\Contracts\Routing\ResponseFactory; use Illuminate\Support\Facades\Route; class DocumentController extends Controller { public function index...
<?php /* Copyright (c) 2007, Till Brehm, projektfarm Gmbh 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 retain the above copyright notice, this list of ...
@extends('layouts.app2') @section('content') <div class="container"> <div class="row"> <div class="col-md-8 col-md-offset-2"> <div class="panel panel-default"> <div class="panel-heading">Register</div> <div class="panel-body"> <form class="for...
<?php use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model frontend\modules\testtabularinput\models\Course */ $this->title = $model->title; $this->params['breadcrumbs'][] = ['label' => 'Courses', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; ?> <div cla...
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model app\models\StaticDosen */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="static-dosen-form"> <?php $form = ActiveForm::begin(); ?> <?= $form->field($model, 'id')->textInput() ?> <?= $form->fiel...
@extends('layouts.app') @section('content') <div class="col-lg-12"> <div class="card"> <div class="card-header"> <strong>Create Receptionist</strong> </div> <div class="card-body card-block"> <form action="{{ route('receptionists.store') }}" method="POST" class="fo...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class ProductModel extends Model { protected $table = "product"; public function productAttributePricing(){ return $this->hasMany('App\Models\ProductAttibutePricingModel','product_id'); } public function productExtras(){ ...
<?php namespace App\Traits; use Illuminate\Database\Eloquent\Model; use Carbon\Carbon; Trait Boutique { public function __construct() { setlocale(LC_TIME, 'French'); } /** * @return string date de la forme mardi 12 janvier 2018 */ public function maDateSimple() { $...
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* {0=>'not_complete',1=>'online',2=>'offline'} */ class Paper_model extends CI_Model{ function add(){ $start_date = date('Y-m-d H:i:s', strtotime($this->input->post('start_date'))); $end_date = date('Y-m-d H:i:s', strtotime($this->inp...
<?php class Mage_Adminhtml_Model_Extension_Local_Collection extends Mage_Adminhtml_Model_Extension_Collection_Abstract { protected function _fetchPackages() { // fetch installed packages $pear = Varien_Pear::getInstance(); $pear->run('list', array('allchannels'=>1)); $output = $...
<?php use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model app\models\MaterialWarehouseOut */ $this->title = $model->material_out_orderid; $this->params['breadcrumbs'][] = ['label' => 'Material Warehouse Outs', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->tit...
@extends('layouts.myapp') <style> </style> @section('content') <!-- BEGIN: Content--> <div class="app-content content"> <div class="content-overlay"></div> <div class="header-navbar-shadow"></div> <div class="content-wrapper"> <div class="content-header row"> </div> ...
<?php namespace XLaravel\ModelSettingsBag; use Illuminate\Support\Arr; trait HasSettingsBag { # Boot the HasSettingsBag trait. public static function bootHasSettingsBag(): void { self::creating(function ($model) { if (!$model->settings) { $model->settings = $model->get...
--TEST-- \PEAR2\Pyrus\Channel::__construct() test basics for ssl channels --FILE-- <?php $thrown = false; require __DIR__ . '/setup.php.inc'; try { $chan = new \PEAR2\Pyrus\ChannelFile(dirname(__DIR__).'/ChannelRegistry/sample_ssl_channel.xml'); try { $chan->validate(); } catch (Exception $e) { ...
<!-- start: Content --> <div id="content" class="span10"> <ul class="breadcrumb"> <li> <i class="icon-home"></i> <a href="index.html">Home</a> <i class="icon-angle-right"></i> </li> <li><a href="#">Data Materi Uji</a></li> <i class="icon-angle-right"></i> <li><a href="#...
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | ...
<?php /** * feindura - Flat File Content Management System * Copyright (C) Fabian Vogelsteller [frozeman.de] * * This program 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 Licen...
<?php $email = service('email'); $email->setFrom('your@example.com', 'Your Name'); $email->setTo('someone@example.com'); $email->setCC('another@another-example.com'); $email->setBCC('them@their-example.com'); $email->setSubject('Email Test'); $email->setMessage('Testing the email class.'); $email->send();
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Migration_Create_products extends CI_Migration { public function up() { $this->dbforge->add_field(array( 'blog_id' => array( 'type' => 'INT', 'constraint' => 5, 'unsigned' => TRUE, 'auto_increment' => TRUE), 'blog_title' => array( 't...
<?php namespace App\Http\Requests; use App\Models\Database; use Gate; use Illuminate\Foundation\Http\FormRequest; use Symfony\Component\HttpFoundation\Response; class MassDestroyDatabaseRequest extends FormRequest { public function authorize() { abort_if(Gate::denies('database_delete'), Response::HTT...
<?php namespace UTA\SegProBundle\Entity; use Doctrine\ORM\Mapping AS ORM; use Symfony\Component\Security\Core\Role\RoleInterface; /** * @ORM\Entity * @ORM\Table(name="cargo") */ class Cargo implements RoleInterface { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(strategy="AU...
<?php /** * GET /members/ | Get data books. */ use App\Functions\Controllers\Auth; $run = function () { App\Controllers\Controller::Auth()->guestLogin(); };
<?php namespace App\Model\Group; use Illuminate\Database\Eloquent\Model; use App\Model\Group\Reply; class Like extends Model { Protected $guarded = []; public function reply() { return $this->belongsTo(Reply::class); } }
<?php namespace common\models; use yii\base\Model; use yii\data\ActiveDataProvider; use common\models\Country; /** * CountrySearch represents the model behind the search form of `common\models\Country`. */ class CountrySearch extends Country { /** * {@inheritdoc} */ public function rules() { ...
<?php /** * @package hubzero-cms * @copyright Copyright 2005-2019 HUBzero Foundation, LLC. * @license http://opensource.org/licenses/MIT MIT */ // No direct access defined('_HZEXEC_') or die(); /** * Wiki macro class for getting a linked title to a wiki page */ class PageMacro extends WikiMacro { /** ...
<?php $language["ACP_BAN_IP"]="Ban IPs"; $language["ACP_FORUM"]="Настройки Форума"; $language["ACP_USER_GROUP"]="Настройки Груп"; $language["ACP_STYLES"]="Настройки Стилей"; $language["ACP_LANGUAGES"]="Настройки Языка"; $language["ACP_CATEGORIES"]="Настройки Категорий"; $language["ACP_TRACKER_SETTINGS"]="Настройки Трек...
<?php //require "DataManager.php"; use Dompdf\Dompdf; class Atlas { public static function regMail($vendor) { $application = DataManager::query("application","*","vendor_id={$vendor->id}"); $application = $application[0]; $vendorDetails = DataManager::query("vendor_details","*","...
@extends('layout') @section('resources') <script> function listaproductos(){ var arreglo = new Array(); @foreach($productos as $p) arreglo.push({{{$p->CodBarras}}}); @endforeach return arreglo; } </script> {{ HTML::script('assets/own/js/gestion/productos/index.js') }} @stop @section('body') <!--Begin Da...
<form class="col-md-12 formChild" id="activity_form" data="3"> <input type="hidden" name="type_report" value="3"/> <div class="col-md-12"><h3>Number Form : <?=$report_number?></h3></div> <div class="col-md-12"> <br/><label>Activity Name: </label><br/> <input type="text" name="activity_name" class="form-control" ...
<?php use Illuminate\Support\Facades\Session; use Laravolt\SemanticForm\Elements\FormOpen; class FormOpenTest extends \PHPUnit\Framework\TestCase { public function testRenderBasicFormOpen() { Session::shouldReceive('token')->once()->andReturn('abc123'); $form = new FormOpen(); $expect...
<?php if(!empty($error)) { echo '<div class="error">'; echo $this->upload->display_errors('<p>', '</p'); echo '</div>'; } if(!empty($message)) { echo $message; } if(!empty($backurl)) { echo '<br />'.anchor($backurl,''.lang('rr_goback').''); } ?> <div id="upload"> <?php echo form_open_multipart(base_url...
<?php return array ( 'providers' => array ( 0 => 'Illuminate\\Auth\\AuthServiceProvider', 1 => 'Illuminate\\Broadcasting\\BroadcastServiceProvider', 2 => 'Illuminate\\Bus\\BusServiceProvider', 3 => 'Illuminate\\Cache\\CacheServiceProvider', 4 => 'Illuminate\\Foundation\\Providers\\ConsoleSuppor...
<?php // autoload_real.php @generated by Composer class ComposerAutoloaderInitb30e58268561d105130cdf8189ab9d34 { private static $loader; public static function loadClassLoader($class) { if ('Composer\Autoload\ClassLoader' === $class) { require __DIR__ . '/ClassLoader.php'; } ...
<?php /** * Grandstream-XMLApp * * Copyright (c) 2017 pudelek.org.pl * * @license MIT License (MIT) * * For the full copyright and license information, please view source file * that is bundled with this package in the file LICENSE * * @author Marcin Pudełek <marcin@pudelek.org.pl> */ namespace mrcnpdlk\G...
<?php /* Cachekey: cache/stash_default/doctrine/[concrete\core\entity\attribute\setkey@[annot]][1]/ */ /* Type: array */ /* Expiration: 2021-02-28T22:04:23+05:30 */ $loaded = true; $expiration = 1614530063; $data = array(); /* Child Type: array */ $data['return'] = unserialize(base64_decode('YToyOntpOjA7TzoyNzoiR...
<?php namespace App\Http; use Illuminate\Foundation\Http\Kernel as HttpKernel; class Kernel extends HttpKernel { /** * The application's global HTTP middleware stack. * * These middleware are run during every request to your application. * * @var array */ protected $middleware =...
@extends('layouts.cargo_layout') @section('content') <div class="row"> <div class="card col-md-10 col-lg-10"> <div class="card-header bg-primary text-white"> Latest shipments </div> <div class="card-body"> <table class="table"> <thead> ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Cviebrock\EloquentSluggable\Sluggable; use App\Models\Collection; class Catcollection extends Model { use HasFactory; use Sluggable; public function sluggable(): array { return...
<?php namespace App\Http\Requests; use Auth; use Illuminate\Foundation\Http\FormRequest; class SaveUnitRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return Auth::check(); } ...
@extends('admin.template') @section('title') Persetujuan @endsection @section('page-breadcrumb') Data Persetujuan @endsection @section('sub-breadcrumb') Halaman Permintaan Persetujuan {{env('APP_NAME')}} @endsection @section('content') <div id="card-approvals"></div> <div id="card-details"></div...
<?php namespace Github\Model; interface KeyInterface { }
<?php namespace Tests\Feature; use App\Models\Subscriber; use Tests\BaseTest; class SubscriptionTest extends BaseTest { /** * Create a subscriber * * @return void */ public function test_subscribe() { $subscriber = Subscriber::factory()->make()->toArray(); $response =...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Level1Territory; use App\Level2Territory; use App\B2BCustomer; use App\B2BCustomerCampaign; use App\CampaignLevel2Territory; use DB; class CampaignsTerritoriesStep4Controller extends Controller { public function index() { $Le...
<?php use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; class DatabaseSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // $this->call(UsersTableSeeder::class); $this->call(UserTableSeeder::class); ...
<div class="panel panel-default"> <div class="panel-heading">Bộ lọc</div> <div class="panel-body"> <form action="{{ url('posts') }}" method="get"> <div class="form-group"> <label for="">Danh mục</label> <select name="term_id" class="form-control"> <option value="0">Chọn</option> {{ APITerm::get...
<?php namespace App\Http\Controllers; use App\Leave; use Illuminate\Http\Request; class LeaveController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function __construct() { $this->middleware('auth'); } ...
<?php namespace ccxt; // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code use Exception as Exception; // a common import class theocean extends Exchange { public function describe () { $this->check_...
<?php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { public function registerBundles() { $bundles = [ new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\Securit...
<?php declare(strict_types=1); namespace SP\Admin\Http\Requests\Setting; use Illuminate\Foundation\Http\FormRequest; /** * Form data for analytics on update event. * * @package SP\Admin\Http\Requests\Setting */ final class UpdateAnalytics extends FormRequest { /** * Determines if the user is authorized ...
<?php namespace ccxt; // PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: // https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code use Exception; // a common import use \ccxt\ExchangeError; use \ccxt\DDoSProtection; class whitebit extends Exchange { public functi...
<?php function rmall($dir) { $files = array_diff(scandir($dir), array('.','..')); foreach ($files as $file) { (is_dir("$dir/$file")) ? rmall("$dir/$file") : unlink("$dir/$file"); } return rmdir($dir); } /* * Clean up the parameters so we keep parents up to the top * mlab: convert: ...
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a co...
<?php // $Id: banners.php,v 1.1 2007/05/15 02:35:20 minahito Exp $ //%%%%%% Admin Module Name Banners %%%%% define("_AM_DBUPDATED",_MD_AM_DBUPDATED); define("_AM_CURACTBNR","Current Active Banners"); define("_AM_BANNERID","Banner ID"); define("_AM_IMPRESION","Impressions"); define("_AM_IMPLEFT","Imp. L...
<?php defined('C5_EXECUTE') or die("Access Denied."); $app = \Concrete\Core\Support\Facade\Application::getFacadeApplication(); ?> <div class="row"> <div class="col-xs-12"> <fieldset> <legend><?= t('Filter Data Source'); ?></legend> <div class="form-group"> <?= $f...
@extends('layout/guru') @section('content') <div class="container-fluid px-4"> <h1 class="mt-2 mb-4">Tambah Bab</h1> <form action = "{{ url('/bab-simpan') }}" method = "post"> @csrf <div class="content"> <div class="row mb-3"> <label class="col-sm-2 col-form-label ">ID BUKU</label> <div class="co...
<?php namespace App\Http\Livewire\Admin; use Livewire\Component; class CondominiosIndex extends Component { public function render() { $condominios = auth()->user()->condominios; return view('livewire.admin.condominios-index', ['condominios'=>$condominios]); } }
<?php namespace App\Http\Livewire\Inc; use Livewire\Component; class Footer extends Component { public function render() { return view('livewire.inc.footer'); } }
<?php use \ParagonIE\ConstantTime\Base64DotSlash; class Base64DotSlashTest extends PHPUnit\Framework\TestCase { /** * @covers Base64DotSlash::encode() * @covers Base64DotSlash::decode() */ public function testRandom() { for ($i = 1; $i < 32; ++$i) { for ($j = 0; $j < 50; ...
<?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...