Here is the full bit for that section:
function get_user($link) {
$config=fopen($link,'r');
while(!feof($config)) {
$line=fgets($config);
if (strstr($line,'user') or strstr($line,'username')
{
if (strrpos($line,'"'))
$getuser=substr($line,(strpos($line,'=')+3),(strrpos($line,'"')-(strpos($line,'=')+3)));
else
$getuser =substr($line,(strpos($line,'=')+3),(strrpos($line,"'")-(strpos($line,'=')+3)));
return $getuser;
I had a thought, the script thinks the username stops where the quotation mark is. Would there be a way of getting it to check " to " ? In other words, what's in the quotation marks after the variable name is found?