$liste_pages = array(
"show_news.php",
);
if($page && isset($page) && !empty($page)) {
$page_trouve = 0;
if(in_array($page, $liste_pages)) {
require($page);
$page_trouve = 1;
} if(!$page_trouve) {
require("../../../../comment/user.inc.php");
// a suggested mechanism for switching the moderator privileges on
$pword = "123"; // my moderator password
if ($_REQUEST['password'] == $pword) // check if password supplied by query or post
$comment_mod = true; // password supplied, moderator privileges on
else
$comment_mod = false; // no password, moderator privileges off
// general config of comment script
$add_comments = true; // display comment box on page
$comment_file = "comments_file.txt"; // save comments in this file
// include comment script
include("../../../../comment/comment.php");
}
} else { require("../../../../comment/user.inc.php");
// a suggested mechanism for switching the moderator privileges on
$pword = "123"; // my moderator password
if ($_REQUEST['password'] == $pword) // check if password supplied by query or post
$comment_mod = true; // password supplied, moderator privileges on
else
$comment_mod = false; // no password, moderator privileges off
// general config of comment script
$add_comments = true; // display comment box on page
$comment_file = "comments_file.txt"; // save comments in this file
// include comment script
include("../../../../comment/comment.php");
}
?>
|