text stringlengths 2 1.03M |
|---|
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use App\Equipo;
use App\Arbitraje;
class Jugador extends Model
{
public function equipo(){
return $this->belongsTo(Equipo::class);
}
public function arbitrajes (){
return $this->hasMany(Arbitraje::class);
}
} |
<?php
/**
* Created by PhpStorm.
* User: soltan
* Date: 11/22/2018
* Time: 1:53 AM
*/
namespace App\Http\Controllers;
use App\Http\Requests;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class LoginToController extends Controller
{
/**
* Handle an authentication attempt.
*
... |
<div id="content" class="app-content">
<div class="col-xl-12 ui-sortable">
<div class="panel panel-inverse" data-sortable-id="form-stuff-1" style="" data-init="true">
<div class="panel-heading ui-sortable-handle">
<h4 class="panel-title">LAPORAN ABSEN GURU</h4>
<div class="panel-heading-btn">
<a hre... |
<?php
defined('WEKIT_VERSION') || exit('Forbidden');
/**
* 投票基本信息dao服务
*
* @author MingXing Sun <mingxing.sun@aliyun-inc.com>
* @copyright ©2003-2103 phpwind.com
* @license http://www.phpwind.com
* @version $Id: PwPollDao.php 9051 2012-05-03 01:57:24Z hejin $
* @package poll
*/
class PwPollDao extends PwBaseD... |
<div class="col-md-4">
<section class="booking-trip">
<form>
<div class="form-group">
<div class="title">Aparta tu lugar</div>
</div>
<div class="form-group">
<label for="exampleInputEmail1">Nombre:</label>
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby... |
@extends('layouts.app2')
@section('js')
<script src="{{ asset('js/defect/ds.js')}}" defer></script>
@endsection
@section('content')
<div class="container-fluid">
<div class="white_bkg">
<div class="row">
<div class="col-md">
<div class="card">
<div c... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
*
*/
use PHPHtmlParser\Dom;
class Crawler extends CI_Controller
{
public function add()
{
$post_data = $this->input->post();
$w_id = $post_data['w_id'];
$this->load->model('Wishlists');
$url_array = $this->parse_url($post_d... |
<?php
namespace wechat\driver\wepay;
use wechat\driver\Driver;
/**
* Class Refund
* @package wechat\driver\wepay
* @author Mr.taochuang <mr_taochuang@163.com>
* @date 2019/7/7 10:47
* 微信商户平台退款
*/
class Refund extends Driver{
/**
* @param $options /退款参数
* @return array|void
* 申请退款
*/
... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\MarksDetails */
?>
<div class="marks-details-update">
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div> |
<?php
namespace VentureLeapUtilBundle\Util;
final class ArrayUtil
{
public static function getMappedArray(array $array, $label = null): array
{
return array_map(
function ($elem) use ($label) {
return $label.$elem;
},
$array
);
}
pub... |
<?php
namespace App\Http\Controllers;
use App\Models\NewsModel;
use Illuminate\Http\Request;
class NewsController extends Controller
{
public function loadnews($page){
$news = new NewsModel();
if($page > $news->getPages() || $page < 1){
return view('wrongPage');
}
... |
<?php
class loginModel extends Model{
public function checkUser($username, $password){
$sql = "SELECT * FROM users ";
$sql .= "WHERE email = '".$this->db->escape($username)."' ";
$sql .= "AND password = MD5('".$this->db->escape($password)."')";
return $this->db->query($sql);
}
} |
<?php
namespace Zrcms\CoreTheme\Api\Render;
use Zrcms\Core\Api\Render\RenderContent;
use Zrcms\Core\Model\Content;
use Zrcms\CoreTheme\Model\Layout;
/**
* @author James Jervis - https://github.com/jerv13
*/
interface RenderLayout extends RenderContent
{
/**
* @param Layout|Content $layout
* @param ar... |
<?php
// core configuration
include_once "../../config/core.php";
// set page title
$page_title = "Payment ADD";
// include login checker
//include_once "login_checker.php";
// include classes
include_once '../../config/dbconfig.php';
include_once '../../objects/payment.php';
//Alert Massages
$alerttype = '';
$al... |
<?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\DoctrineORMAdminBundl... |
<style>
body {
font-family: 'bangla',Verdana, Arial, sans-serif;
font-size: 13px;
}
</style>
<link rel="stylesheet" href="{{ asset('public/css/invoice.css')}}">
<div class="row margin-top-60px"><br><br><br><br><br>
<table class="custom-table width-100" style="float: right">
<tr>
... |
<?php
/**
* Created by PhpStorm.
* User: or_os
* Date: 21.11.2017
* Time: 17:26
*/
namespace AppBundle\Controller\web;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;... |
<?php
include "is_loggedin.php";
isLoggedin();
if($_SESSION["usertype"] === "Estudante")
header("location: student.php");
elseif($_SESSION["usertype"] === "Professor")
header("location: professor.php");
elseif($_SESSION["usertype"] === "Administrador")
header("location: admin.php");
else
{
e... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddConfigColumnToUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users',... |
<?php
//Carga la clase de coneccion con sus metodos para consultas o transacciones
//require("models/connection.php"); // funciones mySQL
require("models/connection_sqli_manual.php"); // funciones mySQLi
class VentasModel extends Connection
{
function nl2brCH($string)
{
return preg... |
@extends('layouts.frontend.app')
@section('title', 'Reset')
@push('css')
<link href="{{ asset('assets/frontend/css/auth/styles.css') }}" rel="stylesheet">
<link href="{{ asset('assets/frontend/css/auth/responsive.css') }}" rel="stylesheet">
@endpush
@section('content')
<div class="container">
<div c... |
<?php
use Mustangostang\Spyc;
class IndentTest extends \PHPUnit\Framework\TestCase {
protected $Y;
protected function setUp() {
$this->Y = Spyc::YAMLLoad(__DIR__ . "/files/indent_1.yaml");
}
public function testIndent_1() {
$this->assertEquals (array ('child_1' => 2, 'child_2' => 0,... |
<?php
/**
* LearnDash Settings Section for Quiz Taxonomies Metabox.
*
* @since 2.6.0
* @package LearnDash\Settings\Sections
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ( class_exists( 'LearnDash_Settings_Section' ) ) && ( ! class_exists( 'LearnDash_Settings_Quizzes_Taxonomies' ) ) ) {
/**
* Class LearnDa... |
<?php
use Illuminate\Database\Seeder;
use App\Type;
class TypeSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
factory(Type::class, 50)->create();
}
} |
<?php declare (strict_types = 1);
namespace Limoncello\Flute\Validation\JsonApi\Rules;
/**
* Copyright 2015-2019 info@neomerx.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... |
<?php
/* @WebProfiler/Icon/translation.svg */
class __TwigTemplate_f2b74e79406f9846d0011a47edf06c5513f4410a514e7ca919392d13cc45f6a7 extends Twig_Template
{
private $source;
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceCont... |
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle ... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Nextbranch extends CI_Controller {
/**
* This is NextBranch page controller.
* Develope on 19th July'2016 by Hemanth Kumar
*/
public function index()
{
if(!isset($this->session->userdata['UserID']))
{
redirect('/', 'refresh');... |
<?php
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Container;
use Symfony\Component\DependencyInjection\Exception\InactiveScopeException;
use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use Symfony\Component\DependencyInjection\Ex... |
<?php include('header.php'); ?>
<div class="general-page">
<section class="slideshow-columns">
<img src="assets/images/banner-2.jpg" class="img-responsive" alt="">
</section>
<section class="post-columns">
<div class="container">
<div class="col-xs-12">
<div class="entry-header">
<h3 class="entry-ti... |
<?php
use PHPUnit\Framework\TestCase;
require_once ('Chart.php');
require_once 'Chart/Dataset.php';
require_once ('Charts/Pie_chart.php');
require_once ('Charts/Pie_chart/Datarow.php');
require_once ('Color.php');
require_once ('Charts/Bar_chart.php');
require_once ('Charts/Bar_chart/Datarow.php');
require_once 'Datase... |
<?php
namespace frontend\controllers;
use frontend\models\Evento;
use frontend\models\Pregunta;
use frontend\models\Respuesta;
use frontend\models\RespuestaFile;
use frontend\models\RespuestaSearch;
use Yii;
use yii\filters\AccessControl;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
/**
* RespuestaCon... |
<?php $this->load->view("page/headerlink"); ?>
<body class="">
<?php $this->load->view("page/headerpage"); ?>
<div class="content-scroll wrapper">
<?php $this->load->view("page/leftpage"); ?>
<div class="content-wrapper" id="content-wrapper">
<section class="content section">
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateHistoriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('histories', f... |
<?php
/*----------------------------------------------------------------------------*/
require_once BITTER_LANGUAGE_PATH . '/xml.php';
/*------------------------------------------------------------------------------
Main
------------------------------------------------------------------------------*/
Bitter::r... |
<?php
/**
* PHPCoord.
*
* @author Doug Wright
*/
declare(strict_types=1);
namespace PHPCoord\Geometry\Extents\BoundingBoxOnly;
/**
* Arctic/Arctic - 87°50'N to 82°50'N, 0°E to 60°E.
* @internal
*/
class Extent4049
{
public function __invoke(): array
{
return
[
[
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddLayoutToLocation extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('locations', fun... |
<svg {{ $attributes->merge(['class' => "h-{$size} w-{$size}"]) }} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z" stroke="#4A5568" stroke-width="2" stroke-linecap="roun... |
@extends('layouts.without_header')
@section('title')
Reset Password
@endsection
@section('content')
<div class="page_loader"></div>
<!-- Option Panel -->
<div class="option-panel option-panel-collased">
<div class="color-plate default-plate" data-color="default"></div>
<div class="color-plate blue-plate" da... |
<?php
namespace App\models;
use App\Models\User;
use App\Models\Kebutuhan;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Donasi extends Model
{
// use HasFactory;
// protected $guarded = ['id'];
// protected $with =['nama','alamat','No_Rekening','bank... |
<?php
/**
* @author Semenov Alexander <semenov@skeeks.com>
* @link http://skeeks.com/
* @copyright 2010 SkeekS (СкикС)
* @date 27.03.2015
*
* @var $component \skeeks\cms\base\Component
*/
/* @var $this yii\web\View */
?>
<?= $this->render('_header', [
'component' => $component
]); ?>
<div class="alert-def... |
<?php
/**
* PostFinanceCheckout OXID
*
* This OXID module enables to process payments with PostFinanceCheckout (https://www.postfinance.ch/checkout/).
*
* @package Whitelabelshortcut\PostFinanceCheckout
* @author customweb GmbH (http://www.customweb.com/)
* @license http://www.apache.org/licenses/LICENSE-2.0 Ap... |
<!-- page start-->
<div class="row">
<div class="col-md-12 ">
<!-- BEGIN SAMPLE FORM PORTLET-->
<div class="box light bordered">
<div class="box-header with-border">
<div class="page-header">
<h3> List of Companies
<div class=... |
<?php
/**
* Example that changes the storage of the pgt tickets
*
* PHP Version 5
*
* @file example_pgt_storage_db.php
* @category Authentication
* @package PhpCAS
* @author Joachim Fritschi <jfritschi@freenet.de>
* @author Adam Franco <afranco@middlebury.edu>
* @license http://www.apache.org/lice... |
<?php
/*
* Your installation or use of this SugarCRM file is subject to the applicable
* terms available at
* http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/.
* If you do not agree to all of the applicable terms or do not have the
* authority to bind the entity as an authorized representative... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Tcodes;
use StandardTCodes;
use Permission;
class MigrationController extends Controller {
//
/**
* Migrate Standard Tcodes from Tcode masters
*/
public function tcodeMigrate() {
$modulewithTcodes = Permission::with(... |
<?php
if($mode == 'edit'){
$id = $dataUnit->spl_id;
$spl_nama = $dataUnit->spl_nama;
$spl_alamat = $dataUnit->spl_alamat;
$spl_telp = $dataUnit->spl_telp;
$spl_rekening = $dataUnit->spl_rekening;
$spl_npwp = $dataUnit->spl_NPWP;
$spl_b... |
<html>
<head>
<style>
.table-style{
border-style: solid;
border-collapse: collapse;
width:100%;
text-align:center;
}
tr, td, th {
border: 1px solid black;
}
</style>
</head>
<body onload="window.print()">
<h3>Rekapitulasi tahun <?php echo @$month_year; ?></h3>
<h5>Divisi : <?php echo @$bagian... |
<?php
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... |
{{-- @extends('admin.main') --}}
@extends('partials.main')
@section('content')
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header with-border">
<h4 class="card-title">Role Create
<a href="{{route('role.index')}}" class="btn btn-sm btn-pri... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Bus extends Model
{
use HasFactory;
protected $table="buses";
protected $guarded = [
'id',
];
protected $fillable=[
'name',
'total_seat',
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Dashboard extends CI_Controller
{
function __construct()
{
parent::__construct();
date_default_timezone_set('Asia/Jakarta');
$this->load->model('m_data');
$this->load->helper('text');
// cek session yang login,
// jika sessio... |
<?php
namespace App\Http\Requests\API;
use App\Models\ComplainResponse;
use InfyOm\Generator\Request\APIRequest;
class UpdateComplainResponseAPIRequest extends APIRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
... |
<?php
use Illuminate\Database\Seeder;
class LotacaoSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
factory(App\Lotacao::class, 1)->create([
'nome' => 'CDD Rio Negro',
'sigla' => 'RNG',
'superi... |
<?php
declare(strict_types=1);
namespace MsgPhp\User\Command\Handler;
use MsgPhp\Domain\Command\EventSourcingCommandHandlerTrait;
use MsgPhp\Domain\Factory\EntityAwareFactoryInterface;
use MsgPhp\Domain\Message\{DomainMessageBusInterface, MessageDispatchingTrait};
use MsgPhp\User\Command\RequestUserPasswordCommand;
... |
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond ... |
<?php
namespace App\Model\user;
use Illuminate\Database\Eloquent\Model;
class ResearchPost extends Model
{
protected $fillable = [
'name', 'title', 'body', 'image', 'status',
];
public function user($value='') {
return $this->beLongsTo('App\Model\admin\admin');
}
} |
<?php
extract($_POST);
if(isset($save))
{
if($np=="" || $cp=="" || $password=="")
{
$err="<font color='green'><center>Please Fill all the fileds first!!</center></font>";
}
else
{
$password=md5($password);
$sql=mysqli_query($con,"select * from user where password='$password'");
$r=mysqli_num_rows($sql);
if($... |
<?php
namespace Sculptor\Stages\V2004;
/**
* (c) Alessandro Cappellozza <alessandro.cappellozza@gmail.com>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class Credentials extends \Sculptor\Stages\V1804\Credentials
{
//
} |
@extends('layouts.user')
@section('title') Home @endsection
@section('content')
<html lang="en">
>
<body>
<!--================ Start header Top Area =================-->
<!--================ End header top Area =================-->
<!-- Start header Menu Area -->
<!-- End header MEnu A... |
<?php
namespace Album\Document;
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
use Doctrine\ODM\MongoDB\DocumentRepository;
class ProductRepository extends DocumentRepository
{
// public function findAll()
// {
// return $this->findAll();
// }
} |
--TEST--
Docs Example 2
--FILE--
<?php
class MyServices
{
public function doStuff ()
{
echo "do my best stuff !";
}
}
//the advice is a simple function
function adviceToInterruptDoStuff ()
{
if (! isset($_SESSION['user'])) {
throw new Exception ("I will never do that with someone I don't know"... |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... |
@extends('layouts.index')
@section('register')
<div class="log-in">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card-box">
{{-- <div class="card-header">{{ __('Regi... |
<?php
/**
* PHP version 7
* Application: directus_keycloak_client
*
* @category OAuth_2_Client_Library_Usage_For_Keycloak_With_Directus
* @package Makuro\Directus\KeycloakClient\Provider
* @author Eric Delaporte <eric.delaporte@build-ideas.de>
* @license https://opensource.org/licenses/MIT MIT
* @link h... |
<?php
/*
* This file is part of the Alice package.
*
* (c) Nelmio <hello@nelm.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Nelmio\Alice\Generator\Resolver\Value\Chainable;
use PHPUnit\F... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Medecin extends Model
{
use HasFactory;
protected $fillable = [
'nom',
'prenom',
'nni',
'numTelephone',
'specialite'
];
} |
<?php
/* @WebProfiler/Icon/logger.svg */
class __TwigTemplate_d09f26feb2f605b5a452636001090781bce72a4ccfdc48061921c1f2bb60a6b8 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
// \App\Models\User::factory(10)->create();
$this->call(LaratrustSeeder::class);
... |
<div class="row">
<div class="col-sm-12 text-right">
<a href="{{ route('admin.blog.tags.index', ['id' => $idRoute]) }}" class="mb-xs mt-xs mr-xs btn btn-default"><i class="fa fa-tags"></i> Tags</a>
<a href="{{ route('admin.blog.galery.index', ['id' => $idRoute]) }}" class="mb-xs mt-xs mr-xs btn btn-... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
//session_start();
class C_manajer extends CI_Controller {
private $limit = 5;
public function __construct(){
parent::__construct();
$this->load->helper('text');
$this->load->library('pagination');
$this->load->library('sessi... |
<?php
namespace Smath\EmpresaBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class TipoEmpleadoControllerTest extends WebTestCase
{
/*
public function testCompleteScenario()
{
// Create a new client to browse the application
$client = static::createClient();
... |
<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use kartik\select2\Select2;
use app\models\UserRole;
use app\models\Unit;
use app\models\Unit1;
use app\models\Unit2;
use app\models\Satker;
/* @var $this yii\web\View */
/* @var $model app\models\User */
/* @var $form yii\widgets\ActiveForm */
?>
<?php $form... |
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'firstname', 'ap... |
<?php
namespace App\Calendar;
/**
* To create and output blank spaces
*/
class CalendarWeekBlankDay extends CalendarWeekDay {
function getClassName() {
return "day-blank";
}
function render() {
return '';
}
} |
<?php
use yii\helpers\Html;
use yii\helpers\Url;
$this->title = '添加管理员账号 ...';
?>
<div class="site-index">
<div class="body-content">
<?= \backend\widget\FormAlertWidget::widget(); ?>
<div class="row">
<div class="box-body">
<form role="form"
acti... |
<?php defined('SYSPATH') OR die('No direct access allowed.');
class Model_Test_User extends Model_Auth_User {
static public function initialize(Jam_Meta $meta)
{
$meta->db(Kohana::TESTING);
parent::initialize($meta);
$meta
->behaviors([
'username' => Jam::behavior('username'),
]);
$meta->associ... |
<?php
namespace App\Http\Livewire\Admins;
use App\Models\City;
use App\Models\Image;
use App\Models\Country;
use Livewire\Component;
use Livewire\WithPagination;
use Livewire\WithFileUploads;
class CountryCities extends Component
{
use WithPagination;
use WithFileUploads;
public $name;
public $longti... |
<?php
namespace TwigYard\Middleware\Httpauth;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use TwigYard\Component\AppState;
use TwigYard\Middleware\MiddlewareInterface;
use Zend\Diactoros\Response;
class HttpauthMiddleware implements MiddlewareInterface
{
/**
* @var A... |
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-3">
<nav class="navbar navbar-default sidebar" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
... |
<?php
namespace Container3052h6o;
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 getPropertyInfo_SerializerExtrac... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSubCategoriesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('sub_categ... |
<?php defined('BX_DOL') or die('hack attempt');
/**
* Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
* CC-BY License - http://creativecommons.org/licenses/by/3.0/
*
* @defgroup Timeline Timeline
* @ingroup TridentModules
*
* @{
*/
bx_import ('BxTemplUploaderSimple');
bx_import('BxDolModule');... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for y... |
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags-->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Title Page-->
<title>Login</title>
<!-- Fontfaces CSS-->
<link href="{{asset('admin_assets/css/font-face.cs... |
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license an... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePostTagTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('post_tag', func... |
<?php $__env->startSection('title', __('Page Expired')); ?>
<?php $__env->startSection('code', '419'); ?>
<?php $__env->startSection('message', __('Page Expired')); ?>
<?php echo $__env->make('errors::minimal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xam... |
<?php
namespace Laracon21\Colorcodeconverter;
class Colorcodeconverter
{
public static function convertHexToRgba($color, $opacity = false){
$default = 'rgb(230,46,4)';
//Return default if no color provided
if(empty($color))
return $default;
//Sanitize $color if "#" i... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class ListVegetables extends Model
{
//
} |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Color extends Model
{
protected $fillable = [
'nombre','dsc'
];
public function inventarios()
{
return $this->hasMany(Inventario::class);
}
} |
<?php
use App\Region;
use Illuminate\Database\Seeder;
class RegionsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$data = json_decode(file_get_contents(app_path() . '/Support/regions.json'));
foreach ($data->data->... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\Equipa */
$this->title = 'Create Equipa';
$this->params['breadcrumbs'][] = ['label' => 'Equipas', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="equipa-create">
<h1><?= Html::encode($this->ti... |
<?php
// Meta-information for Texas 42 implementation on BoardGameArena.
//
// After modifying this file, click on "Reload game informations" from the BGA
// Control Panel in order for changes to take effect.
// Docs: http://en.doc.boardgamearena.com/Game_meta-information:_gameinfos.inc.php
$gameinfos = [
// Name of... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class EventLog extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create(
'eventsLog', ... |
<?php defined('SYSPATH') or die('No direct script access.');
class Controller_Ajax_Admin extends Controller
{
protected $_table_name = array();
public function before()
{
parent::before();
// мыло админа сайта
$email = Session::instance()->get('email'); if(empty($email)) throw ne... |
<?php
if(isset($_SESSION)){
}
else{
session_start();
}
include("db.php");
if(!isset($_SESSION['user_name'])){
}
else{
if($_SERVER['REQUEST_METHOD'] == 'POST'){
$user_id=$_SESSION['user_id'];
$task_name=$_POST['task_name'];
$task_desc=$_POST['task_desc'];
$task_progress_id='1';
$task_... |
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
Schema::defaultStringLength(191);
}... |
<div class="card p-8 bg-base-200 container mx-auto my-8">
<x-form.input sks="3" field="user.hkn" label="Hukum Keuangan Negara"></x-form>
<x-form.input sks="3" field="user.akbi" label="Akuntansi Biaya"></x-form>
<x-form.input sks="3" field="user.mankeu" label="Manajemen Keuangan"></x-form>
<x-form.input... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.