<?php
/************************************************************************
- * MXChange v0.2.1 Start: 04/25/2004 *
- * ================ Last change: 04/29/2004 *
+ * Mailer v0.2.1-FINAL Start: 04/25/2004 *
+ * =================== Last change: 04/29/2004 *
* *
* -------------------------------------------------------------------- *
* File : what-html_mail.php *
* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
if (isFormSent()) {
// Save settings
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `html`='%s' WHERE `userid`=%s LIMIT 1",
- array(postRequestElement('html'), getUserId()), __FILE__, __LINE__);
+ array(postRequestParameter('html'), getMemberId()), __FILE__, __LINE__);
loadTemplate('admin_settings_saved', false, getMessage('MEMBER_SETTINGS_SAVED'));
} else {
- // Load template for changing settings
- $result = SQL_QUERY_ESC("SELECT `html` FROM `{?_MYSQL_PREFIX?}_user_data` WHERE `userid`=%s LIMIT 1",
- array(getUserId()), __FILE__, __LINE__);
-
- // Get the mode
- $content = SQL_FETCHARRAY($result);
-
- // Free result
- SQL_FREERESULT($result);
-
// Prepare it
$content['html_y'] = '';
$content['html_n'] = '';
- $content['html_' . strtolower($content['html'])] = ' checked="checked"';
+ $content['html_' . strtolower(getUserData('html'))] = ' checked="checked"';
// Load main template
loadTemplate('member_html_mail_settings', false, $content);