mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 13:07:02 +02:00
major rewrite of the web interface
This commit is contained in:
@ -30,11 +30,11 @@ class ControllerMessageView extends Controller {
|
||||
|
||||
|
||||
if(!verify_piler_id($this->data['id'])) {
|
||||
AUDIT(ACTION_UNKNOWN, '', '', $this->data['id'], 'unknown piler id: ' . $this->data['id']);
|
||||
AUDIT(ACTION_UNKNOWN, '', '', $this->data['id'], 'unknown id: ' . $this->data['id']);
|
||||
die("invalid id: " . $this->data['id']);
|
||||
}
|
||||
|
||||
if(!$this->model_search_search->check_your_permission_by_piler_id($this->data['id'])) {
|
||||
if(!$this->model_search_search->check_your_permission_by_id($this->data['id'])) {
|
||||
AUDIT(ACTION_UNAUTHORIZED_VIEW_MESSAGE, '', '', $this->data['id'], '');
|
||||
die("no permission for " . $this->data['id']);
|
||||
}
|
||||
@ -57,9 +57,11 @@ class ControllerMessageView extends Controller {
|
||||
exit;
|
||||
}
|
||||
|
||||
$this->data['piler_id'] = $this->model_search_message->get_piler_id_by_id($this->data['id']);
|
||||
|
||||
$this->data['message'] = $this->model_search_message->extract_message($this->data['id']);
|
||||
$this->data['message'] = $this->model_search_message->extract_message($this->data['piler_id']);
|
||||
$this->data['message']['tag'] = $this->model_search_message->get_message_tag($this->data['id'], $_SESSION['uid']);
|
||||
$this->data['message']['note'] = $this->model_search_message->get_message_note($this->data['id'], $_SESSION['uid']);
|
||||
|
||||
$this->render();
|
||||
}
|
||||
|
Reference in New Issue
Block a user