<?php
/************************************************************************
- * MXChange v0.2.1 Start: 02/13/2005 *
- * =============== Last change: 02/13/2005 *
+ * Mailer v0.2.1-FINAL Start: 02/13/2005 *
+ * =================== Last change: 02/13/2005 *
* *
* -------------------------------------------------------------------- *
* File : doubler.php *
// Set module
$GLOBALS['module'] = 'doubler';
-$GLOBALS['output_mode'] = 0;
+$GLOBALS['output_mode'] = '0';
// Load the required file(s)
require('inc/config-global.php');
// Is the 'doubler' extension active?
redirectOnUninstalledExtension('doubler');
-// Only check this if refid is provided. This will do the rest for us
-determineReferalId();
-
// Init content array
$content = array(
'message' => '',
// Begin with doubler script...
if (isFormSent()) {
// Secure points (so only integer/double values are allowed
- setRequestPostElement('points', bigintval(postRequestElement('points')));
+ setPostRequestElement('points', bigintval(postRequestElement('points')));
// Begin with doubling process
if ((isPostRequestElementSet('userid')) && (isPostRequestElementSet('pass')) && (isPostRequestElementSet('points'))) {
loadTemplate('admin_settings_saved', false, getMessage('DOUBLER_USERID_INVALID'));
} // END - if
- // Free result
- SQL_FREERESULT($result);
-
// Remove any dots and unwanted chars from the points
- setRequestPostElement('points', bigintval(round(convertCommaToDot(postRequestElement('points')))));
+ setPostRequestElement('points', bigintval(round(convertCommaToDot(postRequestElement('points')))));
// Probe for enough points
$probe_points = ((postRequestElement('points') >= getConfig('doubler_min')) && (postRequestElement('points') <= getConfig('doubler_max')));