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

📄 down.inc.php

📁 学校网站源码http://您的网址/admin/admin_login.asp 默认登录用户:admin 默认登录密码:admin
💻 PHP
字号:
<?php


function downdetailarr( $id )
{
	global $fsql;
	global $tbl_down_con;
	$fsql->query( "select * from {$tbl_down_con} where id='{$id}'" );
	if ( $fsql->next_record( ) )
	{
		$catid = $fsql->f( "catid" );
		$catpath = $fsql->f( "catpath" );
		$body = $fsql->f( "body" );
		$dtime = $fsql->f( "dtime" );
		$uptime = $fsql->f( "uptime" );
		$title = $fsql->f( "title" );
		$url = $fsql->f( "url" );
		$filesize = $fsql->f( "filesize" );
		$memo = $fsql->f( "memo" );
		$source = $fsql->f( "source" );
		$author = $fsql->f( "author" );
		$cl = $fsql->f( "cl" );
		$secure = $fsql->f( "secure" );
		$type = $fsql->f( "type" );
		$src = $fsql->f( "src" );
		$prop1 = $fsql->f( "prop1" );
		$prop2 = $fsql->f( "prop2" );
		$prop3 = $fsql->f( "prop3" );
		$prop4 = $fsql->f( "prop4" );
		$prop5 = $fsql->f( "prop5" );
		$prop6 = $fsql->f( "prop6" );
		$prop7 = $fsql->f( "prop7" );
		$prop8 = $fsql->f( "prop8" );
		$prop9 = $fsql->f( "prop9" );
		$prop10 = $fsql->f( "prop10" );
		$prop11 = $fsql->f( "prop11" );
		$prop12 = $fsql->f( "prop12" );
		$prop13 = $fsql->f( "prop13" );
		$prop14 = $fsql->f( "prop14" );
		$prop15 = $fsql->f( "prop15" );
		$prop16 = $fsql->f( "prop16" );
		$prop17 = $fsql->f( "prop17" );
		$prop18 = $fsql->f( "prop18" );
		$prop19 = $fsql->f( "prop19" );
		$prop20 = $fsql->f( "prop20" );
	}
	$memo = str_replace( "\n", "<br>", $memo );
	if ( !strstr( $url, "http://" ) )
	{
		$url = ROOTPATH.$url;
	}
	$dtime = date( "Y-m-d H:i:s", $dtime );
	$uptime = date( "Y-m-d H:i:s", $uptime );
	$ArrayDownDetail = array(
		"body" => $body,
		"dtime" => $dtime,
		"uptime" => $uptime,
		"title" => $title,
		"url" => $url,
		"filesize" => $filesize,
		"memo" => $memo,
		"source" => $source,
		"author" => $author,
		"cl" => $cl,
		"catid" => $catid,
		"secure" => $secure,
		"type" => $type,
		"src" => $src,
		"prop1" => $prop1,
		"prop2" => $prop2,
		"prop3" => $prop3,
		"prop4" => $prop4,
		"prop5" => $prop5,
		"prop6" => $prop6,
		"prop7" => $prop7,
		"prop8" => $prop8,
		"prop9" => $prop9,
		"prop10" => $prop10,
		"prop11" => $prop11,
		"prop12" => $prop12,
		"prop13" => $prop13,
		"prop14" => $prop14,
		"prop15" => $prop15,
		"prop16" => $prop16,
		"prop17" => $prop17,
		"prop18" => $prop18,
		"prop19" => $prop19,
		"prop20" => $prop20,
		"catpath" => $catpath
	);
	return $ArrayDownDetail;
}

function loadcatarr( )
{
	global $msql;
	global $tbl_down_cat;
	global $ArrayPid;
	global $TotalCat;
	global $ArrayCatid;
	global $ArrayCat;
	global $ArrayCatpath;
	global $ArrayCatNums;
	global $ArraySecure;
	$msql->query( "select * from {$tbl_down_cat} order by xuhao" );
	$i = 0;
	while ( $msql->next_record( ) )
	{
		$ArrayPid[$i] = $msql->f( "pid" );
		$ArrayCatid[$i] = $msql->f( "catid" );
		$ArrayCat[$i] = $msql->f( "cat" );
		$ArrayCatpath[$i] = $msql->f( "catpath" );
		$ArrayCatNums[$i] = $msql->f( "nums" );
		$ArraySecure[$i] = $msql->f( "secure" );
		$i++;
	}
	$TotalCat = $i;
}

function readcatname( $catid )
{
	global $MenuInfo;
	global $TotalCat;
	global $ArrayCatid;
	global $ArrayCat;
	if ( !isset( $catid ) || $catid == "" || $catid == "0" )
	{
		$str = $MenuInfo[menu];
	}
	else
	{
		$t = 0;
		for ( ;	$t < $TotalCat;	$t++	)
		{
			if ( $ArrayCatid[$t] == $catid )
			{
				$str = $ArrayCat[$t];
			}
		}
	}
	return $str;
}

function initcpath( $catid, $cpath )
{
	if ( $catid != "0" && $catid != "" && ( !isset( $cpath ) || $cpath == "" ) )
	{
		$cpath = fmpath( $catid ).":";
	}
	return $cpath;
}

function readcpath( $catid )
{
	global $TotalCat;
	global $ArrayPid;
	global $ArrayCatid;
	global $ArrayCat;
	global $ArrayCatpath;
	$k = 0;
	for ( ;	$k < sizeof( $ArrayCatid );	$k++	)
	{
		if ( $ArrayCatid[$k] == $catid )
		{
			$cpath = $ArrayCatpath[$k];
			return $cpath;
		}
	}
}

function readsecure( $catid )
{
	global $TotalCat;
	global $ArrayPid;
	global $ArrayCatid;
	global $ArrayCat;
	global $ArrayCatpath;
	global $ArraySecure;
	$k = 0;
	for ( ;	$k < sizeof( $ArrayCatid );	$k++	)
	{
		if ( $ArrayCatid[$k] == $catid )
		{
			$secure = $ArraySecure[$k];
			return $secure;
		}
	}
}

function querypagetitle( )
{
	global $TotalCat;
	global $ArrayPid;
	global $ArrayCatid;
	global $ArrayCat;
	global $ArrayCatpath;
	global $CatchOpen;
	global $NowCatPath;
	global $NowMenu;
	$nav = $NowMenu;
	if ( isset( $NowCatPath ) && $NowCatPath != "" )
	{
		$array = explode( ":", $NowCatPath );
		$cpnums = sizeof( $array ) - 1;
		$i = 0;
		for ( ;	$i < $cpnums;	$i++	)
		{
			$arr = $array[$i] + 0;
			$t = 0;
			for ( ;	$t < $TotalCat;	$t++	)
			{
				if ( $ArrayCatid[$t] == $arr )
				{
					$nav .= "_".$ArrayCat[$t];
				}
			}
		}
	}
	return $nav;
}

?>

⌨️ 快捷键说明

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