Exemplo n.º 1
0
$themeSettings['tab_font_family'] = setColorValue('tab_font_family', '"Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif', $parentColor);
$themeSettings['tab_font_size'] = setColorValue('tab_font_size', '12px', $parentColor);
$themeSettings['tab_font_size_small'] = setColorValue('tab_font_size_small', '11px', $parentColor);
$themeSettings['tab_color_self'] = setColorValue('tab_color_self', '#333333', $parentColor);
$themeSettings['tab_title_color'] = setColorValue('tab_title_color', '#FFFFFF', $parentColor);
$themeSettings['tab_title_backgroud_light'] = setColorValue('tab_title_backgroud_light', '#EEEEEE', $parentColor);
$themeSettings['tab_title_background'] = setColorValue('tab_title_background', '#ccad15', $parentColor);
$themeSettings['tab_title_gradient_start'] = setColorValue('tab_title_gradient_start', '#f1d622', $parentColor);
$themeSettings['tab_title_gradient_center'] = setColorValue('tab_title_gradient_center', '#ccad15', $parentColor);
$themeSettings['tab_title_gradient_end'] = setColorValue('tab_title_gradient_end', '#ccad15', $parentColor);
$themeSettings['tab_title_border'] = setColorValue('tab_title_border', '#ccad15', $parentColor);
$themeSettings['tab_title_font_family'] = setColorValue('tab_title_font_family', 'Tahoma,Verdana,Arial,"Bitstream Vera Sans",sans-serif', $parentColor);
$themeSettings['tab_title_font_size'] = setColorValue('tab_title_font_size', '11px', $parentColor);
$themeSettings['tab_title_font_size_large'] = setColorValue('tab_title_font_size_large', '12px', $parentColor);
$themeSettings['tab_title_text_background'] = setColorValue('tab_title_text_background', '#9C862E', $parentColor);
$themeSettings['tab_sub_background'] = setColorValue('tab_sub_background', '#EEEEEE', $parentColor);
$themeSettings['tab_sub_color'] = setColorValue('tab_sub_color', '#666666', $parentColor);
$themeSettings['tab_border_light'] = setColorValue('tab_border_light', '#CCCCCC', $parentColor);
$themeSettings['tab_border_lighter'] = setColorValue('tab_border_lighter', '#EEEEEE', $parentColor);
$themeSettings['tooltip_background'] = setColorValue('tooltip_background', '#333333', $parentColor);
$themeSettings['tooltip_color'] = setColorValue('tooltip_color', '#FFFFFF', $parentColor);
$themeSettings['tooltip_color_light'] = setColorValue('tooltip_color_light', '#EEEEEE', $parentColor);
$themeSettings['tooltip_font_family'] = setColorValue('tooltip_font_family', '"Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif', $parentColor);
$themeSettings['tooltip_font_size'] = setColorValue('tooltip_font_size', '11px', $parentColor);
$themeSettings['tooltip_break'] = setColorValue('tooltip_break', '#666666', $parentColor);
$themeSettings['tab_link_color'] = setColorValue('tab_link_color', '#288597', $parentColor);
/* SETTINGS END */
global $color;
if (!defined('CCADMIN')) {
    $themeSettings = setNewColorValue($themeSettings, $color);
}
Exemplo n.º 2
0
function updatecolorsprocess()
{
    global $themeSettings;
    $colors = $_POST['colors'];
    $_GET['data'] = $_POST['theme'];
    $parent = getParentColor($_GET['data']);
    if (!empty($parent)) {
        if (file_exists(dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'colors' . DIRECTORY_SEPARATOR . $parent . '.php')) {
            include_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'colors' . DIRECTORY_SEPARATOR . $parent . '.php';
        }
    }
    $themeSettings = setNewColorValue($themeSettings, $_GET['data']);
    foreach ($themeSettings as $field => $input) {
        $input = checkcolor($input);
        if (!empty($colors[strtoupper($input)])) {
            $themeSettings[$field] = strtoupper($colors[$input]);
        }
    }
    $_SESSION['cometchat']['error'] = 'Color scheme updated successfully';
    coloreditor($themeSettings, $_GET['data']);
    echo 1;
}