当前位置: 首页>>代码示例>>PHP>>正文


PHP KunenaVersion::getVersionHTML方法代码示例

本文整理汇总了PHP中KunenaVersion::getVersionHTML方法的典型用法代码示例。如果您正苦于以下问题:PHP KunenaVersion::getVersionHTML方法的具体用法?PHP KunenaVersion::getVersionHTML怎么用?PHP KunenaVersion::getVersionHTML使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在KunenaVersion的用法示例。


在下文中一共展示了KunenaVersion::getVersionHTML方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getSystemReport

    /**
     * Method to generate all the reportconfiguration.
     *
     * @return    string
     * @since    1.6
     */
    public function getSystemReport()
    {
        $kunena_db = JFactory::getDBO();
        if (!$this->app->getCfg('smtpuser')) {
            $jconfig_smtpuser = 'Empty';
        } else {
            $jconfig_smtpuser = $this->app->getCfg('smtpuser');
        }
        if ($this->app->getCfg('ftp_enable')) {
            $jconfig_ftp = 'Enabled';
        } else {
            $jconfig_ftp = 'Disabled';
        }
        if ($this->app->getCfg('sef')) {
            $jconfig_sef = 'Enabled';
        } else {
            $jconfig_sef = 'Disabled';
        }
        if ($this->app->getCfg('sef_rewrite')) {
            $jconfig_sef_rewrite = 'Enabled';
        } else {
            $jconfig_sef_rewrite = 'Disabled';
        }
        if (is_file(JPATH_ROOT . '/.htaccess')) {
            $htaccess = 'Exists';
        } else {
            $htaccess = 'Missing';
        }
        if (ini_get('register_globals')) {
            $register_globals = '[u]register_globals:[/u] [color=#FF0000]On[/color]';
        } else {
            $register_globals = '[u]register_globals:[/u] Off';
        }
        if (ini_get('safe_mode')) {
            $safe_mode = '[u]safe_mode:[/u] [color=#FF0000]On[/color]';
        } else {
            $safe_mode = '[u]safe_mode:[/u] Off';
        }
        if (extension_loaded('mbstring')) {
            $mbstring = '[u]mbstring:[/u] Enabled';
        } else {
            $mbstring = '[u]mbstring:[/u] [color=#FF0000]Not installed[/color]';
        }
        if (extension_loaded('gd')) {
            $gd_info = gd_info();
            $gd_support = '[u]GD:[/u] ' . $gd_info['GD Version'];
        } else {
            $gd_support = '[u]GD:[/u] [color=#FF0000]Not installed[/color]';
        }
        $maxExecTime = ini_get('max_execution_time');
        $maxExecMem = ini_get('memory_limit');
        $fileuploads = ini_get('upload_max_filesize');
        $kunenaVersionInfo = KunenaVersion::getVersionHTML();
        // Get Kunena default template
        $ktemplate = KunenaFactory::getTemplate();
        $ktemplatedetails = $ktemplate->getTemplateDetails();
        $jtemplatedetails = $this->_getJoomlaTemplate();
        $joomlamenudetails = $this->_getJoomlaMenuDetails();
        $collation = $this->_getTablesCollation();
        $kconfigsettings = $this->_getKunenaConfiguration();
        // Get Joomla! languages installed
        $joomlalanguages = $this->_getJoomlaLanguagesInstalled();
        // Check if Mootools plugins and others kunena plugins are enabled, and get the version of this modules
        $plg['jfirephp'] = $this->getExtensionVersion('system/jfirephp', 'System - JFirePHP');
        $plg['ksearch'] = $this->getExtensionVersion('search/kunena', 'Search - Kunena Search');
        $plg['kdiscuss'] = $this->getExtensionVersion('content/kunenadiscuss', 'Content - Kunena Discuss');
        $plg['jxfinderkunena'] = $this->getExtensionVersion('finder/plg_jxfinder_kunena', 'Finder - Kunena Posts');
        $plg['kjomsocialmenu'] = $this->getExtensionVersion('community/kunenamenu', 'JomSocial - My Kunena Forum Menu');
        $plg['kjomsocialmykunena'] = $this->getExtensionVersion('community/mykunena', 'JomSocial - My Kunena Forum Posts');
        $plg['kjomsocialgroups'] = $this->getExtensionVersion('community/kunenagroups', 'JomSocial - Kunena Groups');
        foreach ($plg as $id => $item) {
            if (empty($item)) {
                unset($plg[$id]);
            }
        }
        if (!empty($plg)) {
            $plgtext = '[quote][b]Plugins:[/b] ' . implode(' | ', $plg) . ' [/quote]';
        } else {
            $plgtext = '[quote][b]Plugins:[/b] None [/quote]';
        }
        $mod = array();
        $mod['kunenalatest'] = $this->getExtensionVersion('mod_kunenalatest', 'Kunena Latest');
        $mod['kunenastats'] = $this->getExtensionVersion('mod_kunenastats', 'Kunena Stats');
        $mod['kunenalogin'] = $this->getExtensionVersion('mod_kunenalogin', 'Kunena Login');
        $mod['kunenasearch'] = $this->getExtensionVersion('mod_kunenasearch', 'Kunena Search');
        foreach ($mod as $id => $item) {
            if (empty($item)) {
                unset($mod[$id]);
            }
        }
        if (!empty($mod)) {
            $modtext = '[quote][b]Modules:[/b] ' . implode(' | ', $mod) . ' [/quote]';
        } else {
            $modtext = '[quote][b]Modules:[/b] None [/quote]';
//.........这里部分代码省略.........
开发者ID:russelljuwai,项目名称:Kunena-Forum,代码行数:101,代码来源:report.php

示例2: getSystemReport

	/**
	 * Method to generate all the reportconfiguration.
	 *
	 * @return	string
	 * @since	1.6
	 */
	public function getSystemReport () {
		$kunena_app = JFactory::getApplication ();
		$kunena_db = JFactory::getDBO ();

		$JVersion = new JVersion();
		$jversion = $JVersion->getLongVersion();

		if($kunena_app->getCfg('legacy' )) {
			$jconfig_legacy = '[color=#FF0000]Enabled[/color]';
		} else {
			$jconfig_legacy = 'Disabled';
		}
		if(!$kunena_app->getCfg('smtpuser' )) {
			$jconfig_smtpuser = 'Empty';
		} else {
			$jconfig_smtpuser = $kunena_app->getCfg('smtpuser' );
		}
		if($kunena_app->getCfg('ftp_enable' )) {
			$jconfig_ftp = 'Enabled';
		} else {
			$jconfig_ftp = 'Disabled';
		}
		if($kunena_app->getCfg('sef' )) {
			$jconfig_sef = 'Enabled';
		} else {
			$jconfig_sef = 'Disabled';
		}
		if($kunena_app->getCfg('sef_rewrite' )) {
			$jconfig_sef_rewrite = 'Enabled';
		} else {
			$jconfig_sef_rewrite = 'Disabled';
		}

		if (file_exists(JPATH_ROOT.'/.htaccess')) {
			$htaccess = 'Exists';
		} else {
			$htaccess = 'Missing';
		}

		if(ini_get('register_globals')) {
			$register_globals = '[u]register_globals:[/u] [color=#FF0000]On[/color]';
		} else {
			$register_globals = '[u]register_globals:[/u] Off';
		}
		if(ini_get('safe_mode')) {
			$safe_mode = '[u]safe_mode:[/u] [color=#FF0000]On[/color]';
		} else {
			$safe_mode = '[u]safe_mode:[/u] Off';
		}
		if(extension_loaded('mbstring')) {
			$mbstring = '[u]mbstring:[/u] Enabled';
		} else {
			$mbstring = '[u]mbstring:[/u] [color=#FF0000]Not installed[/color]';
		}
		if(extension_loaded('gd')) {
			$gd_info = gd_info ();
			$gd_support = '[u]GD:[/u] '.$gd_info['GD Version'] ;
		} else {
			$gd_support = '[u]GD:[/u] [color=#FF0000]Not installed[/color]';
		}
		$maxExecTime = ini_get('max_execution_time');
		$maxExecMem = ini_get('memory_limit');
		$fileuploads = ini_get('upload_max_filesize');
		$kunenaVersionInfo = KunenaVersion::getVersionHTML ();

		// Get Kunena default template
		$ktemplate = KunenaFactory::getTemplate();
		$ktempaltedetails = $ktemplate->getTemplateDetails();

		//get all the config settings for Kunena
		$kconfig = $this->_getKunenaConfiguration();

		$jtemplatedetails = $this->_getJoomlaTemplate($JVersion);

		$joomlamenudetails = $this->_getJoomlaMenuDetails($JVersion);

		$collation = $this->_getTablesCollation();

		$kconfigsettings = $this->_getKunenaConfiguration();

		// Check if Mootools plugins and others kunena plugins are enabled, and get the version of this modules
		jimport( 'joomla.plugin.helper' );

		if ( JPluginHelper::isEnabled('system', 'mtupgrade') ) 	$mtupgrade = '[u]System - Mootools Upgrade:[/u] Enabled';
		else $mtupgrade = '[u]System - Mootools Upgrade:[/u] Disabled';

		if ( JPluginHelper::isEnabled('system', 'mootools12') ) $plg_mt = '[u]System - Mootools12:[/u] Enabled';
		else $plg_mt = '[u]System - Mootools12:[/u] Disabled';

		$plg['jfirephp'] = $this->_checkThirdPartyVersion('jfirephp', 'jfirephp', 'JFirePHP', 'plugins/system', 'system', 0, 0, 1);
		$plg['ksearch'] = $this->_checkThirdPartyVersion('kunenasearch', 'kunenasearch', 'Kunena Search', 'plugins/search', 'search', 0, 0, 1);
		$plg['kdiscuss'] = $this->_checkThirdPartyVersion('kunenadiscuss', 'kunenadiscuss', 'Kunena Discuss', 'plugins/content', 'content', 0, 0, 1);
		$plg['jxfinderkunena'] = $this->_checkThirdPartyVersion('plg_jxfinder_kunena', 'plg_jxfinder_kunena', 'Finder Kunena Posts', 'plugins/finder', 'finder', 0, 0, 1);
		$plg['kjomsocialmenu'] = $this->_checkThirdPartyVersion('kunenamenu', 'kunenamenu', 'My Kunena Forum Menu', 'plugins/community', 'community', 0, 0, 1);
//.........这里部分代码省略.........
开发者ID:rich20,项目名称:Kunena,代码行数:101,代码来源:report.php


注:本文中的KunenaVersion::getVersionHTML方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。