?>

<div id="userPrefsMsg"></div>
<form name="userPrefs" id="userPrefs" method="POST" >
<table  width="100%" border="0" bgcolor="#F4F3F1" cellpadding="3" align="left" class="box main_text" style="background-color:#F4F3F1">
  	<tr> 
      <td colspan="5" >&nbsp;</td>
    </tr>
    <tr> 
      <td width="284" bgcolor="#E0E2F0"><div align="right"><?php 
echo _THEME;
?>
</div></td>
      <td width="236"><select name="PREFS_themeName">		
<?php 
$themes = getAvailableThemes();
foreach ($themes as $tmpTheme) {
    if ($tmpTheme != $PREFS->themeName) {
        echo '<option value="' . $tmpTheme . '">' . $tmpTheme . '</option>';
    } else {
        echo '<option value="' . $tmpTheme . '" selected>' . $tmpTheme . '</option>';
    }
}
?>
	
	  </select>	  </td>
      <td width="1">&nbsp;</td>
      <td width="284" bgcolor="#E0E2F0"><div align="right"><?php 
echo _SHOW_NEWS;
?>
</div></td>
Beispiel #2
0
	<div class="row">
		<label class="common" for="e-mail">E-mail address</label>
		<input type="text" id="e-mail" name="email" class="inline" value="<?php 
echo htmlspecialchars($User->Email);
?>
"  size="35" maxlength="100" />
		
		<p class="caption">Used to recover your internal ID <a href="<?php 
echo THISURL;
?>
/recover_ID_by_email">via e-mail</a>.</p>
	</div>
	<div class="row">
		<label class="common" for="theme" class="inline">Current theme:</label>
		<select id="style" name="theme" class="inline">
<?	foreach(getAvailableThemes() as $theme => $name)
	{
		$selected=($this->User->Theme==$theme)?' selected="selected"':'';
		echo '<option value="'.$theme.'"'.$selected.'>'.$name.'</option>';
	}
?>
		</select>
	</div>
	<div class="row">
		<label class="common" for="style" class="inline">Current theme stylesheet:</label>
		<select id="style" name="style" class="inline">
<?	foreach($availableStyles as $stylesheet => $name)
	{
		$selected=($_SESSION['atbbs_style']==$stylesheet)?' selected="selected"':'';
		echo '<option value="'.$stylesheet.'"'.$selected.'>'.$name.'</option>';
	}
Beispiel #3
0
 $flag_topics = POST::GetInt('topics_mode') == 1;
 $flag_ostrich = POST::GetInt('ostrich_mode') == 1;
 $flag_spoiler = POST::GetInt('spoiler_mode') == 1;
 $snippet_len = POST::GetInt('snippet_length');
 // Make some specific validations ...
 if (!empty($_POST['form']['memorable_name']) && $_POST['form']['memorable_name'] != $user_config['memorable_name']) {
     // Check if the name is already being used.
     $res = DB::Execute('SELECT 1 FROM {P}UserSettings WHERE LOWER(usrName) = LOWER(' . DB::Q($_POST['form']['memorable_name']) . ')');
     if ($res->RecordCount() > 0) {
         add_error('The memorable name "' . htmlspecialchars($_POST['memorable_name']) . '" is already being used.');
     }
 }
 if ($pass != $pass2) {
     add_error(' Both password fields must match.');
 }
 if (!array_key_exists($theme, getAvailableThemes())) {
     Output::HardError($theme . ' isn\'t a valid theme.');
 }
 if (!$erred) {
     $User->UserName = $name;
     $User->Email = $email;
     $User->Flags = 0;
     if ($flag_topics) {
         $User->Flags |= FLAG_TOPICS;
     }
     if ($flag_ostrich) {
         $User->Flags |= FLAG_OSTRICH;
     }
     if ($flag_spoiler) {
         $User->Flags |= FLAG_SPOILER;
     }