aboutsummaryrefslogtreecommitdiffstats
path: root/config/lightsquid
diff options
context:
space:
mode:
Diffstat (limited to 'config/lightsquid')
-rw-r--r--config/lightsquid/lightsquid.xml2
-rw-r--r--config/lightsquid/sqstat.class.php3
2 files changed, 3 insertions, 2 deletions
diff --git a/config/lightsquid/lightsquid.xml b/config/lightsquid/lightsquid.xml
index b8ce2bc8..53d074c5 100644
--- a/config/lightsquid/lightsquid.xml
+++ b/config/lightsquid/lightsquid.xml
@@ -186,7 +186,7 @@
<input type="submit" name="Submit" value="Refresh full">
<br> Press button for start background refresh (this take some time).
<br> <span style="color: rgb(153, 51, 0);"> Note after installation:
- <br> On the first - enable log in squid package with "/var/squid/log" path.
+ <br> On the first - enable log in squid package with "/var/squid/logs" path.
<br> On the second - press Refresh button for create lightsquid reports, else you will have error diagnostic page.</span>
</description>
<type>select</type>
diff --git a/config/lightsquid/sqstat.class.php b/config/lightsquid/sqstat.class.php
index 228aecfe..03695a47 100644
--- a/config/lightsquid/sqstat.class.php
+++ b/config/lightsquid/sqstat.class.php
@@ -179,7 +179,8 @@ class squidstat{
}
fclose($this->fp);
- if ($raw[0]!="HTTP/1.0 200 OK") { $this->errorMsg(1, "Cannot get data. Server answered: $raw[0]");
+ if (!preg_match("/^HTTP.* 200 OK$/", $raw[0])) {
+ $this->errorMsg(1, "Cannot get data. Server answered: $raw[0]");
return false;
}