| Server IP : 27.254.152.13 / Your IP : 216.73.217.38 Web Server : Apache/2 System : Linux ns1-252017.dragonhispeed.com 5.2.0 #1 SMP Fri Mar 29 22:50:14 MSK 2024 x86_64 User : coloflew ( 1072) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/coloflew/domains/tessabalpatiu.go.th/public_html/administrator/modules/review/ |
Upload File : |
<?php
$res = 0;
$linkurl = "index.php?name=review";
$txt_nameth = "../content/review.txt";
if($_GET['act']=='add'){
//$Filenameth = "about_".($_GET['p'] ? $_GET['p'] : 'home').".txt";
//echo $txt_nameth;
$txt_openth = @fopen($txt_nameth, "w");
@fwrite(@$txt_openth, @$_POST['Detail']);
@fclose(@$txt_openth);
$msg = $lang_set['txtSaveComplete'];
$res = 1;
}
?>
<div class="content-box"><!-- Start Content Box -->
<div class="content-box-header">
<h3><?php echo $lang_set['review_title']; ?></h3>
<div class="clear"></div>
</div> <!-- End .content-box-header -->
<div class="content-box-content">
<div class="tab-content <?php echo ($_GET['act']!="edit" ? "default-tab" : "" );?>" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
<?php if($res==1){?>
<div class="notification success png_bg">
<a href="#" class="close"><img src="images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
<div>
<?php echo $msg;?>
</div>
</div>
<meta http-equiv="refresh" content="0;URL=<?php echo $linkurl;?>">
<?php }?>
<form id="formID" method="post" action="<?PHP echo $linkurl;?>&act=<?php echo ((is_file("../contact.txt")) ? "add" : "add");?>" style="width:520px;">
<p>
</p>
<?php
@$FileNewsTopic = $txt_nameth;
@$file_open = @fopen(@$FileNewsTopic, "r");
@$TextContent = @fread (@$file_open, @filesize(@$FileNewsTopic));
@fclose (@$file_open);
@$TextContent = stripslashes(@$TextContent);
if($chkBrowser['name']=="Apple Safari" || $chkBrowser['name']=="Google Chrome"){
include("FCKeditor/fckeditor.php") ;
$oFCKeditor = new FCKeditor('Detail') ;
$oFCKeditor->BasePath = 'FCKeditor/' ;
$oFCKeditor->Width = '800' ;
$oFCKeditor->Height = '600' ;
$oFCKeditor->Value = @$TextContent;
$oFCKeditor->Create() ;
}else{
include("FCKeditor1/fckeditor.php") ;
$oFCKeditor = new FCKeditor('Detail') ;
$oFCKeditor->BasePath = 'FCKeditor1/' ;
$oFCKeditor->Width = '800' ;
$oFCKeditor->Height = '600' ;
$oFCKeditor->Value = @$TextContent;
$oFCKeditor->Create() ;
}
?>
</p>
</fieldset>
<input type="submit" class="button" value="<?php echo $lang_set['submit']; ?>" />
<br /><br /><br />
</form>
</div> <!-- End #tab2 -->
</div> <!-- End .content-box-content -->
</div>