www.gusucode.com > HadSky PHP轻论坛系统源码 v2.4.2源码程序 > ytqlt_v2.4.2.0701/phpscript/app.php

    <?php
if (!defined('puyuetian'))
	exit('403');

$_G['SET']['WEBNAME'] = '应用中心 - ' . $_G['SET']['WEBNAME'];

$_G['HTMLCODE']['OUTPUT'] .= template("app-1", TRUE);
$plugsdir = scandir("{$_G['SYSTEM']['PATH']}/phpscript/plug");
if ($plugsdir) {
	foreach ($plugsdir as $_G['TEMP']['APP']['PLUGDIR']) {
		if (Cstr($_G['TEMP']['APP']['PLUGDIR'], FALSE, TRUE, 1, 255)) {
			$plugpath = "{$_G['SYSTEM']['PATH']}/phpscript/plug/{$_G['TEMP']['APP']['PLUGDIR']}";
			if (file_exists("{$plugpath}/config.xml")) {
				$xml = simplexml_load_file("{$plugpath}/config.xml");
				foreach ($xml as $key => $value) {
					$$key = $value;
				}
				$_G['TEMP']['APP']['BTN'] = TRUE;
				if (!file_exists("{$plugpath}/index.php")) {
					$_G['TEMP']['APP']['BTN'] = FALSE;
				}
				if ($users == 0) {
					$_G['HTMLCODE']['OUTPUT'] .= template("app-2", TRUE);
				} else {
					if (chkUserQx($users, $_G['USER']['ID'])) {
						$_G['HTMLCODE']['OUTPUT'] .= template("app-2", TRUE);
					}
				}
			}
		}
	}
}
//print_r($GLOBALS);
$_G['HTMLCODE']['OUTPUT'] .= template("app-3", TRUE);