text
stringlengths
2
1.03M
<?php /** * Created by IntelliJ IDEA. * User: ueda * Date: 15/10/06 * Time: 21:13 */ namespace app\modules\manage\models; use app\common\Helper\JmUtils; use app\models\manage\AdminMaster; use app\models\manage\ClientMaster; use app\models\manage\CorpMaster; use Yii; use yii\base\NotSupportedException; use yii\w...
<?php namespace BackendBundle\Controller; use BackendBundle\Entity\Serie; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Component\HttpFoundation\Request; use Symfony\Compone...
<?php /** * Social Login functions * * @package snax **/ require_once plugin_dir_path( __FILE__ ) . 'lib/class-snax-social-login-logger.php'; require_once plugin_dir_path( __FILE__ ) . 'lib/class-snax-social-login.php'; add_action( 'snax_login_form_top', 'snax_slog_render_links_in_snax_login_form' ); add_acti...
<?php namespace app\admin\controller; use think\Controller; class Login extends Controller { /** * 登陆action * @return mixed|string */ public function login() { if (request()->isPost()){ // 获取上传的表单 $datas = input('post.'); // 调用极验验证码进行二次验证 ...
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2019-10-13 0013 * Time: 22:29 */ namespace app\admin\validate; use think\Validate; class Brand extends Validate { /** * 定义验证规则 * 格式:'字段名' => ['规则1','规则2'...] * * @var array */ protected $rule = [ "brand_name"=>"...
<?php namespace Backend\Classes; use System\Classes\PluginManager; use October\Rain\Auth\Manager as RainAuthManager; /** * Back-end authentication manager. * * @package october\backend * @author Alexey Bobkov, Samuel Georges */ class AuthManager extends RainAuthManager { protected static $instance; prot...
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to plac...
<?php $nome = utf8_encode ( htmlspecialchars ( $_POST ['name'] ) ); $sobrenome = utf8_encode ( htmlspecialchars ( $_POST ['sname'] ) ); $endereco = utf8_encode ( htmlspecialchars ( $_POST ['end'] ) ); $cidade = utf8_encode ( htmlspecialchars ( $_POST ['cidade'] ) ); $estado = utf8_encode ( htmlspecialchars ( $_POST [...
@extends('layout-master') @section('content') <!-- Page Heading --> <h1 class="h3 mb-4 text-gray-800">Buttons</h1> <ul> @foreach ($names as $information) <li>{{ $information['name'] }}</li> @endforeach </ul> @endsection {{-- <!DOCTYPE html>...
<!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>Modern Business - Start Bootstr...
<?php namespace App\Listeners; use App\Events\CategorySaving as EventCategorySaving; class CategorySaving { /** * Handle the event. * * @param EventCategorySaving|object $event * @return void */ public function handle(EventCategorySaving $event) { $event->model->slug = st...
<?php /** * MIT License. This file is part of the Propel package. * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Propel\Tests\Generator\Builder\Util; use Propel\Generator\Builder\Util\SchemaReader; use Propel\Generator\Pla...
<?php //line 681 ... $array = array(array(7,8,9),1,2,3,array(4,5,6)); $arrayIterator = new ArrayIterator($array); try { $test = new CachingIterator($arrayIterator, 0); $test = new CachingIterator($arrayIterator, 1); $test = new CachingIterator($arrayIterator, 2); $test = new CachingIterator($arrayIterator, 3); // t...
<?php namespace SearchBundle\DataFixtures\ORM; use Doctrine\Common\DataFixtures\FixtureInterface; use Doctrine\Common\Persistence\ObjectManager; use SearchBundle\Entity\Depot; use SearchBundle\Entity\Produit; use SearchBundle\Entity\Tag; class loadEcoSearch implements FixtureInterface { /** * Fait la créat...
<?php /** * * Penalty Cards. An extension for the phpBB Forum Software package. * * @copyright (c) 2018, Alex de Kruijff, http://alex.kruijff.org * @license Original BSD licence * */ namespace akruijff\penalty_cards\migrations; class install_mcp_module extends \phpbb\db\migration\migration { public function e...
{{-- button --}} <button type="button" class="btn btn- btn-success" data-toggle="modal" data-target="#edit{{ $o->id }}"> <i class="fas fa-edit"></i> </button> <div class="modal fade" id="edit{{ $o->id }}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-...
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sylius\Component\Channel\Context\RequestBased; use Symfony\Component\HttpFoundation\Request...
<x-layout> <div class="container"> <h1 class="my-md-5 my-4">Редактировать материал</h1> <div class="row"> <div class="col-lg-5 col-md-8"> <form action="{{ URL::to('materials/' . $material->id) }}" method="POST"> @method('PUT') @csrf...
<?php namespace App\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Illuminate\Contracts\Queue\ShouldQueue; class MonMail extends Mailable { use Queueable, SerializesModels; /** * Create a new message instance. * * @return void ...
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); /** @var array $arParams */ /** @var array $arResult */ /** @global CMain $APPLICATION */ /** @global CUser $USER */ /** @global CDatabase $DB */ /** @var CBitrixComponentTemplate $this */ /** @var string $templateName */ /** @var string $templateF...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class Claps extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('claps', function (Blueprint ...
<?php namespace App\Http\Controllers; use Session; use Request; use DB; use CRUDBooster; class AdminSettlementController extends \crocodicstudio\crudbooster\controllers\CBController { public function cbInit() { # START CONFIGURATION DO NOT REMOVE THIS LINE $this->title_field = "id"; $this->limit ...
<?php namespace app\controllers; use Yii; use app\models\Pegawai; use app\models\PegawaiSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * PegawaiController implements the CRUD actions for Pegawai model. */ class PegawaiController extends BaseController { /** ...
<?php use App\Mail\NewUserWelcomeMail; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Route; // FRONT rute Route::get('/author', 'FrontendController@author'); Route::get('/home', 'FrontendController@index')->name('home'); Route::get('/login', 'SessionsController@create')->middleware('denyAcces...
<?php namespace frontend\models; use common\helpers\ClassListHelper; use frontend\models\query\EventClassQuery; use Yii; /** * This is the model class for table "event_class". * * @property integer $id * @property string $class_name * @property string $event_name * @property string $classNameEventName * * @...
<?php /** * Pure-PHP PKCS#1 (v2.1) compliant implementation of RSA. * * PHP versions 4 and 5 * * Here's an example of how to encrypt and decrypt text with this library: * <code> * <?php * include 'Crypt/RSA.php'; * * $rsa = new Crypt_RSA(); * extract($rsa->createKey()); * * $plaintext = 'terra...
<?php use Maatwebsite\Excel\Excel; return [ 'exports' => [ /* |-------------------------------------------------------------------------- | Chunk size |-------------------------------------------------------------------------- | | When using FromQuery, the query is...
<?php namespace AppBundle\Controller; use AppBundle\Entity\Origen; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;use Symfony\Component\HttpFoundation\Request; /** * Origen controller. ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class HolaMon extends Model { protected $string = "Hello Word"; /** * @return string */ public function getString() { return $this->string; } }
{!! Form::open(array('route' => 'front.fb', 'class' => '')) !!} <div> <label class="email">Your name</label> {!! Form::text('name', null, ['class' => 'input-text', 'placeholder'=>"Your name"]) !!} </div><div> <label class="email">Your email</label> {!! Form::text('email...
<?php /* +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2017 | +---------------------...
<!-- ==================== --> <?php if (!isset($_SESSION['user'])) { header("Location: login.php"); } $koneksi = mysqli_connect('localhost:3307', 'root', '', 'warungin'); ?> <!-- ==================== --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" conten...
<?php return [ /* |-------------------------------------------------------------------------- | Cross-Origin Resource Sharing (CORS) Configuration |-------------------------------------------------------------------------- | | Here you may configure your settings for cross-origin resource shar...
<?php namespace App\Strategy; use Articus\DataTransfer\Strategy\StrategyInterface; class DateTime implements StrategyInterface { const DATE_TIME_FORMAT = \DateTime::RFC3339; /** * @inheritDoc */ public function extract($objectValue, $object = null) { $result = null; if ($ob...
<!-- Start datatable js --> <script src="<?php echo e(asset('assets/backend/js/jquery.dataTables.js')); ?>"></script> <script src="<?php echo e(asset('assets/backend/js/jquery.dataTables.min.js')); ?>"></script> <script src="<?php echo e(asset('assets/backend/js/dataTables.bootstrap4.min.js')); ?>"></script> <script sr...
<?php $user_id = $this->session->userdata('user_id'); if (!$user_id) { // redirect('user/login_view'); } ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>User Profile Dashboard-CodeIgniter Login Registration</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php $DOMAIN='candahar.com/SmartHotel/public'; ?> <title>Smart Hotel Document API</title> <!-- Neaty HTML Template http://w...
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Providers\RouteServiceProvider; use App\User; use Illuminate\Foundation\Auth\RegistersUsers; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Validator; use Illuminate\Http\Request; class RegisterController ext...
<?php // * @copyright OPENCART.PRO 2011 - 2017. // * @forum http://forum.opencart.pro // * @source See SOURCE.txt for source and other copyright. // * @license GNU General Public License version 3; see LICENSE.txt class ControllerExtensionFeedGoogleBase extends Controller { public function index() { if ($this->con...
<?hh // partial /** * Perform a regular expression search and replace. * * preg_filter() is identical to preg_replace() except it only returns the * (possibly transformed) subjects where there was a match. For details * about how this function works, read the preg_replace() documentation. * * @return mixed - pr...
<?php namespace OpenActive\Models\SchemaOrg; /** * */ class BankAccount extends \OpenActive\Models\SchemaOrg\FinancialProduct { /** * @return string[]|null */ public static function getType() { return "schema:BankAccount"; } public static function fieldList() { $fields...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\restaurant; use Illuminate\Support\Facades\DB; class RestaurantController extends Controller { private $restaurant; public function __construct(restaurant $restaurant) { $this->restaurant = $restaurant; } /*...
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class UserLevel extends Model { use SoftDeletes; protected $guarded = ['id', 'created_at', 'updated_at', 'deleted_at']; public function users() { return $this->hasMany('App\User'); ...
@extends('layouts.app') @section('content') <signup /> @endsection <script> import Signup from "../../js/components/signup"; export default { components: {Signup} } </script>
<?php namespace App\Http\Controllers; use App\Models\PageItems; use Illuminate\Http\Request; use App\Models\Song; use Illuminate\Support\Facades\DB; class SongsController extends Controller { /** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response *...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <x-links/> <style> #img404{ position: absolute...
@include('../thema.header') <div class="right_col" role="main"> <div class=""> <div class="row"> <div class="page-title"> <div class="title_left"> <h3>Ofrenda</h3> </div> </div> </div> <div class="clearfix"> <div class="con...
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class EsAdmin { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handl...
<?php /** * Constant Contact PHP Class * * This class is a wrapper for all methods provided in the Constant Contact API. * Please do not edit this file directly, if you want to change the behaviour please extend the class: @link http://php.net/manual/en/keyword.extends.php * * This code is available under a GPL ...
<?php /* @var $this yii\web\View */ ?> <a href="/goods-category/add" class="btn btn-primary btn-xs">添加</a> <table class="table table-bordered"> <tr> <th>ID</th> <th>名称</th> <th>操作</th> </tr> <?php foreach ($model as $v):?> <tr> <td><?=$v['id']?></td> <td><?=st...
<?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); namespace PhpBehavior\Tests\Unit\BehaviorTestCase\AbstractClassBehaviorTestCase; use PhpBehavior\BehaviorTestCase\AbstractClassBehaviorTestCase; /** * @covers \PhpBehavior\BehaviorTestCase\AbstractClassBehaviorTestCase::setUpBeforeClass * @covers \PhpBehavior\BehaviorTestCase\Abstra...
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle ...
<?php return [ /* |-------------------------------------------------------------------------- | Default Filesystem Disk |-------------------------------------------------------------------------- | | Here you may specify the default filesystem disk that should be used | by the framework. T...
@extends('layouts.master') @section('title') Account @endsection @section('content') <section class="row new-post"> <div class="col-md-6 col-md-offset-3"> <header><h3>Your Account</h3></header> <form action="{{ route('account.save') }}" method="post" enctype="multipart/form-data"> ...
<?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 Academic Free License version 3.0 * that is bundled with this package in the file LICENSE.md. * It is als...
<?php use Illuminate\Support\Facades\Route; use App\Http\Controllers\CustomerController; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your applica...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCruiseRoomsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('cruise_room...
<x-app-layout> <x-auth-card> <x-slot name="logo"> <h1 class="text-3xl">Cadastrar uma nova transição</h1> </x-slot> <!-- Validation Errors --> <x-auth-validation-errors class="mb-4" :errors="$errors" /> <form class="flex flex-col justify-center items-center" meth...
<?php declare(strict_types=1); namespace Symplify\PHPStanRules\Rules; use PhpParser\Node; use PhpParser\Node\Expr\ArrayDimFetch; use PHPStan\Analyser\Scope; use Symplify\Astral\Naming\SimpleNameResolver; use Symplify\PHPStanRules\NodeAnalyzer\Nette\NetteTypeAnalyzer; use Symplify\RuleDocGenerator\ValueObject\CodeSam...
<?php // Theme Constants // ============================================================================= define( 'X_VERSION', '5.0' ); define( 'X_SLUG', 'x' ); define( 'X_TITLE', 'X' ); define( 'X_I18N_PATH', X_TEMPLATE_PATH . '/framework/functions/x/i18n'); // Label Replacements // ==============================...
<?php /** * @package Grav\Core * * @copyright Copyright (C) 2015 - 2019 Trilby Media, LLC. All rights reserved. * @license MIT License; see LICENSE file for details. */ // Some standard defines define('GRAV', true); define('GRAV_VERSION', '1.6.11'); define('GRAV_TESTING', false); define('DS', '/'); if (!d...
<?php /** * Created by PhpStorm. * User: Bizy Tech * Date: 12/2/2018 * Time: 2:53 PM */ class Property_type extends MY_Model{ const DB_TABLE = 'property_types'; const DB_TABLE_PK = 'id'; public $type_name; public $description; public $created_by; public function property_type_options(){ ...
<?php $params = array_merge( require(__DIR__ . '/../../common/config/params.php'), require(__DIR__ . '/../../common/config/params-local.php'), require(__DIR__ . '/params.php'), require(__DIR__ . '/params-local.php') ); return [ 'id' => 'app-frontend', 'basePath' => dirname(__DIR__), 'bootst...
@extends('frontend.layouts.master') @section('page-content') @endsection
<?php namespace Virtphp\Test\Mock; class ProcessMock { public $command; public $output = false; public $runReturn = 0; public function __construct($command, $output = false, $runReturn = 0) { $this->command = $command; $this->output = $output; $this->runReturn = $runReturn;...
<?php session_start(); include "make_connection.php"; if(isset($_POST['submit'])) { $text1=$_POST['text1']; $text2=$_POST['text2']; $user=$_POST['username']; $pwd=$_POST['password']; $sql1="select password from register where email='$user'"; $result=mysqli_query($conn,$sql1); if($row=mysqli_fetch_array($result)...
@extends('layouts.admin_layout') @section('content') <div class="content-wrapper"> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1>Users Management</h1> ...
<!----------------------------- script buscador ---------------------------------------> <script src="<?php echo base_url('resources/js/jquery-2.2.3.min.js'); ?>" type="text/javascript"></script> <script src="<?php echo base_url('resources/js/funciones.js'); ?>" type="text/javascript"></script> <script type="text/javas...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>AdminLTE 2 | @yield('title')</title> <!-- Tell the browser to be responsive to screen width --> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewpor...
<?php use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { //$this->call(AdminsTableSeeder::class); // $this->call(ListingsTableSeeder::class); //$this->call(CategoriesTab...
<?php namespace Acme\Parse; use Acme\Parse\Exceptions\UnrecognizedType; class Field { /** * @param $parseString * @return array|mixed * @throws UnrecognizedType */ public function parse($parseString) { $chunks = $this->extractIntoChunks($parseString); $parseResult = ...
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?> <table width="1440px" class="list"> <tr><td class='H' align="center" colspan="6"><h3>往来单位欠款表<h3></td></tr> </table> <table width="1000px" class="list" border="1"> <tr> <th width="80">行号</th> <t...
<?php if(!isset($params['content-id']) or $params['content-id'] == 0){ return; } $hideempty = false; if(isset($params['hide-empty'])){ $hideempty = $params['hide-empty']; } $data = content_data($params['content-id']); $title = false; $email = false; $data = content_data($params['content-id']); if(isset($data['tea...
<!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> <h1><?php echo $title; ?></h1> ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Tasks extends Model { use HasFactory; protected $fillable = [ 'title', 'description', 'attachment', 'type_id', 'status_id', 'user_i...
<?php namespace Overtrue\LaravelSaml; use Illuminate\Http\Request; use Illuminate\Support\Facades\URL; use Illuminate\Support\Fluent; use JetBrains\PhpStorm\Pure; use OneLogin\Saml2\Auth; /** * @method string getNameIdFormat() * @method string getNameIdNameQualifier() * @method string getNameIdSPNameQualifier() ...
<?php namespace Database\Seeders; use App\Models\Product; use Illuminate\Database\Seeder; class ProductsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $data = [ [ 'name' => 'Produto Teste', ...
@extends ('layout.Admin') @section ('contenido') <div class="row"> <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12"> <h3>Listado <a href="form_004_7/create"><button class="btn btn-success">Nuevo</button></a></h3> @include('BienestarUniversitario.form_004_7.search') </div> </div> <div class="row"> <div class="c...
@extends('backends.templates.master') @section('title', __('Nhóm thiết bị')) @section('content') <div id="list-events" class="content-wrapper events"> <section class="content"> <div class="head container"> <h1 class="title">{{ __('Nhóm thiết bị') }}</h1> </div> <div class="main"> ...
<?php use Illuminate\Database\Seeder; use App\Role; class RoleTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { // $role_user= new Role(); $role_user->name='User'; $role_user->description='A normal us...
<?php namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\User; use App\model\Role; use App\model\Permission; use Zizaco\Entrust\Entrust; use Zizaco\Entrust\Traits\EntrustRoleTrait; use Zizaco\Entrust\Traits\EntrustPermissionTrait; class EmployeeController ...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Foundation\Auth\User as Authenticatable; use Tymon\JWTAuth\Contracts\JWTSubject; use App\Models\{ Posts, PostLikes, CommentLikes, Comments, Favorites, Messages }; class Members extends Authenticatable implement...
<?php declare(strict_types=1); namespace MsgPhp\User\Event; use MsgPhp\User\User; /** * @author Roland Franssen <franssen.roland@gmail.com> */ class UserPasswordRequestCanceled { /** * @var User */ public $user; public function __construct(User $user) { $this->user = $user; ...
<?php namespace werx\Forms; /** * Class SelectState * @package werx\Forms * @method SelectState style($style) CSS Style Attributes * @method SelectState class($class) CSS Classes to apply * @method SelectState value($value) Default Value * @method SelectState id($id) Element Id * @method SelectState name($name...
<?php namespace test\output; require_once __DIR__ . '/../../vendor/autoload.php'; use bitcodin\FtpOutputConfig; use bitcodin\Output; class FtpOutputTest extends AbstractOutputTest { public function __construct() { parent::__construct(); } /** ...
<?php namespace App\Models; class Upvote extends Model { protected $fillable = ['topic_id', 'user_id']; protected $table = 'topics_upvotes'; public function topic() { return $this->belongsTo(Topic::class); } public function user() { return $this->belongsTo(User::class); ...
<?php declare(strict_types=1); namespace DoctrineMigrations; use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; /** * Auto-generated Migration: Please modify to your needs! */ final class Version20210517085125 extends AbstractMigration { public function getDescription(): string { ...
<?php // Is there any input? if (array_key_exists("d", $_GET) && $_GET[ 'd' ] != null) { // Feedback for end user $html .= '<pre>Hello ' . $_GET[ 'd' ] . '</pre>'; }
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateSuppliersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('suppliers', f...
<!DOCTYPE html> <html> <head> <meta content='' name='description'> <meta charset='UTF-8'> <meta content='True' name='HandheldFriendly'> <meta content='width=device-width, initial-scale=1.0' name='viewport'> <title><?php echo $title?> - 管理后台 - <?php echo $settings['site_name']?></title> <?php $this->load->view ( 'com...
<?php require_once("../../app/views/dashboard/templates/page.class.php"); Page::templateHeader(""); require_once("../../app/controllers/dashboard/cuenta/login_controller.php"); Page::templateFooter(); ?>
<?php /** * BusinessLogicServiceTaskProgressRequestTest * * PHP version 5 * * @category Class * @package Alfaview * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen */ /** * businessLogicService/businessLogicService.proto * * No description provided (generated by S...
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; use yii\helpers\Url; use yii\helpers\StringHelper; /* @var $this yii\web\View */ /* @var $model common\models\Ads */ $dataEnd = strtotime('+30 days', $model->created_at); $dataEnd = gmdate("Y-m-d", $dataEnd); $urlPhoto = "img/Catalog/empty.png"; if($model->prod...
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use App\Models\Brand; use Illuminate\Http\Request; use Illuminate\Support\Facades\Redirect; use Inertia\Inertia; class BrandController extends Controller { public function index() { $brands = Brand::orderBy('id', 'desc...
@extends('layouts.admin_app') @section('content') <div class="container"> <div class="row mt-4"> {{-- <div class="col-lg-3 mb-lg-0 mb-4"> <p class="main-title font-weight-bold">Личные данные</p> <p class="info-text mb-0">ФИО</p> <p class="font-weight-bold" style="font-size: 16px;">{{$profile_data["user"]->...
<?php // GENERATED CODE -- DO NOT EDIT! // Original file comments: // Copyright 2021 Google LLC // // 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/L...
<?php /********************************************************************************************************************** * phpLINQ (https://github.com/mkloubert/phpLINQ) * * ...
<?php namespace backend\modules\courseFiles\models; use Yii; use backend\modules\teachingLoad\models\CourseOffered; /** * This is the model class for table "cf_lec_cancel_class". * * @property int $id * @property int $lecture_id * @property string $path_file */ class CoordinatorAssessResultFile extends \yii\db...
<?php namespace App\Http\Controllers\Dashboard; use App\Http\Controllers\Controller; use App\Http\Requests\Dashboard\MyOrder\UpdateMyOrderRequest; use Illuminate\Http\Request; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Facades\DB; use Symfony\Component\HttpFoundation\Response; use File; use Aut...