aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-02-17 18:51:57 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-02-17 18:51:57 +0000
commit265e0708d6eea9de98b36035fff1287a01221a00 (patch)
treecce922669be232c8a200dd196e7fea475c3705dd /h-source/Application/Controllers
parent378301c02a58382cdcf796e512360ace3e52baf2 (diff)
admin users can now delete and block wiki pages
Diffstat (limited to 'h-source/Application/Controllers')
-rw-r--r--h-source/Application/Controllers/WikiController.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/h-source/Application/Controllers/WikiController.php b/h-source/Application/Controllers/WikiController.php
index b282d24..8e26454 100644
--- a/h-source/Application/Controllers/WikiController.php
+++ b/h-source/Application/Controllers/WikiController.php
@@ -487,6 +487,7 @@ class WikiController extends BaseController
public function pages($lang = 'en')
{
+ $data['topString'] = 'list of pages';
$data['title'] = gtext('list of pages').' - '.Website::$generalName;
$this->setArgKeys(array('page:forceNat'=>1));
@@ -511,6 +512,35 @@ class WikiController extends BaseController
$this->right();
}
+ public function deleted($lang = 'en')
+ {
+ $this->s['registered']->check('admin');
+
+ $data['topString'] = 'list of deleted pages';
+ $data['title'] = gtext('list of deleted pages').' - '.Website::$generalName;
+
+ $this->setArgKeys(array('page:forceNat'=>1));
+
+ $this->shift(1);
+
+ $this->helper('Pages','wiki/deleted/'.$this->lang,'page');
+
+ $this->m['WikiModel']->clear()->select()->where(array('-deleted'=>'yes'))->orderBy('id_wiki desc');
+
+ $recordNumber = $this->m['WikiModel']->rowNumber();
+ $page = $this->viewArgs['page'];
+
+ $this->m['WikiModel']->limit = $this->h['Pages']->getLimit($page,$recordNumber,30);
+
+ $data['table'] = $this->m['WikiModel']->send();
+
+ $data['pageList'] = $this->h['Pages']->render($page-7,15);
+
+ $this->append($data);
+ $this->load('pages');
+ $this->right();
+ }
+
//print all the modifications to the wiki
public function modifications($lang = 'en')
{