Example #1
0
            // strip leading slash
            $networkPath = $f->path;
            foreach ($networkPathTranslations as $src => $dst) {
                $networkPath = str_replace($src, $dst, $networkPath);
            }
            $networkPath = str_replace("/", "\\", $networkPath);
            $age = time() - $f->mtime;
            $age = flexFormatTime($age, false, false, false);
            $href = '/explorer.php?param=' . urlencode($networkPath . "\\" . $f->fname);
            $title = 'Diese Datei im Projekt-Ordner anzeigen - dazu klicken und "ausführen"!';
            $title = utf8entities(utf8_encode($title));
            $timeStatus = "+ " . $age;
            $icon = '<img src="/img/icon-' . strtolower($f->extension) . '.gif" width="16" height="16" alt="" align="absbottom">';
            $filename = utf8entities(utf8_encode($f->fname));
            $filepath = utf8entities(utf8_encode($subPath));
            $lines[] = $lineTemplate->autoFill();
        }
        $networkPath = $project->path;
        foreach ($networkPathTranslations as $src => $dst) {
            $networkPath = str_replace($src, $dst, $networkPath);
        }
        $networkPath = str_replace("/", "\\", $networkPath);
        $explorerHref = '/explorer.php?param=' . urlencode($networkPath);
        $title = 'Projekt-Ordner anzeigen - dazu klicken und "ausführen"!';
        $title = utf8entities(utf8_encode($title));
        $projectName = utf8entities($project->name);
        $projectId = $project->uid;
        $fileCntMsg = "(" . count($projectFiles[$uid]) . " Dateien in den letzten " . $recentDays . " Tagen)";
        $output[] = $sectionTemplate->autoFill();
    }
}