php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /usr/libexec/webmin/virtualmin-awstats/ |
files >> //usr/libexec/webmin/virtualmin-awstats/config_save.cgi |
#!/usr/bin/perl # Save AWstats config settings require './virtualmin-awstats-lib.pl'; &ReadParse(); $conf = &get_config($in{'dom'}); &can_domain($in{'dom'}) || &error($text{'edit_ecannot'}); # Validate and store inputs $cfile = &get_config_file($in{'dom'}); &lock_file($cfile); # Do DNS lookups? &save_directive($conf, $in{'dom'}, "DNSLookup", $in{'dnslookup'}); # Allow full-year view? &save_directive($conf, $in{'dom'}, "AllowFullYearView", $in{'year'}); # Client hosts to skip &save_directive($conf, $in{'dom'}, "SkipHosts", $in{'skiphosts_def'} ? undef : $in{'skiphosts'}); # Browsers to skip &save_directive($conf, $in{'dom'}, "SkipUserAgents", $in{'skipagents_def'} ? undef : $in{'skipagents'}); # Files to skip &save_directive($conf, $in{'dom'}, "SkipFiles", $in{'skipfiles_def'} ? undef : $in{'skipfiles'}); # File types to exclude &save_directive($conf, $in{'dom'}, "NotPageList", $in{'notpage_def'} ? undef : $in{'notpage'}); # HTTP codes to include &save_directive($conf, $in{'dom'}, "ValidHTTPCodes", $in{'httpcodes_def'} ? undef : $in{'httpcodes'}); # Framed report UI &save_directive($conf, $in{'dom'}, "UseFramesWhenCGI", $in{'frames'}); # Detection levels foreach $dt ("LevelForRobotsDetection", "LevelForBrowsersDetection", "LevelForOSDetection", "LevelForRefererAnalyze") { $n = lc($dt); $n =~ s/^LevelFor//i; &save_directive($conf, $in{'dom'}, $dt, $in{$n}); } # Save plugins, if any @allplugins = &list_all_plugins(); if (@allplugins) { &save_directives($conf, $in{'dom'}, "LoadPlugin", [ split(/\0/, $in{'p'}) ]); } &flush_file_lines($cfile); &unlock_file($cfile); &webmin_log("config", "dom", $in{'dom'}); # Show post-save page if (&foreign_check("virtual-server")) { &foreign_require("virtual-server", "virtual-server-lib.pl"); $d = &virtual_server::get_domain_by("dom", $in{'dom'}); } if ($in{'gen'}) { &redirect("generate.cgi?dom=$in{'dom'}"); } elsif ($d) { &virtual_server::domain_redirect($d); } else { &redirect(""); }y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`