equal
deleted
inserted
replaced
6 require_once(LIBRARY_PATH . "/utilsFunctions.php"); |
6 require_once(LIBRARY_PATH . "/utilsFunctions.php"); |
7 require_once(LIBRARY_PATH . "/renkanFunctions.php"); |
7 require_once(LIBRARY_PATH . "/renkanFunctions.php"); |
8 require_once(LIBRARY_PATH . "/dbFunctions.php"); |
8 require_once(LIBRARY_PATH . "/dbFunctions.php"); |
9 |
9 |
10 $self_url = selfURL(); |
10 $self_url = selfURL(); |
11 $index_url = selfBaseURL().'/index.php'; |
11 $index_url = selfBaseURL().'index.php'; |
12 |
12 |
13 if ($_SERVER['REQUEST_METHOD'] === 'PUT' || $_SERVER['REQUEST_METHOD'] === 'POST') { |
13 if ($_SERVER['REQUEST_METHOD'] === 'PUT' || $_SERVER['REQUEST_METHOD'] === 'POST') { |
14 |
14 |
15 //TODO implement CSRF with https://github.com/BKcore/NoCSRF for example |
15 //TODO implement CSRF with https://github.com/BKcore/NoCSRF for example |
16 $renkanId = isset($_POST['renkanId']) ? $_POST['renkanId'] : false; |
16 $renkanId = isset($_POST['renkanId']) ? $_POST['renkanId'] : false; |