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


PHP getID3::version方法代码示例

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


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

示例1: array

 /**
  * Method to get the system information
  *
  * @return  array system information values
  *
  * @since   1.6
  */
 public function &getInfo()
 {
     if (is_null($this->info)) {
         $this->info = array();
         $version = new JVersion();
         $platform = new JPlatform();
         $db = JFactory::getDbo();
         if (isset($_SERVER['SERVER_SOFTWARE'])) {
             $sf = $_SERVER['SERVER_SOFTWARE'];
         } else {
             $sf = getenv('SERVER_SOFTWARE');
         }
         //Get PlayJoom Version
         require_once JPATH_BASE . '/components/com_playjoomupdate/helpers/pjversion.php';
         if (!defined('PJVERSION')) {
             $jversion = new PJVersion();
             $this->info['pj_version'] = $jversion->getLongVersion();
         }
         //Get getID3 Version
         require_once JPATH_BASE . '/components/com_playjoom/helpers/id3/getid3.php';
         $getID3 = new getID3();
         $this->info['getID3_version'] = $getID3->version();
         $this->info['php'] = php_uname();
         $this->info['dbversion'] = $db->getVersion();
         $this->info['dbcollation'] = $db->getCollation();
         $this->info['phpversion'] = phpversion();
         $this->info['server'] = $sf;
         $this->info['sapi_name'] = php_sapi_name();
         $this->info['version'] = $version->getLongVersion();
         $this->info['platform'] = $platform->getLongVersion();
         $this->info['useragent'] = $_SERVER['HTTP_USER_AGENT'];
     }
     return $this->info;
 }
开发者ID:TFToto,项目名称:playjoom-builds,代码行数:41,代码来源:sysinfo.php

示例2: about

function about()
{
    global $cfg;
    authenticate('access_always');
    // formattedNavigator
    /* $nav			= array();
    	$nav['name'][]	= 'About O!MPD'; */
    $cfg['menu'] = 'about';
    require_once 'include/header.inc.php';
    ?>
<table cellspacing="0" cellpadding="0" class="border">
<tr class="header header_bigger">
	<td class="space"></td>
	<td colspan="3" style="white-space: normal;">
	O!MPD&nbsp;<?php 
    echo html(NJB_VERSION);
    ?>
,&nbsp;Copyright&nbsp;&copy;&nbsp;2015&nbsp;Artur&nbsp;Sier&#380;ant<br>
	
	</td>
	<td class="space"></td>
</tr>
<tr class="line"><td colspan="5"></td></tr>
<tr class="odd space"><td colspan="5"></td></tr>
<tr class="odd">
	<td></td>
	<td colspan="3">
	<i class="fa fa-globe"></i>&nbsp;&nbsp;<a href="http://www.ompd.pl">http://www.ompd.pl</a><br>
	<i class="fa fa-envelope-o"></i>&nbsp;&nbsp;<a href="mailto:info@ompd.pl">info@ompd.pl</a><br><br>
	This program comes with <a href="about.php?action=license#nowarranty">ABSOLUTELY NO WARRANTY</a>.<br>
	This is free software, and you are welcome to redistribute it<br>
	under certain <a href="about.php?action=license#conditions">conditions</a>.
	<br><br>
	O!MPD is fork of netjukebox&nbsp;Copyright&nbsp;&copy;&nbsp;2001-2012&nbsp;Willem&nbsp;Bartels <a href="http://www.netjukebox.nl/">http://www.netjukebox.nl</a>
	</td>
	<td></td>
</tr>
<tr class="odd space"><td colspan="5"></td></tr>
<?php 
    if (file_exists(NJB_HOME_DIR . 'skin/' . $cfg['skin'] . '/about.txt') && ($skin_message = @file_get_contents(NJB_HOME_DIR . 'skin/' . $cfg['skin'] . '/about.txt'))) {
        ?>
<tr class="line"><td colspan="5"></td></tr>
<tr class="header header_bigger">
	<td></td>
	<td colspan="3">Current skin:</td>
	<td></td>
</tr>
<tr class="line"><td colspan="5"></td></tr>
<tr class="odd space"><td colspan="5"></td></tr>
<tr class="odd">
	<td></td>
	<td colspan="3" valign="top"><?php 
        echo bbcode($skin_message);
        ?>
</td>
	<td></td>
</tr>
<tr class="odd space"><td colspan="5"></td></tr>
<?php 
    }
    if ($cfg['access_admin']) {
        $ttl = get('forceVersionCheck') == '1' ? 0 : 3600;
        ?>
<tr class="line"><td colspan="5"></td></tr>
<tr class="header header_bigger">
	<td></td>
	<td colspan="3">Version check:</td>
	<td></td>
</tr>
<tr class="line"><td colspan="5"></td></tr>
<tr class="<?php 
        echo versionCheck($ttl) ? 'odd_ok' : 'odd_error';
        ?>
">
	<td></td>
	<td>Current version:</td>
	<td></td>
	<td style="color: <?php 
        echo versionCheck($ttl) ? 'Green' : 'Red';
        ?>
"><?php 
        echo html(NJB_VERSION);
        ?>
</td>
	<td></td>
</tr>
<tr class="even">
	<td></td>
	<td>Latest version:</td>
	<td></td>
	<td><a href="about.php?forceVersionCheck=1" onMouseOver="return overlib('Re-Check version');" onMouseOut="return nd();"><?php 
        echo html($cfg['latest_version']);
        ?>
</a></td>
	<td></td>
</tr>
<?php 
    }
    $i = 0;
    ?>
//.........这里部分代码省略.........
开发者ID:jdeblese,项目名称:ompd-mod,代码行数:101,代码来源:about.php


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