} if (isset($theme)) { $cookie[9] = $theme; } $tmp_theme = $cookie[9]; if (!($file = @opendir("themes/{$cookie['9']}"))) { $tmp_theme = $Default_Theme; } } else { $tmp_theme = $Default_Theme; } include "meta/meta.php"; global $site_font; echo ' <link rel="stylesheet" href="lib/bootstrap/dist/css/bootstrap.min.css" />'; echo import_css($tmp_theme, $language, $site_font, '', ''); echo ' </head> <body> <div max-width="640" class="container p-1 n-hyphenate"> <div>'; $pos = strpos($site_logo, '/'); if ($pos) { echo '<img class="img-fluid d-block mx-auto" src="' . $site_logo . '" alt="website logo" />'; } else { echo '<img class="img-fluid d-block mx-auto" src="images/' . $site_logo . '" alt="website logo" />'; } echo '<p class="mt-2">' . translate("Forum Index") . ' » » '; echo stripslashes($forum_name); echo '</p>'; echo "\n <table border=\"0\" >\n <tr>\n <td width=\"15%\"><hr />" . translate("Author") . "</td>\n <td><hr />{$topic_subject}</td>\n </tr>";
} $att_type = $type; $att_size = @filesize($fic); if (file_exists($fic)) { if ($apli == "forum_npds") { include "auth.php"; $sql = "UPDATE {$upload_table} SET compteur = compteur+1 WHERE att_id = '{$att_id}'"; sql_query($sql); } // Output file to the browser header('Expires: Thu, 01 Jan 1970 00:00:01 GMT'); header('Cache-Control: max-age=60, must-revalidate'); // work with mimetypes.php for showing source'code if ($att_type == "text/source") { include "meta/meta.php"; echo import_css($Default_Theme, $language, $site_font, "", ""); echo "</head>\n<body>"; show_source($fic); echo "</body></html>"; die; } if ($att_type == "application/x-shockwave-flash") { header("Content-type: application/x-shockwave-flash"); } else { header("Content-Type: {$att_type}; name=\"" . basename($att_name) . "\""); } header("Content-length: {$att_size}"); header("Content-Disposition: inline; filename=\"" . basename($att_name) . "\""); readfile($fic); } else { header("location: index.php");
/* it under the terms of the GNU General Public License as published by */ /* the Free Software Foundation; either version 2 of the License. */ /************************************************************************/ if (!function_exists("Mysql_Connexion")) { include "mainfile.php"; } include "functions.php"; if (isset($user)) { if ($cookie[9] == "") { $cookie[9] = $Default_Theme; } if (isset($theme)) { $cookie[9] = $theme; } $tmp_theme = $cookie[9]; if (!($file = @opendir("themes/{$cookie['9']}"))) { $tmp_theme = $Default_Theme; } } else { $tmp_theme = $Default_Theme; } include 'meta/meta.php'; global $site_font; echo import_css($tmp_theme, $language, $site_font, "", ""); include 'lib/formhelp.java.php'; echo ' </head> <body style="padding: 10px;"> ' . putitems_more() . ' </body> </html>';
function PrintSecPage($artid) { global $NPDS_Prefix, $user, $cookie, $theme, $Default_Theme, $site_logo, $sitename, $nuke_url, $language, $site_font, $Titlesitename; include "meta/meta.php"; if (isset($user)) { if ($cookie[9] == '') { $cookie[9] = $Default_Theme; } if (isset($theme)) { $cookie[9] = $theme; } $tmp_theme = $cookie[9]; if (!($file = @opendir("themes/{$cookie['9']}"))) { $tmp_theme = $Default_Theme; } } else { $tmp_theme = $Default_Theme; } echo import_css($tmp_theme, $language, $site_font, "", ""); echo ' </head> <body style="background-color: #FFFFFF; background-image: none;"> <p class="text-xs-center">'; $pos = strpos($site_logo, "/"); if ($pos) { echo '<img src="' . $site_logo . '" border="0" alt="" />'; } else { echo '<img src="images/' . $site_logo . '" border="0" alt="" />'; } $result = sql_query("SELECT title, content FROM " . $NPDS_Prefix . "seccont WHERE artid='{$artid}'"); list($title, $content) = sql_fetch_row($result); echo '<br /><br /><strong>' . aff_langue($title) . '</strong><br /><br /></p>'; $content = aff_code(aff_langue($content)); $pos_page = strpos($content, "[page"); if ($pos_page) { $content = str_replace("[page", str_repeat("-", 50) . " [page", $content); } echo meta_lang($content); echo ' <hr /> <p class="text-xs-center"> ' . translate("This article comes from") . ' ' . $sitename . '<br /><br /> ' . translate("The URL for this story is:") . ' <a href="' . $nuke_url . '/sections.php?op=viewarticle&artid=' . $artid . '">' . $nuke_url . '/sections.php?op=viewarticle&artid=' . $artid . '</a> </p> </body> </html>'; }
function PrintPage($oper, $DB, $nl, $sid) { global $user, $cookie, $theme, $Default_Theme, $language, $site_logo, $sitename, $datetime, $nuke_url, $site_font, $Titlesitename; global $NPDS_Prefix; $aff = true; if ($oper == 'news') { $xtab = news_aff("libre", "where sid='{$sid}'", 1, 1); list($sid, $catid, $aid, $title, $time, $hometext, $bodytext, $comments, $counter, $topic, $informant, $notes) = $xtab[0]; if ($topic != '') { $result2 = sql_query("SELECT topictext FROM " . $NPDS_Prefix . "topics WHERE topicid='{$topic}'"); list($topictext) = sql_fetch_row($result2); } else { $aff = false; } } if ($oper == 'archive') { $xtab = news_aff("archive", "WHERE sid='{$sid}'", 1, 1); list($sid, $catid, $aid, $title, $time, $hometext, $bodytext, $comments, $counter, $topic, $informant, $notes) = $xtab[0]; if ($topic != "") { $result2 = sql_query("SELECT topictext FROM " . $NPDS_Prefix . "topics WHERE topicid='{$topic}'"); list($topictext) = sql_fetch_row($result2); } else { $aff = false; } } if ($oper == "links") { $DB = removeHack(stripslashes(htmlentities(urldecode($DB), ENT_NOQUOTES, cur_charset))); $result = sql_query("SELECT url, title, description, date FROM " . $DB . "links_links WHERE lid='{$sid}'"); list($url, $title, $description, $time) = sql_fetch_row($result); $title = stripslashes($title); $description = stripslashes($description); } if ($oper == "static") { if (preg_match('#^[a-z0-9_\\.-]#i', $sid) and !stristr($sid, ".*://") and !stristr($sid, "..") and !stristr($sid, "../") and !stristr($sid, "script") and !stristr($sid, "cookie") and !stristr($sid, "iframe") and !stristr($sid, "applet") and !stristr($sid, "object") and !stristr($sid, "meta")) { if (file_exists("static/{$sid}")) { ob_start(); include "static/{$sid}"; $remp = ob_get_contents(); ob_end_clean(); if ($DB) { $remp = meta_lang(aff_code(aff_langue($remp))); } if ($nl) { $remp = nl2br(str_replace(" ", " ", htmlentities($remp, ENT_QUOTES, cur_charset))); } $title = $sid; } else { $aff = false; } } else { $remp = "<p align=\"center\" class=\"rouge\">" . translate("Please enter information according to the specifications") . "</p><br />"; $aff = false; } } if ($aff == true) { $Titlesitename = "NPDS - " . translate("Printer Friendly Page") . " / " . $title; if (isset($time)) { formatTimestamp($time); } include "meta/meta.php"; if (isset($user)) { if ($cookie[9] == "") { $cookie[9] = $Default_Theme; } if (isset($theme)) { $cookie[9] = $theme; } $tmp_theme = $cookie[9]; if (!($file = @opendir("themes/{$cookie['9']}"))) { $tmp_theme = $Default_Theme; } } else { $tmp_theme = $Default_Theme; } echo import_css($tmp_theme, $language, $site_font, "", ""); echo "\n </head>\n <body style=\"background-color: #FFFFFF; background-image: none;\">\n <table border=\"0\"><tr><td>\n <table border=\"0\" width=\"640\" cellpadding=\"0\" cellspacing=\"1\" style=\"background-color: #000000;\"><tr><td>\n <table border=\"0\" width=\"640\" cellpadding=\"20\" cellspacing=\"1\" style=\"background-color: #FFFFFF;\"><tr><td>"; echo "<p align=\"center\">"; $pos = strpos($site_logo, "/"); if ($pos) { echo "<img src=\"{$site_logo}\" border=\"0\" alt=\"\" />"; } else { echo "<img src=\"images/{$site_logo}\" border=\"0\" alt=\"\" />"; } echo "<br /><br /><b>" . aff_langue($title) . "</b><br /><br />"; if ($oper == "news" or $oper == "archive") { $hometext = meta_lang(aff_code(aff_langue($hometext))); $bodytext = meta_lang(aff_code(aff_langue($bodytext))); echo "<span style=\"font-size: 10px;\"><b>" . translate("Date:") . "</b> {$datetime} :: <b>" . translate("Topic:") . "</b> " . aff_langue($topictext) . "<br /><br />\n </span></p>{$hometext}<br /><br />"; if ($bodytext != '') { echo "{$bodytext}<br /><br />"; } echo meta_lang(aff_code(aff_langue($notes))); if ($oper == "news") { echo "</td></tr><tr><td><br /><br /><br /><hr noshade=\"noshade\" class=\"ongl\" /><br />\n <p align=\"center\">" . translate("This article comes from") . " {$sitename}<br /><br />\n " . translate("The URL for this story is:") . "\n <a href=\"{$nuke_url}/article.php?sid={$sid}\">{$nuke_url}/article.php?sid={$sid}</a></p>"; } else { echo "</td></tr><tr><td><br /><br /><br /><hr noshade=\"noshade\" class=\"ongl\" /><br />\n <p align=\"center\">" . translate("This article comes from") . " {$sitename}<br /><br />\n " . translate("The URL for this story is:") . "\n <a href=\"{$nuke_url}/article.php?sid={$sid}&archive=1\">{$nuke_url}/article.php?sid={$sid}&archive=1</a></p>"; } } if ($oper == "links") { echo "<span style=\"font-size: 10px;\"><b>" . translate("Date:") . "</b> {$datetime}"; if ($url != "") { echo " :: <b>" . translate("Links") . " : </b> {$url}<br /><br />"; } echo "</span></p>" . aff_langue($description); echo "</td></tr><tr><td><br /><br /><br /><hr noshade=\"noshade\" class=\"ongl\" /><br />\n <p align=\"center\">" . translate("This article comes from") . " {$sitename}<br /><br />\n <a href=\"{$nuke_url}\">{$nuke_url}</a></p>"; } if ($oper == "static") { echo "</p><span style=\"font-size: 10px;\">" . $remp . "</span>"; echo "</td></tr><tr><td><br /><br /><br /><hr noshade=\"noshade\" class=\"ongl\" /><br />\n <p align=\"center\">" . translate("This article comes from") . " {$sitename}<br /><br />\n <a href=\"{$nuke_url}/static.php?op={$sid}&npds=1\">{$nuke_url}/static.php?op={$sid}&npds=1</a></p>"; } echo "</td></tr></table></td></tr></table></td></tr></table></body></html>"; } else { header("location: index.php"); } }
$cookie[9] = $theme; } $tmp_theme = $cookie[9]; if (!($file = @opendir("themes/{$cookie['9']}"))) { $tmp_theme = $Default_Theme; include "themes/{$Default_Theme}/theme.php"; } else { include "themes/{$cookie['9']}/theme.php"; } } else { $tmp_theme = $Default_Theme; include "themes/{$Default_Theme}/theme.php"; } $Titlesitename = 'NPDS'; include "meta/meta.php"; echo import_css($tmp_theme, $language, $site_font, basename($_SERVER['PHP_SELF']), ''); include "lib/formhelp.java.php"; echo '</head>'; // cookie chat_info echo ' <script type="text/javascript" src="lib/cookies.js"></script>'; echo "\n <body id=\"chat\" onload=\"setCookie('chat_info', '1', '');\" onUnload=\"deleteCookie('chat_info');\">"; putitems(); echo ' <form name="coolsus" action="chatinput.php" method="post"> <input type="hidden" name="op" value="set" /> <input type="hidden" name="id" value="' . $id . '" /> <input type="hidden" name="auto" value="' . $auto . '" />'; if (!isset($cookie[1])) { $pseudo = isset($name) ? $name : getip(); } else {
function show_imm($op) { global $smilies, $user, $allow_bbcode, $language, $Default_Theme, $theme, $site_font, $short_user, $Titlesitename; global $NPDS_Prefix; if (!$user) { Header("Location: user.php"); } else { $userX = base64_decode($user); $userdata = explode(':', $userX); if ($userdata[9] != '') { if (!($file = @opendir("themes/{$userdata['9']}"))) { $theme = $Default_Theme; } else { $theme = $userdata[9]; } } else { $theme = $Default_Theme; } include "themes/{$theme}/theme.php"; $userdata = get_userdata($userdata[1]); if ($op != 'new_msg') { $sql = "SELECT * FROM " . $NPDS_Prefix . "priv_msgs WHERE to_userid = '" . $userdata['uid'] . "' AND read_msg='1' AND type_msg='0' AND dossier='...' ORDER BY msg_id DESC"; } else { $sql = "SELECT * FROM " . $NPDS_Prefix . "priv_msgs WHERE to_userid = '" . $userdata['uid'] . "' AND read_msg='0' AND type_msg='0' ORDER BY msg_id ASC"; } $result = sql_query($sql); $pasfin = false; while ($myrow = sql_fetch_assoc($result)) { if ($pasfin == false) { $pasfin = true; cache_ctrl(); include "meta/meta.php"; include 'modules/include/header_head.inc'; echo import_css($theme, $language, $site_font, '', ''); echo ' </head> <body> <div class="card card-block">'; } $posterdata = get_userdata_from_id($myrow['from_userid']); echo ' <div class="card"> <div class="card-block"> <h3>' . translate("Private Message") . ' ' . translate("From"); if ($posterdata['uid'] == 1) { global $sitename; echo ' <span class="text-muted">' . $sitename . '</span></h3>'; } if ($posterdata['uid'] != 1) { echo ' <span class="text-muted">' . $posterdata['uname'] . '</span></h3>'; } $myrow['subject'] = strip_tags($myrow['subject']); $posts = $posterdata['posts']; if ($posterdata['uid'] != 1) { echo member_qualif($posterdata['uname'], $posts, $posterdata['rank']); } echo '<br /><br />'; if ($smilies) { if ($posterdata['user_avatar'] != '') { if (stristr($posterdata['user_avatar'], "users_private")) { $imgtmp = $posterdata['user_avatar']; } else { if ($ibid = theme_image("forum/avatar/" . $posterdata['user_avatar'])) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/avatar/" . $posterdata['user_avatar']; } } echo '<img class="btn-secondary img-thumbnail img-fluid n-ava" src="' . $imgtmp . '" alt="' . $posterdata['uname'] . '" />'; } } if ($smilies) { if ($myrow['msg_image'] != '') { if ($ibid = theme_image("forum/subject/" . $myrow['msg_image'])) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/subject/" . $myrow['msg_image']; } echo '<img class="n-smil" src="' . $imgtmp . '" alt="" /> '; } } echo translate("Sent") . ' : ' . $myrow['msg_time'] . '  '; echo '<h4>' . aff_langue($myrow['subject']) . '</h4>'; $message = stripslashes($myrow['msg_text']); if ($allow_bbcode) { $message = smilie($message); $message = aff_video_yt($message); } $message = str_replace("[addsig]", "<br /><br />" . nl2br($posterdata['user_sig']), aff_langue($message)); echo $message . '<br />'; if ($posterdata['uid'] != 1) { /* echo '<hr />'; if ($ibid=theme_image("forum/icons/profile.gif")) {$imgtmp=$ibid;} else {$imgtmp="images/forum/icons/profile.gif";} echo "  <a href=\"user.php?op=userinfo&uname=".$posterdata['uname']."\" class=\"noir\" target=\"_blank\"><img src=\"$imgtmp\" border=\"0\" alt=\"\" />".translate("Profile")."</a>"; if ($posterdata["femail"]!="") { if ($ibid=theme_image("forum/icons/email.gif")) {$imgtmp=$ibid;} else {$imgtmp="images/forum/icons/email.gif";} echo " <a href=\"mailto:".$posterdata['femail']."\" class=\"noir\" target=\"_blank\"><img src=\"$imgtmp\" border=\"0\" alt=\"\" />".translate("Email")."</a>"; } if ($posterdata['url']!="") { if (strstr("http://", $posterdata['url'])) $posterdata['url'] = "http://" . $posterdata['url']; if ($ibid=theme_image("forum/icons/www_icon.gif")) {$imgtmp=$ibid;} else {$imgtmp="images/forum/icons/www_icon.gif";} echo " <a href=\"".$posterdata['url']."\" class=\"noir\" target=\"_blank\"><img src=\"$imgtmp\" border=\"0\" alt=\"\" />www</a>"; } */ if (!$short_user) { /* */ } } echo ' </div> <div class="card-footer">'; if ($posterdata['uid'] != 1) { echo ' <a class="mr-1" href="readpmsg_imm.php?op=read_msg&msg_id=' . $myrow['msg_id'] . '&op_orig=' . $op . '&sub_op=reply" title="' . translate("Reply") . '" data-toggle="tooltip"><i class="fa fa-reply fa-lg"></i></a>'; } echo ' <a class="mr-1" href="readpmsg_imm.php?op=read_msg&msg_id=' . $myrow['msg_id'] . '&op_orig=' . $op . '&sub_op=read" title="' . translate("Read") . '" data-toggle="tooltip"><i class="fa fa-check-square-o fa-lg"></i></a> <a class="mr-1" href="readpmsg_imm.php?op=delete&msg_id=' . $myrow['msg_id'] . '&op_orig=' . $op . '" title="' . translate("Delete") . '" data-toggle="tooltip"><i class="fa fa-trash-o fa-lg text-danger"></i></a> </div> </div>'; } if ($pasfin != true) { cache_ctrl(); echo '<body onload="self.close();">'; } } echo ' </div> </body> </html>'; }
function head($tiny_mce_init, $css_pages_ref, $css, $tmp_theme, $js, $m_description, $m_keywords) { global $slogan, $site_font, $Titlesitename, $banners, $Default_Theme, $theme, $gzhandler, $language; global $topic, $hlpfile, $user, $hr, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $bgcolor5, $bgcolor6, $textcolor1, $textcolor2, $long_chain; global $bargif, $theme_width, $bloc_width, $page_width; if ($gzhandler == 1) { ob_start("ob_gzhandler"); } include "themes/{$tmp_theme}/theme.php"; // Meta if (file_exists("meta/meta.php")) { $meta_op = ''; include "meta/meta.php"; } // Favicon if (file_exists("themes/{$tmp_theme}/images/favicon.ico")) { $favico = "themes/{$tmp_theme}/images/favicon.ico"; } else { $favico = 'images/favicon.ico'; } echo ' <link rel="shortcut icon" href="' . $favico . '" type="image/x-icon" />'; // Syndication RSS & autres global $sitename, $nuke_url, $REQUEST_URI; // Canonical $uri = $REQUEST_URI; $drname = dirname($uri); if ($drname == '.') { $uri = $nuke_url . '/' . $uri; } elseif ($drname == '/') { $uri = $nuke_url . $uri; } else { $uri = 'http://' . $_SERVER['SERVER_NAME'] . $uri; } echo ' <link rel="canonical" href="' . str_replace('&', '&', str_replace('&', '&', $uri)) . '" />'; // humans.txt if (file_exists("humans.txt")) { echo ' <link type="text/plain" rel="author" href="' . $nuke_url . '/humans.txt" />'; } echo ' <link href="backend.php?op=RSS0.91" title="' . $sitename . ' - RSS 0.91" rel="alternate" type="text/xml" /> <link href="backend.php?op=RSS1.0" title="' . $sitename . ' - RSS 1.0" rel="alternate" type="text/xml" /> <link href="backend.php?op=RSS2.0" title="' . $sitename . ' - RSS 2.0" rel="alternate" type="text/xml" /> <link href="backend.php?op=ATOM" title="' . $sitename . ' - ATOM" rel="alternate" type="application/atom+xml" />'; // echo import_css($tmp_theme, $language, $site_font, $css_pages_ref, $css);//move down // Tiny_mce if ($tiny_mce_init) { echo aff_editeur("tiny_mce", "begin"); } // include externe JAVASCRIPT file from modules/include or themes/.../include for functions, codes in the <body onload="..." event... $body_onloadH = "<script type=\"text/javascript\">\n"; $body_onloadH .= "//<![CDATA[\n"; $body_onloadH .= "function init() {\n"; $body_onloadF = "}\n"; $body_onloadF .= "//]]>\n"; $body_onloadF .= "</script>\n"; if (file_exists("modules/include/body_onload.inc")) { echo $body_onloadH; include "modules/include/body_onload.inc"; echo $body_onloadF; } if (file_exists("themes/{$tmp_theme}/include/body_onload.inc")) { echo $body_onloadH; include "themes/{$tmp_theme}/include/body_onload.inc"; echo $body_onloadF; } // include externe file from modules/include or themes/.../include for functions, codes ... if (file_exists("modules/include/header_head.inc")) { include "modules/include/header_head.inc"; } if (file_exists("themes/{$tmp_theme}/include/header_head.inc")) { include "themes/{$tmp_theme}/include/header_head.inc"; } echo import_css($tmp_theme, $language, $site_font, $css_pages_ref, $css); // Mod by Jireck - Chargeur de JS via PAGES.PHP if ($js) { if (is_array($js)) { foreach ($js as $k => $tab_js) { if (stristr($tab_js, "http://")) { echo "<script type=\"text/javascript\" src=\"{$tab_js}\"></script>\n"; } else { if (file_exists("themes/{$tmp_theme}/js/{$tab_js}") and $tab_js != "") { echo "<script type=\"text/javascript\" src=\"themes/{$tmp_theme}/js/{$tab_js}\"></script>\n"; } elseif (file_exists("{$tab_js}") and $tab_js != "") { echo "<script type=\"text/javascript\" src=\"{$tab_js}\"></script>\n"; } } } } else { if (file_exists("themes/{$tmp_theme}/js/{$js}")) { echo "<script type=\"text/javascript\" src=\"themes/{$tmp_theme}/js/{$js}\"></script>\n"; } elseif (file_exists("{$js}")) { echo "<script type=\"text/javascript\" src=\"{$js}\"></script>\n"; } } } echo "</head>\n"; include "themes/{$tmp_theme}/header.php"; }
function PrintPage($oper, $DB, $nl, $sid) { global $user, $cookie, $theme, $Default_Theme, $language, $site_logo, $sitename, $datetime, $nuke_url, $site_font, $Titlesitename; global $NPDS_Prefix; $aff = true; if ($oper == 'news') { $xtab = news_aff('libre', "where sid='{$sid}'", 1, 1); list($sid, $catid, $aid, $title, $time, $hometext, $bodytext, $comments, $counter, $topic, $informant, $notes) = $xtab[0]; if ($topic != '') { $result2 = sql_query("SELECT topictext FROM " . $NPDS_Prefix . "topics WHERE topicid='{$topic}'"); list($topictext) = sql_fetch_row($result2); } else { $aff = false; } } if ($oper == 'archive') { $xtab = news_aff('archive', "WHERE sid='{$sid}'", 1, 1); list($sid, $catid, $aid, $title, $time, $hometext, $bodytext, $comments, $counter, $topic, $informant, $notes) = $xtab[0]; if ($topic != '') { $result2 = sql_query("SELECT topictext FROM " . $NPDS_Prefix . "topics WHERE topicid='{$topic}'"); list($topictext) = sql_fetch_row($result2); } else { $aff = false; } } if ($oper == 'links') { $DB = removeHack(stripslashes(htmlentities(urldecode($DB), ENT_NOQUOTES, cur_charset))); $result = sql_query("SELECT url, title, description, date FROM " . $DB . "links_links WHERE lid='{$sid}'"); list($url, $title, $description, $time) = sql_fetch_row($result); $title = stripslashes($title); $description = stripslashes($description); } if ($oper == 'static') { if (preg_match('#^[a-z0-9_\\.-]#i', $sid) and !stristr($sid, ".*://") and !stristr($sid, "..") and !stristr($sid, "../") and !stristr($sid, 'script') and !stristr($sid, "cookie") and !stristr($sid, 'iframe') and !stristr($sid, 'applet') and !stristr($sid, 'object') and !stristr($sid, 'meta')) { if (file_exists("static/{$sid}")) { ob_start(); include "static/{$sid}"; $remp = ob_get_contents(); ob_end_clean(); if ($DB) { $remp = meta_lang(aff_code(aff_langue($remp))); } if ($nl) { $remp = nl2br(str_replace(' ', ' ', htmlentities($remp, ENT_QUOTES, cur_charset))); } $title = $sid; } else { $aff = false; } } else { $remp = '<div class="alert alert-danger">' . translate("Please enter information according to the specifications") . '</div>'; $aff = false; } } if ($aff == true) { $Titlesitename = 'NPDS - ' . translate("Printer Friendly Page") . ' / ' . $title; if (isset($time)) { formatTimestamp($time); } include "meta/meta.php"; if (isset($user)) { if ($cookie[9] == '') { $cookie[9] = $Default_Theme; } if (isset($theme)) { $cookie[9] = $theme; } $tmp_theme = $cookie[9]; if (!($file = @opendir("themes/{$cookie['9']}"))) { $tmp_theme = $Default_Theme; } } else { $tmp_theme = $Default_Theme; } echo ' <link rel="stylesheet" href="lib/bootstrap/dist/css/bootstrap.min.css" />'; echo import_css($tmp_theme, $language, $site_font, '', ''); echo ' </head> <body> <div max-width="640" class="container p-1 n-hyphenate"> <div>'; $pos = strpos($site_logo, '/'); if ($pos) { echo '<img class="img-fluid d-block mx-auto" src="' . $site_logo . '" alt="website logo" />'; } else { echo '<img class="img-fluid d-block mx-auto" src="images/' . $site_logo . '" alt="website logo" />'; } echo ' <h1 class="d-block text-xs-center my-2">' . aff_langue($title) . '</h1>'; if ($oper == 'news' or $oper == 'archive') { $hometext = meta_lang(aff_code(aff_langue($hometext))); $bodytext = meta_lang(aff_code(aff_langue($bodytext))); echo ' <span class="float-xs-right text-capitalize" style="font-size: .8rem;"> ' . $datetime . '</span><br /> <hr /> <h2 class="mb-1">' . translate("Topic:") . ' ' . aff_langue($topictext) . '</h2> </div> <div>' . $hometext . '<br /><br />'; if ($bodytext != '') { echo $bodytext . '<br /><br />'; } echo meta_lang(aff_code(aff_langue($notes))); echo ' </div>'; if ($oper == 'news') { echo ' <hr /> <p class="text-xs-center">' . translate("This article comes from") . ' ' . $sitename . '<br /> ' . translate("The URL for this story is:") . ' <a href="' . $nuke_url . '/article.php?sid=' . $sid . '">' . $nuke_url . '/article.php?sid=' . $sid . '</a> </p>'; } else { echo ' <hr /> <p class="text-xs-center">' . translate("This article comes from") . ' ' . $sitename . '<br /> ' . translate("The URL for this story is:") . ' <a href="' . $nuke_url . '/article.php?sid=' . $sid . '&archive=1">' . $nuke_url . '/article.php?sid=' . $sid . '&archive=1</a> </p>'; } } if ($oper == 'links') { echo '<span class="float-xs-right text-capitalize" style="font-size: .8rem;">' . $datetime . '</span><br /><hr />'; if ($url != '') { echo '<h2 class="mb-1">' . translate("Links") . ' : ' . $url . '</h2>'; } echo ' <div>' . aff_langue($description) . '</div> <hr /> <p class="text-xs-center">' . translate("This article comes from") . ' ' . $sitename . '<br /> <a href="' . $nuke_url . '">' . $nuke_url . '</a></p>'; } if ($oper == 'static') { echo ' <div> ' . $remp . ' </div> <hr /> <p class="text-xs-center">' . translate("This article comes from") . ' ' . $sitename . '<br /> <a href="' . $nuke_url . '/static.php?op=' . $sid . '&npds=1">' . $nuke_url . '/static.php?op=' . $sid . '&npds=1</a></p>'; } echo ' </div> </body> </html>'; } else { header("location: index.php"); } }
function show_imm($op) { global $smilies, $user, $allow_bbcode, $language, $Default_Theme, $theme, $site_font, $short_user, $Titlesitename; global $NPDS_Prefix; if (!$user) { Header("Location: user.php"); } else { $userX = base64_decode($user); $userdata = explode(":", $userX); if ($userdata[9] != "") { if (!($file = @opendir("themes/{$userdata['9']}"))) { $theme = $Default_Theme; } else { $theme = $userdata[9]; } } else { $theme = $Default_Theme; } include "themes/{$theme}/theme.php"; $userdata = get_userdata($userdata[1]); if ($op != "new_msg") { $sql = "SELECT * FROM " . $NPDS_Prefix . "priv_msgs WHERE to_userid = '" . $userdata['uid'] . "' and read_msg='1' and type_msg='0' and dossier='...' ORDER BY msg_id DESC"; } else { $sql = "SELECT * FROM " . $NPDS_Prefix . "priv_msgs WHERE to_userid = '" . $userdata['uid'] . "' and read_msg='0' and type_msg='0' ORDER BY msg_id ASC"; } $result = sql_query($sql); $pasfin = false; while ($myrow = sql_fetch_assoc($result)) { if ($pasfin == false) { $pasfin = true; cache_ctrl(); include "meta/meta.php"; echo import_css($theme, $language, $site_font, "", ""); echo "</head>\n<body topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" style=\"background-color: #ffffff;\">"; } opentable(); echo "<table width=\"100%\" cellspacing=\"2\" cellpadding=\"2\" border=\"0\"><tr><td class=\"header\">\n"; $posterdata = get_userdata_from_id($myrow['from_userid']); echo translate("Private Message") . " " . translate("From"); if ($posterdata['uid'] == 1) { global $sitename; echo " " . $sitename; } echo "</td></tr></table>\n"; echo "<table width=\"100%\" cellspacing=\"1\" cellpadding=\"1\" border=\"0\">"; echo "<tr class=\"ligna\">"; $myrow['subject'] = strip_tags($myrow['subject']); echo "<td valign=\"top\" style=\"width: 15%;\"><b>"; if ($posterdata['uid'] != 1) { echo $posterdata['uname'] . "</b><br />"; } $posts = $posterdata['posts']; if ($posterdata['uid'] != 1) { echo member_qualif($posterdata['uname'], $posts, $posterdata['rank']); } echo "<br /><br />"; if ($smilies) { if ($posterdata['user_avatar'] != '') { if (stristr($posterdata['user_avatar'], "users_private")) { $imgtmp = $posterdata['user_avatar']; } else { if ($ibid = theme_image("forum/avatar/" . $posterdata['user_avatar'])) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/avatar/" . $posterdata['user_avatar']; } } echo "<div class=\"avatar_cadre\"><img src=\"" . $imgtmp . "\" alt=\"" . $posterdata['uname'] . "\" border=\"0\" /></div>"; } } echo "</td><td valign=\"top\" style=\"width: 85%;\" height=\"100%\">"; echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"height: 100%; width: 100%;\">"; echo "<tr><td valign=\"top\" width=\"100%\" height=\"100%\">"; if ($smilies) { if ($myrow['msg_image'] != "") { if ($ibid = theme_image("forum/subject/" . $myrow['msg_image'])) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/subject/" . $myrow['msg_image']; } echo "<img src=\"{$imgtmp}\" border=\"0\" alt=\"\" /> "; } } echo translate("Sent") . " : " . $myrow['msg_time'] . "  "; echo "<hr noshade=\"noshade\" class=\"ongl\" /><b>" . aff_langue($myrow['subject']) . "</b><br /><br />\n"; $message = stripslashes($myrow['msg_text']); if ($allow_bbcode) { $message = smilie($message); $message = aff_video_yt($message); } $message = str_replace("[addsig]", "<br /><br />" . nl2br($posterdata['user_sig']), aff_langue($message)); echo $message . "<br />"; echo "</td></tr><tr><td valign=\"bottom\">"; if ($posterdata['uid'] != 1) { echo "<hr noshade=\"noshade\" class=\"ongl\">"; if ($ibid = theme_image("forum/icons/profile.gif")) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/icons/profile.gif"; } echo "  <a href=\"user.php?op=userinfo&uname=" . $posterdata['uname'] . "\" class=\"noir\" target=\"_blank\"><img src=\"{$imgtmp}\" border=\"0\" alt=\"\" />" . translate("Profile") . "</a>"; if ($posterdata["femail"] != "") { if ($ibid = theme_image("forum/icons/email.gif")) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/icons/email.gif"; } echo " <a href=\"mailto:" . $posterdata['femail'] . "\" class=\"noir\" target=\"_blank\"><img src=\"{$imgtmp}\" border=\"0\" alt=\"\" />" . translate("Email") . "</a>"; } if ($posterdata['url'] != "") { if (strstr("http://", $posterdata['url'])) { $posterdata['url'] = "http://" . $posterdata['url']; } if ($ibid = theme_image("forum/icons/www_icon.gif")) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/icons/www_icon.gif"; } echo " <a href=\"" . $posterdata['url'] . "\" class=\"noir\" target=\"_blank\"><img src=\"{$imgtmp}\" border=\"0\" alt=\"\" />www</a>"; } if (!$short_user) { if ($posterdata["user_icq"] != "") { if ($ibid = theme_image("forum/icons/icq_on.gif")) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/icons/icq_on.gif"; } echo " <a href=\"http://wwp.mirabilis.com/" . $posterdata['icq'] . "\" target=\"_blank\" class=\"noir\"><img src=\"{$imgtmp}\" border=\"0\" alt=\"\" />icq</a>"; } if ($posterdata["user_aim"] != "") { if ($ibid = theme_image("forum/icons/aim.gif")) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/icons/aim.gif"; } echo " <a href=\"aim:goim?screenname=" . $posterdata['user_aim'] . "&message=Hi+" . $posterdata['user_aim'] . ".+Are+you+there?\" class=\"noir\" target=\"_blank\"><img src=\"{$imgtmp}\" border=\"0\" alt=\"\" />aim</a>"; } if ($posterdata["user_yim"] != "") { if ($ibid = theme_image("forum/icons/yim.gif")) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/icons/yim.gif"; } echo " <a href=\"http://edit.yahoo.com/config/send_webmesg?.target=" . $posterdata['user_yim'] . "&.src=pg\" target=\"_blank\"><img src=\"{$imgtmp}\" border=\"0\" alt=\"\" /></a>"; } if ($posterdata["user_msnm"] != '') { if ($ibid = theme_image("forum/icons/msnm.gif")) { $imgtmp = $ibid; } else { $imgtmp = "images/forum/icons/msnm.gif"; } echo " <a href=\"user.php?op=userinfo&uname=" . $posterdata['uname'] . "\" target=\"_blank\"><img src=\"{$imgtmp}\" border=\"0\" alt=\"\" /></a>"; } } } echo "</td></tr></table>"; echo "</td></tr>"; echo "<tr align=\"left\"><td colspan=\"2\" align=\"left\">"; if ($posterdata['uid'] != 1) { if ($ibid = theme_image("forum/icons/{$language}/reply.gif")) { $imgtmpD = $ibid; } else { $imgtmpD = "images/forum/icons/{$language}/reply.gif"; } echo " <a href=\"readpmsg_imm.php?op=read_msg&msg_id=" . $myrow['msg_id'] . "&op_orig={$op}&sub_op=reply\"><img src=\"{$imgtmpD}\" border=\"0\" alt=\"\" /></a>"; } if ($ibid = theme_image("forum/icons/{$language}/delete.gif")) { $imgtmpD = $ibid; } else { $imgtmpD = "images/forum/icons/{$language}/delete.gif"; } echo " <a href=\"readpmsg_imm.php?op=delete&msg_id=" . $myrow['msg_id'] . "&op_orig={$op}\"><img src=\"{$imgtmpD}\" border=\"0\" alt=\"\" /></a>"; if ($ibid = theme_image("forum/icons/{$language}/msg_read.gif")) { $imgtmpD = $ibid; } else { $imgtmpD = "images/forum/icons/{$language}/msg_read.gif"; } echo " <a href=\"readpmsg_imm.php?op=read_msg&msg_id=" . $myrow['msg_id'] . "&op_orig={$op}&sub_op=read\"><img src=\"{$imgtmpD}\" border=\"0\" alt=\"\" /></a>"; echo "</td></tr></table>"; closetable(); } if ($pasfin != true) { cache_ctrl(); echo "<body style=\"background-color: #ffffff;\" onload=\"self.close();\">"; } } echo "</body></html>"; }