* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team *
- * For more information visit: http://www.mxchange.org *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
// Add description as navigation point
addYouAreHereLink('admin', __FILE__);
-if (!isExtensionActive('yoomedia')) {
- displayMessage(generateExtensionInactiveNotInstalledMessage('yoomedia'));
- return;
-} // END - if
-
// Was the form submitted?
-if (isFormSent()) {
+if (isFormSent('save_config')) {
// Test Yoo!Media config
if (YOOMEDIA_TEST_CONFIG(postRequestArray())) {
// Save settings
}
} else {
// Erotic selection
- for ($idx = '0'; $idx <= 2; $idx++) {
+ for ($idx = 0; $idx <= 2; $idx++) {
$content['yoomedia_erotic_allowed_' . $idx] = '';
} // END - for
// Set default selection
- foreach (array('yoomedia_erotic_allowed') as $entry) {
- $content[$entry . '_' . strtolower(getConfig($entry))] = ' selected="selected"';
- } // END - foreach
+ $content = merge_array($content, getSelectedConfig(array('yoomedia_erotic_allowed')));
// Load template
- loadTemplate('admin_config_yoomedia', false, $content);
+ loadTemplate('admin_config_yoomedia', FALSE, $content);
}
// [EOF]