⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.php

📁 一个可以实时查看股票行情的小程序,真是一个好程序哦,直得大家
💻 PHP
字号:
<?php
$mod=1;//填2为第二种模式 3为第3种模式,根据您服务器的支持程度设置
switch($mod){
	case 1:$DIR='simple/index.php?';break;
	case 2:$DIR='simple/index.php/';break;
	case 3:$DIR='simple/';break;//RewriteRule ^(.*)/simple/([a-z0-9\_]+\.html)$ $1/simple/index.php?$2
}

define('SIMPLE',1);
chdir('./..');
require_once('./global.php');
include_once(R_P.'data/bbscache/forum_cache.php');

if(file_exists(R_P."data/style/$skin.php") && strpos($skin,'..')===false){
	@include (R_P."data/style/$skin.php");
}else{
	@include (R_P."data/style/wind.php");
}
$yeyestyle=='no' ? $i_table="bgcolor=$tablecolor" : $i_table='class=i_table';
$db_union && $db_union=explode("\t",stripslashes($db_union));

//$dirlen=$mod!=2 ? strlen($DIR)-7 : 0;
$R_URL=substr(($cutchar=strrchr($REQUEST_URI,'?')) ? substr($cutchar,1) : substr(strrchr($REQUEST_URI,'/'),1),0,-5);
if($R_URL){
	$R_URL_A=explode('_',$R_URL);
	$prog=substr($R_URL_A[0],0,1);
	$id=(int)substr($R_URL_A[0],1);
	$page=(int)$R_URL_A[1];
}else{
	$prog='';
}

switch($prog){
	case 'f':
		$fid =& $id;
		include_once('./simple/mod_thread.php');break;
	case 't':
		$tid =& $id;
		include_once('./simple/mod_read.php');break;
	default:
		include_once('./simple/mod_index.php');
}
Update_ol();
if($db){
	$qn=$db->query_num;
}
$db_obstart==1 ? $ft_gzip="Gzip enabled":$ft_gzip="Gzip disabled";
if ($db_footertime==1){
	$t_array=explode(' ',microtime());
	$totaltime=number_format(($t_array[0]+$t_array[1]-$P_S_T),6);
	$wind_spend="Time $totaltime second(s),query:$qn";
}
include PrintEot('simple_footer');
$output=str_replace(array('<!--<!---->','<!---->'),array('',''),ob_get_contents());
ob_end_clean();
$db_obstart==1 ? ob_start('ob_gzhandler') : ob_start();
echo $output;
flush;
exit;

function PageDiv($count,$page,$numofpage,$url)
{
	global $tablecolor,$db_bbsurl;
	if ($numofpage<=1){
		return ;
	}else{
		$fengye="<a href=\"{$url}_1.html\"><< </a>";
		$flag=0;
		for($i=$page-3;$i<=$page-1;$i++)
		{
			if($i<1) continue;
			$fengye.=" <a href={$url}_$i.html>&nbsp;$i&nbsp;</a>";
		}
		$fengye.="&nbsp;&nbsp;<b>$page</b>&nbsp;";
		if($page<$numofpage)
		{
			for($i=$page+1;$i<=$numofpage;$i++)
			{
				$fengye.=" <a href={$url}_$i.html>&nbsp;$i&nbsp;</a>";
				$flag++;
				if($flag==4) break;
			}
		}
		$fengye.=" <input type='text' size='2' style='height: 16px; border:1px solid $tablecolor' onkeydown=\"javascript: if(window.event.keyCode==13) window.location='$db_bbsurl/{$url}_'+this.value+'.html';\"> <a href=\"{$url}_$numofpage.html\"> >></a> &nbsp;Pages: (  $numofpage total )";
		return $fengye;
	}
}
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -