Exemplo n.º 1
0
/**
 * This function allows the platform admin to choose which should be the default stylesheet
 * @author Patrick Cool <*****@*****.**>, Ghent University
*/
function store_stylesheets()
{
    // Insert the stylesheet.
    $style = Database::escape_string($_POST['style']);
    if (is_style($style)) {
        api_set_setting('stylesheets', $style, null, 'stylesheets', api_get_current_access_url_id());
    }
    return true;
}
Exemplo n.º 2
0
/**
 * This function allows the platform admin to choose which should be the default stylesheet
 * @author Patrick Cool <*****@*****.**>, Ghent University
 */
function store_stylesheets()
{
    // Insert the stylesheet.
    if (is_style($_POST['style'])) {
        api_set_setting('stylesheets', $_POST['style'], null, 'stylesheets', api_get_current_access_url_id());
    }
    return true;
}
/**
 * This function allows the platform admin to choose which should be the default stylesheet
 * @author Patrick Cool <*****@*****.**>, Ghent University
*/
function store_stylesheets()
{
    global $_configuration;
    // Database Table Definitions
    $table_settings_current = Database::get_main_table(TABLE_MAIN_SETTINGS_CURRENT);
    // Insert the stylesheet
    $style = Database::escape_string($_POST['style']);
    if (is_style($style)) {
        /*
        $sql = 'UPDATE '.$table_settings_current.' SET
        		selected_value = "'.$style.'"
        		WHERE variable = "stylesheets"
        		AND category = "stylesheets"';
        
        api_sql_query($sql, __LINE__, __FILE__);
        */
        api_set_setting('stylesheets', $style, null, 'stylesheets', $_configuration['access_url']);
    }
    return true;
}