Changeset 551 for trunk/Modules/Import
- Timestamp:
- Jun 18, 2013, 9:07:36 PM (11 years ago)
- Location:
- trunk/Modules/Import
- Files:
-
- 2 deleted
- 2 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Import/Import.php
r550 r551 1 1 <?php 2 3 include_once(dirname(__FILE__).'/../../includes/dbc.php'); 4 include_once(dirname(__FILE__).'/Manage.php'); 5 6 7 class ModuleImport extends AppModule 8 { 9 function __construct($System) 10 { 11 parent::__construct($System); 12 $this->Name = 'Import'; 13 $this->Version = '1.0'; 14 $this->Creator = 'Chronos'; 15 $this->License = 'GNU/GPL'; 16 $this->Description = 'Support for import of data.'; 17 $this->Dependencies = array(); 18 } 19 20 function Start() 21 { 22 $this->System->RegisterPage('import', 'PageImport'); 23 } 24 } 2 25 3 26 class Import … … 388 411 } 389 412 } 390 391 ?> -
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.