more cleanup

This commit is contained in:
flash 2016-09-21 13:30:01 +02:00
parent 68026a21c0
commit ca53bcdbbb
3 changed files with 7 additions and 29 deletions

View file

@ -84,6 +84,10 @@ class Collection
throw new \Exception;
}
if (count($params)) {
//
}
return parse_url('/' . $this->names[$name]->path, PHP_URL_PATH);
}
}

View file

@ -163,8 +163,10 @@ class Session
return false;
}
/* completely removed the code for ip checking because it only worked with IPv4
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) {

View file

@ -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;