X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=doubler.php;h=fb92ccfbd4d42ec769e6123dde6a73eecec8dcbf;hb=d52156d35605388b7554c31d08bc29f0bb167079;hp=182b473cbb838430740923d87086f7b4f7491682;hpb=5bdeaf8b452206598b6c6cd4f941145b11a0eccc;p=mailer.git diff --git a/doubler.php b/doubler.php index 182b473cbb..fb92ccfbd4 100644 --- a/doubler.php +++ b/doubler.php @@ -32,7 +32,7 @@ ************************************************************************/ // Load security stuff here (Oh, I hope this is not unsecure? Am I paranoia??? ;-) ) -require_once("inc/libs/security_functions.php"); +require("inc/libs/security_functions.php"); // Init "action" and "what" global $what, $action, $startTime; @@ -49,10 +49,7 @@ $CSS = 0; require("inc/config.php"); // Is the "doubler" extension active? -if (!EXT_IS_ACTIVE("doubler")) { - // Redirect to index - LOAD_URL("modules.php?module=index&msg={!CODE_EXTENSION_PROBLEM!}&ext=doubler"); -} // END - if +REDIRECT_ON_UNINSTALLED_EXTENSION("doubler"); // Is the script installed? if (isBooleanConstantAndTrue('mxchange_installed')) { @@ -161,7 +158,6 @@ if (isBooleanConstantAndTrue('mxchange_installed')) { // Update usage counter UPDATE_CONFIG("doubler_counter", 1, "+"); - incrementCondigEntry('doubler_counter'); // Set constant define('__DOUBLER_MSG', LOAD_TEMPLATE("doubler_reflink", true, $_POST['userid'])); @@ -208,10 +204,10 @@ if (isBooleanConstantAndTrue('mxchange_installed')) { if (!defined('__ERROR_MSG')) define('__ERROR_MSG' , ""); // Shall I check for points immediately? - if (getConfig('doubler_send_mode') == "DIRECT") require(PATH."inc/doubler_send.php"); + if (getConfig('doubler_send_mode') == "DIRECT") LOAD_INC("inc/doubler_send.php"); // Output header - require(PATH."inc/header.php"); + LOAD_INC("inc/header.php"); // Banner in text define('__DOUBLER_BANNER', LOAD_TEMPLATE("doubler_banner", true)); @@ -272,7 +268,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) { LOAD_TEMPLATE("doubler_index"); // Output footer - require(PATH."inc/footer.php"); + LOAD_INC("inc/footer.php"); } else { // You have to install first! LOAD_URL("install.php");