Exemplo n.º 1
0
        echo word("<p>You must set up a user template before enabling user registration.</p>");
        echo '<p><a href="' . urlize($urla) . '">' . word("Click here to do add a user template.") . '</a></p>';
        return;
    }
    if (isset($_POST['update_postsettings'])) {
        echo word("Settings updated") . "<br>";
    }
    $page_array = array();
    $page_array['action'] = "popup";
    $page_array['ptype'] = "usermanager";
    $page_array['subaction'] = "registration";
    $display->openSettingsTable(urlize($page_array));
    $display->settingsCheckbox(word("Allow Self-Registration") . ":", 'allow_registration', $data);
    $keys = array_keys($classes);
    $display->settingsDropdown(word("User Template:"), 'classname', $keys, $data);
    $display->closeSettingsTable(true);
    if (isset($_POST['update_postsettings'])) {
        $be->storeData('registration', $data);
    }
    return;
}
// * * * * * * * * //
// ANONYMOUS USER SUBSECTION
// * * * * * * * * //
if ($_GET['subaction'] == "default_access") {
    $_GET['subaction'] = "edituser";
    $_POST['user_to_edit'] = $jzUSER->lookupUID(NOBODY);
}
// * * * * * * * * //
// EDIT USER SUBSECTION
// * * * * * * * * //
Exemplo n.º 2
0
      } else {
    		$display->settingsTextbox($key,$key,$settings_array);
      }
    }
    */
} else {
    if ($_GET['subpage'] == "services") {
        $settings_file = $include_path . 'services/settings.php';
        $settings_array = settingsToArray($settings_file);
        $display->settingsDropdownDirectory(word("Lyrics"), "service_lyrics", $include_path . 'services/services/lyrics', 'file', $settings_array);
        $display->settingsDropdownDirectory(word("Similar Artists"), "service_similar", $include_path . 'services/services/similar', 'file', $settings_array);
        $display->settingsDropdownDirectory(word("Links"), "service_link", $include_path . 'services/services/link', 'file', $settings_array);
        $display->settingsDropdownDirectory(word("Metadata Retrieval"), "service_metadata", $include_path . 'services/services/metadata', 'file', $settings_array);
        //$display->settingsDropdownDirectory(word("ID3 Tagging"), "service_tagdata", $include_path.'services/services/tagdata','file',$settings_array);
    } else {
        if ($_GET['subpage'] == "frontend") {
            $settings_file = $include_path . "frontend/frontends/" . $page_array['set_fe'] . "/settings.php";
            $settings_array = settingsToArray($settings_file);
            foreach ($settings_array as $key => $val) {
                $display->settingsTextbox($key, $key, $settings_array);
            }
        }
    }
}
$display->closeSettingsTable(is_writeable($settings_file));
//echo "&nbsp;";
//$this->closeButton();
if (isset($_POST['update_postsettings']) && is_writeable($settings_file)) {
    arrayToSettings($settings_array, $settings_file);
}
$this->closeBlock();