-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
41 lines (26 loc) · 853 Bytes
/
archive.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* Created by PhpStorm.
* User: Yosef
* Date: 01/04/2016
* Time: 00:35
*/
require_once('includes/config.inc.php');
require_once('includes/libraries/geshi.php');
require_once('includes/diff.php');
require_once('includes/paste.php');
// Create our pastebin object
$pastebin=new Pastebin($CONF);
/// Clean up older posts
$pastebin->doGarbageCollection();
// If we get this far, we're going to be displaying some HTML, so let's kick off here.
$page=array();
// Add list of recent posts.
$list=isset($_REQUEST["list"]) ? intval($_REQUEST["list"]) : 9999;
$page['recent']=$pastebin->getRecentPosts($list);
$page['title']=$CONF['sitetitle'];
// HTML page output.
include('templates/'.$CONF['template'].'/header.php');
include('templates/'.$CONF['template'].'/archive.php');
include('templates/'.$CONF['template'].'/footer.php');
?>