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


PHP POD::version方法代码示例

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


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

示例1: __tcSqlLogDump


//.........这里部分代码省略.........
            $trclass .= ' debugSystem';
            $count_label = '';
            $backtrace = '';
        }
        $elapsed_total_db += $log['elapsed'];
        $elapsed_total = $log['endtime'];
        $progress_bar = $log['percent'] / 2;
        //Max 50px;
        if (!$commentBlosk) {
            $log['sql'] = htmlspecialchars($log['sql']);
            $log['percent'] = "<div style='background:#f00;line-height:10px;width:{$progress_bar}px'>&nbsp;</div>";
            print <<<TBODY
\t\t<tr class="debugSQLLine{$trclass}">
\t\t\t<th>{$count_label}</th>
\t\t\t<td class="code"><code>{$log['sql']}</code></td>
\t\t\t<td class="elapsed">{$log['elapsed']}</td>
\t\t\t<td class="elapsedSum">{$log['endtime']}</td>
\t\t\t<td class="elapsedSum">{$log['percent']}</td>
\t\t\t<td class="rows">{$log['rows']}</td>
\t\t\t<td class="error">{$error}</td>
\t\t\t<td class="backtrace"><pre>{$backtrace}</pre></td>
\t\t</tr>
TBODY;
        } else {
            $log['sql'] = str_replace('-->', '-- >', $log['sql']);
            print <<<TBODY

===============================================================================================
{$count_label}:{$log['sql']}
Elapsed:{$log['elapsed']} ms/End time:{$log['endtime']}/Percent:{$log['percent']}/Rows:{$log['rows']} rows
{$error}
{$backtrace}
TBODY;
        }
        if ($log['cached'] < 2) {
            $count++;
        }
    }
    $count--;
    $real_query_count = $count - $cached_count;
    if (!$commentBlosk) {
        print '</tbody>';
        print <<<TFOOT
<tfoot>
\t<tr>
\t\t<td colspan='8'>
\t\t{$count} ({$real_query_count}+{$cached_count} cache) Queries <br />
\t\t{$elapsed_total_db} ms elapsed in db query, overall {$elapsed_total} ms elapsed
\t\t</td>
\t</tr>
</tfoot>
TFOOT;
        print '</table>';
    }
    global $service, $URLInfo, $suri;
    print '<div class="debugTable">' . CRLF;
    print '<h4>Current Database Management System :</h4>' . CRLF . '<p>' . POD::dbms() . ' ' . POD::version() . '</p>' . CRLF;
    print '<h4>SSL support : </h4>' . CRLF;
    if (isset($service['useSSL']) && $service['useSSL'] == true) {
        print '<p>Enabled</p>' . CRLF;
    } else {
        print '<p>Disabled</p>' . CRLF;
    }
    print '<h4>Cache system :</h4>' . CRLF;
    if (isset($service['pagecache']) && $service['pagecache'] == true) {
        print '<p>Page cache Enabled</p>' . CRLF;
    } else {
        print '<p>Page cache Disabled</p>' . CRLF;
    }
    if (isset($service['skincache']) && $service['skincache'] == true) {
        print '<p>Skin cache Enabled</p>' . CRLF;
    } else {
        print '<p>Skin cache Disabled</p>' . CRLF;
    }
    if (isset($service['memcached']) && $service['memcached'] == true) {
        print '<p>Memcached module Enabled</p>' . CRLF;
    } else {
        print '<p>Memcached module Disabled</p>' . CRLF;
    }
    if (!empty($service['debug_session_dump'])) {
        print '<h4>Session Information</h4>' . CRLF;
        print '<pre>session_id = ' . session_id() . CRLF;
        print '$_SESSION = ';
        print_r($_SESSION);
        print '$_COOKIE = ';
        print_r($_COOKIE);
        print '</pre>';
    }
    if (!empty($service['debug_rewrite_module'])) {
        print '<h4>Path parse result</h4>' . CRLF;
        print '<pre>' . CRLF;
        print_r($URLInfo);
        print_r($suri);
        print '</pre>';
    }
    print '</div>' . CRLF;
    if ($commentBlosk == true) {
        echo '-->';
    }
}
开发者ID:Avantians,项目名称:Textcube,代码行数:101,代码来源:Debug.php

示例2: checkStep


//.........这里部分代码省略.........
    <h3><?php 
                    echo _t('환경');
                    ?>
</h3>
    <ul>
      <li><?php 
                    echo _t('하드웨어');
                    ?>
: <?php 
                    echo @exec('uname -mp');
                    ?>
</li>
      <li><?php 
                    echo _t('운영체제');
                    ?>
: <?php 
                    echo @exec('uname -sir');
                    ?>
