#//v.2.5.0
/*
Copyright (c), 1999, 2003 - phpauction.org
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 (version 2 or later).
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., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
require('../includes/config.inc.php');
include "loggedin.inc.php";
require('../includes/time.inc.php');
unset($ERR);
#//
if($_POST[action] == "update")
{
if(!is_numeric($_POST[archiveafter]))
{
$ERR = "Incorect field format: must be numeric";
$SETTINGS = $_POST;
}
else
{
#// Update database
$query = "update PHPAUCTION_settings set
cron=$_POST[cron],
archiveafter=".intval($_POST[archiveafter]);;
$res = @mysql_query($query);
if(!$res)
{
print "Error: $query
".mysql_error();
exit;
}
else
{
$ERR = $MSG_378;
$SETTINGS = $_POST;
}
}
}
else
{
#//
$query = "SELECT * FROM PHPAUCTION_settings";
$res = @mysql_query($query);
if(!$res)
{
print "Error: $query
".mysql_error();
exit;
}
elseif(mysql_num_rows($res) > 0)
{
$SETTINGS = mysql_fetch_array($res);
}
}
?>
 |
=$MSG_25_0007?> >> =$MSG_348?> |
|
| |
|
|