From 8c5e9fcc5ec89e02dedc970ac6528388845483f0 Mon Sep 17 00:00:00 2001 From: habarnam Date: Sun, 18 May 2008 12:12:21 +0300 Subject: [PATCH] * dumb commit --- _pages/index/index.tpl | 2 +- _pages/index/pages/main.tpl | 3 ++- _res/_libs/tdoposts.class.php | 10 +++++++++- adm/_pages/index/code.php | 6 +++--- adm/_pages/login/login.tpl | 2 +- 5 files changed, 16 insertions(+), 7 deletions(-) diff --git a/_pages/index/index.tpl b/_pages/index/index.tpl index ecdd5f0..d66b3bd 100644 --- a/_pages/index/index.tpl +++ b/_pages/index/index.tpl @@ -1,4 +1,4 @@ -

{$title|ucwords|spacify}

+

{$title|ucwords|spacify}

{if $mainFile neq ''}{include file=$mainFile}{/if} {if $sidebar neq ''} diff --git a/_pages/index/pages/main.tpl b/_pages/index/pages/main.tpl index c520536..d94b2c3 100644 --- a/_pages/index/pages/main.tpl +++ b/_pages/index/pages/main.tpl @@ -17,8 +17,9 @@
{/foreach} diff --git a/_res/_libs/tdoposts.class.php b/_res/_libs/tdoposts.class.php index b7d2a5b..9988e58 100644 --- a/_res/_libs/tdoposts.class.php +++ b/_res/_libs/tdoposts.class.php @@ -137,7 +137,7 @@ class tdoPosts extends tdoAbstract{ public function getAllPosts ($userId = null) { $this->buildPosts ($userId); - return $this->getArray(); + return $this->getArray (); } public function getPost ($postId, $userId = null) { @@ -151,6 +151,14 @@ class tdoPosts extends tdoAbstract{ return /*/end/**/ ($this->getArray(1)); } + public function test () { + $this->buidPost (); + + $this->db->query ( $this->buildSql (1)); + + return $this->db->getObjects (); + } + /** * Hard coded FULLTEXT search on post_title and post_body * Probably it won't be very hard to abstract it: diff --git a/adm/_pages/index/code.php b/adm/_pages/index/code.php index 672cbce..1375ce3 100644 --- a/adm/_pages/index/code.php +++ b/adm/_pages/index/code.php @@ -248,9 +248,9 @@ class index extends tsAdminPage { $rows = $o->delete ($i); } else { // value - $v = tsPage::getRequest('v'); - $a = tsPage::getRequest('a') == 'Y' ? 'Y' : 'N'; - $n = tsPage::getRequest('n'); + $v = tsPage::getRequest ('v'); + $a = tsPage::getRequest ('a') == 'Y' ? 'Y' : 'N'; + $n = tsPage::getRequest ('n'); if (!empty($n)) { $o->option_name = $n; diff --git a/adm/_pages/login/login.tpl b/adm/_pages/login/login.tpl index 0089c03..89e9a05 100644 --- a/adm/_pages/login/login.tpl +++ b/adm/_pages/login/login.tpl @@ -10,7 +10,7 @@ {literal} {/literal} -- 2.11.4.GIT