</li>
      <li><?php 
                    echo _t('웹서버');
                    ?>
: <?php 
                    echo $_SERVER['SERVER_SOFTWARE'];
                    ?>
 <?php 
                    echo isset($_SERVER['SERVER_SIGNATURE']) ? $_SERVER['SERVER_SIGNATURE'] : '(no signature)';
                    ?>
</li>
      <li><?php 
                    echo _t('PHP 버전');
                    ?>
: <?php 
                    echo phpversion();
                    ?>
</li>
      <li><?php 
                    echo _t('데이터베이스 종류');
                    ?>
: <?php 
                    echo POD::dbms();
                    ?>
</li>
      <li><?php 
                    echo _f('%1 버전', POD::dbms());
                    ?>
: <?php 
                    echo POD::version();
                    ?>
</li>
    </ul>
    <h3>PHP</h3>
    <ul>
<?php 
                    $functions = "\naddslashes\narray_flip\narray_key_exists\narray_pop\narray_push\narray_shift\narray_slice\nbase64_encode\nceil\ncheckdate\nclosedir\ncopy\ncount\ndechex\ndir\nexplode\nfclose\nfeof\nfgets\nfile_exists\nfile_get_contents\nfilesize\nfopen\nfputs\nfread\nfsockopen\nfunction_exists\nfwrite\nget_magic_quotes_gpc\ngetimagesize\ngmdate\ngmmktime\ngmstrftime\nheader\nhtml_entity_decode\nhtmlspecialchars\nimplode\nini_set\nintval\nis_dir\nis_file\nis_null\nis_numeric\nis_writable\nksort\nltrim\nmax\nmd5\nmicrotime\nmin\nmkdir\nmktime\nmove_uploaded_file\nnl2br\nnumber_format\nob_end_clean\nob_get_contents\nob_start\nopendir\nord\nparse_url\npreg_match\npreg_replace\nrand\nrawurlencode\nreaddir\nrmdir\nrtrim\nsession_cache_expire\nsession_destroy\nsession_id\nsession_name\nsession_set_cookie_params\nsession_set_save_handler\nsession_start\nsetcookie\nsizeof\nsprintf\nstr_replace\nstrftime\nstripslashes\nstrlen\nstrncasecmp\nstrncmp\nstrpos\nstrrev\nstrtolower\nstrval\nsubstr\nsubstr_count\nsubstr_replace\ntime\ntrim\nunlink\nurlencode\nxml_get_error_code\nxml_parse\nxml_parser_create\nxml_parser_free\nxml_parser_set_option\nxml_set_character_data_handler\nxml_set_default_handler\nxml_set_element_handler\nxml_set_object\n";
                    $required = array();
                    foreach (explode("\n", str_replace("\r", '', trim($functions))) as $function) {
                        if (!function_exists($function)) {
                            array_push($required, $function);
                        }
                    }
                    if (version_compare(PHP_VERSION, '5.4.0') === -1 && (!isset($service['forceinstall']) || $service['forceinstall'] == false)) {
                        $error = 4;
                        ?>
                <span style="color:red"><?php 
                        echo _f('PHP 버전이 낮습니다. 설치를 위해서는 최소한 %1 이상의 버전이 필요합니다.', '5.4.0');
开发者ID:hoksi,项目名称:Textcube,代码行数:67,代码来源:setup.php

示例3: requirePrivilege

require ROOT . '/library/preprocessor.php';
require ROOT . '/interface/common/control/header.php';
requirePrivilege('group.creators');
function getSymbolByQuantity($bytes)
{
    $symbols = array('B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB');
    $exp = floor(log($bytes) / log(1024));
    return sprintf('%.2f ' . $symbols[$exp], $bytes / pow(1024, floor($exp)));
}
$context = Model_Context::getInstance();
/* Current time */
$serverTime = strftime("Server Time: %Y-%m-%d %H:%M:%S %z (%Z)", time());
/* Database version */
$dbVersion = '';
//if( $service['dbms'] == 'mysql' ) {
$dbVersion = POD::version();
$dbVersion = POD::dbms() . ": " . $dbVersion;
$dbStat = preg_replace("/\\s{2,}/", "<br />", POD::stat());
//}
/* Webserver information */
$webServer = "Unknown";
if (function_exists('apache_get_version')) {
    $webServer = apache_get_version();
}
/* OS version */
$osVersion = "Unknown";
if (function_exists('php_uname')) {
    $osVersion = php_uname();
}
/* Disk space */
$totalSpace = getSymbolByQuantity(disk_total_space(dirname(__FILE__)));
开发者ID:Avantians,项目名称:Textcube,代码行数:31,代码来源:index.php


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