4 * Display paste contents
6 require_once 'www-header.php';
8 $repo = new Repository();
9 $repo->loadFromRequest();
13 foreach ($files as $file) {
15 $tplFile['filename'] = basename($file);
16 $tplFile['type'] = get_type_from_file($file);
18 $tplFile['content'] = file_get_contents($file);
19 $tplFile['raw'] = '/' . $id . '/raw/' . $tplFile['filename'];
20 $tplFiles[] = $tplFile;
29 'description' => file_get_contents($repoDir . '/.git/description'),
32 'edit' => '/' . $id . '/edit'