mirror of
https://github.com/claradex/nativegallery.git
synced 2025-03-28 20:28:24 +03:00
22 lines
No EOL
371 B
PHP
22 lines
No EOL
371 B
PHP
<?php
|
|
namespace App\Controllers;
|
|
|
|
use \App\Services\{Router, Auth, DB, Json};
|
|
use \App\Controllers\ExceptionRegister;
|
|
use \App\Core\Page;
|
|
|
|
class RegisterController extends NGController
|
|
{
|
|
|
|
|
|
public function i()
|
|
{
|
|
if (Auth::userid() > 0) {
|
|
Router::redirect('/');
|
|
} else{
|
|
$this->render('System/Register');
|
|
}
|
|
}
|
|
|
|
|
|
} |