Changeset 549 for trunk/includes
- Timestamp:
 - Jun 18, 2013, 8:30:40 PM (12 years ago)
 - Location:
 - trunk/includes
 - Files:
 - 
      
- 4 edited
 
- 
          
  Database.php (modified) (1 diff)
 - 
          
  Version.php (modified) (1 diff)
 - 
          
  global.php (modified) (2 diffs)
 - 
          
  system.php (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/includes/Database.php
r542 r549 46 46 $this->ShowSQLQuery = false; 47 47 $this->LogSQLQuery = false; 48 $this->LogFile = 'Query.log';48 $this->LogFile = dirname(__FILE__).'/../Query.log'; 49 49 } 50 50  - 
      
trunk/includes/Version.php
r547 r549 1 1 <?php 2 2 3 $Revision = 54 7; // Subversion revision3 $Revision = 549; // Subversion revision 4 4 $DatabaseRevision = 543; // Database structure revision 5 5 $ReleaseTime = '2013-06-18';  - 
      
trunk/includes/global.php
r548 r549 16 16 include_once(dirname(__FILE__).'/../Modules/AoWoW/AoWoW.php'); 17 17 include_once(dirname(__FILE__).'/../Modules/Referrer/Referrer.php'); 18 include_once(dirname(__FILE__).'/../Modules/FrontPage/FrontPage.php');19 18 include_once(dirname(__FILE__).'/../Modules/Team/Team.php'); 20 19 include_once(dirname(__FILE__).'/../Modules/User/User.php'); 21 20 include_once(dirname(__FILE__).'/../Modules/Dictionary/Dictionary.php'); 21 include_once(dirname(__FILE__).'/../Modules/FrontPage/FrontPage.php'); 22 22 23 23 GlobalInit(); … … 645 645 } 646 646 647 function HandleLoginForm()648 {649 global $User, $Message, $MessageType;650 651 if(array_key_exists('action', $_GET))652 {653 if($_GET['action'] == 'login')654 {655 if(array_key_exists('LoginUser', $_POST) and array_key_exists('LoginPass', $_POST))656 {657 $User->Login($_POST['LoginUser'], $_POST['LoginPass']);658 if($User->Role == LICENCE_ANONYMOUS)659 {660 $Message = 'Jméno nebo heslo bylo zadáno špatně.';661 $MessageType = MESSAGE_CRITICAL;662 } else663 {664 $Message = 'Přihlášení proběhlo úspěšně. Vítej <strong>'.$User->Name.'</strong>!';665 $MessageType = MESSAGE_INFORMATION;666 }667 } else668 {669 $Message = 'Nebylo zadáno jméno a heslo.';670 $MessageType = MESSAGE_CRITICAL;671 }672 } else673 if($_GET['action'] == 'logout')674 {675 if($User->Role != LICENCE_ANONYMOUS)676 {677 WriteLog('Odhlášení', LOG_TYPE_USER);678 $User->Logout();679 $Message = 'Byl jsi odhlášen.';680 $MessageType = MESSAGE_INFORMATION;681 }682 }683 }684 }685 686 647 function ProcessURL() 687 648 {  - 
      
trunk/includes/system.php
r548 r549 146 146 } 147 147 148 function RegisterMenuItem($MenuItem )148 function RegisterMenuItem($MenuItem, $Pos = NULL) 149 149 { 150 $this->Menu[] = $MenuItem; 150 if(is_null($Pos)) $this->Menu[] = $MenuItem; 151 else { 152 array_splice($this->Menu, $Pos, 0, array($MenuItem)); 153 } 151 154 } 152 155  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  