Search squid archive

Helper doent authentify

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!
I am trying to do a helper for use with Squid. I did my helper but it doesnt authentify

<?php

$f = fopen("php://stdin", "r");
while (!(feof($f)))
{
    $line = fgets($f);
    if ($line)
     {
        $fields = explode(' ', trim($line));
        $username = rawurldecode($fields[0]);
        $password = rawurldecode($fields[1]);

        if ($username=="edwin" &&  $password=="1234")
         fwrite(STDOUT, "OK\n");
        else
         fwrite(STDOUT, "ERR\n");
    }
}
?>

when I put the values it continues asked me user/password


_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux