Còn khi truy cập nó trên trang chủ thì chỉ có 1 trang trắng trơn, từ đó không cũng không vào được phần quản trị module này trong acp. Đã cài lại nhiều lần nhưng kịch bản lặp lại tương tự. Nhờ các bạn giúp!

Điều hành viên: Hỗ trợ NukeViet


function lich_thongbao()
{
global $thongbao,$tieude,$tieudelich,$adminfile,$editor,$show;
include ( "" . INCLUDE_PATH . "header.php" );
menu();
echo "<br>";
OpenTable();
echo "<p><b><center>"._SETTING."
</center></b></p>";
echo "<form action=\"" . $adminfile . ".php\" method=\"post\">";
echo "<table align=center style=\"border-collapse:collapse \" width=600px cellpadding=\"2\" cellspacing=\"0\" border=\"1\" bordercolor=red>";
echo "<tr><td width=\"40%\">"._EDITOR." </td><td>";
echo "<select name=\"editor\">";
$spaw = array( _NO,_YES);
for ( $d = 0; $d <= 1; $d++ )
{
$seld = "";
if ( $d == $editor )
{
$seld = " selected";
}
echo "<option value=\"$d\" $seld>$spaw[$d]</option>\n";
}
echo "</select>";
echo "</td></tr>";
echo "<tr><td>"._TITLELICH." </td><td><input type=\"text\" name=\"tieudelich\" value=\"$tieudelich\" size=\"55\"></td></tr>";
echo "<tr><td>"._TITLETB." </td><td><input type=\"text\" name=\"tieude\" value=\"$tieude\" size=\"55\"></td></tr>";
echo "<tr><td>"._SHOWTB."</td><td>";
if ( $show == 1 )
{
echo "<input type=\"radio\" name=\"show\" value=\"1\" checked>" . _YES . " " . "<input type=\"radio\" name=\"show\" value=\"0\">" . _NO . "";
}
else
{
echo "<input type=\"radio\" name=\"show\" value=\"1\">" . _YES . " " . "<input type=\"radio\" name=\"show\" value=\"0\" checked>" . _NO . "";
}
echo "</td></tr>";
echo "<tr><td colspan=2><input type=\"submit\" value=\"" . _CHANGETB . "\">";
echo "</td></tr>";
echo "</table>";
CloseTable();
echo "<br>";
OpenTable();
echo "<table align=center style=\"border-collapse:collapse \" width=600px cellpadding=\"2\" cellspacing=\"0\" border=\"1\" bordercolor=red>";
echo "<tr><td><center><p><b>"._NDTHONGBAO."</b></p></center></td><tr><td>";
if ( $editor == 1 )
{
aleditor( "thongbao",$thongbao, 600, 250 );
}
else
{
$thongbao = str_replace("<br />", "\r\n", $thongbao);
echo "<textarea cols=\"120\" rows=\"20\" name=\"thongbao\">$thongbao</textarea>";
}
echo "<tr></td></tr>";
echo "<tr><td>" . "<input type=\"hidden\" name=\"op\" value=\"lich_thongbaosave\">" . "<input type=\"submit\" value=\"" . _SAVETB . "\"></td></tr>" . "</form></table>";
CloseTable();
include ( "../footer.php" );
}
function lich_thongbaosave()
{
global $checkmodname, $datafold, $adminfile;
$editor = $_POST['editor'];
$show = $_POST['show'];
$thongbao = $_POST[stripslashes(FixQuotes('thongbao'))];
$thongbao = nl2brStrict($thongbao);
$tieude = stripslashes( $_POST['tieude'] );
$tieudelich = stripslashes( $_POST['tieudelich'] );
@chmod( "" . INCLUDE_PATH . "" . $datafold . "/config_Lichcongtac.php", 0777 );
@$file = fopen( "" . INCLUDE_PATH . "" . $datafold . "/config_Lichcongtac.php", "w" );
$content = "<?php\n\n";
$fctime = date( "d-m-Y H:i:s", filectime("" . INCLUDE_PATH . "" . $datafold . "/config_Lichcongtac.php") );
$fctime = date( "d-m-Y H:i:s", filectime("" . INCLUDE_PATH . "" . $datafold . "/config_Lichcongtac.php") );
$fmtime = date( "d-m-Y H:i:s" );
$content .= "// File: config_" . $checkmodname . ".php.\n// Created: $fctime.\n// Modified: $fmtime.\n// Do not change anything in this file!\n\n";
$content .= "if ((!defined('NV_SYSTEM')) AND (!defined('NV_ADMIN'))) {\n";
$content .= "die('Stop!!!');\n";
$content .= "}\n";
$content .= "\n";
$content .= "\$tieudelich = \"$tieudelich\";\n";
$content .= "\$editor = \"$editor\";\n";
$content .= "\$tieude = \"$tieude\";\n";
$content .= "\$show = \"$show\";\n";
$content .= "\$thongbao = \"$thongbao\";\n";
$content .= "\n";
$content .= "?>";
@fwrite( $file, $content );
@fclose( $file );
@chmod( "" . INCLUDE_PATH . "" . $datafold . "/config_Lichcongtac.php", 0604 );
include ( "../header.php" );

$thongbao = str_replace('\"',"'",$thongbao);
$thongbao = str_replace('"',"'",$thongbao);

Quay về Hỗ trợ NukeViet 2.0 RC1, RC2
Đang xem chuyên mục này: Không có thành viên nào trực tuyến. và 1 khách.