text stringlengths 2 1.03M |
|---|
<?php
# Copyright (c) 2015, phpfmt and its authors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditio... |
<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Timestampable\Traits\TimestampableEntity;
/**
* @ORM\Entity(repositoryClass="App\Repository\BookRepository")
*/
class Book
{
use TimestampableEntit... |
<?php if (!defined('THINK_PATH')) exit();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- Use IE7 mode -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7 charset=utf-8">
<meta h... |
<?php
class LoginModel extends CI_Model
{
function __construct()
{
parent::__construct();
}
function cek_login($username, $password)
{
$this->db->select('u.*, rl.role as nama_role')->from('user u');
$this->db->join('mst_role rl', 'rl.id=u.id_role');
$this->db->wher... |
@extends ('main')
@section('title')
Pengumuman
@endsection
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8">
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
<div class="col-md-12">
... |
<?php
namespace App\Http\Controllers\Backend;
use App\Http\Controllers\Controller;
use App\Models\Cooperation;
use App\Models\Costumer;
use App\Models\InvoiceCostumer;
use App\Models\JobOrder;
use App\Traits\CarbonTrait;
use Illuminate\Http\Request;
use Yajra\DataTables\Facades\DataTables;
class ReportPiutangBelumLu... |
<style>
table {
border-collapse: collapse;
}
table, td, th {
border: 1px solid #dddddd;
padding: 6px;
font-size: 12px;
}
th {
text-align: center;
}
tr:hover {background-color: #f5f5f5;}
</style>
<script>
function printDiv() {
var divToPrint = document.getElementById('divToP... |
@extends('layouts.app')
@section('title', '| Contact Us')
@section('stylesheets')
<script src="https://cloud.tinymce.com/stable/tinymce.min.js"></script>
<script>tinymce.init({
selector:'#message',
plugins: [
'advlist lists charmap print preview anchor textcolor',
... |
<?php
namespace app\modules\admin\controllers;
use Yii;
use app\modules\admin\models\AnimeImg;
use app\modules\admin\models\AnimeImgSearch;
use yii\filters\AccessControl;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
/**
* AnimeImgController implements the CRUD actions for A... |
<?php
/**
* Data management class.
* By default, we're using MongoDB. Of course, you're free to extend this,
* implement the functions, and set Idno\Core\Idno->$db to be its
* replacement.
*
* @package idno
* @subpackage core
*/
namespace Idno\Core {
class Data... |
<?php
namespace TYPO3\Flow\Aop\Pointcut;
/*
* This file is part of the TYPO3.Flow package.
*
* (c) Contributors of the Neos Project - www.neos.io
*
* This package is Open Source Software. For the full copyright and license
* information, please view the LICENSE file which was distributed with this
* source code... |
@extends('layouts.home')
@section('info')
<title>{{$field->art_title}}-{{Config::get('web.seo_title')}}</title>
<meta name="keywords" content="{{$field->art_tag}}" />
<meta name="description" content="{{$field->art_description}}" />
@endsection
@section('content')
<article class="blogs">
<h1 cl... |
<?php
namespace backend\models;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use backend\models\DictionaryLink;
/**
* DictionaryLinkSearch represents the model behind the search form of `backend\models\DictionaryLink`.
*/
class DictionaryLinkSearch extends DictionaryLink
{
/**
* {@inheritdoc}
... |
<?php declare(strict_types=1);
/**
* @license Apache 2.0
*/
namespace OpenApi\Annotations;
/**
* @Annotation
* A "Response Object": https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#requestBodyObject
*
* Describes a single response from an API Operation, including design-time, static l... |
<?php
/**
*Home
*/
Route::get('/', [
'uses' => '\Chatty\Http\Controllers\HomeController@index',
'as' => 'home',
]);
Route::get('/alert', function(){
return redirect()->route('home')->with('info', 'You have signed up!');
});
/**
*Authentication
*/
Route::get('/signup', [
'uses' => '\Chatty\Http\Controllers\Auth... |
<?php
class Kwc_FormCache_Form_Component extends Kwc_Form_Component
{
public static function getSettings($param = null)
{
$ret = parent::getSettings($param);
$ret['useAjaxRequest'] = false;
$ret['componentName'] = 'Contact';
$ret['placeholder']['submitButton'] = 'Send';
r... |
@extends('admin.layouts.main')
@section('content')
<div class="container mt-5">
<div class="row">
<div class="col-md-12">
<!-- Add breadcrumps -->
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item active" aria-current="page">Department</li>
</o... |
<style>
.input-sm {
height: 26px;
}
</style>
<div class="breadcrumb-line">
<ul class="breadcrumb">
<li><a href='javascript:void(0);'>Info Diklat</a></li>
<li><a href='<?php echo base_url()."diklat/program"; ?>'>Program Diklat</a></li>
<li class="active">Setting Modul & Penga... |
<script type="text/javascript">
const divPlayer = $('#player');
const vbWidth = divPlayer.width();
const vbHeight = vbWidth / 16 * 9;
const vastOrder = 'post';
const vastInput = $('input[name="vast-tag"]');
const vastTag = vastInput.length !== 0 ? vastInput.val() : '';
const generateH... |
<?php
namespace foo;
class bar {
public function __construct(array $x = NULL) {
\var_dump($x);
}
}
new bar(null);
new bar(new \stdclass); |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model backend\models\WidgetMain */
$this->title = $model->title;
$this->params['breadcrumbs'][] = ['label' => 'Widget Mains', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
\yii\web\YiiAsset::register(... |
<?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
namespace App\Http\Controllers\Auth;
use App\User;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Validator;
use Illuminate\Foundation\Auth\RegistersUsers;
use App\Role;
class RegisterController extends Controller
{
/*
|--------------------------------------------------------------... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class TopicsAddType extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('topics', function (Bl... |
<?php
/**
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyrig... |
<?php
namespace Modules\V1\Entities;
use Illuminate\Database\Eloquent\SoftDeletes;
use SoliDry\Extension\BaseModel;
class Tour extends BaseModel
{
use SoftDeletes;
// >>>props>>>
protected $dates = ['deleted_at'];
protected $primaryKey = 'id';
protected $table = 'tour';
public $timestamps = f... |
<?PHP
require_once("../includes/php-includes.php");
$post = $mysqli->real_escape_string($_POST["post"]);
$content = $mysqli->real_escape_string($_POST["content"]);
$query = "INSERT INTO comment (user_id, post_id, content, deleted) VALUES (" . $_SESSION["user_id"] . ", $post, '$content', 0)";
... |
<html>
<head>
<link rel="stylesheet" href="{{asset('css/swiper.min.css')}}"/>
<script src="{{asset('js/swiper.min.js')}}"></script>
<style>
/*@import url('https://fonts.googleapis.com/css?family=Open+Sans:300|PT+Serif:400,400i,700|Spectral+SC:300');*/
@import url('https://fonts.googleapis.c... |
<?php
session()->get();
?>
<div style = "margin-bottom:5em;" >
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-expand-md navbar-dark bg-dark fixed-top">
<div class="container">
<a class="navbar-brand" href="#" id='nama_user'>
<?php
if(strlen($_... |
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Route;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use App\Models\Article;
use App\Models\Category;
use Spatie\Tags\Tag;
use PaginateRoute;
class RouteServiceProvider extends ServiceProvider
{
/**
* This... |
<?php
// Text
$_['text_upload'] = 'Ваш файл был успешно загружен!';
// Error
$_['error_filename'] = 'Имя файла должно быть от 3 до 64 символов!';
$_['error_filetype'] = 'Неверный тип файла!';
$_['error_upload'] = 'Необходима загрузка файла!'; |
<?php
namespace App\Http\Controllers\Api\V1;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Task;
use Session;
use DB;
class TasksController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function in... |
<?php
namespace Routing\Test;
use Routing\Response;
use PHPUnit\Framework\TestCase;
/**
* Test the Response object.
*/
class ResponseTest extends TestCase
{
/**
* Test that the createDispatcher function
* creates a Dispatcher.
*
* @expectedException \InvalidArgumentException
*/
public function testInva... |
<?php
namespace Serendipity\Metatron\Command;
use Serendipity\Metatron\Model\Config;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Yaml\Dumper;
use Symfony\Component\Yaml\Exception\ParseException;
use Symfony\Component\Yaml\Parser;
/**
* Class CommonCommand
* @package Serendipity\Metatron\Co... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class ViberBotRecipient extends Model
{
//
} |
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| r... |
@extends('layouts.admin')
@section('content')
{{-- <div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">Dashboard</div>
<div class="card-body">
@if (session('statu... |
<?php
namespace Google\AdsApi\AdManager\v202111;
/**
* This file was generated from WSDL. DO NOT EDIT.
*/
class QuotaError extends \Google\AdsApi\AdManager\v202111\ApiError
{
/**
* @var string $reason
*/
protected $reason = null;
/**
* @param string $fieldPath
* @param \Google\Ads... |
<?php
namespace App\Security;
use App\Entity\Client as ClientEntity;
use App\Entity\User;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Authorization\AccessDecisionManagerInterface;
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
class Cli... |
@extends('admin.layouts.master_layout')
@section('css')
<style>
img#loadingimg
{
display: none;
}
table {
border-collapse: separate;
border-spacing: 0 15px;
}
th {
background-color: #4287f5;
color: white;
}
th,
td {
text-align: center;
padding: 5px;
}
h2 {
color: #4287f5;
}
.... |
<ul class="breadcrumb">
<li>Sub Admin Types Management</li>
<li><a href="<?php echo base_url('/admin/types');?>" class="glyphicons dashboard"> List</a></li>
<li class="divider"><i class="icon-caret-right"></i></li>
<li>Edit Sub Admin Types</li>
</ul>
<div class="innerLR">
<h1>Edit Sub Admin Types</h1> ... |
<?php
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and l content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Tsumiki
*/
?>
</div><!-- #content -->
<?php $args = array(
'theme_location' => 'fo... |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Auth_Model extends CI_Model{
//----------------------------------------------------------------------
// registration
public function insert_employers($data)
{
$this->db->insert('xx_employers',$data);
$last_id = $this->db->insert_id(... |
<?php
namespace app\modules\pjax;
/**
* pjax module definition class
*/
class Module extends \yii\base\Module
{
/**
* {@inheritdoc}
*/
public $controllerNamespace = 'app\modules\pjax\controllers';
/**
* {@inheritdoc}
*/
public function init()
{
parent::init();
... |
<?php $this->load->view('template/header_view.php'); ?>
<section id="page-header" class="clearfix">
<div class="wrapper">
<h1><?php echo $this->lang->line('h1_status'); ?></h1>
</div>
</section>
<!-- main content area -->
<div class="wrapper" id="main">
<!-- content area -->
<section id="conte... |
<?php
/**
* Categories template
* Demo template file populated with MarkupBlog output and additional custom code for the Blog Categories
*
*/
//CALL THE MODULE - MarkupBlog
$blog = $modules->get("MarkupBlog");
//subnav
$subNav = $blog->renderNav($page->title, $page->children, $page);
//main conten... |
--TEST--
Simple math tests
--FILE--
<?php
define('LONG_MAX', is_int(5000000000)? 9223372036854775807 : 0x7FFFFFFF);
define('LONG_MIN', -LONG_MAX - 1);
printf("%d,%d,%d,%d\n",is_int(LONG_MIN ),is_int(LONG_MAX ),
is_int(LONG_MIN-1),is_int(LONG_MAX+1));
$tests = <<<TESTS
-1 ~== ceil(-1.5)
2 ~==... |
<?php
namespace App\Http\Controllers;
use App\GoodReceiveDetail;
use Illuminate\Http\Request;
class GoodReceiveDetailController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateNursePackagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('nurse_pac... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... |
<?php
namespace AppBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
/**
* Expense controller.
*
*/
class ExpenseController extends AppController
{
protected $entityName = 'expense';
} |
<table width="700" border="3" cellspacing="0" cellpadding="0" align="center" style="font-family:'Trebuchet MS';font-family: 'Trebuchet MS'; border-color: #ed1a3b;">
<tr>
<td style="padding: 10px">
<!--<img src="<?php echo base_url() ?>public/images/AdwordsCustomerQuoteHeader.png" width="700" hei... |
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->truncateTablas([
'rol',
'permiso'
]);
// $this->call(UsersTableSeeder::c... |
<?php
# Copyright (c) 2012-2013, CESNET. All rights reserved.
# Copyright (c) 2008-2009, Grid PP, CERN and CESNET. All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
# conditions are met:
#
# o Redistributions of sour... |
<?php
class WorkIssueMill_model extends CI_Model
{
public function addition(){
$query = $this->db->select_sum('aka_number', 'TakaNumber');
$query = $this->db->get('tbl_work_issue_mill_detail');
$result = $query->result();
return $result[0]->TakaNumber;
}
}
?> |
<?php
/**
* Products, Quotations & Invoices modules.
* Extensions to SugarCRM
* @package Advanced OpenSales for SugarCRM
* @subpackage Products
* @copyright SalesAgility Ltd http://www.salesagility.com
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU AFFE... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| AUTO-LOADER
| -------------------------------------------------------------------
| This file specifies which systems should be loaded by default.
|
| In order to keep t... |
<?php
return [
'client_id' => env('PAYPAL_CLIENT_ID'),
'secret' => env('PAYPAL_SECRET'),
'settings' => [
'mode' => env('PAYPAL_MODE', 'sandbox'),
'http.ConnectionTimeOut' => 30,
'log.LogEnabled' => true,
'log.FileName' => storage_path('/logs/paypal.log'),
'log.Log... |
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* A static renderer for HTML_QuickForm compatible
* with HTML_Template_IT and HTML_Template_Sigma.
*
* PHP versions 4 and 5
*
* LICENSE: This source file is subject to version 3.01 of the PHP license
* that is available through the world... |
<?php
include '../db/conect.php';
?>
<?php
if(isset($_POST['themsanpham'])) {
$tensanpham = $_POST['tensanpham'];
$hinhanh = $_FILES['hinhanh']['name'];
$hinhanh_tmp = $_FILES['hinhanh']['tmp_name'];
$soluong = $_POST['soluong'];
$gia = $_POST['giasanpham'];
$giakhuyenmai = $_POST['giakhuyen... |
<?php
/**
* Yii is a helper class serving common framework functionalities.
*
* It extends from [[\yii\BaseYii]] which provides the actual implementation.
* By writing your own Yii class, you can customize some functionalities of [[\yii\BaseYii]].
*
* Used for enhanced IDE code autocompletion.
*/
class Yii exte... |
<?php
namespace Mezzolabs\Mezzo\Cockpit\Html\Rendering\Handlers;
use MezzoLabs\Mezzo\Core\Helpers\Translator;
use MezzoLabs\Mezzo\Core\Schema\InputTypes\InputType;
use MezzoLabs\Mezzo\Core\Schema\InputTypes\SelectInput;
use MezzoLabs\Mezzo\Core\Schema\Rendering\AttributeRenderingHandler;
class SelectableAttributeRe... |
<?php
namespace App\Api\V1\Controllers\Wx;
use App\Http\Controllers\Controller;
class WxBaseController extends Controller
{
//判断是否登录
public function isLogin(){
return true;
}
protected function ok($data = null)
{
$res = ['statusCode' => 200];
if ($data) {
... |
@extends("template")
@section("conteudo")
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.11/jquery.mask.min.js"></script>
<script type="text/javascript">
jQuery(function ($) {
$("#Valor").mask("99... |
<?php
return array (
6970425 =>
array (
0 => 32,
1 => '浜田市',
2 => '旭町今市',
),
6970000 =>
array (
0 => 32,
1 => '浜田市',
2 => '',
),
6970211 =>
array (
0 => 32,
1 => '浜田市',
2 => '金城町波佐',
),
6970492 =>
array (
0 => 32,
1 => '浜田市',
2 => '旭町丸原',
3... |
<?php
namespace App\Http\Controllers\Admin;
//controller containts the loggic - how to validate data and save to the database through the model
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Http\Controllers\Admin\JobController;
use App\Models\Job;
class JobController extends Controller
{... |
<?php
namespace Tests\Unit\Orders\EmailAccounts\Settings;
use PHPUnit\Framework\TestCase;
use ResellerClub\Orders\EmailAccounts\Settings\SmtpSettings;
class SmtpSettingsTest extends TestCase
{
public function testImapSettings()
{
$smtpSettings = new SmtpSettings('smtp.somedomain.co.in.onlyfordemo.com... |
<div class="row mb-3">
<label for="shop_name" class="col-md-4 col-form-label text-md-end">Shop Name</label>
<div class="col-md-6">
<input id="shop_name" type="text" class="form-control @error('shop_name') is-invalid @enderror" name="shop_name" value="{{ isset($shop->shop_name) ? $shop->shop_name : old('... |
<?php
namespace Mtc\Dhl\Datatype\AM;
use Mtc\Dhl\Datatype\Base;
/**
* Billing Request model for DHL API
*/
class Billing extends Base
{
/**
* Is this object a subobject
* @var boolean
*/
protected $isSubobject = true;
/**
* Parameters of the datatype
* @var array
*/
p... |
<?php
$name='DejaVuSansCondensed-Bold';
$type='TTF';
$desc=array (
'CapHeight' => 729,
'XHeight' => 547,
'FontBBox' => '[-962 -415 1778 1174]',
'Flags' => 262148,
'Ascent' => 928,
'Descent' => -236,
'Leading' => 0,
'ItalicAngle' => 0,
'StemV' => 165,
'MissingWidth' => 540,
);
$unitsPerEm=2048;
$up=-... |
<?php
namespace Container2oRP5bu;
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 getSylius_UniqueIdBasedOrderToke... |
<?php
namespace App\Policies;
use App\Thread;
use App\User;
use Illuminate\Auth\Access\HandlesAuthorization;
class ThreadPolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can view any models.
*
* @param \App\User $user
* @return mixed
*/
public function viewA... |
<?php
/**
* Created by PhpStorm.
* User: 姜伟
* Date: 2018/12/20 0020
* Time: 10:52
*/
namespace Wx\Shop\CustomService;
use Constant\ErrorCode;
use Exception\Wx\WxException;
use Tool\Tool;
use Wx\WxBaseShop;
use Wx\WxUtilBase;
use Wx\WxUtilShop;
class AccountUpdate extends WxBaseShop
{
/**
* 公众号ID
* ... |
<?php
namespace app\index\controller;
use think\Db;
class Index extends Common
{
public function index()
{
$article=Db::table('article')->paginate(1);
$page=$article->render();
$this->assign('article',$article);
$this->assign('page',$page);
return $this->fetch();
... |
@extends('layouts.master')
@section('title' , config('app.name'). " - ". $pageInfo['title'])
@if(array_key_exists('description' , $pageInfo))
@section('og-description' , $pageInfo['description'])
@section('description', $pageInfo['description'])
@else
@section('og-description' , config('app.description'))
@se... |
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
namespace App\Helpers;
use Illuminate\Support\Facades\Cache;
use App\Model\Setting;
class Settings {
public static funct... |
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/Users/johnknotts/dev/jhnnyk-io/user/plugins/admin/languages/ro.yaml',
'modified' => 1481648910,
'data' => [
'PLUGIN_ADMIN' => [
'ADMIN_BETA_MSG' => 'Aceasta este o versiune Beta! Folosiți-o pe propiul ... |
<?php
/**
* Copyright (C) 2014-2020 ServMask Inc.
*
* This program 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.
*
* This pro... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH... |
<?php namespace Igniter\PayRegister;
use System\Classes\BaseExtension;
class Extension extends BaseExtension
{
public function registerPaymentGateways()
{
return [
'Igniter\PayRegister\Payments\Cod' => [
'code' => 'cod',
'name' => 'lang:igniter.payregister::... |
<?php
//
// This is sample configuration file
//
// You can configure phpliteadmin in one of 2 ways:
// 1. Rename phpliteadmin.config.sample.php to phpliteadmin.config.php and change parameters in there.
// You can set only your custom settings in phpliteadmin.config.php. All other settings will be set to defaults.... |
@extends("layouts.app")
@section("content")
<div class="container">
<div class="row justify-content-center">
<div class="col-12 col-md-6">
@if($errors->any())
<div class="alert alert-warning">
<ol>
@foreach(... |
<?php
namespace App\Tenant\Events;
use App\Models\Tenant;
use App\Modules\User;
use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Ill... |
@extends('layouts.back-end.app')
@section('title','Employee List')
@push('css_or_js')
<!-- Custom styles for this page -->
<link href="{{asset('public/assets/back-end')}}/vendor/datatables/dataTables.bootstrap4.min.css" rel="stylesheet">
@endpush
@section('content')
<div class="content container-fluid">
<n... |
<?php
/**
* @see https://github.com/laminas/laminas-db for the canonical source repository
* @copyright https://github.com/laminas/laminas-db/blob/master/COPYRIGHT.md
* @license https://github.com/laminas/laminas-db/blob/master/LICENSE.md New BSD License
*/
namespace Laminas\Db\Metadata\Source;
use Lamin... |
<?php
declare(strict_types=1);
$this = 2; |
<?php
/*!
* Medoo database framework
* https://medoo.in
* Version 1.7.3
*
* Copyright 2019, Angel Lai
* Released under the MIT license
*/
namespace Medoo;
use PDO;
use Exception;
use PDOException;
use InvalidArgumentException;
class Raw {
public $map;
public $value;
}
class Medoo
{
public $pdo;
protecte... |
<?php
namespace App\Http\Controllers;
use App\Offers;
use Illuminate\Http\Request;
class OffersController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
//this function prevents creating post without logging in but we can see the pos... |
<?php
namespace Database\Seeders;
use App\Models\Attribute;
use Illuminate\Database\Seeder;
class AttributesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
// Create a size attribute
Attribute::create([
... |
<?php echo $this->fetch('header.html'); ?>
<script type="text/javascript" src="index.php?act=jslang"></script>
<script type="text/javascript">
//<!CDATA[
$(function(){
regionInit("region");
$("#tr_close_reason").hide();
<?php if ($_GET['act'] == "edit"): ?>
$(":radio[name='state']").click(function(){
... |
<?php
namespace Ons\Request\V20190214;
/**
* @deprecated Please use https://github.com/aliyun/openapi-sdk-php
*
* Request of OnsMqttGroupIdList
*
* @method string getPreventCache()
* @method string getInstanceId()
*/
class OnsMqttGroupIdListRequest extends \RpcAcsRequest
{
/**
* @var string
*/
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Subcategory extends Model
{
protected $table = 'subcategories';
// protected $primaryKey = 'id';
protected $fillable = [
'name',
];
public function categories() {
return $this->belongsTo('App\Models\Categor... |
<?php
namespace Yep\TracyTwigExtensions;
use Tracy\Debugger;
class BarDumpExtension extends DumpExtension {
protected $name = 'barDump';
protected function doDump($data) {
if (!class_exists('\Tracy\Debugger')) {
return;
}
Debugger::barDump($data, null, $this->options);
}
} |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use DB;
class HomePageController extends Controller
{
public function index()
{
$data['menu']=1;
$home_main_content=view('front_pages.home_content')->with('data',$data);
return view('front.home')->with('home_main_content',$ho... |
@extends('app')
@section('additionalCss')
<link href="{{ URL::to('/') }}/wulfdist/css/wulf.tabpane.min.css" rel="stylesheet"/>
<style type="text/css">
</style>
<script type="text/javascript">
function validateCourseWizardForm() {
if(!($('input[name=method]:checked').val() != '')) ... |
<?php
/*
Copyright 2009 The Australian National University
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 to ... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class CreateReservationStoreRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/*... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\ProjectBudget */
$this->title = 'เพิ่มใหม่';
$this->params['breadcrumbs'][] = ['label' => 'แหล่งที่มาของงบประมาณ', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="project-budget-create">
<div ... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Chofer extends Model
{
use HasFactory;
public function vehiculo()
{
return $this->belongsTo('App\Models\Vehiculo');
//relacion verificada
}
public func... |
<div class="form-group {!! !$errors->has($errorKey) ?: 'has-error' !!}">
<label for="{{$id}}" class="col-sm-2 control-label">{{$label}}</label>
<div class="col-sm-6">
@include('admin::form.error')
<select class="form-control {{$class}}" name="{{$name}}[]" multiple="multiple" data-placeholder... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.