text stringlengths 2 1.03M |
|---|
<?php
session_start();
if(!isset($_SESSION['codigo_usuario']))
header("Location:http://localhost/app/PhpEventos/login/acceso.html");
$catego= $_SESSION["categoria_usuario"];
?>
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name=... |
<?php
namespace App\Form;
use App\Entity\User;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use ... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Project_cost extends Model
{
use HasFactory;
protected $guarded=['id'];
public function project()
{
return $this->belongsTo('App\Models\project');
}
} |
<?php
/**
* Copyright (c) 2018 Wakers.cz
*
* @author Jiří Zapletal (http://www.wakers.cz, zapletal@wakers.cz)
*
*/
namespace Wakers\UserModule\Component\Frontend\SummaryModal;
interface ISummaryModal
{
/**
* @return SummaryModal
*/
public function create() : SummaryModal;
} |
<?php
use App\Http\Controllers\CategoryController;
use App\Http\Controllers\PageController;
use App\Http\Controllers\PostController;
use App\Http\Controllers\TagController;
use App\Mail\Welcome;
use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------... |
<?php
namespace app\services;
use app\models\Colleagues;
class ColleaguesServices
{
/**
* Get information about our colleagues
*
* @return mixed
*/
public static function getColleagues ()
{
return Colleagues::findColleagues();
}
public static function getColleague ($c... |
<!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>Si Pinter - Sistem Informasi Pernikahan Terpadu</title>
<link rel="icon" type="image/png" siz... |
<?php
use yii\helpers\Html;
use yii\helpers\ArrayHelper;
use common\models\core\Store;
use common\components\CurrentStore;
use backend\components\CurrentUser;
?>
<div class="panel page-sub-heading white-bg">
<div class="panel-body">
<div class="col-xs-8">
<h3><?= Html::encode($this->title) ?>... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" rel="stylesheet">
<link
href="https://fonts.googleapis.com/css?family=Montserrat:200i,300,300i,400,400... |
<div class="sidebar-sticky pt-3" >
<ul class="nav flex-column" id="nav">
@hasanyrole('Doctor|super-admin|Administrador|Admisionista')
<select name="role" id="role" style="margin: 10px;">
@foreach (Auth::user()->getRoleNames() as $item)
<option >{{$item}}</option>
@endfor... |
<?php
namespace App\Exports;
use Maatwebsite\Excel\Concerns\FromCollection;
class DetailPembayaranExport implements FromCollection
{
/**
* @return \Illuminate\Support\Collection
*/
public function collection()
{
return DetailPembayaran::all();
}
} |
<?php
namespace _PhpScoper5ece82d7231e4;
/*
* Using OAuth access token to list profiles of an account.
*/
try {
/*
* Initialize the Mollie API library with your OAuth access token.
*/
require "../initialize_with_oauth.php";
/*
* Get the all the profiles for this account.
*/
$prof... |
<!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, minimum-scale=1, maximum-scale=1">
<meta name="theme-color" content="#18bc9c">
<meta name="description" content="">
<meta name="a... |
<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "attribute".
*
* @property integer $id
* @property string $name
*/
class Attribute extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'attribute';
}
... |
<?php
namespace App\Models;
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 = [
'name', '... |
<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="home.css">
<script src="https://kit.fontawesome.com/a076d05399.js" crossorigin="anonymous"></script>
<title>HomePage</title>
<style>
* {
... |
<?php
namespace SilverStripe\Forms\GridField;
use SilverStripe\Core\Config\Configurable;
use SilverStripe\Core\Extensible;
use SilverStripe\Core\Injector\Injectable;
use SilverStripe\ORM\ArrayList;
/**
* Encapsulates a collection of components following the
* {@link GridFieldComponent} interface. While the {@link ... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateRequestReviewsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('request_... |
<?php
namespace LaravelEnso\DataImport\app\Classes\Reporting;
use LaravelEnso\Helpers\app\Classes\Obj;
class Issue extends Obj
{
public $value;
public $rowNumber;
public $column;
public function __construct(array $properties)
{
foreach ($properties as $property => $value) {
i... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>UB Barley Procurement</title>
... |
<div class="form-group">
<label for="name">Name</label>
{!! Form::text('name' , $model->name, [
'class' => 'form-control'
]) !!}
<label for="governorate_id">Governorate Name</label>
{!! Form::select('governorate_id', $governorate->pluck('name', 'id')->toArray() ,null, [
... |
<?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 return unserialize('a:1:{i:0;O:30:"Doctrine\\ORM\\Mapping\\OneToMany":6:{s:8:"mappedBy";s:7:"service";s:12:"targetEntity";s:44:"Produit\\ServiceBundle\\Entity\\Commentaireblog";s:7:"cascade";N;s:5:"fetch";s:4:"LAZY";s:13:"orphanRemoval";b:0;s:7:"indexBy";N;}}'); |
<?php
/**
*@since 1.3.1
*@updated 1.3.1
**/
$hiddenFields = '';
foreach ($res->getRedirectData() as $key => $value) {
$hiddenFields .= sprintf(
'<input type="hidden" name="%1$s" value="%2$s" />',
htmlentities($key, ENT_QUOTES, 'UTF-8', false),
htmlentities($value, ENT_QUOTES, 'UTF-8', fal... |
@extends('../layout/' . $layout)
@section('subhead')
<title>Help - Icewall - Tailwind HTML Admin Template</title>
@endsection
@section('subtitle')
<h2 class="text-lg font-medium truncate mr-5">
Courses
</h2>
@endsection
@section('substyle')
<style>
.page-link {
margin-right: 0px !important;
}
</sty... |
<?php
use Illuminate\Support\Facades\DB;
use \Carbon\Carbon;
function waktu($tgl)
{
$tglj = new Carbon($tgl);
return $tglj->diffForHumans();
// $chunks = array(
// array(60 * 60 * 24 * 365, 'tahun'),
// array(60 * 60 * 24 * 30, 'bulan'),
// array(60 * 60 * 24 * 7, 'minggu'),
// array(60 * 60... |
<?php
/**
* User: Xany <762632258@qq.com>
* Date: 2017/12/5
* Time: 15:24
*/
namespace app\modules\mch\controllers\agent;
use app\models\YySetting;
use app\modules\mch\models\agent\Setting;
class NoticeController extends Controller
{
public function actionSetting()
{
$setting = Setting::findOne(... |
<?php
namespace Respect\Config;
use InvalidArgumentException as Argument;
use ArrayObject;
use ReflectionClass;
use ReflectionFunction;
use Interop\Container\ContainerInterface;
class Container extends ArrayObject implements ContainerInterface
{
protected $configurator;
public function __construct($configur... |
<?php
/*
* This file is part of the PHPExifTool package.
*
* (c) Alchemy <support@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPExiftool\Driver\Tag\MXF;
use JMS\Serializer\Annotation\ExclusionPolicy;
u... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class PageGallery extends Model
{
protected $table = 'page_gallery';
protected $fillable = ['page_id','category_id','image'];
} |
<?php
namespace Owl;
use Owl\Context\Session as SessionContext;
use Owl\Context\Cookie as CookieContext;
use Owl\Context\Redis as RedisContext;
use Owl\Parameter\Validator;
use UnexpectedValueException;
abstract class Context
{
protected $config;
abstract public function set($key, $val);
abstract publi... |
<?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\MediaBundle\Tests\Com... |
<?php
/**********
Versión: 001
Fecha: 06-03-2018
Desarrollador: Edwin Molina Grisales
Descripción: CRUD de sedes-jornadas
---------------------------------------
Modificaciones:
Fecha: 07-06-2018
Persona encargada: Edwin MG
Cambios realizados: Se quita los select de institucion y sede se deja los datos por defecto que... |
<?php
namespace Djavue\Auth\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class Permission extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
... |
<?php
return [
'home' => 'Home',
'account' => [
'header' => 'ACCOUNT MANAGEMENT',
'my_account' => 'My Account',
'security_controls' => 'Security Controls',
'api_access' => 'Account API',
'my_servers' => 'My Servers',
],
'server' => [
'header' => 'SERVER M... |
<?php
// This file was auto-generated from sdk-root/src/data/codecommit/2015-04-13/docs-2.json |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Trailer extends Model
{
protected $fillable = [
'film_id',
'link',
];
/**
* ==================== Relationships ===================================
*/
public function films()
{
return $thi... |
<?php
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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/LICENS... |
<?php
return [
/*
|--------------------------------------------------------------------------
| API Vendor
|--------------------------------------------------------------------------
|
| Your vendor is used in the "Accept" request header and will be used by
| the consumers of your API. Typ... |
<?php
/**
* @var bool $addCurrentLang
* @var string $currentLang
* @var string $image_type
* @var array $languages
* @var bool $link_home
* @var string $width
*/
use yii\helpers\ArrayHelper;
use yii\helpers\Url;
?>
<div class="multilanguage" style="margin-left: 15px">
<?php
list($route, $params) = Yii::$... |
<?php
namespace ScrumBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\JoinColumn;
/**
* Epics
*
* @ORM\Table(name="epics")
* @ORM\Entity(repositoryClass="ScrumBundle\Repository\EpicsRepository")
*/
class Epics
{
/**
* @ORM\ManyToOne(targetEntity="ScrumBundle\Entity\Project", i... |
<?php
/* This file must be present */
define('DB_HOST', 'localhost');
define('DB_USER', '');
define('DB_PASS', ''); |
<?php
/**
* Cleaner Gallery - A valid image gallery script for WordPress.
*
* Cleaner Gallery was created to clean up the invalid HTML and remove the inline styles of the default
* implementation of the WordPress [gallery] shortcode. This has the obvious benefits of creating
* sites with clean, valid code. But... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateOrderDetailsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('order_deta... |
@extends('layouts.app')
@section('content')
<div class="w-full min-h-3/4screen bg-yellow-light py-10 px-10 flex flex-col md:flex-row justify-center">
<!-- order info -->
<div class="md:w-1/2 text-center py-5 md:pt-10">
<h1 class="mb-5 text-xl md:text-3xl text-brown-dark">We received your order... |
<?php
namespace App\Models\Post;
use App\Models\Client\Client;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Like extends Model
{
use HasFactory;
protected $fillable = [
'parent_id',
'type',
'user_id',
];
... |
<!-- Aplikasi CRUD dengan PDO dan Bootstrap Modal
**************************************************
* Developer : Indra Styawantoro
* Company : Indra Studio
* Release Date : 13 Mei 2017
* Website : www.indrasatya.com
* E-mail : indra.setyawantoro@gmail.com
* Phone / WA : +62-856-6991-9769
-->
<?p... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class FeedbackRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get t... |
@extends('main')
@section('content')
<div class="content-wrapper">
<section class="content">
@foreach(Session::get('user') as $user)
@endforeach
<div class="box">
<div class="box-header text-center">
<span> Add CLC Declaration </span>
</div>
<form ... |
<?php
namespace app\models;
use yii\db\ActiveRecord;
class Post extends ActiveRecord
{
public $titulo1;
public $descripcion1;
public $categoria1;
/**
* {@inheritdoc}
*/
public function rules()
{
return [[[ 'titulo','descripcion','categoria'],'required']];
}
... |
<?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\Form\Tests;
use Symfony\Component\EventDispatcher\Eve... |
<?php
namespace app\modules\main\controllers;
use Yii;
use yii\web\Controller;
use app\modules\main\models\Page;
class PageController extends Controller
{
public function behaviors()
{
return [
[
'class' => 'yii\filters\PageCache',
'only' => ['show'],
... |
<?php
namespace common\components\bookmaker\parimatch\factories\results;
use phpQuery;
/**
* Created by PhpStorm.
*/
class Tennis extends Base
{
public function getData()
{
$Result = new \common\sport\result\Tennis();
$findBody = $this->getListData();
if ($findBody->count()) {
... |
<?php
$url1 = parse_url(Arr::get($_SERVER, 'HTTP_REFERER', '/'));
?>
<section id="main">
<!-- crumbs -->
<div class="container">
<div class="crumbs">
<div>
<a href="<?php echo LANGPATH; ?>/">Accueil</a> > BLOGGER WANTED
</div>
<div class="back visible-xs... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AlterTblLoginLogs extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::table('tbl_lo... |
<!DOCTYPE html>
<html lang="en" class="link-html">
<head>
<title></title>
<base href="https://demo.epesantren.co.id/apk/">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
... |
<?php
namespace Aedart\Filters;
use Aedart\Contracts\Filters\Processor;
use Aedart\Support\Helpers\Validation\ValidatorFactoryTrait;
use Illuminate\Http\Request;
use RuntimeException;
/**
* Base Http Query Parameters Processor
*
* Base abstraction for processors.
*
* @see \Aedart\Contracts\Filters\Processor
*
... |
<?php
namespace App\Http\Middleware;
use Closure;
class Cors
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
return $next($request)
... |
<!-- wrapper -->
<!-- ============================================================== -->
<div class="dashboard-wrapper">
<div class="container-fluid dashboard-content">
<!-- ============================================================== -->
<!-- pageheader -->
<!-- ===================... |
<?php
declare(strict_types=1);
namespace WyriHaximus\Tests\Broadcast;
final class DummyEventListener
{
public function __invoke(object $event): void
{
// void
}
} |
<?php
if(isset($_COOKIE['SPID'])){
include 'connect.php';
$stmt =$con->prepare("SELECT users.* FROM users INNER JOIN cookies_token ON users.id = cookies_token.userid WHERE cookies_token.token = :cookies_token");
$stmt->execute(array(
":cookies_token"=>sha1($_COOKIE['SPID'])
));
$rowlogin... |
<?php
/**
* This file is part of the planb project.
*
* (c) jmpantoja <jmpantoja@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Britannia\Infraestructure\Symfony\Form\Type\Course;
... |
<?php
use Exception;
/**
* Cant read or write to a file, zat simple
*
* @author Adrian Pennington <adrian@penningtonfamily.net>
*/
class FilePermissionException extends Exception {
//
} |
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */
// +----------------------------------------------------------------------+
// | PHP Version 4 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP ... |
<?php
namespace App\Orchid\Resources;
use App\Models\Company;
use App\Orchid\Actions\DeleteAction;
use App\Support\MyField;
use App\Support\MyTD;
use App\Support\Traits\ResourceOnSave;
use Illuminate\Database\Eloquent\Model;
use Orchid\Crud\Filters\DefaultSorted;
use Orchid\Crud\Resource;
use Orchid\Crud\ResourceRequ... |
<?php if ( ! defined( 'ABSPATH' ) ) exit;
/**
* Class NF_Fields_CreditCardNumber
*/
class NF_Fields_CreditCardNumber extends NF_Abstracts_Input
{
protected $_name = 'creditcardnumber';
protected $_type = 'creditcardnumber';
protected $_section = '';
protected $_icon = 'credit-card';
protected ... |
@extends('layouts.app')
@section('content')
@php
$qn_token = qnToken('qn_event_source');
@endphp
<div class="layui-fluid">
<form class="layui-form layui-tab-content">
{{ csrf_field() }}
<div class="layui-form-item">
<div class="layui-inline">
... |
@section('title')
<title>{{ucfirst($settings['site_name'])}} — Manage Withdraw</title>
<meta name="description" content="Manage Withdraw">
<meta itemprop="keywords" name="keywords" content="{{ucfirst($settings['site_name'])}} - Manage Withdraw"/>
<meta name="author" content="{{ucfirst($settings['site_name'])}}" ... |
<?php
use yii\db\Migration;
/**
* Class m180405_090245_add_user_roles
*/
class m180405_090245_add_user_roles extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->batchInsert('{{%auth_items}}', ['type', 'name', 'description'], [
[1, 'user', 'Authorize... |
@extends("base")
@section("style")
<style type="text/css">
.alert_page_success {
color: #468847;
background-color: #dff0d8;
border-color: #d6e9c6
}
.alert_page_error {
color: #b94a48;
background-color: #f2dede;
border-... |
@extends('layouts.app')
@section('title', 'Listado Categorias')
@section('body-class', 'profile-page sidebar-collapse')
@section('content')
<div class="page-header header-filter" data-parallax="true" style="background-image: url('{{ asset('img/profile_city.jpg') }}')">
</div>
<div class="main main-raised">
<div cl... |
<?php
declare(strict_types=1);
namespace bizley\migration\renderers;
use bizley\migration\table\BlueprintInterface;
use bizley\migration\table\ColumnInterface;
use bizley\migration\table\ForeignKeyInterface;
use bizley\migration\table\IndexInterface;
use function array_filter;
use function implode;
final class Blu... |
<?php
namespace App\Model\Backend\Admin\Expense;
use Illuminate\Database\Eloquent\Model;
use App\ExpenseType;
class Expense_detail extends Model
{
protected $guarded=['id'];
public function type()
{
return $this->belongsTo(ExpenseType::class,'type_id','id');
}
} |
<div class="media">
<div class="circ-wrapper pull-left"><h3>25<br>June</h3></div>
<div class="media-body">
<h4 class="media-heading">
<a href="javascript:void(0)">{{ $curso }}</a>
<span class="label label-warning">Nuevo</span>
</h4>
<p>Descripción detallada: pró... |
<?php
namespace App\Actions\Fortify;
use App\Models\User;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Laravel\Fortify\Contracts\CreatesNewUsers;
use Laravel\Fortify\Rules\Password;
// class CreateNewUser implements CreatesNewUsers
// {
// /**
// * Validate and create a... |
<?php
/**
* Defines allowed CSS attributes and what their values are.
* @see HTMLPurifier_HTMLDefinition
*/
class HTMLPurifier_CSSDefinition extends HTMLPurifier_Definition
{
public $type = 'CSS';
/**
* Assoc array of attribute name to definition object.
* @type HTMLPurifier_AttrDef[]
*/
... |
<?php
namespace Czim\Paperclip\Config\Steps;
use Illuminate\Contracts\Support\Arrayable;
class VariantStep implements Arrayable
{
/**
* @var string
*/
protected $name;
/**
* @var string
*/
protected $defaultName = 'variant';
public function __construct($name = null)
{
... |
<?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
// Adding Text Area Control For Use In Customizer
class Spacious_Text_Area_Control extends WP_Customize_Control {
public $type = 'text_area';
public function render_content() {
?>
<label>
<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
<textarea rows="5"
... |
@extends('layouts.app')
@section('content')
<div class="col-md-12">
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</... |
<?php
namespace MPScholten\GitHubApi\Tests\Api\Repository;
use MPScholten\GitHubApi\Api\Issue\Issue;
use MPScholten\GitHubApi\Api\Issue\Label;
use MPScholten\GitHubApi\Api\Repository\Branch;
use MPScholten\GitHubApi\Api\Repository\Key;
use MPScholten\GitHubApi\Api\Repository\Release;
use MPScholten\GitHubApi\Api\Re... |
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/Users/mblode/Sites/medium/user/plugins/admin/languages/hr.yaml',
'modified' => 1500419902,
'data' => [
'PLUGIN_ADMIN' => [
'ADMIN_BETA_MSG' => 'Ovo je Beta izdanje! Koristite u produkciji na vlastiti r... |
<?php
namespace App\Http\Controllers;
use App\Socialmedia;
use Illuminate\Http\Request;
class SocialmediaController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
* Show th... |
<?php
include("loginCheck.php");
$languageID = $_POST["language"];
switch($languageID)
{
case "c":
{
include("compilers/c.php");
break;
}
case "cpp":
{
include("compilers/cpp.php");
break;
}
case "cpp11":
{
include("compilers/cpp11.php");
break;
}
case "jav... |
<?php
declare(strict_types = 1);
use PHPUnit\Framework\TestCase;
use Sop\JWX\JWK\RSA\RSAPrivateKeyJWK;
use Sop\JWX\JWS\Algorithm\RSASSAPKCS1Algorithm;
use Sop\JWX\JWS\JWS;
use Sop\JWX\JWT\Header\Header;
use Sop\JWX\Util\Base64;
/**
* @internal
*/
class CookbookRSAv15SignatureTest extends TestCase
{
private sta... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddProfileImageToUsers extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', func... |
<?php
/**
* Created by PhpStorm.
* User: maglo
* Date: 02/11/2016
* Time: 21:56
*/
namespace JSAppBundle\Manager;
use JSAppBundle\Dao\CoAuteurRepository;
use JSAppBundle\Entity\CoAuteur;
use Symfony\Component\DependencyInjection\ContainerInterface as Container;
class CoAuteurManager extends CoreManager
{
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
require(APPPATH . 'libraries/REST_Controller.php');
class Api extends REST_Controller {
public function __construct() {
parent::__construct();
$this->load->model('Product_model');
$this->load->model('User_model');
... |
<div>
<p>
<h1>Cart</h1>
<h1>{{ $count }}</h1>
</p>
</div> |
<?php
namespace Czechphp\CzechBankAccount\Tests\Utils;
use Czechphp\CzechBankAccount\Utils\BankAccountNumberFormatConverter;
use InvalidArgumentException;
use PHPUnit\Framework\TestCase;
class BankAccountNumberFormatConverterTest extends TestCase
{
/**
* @dataProvider convertVariableToConstantProvider
... |
<?php
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
include"../includes/conecta.php";
$projeto = 4;
session_start();
if(!isset($_SESSION['user']) || !isset($_SESSION['login']) || !isset($_SESSION['senha']) || !isset($_SESSION['nome']) || !isset($_SESSION['nivel'])) {
echo "Esta área é restrita. Clique ";
... |
<?php
namespace App\Http\Controllers\admin;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use DB;
use App\Comment;
class CommentsController extends Controller
{
//评论列表
public function index(Request $request)
{
//获得评论
$comments=DB::table('comments')->paginate(10);
return ... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class EmergenciaController extends Controller
{
public function index()
{
$patient = auth()->user();
return view('emergencias.index', compact('patient'));
}
public function update(Request $request)
{
$noti... |
@extends('layouts.dashboard')
@section('content')
<div class="wrapper wrapper-content animated fadeInRight">
<div class="row">
<div class="col-md-12">
<div class="ibox">
<div class="ibox-title">
<div class="ibox-tools">
<span class="dr... |
<?php
namespace Etsh\Groupable;
use Illuminate\Support\ServiceProvider;
class GroupableServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
$this->loadMigrationsFrom(__DIR__.'/migrations');
}
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class StoreModel extends CI_Model
{
public function getStore($store_id = null)
{
$this->db->select('*');
if(!empty($store_id)){
$this->db->where('store_id',$store_id);
}
$this->db->from('bs_store');
$que... |
<?php
include("includes/header.php");
//session_destroy();
//This destroys the $_SESSION variables after successfull login, and thus when the page is refreshed or webpage closed then user is automatically logged out.
?>
This is a clone
</body>
</html> |
@extends('layout')
@section('content')
<div class="row">
<div class="col-md-10 col-md-offset-2">
<h2>ブログ記事一覧</h2>
@if (session('err_msg'))
<p class="text-danger">
{{ session('err_msg') }}
</p>
@endif
<table class="table table-striped">
... |
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Bookable;
use App\Http\Resources\BookableIndexResource;
use App\Http\Resources\BookableShowResource;
class BookableController extends Controller
{
/**
* Display a listing of the resource.
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Akhir extends Model
{
protected $table = 'akhir';
public $timestamps = false;
public function user()
{
return $this->belongsTo('App\Models\User', 'id_user');
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.