/[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.2 by wakaba, Sat Dec 1 11:51:33 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;

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

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24