Ignore:
Timestamp:
Mar 31, 2014, 9:10:41 AM (11 years ago)
Author:
chronos
Message:
  • Fixed: Better registration form values validation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/FrontPage/FrontPage.php

    r796 r801  
    136136        if(isset($_GET['Action']))
    137137        {
    138                 if($_GET['Action'] == 'HideWelcome') $_COOKIE['HideWelcome'] = 1;
    139                 if($_GET['Action'] == 'UnHideWelcome') $_COOKIE['HideWelcome'] = 0;
     138                if($_GET['Action'] == 'HideWelcome')
     139      {
     140        $_COOKIE['HideWelcome'] = 1;
     141        setcookie('HideWelcome', $_COOKIE['HideWelcome'], time() + 3600 * 24 * 365);
     142      }
     143                if($_GET['Action'] == 'UnHideWelcome')
     144      {
     145                        $_COOKIE['HideWelcome'] = 0;
     146        setcookie('HideWelcome', $_COOKIE['HideWelcome'], time() + 3600 * 24 * 365);
     147                }
    140148        }
    141         setcookie('HideWelcome', $_COOKIE['HideWelcome'], time() + 3600 * 24 * 365);
    142149
    143150        if(isset($_COOKIE['HideWelcome']) and ($_COOKIE['HideWelcome'] == 1))
Note: See TracChangeset for help on using the changeset viewer.