]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_refback.php
Fix for possible non-working cache update
[mailer.git] / inc / modules / admin / what-config_refback.php
index 599f4b7339526c75292ea35c18b7a3cfc4429dbe..7d568d1e5e31177e51557f1cd79a9907f63277ff 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Refback-Einstellungen                            *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * Needs to be in all Files and every File needs "svn propset           *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2008 by Roland Haeder                           *
  * For more information visit: http://www.mxchange.org                  *
 
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 }
 
 // Add description as navigation point
-ADD_DESCR("admin", __FILE__);
+ADD_DESCR('admin', __FILE__);
 
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
        // Save configuration
        ADMIN_SAVE_SETTINGS_POST();
 } else {
        // Prepare content
        $content = array(
-               'refback_min_perc' => bigintval(getConfig('refback_min_perc')),
-               'refback_max_perc' => bigintval(getConfig('refback_max_perc'))
+               'refback_min_perc' => getConfig(('refback_min_perc')),
+               'refback_max_perc' => getConfig(('refback_max_perc'))
        );
 
        // Add more content
        switch (getConfig('refback_enabled')) {
-               case "Y": // Refback enabled
-                       $content['refback_enabled_y'] = " checked=\"checked\"";
-                       $content['refback_enabled_n'] = "";
+               case 'Y': // Refback enabled
+                       $content['refback_enabled_y'] = ' checked="checked"';
+                       $content['refback_enabled_n'] = '';
                        break;
 
-               case "N": // Refback disabled
-                       $content['refback_enabled_y'] = "";
-                       $content['refback_enabled_n'] = " checked=\"checked\"";
+               case 'N': // Refback disabled
+                       $content['refback_enabled_y'] = '';
+                       $content['refback_enabled_n'] = ' checked="checked"';
                        break;
        }