} // END - if
// Begin with doubler script...
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
// Secure points (so only integer/double values are allowed
REQUEST_SET_POST('points', bigintval(REQUEST_POST('points')));
$url = constant('SERVER_URL');
// Is this URL valid?
- if (substr($script, 0, 7) == "http://") {
+ if (substr($script, 0, 7) == 'http://') {
// Use the hostname from script URL as new hostname
$url = substr($script, 7);
$extract = explode('/', $url);
} // END - if
// Extract host name
- $host = str_replace("http://", '', $url);
+ $host = str_replace('http://', '', $url);
if (ereg('/', $host)) $host = substr($host, 0, strpos($host, '/'));
// Generate relative URL
//* DEBUG: */ print("SCRIPT=".$script."<br />\n");
- if (substr(strtolower($script), 0, 7) == "http://") {
+ if (substr(strtolower($script), 0, 7) == 'http://') {
// But only if http:// is in front!
$script = substr($script, (strlen($url) + 7));
} elseif (substr(strtolower($script), 0, 8) == "https://") {
// Open connection
//* DEBUG: */ die("SCRIPT=".$script."<br />\n");
- if ($useProxy) {
- $fp = @fsockopen(COMPILE_CODE(getConfig('proxy_host')), getConfig('proxy_port'), $errno, $errdesc, 30);
+ if ($useProxy === true) {
+ // Connect to host through proxy connection
+ $fp = @fsockopen(COMPILE_CODE(getConfig('proxy_host')), bigintval(getConfig('proxy_port')), $errno, $errdesc, 30);
} else {
+ // Connect to host directly
$fp = @fsockopen($host, 80, $errno, $errdesc, 30);
}
} // END - if
// Do we use proxy?
- if ($useProxy) {
+ if ($useProxy === true) {
// Generate CONNECT request header
$proxyTunnel = "CONNECT " . $host . ":80 HTTP/1.1" . getConfig('HTTP_EOL');
$proxyTunnel .= "Host: " . $host . getConfig('HTTP_EOL');
// Use login data to proxy? (username at least!)
if (getConfig('proxy_username') != '') {
// Add it as well
- $encodedAuth = base64_encode(COMPILE_CODE(getConfig('proxy_username')).getConfig('ENCRYPT_SEPERATOR').COMPILE_CODE(getConfig('proxy_password')));
+ $encodedAuth = base64_encode(COMPILE_CODE(getConfig('proxy_username')) . getConfig('ENCRYPT_SEPERATOR') . COMPILE_CODE(getConfig('proxy_password')));
$proxyTunnel .= "Proxy-Authorization: Basic " . $encodedAuth . getConfig('HTTP_EOL');
} // END - if
//* DEBUG: */ print("<strong>Response:</strong><pre>".print_r($response, true)."</pre>");
// Proxy agent found?
- if ((substr(strtolower($response[0]), 0, 11) == 'proxy-agent') && ($useProxy)) {
+ if ((substr(strtolower($response[0]), 0, 11) == 'proxy-agent') && ($useProxy === true)) {
// Proxy header detected, so remove two lines
array_shift($response);
array_shift($response);
$test = $text;
// First replace URLs...
- while (ereg("http://", $test))
- {
- $check = substr($test, strpos($test, "http://")); $check2 = $check;
+ while (ereg('http://', $test)) {
+ $check = substr($test, strpos($test, 'http://')); $check2 = $check;
// See ext-html.php if you want to add more URL ends...
- foreach ($GLOBALS['url_ends'] as $end)
- {
+ foreach ($GLOBALS['url_ends'] as $end) {
if (ereg($end, $check)) $check = substr($check, 0, strpos($check, $end));
- }
+ } // END - foreach
// Now replace the URL against anchor container and pray...
$text = substr($text, 0, strpos($text, $check2))."<a href=\"".DEREFERER($check)."\" target=\"_blank\">".$check."</a>".substr($text, strpos($text, $check2) + strlen($check));
// Finally remove the url from testing string (or we have a loop and maybe server overload!)
$test = substr($test, strpos($test, $check) + strlen($check));
- }
+ } // END - while
// Now do the (nearly) same thing with email addresses
// but now we have the problem that email addresses didn't have
$test = $text;
// First replace URLs...
- while (ereg("http://", $test)) {
- $check = substr($test, strpos($test, "http://")); $check2 = $check;
+ while (ereg('http://', $test)) {
+ $check = substr($test, strpos($test, 'http://')); $check2 = $check;
// See ext-html.php if you want to add more URL ends...
foreach ($GLOBALS['url_ends'] as $end) {
if (ereg($end, $check)) $check = substr($check, 0, strpos($check, $end));
- }
+ } // END - foreach
// Now replace the URL against anchor container and pray...
$text = substr($text, 0, strpos($text, $check2)) . DEREFERER($check) . substr($text, strpos($text, $check2) + strlen($check));
// Finally remove the url from testing string (or we have a loop and maybe server overload!)
$test = substr($test, strpos($test, $check) + strlen($check));
- }
+ } // END - while
// Now do the (nearly) same thing with email addresses
// but now we have the problem that email addresses didn't have
// Is no admin registered?
if (!isAdminRegistered()) {
// Admin is not registered so we have to inform the user
- if ((IS_FORM_SENT()) && ((!REQUEST_ISSET_POST(('login'))) || (!REQUEST_ISSET_POST(('pass'))) || (strlen(REQUEST_POST('pass')) < 4))) {
+ if ((isFormSent()) && ((!REQUEST_ISSET_POST(('login'))) || (!REQUEST_ISSET_POST(('pass'))) || (strlen(REQUEST_POST('pass')) < 4))) {
REQUEST_SET_POST('ok', '***');
}
- if ((IS_FORM_SENT()) && (REQUEST_POST('ok') != '***')) {
+ if ((isFormSent()) && (REQUEST_POST('ok') != '***')) {
// Hash the password with the old function because we are here in install mode
$hashedPass = md5(REQUEST_POST('pass'));
}
// Yet-another notice-fix
- if ((IS_FORM_SENT()) && (REQUEST_POST('ok') == '***')) {
+ if ((isFormSent()) && (REQUEST_POST('ok') == '***')) {
// No login entered?
if (!REQUEST_ISSET_POST(('login'))) $loginMessage = getMessage('ADMIN_NO_LOGIN');
} // END - if
// Check if the admin has submitted data or not
- if ((IS_FORM_SENT()) && ((!REQUEST_ISSET_POST(('login'))) || (!REQUEST_ISSET_POST(('pass'))) || (strlen(REQUEST_POST('pass')) < 4))) {
+ if ((isFormSent()) && ((!REQUEST_ISSET_POST(('login'))) || (!REQUEST_ISSET_POST(('pass'))) || (strlen(REQUEST_POST('pass')) < 4))) {
REQUEST_SET_POST('ok', '***');
} // END - if
- if ((IS_FORM_SENT()) && (REQUEST_POST('ok') != '***')) {
+ if ((isFormSent()) && (REQUEST_POST('ok') != '***')) {
// All required data was entered so we check his account
$ret = CHECK_ADMIN_LOGIN(REQUEST_POST('login'), REQUEST_POST('pass'));
define('__LOGIN_VALUE', '');
}
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
// Set messages to zero
$loginMessage = ''; $passwdMessage = '';
ADD_DESCR('admin', __FILE__);
// Is the formular sent?
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Save the row to the database
ADMIN_SAVE_SETTINGS(REQUEST_POST_ARRAY(), "_bank_packages", '', array("account_fee", "interest_plus", "interest_minus", "first_payment"), true);
} else {
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Check if category does already exist
} else {
// Display form
if (REQUEST_GET('uid') == "all") {
// Add points to all accounts
- if ((IS_FORM_SENT()) && (REQUEST_POST('points') > 0)) {
+ if ((isFormSent()) && (REQUEST_POST('points') > 0)) {
// @TODO Rewrite this constant
define('__POINTS_VALUE', REQUEST_POST('points'));
list($sname, $fname, $email) = SQL_FETCHROW($result);
SQL_FREERESULT($result);
- if ((IS_FORM_SENT()) && (REQUEST_ISSET_POST(('points')))) {
+ if ((isFormSent()) && (REQUEST_ISSET_POST(('points')))) {
// Remove depth to prevent booking errors. This is a bad coding
// practice, thats also why we need to write this project from
// scratch...
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Generate timestamps
$START = mktime(REQUEST_POST('start_hour'), REQUEST_POST('start_min'), REQUEST_POST('start_sec'), REQUEST_POST('start_month'), REQUEST_POST('start_day'), REQUEST_POST('start_year'));
$END = mktime(REQUEST_POST('end_hour') , REQUEST_POST('end_min') , REQUEST_POST('end_sec') , REQUEST_POST('end_month') , REQUEST_POST('end_day') , REQUEST_POST('end_year') );
// Is there already a rallye running?
$result = SQL_QUERY_ESC("SELECT id, admin_id FROM `{!_MYSQL_PREFIX!}_rallye_data` WHERE (start_time <= %s AND end_time >= %s) OR (start_time >= %s AND start_time <= %s) LIMIT 1",
- array($START, $START, $START, $END), __FILE__, __LINE__);
+ array($START, $START, $START, $END), __FILE__, __LINE__);
if (SQL_NUMROWS($result) == 0) {
// Ok, start and end time did not overlap
SQL_QUERY_ESC("INSERT INTO `{!_MYSQL_PREFIX!}_rallye_data` (admin_id, title, descr, template, start_time, end_time, auto_add_new_user, is_active, send_notify)
VALUES ('%s','%s','%s','%s','%s','%s','%s','%s','%s')",
- array(
- getCurrentAdminId(),
- REQUEST_POST('title'),
- REQUEST_POST('descr'),
- REQUEST_POST('template'),
- $START,
- $END,
- REQUEST_POST('auto_add'),
- REQUEST_POST('active'),
- REQUEST_POST('notify'),
- ), __FILE__, __LINE__);
+ array(
+ getCurrentAdminId(),
+ REQUEST_POST('title'),
+ REQUEST_POST('descr'),
+ REQUEST_POST('template'),
+ $START,
+ $END,
+ REQUEST_POST('auto_add'),
+ REQUEST_POST('active'),
+ REQUEST_POST('notify'),
+ ), __FILE__, __LINE__);
// Load ID
$result = SQL_QUERY_ESC("SELECT `id` FROM `{!_MYSQL_PREFIX!}_rallye_data` WHERE start_time='%s' AND end_time='%s' AND `title`='%s' LIMIT 1",
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Save sponsor in database
SPONSOR_HANDLE_SPONSOR(REQUEST_POST_ARRAY());
} else {
ADD_DESCR('admin', __FILE__);
// Check if the admin has entered title and what-php file name...
-if (((!REQUEST_ISSET_POST(('title'))) || (!REQUEST_ISSET_POST(('menu'))) || (!REQUEST_ISSET_POST(('descr')))) && (IS_FORM_SENT())) {
+if (((!REQUEST_ISSET_POST(('title'))) || (!REQUEST_ISSET_POST(('menu'))) || (!REQUEST_ISSET_POST(('descr')))) && (isFormSent())) {
REQUEST_UNSET_POST('ok');
}
-if (!IS_FORM_SENT())
+if (!isFormSent())
{
// Create arrays
$menus = array(); $titles = array(); $below = array();
// Load template
LOAD_TEMPLATE("admin_amenu_delete");
-} elseif ((IS_FORM_SENT()) && (!IS_DEMO())) {
+} elseif ((isFormSent()) && (!IS_DEMO())) {
// An action is done...
switch (REQUEST_POST('ok'))
{
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if ((IS_FORM_SENT()) && (REQUEST_ISSET_GET('admin'))) {
+if ((isFormSent()) && (REQUEST_ISSET_GET('admin'))) {
// Send mail or message
if ((EXT_IS_ACTIVE("msg")) && (REQUEST_POST('type') == "msg")) {
// Add message
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Save data
ADMIN_SAVE_SETTINGS_POST();
} else {
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Save configuration
ADMIN_SAVE_SETTINGS_POST();
} else {
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Data was submitted so we store it
ADMIN_SAVE_SETTINGS_POST();
} else {
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Translate german decimal commas to computer decimal dots
REQUEST_SET_POST('beg_points' , convertCommaToDot(REQUEST_POST('beg_points') ));
REQUEST_SET_POST('beg_points_max' , convertCommaToDot(REQUEST_POST('beg_points_max') ));
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Save configuration
ADMIN_SAVE_SETTINGS_POST();
} else {
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Replace german decimal commas to computer decimal dots
- REQUEST_POST('login_bonus') = convertCommaToDot(REQUEST_POST('login_bonus') );
- REQUEST_POST('turbo_bonus') = convertCommaToDot(REQUEST_POST('turbo_bonus') );
- REQUEST_POST('bonus_ref') = convertCommaToDot(REQUEST_POST('bonus_ref') );
- REQUEST_POST('bonus_order') = convertCommaToDot(REQUEST_POST('bonus_order') );
+ REQUEST_SET_POST('login_bonus', convertCommaToDot(REQUEST_POST('login_bonus')));
+ REQUEST_SET_POST('turbo_bonus', convertCommaToDot(REQUEST_POST('turbo_bonus')));
+ REQUEST_SET_POST('bonus_ref', convertCommaToDot(REQUEST_POST('bonus_ref')));
+ REQUEST_SET_POST('bonus_order', convertCommaToDot(REQUEST_POST('bonus_order')));
REQUEST_SET_POST('bonus_notify_points', convertCommaToDot(REQUEST_POST('bonus_notify_points')));
// Generate string for saving ranks
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Cache path has been not changed by default so don't test it again
REQUEST_SET_POST('cache_tested', 'N');
// Display message
LOAD_TEMPLATE('admin_settings_saved', false, $content);
-} elseif ((IS_FORM_SENT()) && (REQUEST_ISSET_POST('id')) && (is_array(REQUEST_POST('id')))) {
+} elseif ((isFormSent()) && (REQUEST_ISSET_POST('id')) && (is_array(REQUEST_POST('id')))) {
// Change or delete categories...
$TEXT = '';
foreach (REQUEST_POST('id') as $id => $cat) {
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Replace commata with decimal dot
REQUEST_SET_POST('doubler_charge', convertCommaToDot((REQUEST_POST('doubler_charge') / 100)));
REQUEST_SET_POST('doubler_ref' , convertCommaToDot((REQUEST_POST('doubler_ref') / 100)));
// Display message
LOAD_TEMPLATE('admin_settings_saved', false, $content);
-} elseif ((IS_FORM_SENT()) && (REQUEST_ISSET_GET('do'))) {
+} elseif ((isFormSent()) && (REQUEST_ISSET_GET('do'))) {
// Change or delete entries...
$TEXT = '';
foreach (REQUEST_POST('id') as $id => $value) {
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Save configuration
ADMIN_SAVE_SETTINGS_POST();
} else {
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT())
-{
+if (isFormSent()) {
// Save settings
ADMIN_SAVE_SETTINGS_POST();
-}
-else
-{
+} else {
// Prepare constants for the template
define('__MAX_VALUE', getConfig('holiday_max'));
define('__LOCKED' , createTimeSelections(getConfig('holiday_lock') , "holiday_lock" , "WDh"));
// Load form template
LOAD_TEMPLATE("admin_config_holiday");
}
+
//
?>
switch ($sub)
{
case "settings": // Settings related to the index page
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
// Save settings
ADMIN_SAVE_SETTINGS_POST();
OUTPUT_HTML("<a href=\"{!URL!}/modules.php?module=admin&what=config_home&sub=settings\">{--ADMIN_CONTINUE_TO_CONFIG--}</a>");
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Test timestamp
$STAMP = mktime(0, 0, 0, bigintval(REQUEST_POST('month')), bigintval(REQUEST_POST('day')), bigintval(REQUEST_POST('year')));
if ($STAMP > time()) {
}
}
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Save data
ADMIN_SAVE_SETTINGS_POST();
} else {
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Save data
REQUEST_SET_POST('nl_charge', convertCommaToDot(REQUEST_POST('nl_charge')));
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Save data
ADMIN_SAVE_SETTINGS_POST();
} else {
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Save data
ADMIN_SAVE_SETTINGS_POST();
} else {
// Prepare constants for the template
- switch (getConfig('order_max_full'))
- {
+ switch (getConfig('order_max_full')) {
case 'ORDER':
define('__ORDER_DEFAULT', ' checked="checked"');
define('__MAX_DEFAULT' , '');
define('__MIN_VALUE', getConfig('order_min'));
// Sorting mode (ascending / descending)
- switch (getConfig('order_mode'))
- {
+ switch (getConfig('order_mode')) {
case "ASC":
define('__ASC_DEFAULT' , ' selected="selected"');
define('__DESC_DEFAULT', '');
// Load template
LOAD_TEMPLATE("admin_config_order");
}
+
//
?>
ADD_DESCR('admin', __FILE__);
// Stop saving data if one input field is !isset
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Calculate stamps and set calculated stamps
REQUEST_POST('online_timeout') = createTimestampFromSelections('ip_timeout' , REQUEST_POST_ARRAY());
REQUEST_POST('url_tlock') = createTimestampFromSelections('url_tlock' , REQUEST_POST_ARRAY());
if (!REQUEST_ISSET_POST(('reject_url'))) { REQUEST_UNSET_POST('ok'); }
}
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Update stamps directly
ADMIN_SAVE_SETTINGS_POST();
} else {
REQUEST_SET_GET('sub', "overview");
}
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
INIT_SQLS();
switch (REQUEST_GET('sub'))
{
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// First merge temporarily the new API data into the current config
mergeConfig(REQUEST_POST_ARRAY());
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Test proxy settings
if (ADMIN_TEST_PROXY_SETTINGS(REQUEST_POST_ARRAY())) {
// Save configuration
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Save configuration
ADMIN_SAVE_SETTINGS_POST();
} else {
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Save data
ADMIN_SAVE_SETTINGS_POST();
} else {
ADD_DESCR('admin', __FILE__);
// Do we want to save changes?
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
foreach (REQUEST_POST('sel') as $id => $value) {
SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_must_register` SET field_required='%s' WHERE `id`=%s AND field_required != '%s' LIMIT 1",
array($value, bigintval($id), $value),__FILE__, __LINE__);
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Calculate timestamp from selections...
REQUEST_SET_POST('ip_timeout', createTimestampFromSelections('ip_timeout', REQUEST_POST_ARRAY()));
REQUEST_SET_POST('least_cats', round(REQUEST_POST('least_cats')));
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Save configuration
ADMIN_SAVE_SETTINGS_POST();
} else {
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Generate string
$MODs = array();
foreach (REQUEST_POST('mod') as $mod => $sel) {
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// If salt length is empty or null then we shall generate new passwords
if (!REQUEST_ISSET_POST(('salt_length')) || (REQUEST_POST('salt_length') == '0')) {
// Generate new passwords for all!
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Test Path
if ((!REQUEST_ISSET_POST(('session_save_path'))) || ((isDirectory(REQUEST_POST('session_save_path'))) && (is_writeable(REQUEST_POST('session_save_path'))))) {
// Save configuration
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Allow only direct points (non-floating)
REQUEST_SET_POST('sponsor_min_points', bigintval(REQUEST_POST('sponsor_min_points')));
REQUEST_SET_POST('sponsor_ref_points', bigintval(REQUEST_POST('sponsor_ref_points')));
ADD_DESCR('admin', __FILE__);
// Was the form submitted?
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Save settings
ADMIN_SAVE_SETTINGS_POST();
} else {
ADD_DESCR('admin', __FILE__);
// Was the form submitted?
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Replace german decimal comma with computer decimal dot
if (REQUEST_ISSET_POST(('surfbar_static_reward'))) REQUEST_SET_POST('surfbar_static_reward' , convertCommaToDot(REQUEST_POST('surfbar_static_reward')));
if (REQUEST_ISSET_POST(('surfbar_static_costs'))) REQUEST_SET_POST('surfbar_static_costs' , convertCommaToDot(REQUEST_POST('surfbar_static_costs')));
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT())
-{
+if (isFormSent()) {
// Save settings
ADMIN_SAVE_SETTINGS_POST();
-}
-else
-{
+} else {
// Remember config data in constants for the template
define('__CFG_TITLE_LEFT' , getConfig('title_left'));
define('__CFG_TITLE_MIDDLE' , getConfig('title_middle'));
// Load template
LOAD_TEMPLATE("admin_config_title");
}
+
//
?>
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT())
-{
+if (isFormSent()) {
// Save settings
ADMIN_SAVE_SETTINGS_POST();
-}
-else
-{
+} else {
// Prepare constants for the template
define('__MAX_VALUE', getConfig('top10_max'));
// Load form template
LOAD_TEMPLATE("admin_config_top10");
}
+
//
?>
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Save settings...
ADMIN_SAVE_SETTINGS_POST();
}
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Save settings
ADMIN_SAVE_SETTINGS_POST();
} else {
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// First merge temporarily the new API data into the current config
mergeConfig(REQUEST_POST_ARRAY());
ADD_DESCR('admin', __FILE__);
// Was the form submitted?
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Test Yoo!Media config
if (YOOMEDIA_TEST_CONFIG(REQUEST_POST_ARRAY())) {
// Save settings
array(bigintval(REQUEST_GET('id'))), __FILE__, __LINE__);
if (SQL_NUMROWS($result) == 1) {
// Remove sponsor
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
// Load data and remember it in constants
list($email, $gender, $surname, $family) = SQL_FETCHROW($result);
ADD_DESCR('admin', __FILE__);
// User exists..
-if ((IS_FORM_SENT()) || ((REQUEST_ISSET_POST('del')) && (REQUEST_ISSET_POST(('reason'))))) {
+if ((isFormSent()) || ((REQUEST_ISSET_POST('del')) && (REQUEST_ISSET_POST(('reason'))))) {
// Delete users account
$result_user = SQL_QUERY_ESC("SELECT userid FROM `{!_MYSQL_PREFIX!}_user_data` WHERE userid=%s LIMIT 1",
array(bigintval(REQUEST_GET('uid'))), __FILE__, __LINE__);
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if ((IS_FORM_SENT()) && (!REQUEST_ISSET_POST('id'))) {
+if ((isFormSent()) && (!REQUEST_ISSET_POST('id'))) {
REQUEST_UNSET_POST('ok');
}
$result = SQL_QUERY("SELECT id, sender, subject, payment_id, cat_id FROM `{!_MYSQL_PREFIX!}_pool` ORDER BY timestamp", __FILE__, __LINE__);
if (SQL_NUMROWS($result) > 0) {
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
// Make mail editable...
$result = SQL_QUERY_ESC("SELECT subject, text, url FROM `{!_MYSQL_PREFIX!}_pool` WHERE `id`=%s LIMIT 1",
array(bigintval(REQUEST_POST('id'))), __FILE__, __LINE__);
INIT_SQLS();
// Sponsor was found
- if ((IS_FORM_SENT()) || (REQUEST_ISSET_POST('edit'))) {
+ if ((isFormSent()) || (REQUEST_ISSET_POST('edit'))) {
// Perform action on mode
switch (REQUEST_GET('mode'))
{
ADD_DESCR('admin', __FILE__);
// Check if the admin has entered title and what-php file name...
-if (((!REQUEST_ISSET_POST(('title'))) || (!REQUEST_ISSET_POST(('menu')))) && (IS_FORM_SENT())) {
+if (((!REQUEST_ISSET_POST(('title'))) || (!REQUEST_ISSET_POST(('menu')))) && (isFormSent())) {
// Abort adding the menu entry
REQUEST_UNSET_POST('ok');
}
-if (!IS_FORM_SENT()) {
+if (!isFormSent()) {
// Create arrays
$menus = array(); $titles = array(); $below = array();
// Load template
LOAD_TEMPLATE("admin_gmenu_delete");
-} elseif ((IS_FORM_SENT()) && (!IS_DEMO())) {
+} elseif ((isFormSent()) && (!IS_DEMO())) {
// An action is done...
switch (REQUEST_POST('ok'))
{
if ((REQUEST_GET('do') == "accept") && (!empty($email))) {
// Ok, now we can output the form or execute accepting
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
// Obtain payout type and other data
$result = SQL_QUERY_ESC("SELECT payout_id FROM `{!_MYSQL_PREFIX!}_user_payouts` WHERE `id`=%s LIMIT 1",
array(bigintval(REQUEST_GET('pid'))), __FILE__, __LINE__);
}
} elseif ((REQUEST_GET('do') == "reject") && (!empty($email))) {
// Ok, now we can output the form or execute rejecting
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
if ($task > 0) {
// Clear task
runFilterChain('solve_task', $task);
ADD_DESCR('admin', __FILE__);
// Do actions here
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Prepare mail for delivery
YOOMEDIA_PREPARE_MAIL_DELIVERY(REQUEST_POST_ARRAY());
return;
define('__FAMILY' , $fname);
define('__ID' , bigintval(REQUEST_GET('id')));
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
// Create messages
if ($status == 'CONFIRMED') {
// Message when sponsor's account got lock
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// De- or activate maintenance mode
switch (getConfig('maintenance'))
{
ADD_DESCR('admin', __FILE__);
// Check if the admin has entered title and what-php file name...
-if ((!REQUEST_ISSET_POST(('title'))) && (IS_FORM_SENT())) {
+if ((!REQUEST_ISSET_POST(('title'))) && (isFormSent())) {
REQUEST_UNSET_POST('ok');
} // END - if
-if (!IS_FORM_SENT()) {
+if (!isFormSent()) {
// Create arrays
$menus = array(); $titles = array(); $below = array();
define('__CNT_VALUE', $cnt);
//
LOAD_TEMPLATE("admin_mmenu_status");
-} elseif ((IS_FORM_SENT()) && (!IS_DEMO())) {
+} elseif ((isFormSent()) && (!IS_DEMO())) {
// An act is done...
foreach (REQUEST_POST('sel') as $sel => $menu) {
$AND = "(`what` = '' OR `what` IS NULL)";
REQUEST_UNSET_POST('ok');
}
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
switch (REQUEST_GET('do')) {
case 'add':
ADD_SQL("INSERT INTO `{!_MYSQL_PREFIX!}_payments` (time, payment, mail_title, price) VALUES ('".REQUEST_POST('t_wait')."','".REQUEST_POST('payment')."','".REQUEST_POST('title')."','".REQUEST_POST('price')."')");
// Check selection count
if (REQUEST_ISSET_POST('sel')) $SEL = countPostSelection();
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Fix older calls from add-new-banner-form
if (!REQUEST_ISSET_GET(('mode'))) REQUEST_SET_GET('mode', 'add');
$sql = '';
// Set empty mode to "select"
if (!REQUEST_ISSET_GET('mode')) REQUEST_SET_GET('mode', "select");
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Deliver bonus mail
addNewBonusMail(REQUEST_POST_ARRAY(), REQUEST_GET('mode'));
} else {
// Add description as navigation point
ADD_DESCR('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
$result = SQL_QUERY("SELECT userid, email
FROM `{!_MYSQL_PREFIX!}_user_data`
WHERE `status`='CONFIRMED' AND nl_receive='Y'
define('__POINTS_VALUE', REQUEST_POST('points'));
// Is the form sent?
- if ((IS_FORM_SENT()) && (REQUEST_POST('points') > 0)) {
+ if ((isFormSent()) && (REQUEST_POST('points') > 0)) {
$result_main = SQL_QUERY("SELECT userid, email FROM `{!_MYSQL_PREFIX!}_user_data` WHERE `status`='CONFIRMED' ORDER BY `userid` ASC",
__FILE__, __LINE__);
while ($content = SQL_FETCHARRAY($result_main)) {
// Selected user does exist
$content = SQL_FETCHARRAY($result);
- if ((IS_FORM_SENT()) && (REQUEST_ISSET_POST(('points')))) {
+ if ((isFormSent()) && (REQUEST_ISSET_POST(('points')))) {
// Ok, add to used points and send an email to him...
SUB_POINTS("admin_single", bigintval(REQUEST_GET('uid')), REQUEST_POST('points'));
sendEmail($DATA['sender'], getMessage('MEMBER_ORDER_REJECTED'), $msg_user);
// If you do not enter an URL to redirect to, your URL will be set!
- if ((!REQUEST_ISSET_POST(('redirect'))) || (REQUEST_POST('redirect') == "http://")) REQUEST_SET_POST('redirect', constant('URL'));
+ if ((!REQUEST_ISSET_POST(('redirect'))) || (REQUEST_POST('redirect') == 'http://')) REQUEST_SET_POST('redirect', constant('URL'));
// Redirect URL
SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_pool` SET url='%s', data_type='NEW' WHERE `id`=%s LIMIT 1",
define('__UNLOCK_ROWS', $OUT);
// Prepare rejection URL
- $REJECT = "http://";
+ $REJECT = 'http://';
if (GET_EXT_VERSION('other') >= '0.1.6') $REJECT = getConfig('reject_url');
define('__REJECT_URL', $REJECT);
ADD_DESCR('admin', __FILE__);
// Check if admin has submitted form
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Does he have selected at least one sponsor?
if (countSelection(REQUEST_POST('id')) > 0) {
// At least one entry selected
$content = str_replace("usage_", "{!URL!}/modules.php?module=admin&what=".$GLOBALS['what']."&usage=", str_replace(".html", '', $content));
// Disabled due to too much trouble
- //$content = str_replace("HREF=\"http://", "href=\"{!URL!}/modules.php?module=loader&url=http://", $content);
+ //$content = str_replace("HREF=\'http://', "href=\"{!URL!}/modules.php?module=loader&url=http://", $content);
$test = strtolower($content);
// Do we need to strip out above and including <body> plus trailing </html> tag?
if ((REQUEST_ISSET_GET('uid')) && (bigintval(REQUEST_GET('uid')) > 0)) {
// Load user data and display it
$result = SQL_QUERY_ESC("SELECT surname, family, email FROM `{!_MYSQL_PREFIX!}_user_data` WHERE userid=%s LIMIT 1",
- array(bigintval(REQUEST_GET('uid'))), __FILE__, __LINE__);
+ array(bigintval(REQUEST_GET('uid'))), __FILE__, __LINE__);
// Is a user account found?
if (SQL_NUMROWS($result) == 1) {
$content['uid'] = bigintval(REQUEST_GET('uid'));
// Shall we send the email?
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
// Insert text
$content['text'] = trim(strip_tags(REQUEST_POST('text')));
define('__UID', '0');
LOAD_TEMPLATE('guest_confirm_table');
}
-} elseif ((IS_FORM_SENT()) && (REQUEST_ISSET_POST('email'))) {
+} elseif ((isFormSent()) && (REQUEST_ISSET_POST('email'))) {
// Confirmation link requested 0 1 2
$result = SQL_QUERY_ESC("SELECT userid, status, user_hash FROM `{!_MYSQL_PREFIX!}_user_data` WHERE email='%s' LIMIT 1",
array(REQUEST_POST('email')), __FILE__, __LINE__);
if ((isUserIdSet()) && (isSessionVariableSet('u_hash'))) {
// Maybe, then continue with it
$uid = getUserId();
-} elseif ((REQUEST_ISSET_POST('id')) && (REQUEST_ISSET_POST(('password'))) && (IS_FORM_SENT())) {
+} elseif ((REQUEST_ISSET_POST('id')) && (REQUEST_ISSET_POST(('password'))) && (isFormSent())) {
// Set userid and crypt password when login data was submitted
if ((EXT_IS_ACTIVE('nickname')) && (NICKNAME_PROBE_ON_USERID(REQUEST_POST('id')))) {
// Nickname entered
if (IS_MEMBER()) {
// Login immidiately...
$URL = 'modules.php?module=login';
-} elseif ((IS_FORM_SENT()) && (''.$uid.'' != ''.REQUEST_POST('id') . '')) {
+} elseif ((isFormSent()) && (''.$uid.'' != ''.REQUEST_POST('id') . '')) {
// Invalid input (no nickname extension installed but nickname entered)
$errorCode = getCode('EXTENSION_PROBLEM');
-} elseif (IS_FORM_SENT()) {
+} elseif (isFormSent()) {
// Try the login (see inc/libs/user_functions.php)
$URL = USER_DO_LOGIN(REQUEST_POST('id'), REQUEST_POST('password'));
} elseif ((REQUEST_ISSET_POST(('new_pass'))) && (isset($uid))) {
// Initialize variables
$isFailed = false; $SHORT_PASS = false; $cats = 0; $IP_TIMEOUT = false;
-if (!IS_FORM_SENT()) REQUEST_UNSET_POST('ok');
+if (!isFormSent()) REQUEST_UNSET_POST('ok');
if (!REQUEST_ISSET_POST(('agree'))) REQUEST_SET_POST('agree' , '');
if (!REQUEST_ISSET_POST(('addy'))) REQUEST_SET_POST('addy' , '');
}
} // END - if
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// First we only check the submitted data then we continue... :)
//
// Did he agree to our Terms Of Usage?
SQL_FREERESULT($result);
}
-if ((IS_FORM_SENT()) && (($isFailed === false) || (IS_ADMIN()))) {
+if ((isFormSent()) && (($isFailed === false) || (IS_ADMIN()))) {
// Prepapre month and day of birth
if (strlen(REQUEST_POST('day')) == 1) REQUEST_SET_POST('day' , '0'.REQUEST_POST('day'));
if (strlen(REQUEST_POST('month')) == 1) REQUEST_SET_POST('month', '0'.REQUEST_POST('month'));
SQL_FREERESULT($result);
} elseif ($mode == 'activate') {
// Send activation link again
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
// Check submitted data
if (!REQUEST_ISSET_POST('email')) REQUEST_UNSET_POST('ok');
}
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
// Check email
$result = SQL_QUERY_ESC("SELECT id, hash, status, remote_addr, gender, surname, family, sponsor_created
FROM `{!_MYSQL_PREFIX!}_sponsor_data`
}
} elseif ($mode == 'lost_pass') {
// Send new password
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
// Check submitted data
if (!REQUEST_ISSET_POST('email')) REQUEST_UNSET_POST('ok');
} // END - if
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
// Check email
$result = SQL_QUERY_ESC("SELECT id, hash, remote_addr, gender, surname, family, sponsor_created
FROM `{!_MYSQL_PREFIX!}_sponsor_data`
// Load form
LOAD_TEMPLATE('guest_sponsor_lost');
}
-} elseif (IS_FORM_SENT()) {
+} elseif (isFormSent()) {
// Check status and login data ...
$result = SQL_QUERY_ESC("SELECT status FROM `{!_MYSQL_PREFIX!}_sponsor_data`
WHERE `id`='%s' AND password='%s' LIMIT 1",
// Create array for form errors (= missing data)
$FORM_ERRORS = array();
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
//
// Check submitted form data
//
if (count($FORM_ERRORS) > 0) REQUEST_UNSET_POST('ok');
}
-if ((IS_FORM_SENT()) && (count($FORM_ERRORS) == 0)) {
+if ((isFormSent()) && (count($FORM_ERRORS) == 0)) {
// Generate message array
$messageArray = array(
'failed' => getMessage('SPONSOR_REGISTRATION_FAILED'),
if ($cats > 0) {
$LEAST = false;
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
$cnt = 0;
foreach (REQUEST_POST('cat') as $cat => $joined) {
if ($joined == 'N') $cnt++;
}
}
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
foreach (REQUEST_POST('cat') as $cat => $joined) {
switch ($joined) {
case 'Y':
SQL_FREERESULT($result1);
SQL_FREERESULT($result2);
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Check holiday request...
$START = mktime(0, 0, 0, REQUEST_POST('start_month'), REQUEST_POST('start_day'), REQUEST_POST('start_year'));
$END = mktime(0, 0, 0, REQUEST_POST('end_month') , REQUEST_POST('end_day') , REQUEST_POST('end_year') );
}
// If something is wrong or link in menu is just clicked display form
-if ((!IS_FORM_SENT()) && (!REQUEST_ISSET_POST('stop'))) {
+if ((!isFormSent()) && (!REQUEST_ISSET_POST('stop'))) {
// Check if user is in holiday...
$result = SQL_QUERY_ESC("SELECT holiday_active, holiday_activated FROM `{!_MYSQL_PREFIX!}_user_data`
WHERE userid=%s LIMIT 1", array(getUserId()), __FILE__, __LINE__);
ADD_DESCR('member', __FILE__);
// Class was found and loaded
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Save settings
SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET `html`='%s' WHERE userid=%s LIMIT 1",
array(REQUEST_POST('html'), getUserId()), __FILE__, __LINE__);
// Remember charge value
define('__CHARGE_VALUE', translateComma(getConfig('nl_charge')));
-if ((IS_FORM_SENT()) && ($status == 'Y') && ($span == '0')) {
+if ((isFormSent()) && ($status == 'Y') && ($span == '0')) {
// Save request
SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET nl_timespan='".(getConfig('one_day') * 30)."' WHERE userid=%s LIMIT 1",
array(getUserId()), __FILE__, __LINE__);
ADD_DESCR('member', __FILE__);
$isValid = false;
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
// Nickname was submitted so let's check if it is not already in use
if (REQUEST_ISSET_POST(('nickname'))) {
// Check if nickname is valid
$URL = '';
if (getConfig('test_text') == 'Y') {
// Test submitted text against some filters (length, URLs in text etc.)
- if ((strpos(strtolower(REQUEST_POST('text')), "https://") > -1) || (strpos(strtolower(REQUEST_POST('text')), "http://") > -1) || (strpos(strtolower(REQUEST_POST('text')), "www") > -1)) {
+ if ((strpos(strtolower(REQUEST_POST('text')), "https://") > -1) || (strpos(strtolower(REQUEST_POST('text')), 'http://') > -1) || (strpos(strtolower(REQUEST_POST('text')), "www") > -1)) {
// URL found!
$URL = 'modules.php?module=login&what=order&msg=' . getCode('URL_FOUND');
} // END - if
if (getConfig('test_subj') == 'Y') {
// Check the subject line for issues
REQUEST_SET_POST('subject', str_replace("\\", "[nl]", substr(REQUEST_POST('subject'), 0, 200)));
- if ((strpos(strtolower(REQUEST_POST('subject')), "http://") > -1) || (strpos(strtolower(REQUEST_POST('subject')), "www") > -1)) {
+ if ((strpos(strtolower(REQUEST_POST('subject')), 'http://') > -1) || (strpos(strtolower(REQUEST_POST('subject')), "www") > -1)) {
// URL in subject found
$URL = 'modules.php?module=login&what=order&msg=' . getCode('SUBJ_URL');
} // END - if
$OLD_ORDER = true;
} else {
// Default output for that your members don't forget it...
- $url = "http://";
+ $url = 'http://';
}
// Free result
if (convertCommaToDot($TPTS) >= $content['min_points']) {
// Ok, he can get be paid
- if ((IS_FORM_SENT()) && ($PAYOUT <= $PAY_MAX) && ($PAYOUT >= $content['min_points'])) {
+ if ((isFormSent()) && ($PAYOUT <= $PAY_MAX) && ($PAYOUT >= $content['min_points'])) {
// Calculate exact value
// @TODO Rewrite this constant
define('PAYOUT_POINTS_VALUE', $PAYOUT);
}
// Is the formular sent?
-if ((IS_FORM_SENT()) && (REQUEST_ISSET_GET(('mode')))) {
+if ((isFormSent()) && (REQUEST_ISSET_GET(('mode')))) {
// Check input data depending on the mode and execute the requested mode
switch (REQUEST_GET('mode')) {
case "pay": // Payout this exchange -> Primus
// Add description as navigation point
ADD_DESCR('member', __FILE__);
-if ((!IS_FORM_SENT()) || (!REQUEST_ISSET_POST(('qsummary')))) {
+if ((!isFormSent()) || (!REQUEST_ISSET_POST(('qsummary')))) {
// Output form
LOAD_TEMPLATE("member_support_form");
} else {
if (!SURFBAR_IF_USER_BOOK_MORE_URLS()) {
// No more URLs allowed to book!
LOAD_TEMPLATE('admin_settings_saved', false, getMessage('MEMBER_SURFBAR_NO_MORE_ALLOWED'));
-} elseif ((IS_FORM_SENT()) && (REQUEST_ISSET_POST(('limited')))) {
+} elseif ((isFormSent()) && (REQUEST_ISSET_POST(('limited')))) {
// Is limitation "no" and "limit" is > 0?
if ((REQUEST_POST('limited') == 'N') && ((REQUEST_ISSET_POST(('limit'))) && (REQUEST_POST('limit') > 0)) || (!REQUEST_ISSET_POST(('limit')))) {
// Set it to unlimited
$URLs = SURFBAR_GET_USER_URLS();
// Are there entries or form is submitted?
-if ((IS_FORM_SENT()) && (REQUEST_ISSET_POST(('action'))) && (REQUEST_ISSET_POST('id'))) {
+if ((isFormSent()) && (REQUEST_ISSET_POST(('action'))) && (REQUEST_ISSET_POST('id'))) {
// Process the form
if (SURFBAR_MEMBER_DO_FORM(REQUEST_POST_ARRAY(), $URLs)) {
// Action performed but shall we display it?
// Remember maximum value for template
define('__TRANSFER_MAX_VALUE', round($total - getConfig('transfer_balance') - 0.5));
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
// Add new transfer
if (getConfig('transfer_code') > 0) {
// Check for code
}
}
- if (!IS_FORM_SENT()) {
+ if (!isFormSent()) {
// Load member list
if (EXT_IS_ACTIVE('nickname')) {
// Load userid and nickname
define('__TRANSFER_ALL_LINK', $total);
}
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
// Save settings
SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET opt_in='%s' WHERE userid=%s LIMIT 1",
array(REQUEST_POST('opt_in'), getUserId()), __FILE__, __LINE__);
}
// Is the formular sent?
-if ((IS_FORM_SENT()) && (REQUEST_ISSET_GET(('mode')))) {
+if ((isFormSent()) && (REQUEST_ISSET_GET(('mode')))) {
// Is the user ID and password set?
if (!REQUEST_ISSET_POST(('wds66_id'))) {
// Nothing entered in WDS66 user ID
$content = SQL_FETCHARRAY($result);
if ($content['status'] == 'CONFIRMED') {
// Check if form was submitted or not
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
// Check passwords
if (!REQUEST_ISSET_POST(('pass_old'))) {
// No current password entered
$content = SQL_FETCHARRAY($result);
if ($content['status'] == 'CONFIRMED') {
// Check if form was submitted or not
- if (IS_FORM_SENT()) {
+ if (isFormSent()) {
// Check passwords
if (!REQUEST_ISSET_POST(('password'))) {
// No current password entered
}
// Checks wether a form was sent. If so, the $_POST['ok'] element must be set
-function IS_FORM_SENT () {
+function isFormSent () {
// Simply wrap it!
return REQUEST_ISSET_POST('ok');
}