X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=frontaccounting.php;h=033c99283758f9f537cb096323221779ad7b69f2;hb=c31829537f02787dd94654820dd74168c054b8c4;hp=df1ff02cfdcdb15bd5ada726c72b18b3aa2534fd;hpb=914700ef9f18fdd00f592ea72e9ec286548a8bc4;p=fa-stable.git diff --git a/frontaccounting.php b/frontaccounting.php index df1ff02c..033c9928 100644 --- a/frontaccounting.php +++ b/frontaccounting.php @@ -9,6 +9,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ +if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_to_root'])) + die("Restricted access"); include_once($path_to_root . '/applications/application.php'); include_once($path_to_root . '/applications/customers.php'); include_once($path_to_root . '/applications/suppliers.php'); @@ -42,8 +44,9 @@ //$this->renderer =& new renderer(); } function add_application(&$app) - { - $this->applications[$app->id] = &$app; + { + if ($app->enabled) // skip inactive modules + $this->applications[$app->id] = &$app; } function get_application($id) { @@ -88,11 +91,11 @@ { foreach ($installed_extensions as $ext) { - get_text::add_domain($_SESSION['language']->code, + $_SESSION['get_text']->add_domain($_SESSION['language']->code, $ext['folder']."/lang"); $class = $ext['name']."_app"; $this->add_application(new $class()); - get_text::add_domain($_SESSION['language']->code, + $_SESSION['get_text']->add_domain($_SESSION['language']->code, $path_to_root."/lang"); } }