* Copyright: See COPYING files that comes with this distribution
********************************************************************************/
-require("include/session.inc.php");
-require("include/encoding.inc.php");
-require("include/wrapper.inc.php");
-require("include/format.inc.php");
-require("include/config.inc.php");
-require("include/NetNNTP.inc.php");
-require("include/spool.inc.php");
-require("include/post.inc.php");
-require("include/profile.inc.php");
-require("include/password.inc.php");
-require("include/error.inc.php");
+require_once("include/session.inc.php");
+require_once("include/misc.inc.php");
+require_once("include/format.inc.php");
+require_once("include/config.inc.php");
+require_once("include/NetNNTP.inc.php");
+require_once("include/spool.inc.php");
+require_once("include/post.inc.php");
+require_once("include/profile.inc.php");
+require_once("include/password.inc.php");
+require_once("include/error.inc.php");
-$profile=getprofile();
-require($profile['locale']);
-
-require("include/header.inc.php");
+$profile = getprofile();
+require_once("include/header.inc.php");
if (isset($_REQUEST['group'])) {
$group=htmlentities(strtolower($_REQUEST['group']));
if (!$spool) error("nntpspool");
$nntp->group($group);
-$post = new post($nntp,$id);
+$post = new NNTPPost($nntp,$id);
if (!$post) {
if ($nntp->lasterrorcode == "423") {
$spool->delid($id);
$ndx = $spool->getndx($id);
?>
-<div class="<?php echo $css['title']?>">
- <?php echo $locale['article']['message'];?>
-</div>
+<h1>
+ <?php echo _b_('Message'); ?>
+</h1>
<?php
if (isset($_GET['type']) && ($_GET['type']=='cancel') && (checkcancel($post->headers))) {
?>
<p class="<?php echo $css['error']?>">
- <?php echo $locale['article']['cancel'];?>
+ <?php echo _b_('Voulez-vous vraiment annuler ce message ?'); ?>
</p>
<form action="thread.php" method="post">
<input type="hidden" name="group" value="<?php echo $group;?>" />
<input type="hidden" name="id" value="<?php
echo $id;?>" />
<input type="hidden" name="type" value="cancel" />
- <input type="submit" name="action" value="<?php echo
- $locale['article']['okbtn'];?>" />
+ <input type="submit" name="action" value="<?php echo _b_('OK'); ?>" />
</form>
<?
}
?>
<table class="<?php echo $css['bicol']?>" cellpadding="0" cellspacing="0"
-summary="<?php echo $locale['article']['summary'];?>">
+summary="<?php echo _b_('Contenu du message'); ?>">
<tr>
<th colspan="2">
- <?php echo $locale['article']['headers'];?>
+ <?php echo _b_('En-têtes'); ?>
</th>
</tr>
<?php
foreach ($news['headdisp'] as $nick) {
if (isset($post->headers->$nick))
- echo "<tr><td class=\"{$css['bicoltitre']}\">{$locale['headers'][$nick]}</td>"
+ echo "<tr><td class=\"{$css['bicoltitre']}\">".header_translate($nick)."</td>"
."<td>".formatdisplayheader($nick,$post->headers->$nick,$spool)
."</td></tr>\n";
}
?>
<tr>
<th colspan="2">
- <?php echo $locale['article']['body'];?>
+ <?php echo _b_('Corps'); ?>
</th>
</tr>
<tr>
</tr>
<tr>
<th colspan="2">
- <?php echo $locale['article']['overview'];?>
+ <?php echo _b_('Aperçu'); ?>
</th>
</tr>
<tr>
<?php
displayshortcuts();
-require("include/footer.inc.php");
+require_once("include/footer.inc.php");
?>