source: trunk/www/Application/View/Database.php@ 93

Last change on this file since 93 was 93, checked in by chronos, 12 years ago
  • Fixed: System variable as parameter to constructors of descendents of Module class.
  • Removed: End PHP mark "?>" from all files.
File size: 785 bytes
Line 
1<?php
2
3include_once(dirname(__FILE__).'/../../Base/View.php');
4
5class DatabaseView extends View
6{
7 function Import()
8 {
9 $Output = '';
10 if($this->System->Modules['User']->User['Role'] >= USER_ROLE_USER)
11 {
12 $Server = new Server($this->System, $_GET['Id']);
13 if(($this->System->Modules['User']->User['Id'] == $Server->Server['User']) or ($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR))
14 {
15 $Server->ImportDatabase(true);
16 $Output .= $this->SystemMessage('Import čisté databáze', 'Úloha zařazena do fronty');
17 $Output .= $this->ShowTaskList();
18 } else $this->SystemMessage('Import databáze', 'Nemáte oprávnění');
19 } else $Output .= USER_BAD_ROLE;
20 return($Output);
21 }
22}
Note: See TracBrowser for help on using the repository browser.