include ("functions/header.php"); if($db->state=="connected") { if(NEED_BALANCE==true) $balance_obj=new balance(); include("front/header.php"); if($step=="register_success") require("front/register_success.php"); else if($step=="email_confirmation") require("front/email_confirmation.php"); else if($step=="restore_sent") require("front/restore_sent.php"); else if($step=="restore") require("front/restore.php"); /////тело страницы, в зависимости от режима и прав пользователей else if($regim=="") { /////окно входа в систему if($step=="") include("front/main_page.php"); if($step=="auth") include("front/auth.php"); } elseif($regim=='auth') { /////в зависимости от режимов загружаем модули ////пользователи if($_SESSION["group"]=="1") { if($step=="users") require("front/users.php"); if($step=="backups") require("front/backups.php"); } ////подключаем модули if($step=="main_events") require("front/main_events.php"); if($step=="add_money") require("front/add_money.php"); if($step=="all_devices") require("front/all_devices.php"); if($step=="alert_settings")require("front/alert_settings.php"); if($step=="settings") require("front/settings.php"); if($step=="dashboard") require("front/dashboard.php"); if($step=="messages") require("front/messages.php"); if($step=="groups") require("front/groups.php"); if($step=="show_group") require("front/show_group.php"); if($step=="state_all") require("front/state_all.php"); if($step=="update") require("front/update.php"); if($step=="personal_info") require("front/personal_info.php"); if($step=="add_device_windows") require("front/add_device_windows.php"); if($step=="add_device_linux") require("front/add_device_linux.php"); } ?>
require("front/footer.inc"); } else { echo 'Ошибка доступа к базе данных