text stringlengths 2 1.03M |
|---|
<?php
// session
session_start();
if(!isset($_SESSION['username'])){
header("Location: ../../../../signin");
}
if(!isset($_SESSION['id_delete'])){
header("Location:../../");
}
$id_del = $_SESSION['id_delete'];
require("../../../../php/connect.php");
try {
$sql = "SELECT * FROM recipe WHERE id = ?";
$... |
<!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">
<title>Cetak Laporan Analisa Umur Piutang (AUP) {{ date("d-m-y") }}</title>
<style>
body {
... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for ... |
<?php if (!defined('THINK_PATH')) exit(); /*a:6:{s:74:"/www/wwwroot/101.37.13.45/public/../application/admin/view/main/index.html";i:1611226055;s:69:"/www/wwwroot/101.37.13.45/application/admin/view/public/menu_top.html";i:1609683904;s:70:"/www/wwwroot/101.37.13.45/application/admin/view/public/menu_left.html";i:160969... |
<!DOCTYPE html>
<html>
<head>
<title>Unauthorized.</title>
<link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">
<style>
html, body {
height: 100%;
}
body {
margin: 0;
... |
@extends('backend.layout.index')
@section('page_title','Hàng sắp hết trong kho')
@section('custom_css')
<style>
</style>
@endsection
@section('content')
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Hàng sắp hết trong kho
</h1>
<ol class... |
<?php
namespace app\rackstage\service;
class BasicService
{
/**下载文件
* @param $file
*/
public static function download($file,$name)
{
if (is_file($file)) {
$length = filesize($file); //文件大小
$type = mime_content_type($file); //文件类型
header('Content-Descri... |
<?php
session_start();
$user_id=$_SESSION['alumni'];
include "class.functions.php";
?>
<!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">
<!-- The above 3 meta tags *m... |
<?php
/**
* Class Toolset_Admin_Notice_Layouts_Help
* Special about this notice: it's shown after the title of the layout and not after the page title like usual notices
*
* @since 2.3.0 First release of Toolset_Admin_Notice_Layouts_Help
* All containing properties and methods without since tag are par... |
<?= $this->extend('layout/main_template') ?>
<?= $this->section('content') ?>
<?php $seskab = session()->get('kodebapel'); ?>
<center>
<h3>Daftar Penyuluh PPPK Kab <?= ucwords(strtolower($nama_kabupaten)) ?></h3>
<p>Ditemukan <?= $jml_data ?> data</p>
</center>
<div class="container-fluid py-4">
<div class... |
<?php
/**
* This code is licensed under the BSD 3-Clause License.
*
* Copyright (c) 2017, Maks Rafalko
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code... |
@extends('laravel-usp-theme::master')
@section('javascripts_head')
<script type="text/javascript" src="{{ asset('js/livro.js') }} "></script>
@endsection
@section('flash')
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $er... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Crud extends Model
{
use HasFactory;
protected $table = 'crud';
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected... |
<?php
declare(strict_types=1);
/*
* +----------------------------------------------------------------------+
* | ThinkSNS Plus |
* +----------------------------------------------------------------------+
* | Copyright (c) 2017 Chengdu ZhiYiChuangXiang Technol... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePostsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('posts', function ... |
<?php
class PrestaShopValetDriver extends ValetDriver
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
* @param string $uri
*
* @return bool
*/
public function serves($sitePath, $siteName, $uri)
{
re... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePrintersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('printers', fun... |
<?php
return [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
FOS\RestBundle\FOSRestBundle::class => ['all' => true],
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
JMS\SerializerBundle\JMSSerializerBundle::class => ['all' => true],
... |
<?php
namespace app\models;
use Yii;
use yii\db\ActiveRecord;
use yii\web\IdentityInterface;
/**
* This is the model class for table "useraccount".
*
* @property integer $id_user
* @property string $full_name
* @property string $password
* @property string $email
* @property string $ttl
* @property string $h... |
<?php
/**
* OAuthApi
* PHP version 7.3
*
* @category Class
* @package criteo\api\marketingsolutions\preview
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
* Criteo API
*
* Criteo publicly exposed API
*
* The version of the OpenAPI document: Preview
* Generated by: h... |
<?php
namespace Adldap\Models\Events;
class Saved extends Event
{
//
} |
<?php
/* get clinic name*/
$clinic_id = ($auth->role_id == \App\Http\Controllers\WebController::ROLE_ASSISTANT) ? $auth->clinic_id : Request::get('clinic');
$clinic = \App\Http\Repositories\Web\ClinicRepository::getClinicById($clinic_id);
?>
@if(count($reservations) > 0)
<div class="table-responsive">
<ta... |
<?php
namespace App\Http\Middleware;
use Closure,Auth;
class AdminAuth
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
if(Auth::guard('ad... |
<?php include 'includes/header.php'; ?>
<?php
global $database;
if(isset($_POST['submit'])) {
$name = mysql_real_escape_string($_POST['name']);
$email = mysql_real_escape_string($_POST['email']);
$review = mysql_real_escape_string($_POST['review']);
$rating = mysql_real_escape_string($_POST['rating']);
$dat... |
<h3>多対多(ポリモーフィック)(morphToMany / morphedByMany)</h3>
<h4>コラムとコラムについたタグ一覧</h4>
<p>
@foreach($columns as $columns)
{{$columns->title}}のタグ一覧。<br>
@foreach($columns->tags ?? [] as $tag)
{{$tag->name ?? null}}<br>
@endforeach
<hr>
@endforeach
</p>
<h4>ニュースとニュースについたタグ一覧</h4>
<p>
@foreach($news as $_news)
{{$_news->title}}のタグ... |
<?php
$dir = __DIR__ . '/../../public/assets';
$files = [
'scripts' => [
'/js/bundle.js' => '/js/bundle.{time}.min.js'
],
'styles' => [
'/css/bundle.css' => '/css/bundle.{time}.min.css'
]
];
$clear = [
'/js/bundle.*.min.js',
'/css/bundle.*.min.css'
];
foreach ($clear as $pattern) {
foreach (glob($dir . $... |
<?php
namespace App\Http\Controllers;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
class UserConroller extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory... |
<?php include('config.php') ;
//include('otpset.php');
include('reg.php');
if (isset($_POST['reg_user'])) {
// receive all input values from the form
$firstname= mysqli_real_escape_string($con, $_POST['firstname']);
$lastname= mysqli_real_escape_string($con, $_POST['lastname']);
$username = mysqli_real_escape_s... |
<?php
/*
* CKFinder
* ========
* http://ckfinder.com
* Copyright (C) 2007-2011, CKSource - Frederico Knabben. All rights reserved.
*
* The software, this file and its contents are subject to the CKFinder
* License. Please read the license.txt file before using, installing, copying,
* modifying or distribute th... |
--TEST--
Bug #70535 (XSLT: free(): invalid pointer)
--SKIPIF--
<?php
if (!extension_loaded('xsl')) die("skip Extension XSL is required");
if (!extension_loaded("simplexml")) die("skip simplexml extension is not loaded");
?>
--FILE--
<?php
$xmlInput = simplexml_load_string('<root></root>');
$xslInput = '<xsl:stylesheet... |
<?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 App\Models;
use Illuminate\Database\Eloquent\Model;
class Token extends Model
{
protected $table='tokens';
protected $fillable=[
'page_id',
'page_name',
'access_token',
'user_id'
];
} |
<?php
/**
* @package BC_Cache
*/
namespace BlueChip\Cache;
class Exception extends \Exception
{
} |
<!-- Table offer-->
<div class="container col-md-12">
<br>
<div>
<button type="button" class="btn btn-primary col-xs-offset-10" data-toggle="modal"
data-target="#model-offer-0"><span class="fa fa-plus-square" aria-hidden="true"></span> Neuer
Eintrag
<... |
<?php
$lang["config_address"] = "公司地址";
$lang["config_address_required"] = "公司地址為必填";
$lang["config_apostrophe"] = "apostrophe";
$lang["config_backup_button"] = "Backup";
$lang["config_backup_database"] = "Backup Database";
$lang["config_barcode"] = "Barcode";
$lang["config_barcode_company"] = "公司名稱";
$lang["config_b... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddGateColumnToLogs extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('logs', function... |
<!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.0">
<link rel="stylesheet" href="css/stylelogin.css">
<link href="https://fonts.googleapis.com/css2?family=Montserra... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateDetailsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('details', funct... |
<?php
namespace App\Http\Controllers;
use App\Models\Course;
use App\Models\File;
use App\Models\Unit;
use Faker\Provider\Uuid;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
class FileController extends Controller
{
private const STORAGE_PATH = 'files';
public function create(string $... |
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>MAN</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.7 -->
<link rel="styl... |
@extends('layouts.app2')
@section('title', 'Main page')
@section('content')
<section id="content" class="container">
<!-- Breadcrumb -->
<ol class="breadcrumb hidden-xs">
<li><a href="#">Inicio</a></li>
<li><a href="#">Facturas Emitidas</a></li>
<li class="active">Detalle</li>
</ol>
... |
@extends('backend.layout.app')
@section('title') Dashboard @endsection
@section('content')
<!-- row -->
<div class="row">
<div class="col-xl col-md-4">
<div class="card">
<div class="card-body p-4">
<div class="d-inline-block mb-4 ml--12 position-relative donut-chart-sale">
... |
<?php
$successmsg='';$errormsg='';
if(!empty($successmsgdata))
{
$successmsg=$successmsgdata;
}
if(!empty($errormsgdata))
{
$errormsg=$errormsgdata;
}
?>
@extends('layouts.admin.adminmaster',['successmsg' => $successmsg,'errormsg'=>$errormsg])
@section('content')
<?php
$name='';$id=0; $usertype_id_d... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to ... |
<?php
namespace App\Http\Controllers;
use App\libraries\imageloader;
use App\model\Menu;
use App\model\Muser_role;
use app\model\User;
use Carbon\Traits\Timestamp;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
use GuzzleHttp\Middleware;
use Illuminate\Support\Facades\Auth;
use Illuminate\Suppor... |
@extends('layout')
@section('title','Portfolio')
@section('content')
<h1>Editar Proyecto </h1>
@include('partials.validation-errors')
<form method="POST" action="{{route('projects.update',$project)}}">
@method('PATCH')
@include('projects._form',['btnText' => 'Editar'])
<... |
<?php
namespace ContainerBRRWdzx;
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 getConsole_Command_DotenvDebugSe... |
<!-- Site Footer-->
<footer class="site-footer" style="background-image: url(<?php echo img_url('footer-bg.png'); ?>);">
<div class="container">
<div class="row">
<div class="col-lg-9">
<!-- Categories-->
<section class="widget widget-links widget-light-skin">
... |
<?php
namespace Terraformers\KeysForCache\Tests\Scenarios;
use SilverStripe\Core\Injector\Injector;
use SilverStripe\Dev\SapphireTest;
use Terraformers\KeysForCache\RelationshipGraph\Graph;
use Terraformers\KeysForCache\Services\ProcessedUpdatesService;
use Terraformers\KeysForCache\Tests\Mocks\Models\DotNotationTouc... |
<?php
use Illuminate\Http\Request;
Route::middleware('auth:api')->group(function(){
Route::get('/home', 'api\UserController@index');
Route::get('show/with/subcategory/{id}', 'api\UserController@show_with_subcategory');
Route::get('show/{id}', 'api\UserController@show');
Route::post('comment', 'api\UserCon... |
<?php
namespace App\Domain\Billing\Application;
use App\Domain\Billing\Repositories\BillingRepository;
use App\Domain\Billing\Services\GenerateBillingNumberService;
use App\Domain\Billing\Services\MergeProductBillingService;
use App\Domain\Billing\Services\GenerateBillingDocumentService;
use App\Domain\Billing\Servic... |
@extends('layouts.logged')
@section('content2')
<div id="colorlib-main">
<div class="container main-secction my-3">
<div class="card text-center mt-5">
<div class="card-body">
<h5 class="card-title">El dibujo se ha creado con éxito!</h5>
<p class="card-text">Ahora... |
<?php
/**
* This file has been @generated by a phing task from CLDR version 35.0.0.
* See [README.md](README.md#generating-data) for more information.
*
* @internal Please do not require this file directly.
* It may change location/format between versions
*
* Do not modify this file directly!
*/
return array (... |
<?php
/**
* tpAdmin [a web admin based ThinkPHP5]
*
* @author yuan1994 <tianpian0805@gmail.com>
* @link http://tpadmin.yuan1994.com/
* @copyright 2016 yuan1994 all rights reserved.
* @license http://www.apache.org/licenses/LICENSE-2.0
*/
//------------------------
// 演示示例
//-------------------------
namespace ... |
@extends('layouts.admin')
@section('content')
<div class="jumbotron" style="padding-top: 20px;">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-9">
<div class="card">
<div class="card-header">
<h1>
<i style="background-color: white; font-size: 24px; font-family: ... |
<?php
namespace Topxia\MobileBundleV2\Processor;
interface LessonProcessor
{
public function getCourseLessons();
public function getLesson();
public function getLessonMaterial();
/*
* courseId
* lessonId
* token
*/
public function learnLesson();
/*
* courseId
* le... |
<?php include 'header.php'; ?>
<div id="main-content">
<h2>Edit Record</h2>
<form class="post-form" action="<?php $_SERVER['PHP_SELF']; ?>" method="post">
<div class="form-group">
<label>Id</label>
<input type="text" name="sid" />
</div>
<input class="submit" type... |
@extends("admin.master.home")
@section("pagecss")
<link rel="stylesheet" href="{{asset("dist")}}/css/toastr.min.css">
<link rel="stylesheet" href="{{asset("dist")}}/css/dual-listbox.css">
@endsection
@section("breadcrumcontent")
<li class="breadcrumb-item">خانه</li>
<li class="breadcrumb-item">فرم</li... |
@extends('admin.layout.index')
@section('section') menu-item-active @endsection
@section('content')
@include('admin.errors.alerts')
<form action="admin/section/{{ isset($data) ? 'edit/'.$data->id : 'add' }}" method="POST" enctype="multipart/form-data">
<input type="hidden" name="_token" value="{{csrf_token()}}" />
<div... |
@extends('templates.header')
@section('titulo')
Nova Tarefa
@endsection
@section('conteudo')
<section class="mt-5 d-flex flex-column align-items-center">
@if (session('error'))
<div class="alert alert-danger">{{ session('error') }}</div>
@endif
<h3 class="text-center ">NOVA TAREFA</h3>
<form action="/sa... |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\Pjax;
use kartik\export\ExportMenu;
/* @var $this yii\web\View */
/* @var $searchModel app\modules\professional\models\ApplicationSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Accredited Professionals';
$this->params[... |
<?php
use Illuminate\Auth\AuthenticationException;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Collection;
use function Pest\Laravel\assertDatabaseHas;
use function PHPUnit\Framework\assertInstanceOf;
use Rubik\LaravelComments\Models\Comment;
use Rubik\LaravelComments\Tests\TestSupport\Models\TestMo... |
{!! Form::open(['route' => ['people.destroy', $id], 'method' => 'delete']) !!}
<div class='btn-group'>
<a href="{{ route('people.show', $id) }}" class='btn btn-ghost-success'>
<i class="fa fa-eye"></i>
</a>
<a href="{{ route('people.edit', $id) }}" class='btn btn-ghost-info'>
<i class="fa fa-e... |
<?php
namespace app\safetymng\controller;
use think\Controller;
use think\Db;
use think\Request;
class CheckTBMng extends FDZCRoot {
private $PRE = 'lgy19891115';
private $CorpMng;
public function __construct(Request $request = null)
{
$this->CorpMng = new CorpMng();
parent::__constru... |
<?php
namespace Simonetti\MultiCTe\Soap;
/**
* Class COFINS
* @package Simonetti\MultiCTe\Soap
*/
class COFINS
{
/**
* @var float
*/
public $Aliquota;
/**
* @var float
*/
public $BaseCalculo;
/**
* @var string
*/
public $CST;
/**
* @var float
*... |
<?php
/**
* CRequiredValidator class file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright Copyright © 2008-2011 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
/**
* CRequiredValidator validates that the specified attribute does not have n... |
<?php
namespace App\Interfaces\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware;
class TrimStrings extends Middleware
{
/**
* The names of the attributes that should not be trimmed.
*
* @var array
*/
protected $except = [
'password',
'pa... |
<!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
declare(strict_types=1);
namespace Sonnenglas\MyDHL\ValueObjects;
use Sonnenglas\MyDHL\Exceptions\InvalidArgumentException;
class Incoterm
{
private const ALLOWED_KEYWORDS = [
'EXW', // ExWorks
'FCA', // Free Carrier
'CPT', // Carriage Paid To
'CIP', // Carriage and Insuran... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class LoginRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the ... |
<?php
namespace A3020\RestrictLogin;
use Concrete\Core\Application\ApplicationAwareInterface;
use Concrete\Core\Application\ApplicationAwareTrait;
use Concrete\Core\Config\Repository\Repository;
use Concrete\Core\Routing\Redirect;
use Concrete\Core\Utility\IPAddress;
use Symfony\Component\HttpFoundation\IpUtils;
cla... |
@extends('layouts.frontend')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12">
@can('payment_create')
<div style="margin-bottom: 10px;" class="row">
<div class="col-lg-12">
<a c... |
<?php
/*
* This file is part of the Doctrine Behavioral Extensions package.
* (c) Gediminas Morkevicius <gediminas.morkevicius@gmail.com> http://www.gediminasm.org
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Gedmo\Mappi... |
<nav>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="sobre.php">Sobre Mim</a></li>
<li><a href="cadastro.php">Cadastro</a></li>
</ul>
</nav> |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class RegistrationRequest extends FormRequest {
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize() {
return true;
}
/**
* Get ... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddExpressesInfo extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('expresses', functi... |
<?php namespace Clake\Userextended\Updates;
use Schema;
use October\Rain\Database\Schema\Blueprint;
use October\Rain\Database\Updates\Migration;
class RouteRestrictionAddFlags extends Migration
{
public function up()
{
Schema::table('clake_userextended_route_restriction', function($table)
{
... |
@extends('Admin.layouts.dashbord.index')
@section('admintitle', 'Admin Dashboard')
{{-- Breadcrumb --}}
@section('rightbreadcrumb','Dashboard')
@section('leftbreadcrumb','Home')
@section('leftsubbreadcrumb','Dashboard')
{{-- End Breadcrumb --}}
@section('admincontent')
<section class="content">
<!-- Small boxes (St... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCommentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('comments', fun... |
<?php
namespace CoolSpots\ApiBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Serializer\Serializer;
use Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer;
use Symfony\Component\Serializer\Encoder\JsonEncoder... |
<?php
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use frontend\assets\AppAsset;
use common\models\Notice;
/* @var $this \yii\web\View */
/* @var $content string */
AppAsset::register($this);
$noticeCount = Notice::Count();
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii:... |
<?php
namespace Translatr;
use Illuminate\Support\ServiceProvider;
class TranslatrServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
//
}
/**
* Register the application services.
*... |
<?php
namespace SynergiTech\ChromePDF\Browserless;
/**
* Indicates a failure in the API when rendering the PDF
*/
class APIException extends \RuntimeException
{
} |
<?php
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.tx... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateWorkTimesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('work_times', ... |
<?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer' . '/autoload_real.php';
return ComposerAutoloaderInitcd4336bfa07664a10d9b0c9eab67111d::getLoader(); |
<?php namespace Contentify\Facades;
use Illuminate\Support\Facades\Facade;
class UserActivities extends Facade {
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor() { return 'userActivities'; }
} |
<?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
use App\User;
use App\Role;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
User::truncate();
DB::table('role_user')->... |
<?php
class FaGearmanClient extends FaGearmanClientBase {
protected function processDataWithPriority($datus) {
$res = [];
foreach($datus as $queue => $data) {
switch ($queue) {
case 'cron':
if (!empty($data)) {
$res = $this->addBackgroundTask('addTaskBackground', 'pushAws... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class WealthScoreComment extends Model
{
protected $table = "wealth_score_comments";
protected $fillable = ['wealth_score','list','description','trigger_score','trigger_scope'];
} |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class TipoComprobante extends Model {
protected $table = 'tipos_comprobante';
protected $primaryKey = 'id';
public $timestamps = false;
public function tipo_comprobante_sunat() {
return $this->belongsTo(Sunat01TipoComprobante::cla... |
<?php
namespace backend\controllers;
use Yii;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use common\models\Uniqueness;
use yii\data\ActiveDataProvider;
/**
* Site controller
*/
class UniquenessController extends Controller
{
/**
* {@inheritdoc}
*/
public fun... |
<?php
// autoload_static.php @generated by Composer
namespace Composer\Autoload;
class ComposerStaticInit36c256170a69423b9b9d8573cd43ea1a
{
public static $files = array (
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
'72579e7bd17821bb1321b8741... |
<?php
class indexController extends controller
{
function __construct()
{
// code...
}
public function index(){
echo "index <br>";
return View::vista('exampleFolder/example',['name' => "Tarkan"]);
}
public function list(){
$this->model('User')->insert();
}
}
?> |
<?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.
*/
declare(strict_types=1);
namespace Sylius\Bundle\ThemeBundle\DependencyInjection;
use Sylius\Bundle\... |
<?php
namespace Drupal\ds\Plugin\DsField;
use Drupal\Core\Template\Attribute;
/**
* The base plugin to create DS fields.
*/
abstract class Field extends DsFieldBase {
/**
* {@inheritdoc}
*/
public function build() {
$config = $this->getConfiguration();
// Initialize output.
$output = '';
... |
<?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.
*/
declare(strict_types=1);
namespace Sylius\Bundle\AdminBundle\Controller;
use Sylius\Bundle\CoreBundl... |
@extends ('layouts.admin')
@section ('contenido')
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
<h3>Nueva Categoría</h3>
@if (count($errors)>0)
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{$error}}</li>
@endforeach
</ul>
</div... |
<?php
//000000086400a:10:{s:2:"id";s:2:"21";s:4:"path";s:45:"/Uploads/Picture/2016-09-03/57ca9dac99211.jpg";s:3:"url";s:0:"";s:11:"category_id";s:1:"0";s:3:"md5";s:32:"84e3f6aef60ade4afddb51a19feca31e";s:4:"sha1";s:40:"56ec5cdad98d43537fcd7665e5fdd32684add200";s:6:"status";s:1:"1";s:11:"create_time";s:10:"1472896424";s... |
<?php
declare(strict_types=1);
/**
* Copyright (c) 2017-present Ganbaro Digital Ltd
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.