automated search support

This commit is contained in:
SJ
2014-01-23 21:39:47 +01:00
parent fd2026b70b
commit 8f59372cf4
14 changed files with 490 additions and 85 deletions

View File

@ -32,6 +32,12 @@ class ControllerMessageView extends Controller {
$this->data['search'] = $this->request->post['search'];
}
if(substr($this->data['id'], 0, 1) == 'a') {
$this->template = "message/auto.tpl";
$this->data['id'] = substr($this->data['id'], 1, 200);
}
if(!verify_piler_id($this->data['id'])) {
AUDIT(ACTION_UNKNOWN, '', '', $this->data['id'], 'unknown id: ' . $this->data['id']);
die("invalid id: " . $this->data['id']);