text stringlengths 2 1.03M |
|---|
<?php
namespace app\home\validate; //定义模型的命名空间
use think\Validate; // 引入验证器类
class Member extends Validate{
//验证规则
protected $rule=[
'username'=>'require|unique:member',
'email'=>'require|email',
'captcha'=>'require|captcha:2',
'phone'=>'require|unique:member',
'pa... |
<!doctype html>
<html>
<?php $this->load->view('head');?>
<body>
<?php $this->load->view('header');?>
<?php $this->load->view('main_nav');?>
<?php $this->load->view('mobile_nav');?>
<section class="page_title ds pb100 pt100">
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<... |
<!DOCTYPE html>
<html lang="{{ config('app.locale') }}">
<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>Larav... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateClassSectionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('class_sec... |
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\AuthController;
use App\Http\Controllers\ChannelController;
use App\Http\Controllers\ThreadController;
use App\Http\Controllers\ReplieController;
/*
|--------------------------------------------------------------------------
| API Routes
|-----------... |
Welcome to <?php echo $site_name; ?>,
Thanks for joining <?php echo $site_name; ?>. We listed your sign in details below. Make sure you keep them safe.
Follow this link to login on the site:
<?php echo site_url('/auth/login/'); ?>
<?php if (strlen($username) > 0) { ?>
Your username: <?php echo $username; ?>
<?php } ?>
... |
<?php
declare(strict_types=1);
namespace RateLimit;
use DateTimeImmutable;
use function max;
class Status
{
/** @var string */
protected $identifier;
/** @var bool */
protected $success;
/** @var int */
protected $limit;
/** @var int */
protected $remainingAttempts;
/** @var ... |
<?php
/**
* This file is part of Totara Learn
*
* Copyright (C) 2020 onwards Totara Learning Solutions LTD
*
* 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 Licens... |
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/9/3 0003
* Time: 16:37
*/
namespace app\api\validate;
use app\api\model\GoodsCollectModel;
use think\Validate;
class GoodsCollectValidate extends Validate{
protected $rule = [
'user_id' =>'require',
'goods_id'=>'require... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class News extends Model {
protected $table = 'news';
protected $guarded = ['id'];
public $timestamps = true;
} |
<?php return [
'plugin' => [
'name' => 'Twig PCRE (Regex)',
'description' => 'Extends Twig to support Pearl-Compatible-Regular-Expressions (Regex) through Twig filters and functions',
],
]; |
<?php
namespace App\Policies;
use App\Answer;
use App\User;
use Illuminate\Auth\Access\HandlesAuthorization;
class AnswerPolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can update the answer.
*
* @param \App\User $user
* @param \App\Answer $answer
* @return m... |
<?php
class Example_model extends CI_model{
function getAllUsers()
{
$q = $this->db->get('email_addresses');
if($q->num_rows() > 0) {
foreach($q->result() as $row)
{
$data[] = $row;
}
}
return $data;
}
function getUserById($id)
{
$q... |
<?php
use Tracy\IBarPanel;
abstract class BasePanel extends WireData implements IBarPanel {
function loadResources() {
$cssUrl = $this->wire('config')->urls->TracyDebugger . 'styles.css';
return '
<script>
function loadCSSIfNotAlreadyLoaded() {
if(!document.getElementById("tracyStyles")) {
var ... |
<?php
// autoload_namespaces.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'UpdateHelper\\' => array($vendorDir . '/kylekatarnls/update-helper/src'),
'Svg\\' => array($vendorDir . '/phenx/php-svg-lib/src'),
'Parsedown' => array($vendorDi... |
<!-- Start Footer Area -->
<footer class="footer-top-area pt-140 jarallax" data-jarallax='{"speed": 0.3}'>
<div class="container">
<div class="footer-middle-area pt-60">
<div class="row align-items-center">
<div class="col-lg-6 col-md-6">
<div class="single-wi... |
<?php
/**
* Created by PhpStorm.
* User: koval
* Date: 07.10.2017
* Time: 22:45
*/
use yii\helpers\Html;
$dictionary=$this->params['dictionary'];
$lang_url=$this->params['lang_url'];
$langs=$this->params['langs'];
$current=$this->params['current'];
$background_img=$this->params['background_img'];
?>
<section cl... |
<form action="{{ route('genres.destroy', $id) }}" class="my-1 my-xl-0" method="post" style="display: inline-block;">
@csrf
@method('delete')
<button type="submit" class="btn btn-danger btn-sm delete"><i class="fa fa-trash"></i> حذف</button>
</form> |
<?php
namespace CreditSafe\API\Normalizer;
use Jane\Component\JsonSchemaRuntime\Reference;
use CreditSafe\API\Runtime\Normalizer\CheckArray;
use Symfony\Component\Serializer\Exception\InvalidArgumentException;
use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface;
use Symfony\Component\Serializer\Nor... |
<h1>Bienvenido a The Incidence</h1>
<h3>Nombre empresa </h3>
<p>{{$Nombre}}</p>
<h3>Este es tu email para acceder: </h3>
<p>{{$email}}</p>
<h3>Esta es tu Contraseña: </h3>
<p>{{$contraseña}}</p> |
<?php get_header();?>
<div class="container">
<h2>Archive Jobs</h2>
<h1 class="page-title"><?php single_cat_title();?> <hr/></h1>
<?php
if(have_posts())
: while(have_posts()) : the_post(); ?>
<div class="card mb-4">
<div class="card-body">
<?php if(has_post_thumbnail... |
@extends('fellows.master')
@include('fellows.popup.createpost')
@include('fellows.popup.onthispost')
@include('fellows.popup.editpersonal')
@include('fellows.popup.edit-academia')
@include('fellows.popup.edit-career')
@include('fellows.popup.edit-religion')
@include('fellows.popup.edit-favorite')
@include('fellows.pop... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\File;
use App\Models\User;
use App\Models\Biodata;
use App\Models\Jurus... |
@extends('layouts.app-user')
@section('body')
<div class="container" style="padding-top:20px;">
<div class="row" style="padding-top:20px;">
<div class="col-md-12">
<div style="box-shadow: 0 1px 2px rgba(0,0,0,.05);border-color: #ddd;margin-bottom: 20px;
background-color: #fff;
border:... |
<?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit81027a0050bb42176f56da91517fd17f::getLoader(); |
<?php
namespace Drupal\block_visibility_groups_admin\Controller;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Entity\EntityTypeManager;
use Drupal\Core\Url;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Class GroupLister.
*
* @package Drupal\block_visibility_groups_admin\Contro... |
<?php
declare(strict_types=1);
namespace Yiisoft\Form\Tests\Widget;
use Yiisoft\Form\Tests\TestCase;
use Yiisoft\Form\Tests\Stub\PersonalForm;
use Yiisoft\Form\Widget\PasswordInput;
final class PasswordInputTest extends TestCase
{
public function testPasswordInput(): void
{
$data = new PersonalForm(... |
<?php
require_once('include/identity.php');
require_once('include/conversation.php');
require_once('include/acl_selectors.php');
function blocks_init(&$a) {
if(argc() > 1 && argv(1) === 'sys' && is_site_admin()) {
$sys = get_sys_channel();
if($sys && intval($sys['channel_id'])) {
$a->is_sys = true;
}
}
... |
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class User extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
*
* @return array
*/
public function toArray($request)
{
$d... |
<?php
$container->loadFromExtension('swiftmailer', [
'default_mailer' => 'main_mailer',
'mailers' => [
'main_mailer' => [
'transport' => 'smtp',
'username' => 'user',
'password' => 'pass',
'host' => 'example.org',
'port' => '12345',
... |
<?php
/*
* CKFinder Configuration File
*
* For the official documentation visit http://docs.cksource.com/ckfinder3-php/
*/
/*============================ PHP Error Reporting ====================================*/
// http://docs.cksource.com/ckfinder3-php/debugging.html
// Production
//error_reporting(E_ALL & ~E_... |
<?php
//Almicke Navarro
//2-21-19
//Networking Website
//This is my own work.
//Handles all the information taken from the user job postings class.
namespace App\Models;
class UsersJobPostingsModel
{
private $id;
private $save;
private $apply;
private $job_postings_id;
public function __con... |
<?php
/**
* ZN PHP Web Framework
*
* "Simplicity is the ultimate sophistication." ~ Da Vinci
*
* @package ZN
* @license MIT [http://opensource.org/licenses/MIT]
* @author Ozan UYKUN [ozan@znframework.com]
*/
class Symbol
{
use ZN\Ability\Facade;
const target = 'ZN\Helpers\Symbol';
} |
@extends('backend.layouts.admin')
@section('page_title','Seller Payments')
@include('backend.components.plugins.data_table')
@include('backend.components.plugins.select2')
@section('body_content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page hea... |
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class Install extends Command
{
protected $signature = 'shaark:install';
protected $description = 'Shaark installer';
public function __construct()
{
parent::__construct();
}
public function handle()
{
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Category extends Model
{
protected $table = 'categories';
protected $fillable = [
'name', 'slug', 'description', 'parent_id', 'featured', 'menu', 'image'
];
protected $casts = [
'parent_id' => 'inte... |
<?php
/**
* This file is part of the Nette Framework (https://nette.org)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Nette\Security;
use Nette;
/**
* Access control list (ACL) functionality and privileges management.
*
* This solution is mostly based on Ze... |
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20210425192853 extends AbstractMigration
{
public function getDescription() : string
{... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-5 col-md-offset-4">
<div class="panel panel-default">
<div class="panel-body">
<a href="{{url('/penggajian')}}" class="btn btn-success">Kembali</a><br>... |
<button
{{ $attributes->merge(['type' => 'submit', 'class' => 'inline-flex items-center px-4 py-2 bg-red-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-red-700 active:bg-red-900 focus:outline-none focus:border-red-900 focus:ring ring-red-300 disabled:opa... |
<?php
if (!defined('BASEPATH'))exit ('No direct script access allowed');
/**
* Class MY_Controller
* CI_Controller
*/
class MY_Controller extends CI_Controller {
var $isIframe = false;
function __construct() {
parent::__construct();
// 验证iframe调用
$this->load->model('common/MY_model');
}
} |
<?php
/*
* UserFrosting (http://www.userfrosting.com)
*
* @link https://github.com/userfrosting/UserFrosting
* @copyright Copyright (c) 2019 Alexander Weissman
* @license https://github.com/userfrosting/UserFrosting/blob/master/LICENSE.md (MIT License)
*/
/*
* Core configuration file for UserFrosting. ... |
<?php
define('LARAVEL_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Register The Composer Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for ... |
<?php
/**
* Imager plugin for Craft CMS 3.x
*
* Image transforms gone wild
*
* @link https://www.vaersaagod.no
* @copyright Copyright (c) 2018 André Elvan
*/
namespace aelvan\imager;
use Craft;
use craft\base\Element;
use craft\base\Plugin;
use craft\elements\Asset;
use craft\events\GetAssetThumbUrlEvent;... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Support\Collection;
use PhpParser\Builder;
use Spatie\Permission\Models\Role;
use Spatie\Permission\Traits\HasRoles;
class User ex... |
<?php
namespace App\Http\Controllers\Auth;
use App\User;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Validator;
use Illuminate\Foundation\Auth\RegistersUsers;
use Illuminate\Auth\Events\Registered;
use Illuminate\Http\Request;
use App\Jobs\SendVerificationEmail;
class RegisterController exten... |
@extends('offers.header')
@section('header')
<html>
<head>
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
<script src="{{ asset('js/app.js') }}" defer></script>
</head>
<body style="
margin: 0 ;
font-size: 0.9rem;
font-weight: 400;
line-height: 1.6;
color: #21252... |
<?php
if (!function_exists('userForApi')) {
/**
* return user array convertible for api
*
* @param bool $json
* @return array|string
*/
function userForApi($json = false)
{
/** @var \App\Models\User $user */
$user = auth()->user();
$userArray = [
... |
<?php
namespace App\Http\Resources\Product;
use Illuminate\Http\Resources\Json\JsonResource;
class Product extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class 0-4 extends Model
{
use HasFactory;
} |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateLogMobilesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('log_mobiles'... |
@extends('laratrust::panel.layout')
@section('title', "Edit {$modelKey}")
@section('content')
<div>
</div>
<div class="flex flex-col">
<div class="-my-2 py-2 overflow-x-auto sm:-mx-6 sm:px-6 lg:-mx-8 lg:px-32">
<form method="POST"
action="{{route('laratrust.roles-assignment.update', ['roles_as... |
<?php
error_reporting(E_ERROR | E_WARNING | E_PARSE);
if(!defined('datalist_db_encoding')) define('datalist_db_encoding', 'iso-8859-1');
if(function_exists('set_magic_quotes_runtime')) @set_magic_quotes_runtime(0);
ob_start();
$currDir=dirname(__FILE__);
include("$currDir/../db.php");
include("$currDir/../setti... |
<?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 a... |
<?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
| ... |
<header class="container-flex space-between">
<div class="date">
<span class="c-gris">
{{ optional($post->published_at)->format('M d') }} / {{ $post->owner->name }}
</span>
</div>
@if ($post->category)
<div class="post-category">
<span class="category">
... |
<?php
namespace App\Controller;
use App\Entity\Contact;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
/**
* Class ContactController
* @package App\Controller
*/
class ContactController extends Abstra... |
<?php
namespace ACT\Actadmin\Events;
use Illuminate\Queue\SerializesModels;
class FormFieldsRegistered
{
use SerializesModels;
public $fields;
public function __construct(array $fields)
{
$this->fields = $fields;
// @deprecate
//
event('actadmin.form-fields.register... |
<?php
/**
* @file
* Contains \Drupal\Core\Config\StorageException.
*/
namespace Drupal\Core\Config;
/**
* An exception thrown in case of storage operation errors.
*/
class StorageException extends ConfigException {} |
@extends('layouts.layout_main')
@section('title') Purchase <% $book->title %> in <% $format %> @stop
@section('description')<% $book->m_description%> @stop
@section('keywords') <% $book->m_keywords %>@stop
@section('content')
<!-- Page Content -->
<div class="container main-content">
<div class="col-lg-12">
... |
<?php
/**
* Chart_proc Model
*
*/
class Chart_proc_prev extends Abstract_model {
public $table = "p_w_chart_proc";
public $pkey = "p_w_chart_proc_id";
public $alias = "prev";
public $fields = array('p_w_chart_proc_id' => array('pkey' => true, 'type' => 'in... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Transactions_Type extends Model
{
public function Transactions()
{
return $this->hasMany('App\Models\Transactions','id','type');
}
} |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Categoria extends Model
{
protected $table = 'categoria';
protected $fillable = [
'id','nombre'
];
} |
@extends('backend.layouts.app')
@section('content')
@include('backend.blocks.header', ['moduleTitle'=>ucfirst($moduleName)])
<section class="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-6" style="margin: auto">
... |
<?php
class Pages extends CI_Controller{
// URL is .../home/view
public function view($page='home'){
if(!file_exists(APPPATH."views/pages/$page.php")){
show_404();
}
$data['title'] = ucwords($page);
$this->load->view('templates/header.php',$data);
$thi... |
<?php
/**
* SetNewLanguagePrimaryRequestVNext
*
* PHP version 7.3
*
* @category Class
* @package HubSpot\Client\Cms\Blogs\Tags
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
* Blog Post endpoints
*
* Use these endpoints for interacting with Blog Posts, Blog Authors, a... |
<?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\AuthenticationError;
use \ccxt\ArgumentsRequired;
use \ccxt\InvalidAd... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Subpage extends CI_Controller
{
/**
* Subpage constructor.
*/
public function __construct()
{
parent::__construct();
}
/**
* 정보 페이지
* @METHOD GET (STATIC)
* @MainURL subpage/about
*/
... |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
require_once(dirname(__FILE__) . '/dompdf/autoload.inc.php');
use Dompdf\Dompdf;
class pdf{
public function create($html,$filename){
$options = new Options();
$options->set('isRemoteEnabled', TRUE);
$dompdf = new Dompdf($options);
$context... |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\ThemeBundle\Tests\Translation\DependencyInjection\Compiler;
use Matthias\Symf... |
<div>
<div class="container py-3">
<h2 class="my-2">User Data Table</h2>
<div class="row">
</div>
<div class="row">
<table class="table">
<thead>
<tr>
<th>Username</th>
<th>Email</th>
... |
<?php
// autoload_static.php @generated by Composer
namespace Composer\Autoload;
class ComposerStaticInit0d1d3c13f80202964b8b82ff7f2fb863
{
public static $files = array (
'2cffec82183ee1cea088009cef9a6fc3' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier.composer.php',
'7e702cccdb9... |
<?php
use Zend\Mvc\Application;
use Zend\Stdlib\ArrayUtils;
/**
* This makes our life easier when dealing with paths. Everything is relative
* to the application root now.
*/
chdir(dirname(__DIR__));
// Decline static file requests back to the PHP built-in webserver
if (php_sapi_name() === 'cli-server') {
$pa... |
@extends('layouts.worker')
@section('content')
<!-- header -->
<a name="search"></a>
<div class="intro-header">
<div class="container-fluid" >
<div class="row" >
<div class="col-md-4 col-md-offset-4">
<h1> search SmallBoulos around you </h1>
... |
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</tit... |
<?php
/**
* Compares two version strings, e.g., "5.0.0.32" and "5.0.1.3".
*
* @param v1 A version string.
* @param v2 A version string.
* @return -1, 0, or 1 if v1 is less than, equal to, or greater than v2.
*/
function compareVersions( $v1, $v2 ){
// Perform the comparison -- check major, mid, and minor ... |
<section id="about-us" data-scroll-index="1" class="main-section about-us-style-1">
<div class="container">
<!--Title-->
<div class="section-title">
<div>
<i class="fa fa-heart-o gradient-color"></i>
<span class="one gradient-color"></s... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAttendacePTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('attendace_p_... |
<ul class="list-unstyled">
<li>value : {{ $item->getValue() }}</li>
<li>field :{{ $item->getItemProperty('field') }}</li>
<li>model :{{ $item->getConfigProperty('model') }}</li>
@foreach(App\Example::all() as $user)
{{$user->title}}
@endforeach
</ul> |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCategoriasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('categorias', function (Blueprint $table) {
... |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Messenger\Tests\Transport\Sender;
use PHPUnit\Framewo... |
<?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
/**
* @author 轩<service@cmsky.org>
* @copyright (c)2009-2012 风格店铺
* @website www.cmsky.org
*/
(!defined('IN_ADMIN') || !defined('IN_MUDDER')) && exit('Access Denied');
$C =& $_G['loader']->model('exchange:category');
$op = $_GET['op'] ? $_GET['op'] : $_POST['op'];
switch($op) {
case 'delete':
if(che... |
<form class="form-horizontal" method="POST" action="{{ route('project.store') }}">
{{ csrf_field() }}
<div class="input-group mb-3">
<span class="input-group-addon"><i class="icon-pencil"></i></span>
<input id="name" type="text" class="form-control" name="name" placeholder="Name" v... |
<?php
namespace Pushover\Api;
class ApiFake
{
/**
* @param string $endpoint
* @param array $payload
*
* @return mixed
*/
public function call(string $endpoint, array $payload)
{
// Todo...
}
} |
<?php
/**
* TOP API: taobao.open.account.index.find request
*
* @author auto create
* @since 1.0, 2018.07.26
*/
namespace Hccfu\EasyTK\TaoBao\Request;
class OpenAccountIndexFindRequest
{
/**
* int MOBILE = 1;int EMAIL = 2;int ISV_ACCOUNT_ID = 3;int LOGIN_ID = 4;int OPEN_ID =... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class PontoTuristico extends Model
{
public $timestamps = false;
protected $table = 'tb_ponto_turistico';
protected $primaryKey = 'id_ponto_turistico';
protected $fillable = [
'id_ponto_turistico', 'nm_ponto_turistico', 'ds_p... |
<?php
/**
* Contains AcsfMessageEmptyResponseException.
*/
namespace Acquia\Acsf;
class AcsfMessageEmptyResponseException extends \Exception {} |
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Imageenhan\V20190930\Models;
use AlibabaCloud\Tea\Model;
class EnhanceImageColorAdvanceRequest extends Model
{
/**
* @var Stream
*/
public $imageURLObject;
/**
* @var string
*/
public $output... |
<?php
//pathinfo() takes a filename as its only parameter, and returns an array with three elements: dirname, basename, and //extension.
$fileinfo = pathinfo("sample.txt");
echo "<pre>";
print_r($fileinfo);
echo "</pre>";
?> |
<?php
namespace QR_Code\Encoder;
use QR_Code\Config\Specifications;
/**
* Class Mask
*
* Based on PHP QR Code distributed under LGPL 3
* Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
*
* QR Code Generator for PHP is distributed under MIT
* Copyright (C) 2018 Bruno Vaula Werneck <brunovaulawer... |
<?php
namespace Keepa\helper\tracking;
/**
* Amazon Locale Domain Enum
*/
class NotifyIfType
{
const UNKNOWN = -1;
const OUT_OF_STOCK = 0;
const BACK_IN_STOCK = 1;
/**
* @var $code int
*/
public $code;
public function __construct($code)
{
$this->code = $code;
}
} |
<?php
defined("_VALID_ACCESS") || die('Direct access forbidden');
class CRM_Contacts_Patch_RewriteCompanyContact
{
protected function execute()
{
$recordsets = Utils_RecordBrowserCommon::list_installed_recordsets();
$checkpoint = Patch::checkpoint('recordsets');
if ($checkpoint->get('... |
<?php
/**
* SiteController.php
* Handles the necessary actions for this project.
*/
namespace controllers;
class SiteController extends Controller {
protected $title = "Caskmaster 2.0";
/**
* Handles the applicable actions for SiteController. Should someone enter
* an invalid action, Flight will return its ... |
<?php
require_once '../src/hicurl.php';
unlink('data/history.txt');
$hicurl=new Hicurl(['history'=>'data/history.txt']);
$result=$hicurl->loadSingle('https://www.random.org/integers/?num=1&min=1&max=100&col=1&base=10&format=html&rnd=new',null,
[
'xpath'=>[
'expression'=>'//*[@id="invisible"]/pre/text()',
'comp... |
<?php
namespace PHPDesignPatterns\Behavioral\Mediator;
abstract class AbstractMediator
{
public function __construct(ColleagueA $colleagueA, ColleagueB $colleagueB)
{
$this->colleagueA = $colleagueA;
$this->colleagueB = $colleagueB;
}
} |
<html>
<h1>Vivayic New</h1>
USER:
<?php echo exec('whoami'); ?>
<?php phpinfo(); ?>
</html> |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class WxUser extends Model
{
//
public $table = 'wxusers';
protected $hidden = ['wx_session', 'openid', 'token', 'admin_id'];
protected $appends = ['money', 'points', 'history_money', 'history_points', 'completed_count', 'admin_inf... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\BasicPage */
$this->params['breadcrumbs'][] = ['label' => 'Manage Custom Pages', 'url' => ['index']];
$this->params['breadcrumbs'][] = 'Add Basic Page';
?>
<div class="basic-page-create">
<?=
$this->render('_form', [
... |
<?php
/**
* This file is part of the Fliche Video Toolkit v2 package.
*
* @author Oliver Lillie (aka buggedcom) <publicmail@buggedcom.co.uk>
* @license Dual licensed under MIT and GPLv2
* @copyright Copyright (c) 2008-2014 Oliver Lillie <http://www.buggedcom.co.uk>
* @package Flic... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.