text stringlengths 2 1.03M |
|---|
<?php
namespace App\Providers;
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\Facades\Route;
class RouteServiceProvider extends ServiceProvide... |
<<<<<<< HEAD
<?php
class Auth extends CI_Controller
{
public function __construct()
{
parent::__construct();
$this->load->library('form_validation');
}
public function login()
{
$this->form_validation->set_rules('username', 'Username', 'required', ['required' => 'Username harus diisi']);
$this->form_vali... |
<?php
if(!empty($this->session->flashdata('info'))){?>
<div class="alert alert-success" role="alert"><?=$this->session->flashdata('info')?></div>
<?php
}
?>
<div class="row">
<div class="col-md-12">
<a href="<?= base_url()?>buku/tambah_buku" class="btn btn-success"><i class= "fa fa-plus"></i> Tambah Bu... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UserRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the v... |
<?php
/**
* Adds autoincrement flags
*
* Copyright 2010-2017 Horde LLC (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (GPL). If you
* did not receive this file, see http://www.horde.org/licenses/gpl.
*
* @author Michael J. Rubinsky <mrubinsk@horde.org>
* @category Horde
* ... |
<?php
use yii\helpers\Html;
use kartik\grid\GridView;
use yii\helpers\ArrayHelper;
/* @var $this yii\web\View */
/* @var $searchModel frontend\modules\repayment\models\LoanBeneficiarySearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Employer Penalty';
$this->params['breadcrumbs'][] = $th... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>EJA</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- <meta http-equiv="refresh" content="1"> -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize... |
<?php
/*******************************************************************************
* This file is part of the GraphQL Bundle package.
*
* (c) YnloUltratech <support@ynloultratech.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source ... |
<?php
/**
* The sidebar containing the main widget area
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package WPCAP_B4
*/
if ( ! is_active_sidebar( 'sidebar-1' ) ) {
return;
}
?>
<aside id="secondary" class="widget-area sidebar-1-area mt-3r card">
<?php dynamic... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
include('_BaseController.php');
class OLAS extends _BaseController {
public function __construct(){
parent::__construct();
}
public function index()
{
foreach($this->bookCatalogue->_list("ORDER BY DateAcquired DESC LIMIT 5") as $b){ ... |
<?php
namespace Nylas\Webhooks;
use Nylas\Utilities\API;
use Nylas\Utilities\Options;
use Nylas\Utilities\Validator as V;
use Nylas\Exceptions\NylasException;
/**
* ----------------------------------------------------------------------------------
* Nylas Webhooks
* -----------------------------------------------... |
<x-app-layout>
<x-slot name="header">
<div class="flex justify-between">
<h2 class="font-semibold text-xl text-gray-800 items-center">
{{__('Products') }}
</h2>
<a class="rounded font-bold px-3 py-3 bg-gray-800 text-white" href="{{route('products.add')}}">... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Role;
use App\Models\Permission;
use Inertia\Inertia;
class RoleController extends Controller
{
public function index()
{
$defaultPaginate = config('crud.paginate.size');
... |
<?php
namespace App\Http\Controllers\API;
use App\Http\Controllers\Controller;
use App\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
class EmployeeController extends Controller
{
/**
* Display a listing of the resource.
*
* @retur... |
<?php
/*
* This file is part of PharIo\Manifest.
*
* (c) Arne Blankerts <arne@blankerts.de>, Sebastian Heuer <sebastian@phpeople.de>, Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
names... |
<?php
namespace Charlie\Http\Middleware;
use Illuminate\Cookie\Middleware\EncryptCookies as BaseEncrypter;
class EncryptCookies extends BaseEncrypter
{
/**
* The names of the cookies that should not be encrypted.
*
* @var array
*/
protected $except = [
//
];
} |
<?php
/**
* A cryptographic random generator class used for generating secret keys
*
* This is based in part on Drupal code as well as what we used in our own code
* prior to introduction of this class.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Gener... |
<?php
declare(strict_types=1);
namespace App\Storage;
use Cake\Utility\Text;
/**
* A file persisted / to-be-persisted in object storage somewhere.
*/
class StorageObject
{
protected string $name;
protected string $path;
public function __construct(string $name, ?string $path = null)
{
$thi... |
<?php
/**
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "li... |
<?php
function upload($upload_file_name="files"){
//文件保存目录路径
$save_path = $_SERVER['DOCUMENT_ROOT'].'/uploads/';
//文件保存目录URL
$save_url = '/uploads/';
//定义允许上传的文件扩展名
$ext_arr = array(
'image' => array('gif', 'jpg', 'jpeg', 'png', 'bmp'),
'flash' => array('swf', 'flv'),
'media' => array('swf', 'flv', 'mp3', '... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class UploadController extends Controller
{
function fileupload(Request $req)
{
// $photo = $request->file('image')->getClientOriginalName();
$photo=$req->file('file')->getClientOriginalName();
$d... |
<?php $this->setLayoutVar('title', '本を登録する') ?>
<form action="<?php echo $base_url ?>/book/saveByIsbn" method="post" id="book_data">
<input type="hidden" name="_token" value="<?php echo $this->h($_token) ?>" />
<?php $counter = 0; ?>
<?php if(isset($bookDataList)): ?>
<?php foreach($bookDataList as $bookData): ?>
... |
<?php
/**
* @file
* Contains \Drupal\order\Form\BusinessDeptForm.
*/
namespace Drupal\order\Form;
use Drupal\Core\Form\FormBase;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
use Drupal\order\ServerDistribution;
use Drupal\hostlog\HostLogFactory;
class BusinessDeptForm extends FormBase {
prote... |
<style>
.noText {
color: transparent;
text-indent: -9999px;
font-size: 0px;
line-height: 16px; /* retains height */
width:20px; height:20px;
border-radius:50%; border:none;
}
.changeText {
color: #fff;
font-size: 12px;
line-height: 16px;
text-align:center;
font-weight:bold;
width:20px;
height:... |
<?php
namespace app\service\controller;
class Upload extends Base
{
//上传图片
public function uploadImg()
{
$file = request()->file('file');
$fileInfo = $file->getInfo();
/*if($fileInfo['size'] > 1024 * 1024 * 2){
// 上传失败获取错误信息
return json( ['code' => -2, 'dat... |
<?php
/**
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyr... |
<?php
/**
* TValidationSummary class file
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.pradosoft.com/
* @copyright Copyright © 2005-2013 PradoSoft
* @license http://www.pradosoft.com/license/
* @version $Id$
* @package System.Web.UI.WebControls
*/
/**
* TValidationSummary class
*
* T... |
@extends('layouts.master')
@section('title')
<title>Detail Pengajuan</title>
@endsection
@section('content')
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800 font-weight-bold">Detail Pengajuan</h1>
</div>
<div class="row mb-3">
<div class="col-1">
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class GestaoDePessoal extends MY_Controller
{
public function index()
{
$data = $this->getFiltros();
$data['funcao'] = form_dropdown('', $data['cargosFuncoes'], '');
$this->load->view('gestao_de_pessoal', $data);
... |
<?php
namespace Tests\Feature\Http\Controllers;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Foundation\Testing\RefreshDatabase;
class ControllerTest extends TestCase
{
/**
* A basic feature test example.
*
* @return void
*/
public function testExample()... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\amex\models\BookingMaster */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="booking-master-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'GID')->textInput() ?... |
<?php
namespace App\Http\Controllers\Admin;
use App\Models\Mensagem;
use App\Models\Fornecedor;
use Illuminate\Http\Request;
use Carbon\Carbon as Carbon;
use App\Mail\newLaravelEmails;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Mail;
use App\Http\Controllers\Controller;
class MensagemControlle... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateFachkrafteTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('fachkrafte', function(Blueprint $table) {
$table->in... |
<?php
namespace App\Http\Controllers;
use App\Models\Todo;
// use App\Http\Requests\StoreTodoRequest;
// use App\Http\Requests\UpdateTodoRequest;
use Illuminate\Http\Request;
class TodoController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
... |
<?php
include_once (__DIR__ . "/AbstractModel.php");
final class MediaModel extends AbstractModel
{
private $metadataFields = array();
public function __construct ()
{
parent::__construct();
$this->connectToDatabase() or die(_('Failed to connect to database '.
$this->database... |
@if ( count($errors) > 0 )
@foreach ( $errors->all() as $error )
<div>
<div class="alert bg-danger text-white alert-dismissible fade show close" role="alert">
{{ $error }}
<button type="button" class="btn-close text-white" data-dismiss="alert" aria-label="Close" >... |
<a class="btn btn-link text-dark py-0 px-1 btn-sm" href="{{ route('categories.edit', $data->id) }}"><i class="feather-edit"></i></a>
<form action="{{ route('categories.delete', $data->id) }}" method="post" style="display: inline-flex" >
{!! csrf_field() !!}
<input type="hidden" name="_method" value="DELETE">
... |
<?php
namespace TYPO3\CMS\Fluid\Tests\Unit\ViewHelpers\Format;
/* *
* This script is backported from the TYPO3 Flow package "TYPO3.Fluid". *
* *
* It is free software; you ... |
<?php
namespace Glooby\Debug\Writer;
/**
* @author Emil Kilhage
*/
class NullWriter implements WriterInterface
{
/**
* {@inheritdoc}
*/
public function write($name, $output)
{
}
} |
<?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\Integration\Db\Reference;
use I... |
<?php
use yii\db\Migration;
/**
* Class m190224_175422_create_table_users
*/
class m190224_175422_create_table_users extends Migration
{
public function up()
{
$this->createTable('users', [
'id' => $this->primaryKey(),
'firstName' => $this->string(255)->notNull(),
... |
@extends('admin.layout.index')
@section('content')
<div class="content">
<!-- <link rel="stylesheet" href="css/style_admin.css"> -->
<h1 >Loại Tin <small>Thêm</small></h1>
<hr>
<form action="admin/loaitin/them" method="post" class="col-md-7">
@if (count($errors)>0)
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateServicesCreatesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('service... |
<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +-----------------------------------------------... |
<!-- container-scroller -->
<!-- plugins:js -->
<script src="<?= base_url() ?>assets/star-admin/src/assets/vendors/js/vendor.bundle.base.js"></script>
<script src="<?= base_url() ?>assets/star-admin/src/assets/vendors/js/vendor.bundle.addons.js"></script>
<!-- endinject -->
<!-- Plugin js for this page-->
<!-- End plug... |
<?php
class Home extends MY_Controller{
function __construct(){
parent::__construct();
}
function index()
{
$this->load->model('slide_model');
//Du lieu tu class cha MY_Controller
//Lay danh sach cac slide
$list_slide = $this->slide_model->get_list();
$this->data['slide'] = $list_slide;
//Lay danh s... |
<?php
namespace Concrete\Core\Workflow\Progress;
use \Concrete\Core\Foundation\Object;
use Loader;
use \Concrete\Core\Package\PackageList;
class Category extends Object {
public static function getByID($wpCategoryID) {
$db = Loader::db();
$row = $db->GetRow('select wpCategoryID, wpCategoryHandle, pkgID from Workf... |
<?php
namespace com\pv138\easyUnion\taobao\request;
use com\pv138\easyUnion\taobao\RequestCheckUtil;
/**
* TOP API: taobao.tbk.activitylink.get request
*
* @author auto create
* @since 1.0, 2019.07.03
*/
class TbkActivitylinkGetRequest
{
/**
* 推广位id,mm_xx_xx_xx pid三段式中的第三段。adzone_id需属于appKey拥有者
**... |
<?php
return [
'all' => [
"item",
"plusviewtoserie",
],
'authorize' => [
],
'guest' => [
],
'admin' => [
//
],
]; |
<?php
namespace App\Http\Resources\Web;
use Illuminate\Http\Resources\Json\ResourceCollection;
class PointCollection extends ResourceCollection
{
public function toArray($request)
{
return parent::toArray($request);
}
} |
<?php namespace Contentify\Models;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Str, DB, DateAccessorTrait, ValidatingTrait, Eloquent, InvalidArgumentException, Exception;
class BaseModel extends Eloquent {
use ValidatingTrait;
use DateAccessorTrait;
/**
* True if model is slugable
... |
<!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>UB Barley Procurement</title>
... |
<?php
$error='';
$my_token=isset($_GET['token'])?$_GET['token']:'';
$package_id=isset($_GET['package_id'])?$_GET['package_id']:'';
$amount_to_pay=0;
$payment_description=Yii::t("default",'Membership Package - ');
$data=Yii::app()->functions->getMerchantByToken($my_token);
if ($data){
$amount_to_pay=normalPrettyPric... |
<div class="row themeWhite">
<div class="col-md-12">
<div class="mb-3 card">
<div class="card-header">
REGISTRAR MODULACIÓN MASIVA
</div>
<div class="card-body">
<form id="frm-registrarModulacionMasiva">
<div class="hide">
<? $permisoAnterior = !empty($dataPermisoAnterior) ? $dataPermisoA... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class CreateRegionsRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules... |
@extends('master')
@section('maintitle') <image height="20" src="http://www.clker.com/cliparts/5/4/4/d/1224784575930693112schoolfreeware_Tennis_Ball.svg"> Tenis</image> @endsection
@section("css")
<link href="{{ URL::asset('front/css/plugins/sweetalert/sweetalert.css')}}" rel="stylesheet">
@endsection
@section('c... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Facades\DB;
class CreateUpmsStdattendance extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{... |
<?php
/* @var $this UsuarioController */
/* @var $model Usuario */
/* @var $form CActiveForm */
?>
<?php $this->widget( 'ext.EChosen.EChosen' ); ?>
<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
'id'=>'pago-form',
// Please note: When you enable ajax validation, make sure the corresponding... |
<?php
namespace App\Http\Controllers\Admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\Inquiry;
use App\Models\Admin;
use App\Models\User;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use App\Http\Requests\ReplyRequest;
class InquiryController extends ... |
<?php
namespace Database\Seeders;
use App\Models\News;
use App\Models\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return v... |
<?php
// Important! Change to the namespace of your application
namespace _namespace_\models;
use Code_Alchemy\helpers\File_Uploader;
use Code_Alchemy\helpers\Image_File_Converter;
use Code_Alchemy\parnassus;
/**
* Project: Your Project Name
* Model: Your Module Name and Description
*
* Purpose: De... |
<?php
/**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
namespace Facebook\InstantArticles\Transformer\Rules;
use Facebook\InstantArticles\Elements\Footer;
use Facebo... |
<?php
/* @var $employees array */
use yii\helpers\ArrayHelper;
use yii\helpers\Html;
$emails = ArrayHelper::getColumn($employees, 'email');
echo implode(', ', $emails);
//создание ассоциированного массива id => email
$listData = ArrayHelper::map($employees, 'id', 'email');
echo Html::dropDownList('emails', [], $lis... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateDetailTransaksiTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('detail_... |
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\CategoriesController;
use App\Http\Controllers\PublishersController;
use App\Http\Controllers\AuthorsController;
use App\Http\Controllers\BooksController;
/*
|--------------------------------------------------------------------------
| Web Routes
|-... |
@extends('layout.app')
<!-- set title -->
@section('title', 'Home')
@section('content')
<section class="h-full w-full border-box transition-all duration-500 linear" style="background-color: #141432">
<div style="font-family: 'Poppins', sans-serif">
<!-- Hero-header-2-3 -->
... |
<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
{{ __('Customer') }}
</h2>
</x-slot>
<div class="py-12">
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
<img class="bg-red-600 overflow-hidden shadow-sm sm:r... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Project extends Model
{
use SoftDeletes;
public static $rules = [
'name' => 'required',
// 'description' => '',
'start'=>'date'
];
publi... |
<?php
class MY_Model extends CI_Model {
protected $_table_name = '';
protected $_primary_key = 'id';
protected $_primary_filter = 'intval';
protected $_order_by = '';
public $rules = array();
protected $_timestamps = FALSE;
function __construct() {
parent::__construct();
}
public function array_from_po... |
@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">About {{ $SiteName }}</div>
<div class="panel-body">
@if... |
<?php
/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Html;
use frontend\assets\AppAsset;
AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
<meta charset="<?= Yii::$app->charset ?>">
<meta http-equiv="X-UA-Comp... |
<?php
namespace App\Models;
use CodeIgniter\Model;
class PessoasModel extends Model{
protected $table = 'tb_pessoas';
protected $primaryKey = 'id';
protected $allowedFields = ['nome', 'profissao', 'idade'];
public function getPessoas(){
return $this->findAll();
}
} |
<?php /* Smarty version Smarty-3.0.5, created on 2015-12-22 05:14:50
compiled from "/home/ftp/d/dnsdun/wwwroot/wwwroot/domain/view/new/domainregister/showsuffixmoney.html" */ ?>
<?php /*%%SmartyHeaderCode:102526861656786bca65a4b3-46482055%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty... |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>系统信息</title>
<link rel="stylesheet" href="{{ asset('css/pintuer.css') }}">
<style type="text/css">
*{ margin:0px; padding:0px;}
.error-container{ background:#fff; border:1px solid #0ae; text-align:center; width:450px; margin:250px auto; font... |
<?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 App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class GuruPangkatController extends Controller
{
private $uuid;
private $messages;
public function __construct()
{
$this->uuid = "GR-JBT-".uuid();
$this->messages = array(
// 'nama.unique' => 'Nama & ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="a... |
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
p... |
<?php
/** Latgalian (latgaļu)
*
* To improve a translation please visit https://translatewiki.net
*
* @ingroup Language
* @file
*
* @author Dark Eagle
* @author Gleb Borisov
* @author Jureits
* @author Reedy
*/
$namespaceNames = [
NS_MEDIA => 'Medeja',
NS_SPECIAL => 'Seviškuo',
NS_TAL... |
<?php
namespace App\Http\Controllers;
use App\Wishlist;
use Illuminate\Support\Facades\Auth;
class WishlistController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
public function addToWishlist($productId)
{
$wishList = Wishlist::where('produc... |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
<meta name="Description" content="HTML5 Bootstrap Admin Template">
<meta name="author" ... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCitiesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('cities', functio... |
<?php
/*
* PSX is a open source PHP framework to develop RESTful APIs.
* For the current version and informations visit <http://phpsx.org>
*
* Copyright 2010-2017 Christoph Kappestein <christoph.kappestein@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ... |
<?php
namespace blacksenator\fritzsoap;
/**
* The class provides functions to read and manipulate
* data via TR-064 interface on FRITZ!Box router from AVM:
*
* @see: https://avm.de/fileadmin/user_upload/Global/Service/Schnittstellen/deviceinfoSCPD.pdf
*
* +++++++++++++++++++++ ATTENTION +++++++++++++++++++++
*... |
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| r... |
<h1>Content Management System</h1>
<p>
<a href="<?php echo base_url(); ?>blog/create" class="btn btn-primary">
Create New Blog Entry
</a>
</p>
<?php if($this->session->flashdata('success')): ?>
<div class="alert alert-success">
<strong>Success!</strong> <?php echo $this->session->flashdata('success'); ?>
</div... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UserChangePasswordRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
... |
<?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
/**
* The BuddyPress Plugin.
*
* BuddyPress is social networking software with a twist from the creators of WordPress.
*
* @package BuddyPress
* @subpackage Main
* @since 1.0.0
*/
/**
* Plugin Name: BuddyPress
* Plugin URI: https://buddypress.org/
* Description: BuddyPress adds community features to ... |
<!-- Page Title
============================================= -->
<section id="page-title">
<div class="container clearfix">
<h1><?= ucwords(str_replace('-', ' ', $this->uri->segment(1))); ?></h1>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<?= base_url(); ?>">Home</a><... |
@include('btybug::layouts._partials.frontend.front_footer')
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=e... |
<html>
<body>
<form action="/form/button" method="POST">
<input type="hidden" name="text" value="val" />
<button type="submit" name="btn0">Submit</button>
</form>
</body>
</html> |
@extends('layouts.main')
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="author" content="OlacodeX" />
<style>
#main {
transition: margin-left .5s;
padding: 16px;
}
footer p.text-center{
padding-bottom: 20px;
margin-bottom: 0;
}
.panel-default.ad{
... |
<?php
use yii\helpers\Html;
use funson86\blog\Module;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\modules\blog\models\BlogCommentSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="blog-comment-search">
<?php $form = ActiveForm::begin([
'action' => ['ind... |
<?php
namespace App\Http\Controllers;
use App\Models\Vote;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class VoteController extends Controller
{
public function vote(Request $request, string $type)
{
if (!array_key_exists($type, Vote::VOTABLES)) {
abort(400);
}... |
@extends('app.app')
@push('add-style')
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
<link rel="stylesheet" href="{{ asset('css/select2-bootstrap.css') }}">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.24/css/dataTables.bootstrap4.min.css">
... |
<?php
include('layout/header.php');
?>
<h1>About page</h1>
<?php
include('layout/menu.php');
?>
<?php
include('layout/footer.php');
?> |
<?php
/**
* A utility class that provides several static methods for parsing URLs
* and resolving hostnames.
*
* @package silverstripe-multi-domain
* @author Aaron Carlino <aaron@silverstripe.com>
*/
class MultiDomain extends Object {
/**
* The key for the "primary" domain
*/
const KEY_PRIMARY = 'primar... |
<?php namespace Nicolaslopezj\Searchable;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;
/**
* Trait SearchableTrait
* @package Nicolaslopezj\Searchable
* @property array $searchable
* @pro... |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model frontend\models\Post */
$this->title = $model->title;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Posts'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
\yii\web\YiiAsset::regist... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.