text stringlengths 2 1.03M |
|---|
<?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\WebBundle\Controller\Backend;
use Sylius\Bundle\SalesBundle\Model\OrderStates... |
<?php
use App\Containers\PinSection\PinItemboard\UI\WEB\Controllers\Controller;
use Illuminate\Support\Facades\Route;
Route::delete('pinitemboards/{id}', [Controller::class, 'destroy'])
->name('web_pinitemboard_destroy')
->middleware(['auth:web']); |
<?php
namespace eagle\models\carrier;
use Yii;
/**
* This is the model class for table "sys_carrier".
*
* @property string $carrier_code
* @property string $carrier_name
* @property string $create_time
* @property string $update_time
* @property integer $carrier_type
* @property string $api_class
* @propert... |
<?php
/**
* DO NOT EDIT!
* This file was automatically generated via bin/generate-validator-spec.php.
*/
namespace Google\Web_Stories_Dependencies\AmpProject\Validator\Spec\Tag;
use Google\Web_Stories_Dependencies\AmpProject\Attribute;
use Google\Web_Stories_Dependencies\AmpProject\Extension;
use Google\Web_Storie... |
<!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">
<title>Admin Panel</title>
<link type="text/css" rel="stylesheet" href="css/font-awesome.min.css"/>
<link ty... |
<?php
/*
* This file is part of the bootstrap-bundle package.
*
* (c) 2019 WEBEWEB
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Bundle\BootstrapBundle\Tests\Asset\Button;
use WBW\Bundle\BootstrapBundle\Asset\But... |
<?php
include '../Parserus.php';
$parser = new Parserus(ENT_XHTML);
echo $parser->addBBCode([
'tag' => 'b',
'handler' => function($body) {
return '<b>' . $body . '</b>';
}
])->addBBcode([
'tag' => 'i',
'handler' => function($body) {
return '<i>' . $body . '</i>';
},
])->parse(... |
<?php
session_start();
if(!isset($_SESSION["login"]))
{
echo '<script type="text/javascript">
window.location = "../index.php"
</script>';
}
if($_SESSION["login"] != "true") {
echo '<script type="text/javascript">
window.location = "../index.php"
</script>';
}
?>
<script s... |
<?php declare(strict_types=1);
/**
* This file is part of Swoft.
*
* @link https://swoft.org
* @document https://swoft.org/docs
* @contact group@swoft.org
* @license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
*/
namespace App\Exception\Handler;
use const APP_DEBUG;
use function get_class;
u... |
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AntChain\Deps\Models;
use AlibabaCloud\Tea\Model;
class AppServiceCount extends Model {
protected $_name = [
'classicCount' => 'classic_count',
'containerCount' => 'container_count',
'serverlessCount' => 'serverless_co... |
<?php add_filter( 'show_admin_bar', '__return_false' );function allow_sc_template_dir($atts,$content='') {return get_template_directory_uri().$content;}add_shortcode('tp_imgdir','allow_sc_template_dir');function my_home_url( $atts ) {return home_url();}add_shortcode( 'my_home_url', 'my_home_url' );add_action('init', fu... |
<?php
return array(
'debug' => true
); |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>SIOPAK - KEMENDAGRI </title>
<link rel="shortcut icon" href="<?php echo base_url() ?>assets/images/kemendagri_new.jpeg"> <meta name="viewport"
content="width=device-width, initial-scale=1.0">
<meta name="description" content="SIOPAK: Sist... |
<?php
declare (strict_types=1);
namespace Rector\Transform\Rector\Class_;
use PhpParser\Node;
use PhpParser\Node\Stmt\Class_;
use Rector\Core\Contract\Rector\AllowEmptyConfigurableRectorInterface;
use Rector\Core\Rector\AbstractRector;
use Rector\Php80\NodeAnalyzer\PhpAttributeAnalyzer;
use Symplify\RuleDocGenerator\... |
<!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" xml:lang="en" lang="en">
<head>
<?php include_http_metas() ?>
<?php include_metas() ?>
<?php include_title() ?>
<script type="text/javasc... |
<?php
use Carbon\Carbon;
use Illuminate\Database\Migrations\Migration;
class CreateTestbenchUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('testbench_users', function ($table) {
$table->increments('... |
<?php
declare(strict_types=1);
namespace icePHP\Frame\MVC;
use icePHP\Frame\Cache\CacheFactory;
use function icePHP\Frame\Debug\isDebug;
use function icePHP\Frame\Functions\json;
/**
* 模板编译类,涉及元语言操作
*/
/* 模板语法
模板语法
定界符: { }
注意:不要有多余的空白
同一行内避免 两个 标签,有可能会出错.
模板中可使用以下语法 ,注意:不要有多余的空白
{xml}
... |
<div class="main-content-inner">
<div class="breadcrumbs breadcrumbs-fixed" id="breadcrumbs">
<ul class="breadcrumb">
<li>
<i class="ace-icon fa fa-home home-icon"></i>
<a href="{{URL::route('admin.dashboard')}}">Home</a>
</li>
<li><a href=... |
<?php declare(strict_types=1);
namespace Shopware\Core\Framework\Test\DataAbstractionLayer\Search;
use Doctrine\DBAL\Connection;
use PHPUnit\Framework\TestCase;
use Shopware\Core\Defaults;
use Shopware\Core\Framework\Context;
use Shopware\Core\Framework\DataAbstractionLayer\Dbal\EntityDefinitionQueryHelper;
use Shopw... |
<?php
/*
Plugin Name: Success page/ Item success
Plugin URI: http://www.osclass.org/
Description: Success page
Version: 1.1.0
Author: Osclass
Author URI: http://www.osclass.org/
Short Name: Success page
Plugin update URI: item_success
*/
function item_success_install() {
osc_set_preference('item_success_version', ... |
<?php
namespace EcommerceBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use EcommerceBundle\Form\MediaType;
class ProductType extends AbstractType
{
/**
* {@inheritdoc}
*/
public function ... |
<?php
/*
* This file is part of Libcast JobQueue component.
*
* (c) Brice Vercoustre <brcvrcstr@gmail.com>
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*/
namespace Libcast\JobQueue\Console\Command;
use Symfony\Component\Console... |
<?php
namespace DFP\EtapIBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* FiliaRodzajPowierzchni
*
* @ORM\Table(name="filie_rodzaje_powierzchni")
* @ORM\Entity
*/
class FiliaRodzajPowierzchni
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\Gener... |
<?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 Doctrine\Tests\ORM\Functional;
use Doctrine\ORM\Mapping\ClassMetadataInfo;
require_once __DIR__ . '/../../TestInit.php';
/**
* Description of ExtraLazyCollectionTest
*
* @author beberlei
*/
class ExtraLazyCollectionTest extends \Doctrine\Tests\OrmFunctionalTestCase
{
private $userId;
pri... |
<!-- BEGIN NAVBAR -->
<div class="header-container fixed-top">
<header class="header navbar navbar-expand-sm">
<ul class="navbar-item theme-brand flex-row text-center">
<li class="nav-item">
{{-- theme-logo --}}
<a href="{{route('admin_dashboard')}}">
... |
<?php
namespace App\Http\Controllers;
use App\Models\Category;
use App\Models\News;
use App\Models\Province;
use App\Models\Tag;
use Illuminate\Http\Request;
use Toastr;
class NewsController extends Controller
{
//Index Page
public function index()
{
return view('admin.news.index');
}
//Add... |
<!--
=========================================================
* Argon Dashboard - v1.2.0
=========================================================
* Product Page: https://www.creative-tim.com/product/argon-dashboard
* Copyright Creative Tim (http://www.creative-tim.com)
* Coded by www.creative-tim.com
==========... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class PagesController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
return view('index');
}
/**
* Show the form f... |
<?php
session_start();
if(empty($_SESSION['id_user']))
{
header('location:modul/login.php');
}
else
{
include'koneksi.php';
}
$id=$_GET['id_tacit'];
$query="SELECT * FROM kategori";
$sql=mysqli_query($koneksi,$query);
$que="SELECT * FROM tacit WHERE id_tacit='$id'";
$sq=mysqli_query(... |
<?hh // strict
class C {
const type T = \Foo\D;
}
function test(): void {
$x = type_structure(\Foo\D::class, 'T');
hh_show($x['classname']);
}
namespace Foo;
class D {
const type T = \C;
}
function test(): void {
$x = type_structure(\C::class, 'T');
hh_show($x['classname']);
} |
<?php
$connect = mysqli_connect("localhost", "root", "", "testing");
$id = $_POST["id"];
$text = $_POST["text"];
$column_name = $_POST["column_name"];
$sql = "UPDATE tbl_sample SET ".$column_name."='".$text."' WHERE id='".$id."'";
if(mysqli_query($connect, $sql))
{
echo 'Data Updated';
}
?> |
<div class="modal fade modal-slide-in-right" aria-hidden="true" role="dialog" tabindex="-1" id="modal-delete-{{$est->idestado}}">
{{Form::Open(array('action'=>array('EstadoPedidoController@destroy',$est->idestado),'method'=>'delete'))}}
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-h... |
<?php
namespace UserBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
class ProfileType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('fullName', null, array('label' => 'profile.show... |
<?php
// snippet-sourcedescription:[Items_BatchWrite.php demonstrates how to ]
// snippet-service:[dynamodb]
// snippet-keyword:[PHP]
// snippet-sourcesyntax:[php]
// snippet-keyword:[Amazon DynamoDB]
// snippet-keyword:[Code Sample]
// snippet-keyword:[ ]
// snippet-sourcetype:[full-example]
// snippet-sourcedate:[ ]
... |
--TEST--
Cairo\Pattern\Surface->getSurface() method
--SKIPIF--
<?php
include __DIR__ . '/../../skipif.inc';
?>
--FILE--
<?php
$surface = new Cairo\Surface\Image(Cairo\Surface\ImageFormat::ARGB32, 50, 50);
var_dump($surface);
$pattern = new Cairo\Pattern\Surface($surface);
var_dump($pattern);
$surface2 = $pattern->get... |
<?php
namespace satmaelstorm\LargeArrayWriter\tests;
use satmaelstorm\LargeArrayWriter\LAWriter;
use satmaelstorm\LargeArrayWriter\NameIterator\FileNumerator;
use satmaelstorm\LargeArrayWriter\Saver\InMemory;
class LAWriterTest extends \PHPUnit_Framework_TestCase
{
public function testWriteSmallFile()
{
... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model frontend\models\StartLinksSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="start-links-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]);... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Chats extends Model
{
protected $table = 'chats_users';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'id', 'conversations', 'visto_mensage', 'id_user', 'id_user... |
<?php
/**
* DO NOT EDIT THIS FILE!
*
* This file was automatically generated from external sources.
*
* Any manual change here will be lost the next time the SDK
* is updated. You've been warned!
*/
namespace maiorADV\eBaySDK\ResolutionCaseManagement\Types;
/**
*
* @property \maiorADV\eBaySDK\ResolutionCaseM... |
<?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
| ... |
<script>
var view_name = 'Add';
var delete_confirmation_product_line = "<?php echo lang('delete_confirmation_product_line'); ?>";
var recurring_url = "<?php echo base_url(); ?>";
</script>
<script src="<?php echo base_url('uploads/assets/plugins/switchery/switchery.min.js') ?>"></script>
<div class="conten... |
<?php
declare(strict_types=1);
namespace Lcobucci\JWT\Token;
use DateTimeImmutable;
use PHPUnit\Framework\TestCase;
final class PlainTest extends TestCase
{
/**
* @var DataSet
*/
private $headers;
/**
* @var DataSet
*/
private $claims;
/**
* @var Signature
*/
p... |
<?php
namespace App\Http\Middleware;
use Illuminate\Auth\Middleware\Authenticate as Middleware;
class Authenticate extends Middleware
{
/**
* Get the path the user should be redirected to when they are not authenticated.
*
* @param \Illuminate\Http\Request $request
* @return string|null
... |
<?php
namespace App\Console\Commands;
use App\Orm\Domain;
use Illuminate\Console\Command;
class ScanDomain extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'scan:domain {--scanner=wordlist} {domain}';
/**
* The cons... |
<?php
$lang['required'] = "Trường %s không được thiếu.";
$lang['isset'] = "Trường %s phải có giá trị.";
$lang['valid_email'] = "Trường %s không phải email hợp lệ.";
$lang['valid_emails'] = "Trường %s không phải email hợp lệ.";
$lang['valid_url'] = "Trường %s không phải URL hợp lệ.";
$lang['valid_ip'] = ... |
<?php
namespace Wenhsing\Tongtu\Events;
class AfterRequestEvent
{
public $data;
public function __construct(array $data = [])
{
$this->data = $data;
}
} |
<?php
session_start();
require_once '../helpers/conexion.php';
//Comprobamos que exista POST
if(isset($_POST)){
$db = Database::connect();
$usuario_id = $_SESSION['identidad']['id'];
$id = isset($_POST['id']) ? $_POST['id'] : false;
$nombres = isset($_POST['nombre']) ? $_POST['nombre'] : false;
$... |
@extends('layouts.default')
@section('title', '更新个人资料')
@section('content')
<div class="offset-md-2 col-md-8">
<div class="card">
<div class="card-header">
<h5>更新个人资料</h5>
</div>
<div class="card-body">
@include('shared._errors')
<div>
<a href="http://gravatar.com/emails" target... |
<?php declare(strict_types=1);
/**
* @license Apache 2.0
*/
namespace OpenApi\Attributes;
use OpenApi\Generator;
#[\Attribute(\Attribute::TARGET_CLASS)]
class XmlContent extends \OpenApi\Annotations\XmlContent
{
public function __construct(
object $examples = null,
// schema
string|obj... |
<?php
$vnp_TmnCode =$GLOBALS['supp']->vnpay_account; //Mã website tại VNPAY
$vnp_HashSecret = $GLOBALS['supp']->vnpay_serect; //Chuỗi bí mật
$vnp_Url = $GLOBALS['supp']->vnpay_url;
$vnp_Returnurl = base_url()."payment-now";
$vnp_SecureHash = $_GET['vnp_SecureHash'];
$inputData = array();
foreach ($_GET as $key =... |
<?php
/**
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyr... |
<?php
namespace Solidifier\Parser\Visitors;
use PhpParser\NodeVisitorAbstract;
use Solidifier\Visitor;
use Solidifier\Dispatchers\NullDispatcher;
use Solidifier\Dispatcher;
use Solidifier\Defect;
abstract class AbstractVisitor extends NodeVisitorAbstract implements Visitor
{
protected
$dispatcher;
... |
<div class="wrap-login100">
<form class="login100-form validate-form" id="create_account" action="<?php echo base_url(); ?>welcome/create_account">
<span class="login100-form-logo">
<i class="zmdi zmdi-landscape"></i>
</span>
<span class="login100-form-title p-b-34 p-t-27">Creat... |
<?php
/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;
AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
<me... |
<?php
function character_limiter($str, $n = 500, $end_char = '…')
{
if (strlen($str) < $n)
{
return $str;
}
return substr($str,0, $n).$end_char;
}
function replace_newline($string)
{
return (string)str_replace(array("\r", "\r\n", "\n"), '', $string);
}
function number_pad($number,$n)
{
return str_pad... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Spatie\Permission\Models\Role;
use Spatie\Permission\Models\Permission;
class RoleController extends Controller
{
public function __construct()
{
$this->middleware('can:admin.roles.index')->only(... |
<?php
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use App\Models\User;
use Illuminate\Foundation\Auth\RegistersUsers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Faca... |
<?php
declare(strict_types=1);
namespace Kreait\Firebase\RemoteConfig;
use Kreait\Firebase\Exception\InvalidArgumentException;
use Kreait\Firebase\Value;
final class VersionNumber implements Value, \JsonSerializable
{
/**
* @var string
*/
private $value;
private function __con... |
<?php
Route::group(['prefix' => 'auth', 'namespace' => 'Auth'], function() {
Route::post('signin', 'SignInController');
Route::post('signout', 'SignOutController');
Route::get('me', 'MeController');
}); |
@extends('adminlte::page')
@section('title', 'Dashboard')
@section('content_header')
<h1></h1>
@stop
@section('content')
<p>The .table-bordered class adds borders on all sides of the table and the cells:</p>
<div class="row">
<div class="col-md-12 text-right mb-3">
<a href="{{ route('users.create') ... |
<?php
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = $vendorDir;
return array(
'OCA\\Files_Trashbin\\' => array($baseDir . '/../lib'),
); |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Cat extends CI_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this controller... |
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4... |
<?php
/**
* CsnUser - Coolcsn Zend Framework 2 User Module
*
* @link https://github.com/coolcsn/CsnUser for the canonical source repository
* @copyright Copyright (c) 2005-2013 LightSoft 2005 Ltd. Bulgaria
* @license https://github.com/coolcsn/CsnUser/blob/master/LICENSE BSDLicense
* @author Stoyan Cheresharov <... |
<?php
session_start();
if($_SESSION) {
include("usernav.php");
}
else {
include("navbar.php");
}
include("databaseconnect.php");
//GETTING THE VALUES FOR ALL PHOTOGRAPHS
$result7=mysqli_query($conn,"select Name from photo order by ID desc");
$names=array();
$result8=mysqli_query($conn,"select Link from photo or... |
<?php
namespace Flat3\Lodata\Expression\Event;
use Flat3\Lodata\Expression\Event;
/**
* Argument Separator
* @package Flat3\Lodata\Expression\Event
*/
class ArgumentSeparator extends Event
{
} |
<?php
$loopClass = '';
$type = 'items';
if(View::newInstance()->_exists('listType')){
$type = View::newInstance()->_get('listType');
}
if(View::newInstance()->_exists('listClass')){
$loopClass = View::newInstance()->_get('listClass');
}
?>
<div class="main__catalog-slider">
<?php
$i = 0;
if($type ... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Viki extends CI_Controller {
var $API ="";
function __construct() {
parent::__construct();
$this->API="http://10.210.20.55/api/rest";
//$this->API="http://localhost/RestTelkomCloud";
$this... |
<?php
/// Moveto
/// (C)weep.jp ver.2019-12-16
$req1 = htmlentities(substr($_SERVER['REQUEST_URI'],1), ENT_QUOTES, mb_internal_encoding());
$req2 = htmlspecialchars(substr($_SERVER['REQUEST_URI'],1));
$get1 = htmlentities($_GET['get'], ENT_QUOTES, mb_internal_encoding());
$srv1 = htmlentities($_SERVER['SERVER_NAME'],... |
<?php
echo exec("pwd"); ?> |
<?php
namespace App;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
p... |
<?php
namespace Jane\JsonSchema\Guesser\JsonSchema;
use Jane\JsonSchema\Generator\Naming;
use Jane\JsonSchema\Guesser\ChainGuesserAwareInterface;
use Jane\JsonSchema\Guesser\ChainGuesserAwareTrait;
use Jane\JsonSchema\Guesser\ClassGuesserInterface;
use Jane\JsonSchema\Guesser\Guess\ClassGuess;
use Jane\JsonSchema\Gue... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
declare(strict_types=1);
/*
* This file is part of gpupo/content-butler
* Created by Gilmar Pupo <contact@gpupo.com>
* For the information of copyright and license you should read the file
* LICENSE which is distributed with this source code.
* Para a informação dos direitos autorais e de licença você deve... |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Framework\View\Element\UiComponent\DataProvider;
use Magento\Framework\Data\Collection;
use Magento\Framework\Data\Collection\AbstractDb;
use Magento\Framework\Api\Filter;
/**
* Class Fulltext
... |
<?php
/**
* Created by PhpStorm.
* User: thocou
* Date: 03/04/19
* Time: 12:29
*/
/**
* @param $a
* @return string
*/
function find_uniq($a): string
{
$output = [];
foreach ($a as $s) {
$duplicatesRemoved = array_unique(str_split(strtolower($s)));
sort($duplicatesRemoved);
$key ... |
<?php
namespace App\Http\Requests;
use App\Http\Requests\Request;
class LeadImportRequest extends Request
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation r... |
<?php
/**
* phpQuery is a server-side, chainable, CSS3 selector driven
* Document Object Model (DOM) API based on jQuery JavaScript Library.
*
* @version 0.9.5
* @link http://code.google.com/p/phpquery/
* @link http://phpquery-library.blogspot.com/
* @link http://jquery.com/
* @author Tobiasz Cudnik <tobiasz.cu... |
<?php
/**
* Created by PhpStorm.
* User: odd
* Date: 19.08.2017
* Time: 19:36
*/
namespace application\forms\Items;
use application\forms\MetatagsForm;
use application\models\Items\Item;
use yii\base\Model;
/**
* @property MetatagsForm $meta
* @property CategoriesForm $categories
* @property TagsForm $tags
... |
<?php
namespace Google\AdsApi\AdWords\v201705\cm;
/**
* This file was generated from WSDL. DO NOT EDIT.
*/
class NullErrorReason
{
const NULL_CONTENT = 'NULL_CONTENT';
} |
@extends('layouts.appbackend')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Register</div>
<div class="panel-body">
<form cla... |
<?php
/**
* Created by PhpStorm.
* User: liuzw
* Date: 2016/11/10
* Time: 16:47
*/
namespace App\Libs;
/**
* 工具包类库
*
* Class Toolkit
* @package App\Libs
*/
class Toolkit
{
/**
* 去除字符串中全部空格
*
* @param $var
* @return mixed
*/
public static function all_trim($var)
{
... |
<?php
namespace App\Http\Controllers;
use App\Models\Compra;
use App\Traits\CrudGenerator;
use App\Transformers\CompraTransformer as Transformer;
use Illuminate\Http\Request;
class CompraController extends Controller
{
use CrudGenerator;
public $model;
public $request;
public $transformer;
publ... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
// Commands\Re... |
<?php
namespace App\Http\Controllers;
use App\Models\VRCategories;
use App\Models\VRLanguages;
use App\Models\VRPages;
use App\Models\VRResources;
use App\Models\VRUsers;
use Illuminate\Http\Request;
class FrontEndController extends Controller
{
public static function navConfiguration()
{
$configur... |
<?php
namespace App\View\Components;
use Illuminate\View\Component;
use Illuminate\Support\Facades\DB;
class Header extends Component
{
public $services;
public $blogs;
public $resources;
/**
* Create a new component instance.
*
* @return void
*/
public function __constr... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
Class M_user extends CI_Model
{
function __construct(){
parent::__construct();
}
public function getRequestUser($limit, $offset){
$query = $this->db->query("SELECT br.*, u.firstname_u, u.email_u, u.phone_number_u FROM book_r... |
@extends('main')
@section('content')
{!! $rozklad->description!!}
{{--<h3>Розклад занять</h3>--}}
{{--<a href="/docs/Rozklad-2017-18_1.pdf">Розклад занять на весняний семестр 2017-2018 н.р.</a>--}}
@endsection |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\models\ProductSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="product-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
... |
@extends('layouts.master')
@section('content-header')
<h1>
{{ trans('doctor::services.title.services') }}
</h1>
<ol class="breadcrumb">
<li><a href="{{ route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
<li class="active">... |
<?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\Cache\Adapter;
use Psr\Cache\CacheItemInterface;
use ... |
<div class="content">
@includeIf(config('app_settings.flash_partial'))
<form method="post" action="{{ config('app_settings.url') }}"
enctype="multipart/form-data" role="form">
{!! csrf_field() !!}
@if( isset($settingsUI) && count($settingsUI) )
@foreach(Arr::get($settin... |
viaticos.php |
<?php
session_start();
# include connection data and functions
require 'database.php';
# if there was data passed, then verify password,
# otherwise do nothing (that is, just display html for login)
if ( !empty($_POST)) {
// keep track validation errors
$nameError = null;
$passwordError = null;
... |
@extends('layouts.app')
@section('content')
<div class="content-page">
<!-- Start content -->
<div class="content">
<div class="container">
<!-- Page-Title -->
<div class="row">
<div class="col-sm-12">
... |
<?php
/**
* Abstract Test Migration Class
*
* Migrations used for test data should extend this class.
*
* It provides a single method which used to be in a separate trait.
*
*/
namespace Phinx\Migration;
abstract class TestMigration extends AbstractMigration
{
protected function insertTestData($table, arr... |
<?php
/**
* @package Joomla.Plugin
* @subpackage Finder.Contacts
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\Registry\Registry;
JLoader::regis... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateMerchantOrdersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::dropIfExists('me... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.