+// Was the form submitted?
+if (isset($_POST['ok'])) {
+ // Replace german decimal comma with computer decimal dot
+ if (isset($_POST['surfbar_static_reward'])) $_POST['surfbar_static_reward'] = str_replace(",", ".", $_POST['surfbar_static_reward']);
+
+ // Save settings
+ ADMIN_SAVE_SETTINGS($_POST);
+} else {
+ // Prepare content
+ $content = array(
+ 'surfbar_static_reward' => TRANSLATE_COMMA($_CONFIG['surfbar_static_reward']),
+ 'surfbar_static_time' => $_CONFIG['surfbar_static_time'],
+ 'surfbar_static_lock' => $_CONFIG['surfbar_static_lock']
+ );
+
+ // Prepare payment model for template
+ if ($_CONFIG['surfbar_pay_model'] == "STATIC") {
+ // Static model
+ define('__CONFIG_SURFBAR_PAY_MODEL_STATIC' , " checked=\"checked\"");
+ define('__CONFIG_SURFBAR_PAY_MODEL_DYNAMIC', "");
+ } else {
+ // Dynamic model
+ define('__CONFIG_SURFBAR_PAY_MODEL_STATIC' , "");
+ define('__CONFIG_SURFBAR_PAY_MODEL_DYNAMIC', " checked=\"checked\"");
+ }
+
+ // Load template
+ LOAD_TEMPLATE("admin_config_surfbar", false, $content);
+}