text
stringlengths
2
1.03M
<?php /** * @file Cfnc_varsion.php * @brief show varsion * @author simpart * @note MIT License */ namespace fnc\com; /*** class ***/ class Version extends \fnc\rle\ExtFunc implements \fnc\rle\InfFunc { /** * show varsion */ public function exec() { try { if( 0 === strcmp...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * Format class * Help convert between various formats such as XML, JSON, CSV, etc. * * @author Phil Sturgeon, Chris Kacerguis, @softwarespot * @license http://www.dbad-license.org/ */ class Format { /** * Array output forma...
<?php namespace IFCPHP\IFC4\Entity; use IFCPHP\IFC4 as IFC; class IfcPresentationLayerWithStyle extends IfcPresentationLayerAssignment{ static public $elementName = 'IFCPRESENTATIONLAYERWITHSTYLE'; static public $translationFR = 'Assignation de calque avec style'; static public $params = [ [ 'name' => 'Nam...
<?php namespace App\Providers; use Config; use Illuminate\Cache\RateLimiting\Limit; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; use Illuminate\Http\Request; use Illuminate\Support\Facades\RateLimiter; use Illuminate\Support\Facades\Route; class RouteServiceProvider extends Se...
<?php use yii\helpers\Html; use yii\helpers\Url; use yii\grid\GridView; use mdm\admin\components\Helper; use backend\models\StoreFollow; /* @var $this yii\web\View */ /* @var $searchModel backend\models\StoreFollow */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = Yii::t('common','美容院跟进列表'); $th...
<?php namespace cii\fields; use Yii; class UrlField extends TextField { public function rules() { return [ [['value'], 'url'], [['value'], 'string', 'max' => 255] ]; } public function getView($model) { return Yii::$app->formatter->asUrl($this->getRaw($model)); } public function getEditabl...
<?php namespace App\Http\Livewire\Admin; use App\Models\Category; use App\Models\HomeCategory; use Livewire\Component; class AdminHomeCategoryComponent extends Component { public $selected_categories = []; public $numberofproducts; public function mount() { $category = HomeCategory::find(1)...
<?php namespace App\Enums; use BenSampo\Enum\Enum; final class ReligionType extends Enum { const Buddhist = 'Buddhist'; const Christian = 'Christian'; const Hindu = 'Hindu'; const Jain = 'Jain'; const Muslim = 'Muslim'; const Sikh = 'Sikh'; const Others = 'Others'; }
<?php declare(strict_types = 1); namespace Isfett\WowClassicHunterMeleeWeavingEfficiency\Tests\Unit\Node\Visitor\MagicNumber; use Isfett\WowClassicHunterMeleeWeavingEfficiency\Node\Visitor\MagicNumber\SwitchCaseVisitor; use Isfett\WowClassicHunterMeleeWeavingEfficiency\Tests\Unit\Node\AbstractNodeTestCase; use PhpPar...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateReatingTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('reating', funct...
<?php namespace Goodby\CSV\Import\Tests\Protocol; use Mockery as m; /** * unit test for CSV Lexer */ class LexerTest extends \PHPUnit_Framework_TestCase { public function testInterface() { $lexer = m::mock('\Goodby\CSV\Import\Protocol\LexerInterface'); $interpreter = m::mock('\Goodby\CSV\Im...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Appointment_model extends CI_Model { // Get latlong from address using curl function getGoogleMapTravelMode($mode,$source,$destination,$disLat="",$distLong=""){ $lat = $this->session->userdata('lat'); $long = $this->s...
<?php namespace App\Pesapal; class OAuthToken { // access tokens and request tokens public $key; public $secret; /** * key = the token * secret = the token secret */ function __construct($key, $secret) { $this->key = $key; $this->secret = $secret; } /** ...
<?php namespace Spatie\Permission\Commands; use Illuminate\Console\Command; use Spatie\Permission\Contracts\Permission as PermissionContract; class CreatePermission extends Command { protected $signature = 'permission:create-permission {name : The name of the permission} {guard?...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Http\JsonResponse; use App\Models\Book; use App\Models\Publisher; class BookController extends Controller { public function __construct() { // } /** * Display a listing of the resource. * * @retur...
<?php namespace Maba\Bundle\GentleForceBundle\Service\Strategy; use Maba\Bundle\GentleForceBundle\Listener\CompositeIncreaseResult; use Maba\Bundle\GentleForceBundle\Service\ResponseModifyingStrategyInterface; use Maba\GentleForce\IncreaseResult; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Ro...
<x-app-layout> <x-slot name="header"> <h2 class="font-semibold text-xl text-gray-800 leading-tight"> {{ __('Dashboard') }} </h2> </x-slot> <div class="py-12"> <div class="max-w-7xl mx-auto sm:px-6 lg:px-8"> <div class="bg-white overflow-hidden shadow-sm sm:ro...
<?php namespace App\Controller; use App\Entity\User; use App\Entity\Groupe; use App\Entity\Apprenant; use App\Entity\Promotion; use App\Repository\LangueRepository; use App\Repository\FabriqueRepository; use App\Repository\UserProfilRepository; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\VarDumper\...
<?php $form_post_success = -1; if( $_SERVER['REQUEST_METHOD'] == 'POST' ) { $first_name_error = 0; $last_name_error = 0; $father_name_error = 0; $email_error = 0; $password_error = 0; if (isset($_POST['first_name']) && !empty($_POST['first_name'])) { $first_name = $_POST['first_name'...
<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class Header extends Model { protected $fillable = [ 'titulo', 'subtitulo' ]; public $createRules = [ 'titulo' => 'required|max:255|', 'subtitulo' => 'max:255|' ]; }
<?php declare(strict_types=1); namespace Flow\ETL\Async\Tests\Unit\Client; use Flow\ETL\Async\Client\ClientProtocol; use Flow\ETL\Async\Client\Processor; use Flow\ETL\Async\Client\Server; use Flow\ETL\Async\Communication\Message; use Flow\ETL\Pipeline\Pipes; use Flow\ETL\Row; use Flow\ETL\Rows; use PHPUnit\Framework...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class library extends CI_Controller { public function __construct(){ parent::__construct(); if (!$this->session->userdata('userlogin')) { redirect('user/login'); } } public function index() { $this->home(); } public function ho...
<?php /** * $Id: SimpleTestSummaryResultFormatter.php 905 2010-10-05 16:28:03Z mrook $ * * 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 ...
@extends('layouts.backend.app') @section('title','Category') @push('css') @endpush @section('content') <div class="row clearfix"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <div class="card"> <div class="header"> ...
<?php $__env->startSection('main'); ?> <form action="<?php echo e(route('config.store')); ?>" method="POST" enctype="multipart/form-data"> <?php echo csrf_field(); ?> <label for="exampleInputEmail1">Type</label> <select id="type" onchange="type_config()" style="width: 20%" class="form-contro...
<?php namespace App\Http\Middleware; use App\Providers\RouteServiceProvider; use Closure; use Illuminate\Support\Facades\Auth; class RedirectIfAuthenticated { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @param string|null ...
<?php get_template_part('templates/head'); ?> <body <?php body_class('home-page'); ?>> <!--[if lt IE 8]> <div class="alert alert-warning"> <?php _e('You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.', 'roots'); ...
<?php namespace hireme\Http\Middleware; use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier; class VerifyCsrfToken extends BaseVerifier { /** * The URIs that should be excluded from CSRF verification. * * @var array */ protected $except = [ // ]; }
<?php use App\Http\Controllers\UserController; use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register A...
<?php /** * Created by PHPStorm. * User: Serhii Kondratovec * Email: sergey@spheremall.com * Date: 10/22/2017 * Time: 7:36 PM */ namespace SphereMall\MS\Lib\Mappers; use SphereMall\MS\Entities\PaymentProvider; /** * Class PaymentProvidersMapper * @package SphereMall\MS\Lib\Mappers */ class PaymentProvidersM...
<?php //============================================================+ // File name : tcpdf_config.php // Begin : 2004-06-11 // Last Update : 2011-04-15 // // Description : Alternative configuration file for TCPDF. // Author : Nicola Asuni - Tecnick.com LTD - Manor Coach House, Church Hill, Aldershot, Hants...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\CreditCard; use App\Models\Car; use App\Models\Category; class HalkBankController extends Controller { // function credit_cart() { $data = CreditCard::all(); return view('halk_bank.pages.credit_cart',co...
<?php $control = 1; ?> @if(count($scholars)>0) <table class="table table-condensed"> <thead> <tr> <th>#</th> <th>ID Number</th> <th>Name</th> <th>Program Enrolled</th> <th>Level</th> <th>Tuition %</th> <th>Misc %</th> ...
<?php /** * Controller genrated using LaraAdmin * Help: http://laraadmin.com */ namespace App\Http\Controllers\LA; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Http\Requests; use Auth; use DB; use Validator; use Datatables; use Collective\Html\FormFacade as Form; use Dwij\Laraadmin\Mod...
<?php namespace app\index\controller; use app\index\controller\Base; class Userorderlist extends Base{ public function index(){ // $res=db('applist')->alias('a') // ->join('orderlist o','a.id=o.appId') // ->where('a.userId',session('uid')) ...
<?php use common\helpers\Html; use jianyan\treegrid\TreeGrid; $this->title = 'TreeGrid 无限极分类'; $this->params['breadcrumbs'][] = ['label' => $this->title, 'url' => ['index']]; ?> <div class="row"> <div class="col-12 col-xs-12"> <div class="box"> <div class="box-header"> <h3 cla...
<?= $this->extend('layouts/admin'); ?> <?= $this->section('content'); ?> <input type="checkbox" name="check" id="check"> <label for="check"> <div class="cancel"> <div class="line"></div> <div class="line"></div> <div class="line"></div> </div> </label...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Users extends CI_Controller { /** * 新規会員登録 * * @return void */ public function regist_user() { $this->load->view('elements/header'); $this->load->view('users/regist_user'); $this->load->...
<?php namespace Turbo124\Beacon\Jobs; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Http\Request; use Illuminate\Support\Facades\Cache; use Turbo124\Beacon\Generator; use Turbo124\Beacon\Jobs\SystemMetric; class BatchMetrics { use Dispatchable; /** * Create a new job instance. * ...
<?php require_once ''; use PhpAmqpLib\Connection\AMQPStreamConnection; use PhpAmqpLib\Exchange\AMQPExchangeType; use PhpAmqpLib\Message\AMQPMessage; use think\Exception; try { $host='127.0.0.1'; $port='5672'; $username='guest'; $password='guest'; $queueName='goods_ms_queue'; $exchangeName='go...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AddFieldDataPenyedias extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('data_penyedia...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Ayat extends Model { protected $table = 'ayat'; protected $fillable = [ 'ID','sura','ayaNo','aya','muyassar' ]; }
@extends('layouts.backend.app') {{-- <meta name="csrf-token" content="{{ csrf_token() }}"> --}} @section('title', 'Defaulted Loans') @push('css') @endpush @section('content') {{-- Start Add Modal --}} <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="tru...
@extends('template.app') @section('content') <!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" rel="stylesheet"> <title>Pedul...
<?php namespace App\Http\Controllers; use App\Models\Farmer; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; class FarmerController extends Controller { // public function getFarmers(){ $farmers = Farmer::select('name', 'email', 'contact', 'gender', 'birthdate', 'role', 'farm_name') ...
@extends('layouts.app') @section('title', $page_builder->getPageTitle()) @section('meta') @if(!empty($page_builder->getMetaTitle())) <meta name="title" content="{{ $page_builder->getMetaTitle() }}"> <meta property="og:title" content="{{ $page_builder->getMetaTitle() }}"> <meta name="twitter:title" content...
<?php namespace App\Http\Controllers; use App\Http\Requests\RegisterAuthRequest; use App\Http\Requests\LoginAuthRequest; use App\Http\Requests\ResendRequest; use App\Http\Requests\ResetPasswordRequest; use App\User; use Illuminate\Http\Request; use JWTAuth; use Tymon\JWTAuth\Exceptions\JWTException; use Mail; use Ap...
<?php /** * Created by PhpStorm. * User: USER PC * Date: 2/1/2017 * Time: 1:35 PM */ namespace Application\Model; use Application\Entity\TestQuestion; use Intermatics\BaseTable; use Zend\Db\Sql\Select; use Zend\Paginator\Adapter\DbSelect; use Zend\Paginator\Paginator; class TestQuestionTable extends BaseTable ...
<?php namespace FondOfSpryker\Zed\JellyfishSalesOrderB2C\Communication\Plugin; use Codeception\Test\Unit; use Generated\Shared\Transfer\JellyfishOrderAddressTransfer; use Orm\Zed\Sales\Persistence\SpySalesOrderAddress; class JellyfishOrderAddressExpanderPostMapPluginTest extends Unit { /** * @var \FondOfSpr...
<?php /** * This file is part of the Spryker Suite. * For full license information, please view the LICENSE file that was distributed with this source code. */ namespace Pyz\Zed\Acl; use ArrayObject; use Generated\Shared\Transfer\AclEntityRuleTransfer; use Generated\Shared\Transfer\RuleTransfer; use Spryker\Share...
<?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 SamlPost\Saml2; use Illuminate\Support\ServiceProvider; use OneLogin\Saml2\Auth; use URL; class Saml2ServiceProvider extends ServiceProvider { /** * Indicates if loading of the provider is deferred. * * @var bool */ protected $defer = false; /** * Bootstrap the a...
@extends('layouts.app') @section('content') <h2><?= Lang::get('Create new flight crew'); ?></h2> <form method="POST" action="/auth/flightcrew/create" enctype="multipart/form-data"> @csrf <div> <label for="main_captain"><?= Lang::get('Main captain'); ?></label> <input id="main_captain" name="mai...
<?php // Load composer loaded $loader = require_once __DIR__ . "/../vendor/autoload.php"; try { // CLI Server if (php_sapi_name() === 'cli-server') { if (is_file(__DIR__ . DIRECTORY_SEPARATOR . ltrim($_SERVER["REQUEST_URI"], '/'))) { return false; } } // App $app = new...
<?php namespace app\classes; class Template{ private $view; public function add($view){ $this->view = $view; //dd($this->view); } public function load(){ return "../app/views/{$this->view}.php"; } public function master($master){ return "../app/views/{$maste...
<?php namespace common\models; use Yii; use yii\behaviors\TimestampBehavior; use yii\db\ActiveRecord; /** * This is the model class for table "{{%user_profile}}". * * @property int $profile_id * @property string $user_id 用户ID * @property string $province 省 * @property string $city 市 * @property str...
@extends('layouts.admin') @section('css') <style type="text/css"> #preview { border: 1px solid #efefef; border-radius: 8px; } </style> @endsection @section('content') <div class="container"> <h4><a href="{{route('settings.index')}}">🔙</a> ဆိုင်အချက်အလက်</h4> <div class="row"> ...
<footer class="ls-footer" role="contentinfo"> <div class="ls-footer-info"> <p class="ls-copy-right">Copyright © 2015-<?=date('Y')?> <a href="http://www.alexmadeira.com.br" target="_blank">Alex Madeira</a>.</p> </div> </footer>
@extends('layouts.master') @section('title') Blog detail @endsection @section('content') <!-- breadcrumb --> <div class="container"> <div class="bread-crumb flex-w p-l-25 p-r-15 p-t-30 p-lr-0-lg"> <a href="{{ route('index') }}" class="stext-109 cl8 hov-cl1 trans-04"> Home <i class="fa fa-angle-right...
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2018/5/3 * Time: 16:48 */ namespace app\api\controller\v1; use app\api\model\User as UserModel; use app\api\validate\AddressNew; use app\api\service\Token as TokenService; use app\lib\enum\ScopeEnum; use app\lib\exception\ForbiddenException; use app\li...
<?php /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */ /** * Storage driver for Authentication on a Kerberos V server. * * 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-wide-web at the followi...
<?php namespace Instagram2Vk\Interfaces; interface DataSourceInterface { /** * Returns array of data * * @return array */ public function getData(); }
<nav class="navbar navbar-expand-lg navbar-dark ftco_navbar bg-dark ftco-navbar-light" id="ftco-navbar"> <div class="container"> <a class="navbar-brand" href="index.html">Vegefoods</a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#ftco-nav" aria-controls="ftco-nav" ar...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateBidUserDocumentsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('bid_us...
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <h1>Tasques...
<?php use Illuminate\Support\Facades\Route; use App\Http\Livewire\HomeComponent; use App\Http\Livewire\ShopComponent; use App\Http\Livewire\CartComponent; use App\Http\Livewire\CheckoutComponent; use App\Http\Livewire\DetailComponent; use App\Http\Livewire\User\UserDashboardComponent; use App\Http\Livewire\Admin\Admin...
<?php namespace Anomaly\BlocksFieldType; use Anomaly\BlocksFieldType\Command\GetMultiformFromPost; use Anomaly\BlocksFieldType\Command\GetMultiformFromValue; use Anomaly\BlocksFieldType\Validation\ValidateBlocks; use Anomaly\BlocksModule\Block\BlockExtension; use Anomaly\BlocksModule\Block\BlockModel; use Anomaly\Bloc...
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\Auth; use App\User; class CheckReturnRole { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($requ...
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; use yii\helpers\ArrayHelper; use common\models\LookupState; use common\models\LookupDistrict; use common\models\LookupSubBase; use common\models\LookupMukim; use common\models\LookupBahagian; //$negara = ArrayHelper::map(LookupCountry::find()->asArray()->all(), ...
<?php namespace Spinen\ConnectWise\Models\v2018_5\System; use Carbon\Carbon; use Spinen\ConnectWise\Support\Model; /** * Class KPICategoryReference Version v2018_5 * * Model for KPICategoryReference * * @property Metadata $_info * @property integer $id * @property string $name */ class KPICategoryReference e...
"<?php if (!defined('NOT_ACCESSED_DIRECTLY')) exit('This file may not be directly accessed'); ?>" "Zenario VISITOR LANGUAGE PACK WORKSHEET",,"Target Language ID" "(Do not edit this column)","To create a new Language Pack, change the value of the cell to the right to the ID for the language you are creating ->",pt-br P...
<?php $version = '1.6'; // the $ projectnumber variable is automatically replaced by doxygen with the version number include('../header-fr.php'); ?> <!-- Generated by Doxygen 1.8.2 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.php"><span>Main&#160;Page</span></a></li> ...
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Language Lines |-------------------------------------------------------------------------- | | The following language lines are used during authentication for various | messages t...
<?php /** * WooCommerce Ajax Callbacks * * @package Botiga */ /** * Botiga custom add to cart ajax callback */ function botiga_custom_addtocart_callback_function(){ check_ajax_referer( 'botiga-custom-addtocart-nonce', 'nonce' ); if( !isset( $_POST['product_id'] ) ) { return; } WC()->cart->add_to_cart( ab...
<?php namespace admin\controllers; use Yii; use admin\models\User; use admin\models\Product; use admin\models\ProductPrice; use admin\models\AdminUser; use admin\models\Shop; use admin\models\ShopOrder; use admin\models\Prize; use common\models\DataAll; use common\helpers\Hui; use common\helpers\Html; use common\help...
<?php /** * */ class M_Admin extends MY_Model { function __construct() { parent::__construct(); } } ?>
<?php class EmployeeTableSeeder extends Seeder { public function run(){ Employee::create(array( 'nombres' => 'Milagros', 'apellidos' => 'Mamani', 'dni' => '00457661', 'cargo' => '1', 'telefono' => '952636301', 'office_id' ...
<?php namespace App\Http\Controllers; use App\Http\Requests; use App\Http\Requests\CourseRequest; use App\Http\Controllers\Controller; use Kris\LaravelFormBuilder\FormBuilder; use App\Course; use App\Resourse; use App\ResourceType; use App\Category; use Request; use Kris\LaravelFormBuilder\Form; class CourseControll...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateAppstoreTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('appstore', fun...
@extends('dashboard::layouts.master', ['title' => trans('accounts::admins.actions.create')]) @section('content') @component('dashboard::layouts.components.page') @slot('title', trans('accounts::admins.plural')) @slot('breadcrumbs', ['dashboard.admins.create']) {{ BsForm::resource('accounts:...
<!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') }}</tit...
<?php namespace App\Http\Controllers; use App\Subscriber; use Illuminate\Http\Request; use App\Http\Requests\SubscriberRequest; class SubscriberController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index(Request $...
<?php use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Auth; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. T...
<h1 class="page-title"> Period Allotment </h1> <h6 class="cent-refresh"><a class="gold-bt" onclick="loadview('edit_period/<?php echo $per['id'];?>')" ><i class="entypo-arrows-ccw"></i>Page Refresh</a></h6> <?php //print_r($per);?> <hr> <!--=====================================--> <div class="guardian"> <div class="...
<?php // Check for empty fields if(empty($_POST['name']) || empty($_POST['email']) || empty($_POST['phone']) || empty($_POST['message']) || !filter_var($_POST['email'], FILTER_VALIDATE_EMAIL)) { http_response_code(500); exit(); } $name = strip_tags(htmlspecialchars($_POST['name'])); $email = strip_tags(htmlspecial...
<?php namespace App\Imports; use App\Note; use Maatwebsite\Excel\Concerns\ToModel; use Maatwebsite\Excel\Concerns\WithStartRow; class NotesImport implements ToModel, WithStartRow { /** * @param array $row * * @return \Illuminate\Database\Eloquent\Model|null */ public function model(array $row...
<?php namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\Auth; class AdminMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class login_admin extends Model { protected $guarded=['id','created_at','updated_at']; use HasFactory; }
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Note extends Model { public function client() { return $this->belongsTo('App\Client'); } }
<?php use Illuminate\Database\Seeder; class PostsSeeder extends Seeder { /** * Run the database seeds. * * php artisan db:seed --class=PostsSeeder * * @return void */ public function run() { $faker = Faker\Factory::create(); for ($i=0; $i < 50; $i++) { ...
<?php /** * Created by PhpStorm. * User: Administrator * Date: 2016/9/25 0025 * Time: 13:42 */ namespace TinyWeb; use TinyWeb\Helper\BuilderHelper; interface ObserversInterface { /** * @param CurrentUserInterface $user */ public function hookCurrentUser(CurrentUserInterface $user); ###...
<?php namespace RicorocksDigitalAgency\Soap\Parameters; use RicorocksDigitalAgency\Soap\Contracts\Soapable; class IntelligentBuilder implements Builder { public function handle($parameters) { return $this->handleParameter($parameters); } protected function handleParameter($parameter) { ...
<?php //--> /** * This file is part of the UGComponents Project. * * Copyright and license information can be found at LICENSE.txt * distributed with this package. */ namespace UGComponents\Resolver; use Closure; /** * This will add resolver features to any * class that wants to be test friendly * * @packag...
@if (Auth::user()->admin->getPermission("setting_general") == 'yes') <div class="tab-pane active" id="top-general"> <div class="row"> <div class="col-md-12"> <h2 class="text-semibold">{{ trans('messages.admin.settings.edit_app_settings') }}</h2> <h3 class="text-se...
<?php namespace hylook\MainBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class hylookMainBundle extends Bundle { }
<?php $http = new swoole_http_server("0.0.0.0", 8080); $http->on("start", function ($server) { echo "Swoole http server is started at http://127.0.0.1:8080\n"; }); $http->on("request", function ($request, $response) { $response->header("Content-Type", "text/plain"); $response->end("Hello World\n"); }); $...
<?php declare (strict_types=1); namespace Rector\NodeNameResolver\Regex; use RectorPrefix20220513\Nette\Utils\Strings; final class RegexPatternDetector { /** * @var string[] * * This prevents miss matching like "aMethoda" */ private const POSSIBLE_DELIMITERS = ['#', '~', '/']; public f...
<?php /** * Copyright (c) 2012-2020, Mollie B.V. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, * this list...
<?php /*+*********************************************************************************** * The contents of this file are subject to the vtiger CRM Public License Version 1.0 * ("License"); You may not use this file except in compliance with the License * The Original Code is: vtiger CRM Open Source * The Initi...
<?php require_once('db/Core/BhvDB.php') ?> <?php $init_session = new BhvDB; try{ $result = $init_session->authenticate($_POST['username'], $_POST['password']); header('location:index.php'); } catch( Exception $e){ echo $e->getMessage(); header('location:index.php'); } ?>