corrade-http-templates – Diff between revs 1 and 51

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 1 Rev 51
Line 15... Line 15...
15 require_once('functions.php'); 15 require_once('functions.php');
Line 16... Line 16...
16   16  
17 ########################################################################### 17 ###########################################################################
18 ## INTERNALS ## 18 ## INTERNALS ##
-   19 ###########################################################################
-   20  
-   21 # CRSF.
-   22 session_start();
-   23 if (empty($_POST['token']) || !hash_equals($_SESSION['token'], $_POST['token'])) {
-   24 http_response_code(403);
-   25 die('Forbidden.');
-   26 }
19 ########################################################################### 27  
20 # Bail if "firstname" or "lastname" are blank. 28 # Bail if "firstname" or "lastname" are blank.
21 if(!isset($_POST['firstname']) || 29 if(!isset($_POST['firstname']) ||
Line 22... Line 30...
22 !isset($_POST['lastname'])) return; 30 !isset($_POST['lastname'])) return;