text stringlengths 2 1.03M |
|---|
<?php declare(strict_types=1);
namespace Becklyn\Messaging\Tests\MessageQueue\Application\Consumer\Worker;
use Becklyn\Messaging\MessageQueue\Application\Consumer\Worker\UnsupportedMessageException;
use PHPUnit\Framework\TestCase;
/**
* @author Samuel Oechsler <so@becklyn.com>
*
* @since 2021-11-25
*
* @covers... |
<?php
namespace Custobar\CustoConnector\Test\Integration\Controller\Adminhtml\Status;
use Custobar\CustoConnector\Api\Data\InitialInterface;
use Custobar\CustoConnector\Model\Initial\Config\Source\Status;
use Custobar\CustoConnector\Model\InitialRepository;
use Magento\Framework\App\Request\Http as HttpRequest;
use M... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Recipe;
use App\RecipeDirection;
use App\RecipeIngredient;
use File;
class RecipeController extends Controller
{
public function index()
{
$recipes = Recipe::orderBy('created_at', 'desc')
->get(['name', 'image', 'id']);
... |
<?php
namespace common\models;
require_once DRUPAL_ROOT . '/includes/password.inc';
use Yii;
use yii\db\ActiveRecord;
class User extends ActiveRecord implements \yii\web\IdentityInterface
{
public $uid;
public $name;
public $pass;
public $roles;
public $role_concat;
public $authKey;
public $... |
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<body>
<a href="<?php echo base_url() . 'tarefa'; ?>">Voltar</a>
<div class="jumbotron text-center">
... |
@extends('adminlte::page')
@section('title', 'CobroCoactivo')
@section('content_header')
<h1>Editando Usuario</h1>
@stop
@section("content")
<div class="container-fluid">
<div class="white">
@include('usuarios.partials._form', ['usuario' => $usuario, 'url' => 'admin/usuarios/'.$usuario->id, 'meth... |
--TEST--
numfmt creation failures
--SKIPIF--
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
--FILE--
<?php
function err($fmt) {
if(!$fmt) {
echo var_export(intl_get_error_message(), true)."\n";
}
}
function print_exception($e) {
echo "\n" . get_class($e) . ": " . $e->getMessage()
. " in " . $e->... |
<!DOCTYPE html>
<html lang="cz">
<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="Slatinné lázně Toušeň">
<meta name="author" content="Slatinné lázně Toušeň">
... |
<?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 DTS\eBaySDK\Trading\Enums;
use MyCLabs\Enum\Enum;
class AttributeConversionEnabledCodeType extends En... |
<?php
/*
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTOR... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div class="row wrapper border-bottom white-bg page-heading">
<div class="col-12">
<h2><?php echo $title_form;?> Product COGS</h2>
</div>
</div>
<div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
... |
<div class="d-flex flex-row justify-content-center line-header align-items-center">
<hr class="left-hr">
<h1 class="text-center">{{ $slot }}</h1>
<hr class="right-hr ">
</div> |
<?php
// environment type
define('B_DEV_ENV', 'dev');
define('B_PROD_ENV', 'prod');
// current environment
define('B_APP_ENV', B_DEV_ENV);
// if production 0 else E_ALL
error_reporting(B_APP_ENV === B_DEV_ENV ? E_ALL : 0);
// debug
define('YII_DEBUG', B_APP_ENV === B_DEV_ENV);
// specify how many levels of call sta... |
<?php
namespace App\Model;
use Illuminate\Database\Eloquent\Model;
class ServiceTag extends Model
{
//
} |
<?php
namespace App\Http\Controllers;
use App\Category;
use Illuminate\Http\Request;
use App\Http\Requests\CategoriesRequest;
class AdminCategoriesController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
... |
<?php
include("../Includes/db.php");
session_start();
$sessphonenumber = $_SESSION['phonenumber'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="s... |
<?php
namespace app\admin\model;
use think\Model;
class Tag extends Model
{
} |
<?php
namespace app\admin\validate;
use think\Validate;
class QuestionProblem extends Validate
{
protected $rule = [
'question_id' => 'require',
'title' => 'require',
];
protected $message = [
'question_id' => 'question_id不可为空',
'title' => 'title不可为空',
];
... |
<?php
/* SVN FILE: $Id$ */
/**
* Multibyte handling methods.
*
*
* PHP versions 4 and 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain... |
--TEST--
Test parse_url() function: Parse a load of URLs without specifying PHP_URL_USER as the URL component
--FILE--
<?php
/* Prototype : proto mixed parse_url(string url, [int url_component])
* Description: Parse a URL and return its components
* Source code: ext/standard/url.c
* Alias to functions:
*/
/*
* P... |
@extends('adminlte::page')
@section('title', 'Websites')
@section('content_header')
<h1> Websites <small>Edit</small></h1>
@stop
@section('content')
<div class="card">
<div class="card-header">
<h3 class="card-title">Edit your website options</h3>
</div>
<!-- /... |
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstrap any application services.
... |
<?php
namespace App\Http\Controllers;
use App\Exceptions\InvalidRequestException;
use App\Http\Requests\SeckillOrderRequest;
use App\Models\Category;
use App\Models\OrderItem;
use App\Models\Product;
use App\Models\ProductSku;
use App\Models\UserAddress;
use App\Services\CategoryService;
use App\Services\OrderService... |
<?php
namespace App\Http\Controllers;
use App\Http\Requests\StoreBillRequest;
use App\Models\Bill;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
class BillController extends Controller
{
/**
* Store a newly created resource in storage.
*
* @param StoreBillRequest $request
... |
<?php
switch ($page)
{
case "Home": echo "You selected Home";
break;
case "About": echo "You selected About";
break;
case "News": echo "You selected News";
break;
case "Login": echo "You selected Login";
break;
case "Links": echo "You selected Links";
break;
default: echo "Unrecognized selection";
}
?... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="card">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Edit Post</h6>
</div>
<div class="card-body">
<form action="{{ route('posts.update', $post->id) }}" me... |
@php
$post = Helper::findProduct($itemId);
$relatedProducts = Helper::relatedProducts($post->title);
$options = Helper::jsonToArray($post->options);
$randomProducts = \App\utils\Helpers\Helper::randomProducts();
@endphp
<!--HEADER AREA END-->
<!--BREADCRUMB AREA START-->
<div class="bread-crumb">
<d... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Person_with_disabilitescontroller extends CI_Controller {
protected $user_id;
public function __construct(){
parent::__construct();
$this->load->model('Register/register_model', 'user');
$this->load->model('Resident/Re... |
<?php
namespace App\Http\Controllers;
use App\Models\User;
use App\Models\UserDocumentCategory;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
use Illuminate\Validation\ValidationException;
class ... |
<div class="row padding-1 mb-1">
<div class="col s10">
<p>
<b class="xxl">
{{Lang::get('controller/operacao.operacao_id', ['id' => $operacao->id, 'nome' => $operacao->nome])}}
</b><br />
{{Lang::get('controller/operacao.criado_em_por', ['usuario' => $operacao->user_cadastro->name, 'data' => $operacao->c... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
//use App\Services\EditMenuViewService;
use App\Models\Menurole;
use App\Http\Menus\GetSidebarMenu;
use App\Models\Menulist;
use App\Models\Menus;
use Illuminate\Validation\Rule;
use App\Services\RolesService... |
<?php
namespace VK\Actions\Enum;
/**
*/
class VideoReason {
/**
*/
const ADULT_MATERIAL = 5;
/**
*/
const CHILD_PORNOGRAPHY = 1;
/**
*/
const DRUG_PROPAGANDA = 4;
/**
*/
const EXTREMISM = 2;
/**
*/
const INSULT_ABUSE = 6;
/**
*/
const SPAM = 0;
/**
*/
const VIOLENCE = 3;
} |
@extends('layouts.admin')
@section('content')
<h1>Edit Users</h1>
<div class="row">
<div class="col-sm-3">
<img src="{{$user->photo ? $user->photo->file : '/images/placeholder.png'}}" alt="" class="img-responsive img-rounded">
</div>
<div class="col-sm-9">
... |
<?php
namespace App\Http\Controllers;
use App\Vendor_transaction;
use Illuminate\Http\Request;
class VendorTransactionController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
... |
<?php
namespace App\Providers;
use App\Policies\MenuItemPolicy;
use App\Policies\RestaurantPolicy;
use App\Restaurant;
use Illuminate\Contracts\Auth\Access\Gate as GateContract;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div class="row wrapper border-bottom white-bg page-heading">
<div class="col-8">
<h2>User Detail</h2>
</div>
</div>
<div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
<div class="col-lg-12">
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSizesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('sizes', function ... |
<?php
namespace Stereochrome\Discourse\Event;
use Da\User\Model\User;
use yii\base\Event;
use Da\User\Event\UserEvent as BaseEvent;
class UserEvent extends BaseEvent {
const EVENT_BEFORE_DISCOURSE_SSO = 'beforeDiscourseSSO';
const EVENT_AFTER_DISCOURSE_SSO = 'beforeDiscourseSSO';
const EVENT_BEFORE_DISCOURSE_LO... |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model common\models\Gu */
$this->title = $model->tanggal_masuk."--".$model->berkas->nama_berkas;
$this->params['breadcrumbs'][] = ['label' => 'Gus', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
\yii\... |
<?php
class EmailHtml extends Swift_Message
{
public function __construct($useremail,$partial,$vars=array())
{
sfApplicationConfiguration::getActive()->loadHelpers(array('Partial','Url'));
$email = get_partial($partial,$vars);
list($body,$subject) = explode('>>>', $email);
parent::__construct($subje... |
@extends('layouts.plantilla')
@section('titulo')
Test de Personalidad
@endsection
@section('principal')
<div class="central">
<h2>Test de Personalidad</h2>
<div class="warning">
<p>Esta es la version abreviada del Test, si no esta seguro del resultado, le sugerimos hacer el <a href="/fulltest">TEST... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$arrCategories = array();
foreach ($all_categories as $categorie) {
if (isset($_GET['category']) && is_numeric($_GET['category']) && $_GET['category'] == $categorie['sub_for']) {
$arrCategories[] = $categorie;
}
if (!isset($_GET[... |
<?php
namespace App\Models\Blog;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
use HasFactory;
//relación uno a muchos inversa
public function user(){
return $this->belongsTo(Post::class);
}
public function cate... |
<?php
return [
'cms_object' => [
'invalid_file' => 'Érvénytelen fájlnév. Csak latin betűket, számokat, aláhúzásokat, kötőjeleket és pontokat tartalmazhat. Néhány példa a megfelelő fájlnévre: kapcsolat.htm, impresszum, konyvtar/oldalnev',
'invalid_property' => "A(z) ':name' tulajdonság nem állítható... |
<?php
namespace ContainerWxacesl;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class get_ServiceLocator_G9CqTPpServic... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateEditorialesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('editoriales... |
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace ... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Categories extends MY_Controller {
public function __construct()
{
parent::__construct();
$this->check_login();
$this->check_permission();
}
public function type($id)
{
$this->check_getvalue($id, 'categories');
$this->loa... |
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- End of Topbar -->
<!-- Begin Page Content -->
<div class="container-fluid">
<!-- Page Heading -->
<!-- DataTal... |
<?php
/**
* Template for displaying archive course content
*
* @author ThimPress
* @package LearnPress/Templates
* @version 1.0
*/
//get_header();
if ( !defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
if ( is_tax() ) {
$total = get_queried_object();
$total = $total->count;
} elseif ( !empty( ... |
<?php
/* @WebProfiler/Collector/logger.html.twig */
class __TwigTemplate_c6ac89c8ae8bc8e9ffadd35a8b989dd494a86dedc79688042d052d176d7581da extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplat... |
<?php
namespace Database\Seeders;
use App\Models\User;
use Illuminate\Database\Seeder;
class UserSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
User::create(['name'=>'John Doe','username'=>'john','email'=>'john@gmail.com','pas... |
@extends('dashboard.layouts.main')
@section('container')
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1 class="h2">Post Categories</h1>
</div>
@if (session()->has('success'))
<div class="alert alert-success col-lg-6" role="alert">
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAppointmentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('appointmen... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class TipoProduto extends Model
{
use HasFactory;
public $table='tipoproduto';
protected $fillable = [
'id',
'tpp_descricao',
];
public function tipoprodu... |
<?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
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCustomerTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('customer', fun... |
<?php
namespace GPS\Popov;
/**
* Defines attributes and references for creating instances of classes.
*/
class Definition
{
private $initialized = false;
private $class;
private $constructor;
private $attrs = [];
private $refs = [];
private $after;
private $factory;
private $reflProp... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for y... |
<?php return unserialize('a:1:{i:0;O:54:"Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route":9:{s:10:"' . "\0" . '*' . "\0" . 'service";N;s:48:"' . "\0" . 'Symfony\\Component\\Routing\\Annotation\\Route' . "\0" . 'path";s:24:"/galeria/recomendaciones";s:48:"' . "\0" . 'Symfony\\Component\\Routing\\Annotation\\R... |
<?php
namespace App\Policies;
use App\Models\Organization;
use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;
use function PHPUnit\Framework\isNull;
class OrganizationPolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can view the model.
*
* @param \App\M... |
<?php
namespace SystemInvoices;
use Illuminate\Database\Eloquent\Model;
class Profile extends Model
{
//
} |
<?php
declare(strict_types = 1);
/**
* /src/Entity/User.php
*
* @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com>
*/
namespace App\Entity;
use App\Doctrine\DBAL\Types\Types as AppTypes;
use App\Entity\Interfaces\EntityInterface;
use App\Entity\Interfaces\UserGroupAwareInterface;
use App\Entity\Interfaces\Use... |
<?php
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=db1.vm.lanyicj.cn;dbname=tm_qihuo',
'username' => 'dev',
'password' => 'dev',
'charset' => 'utf8mb4',
'enableSchemaCache' => !YII_DEBUG,
'schemaCacheDuration' => 3600,
'schemaCache' => 'yacCache',
// 配置从服务器
'sla... |
<?php
/**
* @author chicpro <chicpro@gmail.com>
* @copyright (c) chicpro
* @link https://ncube.net
*/
require __DIR__.'/../vendor/autoload.php';
use chicpro\KAKAO\TRANSLATE;
$appKey = '';
$translate = new TRANSLATE();
$translate->setAppKey($appKey);
$translate->setSourceLanguage('kr');
$translate->setTargetLanguag... |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://www.w3schools.com/lib/w3-theme-khaki.css">
<style type="text/css">
.w3-oro {color:#000 !important; background-color... |
<div class="navbar-default sidebar" role="navigation">
<div class="sidebar-nav navbar-collapse">
<ul class="nav" id="side-menu">
<li class="sidebar-search">
<form action="{{URL::route('admin.busca.store')}}" method="POST">
<div class="input-group custom-search-form">
... |
<?php namespace Acme2\Crm2\Models;
use October\Rain\Database\Pivot;
/**
* OpportunityOfferingPivot Model
*/
class OpportunityOfferingPivot extends Pivot
{
/**
* @var string The database table used by the model.
*/
public $table = 'acme2_crm2_opportunity_offering_pivots';
/**
* @var array... |
<?php
namespace App\Http\Middleware;
use Closure;
class SimpleApi
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
return $next($request);... |
<?php
namespace Database\Factories;
use App\Models\Shipping;
use Illuminate\Database\Eloquent\Factories\Factory;
class ShippingFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Shipping::class;
/**
* Define the m... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for y... |
<?php
namespace App\Http\Controllers\API;
use App\Http\Controllers\API\Admin\Courses\CoursesController;
use App\Includes\Constant;
use App\Models\StudentTransaction;
use App\Models\Student;
use App\Models\Course;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redirect;
use Zarinpal\Zarinpal;
class Stud... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateDishOrderTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('dish_order', ... |
<?php
require("config.php");
require("functions.php");
require('components/setcookie.php');
if(isset($_COOKIE['id']) && isset($_COOKIE['pos'])){
if ($_COOKIE['pos'] == 1){
$name_group = get_groupname($_COOKIE['id']);
$title = "| ".$name_group;
}
elseif ($_COOKIE['pos'] == 2){
$name_group = get_teac... |
<?php
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \frontend\models\PasswordResetRequestForm */
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
$this->registerCssFile('@web/statics/css/modifyPassword.css',['depends'=>['yii\web\YiiAsset']]);
$this->title = '找回密码';
$this->p... |
<?php
namespace App\Http\Controllers\statistics;
use App\QuantumStat;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
class QuantumStatController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index(... |
<?php
namespace Emtudo\Domains\Courses\Repositories;
use Emtudo\Domains\Courses\Contracts\SubjectRepository as SubjectRepositoryContract;
use Emtudo\Domains\Courses\Queries\SubjectQueryFilter;
use Emtudo\Domains\Courses\Subject;
use Emtudo\Domains\Courses\Transformers\SubjectTransformer;
use Emtudo\Domains\Tenants\Te... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateOrdersStatusTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('orders_sta... |
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| rout... |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +-------------------------------------------------... |
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS B... |
<?php
namespace App\Http\Controllers\Business;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use App\Classes\CryptoApi;
use App\Classes\SendWyreApi;
use App\WalletNames;
use App\User;
use App\WalletInfo;
use Illuminate\Support\Facades\Crypt;
use App\Transaction... |
@php
$levelAmount = 'level';
if (Auth::User()->level() >= 2) {
$levelAmount = 'levels';
}
@endphp
<div class="card">
<div class="card-header @role('admin', true) bg-secondary text-white @endrole">
Welcome {{ Auth::user()->name }}
@role('admin', true)
<span clas... |
<?php declare(strict_types=1);
use WyriHaximus\JsCompress\Factory;
require \dirname(__DIR__) . '/vendor/autoload.php';
echo Factory::construct()->compress("<html>\r\n\t<body>\r\n\t\t<h1>Title</h1>\r\n\t<script>\r\n\t\talert(' iqeugfo wef we');\r\n\t</script>\r\n\t</body>\r\n</html>\r\n"), \PHP_EOL; |
<!DOCTYPE html>
<html lang="en"><!--declare the language of the page-->
<head>
<title>MasterClasses-Classes</title><!--Display as site tab title-->
<link rel="shortcut icon" type="image/x-icon" href="images/master.ico"> <!--adds a image to the title to display in the tab-->
<link rel="stylesheet" type="text/css" href="... |
<?php
/**
* ZucchiModel (http://zucchi.co.uk)
*
* @link http://github.com/zucchi/ZucchiModel for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zucchi Limited. (http://zucchi.co.uk)
* @license http://zucchi.co.uk/legals/bsd-license New BSD License
*/
namespace ZucchiModel\Metadata\Ada... |
<?php
declare(strict_types=1);
namespace Chubbyphp\DoctrineDbServiceProvider\Command;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\DriverManager;
use Doctrine\Persistence\ConnectionRegistry;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Co... |
<?php
namespace jimchen\facade;
/**
* Yii::$app->get('db') facade.
*
* Methods
*
* @method static \yii\base\Behavior attachBehavior(string $name, string|array|\yii\base\Behavior $behavior) Attaches a behavior to this component.
* @see \yii\base\Component::attachBehavior
*
* @method static void attachBehaviors... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Article extends Model
{
protected $fillable = ['title', 'body', 'user_id'];
/**
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function writers()
{
return $this->belongsTo('App\User', 'user_id');
}
... |
<?php
namespace App\Http\Controllers;
use App\Models\Asset_po;
use App\Models\Asset_type_wo;
use App\Models\Asset_wo;
use App\Models\Finance_invoice_in;
use App\Models\Finance_invoice_in_pay;
use App\Models\Finance_leasing;
use App\Models\Finance_leasing_detail;
use App\Models\Finance_loan;
use App\Models\Finance_loa... |
@extends('layouts.admin.default')
@section('styles')
<link rel="stylesheet" href="{{ asset('adminlte/dist/css/dataTables.bootstrap.css') }}">
@stop
@section('title', 'Paginas')
@section('content')
<div class="box box-primary">
<div class="box-body">
<table id="form-content" class="table tab... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class MasterSkpd extends Model
{
protected $table = "master_skpd";
protected $fillable = [
'nama',
'id_parent',
];
} |
<?php
/**
* Piwik - Open source web analytics
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @category Piwik
* @package Piwik
*/
/**
* Nonce class.
*
* A cryptographic nonce -- "number used only once" -- is often recommended as part of a robust defense aga... |
<?php
namespace Database\Seeders;
use App\Models\Category as CategoryModel;
use Illuminate\Database\Seeder;
class CategoryDatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
CategoryModel::factory()->times(6)->create();
}... |
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\User $user
*/
?>
<nav class="habitat-blue darken-1" id="actions-sidebar">
<ul class="side-nav container">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Form->postLink(
__('Delete'),
['... |
<?php
namespace QzLaravel\Controllers\Api;
use App\User;
use App\Http\Controllers\Controller;
use Request;
use QzPhp\Q;
class LogController extends Controller
{
public function getList()
{
$path = storage_path('logs');
$files = array_diff(scandir($path), array('.', '..'));
$response ... |
<?php
namespace Oro\Bundle\UserBundle\Tests\Unit\Provider;
use Oro\Bundle\UserBundle\Provider\RolePrivilegeCategoryProvider;
class CategoryProviderTest extends \PHPUnit_Framework_TestCase
{
/** @var RolePrivilegeCategoryProvider */
private $categoryProvider;
protected function setUp()
{
$tr... |
<?php
namespace App\Http\Controllers;
use App\expediente;
use Illuminate\Http\Request;
class ExpedienteController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
$datos['expediente'] = ... |
<style>
.footer {
position: fixed;
bottom:0px;
width: 100%;
background-color:#222;
color:#FFFFFF;
}
</style><br><br>
<div class="navbar-fixed-bottom footer">
<div class="row">
<div class="col-md-12" align="center"><a href="#">Developed By Vijay Jadhav</a></div>
</div>
</div>
<script>
!function ($) {... |
<?php
declare(strict_types=1);
/*
* Created by netlogix GmbH & Co. KG
*
* @copyright netlogix GmbH & Co. KG
*/
namespace spec\sd\SwPluginManager\Command;
use PhpSpec\ObjectBehavior;
use sd\SwPluginManager\Command\InstallCommand;
use Symfony\Component\Console\Command\Command;
class InstallCommandSpec extends Obj... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.