| Server IP : 104.21.80.248 / Your IP : 172.71.28.155 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 : E:/Inetpub/www/myschool/suanphung/modules/index/ |
Upload File : |
<?php
$db->connectdb(DB_NAME,DB_USERNAME,DB_PASSWORD); // Connect DB
$res[content] = $db->select_query("SELECT * FROM ".TB_PAGE." WHERE name='". $_GET[op]."' "); // Query page information from database.
$arr[content] = $db->fetch($res[content]);
$db->closedb (); // Disconnect DB
$File = "pagedata/".$arr[content][filename].".txt"; // Read text file
$file_open = @fopen($File, "r");
$content = @fread ($file_open, @filesize($File));
$Detail = stripslashes(FixQuotes($content));
?>
<div class="content-header"><?php echo $arr[content][menuname];?> <!– 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[content][id].'"><img src="images/admin/edit.gif" border="0" alt="แก้ไข" ></a>
';
}
?>
</div>
<br />
<?php echo $Detail; // Show Page Content ?>
<br />กหดหกดกหดกหดกหดกหดหก
<br />