Changeset 551
- Timestamp:
- Jun 18, 2013, 9:07:36 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 2 edited
- 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 } -
trunk/includes/Version.php
r550 r551 1 1 <?php 2 2 3 $Revision = 55 0; // Subversion revision3 $Revision = 551; // Subversion revision 4 4 $DatabaseRevision = 543; // Database structure revision 5 5 $ReleaseTime = '2013-06-18'; -
trunk/includes/global.php
r550 r551 20 20 include_once(dirname(__FILE__).'/../Modules/User/User.php'); 21 21 include_once(dirname(__FILE__).'/../Modules/Dictionary/Dictionary.php'); 22 include_once(dirname(__FILE__).'/../Modules/Import/Import.php'); 22 23 include_once(dirname(__FILE__).'/../Modules/FrontPage/FrontPage.php'); 23 24 … … 71 72 $System->ModuleManager->RegisterModule(new ModuleDictionary($System)); 72 73 $System->ModuleManager->RegisterModule(new ModuleTranslation($System)); 74 $System->ModuleManager->RegisterModule(new ModuleImport($System)); 73 75 $System->ModuleManager->StartAll(); 74 76 }
Note:
See TracChangeset
for help on using the changeset viewer.