View Issue Details

IDProjectCategoryView StatusLast Update
0005129mantisbtadministrationpublic2007-08-02 02:32
ReporterBozz Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionwon't fix 
Product Version0.19.2 
Summary0005129: possible modification for CSS preview
Description

I tried to modified some files in order to correctly run the CSS section in Admin folder :

I modified the check_varset in the admin/css/core.php file, by adding another parameter $p_value, as this :
function check_varset( &$p_var, $p_value, $p_default_value )

Then, for each callback of this function, I added the correct parameter, which is the POST-ed value; for example :
check_varset( $g_background_color, $HTTP_POST_VARS['g_background_color'], "#ffffff" );

Modified file uploaded.

TagsNo tags attached.

Relationships

related to 0008144 closedvboctor Remove obsolete CSS edit tool 

Activities

Bozz

Bozz

2005-01-14 10:36

reporter   ~0009021

OK, I couldn't upload the file, so here it is :

Bozz

Bozz

2005-01-14 10:36

reporter   ~0009022

<?php

@@@@@@ NOTE that the status colors are NOT set in CSS. This should be fixed through a redesign.

error_reporting( E_ALL );

# If p_var isset then do nothing.  Otherwise set it to be
#  the provided value
#
function check_varset( &$p_var, $p_value, $p_default_value ) {
    if ( !isset( $p_var ) ) {
    if ( isset ( $p_value ) ) {
    $p_var = $p_value;
} else {
$p_var = $p_default_value;
}
    }
}

# --- color values ----------------
#
check_varset( $g_background_color, $HTTP_POST_VARS['g_background_color'],       &quot;#ffffff&quot; );
check_varset( $g_required_color, $HTTP_POST_VARS['g_required_color'],       &quot;#ffffff&quot; );
check_varset( $g_table_border_color, $HTTP_POST_VARS['g_table_border_color'],   &quot;#000000&quot; );
check_varset( $g_category_title_color, $HTTP_POST_VARS['g_category_title_color'],   &quot;#c8c8e8&quot; );
check_varset( $g_primary_color1, $HTTP_POST_VARS['g_primary_color1'],       &quot;#d8d8d8&quot; );
check_varset( $g_primary_color2, $HTTP_POST_VARS['g_primary_color2'],       &quot;#e8e8e8&quot; );
check_varset( $g_form_title_color, $HTTP_POST_VARS['g_form_title_color'],       &quot;#ffffff&quot; );
check_varset( $g_spacer_color, $HTTP_POST_VARS['g_spacer_color'],           &quot;#ffffff&quot; );
check_varset( $g_menu_color, $HTTP_POST_VARS['g_menu_color'],           &quot;#e8e8e8&quot; );

# --- status color codes ----------
#
check_varset( $g_new_color, $HTTP_POST_VARS['g_new_color'],         &quot;#ffa0a0&quot; );
check_varset( $g_feedback_color, $HTTP_POST_VARS['g_feedback_color'],   &quot;#ff50a8&quot; );
check_varset( $g_acknowledged_color, $HTTP_POST_VARS['g_acknowledged_color'], &quot;#ffd850&quot; );
check_varset( $g_confirmed_color, $HTTP_POST_VARS['g_confirmed_color'],     &quot;#ffffb0&quot; );
check_varset( $g_assigned_color, $HTTP_POST_VARS['g_assigned_color'],   &quot;#c8c8ff&quot; );
check_varset( $g_resolved_color, $HTTP_POST_VARS['g_resolved_color'],   &quot;#cceedd&quot; );
check_varset( $g_closed_color, $HTTP_POST_VARS['g_closed_color'],       &quot;#ffffff&quot; );

# --- fonts ----------
#
check_varset( $g_fonts, $HTTP_POST_VARS['g_fonts'],         &quot;Verdana, Arial, Helvetica, sans-serif&quot; );
check_varset( $g_font_small, $HTTP_POST_VARS['g_font_small'],   &quot;8pt&quot; );
check_varset( $g_font_normal, $HTTP_POST_VARS['g_font_normal'],     &quot;10pt&quot; );
check_varset( $g_font_large, $HTTP_POST_VARS['g_font_large'],   &quot;12pt&quot; );
check_varset( $g_font_color, $HTTP_POST_VARS['g_font_color'],   &quot;#000000&quot; );

# --- fonts ----------
#
check_varset( $g_background_font_color, $HTTP_POST_VARS['g_background_font_color'],     &quot;#000000&quot; );
check_varset( $g_required_font_color, $HTTP_POST_VARS['g_required_font_color'],         &quot;#bb0000&quot; );
check_varset( $g_category_title_font_color, $HTTP_POST_VARS['g_category_title_font_color'], &quot;#000000&quot; );
check_varset( $g_primary_font_color1, $HTTP_POST_VARS['g_primary_font_color1'],         &quot;#000000&quot; );
check_varset( $g_primary_font_color2, $HTTP_POST_VARS['g_primary_font_color2'],         &quot;#000000&quot; );
check_varset( $g_form_title_font_color, $HTTP_POST_VARS['g_form_title_font_color'],     &quot;#000000&quot; );
check_varset( $g_menu_font_color, $HTTP_POST_VARS['g_menu_font_color'],             &quot;#e8e8e8&quot; );

# --- links ----------
#
check_varset( $g_active_color, $HTTP_POST_VARS['g_active_color'],           &quot;#ffffff&quot; );
check_varset( $g_active_font_color, $HTTP_POST_VARS['g_active_font_color'],     &quot;#ff0000&quot; );
check_varset( $g_unvisited_color, $HTTP_POST_VARS['g_unvisited_color'],         &quot;#ffffff&quot; );
check_varset( $g_unvisited_font_color, $HTTP_POST_VARS['g_unvisited_font_color'],   &quot;#0000ff&quot; );
check_varset( $g_visited_color, $HTTP_POST_VARS['g_visited_color'],         &quot;#ffffff&quot; );
check_varset( $g_visited_font_color, $HTTP_POST_VARS['g_visited_font_color'],   &quot;#800080&quot; );

# --- Input ----------
#
check_varset( $g_button_color, $HTTP_POST_VARS['g_button_color'],           &quot;#d8d8d8&quot; );
check_varset( $g_button_font_color, $HTTP_POST_VARS['g_button_font_color'],     &quot;#000000&quot; );
check_varset( $g_button_border_color, $HTTP_POST_VARS['g_button_border_color'],     &quot;#000000&quot; );
check_varset( $g_text_color, $HTTP_POST_VARS['g_text_color'],           &quot;#ffffff&quot; );
check_varset( $g_text_font_color, $HTTP_POST_VARS['g_text_font_color'],         &quot;#000000&quot; );
check_varset( $g_text_border_color, $HTTP_POST_VARS['g_text_border_color'],     &quot;#000000&quot; );
check_varset( $g_textarea_color, $HTTP_POST_VARS['g_textarea_color'],       &quot;#ffffff&quot; );
check_varset( $g_textarea_font_color, $HTTP_POST_VARS['g_textarea_font_color'],     &quot;#000000&quot; );
check_varset( $g_textarea_border_color, $HTTP_POST_VARS['g_textarea_border_color'], &quot;#000000&quot; );
# --- ---

?>