Changeset 551 for trunk/Modules/Import/Manage.php
- Timestamp:
- Jun 18, 2013, 9:07:36 PM (11 years ago)
- Location:
- trunk/Modules/Import
- Files:
-
- 1 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Import/Manage.php
r550 r551 1 1 <?php 2 2 3 include_once('../includes/global.php'); 4 include_once('../includes/dbc.php'); 5 include_once('import.php'); 6 7 $Output = ''; 8 if(!$User->Licence(LICENCE_ADMIN)) 3 class PageImport extends Page 9 4 { 10 $Output .= ShowMessage('Nemáte oprávnění.', MESSAGE_CRITICAL);11 }12 5 13 6 function ShowInstructions() … … 100 93 } 101 94 102 if(array_key_exists('action', $_GET)) 103 { 104 if($_GET['action'] == 'instructions') $Output .= ShowInstructions(); 105 else if($_GET['action'] == 'importgroup') $Output .= ShowImportGroup(); 106 else if($_GET['action'] == 'update_translated') $Output .= UpdateTranslated(); 107 else $Output .= ShowMenu(); 108 } else $Output .= ShowMenu(); 95 function Show() 96 { 97 global $User; 109 98 110 ShowPage($Output); 111 112 ?> 99 $Output = ''; 100 if($User->Licence(LICENCE_ADMIN)) 101 { 102 if(array_key_exists('action', $_GET)) 103 { 104 if($_GET['action'] == 'instructions') $Output .= $this->ShowInstructions(); 105 else if($_GET['action'] == 'importgroup') $Output .= $this->ShowImportGroup(); 106 else if($_GET['action'] == 'update_translated') $Output .= $this->UpdateTranslated(); 107 else $Output .= $this->ShowMenu(); 108 } else $Output .= $this->ShowMenu(); 109 } else $Output .= ShowMessage('Nemáte oprávnění.', MESSAGE_CRITICAL); 110 return($Output); 111 } 112 }
Note:
See TracChangeset
for help on using the changeset viewer.