' .
'
';
@@ -75,14 +78,14 @@
$built .= ' No.' .
+ ' href="' . ROOT . $board['dir'] . DIR_RES . $this->thread . '.html' . '#' . $this->id . '">No.' .
// JavaScript cite
'id . ');"') . 'href="' . ($index?ROOT . DIR_RES . $this->thread . '.html' . '#q' . $this->id:'javascript:void(0);') . '">'.$this->id.'' .
'
';
// File info
if(!empty($this->file)) {
- $built .= '
File: ' . $this->file . ' (' .
+ $built .= 'File: ' . $this->file . ' (' .
// Filesize
format_bytes($this->filesize) . ', ' .
// File dimensions
@@ -95,7 +98,7 @@
// Filename
$built .= ', ' . $this->filename . ')
' .
// Thumbnail
- '
';
+ '
';
}
// Body
@@ -132,7 +135,9 @@
public function build($index=false) {
- $built = 'File: ' . $this->file . ' (' .
+ global $board;
+
+ $built = 'File: ' . $this->file . ' (' .
// Filesize
format_bytes($this->filesize) . ', ' .
// File dimensions
@@ -145,7 +150,7 @@
// Filename
$built .= ', ' . $this->filename . ')
' .
// Thumbnail
- '
';
+ '
';
$built .= '';
@@ -170,11 +175,11 @@
$built .= ' No.' .
+ ' href="' . ROOT . $board['dir'] . DIR_RES . $this->id . '.html' . '#' . $this->id . '">No.' .
// JavaScript cite
- 'id . ');"') . 'href="' . ($index?ROOT . DIR_RES . $this->id . '.html' . '#q' . $this->id:'javascript:void(0);') . '">'.$this->id.'' .
+ 'id . ');"') . 'href="' . ($index?ROOT . $board['dir'] . DIR_RES . $this->id . '.html' . '#q' . $this->id:'javascript:void(0);') . '">'.$this->id.'' .
// [Reply]
- ($index ? '[Reply]' : '') .
+ ($index ? '[Reply]' : '') .
'
';
// Body
From ab5429dfc4b39f4528a5636f7af90810d7e3f87b Mon Sep 17 00:00:00 2001
From: Savetheinternet
Date: Tue, 30 Nov 2010 20:00:48 +1100
Subject: [PATCH 016/218] Bug fix for page links
---
inc/functions.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inc/functions.php b/inc/functions.php
index aac390fc..a78065b0 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -135,7 +135,7 @@
$pages = Array();
for($x=0;$x<$count && $x $x+1, 'link' => $x==0 ? ROOT . $board['dir'] . FILE_INDEX : ROOT . sprintf(FILE_PAGE, $x+1));
+ $pages[] = Array('num' => $x+1, 'link' => $x==0 ? ROOT . $board['dir'] . FILE_INDEX : ROOT . $board['dir'] . sprintf(FILE_PAGE, $x+1));
}
mysql_free_result($res);
From 342d1d2f6ba6ca85e78f4bef006a3aeea3ddf4aa Mon Sep 17 00:00:00 2001
From: Savetheinternet
Date: Tue, 30 Nov 2010 20:05:20 +1100
Subject: [PATCH 017/218] Removed debug code I accidentally commited.
---
inc/config.php | 1 -
1 file changed, 1 deletion(-)
diff --git a/inc/config.php b/inc/config.php
index bb130bc4..bc0f726a 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -139,7 +139,6 @@
str_replace('%s', '\w{1,8}', preg_quote(BOARD_PATH, '/')) .
str_replace('%d', '\d+', preg_quote(FILE_PAGE, '/')) .
')$/', true);
- var_dump(URL_MATCH);
if(ROOT_FILE) {
chdir(ROOT_FILE);
From 0e8fb7c898cdec3f77bae2e54af9a4f382cb2120 Mon Sep 17 00:00:00 2001
From: Savetheinternet
Date: Tue, 30 Nov 2010 20:11:22 +1100
Subject: [PATCH 018/218] Added a hidden "board" input
---
templates/thread.html | 1 +
1 file changed, 1 insertion(+)
diff --git a/templates/thread.html b/templates/thread.html
index 2fb7a487..d78ca3f1 100644
--- a/templates/thread.html
+++ b/templates/thread.html
@@ -14,6 +14,7 @@