|
Last change
on this file was 95, checked in by chronos, 11 years ago |
- Upraveno: Soubory různých logických částí systému odděleny do aplikačních modulů.
|
|
File size:
785 bytes
|
| Line | |
|---|
| 1 | <?php
|
|---|
| 2 |
|
|---|
| 3 | include_once(dirname(__FILE__).'/../../Base/View.php');
|
|---|
| 4 |
|
|---|
| 5 | class 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.