39 lines
1.2 KiB
PHP
39 lines
1.2 KiB
PHP
<?php
|
|
# Copyright: Marcel 'H4ckHunt3r 'Naeve
|
|
## Support: www.naeve.info && www.ilch.de
|
|
|
|
defined('main') or die('no direct access');
|
|
|
|
$tpl = new tpl( 'ucp/sets.htm' );
|
|
|
|
if(isset($_POST['subSets']))
|
|
{
|
|
|
|
if(db_query("UPDATE prefix_user SET opt_pm='".escape($_POST['opt_pm'], 'string')."', opt_mail='".escape($_POST['opt_mail'], 'string')."', opt_pm_popup='".escape($_POST['opt_pmp'], 'string')."' WHERE id='".$uid."'"))
|
|
{
|
|
$message .= "Die Daten wurden Eingetragen!<br>";
|
|
} else {
|
|
$message .= "Die Daten konnten nicht eingetragen werden!<br>";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$uI = db_fetch_object(db_query("SELECT * FROM prefix_user WHERE id='".$uid."'"));
|
|
|
|
|
|
if ( $uI->opt_pm_popup == 1 ) { $opt_pmp1 = 'checked'; $opt_pmp0 = ''; } else { $opt_pmp0 = 'checked'; $opt_pmp1 = ''; }
|
|
if ( $uI->opt_pm == 1 ) { $opt_pm1 = 'checked'; $opt_pm0 = ''; } else { $opt_pm0 = 'checked'; $opt_pm1 = ''; }
|
|
if ( $uI->opt_mail == 1 ) { $opt_mail1 = 'checked'; $opt_mail0 = ''; } else { $opt_mail0 = 'checked'; $opt_mail1 = ''; }
|
|
|
|
$uArr = array(
|
|
'message' => $message,
|
|
'opt_pmp0' => $opt_pmp0,
|
|
'opt_pmp1' => $opt_pmp1,
|
|
'opt_pm0' => $opt_pm0,
|
|
'opt_pm1' => $opt_pm1,
|
|
'opt_mail0' => $opt_mail0,
|
|
'opt_mail1' => $opt_mail1
|
|
);
|
|
$tpl->set_ar_out($uArr,0);
|
|
?>
|