--- adm_globals1.phtml.orig Sun Feb 16 13:29:05 2003 +++ adm_globals1.phtml Sun Feb 16 22:30:33 2003 @@ -10,12 +10,72 @@ ?> Network Interface Statistics Collection Agent - Global Variables + + +
@@ -60,8 +120,8 @@


-

- + +
@@ -85,13 +145,6 @@ > No -">
Global Options
How often do you want the collector scripts to run (in seconds)?
If your GD Library supports TrueType fonts, enter the font to use here. @@ -187,42 +240,84 @@
-Enter the default colors you want used in the graphs. + +Enter the default colors you want used in the graphs. Use standard hex color codes. The current color scheme is displayed; the "Background" color is used under all color choices, of course. Any colors that aren't defined yet because you've just imported an older database into your new one will show up in the -"Text" color. +"Text" color. As you change values here, the colors will change to match your choices... +assuming you have Javascript and CSS enabled and aren't using Netscape 4. :)

- - for an interactive -color-creation popup window. Javascript required... sorry.
+
+for an interactive color-creation popup window.
- - +
- - - - - - - - - - - - - -
$font2Background:
$font2Text:
$font2Light Border:
$font2Dark Border:
$font2Peak Highlighting:
$font2Incoming Data:
$font2Outgoing Data:
+echo "$font2 + +Sample Text + +$font2 Background + + +$font2 + +Sample Text + +$font2 Text + + +$font2 + +Sample Text + +$font2 Light Border + + +$font2 + +Sample Text + +$font2 Dark Border + + +$font2 + +Sample Text + +$font2 Peak Highlight + + +$font2 + +Sample Text + +$font2 Incoming Data + + +$font2 + +Sample Text + +$font2 Outgoing Data + "; -?> +?> --- adm_globals2.phtml.orig Sun Feb 16 13:48:05 2003 +++ adm_globals2.phtml Sun Feb 16 13:48:53 2003 @@ -16,8 +16,9 @@ $tmp=array("f_g_bg", "f_g_text", "f_g_lborder", "f_g_dborder", "f_g_peak", "f_g_in", "f_g_out"); foreach ($tmp as $t) { + $$t=strtoupper($$t); $t2=$$t; - if (preg_match('/[^\da-f]/i', $t2)) { + if (preg_match('/[^\dA-F]/', $t2)) { $t2=urlencode($t2); header("Location: adm_globals1.phtml?msg=badcolor&color=$t2"); die;