Changeset 816 for trunk/Modules/ClientVersion
- Timestamp:
- Feb 22, 2015, 11:20:50 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/Modules/ClientVersion/ClientVersion.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/ClientVersion/ClientVersion.php
r800 r816 16 16 function Start() 17 17 { 18 $this->System->RegisterPage('client-version', 'PageClientVersion');19 $this->System->RegisterMenuItem(array(20 'Title' => T('Game version'),21 'Hint' => T('List of the game client versions'),22 'Link' => $this->System->Link('/client-version/'),23 'Permission' => LICENCE_ANONYMOUS,24 'Icon' => '',18 $this->System->RegisterPage('client-version', 'PageClientVersion'); 19 $this->System->RegisterMenuItem(array( 20 'Title' => T('Game version'), 21 'Hint' => T('List of the game client versions'), 22 'Link' => $this->System->Link('/client-version/'), 23 'Permission' => LICENCE_ANONYMOUS, 24 'Icon' => '', 25 25 ), 10); 26 26 } … … 29 29 class PageClientVersion extends Page 30 30 { 31 function Show()32 {33 if(array_key_exists('action', $_GET))34 {35 if($_GET['action'] == 'item') $Output = $this->ShowItem();36 else $Output = $this->ShowList();37 } else $Output = $this->ShowList();38 return($Output);39 }31 function Show() 32 { 33 if(array_key_exists('action', $_GET)) 34 { 35 if($_GET['action'] == 'item') $Output = $this->ShowItem(); 36 else $Output = $this->ShowList(); 37 } else $Output = $this->ShowList(); 38 return($Output); 39 } 40 40 41 function ShowItem()42 {41 function ShowItem() 42 { 43 43 if(array_key_exists('id', $_GET)) 44 44 { … … 64 64 } else $Output = ShowMessage(T('Item not found'), MESSAGE_CRITICAL); 65 65 } else $Output = ShowMessage(T('Item not found'), MESSAGE_CRITICAL); 66 return($Output);67 }66 return($Output); 67 } 68 68 69 function ShowList()70 {71 $this->Title = T('Game version');69 function ShowList() 70 { 71 $this->Title = T('Game version'); 72 72 $DbResult = $this->System->Database->query('SELECT COUNT(*) FROM `ClientVersion`'); 73 73 $DbRow = $DbResult->fetch_row();
Note:
See TracChangeset
for help on using the changeset viewer.
