Refactor
This commit is contained in:
parent
4ec947a9aa
commit
77d470dd60
9 changed files with 9 additions and 9 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
use wishthis\Page;
|
||||
|
||||
$page = new page(__FILE__, 'Home');
|
||||
$page = new Page(__FILE__, 'Home');
|
||||
$page->header();
|
||||
$page->bodyStart();
|
||||
$page->navigation();
|
||||
|
|
|
@ -13,7 +13,7 @@ if ($options && $options->getOption('isInstalled')) {
|
|||
die();
|
||||
}
|
||||
|
||||
$page = new page(__FILE__, 'Install');
|
||||
$page = new Page(__FILE__, 'Install');
|
||||
$page->header();
|
||||
$page->bodyStart();
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
use wishthis\Page;
|
||||
|
||||
$page = new page(__FILE__, 'Logout');
|
||||
$page = new Page(__FILE__, 'Logout');
|
||||
|
||||
if (PHP_SESSION_ACTIVE === session_status()) {
|
||||
session_destroy();
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
use wishthis\Page;
|
||||
|
||||
$page = new page(__FILE__, 'Insufficient power');
|
||||
$page = new Page(__FILE__, 'Insufficient power');
|
||||
$page->header();
|
||||
$page->bodyStart();
|
||||
$page->navigation();
|
||||
|
|
|
@ -13,7 +13,7 @@ $passwordReset = isset($_GET['password-reset'], $_GET['token']);
|
|||
$pageTitle = $passwordReset ? 'Reset password' : 'Register';
|
||||
$buttonSubmit = $passwordReset ? 'Reset' : 'Register';
|
||||
|
||||
$page = new page(__FILE__, $pageTitle);
|
||||
$page = new Page(__FILE__, $pageTitle);
|
||||
|
||||
if (isset($_POST['email'], $_POST['password']) && !empty($_POST['planet'])) {
|
||||
$users = $database->query('SELECT * FROM `users`;')->fetchAll();
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
use wishthis\Page;
|
||||
|
||||
$page = new page(__FILE__, 'Settings');
|
||||
$page = new Page(__FILE__, 'Settings');
|
||||
$page->header();
|
||||
$page->bodyStart();
|
||||
$page->navigation();
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
use wishthis\{Page, User};
|
||||
|
||||
$page = new page(__FILE__, 'Update', 100);
|
||||
$page = new Page(__FILE__, 'Update', 100);
|
||||
$page->header();
|
||||
$page->bodyStart();
|
||||
$page->navigation();
|
||||
|
|
|
@ -19,7 +19,7 @@ if (!$wishlist->exists) {
|
|||
die();
|
||||
}
|
||||
|
||||
$page = new page(__FILE__, $wishlist->data['name']);
|
||||
$page = new Page(__FILE__, $wishlist->data['name']);
|
||||
$page->header();
|
||||
$page->bodyStart();
|
||||
$page->navigation();
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
use wishthis\{Page, User, Wishlist};
|
||||
|
||||
$page = new page(__FILE__, 'My lists');
|
||||
$page = new Page(__FILE__, 'My lists');
|
||||
$page->header();
|
||||
$page->bodyStart();
|
||||
$page->navigation();
|
||||
|
|
Loading…
Reference in a new issue