Revision 532
Added by doc almost 17 years ago
save.php | ||
---|---|---|
23 | 23 |
|
24 | 24 |
*/ |
25 | 25 |
|
26 |
// prevent this file from being accessed directly in the browser (would set all entries in DB settings table to '') |
|
27 |
if(!isset($_POST['default_language']) || $_POST['default_language'] == '') die("Cannot access this file directly"); |
|
28 |
|
|
26 | 29 |
// Find out if the user was view advanced options or not |
27 | 30 |
if($_POST['advanced'] == 'yes' ? $advanced = '?advanced=yes' : $advanced = ''); |
28 | 31 |
|
Also available in: Unified diff
this bugfix closes ticket 412 (direct call of admin/settings/save.php clears database)