"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "sarg-php/sarg-block-it.php" between
sarg-2.3.11.tar.gz and sarg-2.4.0.tar.gz

About: SARG ia a Squid Analysis Report Generator.

sarg-block-it.php  (sarg-2.3.11):sarg-block-it.php  (sarg-2.4.0)
skipping to change at line 28 skipping to change at line 28
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
* *
*/ */
$filename = "/usr/local/squid/etc/block.txt"; require_once "config.php.inc";
if (!isset($_GET['url']))
{
echo "<p>",gettext("No URL passed as argument"),"</p>\n";
exit;
}
$url = $_GET['url']; $url = $_GET['url'];
$url = $url."\n"; $url = $url."\n";
$ha = fopen($filename, 'a'); $ha = fopen($DefaultSquidBlock, 'a');
if ($filename == false) { if ($ha == false) {
print (gettext ("Could not open the filename")); printf(gettext("Could not open file: %s"),$DefaultSquidBlock);
echo '&nbsp;'.$filename;
exit; exit;
} }
else { else {
$written = fwrite($ha, $url); $written = fwrite($ha, $url);
fclose($ha); fclose($ha);
if ($written != strlen($url)) { if ($written != strlen($url)) {
print (gettext ("Write error")); print (gettext ("Write error"));
exit; exit;
} }
print (gettext ("Done!")); print (gettext ("Done!"));
echo "<br><br>\n"; echo "<br><br>\n";
echo "<a href=\"javascript:history.go(-1)\">"; printf(gettext("<a href=\"%s\">Return</a> to Sarg."),"javascript:history.go(-
print (gettext("Return")); 1)");
echo "</a>&nbsp;";
print (gettext (" to Sarg."));
} }
 End of changes. 4 change blocks. 
9 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)