2018-11-15 10:45:49 +00:00
|
|
|
<?php
|
|
|
|
|
2021-05-03 12:53:40 +00:00
|
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
2021-08-11 13:45:30 +00:00
|
|
|
use App\Http\Controllers\{HomeController,
|
|
|
|
DomainController,
|
|
|
|
EchoareaController,
|
2021-08-29 01:48:27 +00:00
|
|
|
EchomailController,
|
2021-08-11 13:45:30 +00:00
|
|
|
FileareaController,
|
|
|
|
SystemController,
|
|
|
|
UserController,
|
2021-09-27 12:50:47 +00:00
|
|
|
UserSwitchController,
|
2021-08-11 13:45:30 +00:00
|
|
|
ZoneController};
|
2021-05-03 12:53:40 +00:00
|
|
|
use App\Http\Controllers\Auth\LoginController;
|
|
|
|
|
2018-11-15 10:45:49 +00:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Web Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2021-05-03 12:53:40 +00:00
|
|
|
Auth::routes([
|
|
|
|
'login' => true,
|
|
|
|
'logout' => true,
|
|
|
|
'register' => true,
|
|
|
|
'reset' => true, // for resetting passwords
|
|
|
|
'confirm' => true, // for additional password confirmations
|
|
|
|
'verify' => true, // for email verification
|
|
|
|
]);
|
|
|
|
Route::get('logout',[LoginController::class,'logout']);
|
2021-09-27 12:50:47 +00:00
|
|
|
Route::get('admin/switch/start/{o}',[UserSwitchController::class,'user_switch_start']);
|
|
|
|
Route::get('admin/switch/stop',[UserSwitchController::class,'user_switch_stop']);
|
2021-05-03 12:53:40 +00:00
|
|
|
|
2021-10-26 12:19:55 +00:00
|
|
|
Route::get('/',[HomeController::class,'home']);
|
2021-06-12 15:14:34 +00:00
|
|
|
Route::view('about','about');
|
2022-11-25 10:44:03 +00:00
|
|
|
Route::view('domain/list','domain.list');
|
|
|
|
Route::get('system/view/{o}',[SystemController::class,'view'])
|
|
|
|
->where('o','[0-9]+');
|
2021-05-03 12:53:40 +00:00
|
|
|
|
2022-03-14 11:28:54 +00:00
|
|
|
Route::middleware(['auth','verified','activeuser'])->group(function () {
|
2021-10-26 12:19:55 +00:00
|
|
|
Route::get('dashboard',[UserController::class,'dashboard']);
|
2022-03-14 11:28:54 +00:00
|
|
|
Route::match(['get','post'],'link',[UserController::class,'link']);
|
2021-10-26 12:19:55 +00:00
|
|
|
|
2021-06-13 13:00:26 +00:00
|
|
|
Route::get('ftn/domain',[DomainController::class,'home']);
|
|
|
|
Route::match(['get','post'],'ftn/domain/addedit/{o?}',[DomainController::class,'add_edit'])
|
|
|
|
->where('o','[0-9]+');
|
2021-05-13 12:40:21 +00:00
|
|
|
|
2021-08-11 13:45:30 +00:00
|
|
|
Route::get('ftn/echoarea',[EchoareaController::class,'home']);
|
|
|
|
Route::match(['get','post'],'ftn/echoarea/addedit/{o?}',[EchoareaController::class,'add_edit'])
|
|
|
|
->where('o','[0-9]+');
|
|
|
|
|
|
|
|
Route::get('ftn/filearea',[FileareaController::class,'home']);
|
|
|
|
Route::match(['get','post'],'ftn/filearea/addedit/{o?}',[FileareaController::class,'add_edit'])
|
|
|
|
->where('o','[0-9]+');
|
|
|
|
|
2021-06-17 14:08:30 +00:00
|
|
|
Route::get('ftn/system',[SystemController::class,'home']);
|
|
|
|
Route::match(['get','post'],'ftn/system/addedit/{o?}',[SystemController::class,'add_edit'])
|
|
|
|
->where('o','[0-9]+');
|
2021-07-04 11:47:23 +00:00
|
|
|
|
|
|
|
Route::get('ftn/our_systems',[SystemController::class,'ours']);
|
|
|
|
|
|
|
|
Route::post('ftn/system/addaddress/{o}',[SystemController::class,'add_address'])
|
|
|
|
->where('o','[0-9]+');
|
|
|
|
Route::post('ftn/system/addsession/{o}',[SystemController::class,'add_session'])
|
2021-06-20 13:03:20 +00:00
|
|
|
->where('o','[0-9]+');
|
2021-07-04 11:47:23 +00:00
|
|
|
Route::get('ftn/system/deladdress/{o}',[SystemController::class,'del_address'])
|
2021-07-01 14:25:41 +00:00
|
|
|
->where('o','[0-9]+');
|
2021-07-04 11:47:23 +00:00
|
|
|
Route::get('ftn/system/delsession/{o}/{zo}',[SystemController::class,'del_session'])
|
|
|
|
->where('o','[0-9]+')
|
|
|
|
->where('zo','[0-9]+');
|
2021-08-25 12:13:49 +00:00
|
|
|
Route::match(['get','post'],'ftn/system/echoarea/{o}',[SystemController::class,'echoareas'])
|
|
|
|
->where('o','[0-9]+');
|
2022-11-01 11:24:36 +00:00
|
|
|
Route::match(['get','post'],'ftn/system/filearea/{o}',[SystemController::class,'fileareas'])
|
|
|
|
->where('o','[0-9]+');
|
2021-08-08 07:27:22 +00:00
|
|
|
Route::match(['get','post'],'ftn/system/movaddress/{so}/{o}',[SystemController::class,'mov_address'])
|
|
|
|
->where('so','[0-9]+')
|
|
|
|
->where('o','[0-9]+');
|
2022-11-19 01:02:13 +00:00
|
|
|
Route::get('ftn/system/recaddress/{id}',[SystemController::class,'rec_address'])
|
|
|
|
->where('o','[0-9]+');
|
|
|
|
Route::get('ftn/system/puraddress/{id}',[SystemController::class,'pur_address'])
|
|
|
|
->where('o','[0-9]+');
|
2021-07-04 11:47:23 +00:00
|
|
|
Route::get('ftn/system/susaddress/{o}',[SystemController::class,'sus_address'])
|
2021-07-01 14:25:41 +00:00
|
|
|
->where('o','[0-9]+');
|
2021-06-17 14:08:30 +00:00
|
|
|
|
2021-06-13 13:00:26 +00:00
|
|
|
Route::get('ftn/zone',[ZoneController::class,'home']);
|
|
|
|
Route::match(['get','post'],'ftn/zone/addedit/{o?}',[ZoneController::class,'add_edit'])
|
|
|
|
->where('o','[0-9]+');
|
2021-11-11 11:57:13 +00:00
|
|
|
|
2022-03-14 11:28:54 +00:00
|
|
|
Route::match(['get','post'],'user/system/register',[SystemController::class,'system_register']);
|
2021-06-14 11:33:18 +00:00
|
|
|
});
|
|
|
|
|
2021-06-15 12:19:14 +00:00
|
|
|
Route::get('network/{o}',[HomeController::class,'network']);
|
2021-06-17 14:08:30 +00:00
|
|
|
Route::get('permissions',[HomeController::class,'permissions']);
|
2021-06-29 10:43:29 +00:00
|
|
|
Route::match(['get','post'],'pkt',[HomeController::class,'pkt']);
|
2021-06-26 14:34:15 +00:00
|
|
|
Route::get('search',[HomeController::class,'search']);
|
2021-06-15 12:19:14 +00:00
|
|
|
|
|
|
|
Route::middleware(['auth','can:admin'])->group(function () {
|
2021-06-24 10:16:37 +00:00
|
|
|
Route::match(['get','post'],'setup',[HomeController::class,'setup']);
|
2021-06-17 14:08:30 +00:00
|
|
|
|
2021-08-29 01:48:27 +00:00
|
|
|
Route::get('echomail/view/{o}',[EchomailController::class,'view']);
|
2021-06-17 14:08:30 +00:00
|
|
|
Route::get('user/list',[UserController::class,'home']);
|
2021-06-18 15:09:34 +00:00
|
|
|
Route::match(['get','post'],'user/addedit/{o?}',[UserController::class,'add_edit'])
|
|
|
|
->where('o','[0-9]+');
|
2021-06-15 12:19:14 +00:00
|
|
|
});
|