|
@@ -581,18 +581,18 @@ function tblMsgsLoadMoreRows(n) {
|
|
|
if ($idMsg <= 0) throw new HttpException("Wiadomość nie istnieje!", 404);
|
|
if ($idMsg <= 0) throw new HttpException("Wiadomość nie istnieje!", 404);
|
|
|
if (empty($usrLogin)) throw new HttpException("Błęny user login!", 404);
|
|
if (empty($usrLogin)) throw new HttpException("Błęny user login!", 404);
|
|
|
|
|
|
|
|
- SE_Layout::gora();
|
|
|
|
|
- SE_Layout::menu();
|
|
|
|
|
|
|
+ UI::gora();
|
|
|
|
|
+ UI::menu();
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
$msg = $this->_getMsg($idMsg, $usrLogin);
|
|
$msg = $this->_getMsg($idMsg, $usrLogin);
|
|
|
$this->_markAsRead($msg);
|
|
$this->_markAsRead($msg);
|
|
|
$this->viewMsg($msg);
|
|
$this->viewMsg($msg);
|
|
|
} catch (Exception $e) {
|
|
} catch (Exception $e) {
|
|
|
- SE_Layout::alert('danger', $e->getMessage() . ' #' . $e->getLine());
|
|
|
|
|
|
|
+ UI::alert('danger', $e->getMessage() . ' #' . $e->getLine());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- SE_Layout::dol();
|
|
|
|
|
|
|
+ UI::dol();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function viewAction() {
|
|
function viewAction() {
|
|
@@ -601,17 +601,17 @@ function tblMsgsLoadMoreRows(n) {
|
|
|
if ($idMsg <= 0) throw new HttpException("Wiadomość nie istnieje!", 404);
|
|
if ($idMsg <= 0) throw new HttpException("Wiadomość nie istnieje!", 404);
|
|
|
if (empty($usrLogin)) throw new HttpException("Błęny user login", 404);
|
|
if (empty($usrLogin)) throw new HttpException("Błęny user login", 404);
|
|
|
|
|
|
|
|
- SE_Layout::gora();
|
|
|
|
|
- SE_Layout::menu();
|
|
|
|
|
|
|
+ UI::gora();
|
|
|
|
|
+ UI::menu();
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
$msg = $this->_getMsg($idMsg, $usrLogin);
|
|
$msg = $this->_getMsg($idMsg, $usrLogin);
|
|
|
$this->viewMsg($msg);
|
|
$this->viewMsg($msg);
|
|
|
} catch (Exception $e) {
|
|
} catch (Exception $e) {
|
|
|
- SE_Layout::alert('danger', $e->getMessage() . ' #' . $e->getLine());
|
|
|
|
|
|
|
+ UI::alert('danger', $e->getMessage() . ' #' . $e->getLine());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- SE_Layout::dol();
|
|
|
|
|
|
|
+ UI::dol();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function _getMsg($idMsg, $usrLogin) {
|
|
function _getMsg($idMsg, $usrLogin) {
|
|
@@ -1100,16 +1100,16 @@ function tblMsgsLoadMoreRows(n) {
|
|
|
if ($idMsg <= 0) throw new HttpException("Wiadomość nie istnieje!", 404);
|
|
if ($idMsg <= 0) throw new HttpException("Wiadomość nie istnieje!", 404);
|
|
|
if (empty($usrLogin)) throw new HttpException("Błęny user login", 404);
|
|
if (empty($usrLogin)) throw new HttpException("Błęny user login", 404);
|
|
|
|
|
|
|
|
- SE_Layout::gora();
|
|
|
|
|
- SE_Layout::menu();
|
|
|
|
|
|
|
+ UI::gora();
|
|
|
|
|
+ UI::menu();
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
$msg = $this->_getMsg($idMsg, $usrLogin);
|
|
$msg = $this->_getMsg($idMsg, $usrLogin);
|
|
|
$msgsRoute = Router::getRoute('Msgs');
|
|
$msgsRoute = Router::getRoute('Msgs');
|
|
|
$msgsRoute->removeTableRecordMsg($idMsg);
|
|
$msgsRoute->removeTableRecordMsg($idMsg);
|
|
|
} catch (Exception $e) {
|
|
} catch (Exception $e) {
|
|
|
- SE_Layout::alert('danger', $e->getMessage() . ' #' . $e->getLine());
|
|
|
|
|
- SE_Layout::dol();
|
|
|
|
|
|
|
+ UI::alert('danger', $e->getMessage() . ' #' . $e->getLine());
|
|
|
|
|
+ UI::dol();
|
|
|
exit;
|
|
exit;
|
|
|
}
|
|
}
|
|
|
?>
|
|
?>
|
|
@@ -1119,7 +1119,7 @@ function tblMsgsLoadMoreRows(n) {
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<?php
|
|
<?php
|
|
|
- SE_Layout::dol();
|
|
|
|
|
|
|
+ UI::dol();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function removeMsgPostTask($args) {
|
|
function removeMsgPostTask($args) {
|