Location: PHPKode > scripts > Net Shoubox > net-shoubox/admin_config.php
<?php
session_start();
if (session_is_registered("nettag")){
//////
//
// Net Shout
//
// www.php-net.net/
//
/////
echo '<link href="./shout.css" rel="stylesheet" type="text/css">';
require_once "net_config.php";
echo $_links_admin;

if(isset($_POST['update']))
{
if (($_POST['refresh'] < $minrefreshrateseconds) && ($_POST['refresh'] > 0)) $_POST['refresh'] = $minrefreshrateseconds;
$sql="update net_config set
color1='$_POST[color1]',
color2='$_POST[color2]',
color3='$_POST[color3]',
background='$_POST[background]',
refresh='$_POST[refresh]',
display='$_POST[display]'";
mysql_query($sql);
$nadd="CONFIGURATONS UPDATED";
}

$qset1 = "select * from net_config ";
$rset1 = mysql_query($qset1) or die(mysql_error());
$aset1 = mysql_fetch_array($rset1);

?>

<FORM METHOD=POST ACTION="">
<input type="text" NAME="color1" value="<?php echo $aset1['color1'];?>" />Color 1<br />
<input type="text" NAME="color2" value="<?php echo $aset1['color2'];?>" />Color 2<br />
<input type="text" NAME="color3" value="<?php echo $aset1['color3'];?>" />Color 3<br />
<input type="text" NAME="background" value="<?php echo $aset1['background'];?>" />Background<br />
<input type="text" NAME="refresh" value="<?php echo $aset1['refresh'];?>" />Refresh time<br />
<input type="text" NAME="display" value="<?php echo $aset1['display'];?>" />Display Post<br />
<input type="submit" name="update" />
</FORM>
<?
mysql_close($db);
} else {
echo <<<EOT
<html>
<head>
<title></title>
</head>
<body>
<br /><p align="center">
ACCESS DENIED!!!!!!!!!!!<br />
<a href="login.php"><b>-- LOGIN HERE --</b></a></p>
<br />
</body>
</html>
<!-- //DO NOT REMOVE!!! -->
<span style="font-size:8pt;"><a href="http://php-net.net/">empowered by Net shout .5</a></span>
<!-- //END OF DO NOT REMOVE!!! -->
EOT;
}
?>
Return current item: Net Shoubox