summaryrefslogtreecommitdiff
path: root/kusabax.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-11-23 21:44:22 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-11-23 21:44:22 +1100
commitcce8b3955d5df03a6adca5e5e11d2bef039cc917 (patch)
treee263b7c3ba858d0a6c3509b492190b937642298e /kusabax.php
parentd7ff4947b5f8d8e429e4f8fccae50a7c06b646bc (diff)
compatibility with >= v0.9.4
Diffstat (limited to 'kusabax.php')
-rwxr-xr-xkusabax.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/kusabax.php b/kusabax.php
index b2f6322f..eed12e0a 100755
--- a/kusabax.php
+++ b/kusabax.php
@@ -74,7 +74,7 @@
// Trick Tinyboard into opening the KusabaX databse instead
$__temp = $config['db'];
$config['db'] = $kusabaxc['db'];
- sql_open();
+
// Get databse link
$kusabax = $pdo;
// Clear
@@ -83,7 +83,6 @@
// Open Tinyboard database
$config['db'] = $__temp;
unset($__temp);
- sql_open();
$k_query = $kusabax->query('SELECT * FROM `' . $kusabaxc['db']['prefix'] . 'boards`');
$boards = listBoards();
@@ -133,7 +132,7 @@
$log[] = 'Replicating post <strong>' . $post['id'] . '</strong> on /' . $board . '/';
- $query = prepare(sprintf("INSERT INTO `posts_%s` VALUES (:id, :thread, :subject, :email, :name, :trip, :capcode, :body, :time, :bump, :thumb, :thumbwidth, :thumbheight, :file, :width, :height, :filesize, :filename, :filehash, :password, :ip, :sticky, :locked, :embed)", $board));
+ $query = prepare(sprintf("INSERT INTO `posts_%s` VALUES (:id, :thread, :subject, :email, :name, :trip, :capcode, :body, :time, :bump, :thumb, :thumbwidth, :thumbheight, :file, :width, :height, :filesize, :filename, :filehash, :password, :ip, :sticky, :locked, 0, :embed)", $board));
// Post ID
$query->bindValue(':id', $post['id'], PDO::PARAM_INT);
@@ -272,4 +271,5 @@
$page['body'] .= '</p></div>';
echo Element('page.html', $page);
-?> \ No newline at end of file
+
+