diff --git a/database_upgrade/1.0.1_1.1.sql b/database_upgrade/1.0.1_1.1.sql index 1bb06b5..5dc29b9 100644 --- a/database_upgrade/1.0.1_1.1.sql +++ b/database_upgrade/1.0.1_1.1.sql @@ -14,9 +14,9 @@ ENGINE = InnoDB DEFAULT CHARACTER SET = utf8; SET FOREIGN_KEY_CHECKS = 0; -ALTER TABLE `groups` +ALTER TABLE `groups` CHANGE COLUMN `groupid` `groupid` INT(11) NOT NULL AUTO_INCREMENT; SET FOREIGN_KEY_CHECKS = 1; -ALTER TABLE `accounthub`.`accounts` +ALTER TABLE `accounts` ADD COLUMN `pin` VARCHAR(10) NULL DEFAULT NULL AFTER `authsecret`; \ No newline at end of file diff --git a/home.php b/home.php index 71d14ef..d4ebe52 100644 --- a/home.php +++ b/home.php @@ -1,5 +1,4 @@ @@ -135,12 +156,12 @@ if (!is_empty($_GET['page'])) {

"/> + if (strpos($a['icon'], "http") !== 0) { + echo $a['url'] . $a['icon']; + } else { + echo $a['icon']; + } + ?>"/>

diff --git a/lang/en_us.php b/lang/en_us.php index a87b40a..956ed7f 100644 --- a/lang/en_us.php +++ b/lang/en_us.php @@ -29,6 +29,7 @@ $STRINGS = [ "account security" => "Account security", "security options" => "Security options", "account options" => "Account options", + "sync" => "Sync settings", "options" => "Options", "sign out" => "Sign out", "settings" => "Settings", diff --git a/pages.php b/pages.php index f57cc90..a3fb11b 100644 --- a/pages.php +++ b/pages.php @@ -12,9 +12,14 @@ define("PAGES", [ "icon" => "home" ], "security" => [ - "title" => "account options", + "title" => "account security", "navbar" => true, - "icon" => "cogs" + "icon" => "lock" + ], + "sync" => [ + "title" => "sync", + "navbar" => true, + "icon" => "mobile" ], "404" => [ "title" => "404 error", @@ -33,10 +38,12 @@ define("APPS", [ "account_security" ], "security" => [ - "sync_mobile", "change_password", + "change_pin", "setup_2fa", - "change_pin" + ], + "sync" => [ + "sync_mobile", ], "404" => [ "404_error"