Revision 643
Added by thorn almost 17 years ago
sections_save.php | ||
---|---|---|
32 | 32 |
exit(0); |
33 | 33 |
} |
34 | 34 |
|
35 |
require_once(WB_PATH."/include/jscalendar/jscalendar-functions.php"); |
|
36 |
|
|
35 | 37 |
// Get page id |
36 | 38 |
if(!isset($_GET['page_id']) OR !is_numeric($_GET['page_id'])) { |
37 | 39 |
header("Location: index.php"); |
... | ... | |
95 | 97 |
if(trim($_POST['start_date'.$section_id]) == '0' OR trim($_POST['start_date'.$section_id]) == '') { |
96 | 98 |
$publ_start = 0; |
97 | 99 |
} else { |
98 |
$publ_start = strtotime($_POST['start_date'.$section_id]);
|
|
100 |
$publ_start = jscalendar_to_timestamp($_POST['start_date'.$section_id]);
|
|
99 | 101 |
} |
100 | 102 |
if(trim($_POST['end_date'.$section_id]) == '0' OR trim($_POST['end_date'.$section_id]) == '') { |
101 | 103 |
$publ_end = 0; |
102 | 104 |
} else { |
103 |
$publ_end = strtotime($_POST['end_date'.$section_id], $publ_start);
|
|
105 |
$publ_end = jscalendar_to_timestamp($_POST['end_date'.$section_id], $publ_start);
|
|
104 | 106 |
} |
105 | 107 |
if($sql != '') |
106 | 108 |
$sql .= ","; |
Also available in: Unified diff
Had to fix some strtotime()-related issues in admin/pages/sections and module news to use with PHP4.