]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_wernis.php
min payout and withdraw sepperated in wernis extension
[mailer.git] / inc / modules / admin / what-config_wernis.php
index c4b247a40505c2fd1ab75b166e570bb07715fd61..9f1fa093f5a5c6ccc5d0d5f840229abc0c7fde43 100644 (file)
@@ -41,8 +41,8 @@ if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
 ADD_DESCR("admin", basename(__FILE__));
 
 if (isset($_POST['ok'])) {
-       // First merge temporary the new API data into config
-       $CONFIG = array_merge($CONFIG, $_POST);
+       // First merge temporarily the new API data into the current config
+       $_CONFIG = array_merge($_CONFIG, $_POST);
 
        // Let's test the API first (hold your horses here, cowboy! Thanks. :) )
        if (WERNIS_TEST_API()) {
@@ -50,15 +50,17 @@ if (isset($_POST['ok'])) {
                ADMIN_SAVE_SETTINGS($_POST);
        } else {
                // Failed to test the API!
-               LOAD_TEMPLATE("admin_settings_saved", false, WERNIS_ERROR_MESSAGE());
+               LOAD_TEMPLATE("admin_settings_saved", false, GET_WERNIS_ERROR_MESSAGE());
        }
 }  else {
        // Prepare data for template output
        $content = array(
-               'min_amount' => $CONFIG['wernis_min_amount'],
-               'api_id'     => $CONFIG['wernis_api_id'],
-               'api_md5'    => $CONFIG['wernis_api_md5'],
-               'api_url'    => $CONFIG['wernis_api_url']
+               'min_payout'    => bigintval($_CONFIG['wernis_min_payout']),
+               'min_withdraw'  => bigintval($_CONFIG['wernis_min_withdraw']),
+               'api_id'                => bigintval($_CONFIG['wernis_api_id']),
+               'api_md5'               => $_CONFIG['wernis_api_md5'],
+               'api_url'               => $_CONFIG['wernis_api_url'],
+               'refid'                 => bigintval($_CONFIG['wernis_refid'])
        );
 
        // Load template