| Server IP : 74.208.236.52 / Your IP : 216.73.217.12 Web Server : Apache System : Linux infong527 4.4.400-icpu-115 #2 SMP Mon Jul 6 08:15:05 UTC 2026 x86_64 User : u44043973 ( 5404757) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /homepages/18/d194259149/htdocs/bonus1/admin/ |
Upload File : |
<?php
session_start();
include "../config.php";
include "../header.php";
include "../style.php";
if( session_is_registered("alogin") ) {
$query = "select * from pages ORDER BY id ASC";
$result = mysql_query ($query)
or die ("Insert failed");
?><table>
<tr>
<td width="15%" valign=top><br>
<? include("adminnavigation.php"); ?>
</td>
<td valign="top" align="center"><br><br>
<SCRIPT LANGUAGE="JavaScript">
function previewad(htmlcode)
{
var win
win = window.open("", "win", "height=700,width=700,toolbar=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,dependent=yes'");
win.document.clear();
win.document.write(htmlcode);
win.focus();
win.document.close();
}
</SCRIPT>
<?
echo "<font size=2 face='$fonttype' color='$fontcolour'><p><center>";
while ($line = mysql_fetch_array($result)) {
$index = $line["id"];
$name = $line["name"];
$htmlcode = $line["htmlcode"];
echo "<b>" . $name . "</b>";
?>
<center>
<form method="POST" target="_blank" action="editpagenow.php">
<input type="hidden" name="index" value="<? echo $index; ?>">
<textarea rows=10 cols=50 name="htmlcode"><? echo $htmlcode; ?></textarea><br>
<INPUT TYPE="button" value="Preview " onClick="previewad(htmlcode.value)">
<input type="submit" value="Save Changes">
</form>
</center>
<?
}
?>
</center>
</td>
</tr>
</table>
<?
}
else {
echo "Unauthorised Access!";
}
include "../footer.php";
mysql_close($dblink);
?>