This commit is contained in:
grandeljay 2022-05-28 17:28:25 +02:00
parent 818d76228f
commit 05b5ef1cba
21 changed files with 22 additions and 24 deletions

View file

@ -6,7 +6,7 @@
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\URL;
namespace wishthis;
$api = true;
$response = array();

View file

@ -6,7 +6,7 @@
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\{User, Wish, EmbedCache};
namespace wishthis;
$api = true;
$response = array();

View file

@ -6,7 +6,7 @@
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\{User, Wishlist};
namespace wishthis;
$api = true;
$response = array();

View file

@ -6,8 +6,6 @@
namespace wishthis;
use wishthis\{User, URL, Wish};
enum Navigation: int
{
case Wishlists = 1;
@ -122,10 +120,10 @@ class Page
$ignorePower = array(
'home',
'login',
'register',
'install',
'login',
'maintenance',
'register',
);
if (
!isset($_SESSION['user'])

View file

@ -6,7 +6,7 @@
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\Page;
namespace wishthis;
$page = new Page(__FILE__, __('Home'));
$page->header();

View file

@ -6,7 +6,7 @@
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\{Page, Database};
namespace wishthis;
if ($options && $options->getOption('isInstalled')) {
redirect('/?page=home');

View file

@ -6,7 +6,7 @@
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\Page;
namespace wishthis;
$page = new Page(__FILE__, __('Login as'), 100);

View file

@ -6,7 +6,7 @@
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\{Page, Email, User};
namespace wishthis;
$page = new Page(__FILE__, __('Login'));

View file

@ -6,7 +6,7 @@
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\Page;
namespace wishthis;
$page = new Page(__FILE__, __('Logout'));

View file

@ -6,7 +6,7 @@
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\Page;
namespace wishthis;
$page = new Page(__FILE__, __('Maintenance'));
$page->header();

View file

@ -4,7 +4,7 @@
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\Wish;
namespace wishthis;
$scriptPart = '/src/assets/js/parts/wish-add.js';
?>

View file

@ -4,7 +4,7 @@
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\Wish;
namespace wishthis;
$scriptPart = '/src/assets/js/parts/wishlist-filter.js';
?>

View file

@ -6,7 +6,7 @@
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\Page;
namespace wishthis;
$page = new Page(__FILE__, __('Insufficient power'));
$page->header();

View file

@ -6,7 +6,7 @@
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\{Page, User};
namespace wishthis;
$page = new Page(__FILE__, __('Profile'));

View file

@ -6,7 +6,7 @@
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\{Page, User};
namespace wishthis;
$passwordReset = isset($_SESSION['_GET']['password-reset'], $_SESSION['_GET']['token']);

View file

@ -6,7 +6,7 @@
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\Page;
namespace wishthis;
$page = new Page(__FILE__, __('Settings'));
$page->header();

View file

@ -6,7 +6,7 @@
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\{Page, User};
namespace wishthis;
$page = new Page(__FILE__, __('Update'), 100);

View file

@ -6,7 +6,7 @@
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\{Page, Wish};
namespace wishthis;
$userIsAuthenticated = false;

View file

@ -6,7 +6,7 @@
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\{Page, User, Wishlist, Wish};
namespace wishthis;
$wishlist = new Wishlist($_SESSION['_GET']['wishlist']);
$page = new Page(__FILE__, $wishlist->getTitle());

View file

@ -6,7 +6,7 @@
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\{Page, User, Wishlist};
namespace wishthis;
$page = new Page(__FILE__, __('Saved lists'));
$page->header();

View file

@ -6,7 +6,7 @@
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\{Page, User, Wishlist};
namespace wishthis;
$page = new Page(__FILE__, __('My lists'));
$page->header();