X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=frontaccounting.php;h=7e2201882a74b9f954ca64cfa97c8f69c5df83c4;hb=2250f142e1034dc28adb819c4d8f7cce05911489;hp=3ddfaac0207c0e6da92a5c555325450fa82ae1e8;hpb=cc2a4b40bcdd75b6eb729ac14dcb810322c65884;p=fa-stable.git diff --git a/frontaccounting.php b/frontaccounting.php index 3ddfaac0..7e220188 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'); @@ -41,7 +43,7 @@ { //$this->renderer =& new renderer(); } - function add_application($app) + function add_application(&$app) { $this->applications[$app->id] = &$app; }