Location: PHPKode > projects > SiteX > admin/journal_options.php
<?PHP
ob_start();
session_start();
include("../includes/globals.php.inc");
include("../includes/functions.php");
include("../lang/English.php");
if(strtolower($sxSetup['Language']) != 'english') include("../lang/".$sxSetup['Language'].".php");
include("../themes/$THEME_FOLDER/config.php.inc");
if((!userEditor())AND(!userAdmin()))  loginError($sxLang['LoginRequired']);
if((userEditor())AND(!$sxSetup['EditorRightsJournalManage']))  loginError($sxLang['LoginRequired']);

if($Submit)
{
	$query = "UPDATE `$DB_Setup` SET setup_value='$journalhomecount' WHERE setup_key='JournalHomeCount'";
	$result = mysql_query($query, $Link) or queryError("203", mysql_error());
	
	$query = "UPDATE $DB_Setup SET setup_value='$journalrsscount' WHERE setup_key='JournalRSSCount'";
	$result = mysql_query($query, $Link) or queryError("55", mysql_error());
	
	//$message = $sxLang['MessageContactConfigUpdated'];
	header("Location:$PHP_SELF?message=".$sxLang['JournalOptionsUpdated']);
	die();	
}
// RSS regeneration
if($sxRegenerateRSS)
{
	writeRSSXML();
	header("Location:$PHP_SELF?sxMaintenanceOp=rss&message=" . $sxLang['MessageRSSFeedGen'] . "#sxMaintenanceTop");
	die();
}
$sxTitleAddendum = $sxLang['AdminHeading'];
include("../themes/$THEME_FOLDER/header.php");
?>

<div class="bodyWrapper">
   <h1 class="sxAdminHeading"><?PHP echo getComponentName("1"); ?> : <?PHP echo $sxLang['JournalOptions']; ?></h1> 
   <div class="sxAdminBreadcrumbs"><?PHP if(userAdmin()) { ?><a href="index.php"><?PHP echo $sxLang['AdminBreadcrumb']; ?><?PHP }?><?PHP if(userEditor()) { ?><a href="editor_index.php"><?PHP echo $sxLang['EditorBreadcrumb']; ?><?PHP }?></a> > <?PHP echo $sxLang['JournalOptions']; ?></div>   
	<?PHP echoMessage($message); ?>
	<form name="sxForm1" action="<?PHP echo $PHP_SELF; ?>" method="post" onSubmit="return submitIt(this)">
	<table border="0" cellspacing="2" cellpadding="5">
		<tr> 
		  <td class="sxTdItem"><?PHP echo $sxLang['JournalOptionsHomeCount']; ?></td>
		  <td><input name="journalhomecount" type="text" value="<?PHP echo $sxSetup['JournalHomeCount']; ?>" style="width:30px;" /></td>
		  </tr>
		  <tr> 
		  <td class="sxTdItem"><?PHP echo $sxLang['JournalOptionsRSSCount']; ?></td>
		  <td><input name="journalrsscount" type="text" value="<?PHP echo $sxSetup['JournalRSSCount']; ?>" style="width:30px;" /></td>
		  </tr>
		  <tr> 
		  <td class="sxTdItem"><?php echo $sxLang['MaintenanceOperations']; ?></td>
		  <td><a href="<?PHP echo $PHP_SELF; ?>?sxRegenerateRSS=1"><?PHP echo $sxLang['MaintenanceOptionsRegenRSS']; ?></a></td>
		  </tr>
		  
    <tr>
    <td colspan="2" align="right"><input type="submit" name="Submit" value="<?PHP echo $sxLang['JournalButtonSave']; ?>" class="sxButton" /></td>
    </tr>	  
	   </table>
	   
   </form>
</div>
<?PHP
include("../themes/$THEME_FOLDER/footer.php");
ob_end_flush();
?>
Return current item: SiteX