Lines 5368-5376
Link Here
|
5368 |
# No update but report by default when run from a browser |
5368 |
# No update but report by default when run from a browser |
5369 |
$UpdateStats=($QueryString=~/update=1/i?1:0); |
5369 |
$UpdateStats=($QueryString=~/update=1/i?1:0); |
5370 |
|
5370 |
|
5371 |
if ($QueryString =~ /config=([^&]+)/i) { $SiteConfig=&DecodeEncodedString("$1"); } |
5371 |
if ($QueryString =~ /config=([^&]+)/i) { $SiteConfig=&DecodeEncodedString("$1"); $SiteConfig =~ s/[^\w_\-\\\/\.\s]//g } |
5372 |
if ($QueryString =~ /diricons=([^&]+)/i) { $DirIcons=&DecodeEncodedString("$1"); } |
5372 |
if ($QueryString =~ /diricons=([^&]+)/i) { $DirIcons=&DecodeEncodedString("$1"); } |
5373 |
if ($QueryString =~ /pluginmode=([^&]+)/i) { $PluginMode=&Sanitize(&DecodeEncodedString("$1")); } |
5373 |
if ($QueryString =~ /pluginmode=([^&]+)/i) { $PluginMode=&DecodeEncodedString("$1"); $PluginMode =~ s/[^\w_\-\\\/\.\s]//g } |
5374 |
if ($QueryString =~ /configdir=([^&]+)/i) { $DirConfig=&Sanitize(&DecodeEncodedString("$1")); } |
5374 |
if ($QueryString =~ /configdir=([^&]+)/i) { $DirConfig=&Sanitize(&DecodeEncodedString("$1")); } |
5375 |
# All filters |
5375 |
# All filters |
5376 |
if ($QueryString =~ /hostfilter=([^&]+)/i) { $FilterIn{'host'}=&DecodeEncodedString("$1"); } # Filter on host list can also be defined with hostfilter=filter |
5376 |
if ($QueryString =~ /hostfilter=([^&]+)/i) { $FilterIn{'host'}=&DecodeEncodedString("$1"); } # Filter on host list can also be defined with hostfilter=filter |
Lines 5416-5424
Link Here
|
5416 |
# Update with no report by default when run from command line |
5416 |
# Update with no report by default when run from command line |
5417 |
$UpdateStats=1; |
5417 |
$UpdateStats=1; |
5418 |
|
5418 |
|
5419 |
if ($QueryString =~ /config=([^&]+)/i) { $SiteConfig="$1"; } |
5419 |
if ($QueryString =~ /config=([^&]+)/i) { $SiteConfig="$1"; $SiteConfig =~ s/[^\w_\-\\\/\.\s]//g } |
5420 |
if ($QueryString =~ /diricons=([^&]+)/i) { $DirIcons="$1"; } |
5420 |
if ($QueryString =~ /diricons=([^&]+)/i) { $DirIcons="$1"; } |
5421 |
if ($QueryString =~ /pluginmode=([^&]+)/i) { $PluginMode=&Sanitize("$1"); } |
5421 |
if ($QueryString =~ /pluginmode=([^&]+)/i) { $PluginMode="$1"; $PluginMode =~ s/[^\w_\-\\\/\.\s]//g } |
5422 |
if ($QueryString =~ /configdir=([^&]+)/i) { $DirConfig=&Sanitize("$1"); } |
5422 |
if ($QueryString =~ /configdir=([^&]+)/i) { $DirConfig=&Sanitize("$1"); } |
5423 |
# All filters |
5423 |
# All filters |
5424 |
if ($QueryString =~ /hostfilter=([^&]+)/i) { $FilterIn{'host'}="$1"; } # Filter on host list can also be defined with hostfilter=filter |
5424 |
if ($QueryString =~ /hostfilter=([^&]+)/i) { $FilterIn{'host'}="$1"; } # Filter on host list can also be defined with hostfilter=filter |
Lines 5447-5454
Link Here
|
5447 |
if ($QueryString =~ /(^|&)framename=([^&]+)/i) { $FrameName="$2"; } |
5447 |
if ($QueryString =~ /(^|&)framename=([^&]+)/i) { $FrameName="$2"; } |
5448 |
if ($QueryString =~ /(^|&)debug=(\d+)/i) { $Debug=$2; } |
5448 |
if ($QueryString =~ /(^|&)debug=(\d+)/i) { $Debug=$2; } |
5449 |
if ($QueryString =~ /(^|&)updatefor=(\d+)/i) { $UpdateFor=$2; } |
5449 |
if ($QueryString =~ /(^|&)updatefor=(\d+)/i) { $UpdateFor=$2; } |
5450 |
if ($QueryString =~ /(^|&)noloadplugin=([^&]+)/i) { foreach (split(/,/,$2)) { $NoLoadPlugin{&Sanitize("$_")}=1; } } |
5450 |
if ($QueryString =~ /(^|&)noloadplugin=([^&]+)/i) { foreach (split(/,/,$2)) { s/[^\w_\-\\\/\.\s]//g; $NoLoadPlugin{"$_"}=1; } } |
5451 |
if ($QueryString =~ /(^|&)loadplugin=([^&]+)/i) { foreach (split(/,/,$2)) { $NoLoadPlugin{&Sanitize("$_")}=-1; } } |
5451 |
if ($QueryString =~ /(^|&)loadplugin=([^&]+)/i) { foreach (split(/,/,$2)) { s/[^\w_\-\\\/\.\s]//g; $NoLoadPlugin{"$_"}=-1; } } |
5452 |
if ($QueryString =~ /(^|&)limitflush=(\d+)/i) { $LIMITFLUSH=$2; } |
5452 |
if ($QueryString =~ /(^|&)limitflush=(\d+)/i) { $LIMITFLUSH=$2; } |
5453 |
# Get/Define output |
5453 |
# Get/Define output |
5454 |
if ($QueryString =~ /(^|&)output(=[^&]*|)(.*)&output(=[^&]*|)(&|$)/i) { error("Only 1 output option is allowed","","",1); } |
5454 |
if ($QueryString =~ /(^|&)output(=[^&]*|)(.*)&output(=[^&]*|)(&|$)/i) { error("Only 1 output option is allowed","","",1); } |