Added basic templating
Jeremy D

Jeremy D commited on 2012-01-23 19:34:58
Showing 5 changed files, with 13 additions and 3 deletions.

... ...
@@ -14,6 +14,7 @@ if (isset($_GET['sauce2']))
14 14
 	exit('</body></html>');
15 15
 }
16 16
 
17
+error_reporting(E_ALL);
17 18
 $_SERVER['REQUEST_URI'] = '/pastebin';
18 19
 require_once('../wp-ssi.php');
19 20
 $specialPage['noClear'] = true;
... ...
@@ -467,7 +468,7 @@ class pB
467 468
 
468 469
 		if (pBS::get('use_geshi') && !empty($paste['use_geshi']))
469 470
 		{
470
-			$type = !empty($_REQUEST['type']) ? $_REQUEST['type'] : (!empty($paste['language']) ? $Paste['language'] : 'php');
471
+			$type = !empty($paste['language']) ? $paste['language'] : 'php';
471 472
 
472 473
 			include_once(pBS::get('geshi_location')  . '/geshi.php');
473 474
 			
... ...
@@ -149,7 +149,7 @@ class pDB_smf extends pDB
149 149
 
150 150
 		// Options needed for our post.
151 151
 		$topicOptions = array(
152
-			'id'		=> (!empty($paste['id']) ? $topic['id'] : 0) ,
152
+			'id'		=> (!empty($paste['id']) ? $paste['id'] : 0) ,
153 153
 			'board'		=> pBS::get('smf_paste_board'),
154 154
 			'mark_as_read'	=> false,
155 155
 			);
... ...
@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+/*
4
+* Sets up the basic Theme handler for Pastebin
5
+*/
6
+class pTPL
7
+{
8
+
9
+}
0 10
\ No newline at end of file
... ...
@@ -11,7 +11,7 @@ class pUser_smf extends pUser
11 11
 	private $usr = null;
12 12
 
13 13
 	/*
14
-	* We don't need to do this since SMF is already started.
14
+	* We simply just create the object to the user_info handler.
15 15
 	*/
16 16
 	public function __construct()
17 17
 	{
18 18