text stringlengths 2 1.03M |
|---|
@extends('layout.admin')
@section('main')
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0">Quản lý blog</h1>
</div><!-- /.col -->
<div class="col-sm-6">
<ol class="bre... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Http;
class HomeController extends Controller
{
/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware('auth');
}
... |
<?php
namespace App\Repositories;
use App\Models\ResourceCategory;
class ResourceCategories
{
public static function getAllByName()
{
return ResourceCategory::orderBy('name')
->get();
}
public static function getAllWithLimit($limit, $offset = 0)
{
return ResourceCate... |
<?php
namespace App\Http\Controllers\Site;
use App\Models\Site\PickupRequest;
use App\Http\Controllers\Controller;
use App\uniqueRandom;
use Carbon\Carbon;
class PickupRequestController extends Controller
{
//
public function createPickupRequest(){
$time = Carbon::now()->format('H:i A');
if... |
<?php
/**
* @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
* @copyright Aimeos (aimeos.org), 2019-2021
* @package Client
* @subpackage JsonApi
*/
$enc = $this->encoder();
$target = $this->config( 'client/jsonapi/url/target' );
$cntl = $this->config( 'client/jsonapi/url/controller', 'jsonapi' );
$acti... |
<?php
require __DIR__ . '/views/template/header.php';
include __DIR__ . '/views/home.php';
require __DIR__ . '/views/template/footer.php'; |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\modules\education\models\PccServiceEducation */
$this->title = 'Update Pcc Service Education: ' . $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Pcc Service Educations', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['lab... |
<?php
namespace Codeception\Command;
use Codeception\Configuration;
use Codeception\Lib\Generator\PageObject as PageObjectGenerator;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output... |
<?php
require("../../php/database.php");
$id = $_POST['id'];
$name = $_POST['name'];
$email = $_POST['email'];
$sql_query = "UPDATE users SET name = '$name' WHERE id = '$id'";
$response = $db->query($sql_query);
if ($response)
{
$sql_query = "UPDATE users SET email = '$email' WHERE id = '$id'";
if($db->... |
<?php
namespace App\Http\Livewire\Admin;
use Livewire\Component;
use App\Models\Order;
use App\Models\OrderDetails;
use Illuminate\Support\Facades\DB;
class AdminOrderComponent extends Component
{
public $searchTerm;
public function updateOrderStatus($order_id,$status)
{
$order = Order::find($ord... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateRepairPartsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('repair_part... |
<?php
namespace Vpc\Request\V20160428;
/**
* Request of AddGlobalAccelerationInstanceIp
*
* @method string getResourceOwnerId()
* @method string getResourceOwnerAccount()
* @method string getOwnerAccount()
* @method string getIpInstanceId()
* @method string getOwnerId()
* @method string getGlobalAccelerationI... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Coordinator extends Model
{
use HasFactory;
public function institution()
{
return $this->belongsTo(Institution::class);
}
} |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
@include('admin.sidebar')
<div class="col-md-9">
<div class="card">
<div class="card-header">EnderecoUser {{ $enderecouser->id }}</div>
<div... |
<?php
namespace App\Http\Controllers;
use App\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use DB;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\Mail;
use App\Mail\SendMail;
use App\model\Blog;
use App\model\Category;
use App\model\SubCategory;
use App\model\Question;
use Ap... |
<?php
use App\Http\Controllers\Admin\ItemController;
use Illuminate\Foundation\Application;
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------... |
<?php
/**
* Register widget area.
*
* @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar
*/
function onlinemag_widgets_init() {
register_sidebar( array(
'name' => esc_html__( 'Sidebar', 'onlinemag' ),
'id' => 'sidebar-1',
'descr... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSystemAccounts extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//Страна Логин Пароль IP HT... |
<?php
namespace App\Http\Controllers\Auth;
use App\User;
use App\Http\Controllers\Controller;
use App\Role;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Illuminate\Foundation\Auth\RegistersUsers;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Support\Facades\Mail;
use A... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\Country;
class CountrySeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Country::factory()->count(50)->create()->each(function($country) {
... |
<?php
namespace App\Entities\Concrete;
use App\Core\Entities\Abstracts\IEntity;
use App\Core\Utilities\Entities\FromArray;
use App\Core\Utilities\Entities\GetPropertiesKeys;
class Product implements IEntity
{
public int $ProductID;
public string $ProductName;
public ?int $SupplierID;
public ?int $Cat... |
<!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">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="styleshee... |
/<!--sub-heard-part-->
<!--//sub-heard-part-->
<div class="graph-visual tables-main">
<a href="<?php echo base_url();?>mantenedores/add_formasdepago" type="button" class="btn btn-primary"><i class="fa fa-plus" aria-hidden="true"></i>Nueva Forma de Pago</a>
... |
<?php
use App\Information;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class InformationSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
\App\Information::create([
'phrase_id' => 'dev',
... |
<?php
namespace common\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use common\models\GalleriesItemsPhoto;
/**
* GalleriesItemsPhotoSearch represents the model behind the search form about `app\models\GalleriesItemsPhoto`.
*/
class GalleriesItemsPhotoSearch extends GalleriesItemsPhoto
{
... |
<?php if (empty($booklist)) : ?>
<?php require 'empty_boolist.php'; ?>
<?php else: ?>
<form class="w3-container" method="post">
<select class="w3-select w3-border w3-pale-green w3-margin-bottom"
name="id"
onchange="select_book('<?= $this->toolbox->create_url('update_boo... |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
require_once(APPPATH . '/third_party/PHPExcel.php');
class Excel extends PHPExcel
{
public function __construct()
{
parent::__construct();
}
} |
<?php
namespace SCart\Core\Commands;
use Illuminate\Console\Command;
use Symfony\Component\Process\Process;
use Throwable;
class Infomation extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'sc:info';
/**
* The conso... |
<?php
use yii\helpers\Html;
/**
* @Author: e 22.02.2016
*/
echo Html::beginForm(['/customers'], 'get');
echo Html::label('Phone Number to search:', 'phone_number');
echo Html::textInput('phone_number');
echo Html::submitButton('Search');
echo Html::endForm(); |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\Registration */
// $this->title = 'Create Registration';
// $this->params['breadcrumbs'][] = ['label' => 'Registrations', 'url' => ['index']];
// $this->params['breadcrumbs'][] = $this->title;
?>
<div class="registration-create">
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateMBloodtypesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('m_bloodtype... |
<?php
namespace App\Http\Controllers;
use App\Confiq;
use Illuminate\Support\Facades\DB;
use Illuminate\Http\Request;
use Validator;
use Auth;
use App\Product;
use App\Purchase;
use App\Customer;
use App\Order;
use App\OrderDetails;
use PDF;
class InvoiceController extends Controller {
public function __constru... |
<?php
/**
* This example loads a page from Slashdot and displays articles in a custom
* format.
*/
include_once '../../HtmlWeb.php';
use simplehtmldom\HtmlWeb;
// Load the page into memory
$doc = new HtmlWeb();
$html = $doc->load('https://slashdot.org/');
// Find and extract all articles
foreach($html->find('#fire... |
<?php
// only claim ownership if this page has no owner, and if user is logged in.
if ($this->page && !$this->GetPageOwner() && $this->GetUser())
{
$this->SetPageOwner($this->GetPageTag(), $this->GetUserName());
$this->SetMessage(/*"You are now the owner of this page."*/_MI_YOUAREOWNER);
}
$this->Redirect... |
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunito:... |
<!DOCTYPE html>
<html lang="en">
<?php
/* include_once("../../config.php");
if (isset($_POST['UserName'])) {
//echo "select * from _tbl_franchisees_staffs where LoginName='".trim($_POST['UserName'])."' or EmailID='".trim($_POST['UserName'])."'";
$res = $mysql->select("selec... |
<?php
namespace app\modules\knowledge_base\models;
use Yii;
use yii\helpers\ArrayHelper;
use yii\behaviors\TimestampBehavior;
/**
* This is the model class for table "{{%data_type}}".
*
* @property integer $id
* @property integer $created_at
* @property integer $updated_at
* @property string $name
* @property... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v3/errors/collection_size_error.proto
namespace Google\Ads\GoogleAds\V3\Errors;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Container for ... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class CreateUserRequest extends FormRequest
{
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'name' => 'string|required... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateStudentTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('student', funct... |
<?php defined('BASEPATH') or exit('No direct script access allowed');
/**
* CodeIgniter-HMVC-AdminLTE
*
* @package CodeIgniter-HMVC-AdminLTE
* @author N3Cr0N (N3Cr0N@list.ru)
* @copyright 2019 N3Cr0N
* @license https://opensource.org/licenses/MIT MIT License
* @link <URI> (description)
* @ver... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use App\Models\Post;
use App\Models\Subscriber;
use App\Models\Wesite;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
... |
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="zxx">
<head>
... |
@extends('layout.index')
@section('title','Form Tambah Siswa')
@section('judul','Form Tambah Siswa')
@section('user')
{{Auth::user()->name}}
@endsection
@section('content')
<div class="container-fluid">
<form action="/siswas/store" method="POST" enctype="multipart/form-data">
@csrf
... |
@extends('master_admin')
@section('container')
<div class="panel panel-default ">
<div class="panel-heading">
<strong>Seluruh Data Rekam Medis</strong>
<a href="{{url('rekammedis/tambah')}}" class="btn btn-xs btn-primary pull-right"><i class="fa fa-plus"> Rekam Medis</i></a>
<div class="clearfix"></div>
</div>
... |
<?php
use App\Http\Controllers\Web\Actions\User\Destroy as UserDestroy;
use App\Http\Controllers\Web\Actions\User\Store as UserStore;
use App\Http\Controllers\Web\Actions\User\Update as UserUpdate;
use App\Http\Controllers\Web\Pages\User\Create as UserCreate;
use App\Http\Controllers\Web\Pages\User\Edit as UserEdit;
u... |
<?php
/**
* Sina Weibo OAuth Class
*
* @package sae
* @author Easy Chen
* @version 1.0
* @hacker RB Lin
*/
class WeiboOAuth {
/**
* Contains the last HTTP status code returned.
*
* @ignore
*/
public $http_code;
/**
* Contains the last API call.
*
* ... |
<?php
$params=require(__DIR__ . '/params.php');
$config=[
'id' =>'basic',
'basePath' =>dirname(__DIR__),
'bootstrap' =>['log'],
'components'=>[
'authManager' =>[
'class' =>'yii\rbac\DbManager',
'defaultRoles'=>['client', 'admin', 'author'],
],
... |
--TEST--
Bug #78973: Destructor during CV freeing causes segfault if opline never saved
--INI--
opcache.optimization_level=0
--FILE--
<?php
function test($x) {
}
test(new class {
public function __destruct() {
debug_print_backtrace();
}
});
?>
--EXPECTF--
#0 %s(%d): class@anonymous->__destruct() |
<?php
namespace Google\AdsApi\AdManager\v202102;
/**
* This file was generated from WSDL. DO NOT EDIT.
*/
class CompanyCreditStatusErrorReason
{
const COMPANY_CREDIT_STATUS_CHANGE_NOT_ALLOWED = 'COMPANY_CREDIT_STATUS_CHANGE_NOT_ALLOWED';
const CANNOT_USE_CREDIT_STATUS_SETTING = 'CANNOT_USE_CREDIT_STATUS_SE... |
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css"
rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js">
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js">
</script>
<!------ Include the above in... |
<!--
#about-us
========================== -->
<section id="about-us">
<div class="container">
<div class="row">
<div class="col-md-5 col-md-offset-1 wow fadeInLeft">
<div class="subtitle text-center">
<h3>Відгуки</h3>
<p>Думка наших клієн... |
<?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")... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class News_model extends CI_Model
{
/**
* News category
*
* @param array
*/
public const CATEGORY = array(
0 => 'breaking-news',
1 => 'sport',
2 => 'community',
3 => 'crime',
4 => 'jobs',
5 => 'internati... |
<?php
namespace App\Repositories;
use Prettus\Repository\Contracts\RepositoryInterface;
/**
* Interface BetRepository.
*
* @package namespace App\Repositories;
*/
interface BetRepository extends RepositoryInterface
{
//
} |
<?php
namespace frontend\models;
use Yii;
/**
* This is the model class for table "country".
*
* @property integer $id
* @property string $name
* @property integer $code
*/
class Country extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
retur... |
<?php
return array(
/*
|--------------------------------------------------------------------------
| PDO Fetch Style
|--------------------------------------------------------------------------
|
| By default, database results will be returned as instances of the PHP
| stdClass object; however, you may desire t... |
<?php
/*
* This file is part of the Fxp package.
*
* (c) François Pluchino <francois.pluchino@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Fxp\Component\Config\Exception;
/**
* Base RuntimeException for ... |
<?php
return array(
/*
|--------------------------------------------------------------------------
| PDO Fetch Style
|--------------------------------------------------------------------------
|
| By default, database results will be returned as instances of the PHP
| stdClass object; however, you may desire t... |
<?php
declare(strict_types=1);
namespace Rector\NetteToSymfony\Event;
use Rector\NetteToSymfony\ValueObject\EventInfo;
final class EventInfosFactory
{
/**
* @return EventInfo[]
*/
public function create(): array
{
$eventInfos = [];
$eventInfos[] = new EventInfo(['nette.applicat... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... |
@extends('layouts.app')
@section('content')
<div class="signup-box">
<div class="logo">
<a href="javascript:void(0);"><b></b></a>
<small>New COMPANY</small>
</div>
<div class="card">
<div class="body">
<form id="sign_up" class="form-horizontal"... |
<?php
use yii\helpers\Html;
use yii\helpers\Url;
use yii\grid\GridView;
/**
* @var yii\web\View $this
* @var yii\data\ActiveDataProvider $dataProvider
* @var app\models\EventSearch $searchModel
*/
$this->title = Yii::t('models', 'Events');
$this->params['breadcrumbs'][] = $this->title;
/**
* create action colu... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
require APPPATH . '/libraries/REST_Controller.php';
use Restserver\Libraries\REST_Controller;
class Spp_approved extends REST_Controller {
function __construct($config = 'rest') {
parent::__construct($config);
}
// if ... |
<?php
namespace App\Http;
use Illuminate\Foundation\Http\Kernel as HttpKernel;
class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* @var array
*/
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,... |
<?php
/**
* PHP.Gt can be served with or without a webserver being present. If this
* script is run from the command line, it will act as its own webserver.
*/
$serverPattern = "/^\/(?:(?:[^\.^\?]+)(?:\.html|\.json)?)?(?:\?(.*))?$/i";
$bootstrap = __DIR__ . "/Framework/Bootstrap.php";
$defaultContentType = "text/... |
<?php
return [
'attributes' => [
'address' => 'Мекенжай',
'age' => 'Жасы',
'available' => 'Қолжетімді',
'city' => 'Қала',
'content' => 'Контент',
'country' => 'Ел',
'date... |
<?php
/**
* 活动
*
*
*
**by 校帮 运营版*/
defined('InSchoolAssistant') or exit('Access Invalid!');
class activityControl extends BaseHomeControl {
/**
* 单个活动信息页
*/
public function indexOp(){
//读取语言包
Language::read('home_activity_index');
//得到导航ID
$nav_id = intval($_GET['nav_id']) ? intval($_GET['nav_id'... |
<?php
namespace Psalm\Internal\Type;
use function count;
use function get_class;
use Psalm\Codebase;
use Psalm\CodeLocation;
use Psalm\Internal\Analyzer\StatementsAnalyzer;
use Psalm\Internal\Analyzer\TraitAnalyzer;
use Psalm\Internal\Analyzer\TypeAnalyzer;
use Psalm\Issue\DocblockTypeContradiction;
use Psalm\Issue\P... |
<?php
namespace App\Providers;
use App\Models\User;
use App\Policies\Userpolicy;
use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for the application.
*
... |
<?php $__env->startSection('content'); ?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Party Treasury
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Party Treasury</a></li>
<li... |
<header id="header">
<!--header-->
<div class="header_top">
<!--header_top-->
<div class="container">
<div class="row">
<div class="col-sm-6">
<div class="contactinfo">
<ul class="nav nav-pills">
... |
<?php
declare(strict_types=1);
namespace Rector\StaticTypeMapper\ValueObject\Type;
use Nette\Utils\Strings;
use PhpParser\Node\Name;
use PhpParser\Node\Stmt\Use_;
use PhpParser\Node\Stmt\UseUse;
use PHPStan\Type\ObjectType;
use Rector\NodeTypeResolver\Node\AttributeKey;
final class FullyQualifiedObjectType extends ... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Dashboard2 extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->helper(array('form', 'url'));
$admin_email = $this->session->userdata('admin_email');
if ($admin_email ==... |
<?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\BackEnd;
use TCG\Voyager\Http\Controllers\VoyagerMenuController as BaseVoyagerMenuController;
class VoyagerMenuController extends BaseVoyagerMenuController
{
//
} |
<?php
namespace WorldFixer;
use pocketmine\item\Item;
use pocketmine\math\Vector3;
use pocketmine\Player;
use pocketmine\command\Command;
use pocketmine\command\CommandSender;
use pocketmine\event\block\BlockBreakEvent;
use pocketmine\event\Listener;
use pocketmine\utils\TextFormat;
use pocketmine\plugin\PluginBase;
... |
<?php
return [
/*
* Is email activation required
*/
'activation' => env('ACTIVATION', false),
/*
* Is email activation required
*/
'timePeriod' => env('ACTIVATION_LIMIT_TIME_PERIOD', 24),
/*
* Is email activation required
*/
'maxAttempts' => env('ACTIVATION_LIMI... |
<?php
if (isset($_SESSION['kd_peminjaman']) == FALSE) {
redirect('peminjaman/tambah');
}
?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Tambah Data <br><br>
<small>Detail Peminjaman</smal... |
<?php
/**
* GETInvoicesInvoiceItemType
*
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Zuora... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/appengine/v1/firewall.proto
namespace Google\Cloud\AppEngine\V1\FirewallRule;
use UnexpectedValueException;
/**
* Available actions to take on matching requests.
*
* Protobuf type <code>google.appengine.v1.FirewallRule.Action</code>... |
<?php
function escapeString(string $string)
{
return str_replace("'", "''", $string);
}
function columnValidate(string $string, $openMark, $closeMark, $isUseSymbol = true)
{
$equal = "=";
$phrase = str_replace([" ", "."], ["", "{$closeMark}.{$openMark}"], $string);
$cond = ["!", "<>", "<", ">", "<=",... |
<?php
namespace App\Repositories;
use App\Contracts\BaseContract;
use Illuminate\Database\Eloquent\Model;
/**
* Class BaseRepository
* @package App\Repositories
*/
class BaseRepository implements BaseContract
{
/**
* @var Model
*/
protected $model;
/**
* BaseRepository constructor.
... |
<?php
include('include/header.php');
?>
<style type="text/css">
div#partyerror span.ValidationErrors {
position:relative !important;
left:15px !important;
margin-bottom: -13px !important;
}
span.ErrorField {
color: rgba(118, 118, 118, 1.0) !important;
}
</style>
<!-- START CONTAINER -->
<div c... |
<?php
declare(strict_types=1);
namespace NoFlash\ROSAutoWireGuard\RouterOS;
use IPTools\Network;
use IPTools\Range;
use RouterOS\Query;
class IpApi extends AbstractApi
{
/**
* @return array<Network>
*/
public function getAddressesOnInterface(string $interface): array
{
$query = (new Que... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Jadwal extends Model
{
protected $connection='pgsql_2';
protected $table='dtum.t_jadwal';
public $timestamps=false;
public function dosen(){
return $this->hasMany("App\Dosen", "jwl_sandi", "dsn_sandi");
}
} |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class Surat_ket_wali_model extends CI_Model
{
public $table = 'surat_ket_wali';
public $join = 'user.id_user = surat_ket_wali.id_user_ttd';
public $id = 'kd_surat';
public $order = 'DESC';
function __construct()
{
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Persona extends Model
{
use HasFactory;
public function user()
{
return $this->belongsTo('App\Models\User');
}
} |
@extends('admin.layouts.two-col')
@section('breadcrumb')
<div class="banner">
<h2>
<a href="/admin">Home</a>
<i class="fa fa-angle-right"></i>
<span>Services</span>
</h2>
</div>
@endsection
@section('left')
@include('admin.module.service.add')
@endsectio... |
<?php
namespace app\controllers;
use Yii;
use yii\rest\ActiveController;
use yii\filters\auth\HttpBearerAuth;
use yii\data\ActiveDataProvider;
use app\models\File;
class FileController extends ActiveController
{
public $modelClass = 'app\models\File';
public $updateScenario = File::SCENARIO_UPDATE;
pub... |
<!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') }}</ti... |
@extends('layouts.admin')
@section('content')
<h1>Comments Reply</h1>
@if(count($replies)>0)
<table class="table">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Email</th>
<th>Post</th>
<th>Comment</t... |
<?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\Links
*/
/**
* Represents the link watcher. This class will watch for the save_post hook being called.
*/
class WPSEO_Link_Watcher {
/**
* Represents the content processor. It will extract links from the content and saves them for the given post id.
*... |
<?php
use yii\log\FileTarget;
return [
'aliases' => [
'@bower' => '@vendor/bower-asset',
'@npm' => '@vendor/npm-asset',
],
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
'components' => [
"log" => [
"traceLevel" => YII_DEBUG ? 3 : 0,
"targets" ... |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<h1>新規作成画面</h1>
<p><a href="{{ route('intro.index')}}">一覧画面</a></p>
<!-- <form action="{{ route('intro.sto... |
<?php
/**
* Test case for class FilemodeExample.
*
* @package stubbles_vfs
* @subpackage examples
* @version $Id$
*/
require_once 'PHPUnit/Framework.php';
require_once 'FilemodeExample.php';
/**
* Test case for class FilemodeExample.
*
* @package stubbles_vfs
* @subpackage examples
*/
class Fil... |
<?php
namespace ContainerB0kHoyW;
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 getDoctrineMigrations_DiffComman... |
<?php
namespace App\Helpers;
use Nette;
use Nette\Utils\Arrays;
class BrokerConfig
{
use Nette\SmartObject;
protected $authUsername;
protected $authPassword;
public function __construct($config)
{
$this->authUsername = Arrays::get($config, ["auth", "username"]);
$this->authPassword = Arrays::get($... |
<?php
/*
Template Name: Archives
*/
?>
<?php get_header();?>
<section id="content">
<main id="main">
<section class="section-body">
<?php while ( have_posts() ) : the_post(); ?>
<header class="archive-header">
<h1 class="archive-title... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.