2 /*yotsubanome multiBBS reader
3 from 2ch PHP script 18c
7 //error_reporting(E_ALL); // show all errors for debugging
10 if(!defined("BBSMENU")) define("BBSMENU", 0); // BBSmenu for the frame at BBS home page
11 if(!defined("INDEXBBS")) define("INDEXBBS", 0); // home page BBS list
12 if(!BBSMENU && !INDEXBBS){
13 define("LISTBBS", 1); // misc. BBS list
17 define("LISTBBS", 0); // misc. BBS list
21 if(!defined("PHP_SELF"))define("PHP_SELF", 'yotsubanome.php'); // このスクリプト名 // 主程式名 (若是修改了主程式名,請配合修改)
22 $config['TITLE'] = '画像掲示板';
26 $handle = opendir($qazw);
27 while(false !== ($file = readdir($handle))){
28 if($file != 'my' and $file != 'lite' and $file != 'pg' and $file != 'script' and $file != '.' and $file != '..'){ // do not include system core directory or distribution directory
29 if(is_dir($qazw.$file) and is_file($qazw.$file.'/config.php') || is_file($qazw.$file.'/'.PHP_SELF)) array_push($board, $file);
34 /* BBS list display */
37 if(BBSMENU && !INDEXBBS){
38 foreach($board as $dir){
39 if($dir != 'test') include($qazw.$dir.'/config.php');
40 $config['TITLE'] = preg_replace('/@四葉の芽(.*?)/', '', $config['TITLE']);
41 $bbsdat .= '<a href="'.$qazw.$dir.'/" target="cont">'.$config['TITLE'].'</a><br>';
42 //++++ <font color="#ff0099">new</font>
43 //++++ <font color="#6f0069">old</font>
47 /*if(!BBSMENU && INDEXBBS){
48 foreach($board as $dir){
49 include('../'.$dir.'/config.php');
50 $config['TITLE'] = preg_replace('/@四葉の芽(.*?)/', '', $config['TITLE']);
51 $bbsdat .= '<a href="'.$qazw.$dir.'/">'.$config['TITLE'].'</a><br>';
52 //++++ <font color="#ff0099">new</font>
53 //++++ <font color="#6f0069">old</font>
57 if(!BBSMENU/* && !INDEXBBS && LISTBBS*/){
58 foreach($board as $dir){
59 if($dir != 'test') include($qazw.$dir.'/config.php');
60 $config['TITLE'] = preg_replace('/@四葉の芽(.*?)/', '', $config['TITLE']);
61 $bbsdat .= '<a href="'.$qazw.$dir.'/">'.$config['TITLE'].'</a><br>';
62 //++++ <font color="#ff0099">new</font>
63 //++++ <font color="#6f0069">old</font>
71 //if(LISTBBS) print_r($board);
72 //echo LISTBBS,'<br>';
73 //echo BBSMENU.'<br>';
74 //echo INDEXBBS.'<br>';