Changeset 536 for trunk/includes
- Timestamp:
- Apr 23, 2013, 10:42:18 PM (12 years ago)
- Location:
- trunk/includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/Page.php
r535 r536 36 36 } else 37 37 { 38 $Output .= '<span class="MenuItem2"><form action="'.$System->Link('/?action=login').'" method="post"> Jméno: <input type="text" name="LoginUser" size="8 " /> Heslo: <td><input type="password" name="LoginPass" size="8" /> <input type="submit" value="Přihlásit" /></form> <a href="'.$System->Link('/registrace.php').'">Registrace</a></span>'; 38 $Output .= '<span class="MenuItem2"><form action="'.$System->Link('/?action=login').'" method="post"> '. 39 'Jméno: <input type="text" name="LoginUser" size="8 " /> '. 40 'Heslo: <td><input type="password" name="LoginPass" size="8" /> '. 41 '<input type="submit" value="Přihlásit" /></form> '. 42 '<a href="'.$System->Link('/registrace.php').'">Registrace</a></span>'; 39 43 } 40 44 $Output .= '</div>'; -
trunk/includes/Version.php
r535 r536 1 1 <?php 2 2 3 $Revision = 53 5; // Subversion revision4 $DatabaseRevision = 524; 5 $ReleaseTime = '2013-0 2-24';3 $Revision = 536; // Subversion revision 4 $DatabaseRevision = 524; // Database structure revision 5 $ReleaseTime = '2013-04-24'; 6 6 7 7 ?> -
trunk/includes/global.php
r531 r536 704 704 } 705 705 706 function HandleLoginForm() 707 { 708 global $User, $Message, $MessageType; 709 710 if(array_key_exists('action', $_GET)) 711 { 712 if($_GET['action'] == 'login') 713 { 714 if(array_key_exists('LoginUser', $_POST) and array_key_exists('LoginPass', $_POST)) 715 { 716 $User->Login($_POST['LoginUser'], $_POST['LoginPass']); 717 if($User->Role == LICENCE_ANONYMOUS) 718 { 719 $Message = 'Jméno nebo heslo bylo zadáno špatně.'; 720 $MessageType = MESSAGE_CRITICAL; 721 } else 722 { 723 $Message = 'Přihlášení proběhlo úspěšně. Vítej <strong>'.$User->Name.'</strong>!'; 724 $MessageType = MESSAGE_INFORMATION; 725 } 726 } else 727 { 728 $Message = 'Nebylo zadáno jméno a heslo.'; 729 $MessageType = MESSAGE_CRITICAL; 730 } 731 } else 732 if($_GET['action'] == 'logout') 733 { 734 if($User->Role != LICENCE_ANONYMOUS) 735 { 736 WriteLog('Odhlášení', LOG_TYPE_USER); 737 $User->Logout(); 738 $Message = 'Byl jsi odhlášen.'; 739 $MessageType = MESSAGE_INFORMATION; 740 } 741 } 742 } 743 } 706 744 707 745 ?>
Note:
See TracChangeset
for help on using the changeset viewer.