 |
//-------------------- -----------------------//
$bpath = 'main1.list';
//-------------------- R_ -----------------------//
//$fp = fopen(dirname(__FILE_)."/$bpath","r");
$ban_file = file(dirname(__FILE__)."/$bpath");
$ban_count = count($ban_file) - 1;
//init random generator
mt_srand((double)microtime()*1000000);
//get random value
//--- roation part ---//
$rnd = mt_rand(0,$ban_count);
$data = $ban_file[$rnd];
list($img,$title,$link) = explode("|",$data);
//-------------------- 蠡
$title
\n\r";
?>
|
//-------------------- -----------------------//
$bpath = 'main2.list';
//-------------------- R_ -----------------------//
//$fp = fopen(dirname(__FILE_)."/$bpath","r");
$ban_file = file(dirname(__FILE__)."/$bpath");
$ban_count = count($ban_file) - 1;
//init random generator
mt_srand((double)microtime()*1000000);
//get random value
//--- roation part ---//
$rnd = mt_rand(0,$ban_count);
$data = $ban_file[$rnd];
list($img,$title,$link) = explode("|",$data);
//-------------------- 蠡
$title
\n\r";
?>
|
//-------------------- -----------------------//
$bpath = 'main3.list';
//-------------------- R_ -----------------------//
//$fp = fopen(dirname(__FILE_)."/$bpath","r");
$ban_file = file(dirname(__FILE__)."/$bpath");
$ban_count = count($ban_file) - 1;
//init random generator
mt_srand((double)microtime()*1000000);
//get random value
//--- roation part ---//
$rnd = mt_rand(0,$ban_count);
$data = $ban_file[$rnd];
list($img,$title,$link) = explode("|",$data);
//-------------------- 蠡
$title
\n\r";
?>
|
//-------------------- -----------------------//
$bpath = 'main4.list';
//-------------------- R_ -----------------------//
//$fp = fopen(dirname(__FILE_)."/$bpath","r");
$ban_file = file(dirname(__FILE__)."/$bpath");
$ban_count = count($ban_file) - 1;
//init random generator
mt_srand((double)microtime()*1000000);
//get random value
//--- roation part ---//
$rnd = mt_rand(0,$ban_count);
$data = $ban_file[$rnd];
list($img,$title,$link) = explode("|",$data);
//-------------------- 蠡
$title
\n\r";
?>
|
//-------------------- -----------------------//
$bpath = 'main5.list';
//-------------------- R_ -----------------------//
//$fp = fopen(dirname(__FILE_)."/$bpath","r");
$ban_file = file(dirname(__FILE__)."/$bpath");
$ban_count = count($ban_file) - 1;
//init random generator
mt_srand((double)microtime()*1000000);
//get random value
//--- roation part ---//
$rnd = mt_rand(0,$ban_count);
$data = $ban_file[$rnd];
list($img,$title,$link) = explode("|",$data);
//-------------------- 蠡
$title
\n\r";
?>
|
//-------------------- -----------------------//
$bpath = 'main6.list';
//-------------------- R_ -----------------------//
//$fp = fopen(dirname(__FILE_)."/$bpath","r");
$ban_file = file(dirname(__FILE__)."/$bpath");
$ban_count = count($ban_file) - 1;
//init random generator
mt_srand((double)microtime()*1000000);
//get random value
//--- roation part ---//
$rnd = mt_rand(0,$ban_count);
$data = $ban_file[$rnd];
list($img,$title,$link) = explode("|",$data);
//-------------------- 蠡
$title
\n\r";
?>
|
 |
 |