Пример #1
0
function getThisUrlNoFileName()
{
    $url = '';
    $url = getThisUrl();
    if (right($url, 1) != '/') {
        if (inStrRev($url, '/') > 0) {
            $url = mid($url, 1, inStrRev($url, '/'));
        }
    }
    $getThisUrlNoFileName = $url;
    return @$getThisUrlNoFileName;
}
Пример #2
0
<tbody id="list-files"></tbody>
</table>

<div class="page-mask"><img class="waiting" src="res/processing.gif" /></div>
<div class="upload-zone"></div>

<script language="JavaScript" src="res/jquery-1.10.2.min.js"></script><!-- http://api.jquery.com/ -->
<script language="JavaScript" src="res/fineuploader.js"></script><!-- http://docs.fineuploader.com/ -->
<script language="JavaScript" src="res/webfolder.js"></script>
<?php 
} else {
    ?>
<fieldset>
	<legend>请输入登录信息:</legend>
	<form method="post" action="<?php 
    echo getThisUrl(true);
    ?>
">
		帐号:<input type="text" name="login_user" />
		<br>
		密码:<input type="password" name="login_pass" />
		<br>
		   <input type="submit" />
	</form>
</fieldset>
<?php 
}
?>
</body>
</html>
Пример #3
0
function updateTodayWebStat()
{
    $content = '';
    $url = '';
    $dateStr = '';
    $dateMsg = '';
    if (@$_REQUEST['date'] != '') {
        $dateStr = now() + cint(@$_REQUEST['date']);
        $dateMsg = '昨天';
    } else {
        $dateStr = now();
        $dateMsg = '今天';
    }
    handlePower('更新' . $dateMsg . '统计');
    //管理权限处理
    //call echo("datestr",datestr)
    connexecute('delete from ' . $GLOBALS['db_PREFIX'] . 'websitestat where dateclass=\'' . Format_Time($dateStr, 2) . '\'');
    $content = getFText($GLOBALS['adminDir'] . '/data/stat/' . Format_Time($dateStr, 2) . '.txt');
    whiteWebStat($content);
    $url = getUrlAddToParam(getThisUrl(), '?act=dispalyManageHandle', 'replace');
    Rw(getMsg1('更新' . $dateMsg . '统计成功,正在进入' . @$_REQUEST['lableTitle'] . '列表...', $url));
    writeSystemLog('', '更新网站统计');
    //系统日志
}
Пример #4
0
function runScanWebUrl()
{
    $nSetTime = '';
    $setCharSet = '';
    $httpUrl = '';
    $url = '';
    $selectWeb = '';
    $nThis = '';
    $nCount = '';
    $startTime = '';
    $setCharSet = 'gb2312';
    //gb2312
    //http://www.dfz9.com/
    //http://www.maiside.net/
    //http://sharembweb.com/
    //http://www.ufoer.com/
    $httpUrl = 'http://sharembweb.com/';
    //selectWeb="ufoer"
    if ($selectWeb == 'ufoer') {
        $httpUrl = 'http://www.ufoer.com/';
        $setCharSet = 'utf-8';
    }
    $nThis = @$_REQUEST['nThis'];
    if ($nThis == '') {
        $nThis = 0;
    } else {
        $nThis = cint($nThis);
    }
    $GLOBALS['conn='] = OpenConn();
    $rsObj = $GLOBALS['conn']->query('select * from ' . $GLOBALS['db_PREFIX'] . 'weburlscan');
    $nCount = @$_REQUEST['nCount'];
    if ($nCount == '') {
        $nCount = @mysql_num_rows($rsObj);
    }
    if (@mysql_num_rows($rsObj) == 0) {
        connexecute('insert into ' . $GLOBALS['db_PREFIX'] . 'weburlscan(httpurl,title,isthrough,charset) values(\'' . $httpUrl . '\',\'home\',true,\'' . $setCharSet . '\')');
    }
    //循环
    $rsxObj = $GLOBALS['conn']->query('select * from ' . $GLOBALS['db_PREFIX'] . 'weburlscan where isThrough=true');
    if (@mysql_num_rows($rsxObj) != 0) {
        $rsx = mysql_fetch_array($rsxObj);
        $nThis = $nThis + 1;
        aspEcho($nThis, $rsx['httpurl']);
        doEvents();
        $nSetTime = scanUrl($rsx['httpurl'], $rsx['title'], $rsx['charset']);
        //这样写是给转PHP时方便
        connexecute('update ' . $GLOBALS['db_PREFIX'] . 'weburlscan  set isthrough=false  where id=' . $rsx['id'] . '');
        $startTime = @$_REQUEST['startTime'];
        if ($startTime == '') {
            $startTime = now();
        }
        VBRunTimer($startTime);
        $url = getUrlAddToParam(getThisUrl(), '?nThis=' . $nThis . '&nCount=' . $nCount . '&startTime=' . $startTime . '&N=' . getRnd(11), 'replace');
        Rw(jsTiming($url, $nSetTime));
        die;
    }
    aspEcho('操作完成', '<a href=\'?act=dispalyManageHandle&actionType=WebUrlScan&addsql=order by id desc&lableTitle=网址扫描\'>OK,共(' . $nThis . ')条</a>');
    //输入报告
    $rsObj = $GLOBALS['conn']->query('select * from ' . $GLOBALS['db_PREFIX'] . 'weburlscan where webstate=404');
    while ($rs = $GLOBALS['conn']->fetch_array($rsObj)) {
        aspEcho('<a href=\'' . $rs['httpurl'] . '\' target=\'_blank\'>' . $rs['httpurl'] . '</a>', '<a href=\'' . $rs['tohttpurl'] . '\' target=\'_blank\'>' . $rs['tohttpurl'] . '</a>');
    }
}