text stringlengths 2 1.03M |
|---|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo $title; ?></title>
<meta name="description" content="<?php echo $description; ?>">
<meta name="keywords" content="<?php echo $keywords; ?>">
<link rel="canonical" href="<?php echo $canonical; ?>">
<meta name="viewport" content="width=device-wi... |
@extends('layouts.print_standar')
@section('title', Auth::User()->cPanel->TCpanel_AppName.' | Tarif Lab')
@section('content_header', 'Tarif Lab')
@section('header_description', '')
@section('menu_desc', 'Tarif')
@section('link_menu_desc', '/tariflab')
@section('sub_menu_desc', 'Daftar')
@section('content')
@inc... |
@extends('admin.base')
@section('content')
<div class="right_col" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
<h3>Video Add page</h3>
</div>
<div class="title_right">
<div class="col-md-5 ... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Symptom extends Model
{
protected $fillable = [
'patient_id','symptoms'
];
} |
<?php
use Symfony\Component\Routing\RequestContext;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Psr\Log\LoggerInterface;
/**
* This class has been auto-generated
* by the Symfony Routing Component.
*/
class appProdProjectContainerUrlGenerator extends Symfony\Component\Routing\Generator\UrlG... |
<?php include'header.php';?>
<!-- banner -->
<div class="inside-banner">
<div class="container">
<span class="pull-right"><a href="#">Home</a> / About Us</span>
<h2>About Us</h2>
</div>
</div>
<!-- banner -->
<div class="container">
<div class="spacer">
<div class="row">
<div class="col-lg-8 col-lg-offs... |
<?php namespace Lovata\PropertiesShopaholic\Updates;
use Schema;
use October\Rain\Database\Schema\Blueprint;
use October\Rain\Database\Updates\Migration;
/**
* Class TableCreatePropertiesVariantLink
* @package Lovata\PropertiesShopaholic\Updates
*/
class TableCreatePropertiesVariantLink extends Migration
{
con... |
<?php
namespace App\Utils\Traits;
/**
* Class UserSettings
* @package App\Utils\Traits
*/
trait UserSettings
{
/**
* @param string $entity
* @return \stdClass
*/
public function getEntity(string $entity) : \stdClass
{
return $this->settings()->{$entity};
}
/**
* @param string $entity
* @retur... |
<?php
/**
* Created by PhpStorm.
* User: Usuário
* Date: 08/06/2019
* Time: 22:38
*/
include("../../includes/connect.php");
/**
* Altera um cliente dado um id
* @param $connect
* @param $id
*/
function alterarCliente($connect, $id)
{
mysqli_query($connect, "UPDATE clientes SET cnpj = '{$_POST['cnpj']}' W... |
<!-- Custom fonts for this template-->
<link href="<?= base_url()?>assets/sbadmin/vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
<!-- Font Awe... |
<?php
namespace CentralCondo\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
class Some... |
@extends('layouts.frontend.main')
@section('head')
<style>
table tr td p a span{
display: none;
}
</style>
@endsection
@section('content')
<!-- pageBdWrapNav -->
<nav class="pageBdWrapNav bg-light" aria-label="breadcrumb">
<div class="container">
<div class="row alig... |
<?php
/**
*
*/
class admin_data extends CI_Model
{
/**
* Insert Table
*/
public function add_tiket($data,$table){
$this->db->insert($table,$data);
}
public function add_bus($data,$table){
$this->db->insert($table,$data);
}
public function add_promo($data,$table){
$this->db->insert(... |
<?php
namespace App\Http\Controllers;
use App\Reply;
use App\Favorite;
use App\Reputation;
use Illuminate\Http\Request;
class FavoritesController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
/**
* Display a listing of the resource.
*
* @ret... |
<?php
$PROTOCOL = 'https';
$ZERONET_HOST = 'onlyzero.net'; // Proxy URI or localhost:port
$ZEROME_URI = '1Lj1oPcN7oZQL8HkS5KbkzQuKqs42zQWY6'; // ZeroMe(plus address
$RSS_URI = 'https://onlyzero.net/ZeroMe_rss';
define (ZEROMEDB_LOCATION, 'ZeroMe.db'); // Location of ZeroMe.db
$XML_OUTPUT = 'zerome.xml'; // Location of... |
<?php
namespace Grafite\Cms\Repositories;
use Carbon\Carbon;
use Cms;
use Grafite\Cms\Models\Page;
use Grafite\Cms\Repositories\CmsRepository;
use Grafite\Cms\Repositories\TranslationRepository;
use Grafite\Cms\Services\FileService;
class PageRepository extends CmsRepository
{
public $model;
public $transla... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Category extends Model
{
protected $fillable = ['code', 'name', 'description', 'image'];
use HasFactory;
public function products()
{
return $this->hasMany(Product... |
<?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
//////////////////////////////////////////////////////////////
//===========================================================
// zengaPayAPI.php (API)
//===========================================================
// ZENGAPAY PAYMENT GATEWAY
// Version : 1.0
// Inspired by the DESIRE to be the BEST OF ALL
// ------... |
<?php
declare(strict_types=1);
namespace Lamoda\IsmpClient\V3;
use GuzzleHttp\ClientInterface;
use GuzzleHttp\Exception\BadResponseException;
use GuzzleHttp\RequestOptions;
use Lamoda\IsmpClient\Exception\IsmpGeneralErrorException;
use Lamoda\IsmpClient\V3\Dto\AuthCertKeyResponse;
use Lamoda\IsmpClient\V3\Dto\AuthCe... |
<?php
require_once(__DIR__ . '/../../../../vendor/autoload.php');
use App\Texting;
try {
//Make sure that it is a POST request.
if (strcasecmp($_SERVER['REQUEST_METHOD'], 'POST') != 0) {
throw new \Exception('Request method must be POST!');
}
//Make sure the content type of the POST request... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Gloudemans\Shoppingcart\Facades\Cart;
use Illuminate\Support\Facades\Validator;
class DemoController extends Controller
{
/**
* Create a new controller instance.
... |
<?php
namespace App\Http\Requests;
use App\Models\Assignment;
use Illuminate\Validation\Rule;
use Illuminate\Foundation\Http\FormRequest;
class MyAssignmentIndexRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public functio... |
@extends('layouts.base2')
@section('titre')
Réinitialiser votre mot de passe
@endsection
@section('contenu')
<form method="POST" action="{{ route('password.update') }}">
@csrf
<input type="hidden" name="token" value="{{ $token }}">
<div class="modal-body">
<div class="form-gr... |
<?php
namespace PHPCR\Tests\Util\Console\Command;
use PHPCR\Tests\Stubs\MockNodeTypeManager;
use PHPCR\Util\Console\Command\NodeTypeListCommand;
use PHPUnit\Framework\MockObject\MockObject;
class NodeTypeListCommandTest extends BaseCommandTest
{
/**
* @var MockNodeTypeManager|MockObject
*/
private ... |
<?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;
use Illuminate\Auth\Events\Registered;
use Illuminate\Http\Request;
class RegisterController exten... |
<?php
use yii\grid\GridView;
use yii\widgets\DetailView;
$this->title = "Rest Api Modules";
?>
<div class="site-index">
<div class="body-content">
<h1>Feed de Notícias via Rest Api</h1>
<?php foreach($data as $row) : ?>
<p><strong>ID:</strong> <?= $row['ID'] ?> </p>
<p><strong... |
<?php namespace Anomaly\UsersModule\User\Form;
use Anomaly\Streams\Platform\Ui\Form\FormBuilder;
use Illuminate\Http\Request;
/**
* Class UserFormBuilder
*
* @link http://pyrocms.com/
* @author PyroCMS, Inc. <support@pyrocms.com>
* @author Ryan Thompson <ryan@pyrocms.com>
*/
class UserFor... |
@extends('layouts.dashboard')
@section('content')
<div class="card">
<div class="card-header">
<div class="row">
<div class="col-8 align-self-center">
<h3>History</h3>
</div>
{{-- search form --}}
<div class="col-4">
<form action="{{ route('dashboard.tr... |
<?php return array (
'root' =>
array (
'pretty_version' => 'dev-main',
'version' => 'dev-main',
'aliases' =>
array (
),
'reference' => '44fc86a96fefd68be396813686d574bbc9ef23fe',
'name' => 'codeigniter4/framework',
),
'versions' =>
array (
'codeigniter4/codeigniter4-standard... |
<?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
namespace api\modules\v1\controllers;
use yii\rest\ActiveController;
use yii\data\ActiveDataProvider;
use common\models\Area;
use Yii;
class AreaController extends ActiveController {
public $modelClass = 'common\models\Area';
public function actions() {
$actions = parent::actions ();
unset ( $actions ['c... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\RuleSlot */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="rule-slot-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'name')->textInput(['maxlength' => true, 'disabl... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
@php
$layout = isset($_COOKIE['layout']) ? $_COOKIE['layout'] : "light";
$css_file = "";
switch ($layout) {
case 'dark':
$css_file = "css/app-dark.css";
break;
case 'rtl':
$css_f... |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\GalleryImgSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Gallery Imgs';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="gallery-img-index">
<?php ech... |
<?php
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
/**
* Shortcode attributes
* @var $atts
* @var $title
* @var $number
* @var $el_class
* @var $el_id
* Shortcode class
* @var $this WPBakeryShortCode_VC_Wp_Recentcomments
*/
$title = $number = $el_class = $el_id = '';
$output = '';
$atts = vc_map_get_attrib... |
<?php
namespace Unikka\Slick\ContentRepository\Transformations;
use Neos\ContentRepository\Domain\Model\NodeInterface;
use Neos\ContentRepository\Domain\Model\NodeData;
use Neos\ContentRepository\Migration\Transformations\AbstractTransformation;
use Neos\Neos\Controller\CreateContentContextTrait;
/**
* Remove empty... |
<?php
/**
* @package WordPress
* @subpackage Traveler
* @since 1.0
*
* User loop tours
*
* Created by ShineTheme
*
*/
$status = get_post_status(get_the_ID());
$icon_class = STUser_f::st_get_icon_status_partner();
$page_my_account_dashboard = st()->get_option('page_my_account_dashboard');
?>
<li <?php post_cl... |
<?php
namespace App\Listeners;
use App\Events\ModelChanged;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
class CacheHandler
{
/**
* Create the event listener.
*
* @return void
*/
public function __construct()
{
//
}
/**
* H... |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... |
<?php
namespace GoetasWebservices\Client\SalesforceEnterprise\Types;
/**
* Class representing DescribeGlobalTheme
*/
class DescribeGlobalTheme
{
} |
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<form method="post">
<div class="card">
<div class="card-header">
<h3 class="card-title"><?= $title; ?> List -> [ Job : <?= $user['task_name']; ?> , Shift : <... |
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<form method="post" action="">
<input type="checkbox" id="checkItem" name="check[]" value="1">Car<br>
<input type="checkbox" id="checkItem" name="check[]" value="2">Bike<br>
<input type="checkbox" id="checkItem" name="check[]" value="3">Cycle<br>
<button type="submit" cl... |
@extends('layouts.backend')
{{-- @section('css_after')
<link rel="stylesheet" href="{{ asset('/css/custom.css') }}">
@endsection --}}
@section('content')
{{-- Static Labels --}}
<div class="container mt-4">
<div class="block">
<div class="block-header block-header-default">
<h3 class="block-title">S... |
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Eaque tempora molestias optio cum modi quae fugiat ad odio accusantium placeat.</p> |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model mods\admin\models\User */
$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Users', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="user-view">
<h1><?= H... |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace ... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class M_laporan extends CI_Model
{
function getPembelian($postData = null)
{
$response = array();
## Read value
$draw = $postData['draw'];
$start = $postData['start'];
$rowperpage = $postData['leng... |
@extends('layouts.admin')
@section('content')
@section('title', 'Admin')
<section class="pager-sec bfr widget_edit_enabled">
<div class="container">
<div class="pager-sec-details text-center">
<h3 class="text-center">Quick add listing</h3>
<div>
<ul class="breadcrumb-ul">
<li><a href="{{ route('admi... |
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2016/6/1
* Time: 17:39
*/?>
<!-- 代码1:放在页面需要展示的位置 -->
<!-- 如果您配置过sourceid,建议在div标签中配置sourceid、cid(分类id),没有请忽略 -->
<div id="cyPk" role="cylabs" data-use="pk" data-pkId="1479" ></div>
<!-- 代码2:用来读取评论框配置,此代码需放置在代码1之后。 -->
<!-- 如果当前页面有评论框,代码2请勿放置在评论框代码之前。... |
<?php
namespace PlentyConnector\Connector\TransferObject\Product;
use DateTimeImmutable;
use PlentyConnector\Connector\TransferObject\AbstractTransferObject;
use PlentyConnector\Connector\TransferObject\AttributableInterface;
use PlentyConnector\Connector\TransferObject\Product\Badge\Badge;
use PlentyConnector\Connec... |
<?php
namespace OpenActive\Enums\PropertyEnumeration;
/**
* This enumeration contains a value for all properties in the https://schema.org/ and https://openactive.io/ vocabularies.
*
*/
class TotalPaymentTax extends \OpenActive\Enums\PropertyEnumeration
{
const value = "TotalPaymentTax";
const memberVal = ... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Booking extends Model
{
protected $fillable = [
'user_id', 'ticket_id'
];
} |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateLocalTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('local', function ... |
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class TipoLenteRecurso extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
... |
<?php
/**
* Created by PhpStorm.
* User: dmburu
* Date: 21/01/2019
* Time: 13:00
*/
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class UsersTableSeeder extends Seeder
{
public function run()
{
DB::table('users')->insert([
'name' => 'Douglas Mburu',
'e... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Produk extends Model
{
/* DATABASE TABLE */
protected $table = 'produk';
/* FIELD */
protected $fillable = [
'nama',
];
public function Tabungan() {
return $this->belongsTo('App\Tabungan', 'produk_id');
}
} |
<aside class="main-sidebar">
<section class="sidebar">
<div class="user-panel">
<div class="pull-left image">
<img src="https://via.placeholder.com/100x100" class="img-circle" alt="User Image">
</div>
<div class="pull-left info">
<p>Elra</p... |
<?php
namespace App\Http\Controllers\API\User;
use App\Http\Controllers\Controller;
use App\Http\Requests\MyAssignmentIndexRequest;
use App\Http\Resources\AssignmentResource;
use App\Services\Contracts\AssignmentServiceContract;
use Nyholm\Psr7\Request;
use App\Http\Requests\ResponseAssignmentRequest;
use Illuminate\... |
<?php
class M_data_kegiatan extends CI_Model{
public function tampil_data(){
return $this->db->query("SELECT * FROM `kegiatan_sales` ORDER BY `id_kegiatan` DESC");
}
public function tampil_data_kegiatan(){
$data = $this->db->get_where('user', ['email' => $this->session->userdata('email')])->row_array()... |
<?php
namespace Google\AdsApi\AdWords\v201708\cm;
/**
* This file was generated from WSDL. DO NOT EDIT.
*/
class ConversionTrackerOperation extends \Google\AdsApi\AdWords\v201708\cm\Operation
{
/**
* @var \Google\AdsApi\AdWords\v201708\cm\ConversionTracker $operand
*/
protected $operand = null;
... |
<?php
namespace App\Http\Controllers;
use App\Http\Requests\CrudRequest;
use Illuminate\Http\Request;
use App\Models\ModelCrud;
use App\Models\User;
class CrudController extends Controller
{
private $objUser;
private $objCliente;
public function __construct()
{
$this->objUser = new User();
... |
<?php
/**
* Created by PhpStorm.
* User: stijn versluis
* Date: 8/27/2019
* Time: 2:45 PM
*/
$dbHost = 'localhost';
$dbName = '10xhooghouden';
$dbUser = 'root';
$dbPass = '';
$url = 'http://localhost/10xhooghouden2/';
$db = new PDO(
"mysql:host=$dbHost;dbname=$dbName",
$dbUser,
$dbPass
);
$db->setA... |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* An autogenerated file that stores the line counts of javascript files
*
* @package PhpMyAdmin
*/
if (! defined('PHPMYADMIN')) {
exit;
}
define('LINE_COUNTS', true);
$LINE_COUNT = array();
$LINE_COUNT["OpenStreetMap.js"] = 126;
$LINE_COUNT["big_ints.js"] =... |
<?php
/* !
* Hybridauth
* https://hybridauth.github.io/hybridauth | https://github.com/hybridauth/hybridauth
* (c) 2017 Hybridauth authors | https://hybridauth.github.io/license.html
*/
/**
* Hybrid_Providers_LinkedIn OAuth2 provider adapter.
*/
class Hybrid_Providers_LinkedIn extends Hybrid_Provider_Model_OAut... |
@extends('layout/index')
@section('konten')
<div id="content">
<div class="panel box-shadow-none content-header">
<div class="panel-body">
<div class="col-md-12">
<h3 class="animated fadeInLeft">Gaji Utama</h3>
<p clas... |
<?php
namespace DCarbone\PHPFHIRGenerated\DSTU2\PHPFHIRTests\FHIRElement;
/*!
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: December 26th, 2019 15:43+0000
*
* PHPFHIR Copyri... |
<?php
use App\Http\Controllers\AuthController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register A... |
<?php
/*!
* HybridAuth
* http://hybridauth.sourceforge.net | https://github.com/hybridauth/hybridauth
* (c) 2009-2011 HybridAuth authors | hybridauth.sourceforge.net/licenses.html
*/
/**
* Draugiem Passport
*
* @package HybridAuth additional providers package
* @author Janis Bebritis /... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Widget extends CI_Controller {
/*--construct--*/
public function __construct()
{
parent::__construct();
$this->load->model('m_widget');
$this->load->library('bcrypt');
}
public function index(Type $va... |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\AuthorizenetAcceptjs\Gateway\Command;
use Magento\AuthorizenetAcceptjs\Gateway\AbstractTest;
use Magento\Payment\Gateway\Command\CommandPoolInterface;
use Magento\Sales\M... |
<?php
/**
* UnsuccessfulReasonModel
*
* PHP version 5
*
* @category Class
* @package BumbalClient
* @author Swaagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Bumbal Client Api
*
* Bumbal API documentation
*
* OpenAPI spec version: 2.0
* Contact: gerb@bumbal.eu
... |
<?php
/*
* Fresns (https://fresns.org)
* Copyright (C) 2021-Present Jarvis Tang
* Released under the Apache-2.0 License.
*/
namespace App\Http\FresnsDb\FresnsFileAppends;
use App\Base\Services\BaseAdminService;
class FsService extends BaseAdminService
{
public function __construct()
{
$this->mod... |
<?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 RectorPrefix20220513\Symfony\Component\Yaml\Command;
use RectorPrefix202... |
<?php
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
// This file has been auto-generated by the Symfony Dependency Injection Component for internal use.
// Returns the public 'prestashop.core.circuit_breaker.doctrine_cache' shared service.
return $this->services['prestashop.core.circuit_bre... |
<?php
namespace App\Http\Controllers;
use App\Hotel;
use App\Reservation;
use Illuminate\Http\Request;
class ReservationController extends Controller
{
public function reservation(Request $request, Hotel $hotel)
{
$request->validate([
"from" => "required|date",
"to" => "requir... |
@extends('layouts.admin')
@section('page_title')
Edit Quiz: {{ $quiz->name }}
@endsection
@section('content')
<?php $required_field_html = '<span style="color: red;">*</span>'; ?>
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.41.0/codemirror.min.css" />
<link rel="styles... |
<?php
session_start();
if(!isset($_SESSION['user']))
{
header("Location: (../index)");
}
else if(isset($_SESSION['user'])!="")
{
header("Location: app.php");
}
if(isset($_GET['logout']))
{
session_destroy();
unset($_SESSION['user']);
header("Location: ../index");
}
?> |
<?php
namespace backend\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use backend\models\UserMain;
/**
* UserMainSearch represents the model behind the search form about `backend\models\UserMain`.
*/
class UserMainSearch extends UserMain
{
/**
* @inheritdoc
*/
public funct... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: github.com/TheThingsNetwork/api/handler/handler.proto
namespace Handler;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>hand... |
<?php
namespace Drupal\webform\Tests\Handler;
use Drupal\webform\Entity\Webform;
use Drupal\webform\Tests\WebformTestBase;
/**
* Tests for advanced email webform handler functionality with HTML and attachments.
*
* @group Webform
*/
class WebformHandlerEmailAdvancedTest extends WebformTestBase {
public static... |
<?php
namespace App\Http\Middleware;
use Closure;
class CheckProfesor
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if (!$request->sess... |
<!DOCTYPE html><html lang="en">
<!-- Mirrored from pusher.com/tutorials?product=Channels&page=27 by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 13 Sep 2020 12:45:00 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack -->
<head><script type="text/... |
<?php
use App\Product;
use Illuminate\Database\Seeder;
class ProductsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Product::truncate();
foreach (range(10, 60) as $item) {
Product::create([
... |
<?php
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly
}
//$val is terms ids here
?>
<div class="woobe_multi_select_cell">
<div class="woobe_multi_select_cell_list"><?php echo WOOBE_HELPER::draw_attribute_list_btn($active_fields[$field_key]['select_options'], $val, $field_key, $post) ?></div>
... |
<div class="il-isimleri"></div>
<div class="svg-turkiye-haritasi" style="padding-bottom:100px;">
<svg version="1.1" class="turkiye" id="svg-turkiye-haritasi" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1007.478 527.323" xml:space="preserve">
<g id="turkiye">
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateForumsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('forums', functio... |
<?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
Route::prefix('admin')->middleware(['auth', 'active'])->group(function () {
Route::view('/', 'admin.index')->name('admin.index');
}); |
<?php
if (!function_exists('base_url_event')) {
function base_url_event($path="") {
return "http://localhost/volunteer_event/$path";
}
}
if (!function_exists('base_url_event_api')) {
function base_url_event_api($path="") {
return base_url_event("/api/$path");
}
}
if (!function_exists('ba... |
<?php
namespace Macopedia\Allegro\Api\Data\CheckoutForm;
interface BuyerInterface
{
public function setFirstName(string $firstName);
public function setLastName(string $lastName);
public function setEmail(string $email);
public function getFirstName(): ?string;
public function getLastName(): ?st... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<div class="row" style="margin-top: 20px; text-align:center;">
<div class="col-xs-1 col-md-4"> </div>
<div class="col-xs-10 col-md-4">
<div class="text-center" style="margin-top: 20px; text-align:center;">
<img src="<... |
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Schema::defaultStringLength(1... |
<?php
namespace Tests\Feature\Auth;
use App\Models\User;
use Tests\TestCase;
class LoginTest extends TestCase
{
public function test_requires_email()
{
$this->json('POST', 'api/auth/login')
->assertJsonValidationErrors('email');
}
public function test_requires_password()
{
$this->js... |
<?php
/* 导航 navigation */
class NavigationModel extends BaseModel
{
var $table = 'navigation';
var $prikey = 'nav_id';
var $_name = 'navigation';
/* 添加编辑时自动验证 */
var $_autov = array(
'title' => array(
'required' => true, //必填
'min' => 1, //最短1个字符
... |
<?php
require_once "../database/Database.php";
require "../models/SignUp.php";
require_once "../controllers/SignUpContr.php";
if (isset($_POST["valid_inscription"])) {
//Extract de la data
$username = $_POST["sub_username"];
$password = $_POST["sub_password"];
$passwordCheck = $_POST["sub_check_password"];
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Welcome to CodeIgniter</title>
<style type="text/css">
::selection { background-color: #E13300; color: white; }
::-moz-selection { background-color: #E13300; color: white;... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('articles', function (Bl... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>MOM | Mentor Onlinemu</title>
<!-- F... |
<?php
namespace GoetasWebservices\Xsd\XsdToPhp\Php;
use Doctrine\Common\Inflector\Inflector;
use GoetasWebservices\Xsd\XsdToPhp\Php\Structure\PHPClass;
use GoetasWebservices\Xsd\XsdToPhp\Php\Structure\PHPClassOf;
use GoetasWebservices\Xsd\XsdToPhp\Php\Structure\PHPProperty;
use Laminas\Code\Generator;
use Laminas\Cod... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.