Ejemplo n.º 1
0
?>
		</tr>
<?php 
function read_tree($dir)
{
    global $dateien;
    $fp = opendir($dir);
    while ($datei = readdir($fp)) {
        if (substr($datei, -12) == "ebaysnipelog") {
            $dateien[] = "{$datei}";
        }
    }
    closedir($fp);
}
if ($zutun == 6) {
    $snipelist = getWatchlist($db);
} else {
    $snipelist = $db->get_results($auktionenSQL);
}
if (!empty($snipelist)) {
    $zaehler = 0;
    foreach ($snipelist as $snipe) {
        $artnr = $snipe->artnr;
        if ($snipe->status >= 0) {
            statusPruefen($artnr, $db);
            $text = getLogData($artnr);
            if ($text != false) {
                $text = preg_split("/\n/", $text);
                //in Textarea nicht ben?tigt, nimmt auch \n
            } else {
                $text = "<span style=\"color:#FF0000;font-weight:bold;\">Fehler - keine Datei zum Datenbankeintrag gefunden!</span>";
Ejemplo n.º 2
0
}
?>
<h1>当前用户:<?php 
echo $username;
?>
 <a href="switch_user.php">切换</a></h1>
<h2>当前路径:<?php 
echo end($_SESSION['folder']);
?>
</h2><p>注意:本程序无法检测到全部可能导致出问题的情况。请在主页中查看全部补档记录的可用性。</p><table border="1"><tr><th>补档</th><th>工具</th><th>文件名</th><th>fs_id</th><th>状态</th><th>访问地址</th><th>分享地址</th></tr>
<?php 
if (count($_SESSION['folder']) != 1) {
    echo '<tr><td colspan="7"><a href="browse.php?goup=1">[返回上层文件夹]</a></tr>';
}
$filelist = getFileList(urlencode(end($_SESSION['folder'])));
$list = getWatchlist();
$table = '';
$fix = $mysql->prepare('update watchlist set name=? where fid=? and user_id=?');
foreach ($filelist as &$v) {
    if (isset($list['list'][$v['fid']])) {
        if ($list['list'][$v['fid']]['filename'] != $v['name']) {
            $fix->execute(array($v['name'], $v['fid'], $uid));
            $check_result = '<td><font color="orange">数据库中的文件名错误,已经被自动修正。</font></td>';
        } else {
            $check_result = '<td><font color="green">自动补档保护中</font></td>';
        }
        $_SESSION['file_can_add'][$v['fid']] = false;
        $check_result .= '<td><a href="' . $jumper . $list['list'][$v['fid']]['id'] . '" target="_blank">' . $jumper . $list['list'][$v['fid']]['id'] . '</a></td><td><a href="http://pan.baidu.com' . $list['list'][$v['fid']]['link'] . '">http://pan.baidu.com' . $list['list'][$v['fid']]['link'] . '</a></td>';
        unset($list['list'][$v['fid']], $list['list_filenames'][$v['fid']]);
    } else {
        if (count(array_filter($list['list_filenames'], function ($e) use($v) {