more cleanup
This commit is contained in:
parent
68026a21c0
commit
ca53bcdbbb
3 changed files with 7 additions and 29 deletions
|
@ -84,6 +84,10 @@ class Collection
|
|||
throw new \Exception;
|
||||
}
|
||||
|
||||
if (count($params)) {
|
||||
//
|
||||
}
|
||||
|
||||
return parse_url('/' . $this->names[$name]->path, PHP_URL_PATH);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -163,8 +163,10 @@ class Session
|
|||
return false;
|
||||
}
|
||||
|
||||
if ($ip !== null) {
|
||||
/* completely removed the code for ip checking because it only worked with IPv4
|
||||
good thing is i can probably do CIDR based checking */
|
||||
}
|
||||
|
||||
// If the remember flag is set extend the session time
|
||||
if ($session->session_remember) {
|
||||
|
|
28
sakura.php
28
sakura.php
|
@ -77,31 +77,3 @@ if (!defined('IN_CLI')) {
|
|||
'session' => $_SESSION,
|
||||
]);
|
||||
}
|
||||
|
||||
// use Sakura\Router\Route;
|
||||
// use Sakura\Router\Router;
|
||||
|
||||
// Router::add(
|
||||
// Route::path('/')
|
||||
// ->methods('GET')
|
||||
// ->controller(Controllers\MetaController::class)
|
||||
// ->action('index')
|
||||
// ->name('main.index'),
|
||||
// Route::path('/test')
|
||||
// ->controller(Controllers\MetaController::class)
|
||||
// ->group(
|
||||
// Route::path('faq')
|
||||
// ->methods('GET')
|
||||
// ->action('faq')
|
||||
// ->group(
|
||||
// Route::path('sub/{meow}/{cock}?')
|
||||
// ->methods(['GET', 'POST'])
|
||||
// ->action('search')
|
||||
// ->name('main.search')
|
||||
// )
|
||||
// )
|
||||
// );
|
||||
|
||||
// echo Router::url('main.search');
|
||||
// header('Content-Type: text/plain');
|
||||
// exit;
|
||||
|
|
Reference in a new issue