query_fetchDB(" SELECT id FROM ot_posts WHERE post_title = '" . addslashes($_POST['settings_homepage']) . "' LIMIT 1 "); $_POST['settings_homepage_on'] = $Page['0']['id']; } else { $_POST['settings_homepage_on'] = 0; } // Update fields in DB $DB->query_execDB(" UPDATE ot_config t1, ot_config t2, ot_config t3, ot_config t4, ot_config t5 SET t1.config_value = '" . addslashes($_POST['settings_visible']) . "', t2.config_value = '" . addslashes($_POST['settings_upload_folder']) . "', t3.config_value = '" . addslashes($_POST['settings_upload_month']) . "', t4.config_value = '" . addslashes($_POST['settings_homepage_on']) . "', t5. config_value = '" . addslashes($_POST['settings_posts_page']) . "' WHERE t1.config_name = 'visible' && t2.config_name = 'upload_folder' && t3.config_name = 'upload_month' && t4.config_name = 'homepage' && t5.config_name = 'posts_page' "); header("Location: settings-other.php?update=true"); } else { header("Location: err-403.php"); // Error } } $PageTitle = " » Instellingen » Overige"; // Set page title include("admin-header.php"); // Load header ?>
Bestanden opslaan in: | Standaard map is 'content/uploads'. |
---|---|