X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fdashboard.php;h=e44806d1955aa1d5ed517acb6ed844bde8518f31;hb=0bb9ce50f39b09b93005c45a49d9c47c4521267c;hp=7b538159246666b3a0b3e47623c101d74d2a61c4;hpb=3593bf5e540f7bb5ce1fd084eeba83a88b0c1518;p=fa-stable.git diff --git a/admin/dashboard.php b/admin/dashboard.php index 7b538159..e44806d1 100644 --- a/admin/dashboard.php +++ b/admin/dashboard.php @@ -9,23 +9,30 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ - -if (isset($_GET['sel_app'])) -{ - $page_security = 'SA_SETUPDISPLAY'; // A very low access level. The real access level is inside the routines. $path_to_root = ".."; include_once($path_to_root . "/includes/session.inc"); include_once($path_to_root . "/includes/ui.inc"); + include_once($path_to_root . "/includes/data_checks.inc"); include_once($path_to_root . "/reporting/includes/class.graphic.inc"); - include_once($path_to_root . "/includes/dashboard.inc"); // here are all the dashboard routines. - + if (file_exists("$path_to_root/themes/".user_theme()."/dashboard.inc")) + include_once("$path_to_root/themes/".user_theme()."/dashboard.inc"); // yse theme dashboard.inc + else + include_once("$path_to_root/includes/dashboard.inc"); // here are all the dashboard routines. + $page_security = 'SA_SETUPDISPLAY'; // A very low access level. The real access level is inside the routines. + $app = isset($_GET['sel_app']) ? $_GET['sel_app'] : (isset($_POST['sel_app']) ? $_POST['sel_app'] : "orders"); + if (get_post('id')) + { + dashboard($app); + exit; + } + $js = ""; if ($SysPrefs->use_popup_windows) $js .= get_js_open_window(800, 500); page(_($help_context = "Dashboard"), false, false, "", $js); - dashboard($_GET['sel_app']); + dashboard($app); end_page(); exit; -} +