Remove logout link. Disable debug
This commit is contained in:
parent
8cd4804652
commit
6dc37ea5a6
|
|
@ -41,7 +41,7 @@ error_reporting(E_ALL & ~E_STRICT & ~E_DEPRECATED);
|
|||
* In production mode, flash messages redirect after a time interval.
|
||||
* In development mode, you need to click the flash message to continue.
|
||||
*/
|
||||
Configure::write('debug', 1);
|
||||
Configure::write('debug', 0);
|
||||
|
||||
Configure::write('version', '1.0.1');
|
||||
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ class DocumentsController extends AppController {
|
|||
$this->Document->recursive = 0;
|
||||
//$this->set('documents', $this->paginate());
|
||||
|
||||
$query = "SELECT id,type,created,user_id,doc_page_count, pdf_filename,pdf_created_at, pdf_created_by_user_id FROM documents As Document ORDER BY id DESC;";
|
||||
$this->set('documents', $this->Document->query($query));
|
||||
$query = "SELECT id,type,created,user_id,doc_page_count, pdf_filename,pdf_created_at, pdf_created_by_user_id FROM documents As Document ORDER BY id DESC;";
|
||||
$this->set('documents', $this->Document->query($query));
|
||||
|
||||
$this->set('users', $this->Document->User->getUsersList());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,12 +46,9 @@ echo $scripts_for_layout;
|
|||
<div id="username">
|
||||
|
||||
<?php
|
||||
if (isset($currentuser) == FALSE) {
|
||||
echo $html->link('Login', '/users/login');
|
||||
} else {
|
||||
$logoutlink = $html->link('Logout', '/users/logout');
|
||||
echo $html->link($currentuser['User']['username'], '/users/view/' . $currentuser['User']['id']) . ' (' . $logoutlink . ')';
|
||||
}
|
||||
echo $html->link($currentuser['User']['username'], '/users/view/' . $currentuser['User']['id']);
|
||||
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue