/[suikacvs]/messaging/newsportal/thread.php
Suika

Diff of /messaging/newsportal/thread.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by wakaba, Sat Dec 1 11:17:31 2001 UTC revision 1.3 by wakaba, Mon Feb 11 13:36:11 2002 UTC
# Line 1  Line 1 
1  <? header("Expires: ".gmdate("D, d M Y H:i:s",time()+7200)." GMT");  <? header("Expires: ".gmdate("D, d M Y H:i:s",time()+7200)." GMT");
2    
3    $url=explode("/",$PATH_INFO);    // $PATH_INFO = /suika:misc/10:20
4    $group=$url[1];    $url = explode ("/", $PATH_INFO);
5      $group = str_replace (':', '.', $url[1]);
6    if (!isset($url[2])) {    if (!isset($url[2])) {
7      header('Location: '.$group.'/index.html'); //.$URL.'/index.html');      header('Location: '.$group.'/index');
8      echo "nix";      echo "nix";
9      exit;      exit;
10    } else {    } else {
11      $pagestring=$url[2];      $pagestring=$url[2];
12      if (eregi('^.*_.*\.html',$pagestring)) {      preg_match("/^([0-9]+)[_-]([0-9]+)/", $pagestring, $matches);
13        $first=substr($pagestring,0,strpos($pagestring,'_'));      $first = $matches[1];
14        $last=str_replace('.html','',      $last  = $matches[2];
                         substr($pagestring,strpos($pagestring,'_')+1));  
     }  
15    }    }
16    include "config.inc";    include "config.inc";
17    $title.= ' - '.$group;    $title.= ' - '.$group;
18    include "body.inc"; ?>    include "body.inc"; ?>
19    
20  <a name="top"></a>  <h1 id="top"><?php echo $group; ?></h1>
 <h1 align="center"><?php echo $group; ?></h1>  
21    
22  <p align="center">  <p class="navi">
23  <? if (!$readonly)  <? if (!$readonly)
24    echo '[<a href="../../'.$file_post.'?newsgroups='.urlencode($group).'&amp;type=new">'.$text_thread["button_write"]."</a>] ";    echo '[<a href="../../'.$file_post.'?newsgroups='.urlencode($group).'&amp;type=new">'.$text_thread["button_write"]."</a>] ";
25  echo '[<a href="../../'.$file_groups.'">'.$text_thread["button_grouplist"].'</a>]';  echo '[<a href="../../'.$file_groups.'">'.$text_thread["button_grouplist"].'</a>]';
# Line 45  if ($ns != false) { Line 43  if ($ns != false) {
43          $last=$article_count;          $last=$article_count;
44        }        }
45      }      }
46      echo '<p align="center">';      echo '<p class="page">';
47      showPageSelectMenu(count($headers),$first);      showPageSelectMenu(count($headers),$first);
48      echo '</p>';      echo '</p>';
49    } else {    } else {
# Line 57  if ($ns != false) { Line 55  if ($ns != false) {
55  }  }
56  ?>  ?>
57    
58  <p align="right"><a href="#top"><? echo $text_thread["button_top"];?></a></p>  <p class="backnavi"><a href="#top"><? echo $text_thread["button_top"];?></a></p>
59    
60  <? include "footer.inc"; ?>  <? include "footer.inc"; ?>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24