Размер файла: 2.05Kb
<?php
/**
* Wap Portal Server
*
* Copyright (C) 2002 - 2004 Emir Sakic
*
* Wap Portal Server
* Developer: Emir Sakic - [email protected]
* Homepage: http://www.sakic.net
* Date: 15/03/2004
* Version #: 1.2
**/
// Update database
if (isset($update)) {
// Replace quotes
if (!get_magic_quotes_gpc()) {
$sitetitle = addslashes($sitetitle);
$siteimgalt = addslashes($siteimgalt);
}
$query = "UPDATE wps_site SET name = '$sitetitle', url = '$siteurl', email = '$siteemail', imgalt = '$siteimgalt' WHERE id = 1";
$result = mysql_query($query)
or die("Update failed");
$update = 0;
}
?>
<table width="600">
<tr>
<td colspan="2"><a href='index.php' border=0>Home</a> > Site Details
Management</td>
</tr>
<tr>
<td align="center" width="75%"><b>Edit Wap Site Details</b></td>
<td align="center" width="25%"><b>Resources</b></td>
</tr>
<tr>
<td>
<?// Read site info from mySQL database
$query = "SELECT * FROM wps_site LIMIT 1";
$result = mysql_query($query);
$row = mysql_fetch_object($result);
?>
<form name="form" method="post" action="index.php?option=site">
<p><b>Title:</b><br>
<input type="text" name="sitetitle" size="40" value="<?php echo $row->name;?>">
<br>
<b>URL:</b><br>
<input type="text" name="siteurl" size="40" value="<?php echo $row->url;?>">
<br>
<b>Email:</b><br>
<input type="text" name="siteemail" size="40" value="<?php echo $row->email;?>">
<br>
<b>Logo Alt:</b><br>
<input type="text" name="siteimgalt" size="40" value="<?php echo $row->imgalt;?>">
</p>
<p>
<input type="hidden" name="update" value="1">
<input type="submit" name="Submit" value="Submit">
</p>
</form>
</td>
<td valign="top">
<?php
$common->setup_default_emulator();
$common->display_emulator();
?>
</td>
</tr>
</table>