role; // Create Database Connection $file_db = new PDO('sqlite:'.DATABASE_LOCATION.'users.db'); $file_db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // Some PHP config stuff ini_set("display_errors", 1); ini_set("error_reporting", E_ALL | E_STRICT); // Confirm Access qualifyUser('admin', true); // Load User List $gotUsers = $file_db->query('SELECT * FROM users'); // Load Invite List $gotInvites = $file_db->query('SELECT * FROM invites'); // Load Colours/Appearance foreach(loadAppearance() as $key => $value) { $$key = $value; } // Slimbar if(SLIMBAR == "true") { $slimBar = "30"; $userSize = "25"; } else { $slimBar = "56"; $userSize = "40"; } //Theme Info $themeName = (!empty(INSTALLEDTHEME) ? explode("-", INSTALLEDTHEME)[0] : null); $themeVersion = (!empty(INSTALLEDTHEME) ? explode("-", INSTALLEDTHEME)[1] : null); ?> Settings

'; echo ' '; }else{ echo '
'; echo ''; } $buildMenu = array( array( 'id' => 'open-tabs', 'box' => 'tab-box', 'name' => 'Edit Tabs', 'icon_1' => 'view-list', 'icon_2' => 'th-list', 'color' => 'red-orange', 'color2' => 'palette-Red-A700 bg', 'padding' => '2', ), array( 'id' => 'open-colors', 'box' => 'color-box', 'name' => 'Edit Colors', 'icon_1' => 'format-paint', 'icon_2' => 'paint-brush', 'color' => 'red', 'color2' => 'palette-Indigo-A700 bg', 'padding' => '2', ), array( 'id' => 'open-users', 'box' => 'users-box', 'name' => 'Manage Users', 'icon_1' => 'account-multiple', 'icon_2' => 'user', 'color' => 'green', 'color2' => 'palette-Blue-Grey-700 bg', 'padding' => '2', ), array( 'id' => 'open-email', 'box' => 'email-box', 'name' => 'Email Users', 'icon_1' => 'email', 'icon_2' => 'envelope', 'color' => 'yellow', 'color2' => 'palette-Pink-A700 bg', 'padding' => '2', ), array( 'id' => 'open-logs', 'box' => 'logs-box', 'name' => 'View Logs', 'icon_1' => 'file-document-box', 'icon_2' => 'list-alt', 'color' => 'blue', 'color2' => 'palette-Teal-A700 bg', 'padding' => '2', ), array( 'id' => 'open-homepage', 'box' => 'homepage-box', 'name' => 'Edit Homepage', 'icon_1' => 'television-guide', 'icon_2' => 'home', 'color' => 'yellow', 'color2' => 'palette-Deep-Orange-A400 bg', 'padding' => '2', ), array( 'id' => 'open-invites', 'box' => 'invites-box', 'name' => 'Plex Invites', 'icon_1' => 'account-multiple-plus', 'icon_2' => 'user-plus', 'color' => 'light-blue', 'color2' => 'palette-Amber-A700 bg', 'padding' => '2', ), array( 'id' => 'open-advanced', 'box' => 'advanced-box', 'name' => 'Advanced', 'icon_1' => 'settings', 'icon_2' => 'cog', 'color' => 'gray', 'color2' => 'palette-Grey-600 bg', 'padding' => '2', ),array( 'id' => 'open-info', 'box' => 'info-box', 'name' => 'About', 'icon_1' => 'information', 'icon_2' => 'info-circle', 'color' => 'orange', 'color2' => 'palette-Light-Blue-A700 bg', 'padding' => '2', ),array( 'id' => 'open-donate', 'box' => 'donate-box', 'name' => 'Donate', 'icon_1' => 'cash-usd', 'icon_2' => 'money', 'color' => 'red', 'color2' => 'palette-Green-A700 bg', 'padding' => '2', ), ); if($userDevice !== "phone"){ echo "


".buildMenu($buildMenu); }else{ echo buildMenuPhone($buildMenu); }?>

ORGANIZR YOU