本文整理汇总了PHP中EnvUtil::getSystemInfo方法的典型用法代码示例。如果您正苦于以下问题:PHP EnvUtil::getSystemInfo方法的具体用法?PHP EnvUtil::getSystemInfo怎么用?PHP EnvUtil::getSystemInfo使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EnvUtil
的用法示例。
在下文中一共展示了EnvUtil::getSystemInfo方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionIndex
public function actionIndex()
{
$systemInfo = EnvUtil::getSystemInfo();
$databaseSize = DatabaseUtil::getDatabaseSize();
list($dataSize, $dataUnit) = explode(" ", $databaseSize);
$appClosed = Setting::model()->fetchSettingValueByKey("appclosed");
$newVersion = Ibos::app()->setting->get("newversion");
$getSecurityUrl = Ibos::app()->urlManager->createUrl("dashboard/index/getsecurity");
$mainModule = Module::model()->fetchByPk("main");
$authkey = Ibos::app()->setting->get("config/security/authkey");
$unit = Setting::model()->fetchSettingValueByKey("unit");
$license = Setting::model()->fetchSettingValueByKey("license");
$licenseUrl = $this->getLicenseUrl(unserialize($unit), $authkey);
if (isset($_GET["attachsize"])) {
$attachSize = Attachment::model()->getTotalFilesize();
$attachSize = is_numeric($attachSize) ? ConvertUtil::sizeCount($attachSize) : Ibos::lang("Unknow");
} else {
$attachSize = "";
}
$data = array("sys" => $systemInfo, "dataSize" => $dataSize, "dataUnit" => $dataUnit, "appClosed" => $appClosed, "newVersion" => $newVersion, "getSecurityUrl" => $getSecurityUrl, "installDate" => $mainModule["installdate"], "authkey" => $authkey, "license" => unserialize($license), "licenseUrl" => $licenseUrl, "attachSize" => $attachSize);
$this->render("index", $data);
}