text stringlengths 2 1.03M |
|---|
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<nav class="col-1 col-lg-2 bg-light" style="">
<div class="sidebar" id="sidebar-div" style="margin-top: 25px !important;">
<ul class="nav flex-column " id="sidebar">
<li class="nav-item">
<a class="nav-link active" href="<?= base_url(); ?>dashboard" >
<span class="fa fa-tachometer text-pr... |
<?PHP
function get_headers_from_curl_response($response) {
$headers = array();
$header_text = substr($response, 0, strpos($response, "\r\n\r\n"));
foreach (explode("\r\n", $header_text) as $i => $line) {
if ($i === 0) {
$headers['http_code'] = $line;
} else {
list ($key, $value) = explode(': ', $line);
... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class UpdateProductsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('products', function ($table) {
$table->dro... |
<?php
/**
* Created by LazyCrud - @DyanGalih <dyan.galih@gmail.com>
*/
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use WebAppId\Lazy\Traits\ModelTrait;
/**
* @author:
* Date: 14:04:15
* Time: 2021/11/06
* Class Image
* @package App\Models
*/
class Image extends Model
{
use ModelTrait;
... |
<?php /*a:1:{s:19:"../view/index2.html";i:1608537764;}*/ ?>
<!doctype html>
<html class="x-admin-sm">
<head>
<meta charset="UTF-8">
<title>学生管理系统</title>
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" cont... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-6 mt-4 mx-auto">
<div class="table-responsive">
<table class="table table-bordered">
<tr>
<th>Nombre</th>
<... |
<?php
namespace app\index\controller;
use think\Session ;
use think\Request;
use app\index\model\Goods;
class Goodscontroller
{
/*图片上传*/
public function doUploadImg(){
if(isset($_FILES['imgFile'])){
$imgUrl=uploadImg('goods'); /*上传图片并返回图片路径 */
echo CURD_result(200,'上传成功',$imgUrl);
}
}
/*删除图片示例*/
... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Logging Configuration
|--------------------------------------------------------------------------
|
| Here you may configure the log settings for when a location is not found
| for the IP provid... |
<?php
/*
|--------------------------------------------------------------------------
| Application & Route Filters
|--------------------------------------------------------------------------
|
| Below you will find the "before" and "after" events for the application
| which may be used to do any work before or after a... |
<?php
namespace Yurun\Util\Chinese\Driver\SimplifiedTraditional;
use Yurun\Util\Chinese;
class JSON extends Base
{
use \Yurun\Util\Chinese\Traits\JSONInit;
public function __construct()
{
$this->loadChars();
}
/**
* 把字符串转为数组结果
* @param string $string
* @return array
*... |
<?php
/* Avoid multiple sessions warning
Check if session is set before starting a new one. */
if(!isset($_SESSION)) {
session_start();
}
include "validate_admin.php";
include "connect.php";
include "header.php";
include "user_navbar.php";
include "admin_sidebar.php";
in... |
<?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\Bundle\FrameworkBundle\Secrets;
use Symfony\Component\Dependenc... |
@extends('layout.base-template', [
'title' => __('seo.title.btc-index'),
'description' => __('seo.description.btc-index'),
])
@section('content')
<div class="max-w-md mx-auto">
<h1 class="my-4">Bitcoin keys</h1>
<p class="text-lg leading-normal mb-8">
This website contains a se... |
@extends('front.layout')
@section('css')
@endsection
@section('main')
<div class="mx-6 md:mx-16 lg:mx-24 my-10">
<div class="text-2xl md:text-4xl font-bold mt-6">
IT Infrastructure Services – Consulting, Implementation, Management – to Increase Your Business
Sustainability
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Manage_Test extends Model
{
protected $table= 'manage_test' ;
protected $fillable = ['patientName', 'testDate', 'testResult', 'dateResult', 'status', 'centreName'];
} |
<?php
namespace App\Http\Resources;
use App\Model\Club;
use Illuminate\Http\Resources\Json\JsonResource;
class MatchImageResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArr... |
<?php
namespace App\Repository;
use App\Entity\Contact;
class ContactRepository
{
/**
* @return Contact[]
*/
private static function contacts(): array
{
return [
new Contact(1, 'Rogier Esmée'),
new Contact(2, 'Katinka Theun'),
new Contact(3, 'Theunis ... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $searchModel frontend\models\EventRegParticipantSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
?>
<p><?= $model->title ?></p>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</but... |
<?php
namespace App\Facades;
use Illuminate\Support\Facades\Facade;
class Thumbs extends Facade{
protected static function getFacadeAccessor()
{
return 'imgThumbnails';
}
} |
<?php
/**
* @link https://cms.skeeks.com/
* @copyright Copyright (c) 2010 SkeekS
* @license https://cms.skeeks.com/license/
* @author Semenov Alexander <semenov@skeeks.com>
*/
namespace skeeks\bootstrap4;
/**
* @author Semenov Alexander <semenov@skeeks.com>
*/
class Modal extends \yii\bootstrap4\Modal
{
/*... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use dosamigos\ckeditor\CKEditor;
/* @var $this yii\web\View */
/* @var $model backend\models\Question */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="question-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'target')->h... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Http;
use Symfony\Component\VarDumper\Cloner\Data;
use App\Models\Cif_Response;
use App\Models\Account;
use App\Models\Applicant;
use App\Models\Kyc;
use App\Models\Nominee;
use App\M... |
<?php
namespace Api\Controller;
use Think\Controller;
/*
成员组和项目绑定后,每个人的绑定情况
*/
class TeamItemMemberController extends BaseController {
//添加和编辑
//由于初始添加成员的时候就已经有了记录,所以本方法是编辑
public function save(){
$login_user = $this->checkLogin();
$uid = $login_user['uid'] ;
$id = I("post.id/... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>AdminLTE 3 | Dashboard</title>
<!-- Google Font: Source Sans Pro -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700... |
<center><h1 class="section-title">Add New Product</h1></center>
<div class="container">
<div class="row">
<div class="col-md-10 offset-1">
<a href="<?php echo base_url() .'parts/all'; ?>"><button type="button" class="btn btn-warning">Back</button></a>
<br><br>
<div class="jumbotron">
<fo... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>MadreTeresa | Admin</title>
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Font Awesome -->
<link rel="sty... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class cargo extends Model
{
use HasFactory;
} |
<?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... |
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>We Are The One</title>
<link href="/public/bootstrap-3.3.6-dist/css/bootstrap.css" rel="stylesheet">
<l... |
<?php
namespace Database\Seeders;
use App\Models\Mahasiswa;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this-... |
<?php
/**
* Copyright (c) 2013, EBANX Tecnologia da Informação Ltda.
* 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 not... |
@extends('admin.layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12 col-lg-12">
<div class="card">
<div class="row">
<div class="col-12" >
@if ($message = Session::get('status'))
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class HomeController extends Controller
{
/**
* Show the home page.
*
* @return \Illuminate\Contracts\Support\Renderable
*/
public function index()
{
if (Auth::check()) {
... |
<?php
namespace Resources\Domain\ValueObject;
class TimeUnit
{
/**
*
* @var string
*/
protected $unit;
/**
*
* @var int|null
*/
protected $year;
/**
*
* @var int|null
*/
protected $month;
/**
*
* @var int|null
*/
protected... |
<?php
/**
* @author Cláudio "Feralidragon" Luís <claudio.luis@aptoide.com>
* @license https://opensource.org/licenses/MIT The MIT License (MIT)
*/
namespace Dracodeum\Kit\Utilities\Type\Exceptions;
use Dracodeum\Kit\Utilities\Type\Exception;
/**
* @property-read object $object
* <p>The object.</p>
*/
class Un... |
<?php
namespace App\Http\Controllers;
use App\Http\Requests\SliderAddRequest;
use Illuminate\Http\Request;
use App\Slider;
use App\Traits\StoreImageTrait;
use Illuminate\Support\Facades\Log;
class AdminSliderController extends Controller
{
//
private $slider;
use StoreImageTrait;
public function __cons... |
@extends('mlayout.master')
@section('body')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Edit Post
</h1>
</section>
<!-- Main content -->
<section class="con... |
<?php
namespace App\Http\Responders\User;
use Inertia\Inertia;
use PerfectOblivion\ActionServiceResponder\Responders\Responder;
class ListUsersResponder extends Responder
{
/**
* Send a list of users as a response.
*
* @return \Illuminate\View\View
*/
public function respond()
{
... |
<?php
namespace Database\Seeders;
use App\Models\ServiceZamershik;
use Illuminate\Database\Seeder;
class ServiceZamershikSeeder extends Seeder
{
protected $ServiceZamershikTemplate = [
["page_html" => ' <section id="content" class="section services__single">
<div class="wrapper wrapper__p... |
--TEST--
swoole_runtime/sockets/basic: Multicast on OSX
--SKIPIF--
<?php require __DIR__ . '/../../../include/skipif.inc'; ?>
<?php
if (!extension_loaded('sockets')) {
die('skip sockets extension not available.');
}?>
--FILE--
<?php
use Swoole\Runtime;
use function Swoole\Coroutine\run;
Runtime::setHookFlags(SWOOL... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Modelo_planteles extends CI_Model {
public function __construct()
{
parent::__construct();
}
function getAllOficiosSalidaPlanteles($id_direccion)
{
$this->db->select('*');
$this->db->from('oficios_salida_planteles');
$this->db... |
<?php
/*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
<?php
namespace Drupal\Tests\feeds_tamper\Unit\EventSubscriber;
use Drupal\feeds\Event\ParseEvent;
use Drupal\feeds\Feeds\Item\DynamicItem;
use Drupal\feeds\Result\FetcherResultInterface;
use Drupal\feeds\Result\ParserResult;
use Drupal\feeds_tamper\Adapter\TamperableFeedItemAdapter;
use Drupal\feeds_tamper\EventSubs... |
<?php
namespace ccxt\async;
// 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\ArgumentsRequired;
use \ccxt\NotSupported;
use \ccxt\Precise;
... |
<?php defined('InShopNC') or exit('Access Invalid!');?>
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET;?>">
<title><?php echo $output['html_title'];?></title>
<meta name="keywords" content="<?php echo $output['setting_config']['site_keywords']; ?>" />
<meta ... |
<?php
include "../../databaseConn.php";
$supplierName = $_POST['supplierName'];
$supplierEmail = $_POST['supplierEmail'];
$supplierContactNo = $_POST['supplierContactNo'];
$suppliertAddress = $_POST['supplierAddress'];
$supplierContactPerson = $_POST['supplierContactPerson'];
$sql = "INSER... |
<?php
class Construction implements Robbo\Presenter\PresentableInterface
{
use MagicModel;
protected $data;
protected $repo;
public function __construct(Repositories\RepositoryInterface $repo)
{
$this->repo = $repo;
}
public function load($data)
{
$this->data = $data;... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCurrenciesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('currencies',... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name='viewport' content='width=device-width' initial-scale = '1.0'>
<title>Conquistas</title>
<link rel="shortcut icon" href="../../assets/pr.png" type="image/x-png"/>
<link rel="stylesheet" type="text/css" href="conquistas.css">
<?php
//Inicia a... |
@extends('layouts.admin')
@section('styles')
<link href="{{asset('admin_assets/plugins/bootstrap-table/css/bootstrap-table.min.css')}}" rel="stylesheet" type="text/css" />
<link href="{{asset('admin_assets/plugins/custombox/css/custombox.css')}}" rel="stylesheet">
@stop
@section('content')
<!-- Page-Title --... |
<!--
YuxuanWang-CHINA
project1
简单的会员与页眉页脚系统
MIT License
Copyright (c) 2018 Yuxuan_Wang
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/ht... |
<?php
/* @var $this yii\web\View */
$this->title = 'My Yii Application';
?>
<div class="site-index">
<div class="jumbotron">
<h1>Congratulations!</h1>
<p class="lead">You have successfully created your Yii-powered application.</p>
<p><a class="btn btn-lg btn-success" href="http://www.yi... |
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use T... |
<?php
/**
* InsiderTransactions
*
* PHP version 7.2
*
* @category Class
* @package Finnhub
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
* Finnhub API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
*... |
<?php
namespace CodeEmailMKT\Infrastructure;
use CodeEmailMKT\Domain\Service\BootstrapInterface;
class Bootstrap implements BootstrapInterface {
public function create()
{
require __DIR__ . '/config/doctrine.php';
}
} |
<?php
/**
* Created by PhpStorm.
* User: 姜伟
* Date: 2020/9/3 0003
* Time: 22:56
*/
namespace SyLive\Tencent\MixStream;
use DesignPatterns\Singletons\LiveConfigSingleton;
use SyConstant\ErrorCode;
use SyException\Live\TencentException;
use SyLive\BaseTencent;
/**
* 取消通用混流
*
* @package SyLive\Tencent\MixStream
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Usuario extends Model
{
/** @var string El nombre de la tabla */
protected $table = "users";
/** @var array Los campos que se pueden cargar de manera masiva. */
protected $fillable = ['name', 'avatar', 'nivel', 'estado', 'pass... |
<?php
namespace AppBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use AppBundle\Entity\Address;
use AppBundle\Form\AddressType;
/**
* Address controller.
*
*/
class AddressController extends Controller
{
/**
* Lists all Address... |
<?php
/*DRY Don't Repeat Yourself: Ao ser aplicado torna partes do sistema independentes. Cada parte pode mudar de forma previsivel e uniforme, mantendo-se, portanto, sincronizadas com toda a aplicação*/
require __DIR__."/config.php";
require __DIR__."/vendor/autoload.php";
?>
<!DOCTYPE html>
<html lang="pt-pt">
<hea... |
@extends('layout')
@section('content')
@stop |
<?php
namespace Bordeux\SchemaOrg\Thing\Place\CivicStructure;
/**
* Generated by bordeux/schema
*
* @author Krzysztof Bednarczyk <schema@bordeux.net>
* @link http://schema.org/FireStation
*
*
* -------------------------------- Brand ---------------------------------------------
*
* @property \Bordeux\SchemaO... |
<?php
/*
file: php/societyMembers.php
pvm: 10.5.2019
auth: Karel H
desc: Shows which members belong to the clicked society
*/
header("Access-Control-Allow-Origin: * ");
$JSON = array();
include ('dbConnect.php');
$sql ="SELECT Etunimi,Sukunimi,Email,Puhelin,Osaaminen, jasenyys.YhdistysID, yhdistys.YhdistysNimi FROM... |
<?php
namespace App\Repositories;
use App\Models\Doner;
use App\Repositories\BaseRepository;
/**
* Class DonerRepository
* @package App\Repositories
* @version December 3, 2019, 12:04 am +0630
*
* @method Doner findWithoutFail($id, $columns = ['*'])
* @method Doner find($id, $columns = ['*'])
* @method Doner ... |
<?php
namespace Spatie\EventSourcing\Snapshots;
use Spatie\EventSourcing\AggregateRoots\Exceptions\InvalidEloquentSnapshotModel;
class EloquentSnapshotRepository implements SnapshotRepository
{
protected string $snapshotModel;
public function __construct()
{
$this->snapshotModel = (string)config... |
<?php
/**
* OpenID protocol key-value/comma-newline format parsing and
* serialization
*
* PHP versions 4 and 5
*
* LICENSE: See the COPYING file included in this distribution.
*
* @access private
* @package OpenID
* @author JanRain, Inc. <openid@janrain.com>
* @copyright 2005-2008 Janrain, Inc.
* @license... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTasksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tasks', function ... |
@extends('layouts.admin.default')
@section('title','Admin | Session Registration')
@include('layouts.css_and_js.form_general')
@section('content-header')
<h1>Session Registration</h1>
<ol class="breadcrumb">
<li><a href="{{ route('home') }}">Home</a></li>
<li class="active">Session Registrati... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAdminGroupsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('admin_group... |
<?php
namespace App\Http\Controllers;
use App\product;
use Illuminate\Http\Request;
use App\DB;
use Illuminate\Contracts\Encryption\DecryptException;
use Illuminate\Support\Facades\Validator;
use Picqer;
use color;
class invent_add_product extends Controller
{
public function invent_product()
{
$produ... |
<?php
/*
* This file is part of SwiftMailer.
* (c) 2004-2009 Chris Corbyn
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Handles raw Transfer Encoding in Swift Mailer.
*
* When sending 8-bit content over SMTP, you should... |
@extends('layouts.app')
@section('title', 'Cart')
@section('content')
<!-- catg header banner section -->
<section id="aa-catg-head-banner">
<img src="img/fashion/account.jpg" alt="fashion img">
<div class="aa-catg-head-banner-area">
<div class="container">
<div class="aa-catg-head-banner-content"... |
<?php
/**
* the auto-loading function, which will be called every time a file "is missing"
* NOTE: don't get confused, this is not "__autoload", the now deprecated function
* The PHP Framework Interoperability Group (@see https://github.com/php-fig/fig-standards) recommends using a
* standardized auto-loader https... |
@extends('layouts.app')
@section('content')
<div class="box">
<div class="box-header">
<h3 class="box-title">Modolo #{{$modolo->id}}</h3>
</div>
<div class="col-md-12">
<div class="box-body">
<div class="row">
<div class="col-md-12">
<div class="form-group">
{!! Form::lab... |
<!doctype html>
<html lang="{{ app()->getLocale() }}">
<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="csrf-token" content="{{ csrf_token() }}">
<title>@yield(... |
<?php
namespace Admin\Model;
/**
* Created by PhpStorm.
* User: zyl006
* Date: 2017/8/25
* Time: 14:54
*/
use Think\Model;
class AdminModel extends Model
{
protected $_validate=array(
array('username','require','管理员名称不得为空!',1,'regex',3),
array('password','require','密码不得为空!',1,'rege... |
<?php
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
* @author Joas Schilling <coding@schilljs.com>
* @author Lukas Reschke <lukas@statuscode.ch>
* @author Morris Jobke <hey@morrisjobke.de>
* @author Robin McCorkell <robin@mccorkell.me.uk>
* @author Thomas Müller <thomas.mueller@tmit.eu>
* @author Victor... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>SI | Kampung</title>
<meta content="" name="description">
<meta content="" name="keywords">
<!-- Favicons -->
<link href="<?php echo base_url('assets/img/logo.png... |
<html>
<head>
<title></title>
</head>
<body>
<form method="post" action="/calc">
Enter number 1 : <input type="text" name="number1"><br/>
Enter number 2 : <input type="text" name="number2"><br/>
<input type="submit" value="Add">
{{csrf_field()}}
</form>
</body>
</html> |
<?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
/**
* The template for displaying Comments
*
* The area of the page that contains comments and the comment form.
*
* @package WordPress
* @subpackage Twenty_Thirteen
* @since Jwptheme 1.0
*/
/*
* If the current post is protected by a password and the visitor has not yet
* entered the password we will r... |
<?php
namespace App\Http\Controllers;
use App\Comment;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Brian2694\Toastr\Facades\Toastr;
class CommentController extends Controller
{
public function store(Request $request, $post){
$this->validate($request,[
'comment' => 'required'
... |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle ... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Archivado extends Model
{
//
} |
<?php
namespace TRegx\CleanRegex\Match\Details;
use TRegx\CleanRegex\Exception\NonexistentGroupException;
use TRegx\CleanRegex\Match\Details\Group\Group;
use TRegx\CleanRegex\Match\Details\Groups\IndexedGroups;
use TRegx\CleanRegex\Match\Details\Groups\NamedGroups;
use TRegx\CleanRegex\Replace\Details\Group\ReplaceGro... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class DeleteColumnRemarksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if (Schema::hasColumn('na... |
@extends('layouts.app')
@section('title', 'Parametro')
@section('content')
<div class="row wrapper border-bottom white-bg page-heading">
<div class="col-sm-6">
<h2>@yield('title')</h2>
<ol class="breadcrumb">
<li>
<a href="/">Início</a>
</li>
<li... |
<!DOCTYPE html>
<html lang="en">
<head>
<title>BukuKita</title>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstra... |
<div id="main-content">
<!-- BEGIN PAGE CONTAINER-->
<div class="container-fluid">
<!-- BEGIN PAGE HEADER-->
<div class="row-fluid">
<div class="span12">
<!-- BEGIN PAGE TITLE & BREADCRUMB-->
<h3 class="page-title">
Create / Edit Profile
</h3>
<ul class="breadcrumb">
<li c... |
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="With Us You Can" />
<meta name="keywords" content="Kursus,Pelatihan,LKP" />
<meta name="author" content="Ayah DH" />
<meta name="viewport" content="width=device-width, initial-scale=1, max... |
<?php
/**
* Lite Publisher CMS
* @copyright 2010 - 2016 Vladimir Yushko http://litepublisher.com/ http://litepublisher.ru/
* @license https://github.com/litepubl/cms/blob/master/LICENSE.txt MIT
* @link https://github.com/litepubl\cms
* @version 6.15
*
*/
namespace litepubl;
use litepubl\core\Plugins;
use li... |
@extends('layouts.master')
@section('title')
<title>Tambah Data Produk</title>
@endsection
@section('content')
<div class="content-wrapper">
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
... |
--TEST--
added properties must fit when replacing classes
--FILE--
<?php
use Componere\Definition;
use Componere\Value;
class A {}
$object = new A();
$def = new Definition(A::class);
try {
$def->addProperty("property", new Value(true));
} catch (RuntimeException $ex) {
echo "OK";
}
?>
--EXPECT--
OK |
<?php require_once(APPPATH . 'views/header.php'); ?>
<?php $session_data = $this->session->userdata('logged_in');
$userrole=$session_data['UserRole'];
$userstation=$session_data['UserStation'];
$userstationNo=$session_data['StationNumber'];
//$userstationNo=$session_data['StationNumber'];
$name=$session_data['FirstNam... |
<?php
/*
* This file is part of Respect/Validation.
*
* (c) Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
*
* For the full copyright and license information, please view the "LICENSE.md"
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Respect\Validation\Exceptions\... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use App\Menu;
class App extends Model
{
protected $table = 'bas_app';
public $timestamps = false;
protected $fillable = ['id','app_name','app_type','description','menu_name','menu_url'];
public function apps()
{
return $this->b... |
<?php
declare(strict_types=1);
namespace Mcfedr\AwsPushBundle\Model;
use Symfony\Component\Validator\Constraints as Assert;
class DeviceRequest
{
/**
* @var Device
* @Assert\NotBlank()
* @Assert\Valid()
*/
private $device;
public function getDevice(): Device
{
return $th... |
<?php
namespace App\Http\Controllers;
use App\Http\Requests\DetailPsikotestRequest;
use App\Http\Requests\TransaksiRequest;
use App\Models\DetailPsikotest;
use App\Models\Transaksi;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class DetailPsikotestController extends Controller
{
public funct... |
<?php
// This is the database connection configuration.
return array(
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
// uncomment the following lines to use a MySQL database
'connectionString' => 'mysql:host=localhost;dbname=yii1',
'emulatePrepare' => true,
'username' => 'root',
'pas... |
<?php declare(strict_types=1);
namespace Gam6itko\OzonSeller\Tests\Utils;
use Gam6itko\OzonSeller\Utils\ArrayHelper;
use PHPUnit\Framework\TestCase;
class ArrayHelperTest extends TestCase
{
/**
* @dataProvider dataPick
*/
public function testPick(array $query, array $whitelist, array $expected): vo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.