text stringlengths 2 1.03M |
|---|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Yeni Kitap oluştur</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
... |
<?php
namespace App\Http\Controllers\Auth;
use App\User;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Illuminate\Foundation\Auth\RegistersUsers;
class RegisterController extends Controller
{
/*
|---------------------------------------... |
<?php
/**
* Class PodsRESTFields
*
* Creates an object that adds read/write handlers for Pods fields in default responses.
*
* @package Pods
* @since 2.5.6
*/
class PodsRESTFields {
/**
* Pods object
*
* @since 2.5.6
*
* @access protected
*
* @var Pods
*/
protected $pod;
/**
* Construc... |
<div class="preloader-wrapper big active">
<div class="spinner-layer spinner-blue">
<div class="circle-clipper left">
<div class="circle"></div>
</div><div class="gap-patch">
<div class="circle"></div>
</div><div class="circle-clipper right">
<div class="circle"></div>
</div>
</div... |
<?php
session_start();
session_unset();
session_destroy();
header("Location: ../index.php"); |
<?php
namespace Tqdev\PhpCrudApi;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Tqdev\PhpCrudApi\Cache\CacheFactory;
use Tqdev\PhpCrudApi\Column\DefinitionService;
use Tqdev\PhpCrudApi\Column\ReflectionService;
use Tqdev\PhpCrudAp... |
<?php
namespace ReceiptValidator\Tunes;
class ProductionResponse extends AbstractResponse implements ResponseInterface
{
public function isProduction(): bool
{
return true;
}
public function isSandbox(): bool
{
return false;
}
} |
<?php
/*
* Fresns (https://fresns.org)
* Copyright (C) 2021-Present Jarvis Tang
* Released under the Apache-2.0 License.
*/
namespace App\Http\FresnsDb\FresnsPluginCallbacks;
use App\Base\Resources\BaseAdminResource;
/**
* Detail resource config handle.
*/
class FsResourceDetail extends BaseAdminResource
{
... |
<?php
/**
*
*/
class DataJurusan extends CI_Controller
{
public function __construct()
{
parent::__construct();
if (!$this->session->has_userdata('id_user')) {
redirect('Login');
}
if ($this->session->userdata('level') == 'siswa') {
show_404();
}
$this->load->model('Jurusan_Model');
$this->loa... |
<?php
namespace LaraVue\Http\Controllers\Auth;
use LaraVue\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\VerifiesEmails;
class VerificationController extends Controller
{
/*
|--------------------------------------------------------------------------
| Email Verification Controller
|----... |
<?php echo form_open('admin/blog/action');?>
<h3><?php echo lang('blog_list_title');?></h3>
<?php if (!empty($blog)): ?>
<table border="0" class="table-list" cellspacing="0">
<thead>
<tr>
<th><?php echo form_checkbox(array('name' => 'action_to_all', 'class' => 'check-all'));?></th>
<th><?php echo lang(... |
<?php
namespace App\Http\Controllers;
use App\Models\Ecole;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;
class EcoleController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
... |
@extends('user.template')
@section('JudulHalaman', 'Toko Mas Woko')
@section('breadcome', 'Tambah Supplier')
@section('content')
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="dashtwo-order-list shadow-reset">
<div class="... |
<?php
if (isset($_GET['name']) && isset($_GET['phone'])
&& isset($_GET['age']) && isset($_GET['address'])) {
$name = htmlspecialchars($_GET['name']);
$phone = htmlspecialchars($_GET['phone']);
$age = htmlspecialchars($_GET['age']);
$address = htmlspecialchars($_GET['address']);
echo "<table bord... |
@extends('layouts.frontend')
@section('seo')
<title>{{ $product->name }} | {{ $systemName->name }}</title>
<meta charset="UTF-8">
<meta name="description" content="{{ $product->meta_description }}">
<meta name="keywords" content="{{ $product->meta_keywords }}">
<meta name="viewport" content="width=device-width, initi... |
<?php
namespace App\Repositories;
use Prettus\Repository\Contracts\RepositoryInterface;
/**
* Interface WorkerCategorieRepository
* @package namespace App\Repositories;
*/
interface WorkerCategorieRepository extends RepositoryInterface
{
//
} |
<?php
/**
* COmanage Registry CiviCRM Source Controller
*
* Copyright (C) 2020 Modern Language Association
*
* 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/lice... |
<?php
$host="localhost";
$user="phpmyadmin";
$pass="";
$db="db_perpus";
$mysqli = mysqli_connect($host, $user, $pass, $db);
?> |
@extends('layouts.appAdmin')
@php $active_sidebar = 'vaccine'; @endphp
@section('content')
<section id="admin">
<div class="flex-row-reverse row">
@include('partials.admin.side-bar')
<div class="admin-content col-9">
<div class="container">
@incl... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
/**
* @property int state_id
*/
class Breed extends Model
{
use SoftDeletes;
protected $fillable = [
'name',
'description',
'species_id',
'state_id',
];
/**
... |
<?php
/**
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
*
*/
$lang['userexists'] = 'Ja existeix un altre usuari amb aquest nom.'; |
<?php
/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use common\widgets\Alert;
AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$a... |
<?php
namespace MVC\Views {
imports("System.Text.RegularExpressions.Regex");
imports("Microsoft.VisualBasic.Strings");
/**
* 直接支持php内联标签
*/
class InlineView {
/**
* 内联常量的标记语法为``{#name}``,与变量表达式``{$name}``相似
* 常量标记渲染不需要显式的传递常量值,只需要直接在脚本中定义常量,
* 然后再html视图页面... |
<?php
namespace App\Modules\Admin\Models\Settings;
use App\Bll\Lang;
use App\Modules\Admin\Models\Products\countries_data;
use App\Modules\Admin\Models\Products\Country;
use Illuminate\Database\Eloquent\Model;
class City extends Model
{
protected $table = 'cities';
protected $guarded = [];
public functio... |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddPercentajeToRrhhExtrahoursTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::table('rrhh_extra_hours', function(... |
<!DOCTYPE html>
<html>
<head>
<title>Admin | Dashboard</title>
<!-- meta -->
<?php echo @$_meta; ?>
<!-- css -->
<?php echo @$_css; ?>
<!-- jQuery 2.2.3 -->
<script src="<?php echo base_url(); ?>assets/admin/plugins/jQuery/jquery-2.2.3.min.js"></script>
</head>
<body class="hold-tr... |
<?php
namespace NumberToWords\NumberTransformer;
use NumberToWords\Legacy\Numbers\Words;
class DutchNumberTransformer implements NumberTransformer
{
/**
* @inheritdoc
*/
public function toWords($number)
{
$converter = new Words();
return $converter->transformToWords($number, 'n... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| T... |
<?php declare(strict_types = 1);
use Nextras\Dbal\Connection;
return function (Connection $connection, $dbname) {
$connection->reconnectWithConfig([
'database' => 'tempdb'
] + $connection->getConfig());
$connection->query('DROP DATABASE nextras_orm_test');
$connection->query('CREATE DATABASE nextras_orm_test');... |
<div>
<div class="card">
<h1 class="py-12 ml-4">Actualizar usuario</h1>
</div>
<div class="card w-full">
<div class="card-body w-full">
<div class="form-row">
<div class="form-group col-md-6">
<label for="nombre">Nombre:</label>
... |
<?php
namespace App\Http\Controllers\ManualImport;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\Lead_mkt_type;
use App\Models\Lead_role;
use Carbon\carbon;
class ComboBoxController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
... |
@include('laravel-brickables::admin.form.title')
@include('laravel-brickables::admin.form.content') |
<?php
use DI\Container;
use Slim\Factory\AppFactory;
require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/kernel.php';
$container = new Container();
AppFactory::setContainer($container);
$app = AppFactory::create();
require_once(__DIR__ . '/../src/dependencies.php');
require_once(__DIR__ . '/../src/mi... |
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class Admin extends Authenticatable
{
use Notifiable;
protected $fillable = [
'name', 'email', 'password','isAdmin'
];
/**
* The attributes that should be hidden for arra... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateIncidenciasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('incidencias... |
<?php
/**********************************************************************************************************************
* phpLINQ (https://github.com/mkloubert/phpLINQ) *
* ... |
<!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"><!-- InstanceBegin template="/Templates/employee.dwt.php" codeOutsideHTMLIsLocked="false" -->
<?php
include('conection.php');
if(isset($_GET['Uname']))
{
$... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddColumnPdfCn extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('cns', function (Blue... |
<?php
namespace Stampie\Tests\Mailer;
use Stampie\MessageInterface;
use Stampie\Message\TaggableInterface;
abstract class TaggableMessage implements MessageInterface, TaggableInterface
{
} |
<?php
if(!defined("MEDIAWIKI"))
{
echo("This file is an extension to the MediaWiki software and cannot be used standalone.\n");
die(1);
}
/**
* a simple no frills renderer for JIRA data
*/
class Simple
{
/**
* get the rendered view in string format
*
* @param array data the array of data to be render... |
<?php
require_once('cet.qstprod.model.php');
require_once('cet.qstprod.querylibrary.php');
/**
* MODEL class.
*/
class QSTPRODInformationsModel extends CETCALModel
{
public function gestionEnvoiQstprod($pPK, $pBesoinsDto, $contextMdifGlobal, $pk_mdif)
{
$this->createInformations($contextMdifGlobal ? $pk_md... |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... |
<?php
$uid= $_COOKIE["uid"];
?>
<center>
<h2> Looks Like your profile is incomplete. <br> Please fill it to find a match. <br></h2>
<form id="Register" action="php/addinfo.php" method="get">
<table id="tab">
<tr>
<td>
Enter Name
</td>
<td>
<input type="text" size="30" name="name" placeholder="Name" style="hei... |
@extends('pages.app')
@section('app')
<main>
<section class="intro" style="background-image: url('/./img/hero_contact (1).jpg');">
<div class="container">
<div class="row">
<div class="col-lg-6 col-12">
<div class="intro_text">
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>添加文章</title>
<hdui bootstrap="true"/>
<js file="__GROUP__/static/js/js.js"/>
<js file="__CONTROL_TPL__/js/js.js"/>
<css file="__CONTROL_TPL__/css/css.css"/>
</head>
<body>
<form act... |
<?php
namespace arslanimamutdinov\ISOStandard3166\tests\unit\standards;
use arslanimamutdinov\ISOStandard3166\Country;
use arslanimamutdinov\ISOStandard3166\ISO3166;
use PHPUnit\Framework\TestCase;
/**
* Class ISO3166MATest
* @package arslanimamutdinov\ISOStandard3166\tests\unit
* @group standard-3166
*/
class I... |
<div class="container-fluid bg-light">
<div class="container">
<div class="row mb-4">
<div class="col-md-12">
<h3 class="my-4 text-primary">Ficha de Empresa</h3>
</div>
</div>
</div>
</div>
<?php echo form_open('contactos/edit/'.$contactos_item['id']); ?>
<form>
<div class="container">
<div class="row">
<div clas... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddColumnDateTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('payments', funct... |
<?php
namespace App;
use App\Traits\ModelBaseFunctions;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
class Auction extends Model
{
use ModelBaseFunctions;
private $route='auction';
private $images_link='media/images/auction/';
protected $fillable = ['items','start_date','duration','auc... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class TerciarioProveedor extends Model
{
protected $table = 'terciarias_proveedor';
protected $fillable = [
'tipo', 'razon_social', 'ruc','telefono',
'direccion', 'activo'
];
} |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTicketsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tickets', funct... |
<?php
/**
* Piwik - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
/**
* This file is executed before anything else.
* It checks the minimum PHP version required to run Matomo.
* This file must be compatible PHP4.
*/
$piwik... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Arr; // DÙNG CHO HIỂN THỊ TYPE
class PagesStatic extends Model
{
protected $table = 'statics';
protected $guarded = [''];
protected $type = [
'1' => 'Chính sách mua hàng & thanh toán',
'2' => 'Chính... |
<?php
/**
* <strong>Name : ArrayHelperTest</strong><br>
* <strong>Desc : </strong><br>
*
* PHP version 5.5.22
*
* @category PHP-ZF2-VANITY-URLS
* @package SharedTest\Helper
* @author David Saenz Tagarro <david.saenz.tagarro@gmail.com>
* @copyright 2015 David Saenz Tagarro
* @license Apache 2 License ... |
<?php
function dw_semaphore_test(): void
{
global $wpdb;
// wait to acquire a semaphore
$semaphore = DW_Semaphore::wait('dw_semaphore_test');
// generate ID for testing
$id = random_int(1, 100);
// log start
$wpdb->insert('dw_log', ['entry' => 'start ' . $id], '%s');
// do big critical calculation
... |
<?php
namespace App\Console\Commands;
use GatewayWorker\Register;
use Illuminate\Console\Command;
use Workerman\Worker;
class StartRegister extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'chat:start_reg';
/**
* Th... |
<?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\DICOM;
use JMS\Serializer\Annotation\ExclusionPolicy;... |
<?php
/**
* Contains all client objects for the CustomFieldService
* service.
*
* PHP version 5
*
* Copyright 2014, Google Inc. 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... |
<?php
namespace common\models;
use Yii;
use yii\db\ActiveRecord;
use yii\db\Expression;
/**
* This is the model class for table "persons".
*
* @property int $id
* @property string $firstname
* @property string|null $lastname
* @property string|null $middlename
* @property string|null $phone
* @property strin... |
<?php
namespace frontendMovie\tests\functional;
use frontendMovie\tests\FunctionalTester;
/* @var $scenario \Codeception\Scenario */
class ContactCest
{
public function _before(FunctionalTester $I)
{
$I->amOnPage(['site/contact']);
}
public function checkContact(FunctionalTester $I)
{
... |
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also ... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class ActivityStoreRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
ret... |
<?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\Admin;
use App\Http\Controllers\Controller;
use App\Main;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class IndexController extends Controller
{
public function show(){
/*$masiv = DB::table('mains')
->join('garantiy','mains.garantiy_id... |
<?php
namespace Enqueue\AmqpLib;
use Enqueue\AmqpTools\ConnectionConfig;
use Enqueue\AmqpTools\DelayStrategyAware;
use Enqueue\AmqpTools\DelayStrategyAwareTrait;
use Interop\Amqp\AmqpConnectionFactory as InteropAmqpConnectionFactory;
use PhpAmqpLib\Connection\AbstractConnection;
use PhpAmqpLib\Connection\AMQPLazyConn... |
<?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
/**
* Created by PhpStorm.
* User: user
* Date: 6/5/2020
* Time: 12:36 PM
*/
namespace App\Http\Controllers;
class HRStaffPageController
{
public function HRStaffITAsset()
{
return view('pages.Staff.ITAsset');
}
public function HRStaffIncidentReport()
{
return view('pag... |
@extends('layout.app')
@section('plugin_styles')
<!--begin::Page Vendor Stylesheets(used by this page)-->
<link href="{{asset('assets/plugins/custom/datatables/datatables.bundle.css')}}" rel="stylesheet" type="text/css" />
<!--end::Page Vendor Stylesheets-->
@endsection
@section('toolbar')
<!--begin::... |
<?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 AdminBundle\Controller;
use Knp\Snappy\Pdf;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Co... |
<?php
namespace ClientBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Admin
*
* @ORM\Table(name="admin")
* @ORM\Entity(repositoryClass="ClientBundle\Repository\AdminRepository")
*/
class Admin
{
/**
* @var int
*
* @ORM\Column(name="idAdmin", type="integer")
* @ORM\Id
* @ORM\Ge... |
<?php
namespace Shopsys\FrameworkBundle\Form\Admin\Customer\User;
use Shopsys\FrameworkBundle\Form\Constraints\Email;
use Shopsys\FrameworkBundle\Form\Constraints\FieldsAreNotIdentical;
use Shopsys\FrameworkBundle\Form\Constraints\NotIdenticalToEmailLocalPart;
use Shopsys\FrameworkBundle\Form\DisplayOnlyDomainIconTyp... |
<?php
use Illuminate\Database\Seeder;
use App\Models\Product;
class ProductSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
// DB::table('products')->insert([
// 'title' => 'hello-e',
// 'slug'=>'hello',
// ... |
<?php
namespace Modules\Authorization\Role\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Resources\Json\AnonymousResourceCollection;
use Modules\Authorization\Role\Contracts\Repositories\RoleRepositoryInterface;
use Modules\Authorization\Role\Resources\RoleResource;
class RoleIndex... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| AUTO-LOADER
| -------------------------------------------------------------------
| This file specifies which systems should be loaded by default.
|
| In order to keep the fr... |
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... |
<?php
namespace App\Http\Admin\Order;
use Illuminate\Support\Facades\DB;
use Illuminate\Http\Request;
use App\Http\Controllers\CommonController;
use Illuminate\Support\Facades\Validator;
use App\Models\Shop\ShopOrder;
use App\Models\Shop\ShopOrderList;
use App\Models\Shop\ShopOrderCarriage;
use App\Models\Shop\ShopOrde... |
<?php
namespace Home\Controller;
use Think\Controller;
class PageController extends BaseController {
//展示某个项目的单个页面
public function index(){
import("Vendor.Parsedown.Parsedown");
$page_id = I("page_id/d");
$page = D("Page")->where(" page_id = '$page_id' ")->find();
$login_user = ... |
<?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
/**
* Created by PhpStorm.
* User: zein
* Date: 8/5/14
* Time: 10:46 AM
*/
namespace common\models\query;
use yii\db\ActiveQuery;
class TimelineEventQuery extends ActiveQuery
{
public function today()
{
$this->andWhere(['>=', 'created_at', strtotime('today midnight')]);
return $thi... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Admin extends Model
{
protected $table="admin";
protected $primaryKey = "admin_id";
public $timestamps = false;
protected $guarded = [];
} |
<?php
namespace app\modules\direktur;
class DirekturModule extends \yii\base\Module
{
public $controllerNamespace = 'app\modules\direktur\controllers';
public function init()
{
parent::init();
// custom initialization code goes here
}
} |
<?php
$errors = array();
if (isset($_POST['submit'])) {
// submitt button is clicked
$file_name = $_FILES['upload']['name'];
$file_type = $_FILES['upload']['type'];
$file_size = $_FILES['upload']['size'];
$temp_name = $_FILES['upload']['tmp_name'];
$upload_to = 'images/';
// checking the file type... |
<?php
/**
* DiscuzX Convert
*
* $Id: common_member_log.php 10469 2010-05-11 09:12:14Z monkey $
*/
$curprg = basename(__FILE__);
$table_source = $db_source->tablepre.'userlog';
$table_target = $db_target->tablepre.'common_member_log';
$start = getgpc('start');
$start = empty($start) ? 0 : intval($start);
$limit ... |
<?php $__env->startSection('content'); ?><p>If you're overwhelmed with cluttered countertops, jam-packed cupboards, disorganised dressing tables and wardrobes, Amazon has a ton of storage solutions that'll help cut down on the chaos.</p>
<p>From clothes hangers that save space in your wardrobe to fridge trays for extr... |
--TEST--
Bug #65481 (shutdown segfault due to serialize)
--FILE--
<?php
class A {
public $e = array();
}
class Token implements \Serializable {
public function serialize()
{
$c = new A;
for ($i = 0; $i < 4; $i++)
{
$e = new A;
$c->e[] = $e;
$e->... |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel app\modules\admin\models\DescriberSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Получатели';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="describer-index">
<h1>... |
<?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://doc.hyperf.io
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace Hyperf\Watcher\Ast;
use PhpParser\Node;
use PhpParser\NodeVisitorAbst... |
<?php
namespace App\Models\Vistas;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Vw_doctor_consultorio extends Model
{
use HasFactory;
protected $table='vw_doctor_consultorio';
} |
<!doctype html>
<html lang="en">
<head>
<?php $this->load->view('admin/include/head');?>
<!-- datatable-css -->
<link rel="stylesheet" href="<?= base_url()?>assets/admin/vendor/jquery-datatable/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="<?= base_url()?>assets/admin/vendor/jq... |
<div class="docs-middle">
<div class="container container-center">
<div class="row" data-row-margin>
<?php get_sidebar('components'); ?>
<div class="docs-main col-9-12-medium">
<article class="article" itemscope itemtype="http://schema.org/Article">
<h1 class="article-title" itemprop="headline">Dynami... |
@extends('admin.layouts.index')
@section('content')
<!-- Page Content -->
<div id="page-wrapper">
<div class="container-fluid">
<div class="row">
@if (session('thongbao'))
<div class="alert alert-danger">
{{session('thongbaoloi'... |
<?php namespace Modules\Contentblockimage\Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
class ContentBlockImageDatabaseSeeder extends Seeder {
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Model::unguard();
// $this->call("Othe... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUserImageTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_image', ... |
<?php
namespace AlibabaCloud\VoiceNavigator;
/**
* @method string getBeginTimeLeftRange()
* @method $this withBeginTimeLeftRange($value)
* @method string getTimeUnit()
* @method $this withTimeUnit($value)
* @method string getInstanceId()
* @method $this withInstanceId($value)
* @method string getBeginTimeRight... |
<?php
use App\Level;
use Illuminate\Database\Seeder;
class LevelTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Level::create([
'name' => 'bronze',
'level' => '1',
'color' => '#CD7F32',
... |
<?php
namespace App\Http\Controllers\Inventario;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Models\Inventario\SubGrupo;
use App\Models\Tesoreria\ReteFuente;
use DB, Log, Datatables, Cache;
class SubGrupoController extends Controller
{
/**
* Display a li... |
<?php
/*
* $Id$
*
* 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 CO... |
<?php
namespace App\Models\Floweraura;
use Illuminate\Database\Eloquent\Model;
class Nodes extends FAModel
{
//
protected $table = 'node';
protected $primaryKey = 'nid';
} |
<?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\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTreatmentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('treatments',... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.