Location: PHPKode > projects > CsWebmail > cswebmail-3.10/cswebmail-3.10/templates/settings.php
<?
if(VALID_DOCUMENT != 1) die('what?');
if($action == 'settings-save' || $action == 'settings-default'){
  if($action == 'settings-save')
    $_SESSION['preferences']->load();
  else if($action == 'settings-default')
    $_SESSION['preferences']->set_default();
  
  $_SESSION['preferences']->store();
  location_header($_SERVER['PHP_SELF'].'?action=settings');
}
else{
?>
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<input type="hidden" name="action"/>
<table class="content hsides">
<tr><th colspan="2" class="title">Settings</th></tr>
<?=$_SESSION['preferences']->get_edit_presentation();?>
<tr><td colspan="6">
<input type="button" value="save" onclick="action.value='settings-save';this.form.submit()"/>
<input type="button" value="default" onclick="action.value='settings-default';this.form.submit()"/>
</td></tr>
</table>
</form>
<?}?>
Return current item: CsWebmail