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

📄 botlist.php

📁 flashget43的源代码 一个比较常用的下载程序
💻 PHP
字号:
<?php
include_once('init.php');

if(!inSession()) {
	include('login.php');
	exit;
}
if(!isset($_REQUEST['sort']) || isset($_REQUEST['clear'])) $_REQUEST['sort'] = 'none';

$bots = array();
$botnames = array();

if($GLOBALS['fc_config']['enableBots'])
{
	if(isset($_GET['id']))
	{
		$user = ChatServer::getUser($_GET['id']);
		$userId = $GLOBALS['fc_config']['bot']->logout($user['login']);
		$GLOBALS['fc_config']['bot']->disconnectUser2Bot($userId);
	}
		
	$bots  = $GLOBALS['fc_config']['bot']->getBots();
	while (list($key, $val) = each($bots))
	{
		$botnames[$val['login']]['id']    = $key;
		$botnames[$val['login']]['login'] = $val['login']; 	
	}
}

if ($_REQUEST['sort'] != 'none') {
	ksort( $botnames );
}

//Assign Smarty variables and load the botlist template
$smarty->assign('enableBots', $GLOBALS['fc_config']['enableBots']);
$smarty->assign('botnames', $botnames);
$smarty->display('botlist.tpl');

?>

⌨️ 快捷键说明

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