本文整理汇总了PHP中AlphaUserPointsHelper::getAupVersion方法的典型用法代码示例。如果您正苦于以下问题:PHP AlphaUserPointsHelper::getAupVersion方法的具体用法?PHP AlphaUserPointsHelper::getAupVersion怎么用?PHP AlphaUserPointsHelper::getAupVersion使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AlphaUserPointsHelper
的用法示例。
在下文中一共展示了AlphaUserPointsHelper::getAupVersion方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getList
public static function getList($params)
{
$db = JFactory::getDBO();
$user = JFactory::getUser();
$count = intval($params->get('count', 5));
$usrname = trim($params->get('usrname', 'name'));
$allmembers = intval($params->get('showallmembers', 1));
$nullDate = $db->getNullDate();
$date = JFactory::getDate();
$now = $date->toSql();
$currentuser = $user->id;
$selecteduser = "";
if ($currentuser && !$allmembers) {
$selecteduser = "AND u.id='" . $currentuser . "' ";
}
$displayactivity = '';
require_once JPATH_ROOT . DS . 'components' . DS . 'com_alphauserpoints' . DS . 'helper.php';
$version = AlphaUserPointsHelper::getAupVersion();
if (version_compare($version, '2.0.2', '>=')) {
$displayactivity = " AND r.displayactivity='1'";
}
$query = "SELECT a.insert_date, a.referreid, aup.userid, a.points AS last_points, a.datareference, u." . $usrname . " AS usrname, r.rule_name, r.plugin_function, r.category" . " FROM #__alpha_userpoints_details AS a, #__alpha_userpoints AS aup, #__users AS u, #__alpha_userpoints_rules AS r" . " WHERE aup.referreid=a.referreid " . $selecteduser . "AND aup.userid=u.id AND aup.published='1' AND a.approved='1' AND (a.expire_date>='" . $now . "' OR a.expire_date='0000-00-00 00:00:00') AND r.id=a.rule" . $displayactivity . " ORDER BY a.insert_date DESC";
$db->setQuery($query, 0, $count);
$rows = $db->loadObjectList();
return $rows;
}
示例2: _getAUPversion
protected function _getAUPversion()
{
if (class_exists('AlphaUserPointsHelper') && method_exists('AlphaUserPointsHelper', 'getAupVersion')) {
return AlphaUserPointsHelper::getAupVersion();
}
return '1.5';
}
示例3: _getAUPversion
private function _getAUPversion()
{
if (method_exists('AlphaUserPointsHelper', 'getAupVersion')) {
return AlphaUserPointsHelper::getAupVersion();
}
return '1.5';
}
示例4: _getAUPversion
protected function _getAUPversion()
{
return AlphaUserPointsHelper::getAupVersion();
}
示例5: generateSystemReport
//.........这里部分代码省略.........
// Get Joomla! menu details
$joomlamenudetails = getJoomlaMenuDetails();
// Check if Mootools plugins and others kunena plugins are enabled, and get the version of this modules
jimport('joomla.plugin.helper');
jimport('joomla.application.module.helper');
jimport('joomla.application.component.helper');
$plg = array();
if (JPluginHelper::isEnabled('system', 'mtupgrade')) {
$plg['mtupgrade'] = '[u]System - Mootools Upgrade:[/u] Enabled';
} else {
$plg['mtupgrade'] = '[u]System - Mootools Upgrade:[/u] Disabled';
}
if (JPluginHelper::isEnabled('system', 'mootools12')) {
$plg['mt12'] = '[u]System - Mootools12:[/u] Enabled';
} else {
$plg['mt12'] = '[u]System - Mootools12:[/u] Disabled';
}
$plg['jfirephp'] = checkThirdPartyVersion('jfirephp', 'jfirephp', 'JFirePHP', 'plugins/system', 'system', 0, 0, 1);
$plg['ksearch'] = checkThirdPartyVersion('kunenasearch', 'kunenasearch', 'Kunena Search', 'plugins/search', 'search', 0, 0, 1);
$plg['kdiscuss'] = checkThirdPartyVersion('kunenadiscuss', 'kunenadiscuss', 'Kunena Discuss', 'plugins/content', 'content', 0, 0, 1);
$plg['jxfinderkunena'] = checkThirdPartyVersion('plg_jxfinder_kunena', 'plg_jxfinder_kunena', 'Finder Kunena Posts', 'plugins/finder', 'finder', 0, 0, 1);
$plg['kjomsocialmenu'] = checkThirdPartyVersion('kunenamenu', 'kunenamenu', 'My Kunena Forum Menu', 'plugins/community', 'community', 0, 0, 1);
$plg['kjomsocialmykunena'] = checkThirdPartyVersion('mykunena', 'mykunena', 'My Kunena Forum Posts', 'plugins/community', 'community', 0, 0, 1);
$plg['kjomsocialgroups'] = checkThirdPartyVersion('kunenagroups', 'kunenagroups', 'Kunena Groups', 'plugins/community', 'community', 0, 0, 1);
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'] = checkThirdPartyVersion('mod_kunenalatest', 'mod_kunenalatest', 'Kunena Latest', 'modules/mod_kunenalatest', null, 0, 1, 0);
$mod['kunenastats'] = checkThirdPartyVersion('mod_kunenastats', 'mod_kunenastats', 'Kunena Stats', 'modules/mod_kunenastats', null, 0, 1, 0);
$mod['kunenalogin'] = checkThirdPartyVersion('mod_kunenalogin', 'mod_kunenalogin', 'Kunena Login', 'modules/mod_kunenalogin', null, 0, 1, 0);
$mod['kunenasearch'] = checkThirdPartyVersion('mod_kunenasearch', 'mod_kunenasearch', 'Kunena Search', 'modules/mod_kunenasearch', null, 0, 1, 0);
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]';
}
$thirdparty = array();
if (JFile::exists(JPATH_SITE . '/components/com_alphauserpoints/helper.php')) {
require_once JPATH_SITE . '/components/com_alphauserpoints/helper.php';
$aup = new AlphaUserPointsHelper();
$thirdparty['aup'] = '[u]AlphaUserPoints[/u] ' . $aup->getAupVersion();
} else {
$thirdparty['aup'] = checkThirdPartyVersion('alphauserpoints', array('manifest', 'alphauserpoints'), 'AlphaUserPoints', 'components/com_alphauserpoints', null, 1, 0, 0);
}
$thirdparty['cb'] = checkThirdPartyVersion('comprofiler', array('comprofilej', 'comprofileg'), 'CommunityBuilder', 'components/com_comprofiler', null, 1, 0, 0);
$thirdparty['jomsocial'] = checkThirdPartyVersion('community', array('community'), 'Jomsocial', 'components/com_community', null, 1, 0, 0);
if (JFile::exists(JPATH_SITE . '/components/com_uddeim/uddeim.api.php')) {
require_once JPATH_SITE . '/components/com_uddeim/uddeim.api.php';
$uddeim = new uddeIMAPI();
$api_version = $uddeim->version();
if ($api_version >= '3') {
$uddeim_version = $uddeim->mainVersion();
$thirdparty['uddeim'] = '[u]UddeIm[/u] ' . $uddeim_version['version'];
} else {
$thirdparty['uddeim'] = checkThirdPartyVersion('uddeim', array('uddeim.j15', 'uddeim'), 'UddeIm', 'components/com_uddeim', null, 1, 0, 0);
}
} else {
$thirdparty['uddeim'] = checkThirdPartyVersion('uddeim', array('uddeim.j15', 'uddeim'), 'UddeIm', 'components/com_uddeim', null, 1, 0, 0);
}
foreach ($thirdparty as $id => $item) {
if (empty($item)) {
unset($thirdparty[$id]);
}
}
if (!empty($thirdparty)) {
$thirdpartytext = '[quote][b]Third-party components:[/b] ' . implode(' | ', $thirdparty) . ' [/quote]';
} else {
$thirdpartytext = '[quote][b]Third-party components:[/b] None [/quote]';
}
$sef = array();
$sef['sh404sef'] = checkThirdPartyVersion('sh404sef', 'sh404sef', 'sh404sef', 'components/com_sh404sef', null, 1, 0, 0);
$sef['joomsef'] = checkThirdPartyVersion('joomsef', 'sef', 'ARTIO JoomSEF', 'components/com_sef', null, 1, 0, 0);
$sef['acesef'] = checkThirdPartyVersion('acesef', 'acesef', 'AceSEF', 'components/com_acesef', null, 1, 0, 0);
foreach ($sef as $id => $item) {
if (empty($item)) {
unset($sef[$id]);
}
}
if (!empty($sef)) {
$seftext = '[quote][b]Third-party SEF components:[/b] ' . implode(' | ', $sef) . ' [/quote]';
} else {
$seftext = '[quote][b]Third-party SEF components:[/b] None [/quote]';
}
$report = '[confidential][b]Joomla! version:[/b] ' . $jversion . ' [b]Platform:[/b] ' . $_SERVER['SERVER_SOFTWARE'] . ' (' . $_SERVER['SERVER_NAME'] . ') [b]PHP version:[/b] ' . phpversion() . ' | ' . $safe_mode . ' | ' . $register_globals . ' | ' . $mbstring . ' | ' . $gd_support . ' | [b]MySQL version:[/b] ' . $kunena_db->getVersion() . '[/confidential][quote][b]Database collation check:[/b] ' . $collation . '
[/quote][quote][b]Legacy mode:[/b] ' . $jconfig_legacy . ' | [b]Joomla! SEF:[/b] ' . $jconfig_sef . ' | [b]Joomla! SEF rewrite:[/b] ' . $jconfig_sef_rewrite . ' | [b]FTP layer:[/b] ' . $jconfig_ftp . ' |[confidential][b]Mailer:[/b] ' . $kunena_app->getCfg('mailer') . ' | [b]From name:[/b] ' . $kunena_app->getCfg('fromname') . ' | [b]SMTP Secure:[/b] ' . $kunena_app->getCfg('smtpsecure') . ' | [b]SMTP Port:[/b] ' . $kunena_app->getCfg('smtpport') . ' | [b]SMTP User:[/b] ' . $jconfig_smtpuser . ' | [b]SMTP Host:[/b] ' . $kunena_app->getCfg('smtphost') . ' [/confidential] [b]htaccess:[/b] ' . $htaccess . ' | [b]PHP environment:[/b] [u]Max execution time:[/u] ' . $maxExecTime . ' seconds | [u]Max execution memory:[/u] ' . $maxExecMem . ' | [u]Max file upload:[/u] ' . $fileuploads . ' [/quote][confidential][b]Kunena menu details[/b]:[spoiler] ' . $joomlamenudetails . '[/spoiler][/confidential][quote][b]Joomla default template details :[/b] ' . $templatedetails->name . ' | [u]author:[/u] ' . $templatedetails->author . ' | [u]version:[/u] ' . $templatedetails->version . ' | [u]creationdate:[/u] ' . $templatedetails->creationdate . ' [/quote][quote][b]Kunena default template details :[/b] ' . $ktempaltedetails->name . ' | [u]author:[/u] ' . $ktempaltedetails->author . ' | [u]version:[/u] ' . $ktempaltedetails->version . ' | [u]creationdate:[/u] ' . $ktempaltedetails->creationDate . ' [/quote][quote] [b]Kunena version detailled:[/b] [u]Installed version:[/u] ' . $kunenaVersionInfo->version . ' | [u]Build:[/u] ' . $kunenaVersionInfo->build . ' | [u]Version name:[/u] ' . $kunenaVersionInfo->name . ' | [u]Kunena detailled configuration:[/u] [spoiler] ' . $kconfigsettings . '[/spoiler][/quote]' . $thirdpartytext . ' ' . $seftext . ' ' . $plgtext . ' ' . $modtext;
return $report;
}
示例6: _getAUPversion
private function _getAUPversion(){
return AlphaUserPointsHelper::getAupVersion();
}