| Server IP : 104.21.80.248 / Your IP : 172.71.28.156 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/myschool/nongplamor_new/modules/page/ |
Upload File : |
<?php
$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD); // Connect DB
$res[page] = $db->select_query("SELECT * FROM ".TB_PAGE." WHERE name='". $_GET[op]."' "); // Query page information from database.
$arr[page] = $db->fetch($res[page]);
$db->closedb (); // Disconnect DB
$File = "pagedata/".$arr[page][filename].".txt"; // Read text file
$file_open = @fopen($File, "r");
$content = @fread ($file_open, @filesize($File));
$Detail = stripslashes(FixQuotes($content));
?>
<TABLE width="760" border=0 align="center" cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD width="10" vAlign=top><IMG src="images/fader.gif" border=0></TD>
<TD width="710" vAlign=top><IMG src="images/topfader.gif" border=0><BR>
<!-- Admin -->
<TABLE width="700" align=center cellSpacing=0 cellPadding=0 border=0>
<TR>
<TD><table width="200" height="25" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="images/menu/textmenu_team.gif"><div class="content-header"><b><font color="#990000" size="2"> <?php echo $arr[page][menuname];?></font></b></div></td>
</tr>
</table></td>
</tr>
<TR>
<TD>
<!– Input "menuname" in page header –>
<?php
if($_SESSION['admin_user']){
// Show edit button for admin
echo '
<a href="?name=admin&file=page&op=page_edit&id='.$arr[page][id].'"><img src="images/admin/edit.gif" border="0" alt="แก้ไข" ></a>
';
}
?>
</td>
</tr>
<tr>
<td> </td>
</tr>
<TR>
<TD height="1" class="dotline"></TD>
</TR>
<tr>
<td> <br /> <?php echo $Detail; // Show Page Content ?> <br /> </td>
</tr>
</table>
</td>
</tr>
</table><BR><BR><BR><BR><BR><BR>