<commit_before><?php
/**
 * @author oba.ou
 */
$this->title = 'Hello , '.yii::$app->user->identity->username;
?>
<div class="box box-danger">
    <div class="box-header with-border"><h3 class="box-title">当前服务器部分信息如下：</h3><h1></h1></div>
    <div class="box-body">
        <table class="table table-bordered table-hover">
            <tr>
                <td width="200">服务器操作系统</td>
                <td><?php $os = explode(" ", php_uname()); echo $os[0];?>&nbsp;内核版本：<?php if('/'==DIRECTORY_SEPARATOR){echo $os[2];}else{echo $os[1];} ?></td>
            </tr>
            <tr>
                <td>服务器软件</td>
                <td><?= $_SERVER['SERVER_SOFTWARE'];?></td>
            </tr>
            <tr>
                <td width="200">PHP版本（php_version）</td>
                <td><?=PHP_VERSION?></td>
            </tr>
            <tr>
                <td width="200">PHP已编译模块检测</td>
                <td>
                    <?php
                    $able=get_loaded_extensions();
                    foreach ($able as $key=>$value) {
                        if ($key!=0 && $key%13==0) {
                            echo '<br />';
                        }
                        echo "<span class=\"badge bg-green\">$value&nbsp;&nbsp;</span>";
                    }
                    ?>
                </td>
            </tr>
            <tr>
                <td width="200">被禁用的函数（disable_functions）</td>
                <td>
                    <?php
                    $disFuns=get_cfg_var("disable_functions");
                    if($disFuns) {
                        $disFunsArray =  explode(',',$disFuns);
                        foreach ($disFunsArray as $key=>$value)
                        {
                            if ($key!=0 && $key%5==0) {
                                echo '<br />';
                            }
                            echo "<span class=\"badge bg-yellow\">$value&nbsp;&nbsp;</span>";
                        }
                    }
                    ?>
                </td>
            </tr>
            <tr>
                <td width="200">脚本占用最大内存（memory_limit）</td>
                <td><?php echo get_cfg_var("memory_limit");?></td>
            </tr>
            <tr>
                <td>POST方法提交最大限制（post_max_size）</td>
                <td><?php echo get_cfg_var("post_max_size");?></td>
            </tr>
            <tr>
                <td>上传文件最大限制（upload_max_filesize）</td>
                <td><?php echo get_cfg_var("upload_max_filesize");?></td>
            </tr>
            <tr>
                <td>Mysql版本</td>
                <td><?= yii::$app->db->createCommand("SELECT VERSION()")->queryScalar()?></td>
            </tr>
            <tr>
                <td>追踪代码</td>
                <td>
                    <pre>
                        <?php
$u =$_SERVER['HTTP_HOST'];
$s =STAT_TRACKER_URL;
$str = <<<CODE
<script type="text/javascript">
    var _paq = _paq || [];
    <?php
    // 在注册成功界面，加类似下面判断。
    if (isset($username)) {
         echo sprintf("_paq.push(['setUserId', '%s']);", $username);  // 关键代码
         echo sprintf("_paq.push(['setCustomVariable',1,'regTime','%d','visit']);",time());
    }
    ?>
    _paq.push(['trackPageView']);
    _paq.push(['enableLinkTracking']);
    (function() {
        var u="//ad.wo2365.com/";
        _paq.push(['setTrackerUrl', '//ad.wo2365.com/piwik.php']);
        _paq.push(['setSiteId', 1]);
        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
        g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);<commit_msg>fixbug<commit_after><?php
/**
 * @author oba.ou
 */
$this->title = 'Hello , '.yii::$app->user->identity->username;
?>
<div class="box box-danger">
    <div class="box-header with-border"><h3 class="box-title">当前服务器部分信息如下：</h3><h1></h1></div>
    <div class="box-body">
        <table class="table table-bordered table-hover">
            <tr>
                <td width="200">服务器操作系统</td>
                <td><?php $os = explode(" ", php_uname()); echo $os[0];?>&nbsp;内核版本：<?php if('/'==DIRECTORY_SEPARATOR){echo $os[2];}else{echo $os[1];} ?></td>
            </tr>
            <tr>
                <td>服务器软件</td>
                <td><?= $_SERVER['SERVER_SOFTWARE'];?></td>
            </tr>
            <tr>
                <td width="200">PHP版本（php_version）</td>
                <td><?=PHP_VERSION?></td>
            </tr>
            <tr>
                <td width="200">PHP已编译模块检测</td>
                <td>
                    <?php
                    $able=get_loaded_extensions();
                    foreach ($able as $key=>$value) {
                        if ($key!=0 && $key%13==0) {
                            echo '<br />';
                        }
                        echo "<span class=\"badge bg-green\">$value&nbsp;&nbsp;</span>";
                    }
                    ?>
                </td>
            </tr>
            <tr>
                <td width="200">被禁用的函数（disable_functions）</td>
                <td>
                    <?php
                    $disFuns=get_cfg_var("disable_functions");
                    if($disFuns) {
                        $disFunsArray =  explode(',',$disFuns);
                        foreach ($disFunsArray as $key=>$value)
                        {
                            if ($key!=0 && $key%5==0) {
                                echo '<br />';
                            }
                            echo "<span class=\"badge bg-yellow\">$value&nbsp;&nbsp;</span>";
                        }
                    }
                    ?>
                </td>
            </tr>
            <tr>
                <td width="200">脚本占用最大内存（memory_limit）</td>
                <td><?php echo get_cfg_var("memory_limit");?></td>
            </tr>
            <tr>
                <td>POST方法提交最大限制（post_max_size）</td>
                <td><?php echo get_cfg_var("post_max_size");?></td>
            </tr>
            <tr>
                <td>上传文件最大限制（upload_max_filesize）</td>
                <td><?php echo get_cfg_var("upload_max_filesize");?></td>
            </tr>
            <tr>
                <td>Mysql版本</td>
                <td><?= yii::$app->db->createCommand("SELECT VERSION()")->queryScalar()?></td>
            </tr>
            <tr>
                <td>追踪代码</td>
                <td>
                    <pre>
                        <?php
$u =$_SERVER['HTTP_HOST'];
$s =STAT_TRACKER_URL;
$p1 = "<?php";
$p2 = "?>";

$str = <<<CODE

<script type="text/javascript">
    var _paq = _paq || [];
    $p1
    // 在注册成功界面，加类似下面判断。
    if (isset(\$username)) {
         echo sprintf("_paq.push(['setUserId', '%s']);", \$username);  // 关键代码
         echo sprintf("_paq.push(['setCustomVariable',1,'regTime','%d','visit']);",time());
    }
    $p2
    _paq.push(['trackPageView']);
    _paq.push(['enableLinkTracking']);
    (function() {
        var u="//ad.wo2365.com/";
        _paq.push(['setTrackerUrl', '//ad.wo2365.com/piwik.php']);
        _paq.push(['setSiteId', 1]);
        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
        g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
{'fraction_non_alphanumeric': 0.18773157678056812, 'fraction_numerical': 0.011527377521613832, 'mean_word_length': 1.3670022734654108, 'pattern_counts': {'":': 0, '<': 185, '<?xml version=': 0, '>': 195, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3187455', 'n_tokens_mistral': 2452, 'n_tokens_neox': 2412, 'n_words': 319}