Changeset 549 for trunk/includes/global.php
- Timestamp:
- Jun 18, 2013, 8:30:40 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 {
Note:
See TracChangeset
for help on using the changeset viewer.