當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。