Location: PHPKode > projects > OxyNews > oxynews/admin/oxynews_S_edit_style_process.php
<?
/*
	OxyNews, a PHP news management program
    Copyright (C) 2002  OxyTeam
    This program is free software; you can redistribute it and/or modify 
    it under the terms of the GNU General Public License as published by 
    the Free Software Foundation; either version 2 of the License, or 
    (at your option) any later version. 

    This program is distributed in the hope that it will be useful, 
    but WITHOUT ANY WARRANTY; without even the implied warranty of 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    GNU General Public License for more details. 

    You should have received a copy of the GNU General Public License 
    along with this program; if not, write to the Free Software 
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
*/
// www.php-arena.com
// www.oxynews.net
// www.oxyscripts.com

$page_title = "News Style"; // Title of page

include("oxynews_I_top.php"); // Top of page

if ($oxynews_userlevels[$phpUserLogin_userinfo[user_level]][s][news]) {

/**** CODE START ****/
echo"<center>
<font face='Verdana, Arial, Helvetica, sans-serif' size='2'>
<a href='oxynews_S_edit_style.php'>Back</a><p>\n";

If ($update == "TRUE") {

$updatesql = "UPDATE $oxynews_mysql_table_style SET style = '$newstyle', bgtop = '$bgtop', fttop = '$fttop', bgtxt = '$bgtxt', fttxt = '$fttxt', bgbot = '$bgbot', ftbot = '$ftbot', adv_top = '$adv_top', adv_news = '$adv_news', adv_split = '$adv_split', adv_bot = '$adv_bot' WHERE id = 1"; 

oxynews_mysql_query($updatesql, "Updating Styles");

} else {

echo"Something went wrong. Press back and try again.";

}

echo"</font>
</center>";
/**** CODE END ****/

} else {

echo"<p align='center'><font face='Verdana, Arial, Helvetica, sans-serif' size='2'>Sorry, you may not use this page.</font></p>";

}

include("oxynews_I_bottom.php"); // Bottom of page

?>
Return current item: OxyNews