text stringlengths 2 1.03M |
|---|
<?php
/*~ class.phpmailer.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
| Version: 5.2.4 |
| Site: https://code.google.com/a/apache-extras.org... |
<?php require_once("includes/db.php"); ?>
<?php require_once("includes/functions.php"); ?>
<?php require_once("includes/sessions.php"); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Header part -->
<?php require_once('partials/header.php'); ?>
<!-- Header part - END -->
<title>User profile</title>
</head>
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* Class AttributeValue
* @package App\Models
*/
class AttributeValue extends Model
{
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function attributeValue(){
return $this->belongsTo('App\... |
<?php
/**
* Assert
*
* LICENSE
*
* This source file is subject to the MIT license that is bundled
* with this package in the file LICENSE.txt.
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to kontakt@beberlei.de so I can send yo... |
<?php
use app\models\Event;
use app\models\DateHelper;
use yii\bootstrap\Html;
use yii\helpers\Url;
/**
* @var Event $model
*/
?>
<?php
/*
$year = date('Y', strtotime($model->date_activity));
if (Event::$currentYear != $year)
{
Event::$currentYear = $year;
?>
<div class="page... |
<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
<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>活动</title>
<link href="/work/Public/pro/css/bootstrap.min.css" rel="styleshe... |
<?php
namespace Bestcompany\BestcompanyApi\Resources;
use Bestcompany\BestcompanyApi\Resources\Resource;
class BsUserNotifications extends Resource
{
/**
* Get an access request.
*
* @param int $id
*
* @return Object
*/
public function getById($id, $params = []): Object
{
$path = 'bs-user... |
<?php
namespace LaravelTurbo\JetstreamTurbo\Models\Traits;
use Laravel\Jetstream\Jetstream;
trait TransfersTeams
{
/**
* Transfers the teams ownership to the given user.
*
* @param \App\Models\User $from
* @param \App\Models\User $to
*/
public function transfer($from, $to)
{
... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\DrugSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="drug-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
<?= $f... |
@extends('acl::admin.layouts.admin-master')
@section('title')
{{-- this page title --}}
{!!(isset($title)) ? $title : 'User Profile'!!}
@stop
@section('styles')
{{-- this page specialised styles --}}
<style>
.btn-file {
position: relative;
overflow: hidden;
}
.btn-file in... |
<?php
namespace App\Http\Composers;
use Illuminate\View\View;
class PageComposer
{
public function compose(View $view)
{
$view->with('view_message', 'this view is "' . $view->getName() . '"!!');
}
} |
<!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=edge">
<title>Document</title>
</head>
<body>
<form metho... |
<?php
/**
* Plugin Name: Tutsplus Customize the WordPress Admin
* Plugin URI: http://rachelmccollin.co.uk/tutsplus-customizing-wordpress-admin/
* Description: Plugin to support envato tuts+ course on customizing the WordPress admin screens for easier content management.
* Version: 3.1
* Author: Rachel McCollin
* ... |
<?php
namespace Altamira\Controller;
class Kernel {
function __construct() {
echo 'Entro en el Kernel';
}
}
?> |
<?php
declare(strict_types=1);
namespace LauLamanApps\IzettleApi\Client\Product;
use LauLamanApps\IzettleApi\API\Product\Variant;
use LauLamanApps\IzettleApi\API\Product\VariantCollection;
use LauLamanApps\IzettleApi\API\Universal\Vat;
use Money\Currency;
use Money\Money;
use Ramsey\Uuid\Uuid;
final class VariantBu... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateComentarioTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('comentario', function(Blueprint $table)
{
$table->increments('id');
$... |
<?php
use App\Entity\User;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use XBase\TableReader;
class TableReaderService extends DbfService
{
public function installDbfFile(UploadedFile $fileDbf): User
{
$dbfs = new TableReader($fileDbf);
$ignoredDay = array_merge($this->getDbfDate... |
<link rel="stylesheet" type="text/css" href="{{ asset('plugins/editor/css/simditor.css') }}">
<link rel="stylesheet" href="{{ asset('/plugins/editor/simditor-html-master/styles/simditor-html.css') }}" media="screen" charset="utf-8" /> |
<?php
namespace Tests\Feature\Auth;
use App\Models\User;
use Illuminate\Auth\Notifications\ResetPassword;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Notification;
use Tests\TestCase;
class ForgotPasswordTes... |
<?php
require_once('models/Model.php');
class ConnexionModel extends Model {
public function checkConnexion($login, $mdp) {
$sql = "select login, mdp from Utilisateurs where login=?";
$utilisateur = $this->executeRequest($sql, array($login));
if ($utilisateur->rowCount() == 1) {
... |
<?php
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Braintree\Test\Unit\Model\System\Config\Backend;
use Magento\Braintree\Model\Config;
use Magento\Braintree\Model\PaymentMethod;
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager as Obj... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Authentication Driver
|--------------------------------------------------------------------------
|
| This option controls the authentication driver that will be utilized.
| This driver ... |
<?php
/****************************************************************************
* todoyu is published under the BSD License:
* http://www.opensource.org/licenses/bsd-license.php
*
* Copyright (c) 2012, snowflake productions GmbH, Switzerland
* All rights reserved.
*
* This script is part of the todoyu project.
* Th... |
<?php
$_SESSION['url'] = "http://localhost".$_SERVER['REQUEST_URI'];
?>
<!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="Integral - A fully respons... |
<?php
namespace App\Tests\Controller;
use App\Entity\User;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class UsersControllerTest extends WebTestCase
{
public function testWithoutAdminNobodyCanAccessTheseRoutes()
{
$client = static::createClient();
$statusCode = AuthControllerTest::ch... |
@extends('layouts.admin-product-layout')
@section('title')
<title>ADMIN | TECHSTORE</title>
@endsection
@section('content')
<div class="content-body">
<div class="container-fluid">
<div class="page-titles">
<h4>Quản lý sản phẩm</h4>
<ol class="breadcrumb">
<li class="br... |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
ERROR - 2020-12-02 00:23:39 --> 404 Page Not Found: Robotstxt/index
ERROR - 2020-12-02 00:23:39 --> 404 Page Not Found: Adstxt/index
ERROR - 2020-12-02 02:55:05 --> Severity: Warning --> Invalid argument supplied for foreach() /var/www/html/admin... |
@extends('layouts.admin.app')
@section('title','Update restaurant info')
@push('css_or_js')
<style>
#map{
height: 100%;
}
@media only screen and (max-width: 768px) {
/* For mobile phones: */
#map{
height: 200px;
}
}
</style>
@endpush
@section('content')
... |
<?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... |
<h1>步驟 1:設定您的密碼</h1>
<p>在預設狀態下,您新購的 D-Link 路由器並未針對存取網頁式組態設定頁的管理者設定密碼。
為保護新購的網路裝置,請在下面設定與驗證密碼:</p> |
<?php
return [
'<strong>Designate</strong> tag to issue' => '<strong>Прикрепить</strong> ярлык к задаче',
'Add' => 'Добавить',
'Add Receivers' => 'Добавить получателей',
'Add Subtask' => 'Добавить подзадачу',
'Add new category' => 'Добавить новую категорию',
'Add new type' => 'Добавить новый ти... |
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class UserSession extends Authenticatable
{
protected $table = 'user_sessions';
} |
<?php
namespace Dillingham\Formation;
use Dillingham\Formation\Exceptions\UnregisteredFormation;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Request;
class Manager
{
/**
* The current resource.
*
* @var
*/
protected $current;
/**
* The resources.
*
* @va... |
<?php
/*
* Last Modified: 6/28/21, 11:18 PM
* Copyright (c) 2021
* -created by Ariful Islam
* -All Rights Preserved By
* -If you have any query then knock me at
* arif98741@gmail.com
* See my profile @ https://github.com/arif98741
*/
namespace Xenon\LaravelBDSms\Provider;
use Xenon\LaravelBDSms\Facades... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Alluser extends Model
{
protected $table = 'users';
protected $fillable = ['foto','name','email','role','password'];
} |
<?php
/**
* Template Name: Front
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Flagship_Tailwind
*/
get_header();
?>
<div class="flex border-t border-blue hero bg-grey-cool bg-opacity-50 front-featured-image-area h-auto">
<div class="flex items-center text-center lg:... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class DepartmentRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get... |
<script>
// Set new default font family and font color to mimic Bootstrap's default styling
Chart.defaults.global.defaultFontFamily = 'Nunito', '-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif';
Chart.defaults.global.defaultFontColor = '#858796';
// Pie Ch... |
<?php
return [
'driver' => env('MAIL_DRIVER','smtp'),
'host' => env('MAIL_HOST'),
'port' => env('MAIL_PORT'),
'from' => [
'address' => env('MAIL_FROM_ADDRESS','test@test.com'),
'name' => env('MAIL_FROM_NAME','blog app'),
],
'encryption' => env('MAIL_ENCRYPTION','tls'),
'use... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateProductoTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('producto', function (Blueprint $table) {
... |
<?php
namespace backend\controllers;
use shop\forms\manage\User\UserCreateForm;
use shop\forms\manage\User\UserEditForm;
use shop\services\manage\UserManageService;
use Yii;
use shop\entities\User\User;
use backend\forms\UserSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter... |
<?php
namespace App\Providers;
use App\Models\Invite;
use App\Models\Room;
use App\Policies\RoomPolicy;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Gate;
class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for t... |
<?php
return [
"firstname" => "Անուն",
"lastname" => "Ազգանուն",
"sum" => "Գումար",
"date" => "Ամսաթիվ"
]; |
<?php
namespace App\Http\Controllers;
use App\Mail\MessageReceived;
use Illuminate\Support\Facades\Mail;
use Illuminate\Http\Request;
class ContactController extends Controller
{
public function contact(){
return view('contact');
}
// public function na(Request $request){
// $message=$requ... |
@if ($message = Session::get('success'))
<div class="text-center py-4 lg:px-4">
<div class="p-2 bg-green-800 items-center text-green-100 leading-none lg:rounded-full flex lg:inline-flex" role="alert">
<span class="flex rounded-full bg-green-500 uppercase px-2 py-1 text-xs font-bold mr-3">BIEN JOUÉ</span>
<spa... |
@extends('adminlte::page')
@section('title', 'Idioma')
@section('content_header')
<h1>ACTUALIZAR IDIOMA</h1>
@stop
@section('content')
<div class="card mb-2" style="border-color: #fbaf32; max-width:80%">
<div class="card-header border-warning" style="background-color: #fbaf32">
{{-- <div class="card-tit... |
<?hh
class F {
public $foo;
}
function t($o, $memb) {
var_dump($o->$memb);
unset($o->$memb);
var_dump($o->$memb);
}
class C {
public $p = "C::p";
public $q;
function __unset($propName) {
print "In C::__unset(\"$propName\")\n";
}
function cF() {
unset($this->p);
unset($this->q);
unse... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Contact;
use App\item;
class HelloController extends Controller
{
public function show(){
return view('profile');
//return view('vision');
}
public function vision(){
//return view('profile');
... |
<?php
namespace AppBundle\Form\Transaction;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use AppBundle\Entity\Transaction\ExpenseDetail;
use LibBundle\Form\Type\EntityHiddenType;
class ExpenseDetailType extends Abstra... |
<?php
/**
* A short TV or radio program or a segment/part of a program.
*
* @see http://schema.org/Clip
*/
abstract class TypeClip extends TypeCreativeWork
{
/**
* The Schema.org Type Scope
*
* @var string
*/
protected static $scope = 'https://schema.org/Clip';
/**
* An actor, e.g. in tv, radio, mov... |
<?php
// define names assoc array to target by uksort
$names = [
'c' => 'Charlie',
'A' => 'Alex',
'b' => 'Bob'
];
// display array before uksort
echo 'before uksort:' . '<br>';
print_r($names);
echo '<br>';
// uksort
uksort($names, function ($x, $y) {
return strtolower($x) <=> strtolower($y);
});
echo... |
<?php
/* Cachekey: cache/stash_default/doctrine/[concrete\core\entity\oauth\authcoderepository@[annot]][1]/ */
/* Type: array */
/* Expiration: 2019-06-22T11:06:07+09:00 */
$loaded = true;
$expiration = 1561169167;
$data = array();
/* Child Type: array */
$data['return'] = unserialize(base64_decode('YTowOnt9'));
... |
<?php
/**
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: lang_admincp_msg.php by Valery Votintsev, codersclub.org
*
* Translate by DCV team - http://www.discuz.vn
*/
$lang = array (
'admingroups_edit_succeed' => 'Thiết lập nhóm quản lý... |
<div class="col-sm-{{ $f['width'] }}">
<div class="form-group">
<label class="control-label col-sm-12">
{{ ucwords(trans_custom('backend/content.'.$type.'.field_container.'.$index.'.field.'.$i.'.label', $f['label'])) }} {!! ($f['required'] == 'yes' ) ? '<span class="text-danger">*</span>' : '' !... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/oslogin/v1/oslogin.proto
namespace Google\Cloud\OsLogin\V1;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* A request message for retrieving the login... |
<?php
namespace Emanci\MysqlDiff\Core\Parser;
class ColumnParser extends AbstractParser
{
/**
* @var array
*/
protected $placeholders = [
':name' => '`.+?`|\S+',
':character_set' => '\S+',
':collate' => '\S+',
':nullable' => 'NULL|NOT NULL',
':default' => '\'(... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCarsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('cars', function(Bl... |
<?php
/**
* Custom functions that act independently of the theme templates
*
* Eventually, some of the functionality here could be replaced by core features
*
* @package flot
*/
/**
* Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
*
* @param array $args Configuration arguments.
* @retur... |
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Auth;
class LoginController extends Controller
{
public function login()
{
return view('auth.login');
}
public function authenticate(Request $request)
{
$request->valid... |
<?php
/**
* ALIPAY API: alipay.open.public.personalized.menu.create request
*
* @author auto create
* @since 1.0, 2020-08-21 12:25:11
*/
class AlipayOpenPublicPersonalizedMenuCreateRequest
{
/**
* 个性化菜单创建
**/
private $bizContent;
private $apiParas = array();
private $terminalType;
private $terminalInfo;... |
<?php
/**
* @link http://www.shuimugua.com/
* @copyright Copyright (c) 2015 shuimugua.com
* @license
*/
namespace common\models;
use Yii;
use yii\imagine\Image;
use yii\base\Model;
use yii\helpers\FileHelper;
use common\models\Images;
use common\models\ImageManager;
use yii\web\UploadedFile;
/**
* 图片表单类
*/
cla... |
<?php
namespace common\models;
use Yii;
use common\helpers\DateHelper;
/**
* This is the model class for table "view_total_plan_fact".
*
* @property int $house_id
* @property int $year
* @property int $month
* @property string $year_month
* @property string $price_plan_total
* @property string $price_fact_to... |
<?php
namespace App\Http\Controllers;
use App\Models\Categorias;
use Illuminate\Http\Request;
class CategoriasController extends Controller
{
public function __construct()
{
$this->middleware('auth:api');
}
public function index()
{
//
$categorias = Categori... |
<?php namespace Backend\Classes;
use Lang;
use View;
use Flash;
use Config;
use Closure;
use Request;
use Backend;
use Session;
use Redirect;
use Response;
use Exception;
use BackendAuth;
use Backend\Models\UserPreference;
use Backend\Models\Preference as BackendPreference;
use Backend\Widgets\MediaManager;
use Octobe... |
<?php
return array(
/*
|--------------------------------------------------------------------------
| PDO Fetch Style
|--------------------------------------------------------------------------
|
| By default, database results will be returned as instances of the PHP
| stdClass object; however, you may desire t... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateNotificationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('notificat... |
<?php
/**
* Facebook share link
*
* @package snax 1.11
* @subpackage Share
*/
// Prevent direct script access.
if ( ! defined( 'ABSPATH' ) ) {
die( 'No direct script access allowed' );
}
global $snax_share_args;
snax_render_facebook_share_button( array(
'share_url' => $snax_share_args['url'],
'share_text' =... |
<?php
$lang['locale'] = "id_ID";
// general
$lang['administrator'] = "Administrator";
$lang['storemanagement'] = "Manajemen Toko";
$lang['logintoadministrator'] = "Login ke Administrator";
$lang['forgotpassword'] = "Lupa password?";
$lang['sitename'] = "Nama Situs";
$lang['webdescription'] = "Deskripsi Website";
$lan... |
<?php
namespace Tests\Unit;
use Carbon\Carbon;
use Seyls\Accounting\Tests\TestCase;
use Seyls\Accounting\Models\Account;
use Seyls\Accounting\Models\Balance;
use Seyls\Accounting\Models\Ledger;
use Seyls\Accounting\Models\LineItem;
use Seyls\Accounting\Models\Currency;
use Seyls\Accounting\Models\Vat;
use Seyls\Ac... |
<?php
$data = preg_match_all('/^([a-z0-9\/_\.+-]+) ([a-z0-9_]+)$/mi', file_get_contents(__FILE__), $matches, PREG_SET_ORDER);
$mime_types = array();
foreach ($matches as $match)
{
$mime_types[strtolower($match[1])] = strtolower($match[2]);
}
file_put_contents(dirname(__FILE__).'/mime_types.dat', serialize($mime_typ... |
<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv=... |
{{ Form::open(array('route'=>'users.forgetPasswordAction')),
Form::label('email','Email: '),
Form::text('email'),'<div class="clear"></div>',
Form::submit('Send confirmation link'),
Form::close() }} |
<?php
/**
* GENERATED CODE WARNING
*/
namespace uuf6429\OpenAPI\Spec\Path\Operation\Schema;
use ArrayAccess;
use ArrayIterator;
use Countable;
use InvalidArgumentException;
use IteratorAggregate;
use JsonSerializable;
use uuf6429\OpenAPI\Helper\StaticCreator;
use function array_key_exists;
class Schemas implement... |
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
// $this->call(
// [
// yahoosTableSeeder::class
// ]
// );
}
} |
<?php
namespace ddlzz\AmoAPI\Request;
use ddlzz\AmoAPI\SettingsStorage;
/**
* Class UrlBuilder.
*
* @author ddlzz
*/
class UrlBuilder
{
/** @var SettingsStorage */
private $settings;
/** @var string */
private $subdomain;
/**
* UrlBuilder constructor.
*
* @param SettingsStora... |
<?php
namespace Tev\Tev\Util;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/**
* Utility class to allow class.ext_update.php scripts to execute changes
* in the ext_tables.sql file.
*
* Example usage (in the `main()` method of your class.ext_update.php):
*
* $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility... |
<?php
namespace Database\Seeders;
use App\Models\Rentals;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class RentalsSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Rentals::factory(1... |
<?php
//000000000000a:11:{i:0;s:13:"profile/index";i:1;s:16:"profile/headedit";i:2;s:19:"profile/uploadheade";i:3;s:11:"order/index";i:4;s:14:"order/orderadd";i:5;s:15:"order/orderedit";i:6;s:20:"customer/customeradd";i:7;s:14:"customer/index";i:8;s:20:"customer/customerdel";i:9;s:21:"customer/customeredit";i:10;s:10:"... |
<?php
namespace App\Http\Controllers\User;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\Coupon;
class CouponController extends Controller
{
public function check(Request $request)
{
if (empty($request->input('code'))) {
abort(500, '优惠券码不能为空');
}... |
<?php
/*
* This file is part of PhpSpec, A php toolset to drive emergent
* design by specification.
*
* (c) Marcello Duarte <marcello.duarte@gmail.com>
* (c) Konstantin Kudryashov <ever.zet@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with t... |
<?php
namespace PHPWineVanillaFlavour\Wine\Optimizer;
use \PHPWineVanillaFlavour\Wine\Optimizer\Tags;
/**
* @copyright (c) 2021 PHPWine\VanillaFlavour v1.4.0.0 Cooked by nielsoffice
*
* MIT License
*
* PHPWine\VanillaFlavour v1.4.0.0 free software: you can redistribute it and/or modify.
* Permissio... |
<?php
/*
** Zabbix
** Copyright (C) 2001-2021 Zabbix SIA
**
** 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 2 of the License, or
** (at your option) any later version.
**
** Th... |
<div id="key" class="{{ $block->classes }} bg-c-blue-100">
<div class="container mx-auto">
@if ($items)
<div class="grid grid-rows-8 sm:grid-cols-2 grid-container lg:grid-cols-4">
@foreach($items as $item)
@if($item['link'])
<a id="grid-{!! $loop->index !!}" class="border-[#F8F3E... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Post;
use Illuminate\Support\Facades\Validator;
class PostController extends Controller
{
public function index()
{
$posts = Post::latest()->get();
return response()->json(
[
"succes... |
<?php
/**
* Created by PhpStorm.
* User: npk
* Date: 01/06/2016
* Time: 16:01
*/
namespace AppBundle\Entity;
use FOS\UserBundle\Model\User as BaseUser;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="fos_user")
*/
class User extends BaseUser
{
/**
* @ORM\Id
* @ORM\Column(ty... |
<?php
namespace RIPS\ConnectorBundle\Entities\Application\Scan;
class CustomClassEntity
{
/**
* @var int
*/
protected $id;
/**
* @var int
*/
protected $startLine;
/**
* @var int
*/
protected $endLine;
/**
* @var int
*/
protected $startColumn;
... |
<html>
<head>
<?php
error_reporting(0);
include 'connection.php';
$name=$_POST['user'];
$email=$_POST['mail'];
$pass=$_POST['pass'];
$sql="INSERT into admin VALUES('$name','$email','$pass')";
if($_POST['submit']){
if(mysqli_query($conn,$sql))
{
echo "data added successfully";
}
else
{
echo "something went wron... |
<?php
namespace rollun\test\unit\Files;
use rollun\files\FileObject;
use rollun\files\FileManager;
use rollun\installer\Command;
use PHPUnit\Framework\TestCase;
abstract class FilesAbstractTest extends TestCase
{
/**
* @inheritDoc
*/
protected function tearDown()
{
$fullFilename = $this... |
<?php
declare(strict_types=1);
/*
* +----------------------------------------------------------------------+
* | ThinkSNS Plus |
* +----------------------------------------------------------------------+
* | Copyright (c) 2017 Chengdu ZhiYiChuangXiang Technol... |
<?php
namespace App\Http\Controllers;
use App\Models\Charity;
use App\Models\CharityHistory;
use App\Models\PriorityStatus;
use App\Models\User;
use Exception;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use Stripe;
use Session;
class CharityController exten... |
<?php
$sData = file_get_contents('data.json');
echo $sData; |
<?php
/**
* @author Félix Girault <felix.girault@gmail.com>
* @license FreeBSD License (http://opensource.org/licenses/BSD-2-Clause)
*/
namespace fg\Essence;
if ( !defined( 'ESSENCE_BOOTSTRAPPED' )) {
require_once dirname( dirname( dirname( __FILE__ )))
. DIRECTORY_SEPARATOR . 'bootstrap.php';
}
/**
* Test... |
<?php
/**
* Copyright (c) 2015-present, Facebook, Inc. All rights reserved.
*
* You are hereby granted a non-exclusive, worldwide, royalty-free license to
* use, copy, modify, and distribute this software in source code or binary
* form for use in connection with the web services and APIs provided by
* Facebook.
... |
@extends('app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-6">
@include('auth.login_form')
</div>
<div class="col-md-6">
@include('auth.register_form')
</div>
</div>
<br>
<div class="row">
<div clas... |
@foreach($details as $key => $value)
<p> {{ $key }} : {{$value}} </p>
@endforeach |
<?php
/**
* Copyright ©2019 Itegration Ltd., Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Emartech\Emarsys\Model\Api;
use Emartech\Emarsys\Api\Data\ProductsApiResponseInterface;
use Emartech\Emarsys\Api\Data\ProductsApiResponseInterfaceFactory;
use Emartech\Emarsys\Api\ProductsApiI... |
<?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\Config\Definition;
use Symfony\Component\Config\Defin... |
<?php
namespace Ekyna\Bundle\ProductBundle\Form\EventListener\SaleItem;
use Ekyna\Bundle\ProductBundle\Form\DataTransformer\IdToChoiceObjectTransformer;
use Ekyna\Bundle\ProductBundle\Service\Commerce\FormBuilder;
use Ekyna\Bundle\ProductBundle\Service\Commerce\ItemBuilder;
use Symfony\Component\EventDispatcher\Event... |
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class DatabaseNotification extends Notification
{
use Queueable;
public $data;
/**
* Create a ne... |
<?php
namespace App\Http\Controllers;
use App\Http\Requests\CreateTribunales;
use App\Models\Banco;
use App\Models\Ciudad;
use App\Models\Ciudades;
use App\Models\Departamentos;
use App\Models\Documento;
use App\Models\Estado;
use App\Models\Magistrado;
use App\Models\TipoActividad;
use App\Models\TipoArchivo;
use Ap... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.