"); $dataline = mysql_fetch_array($result); if ($dataline['password']==$password) { mysql_close($link); return true; } mysql_close($link); return false; } function check_permissions($username, $link) { #if (!isset($link)||$link=="") # $not_set = 1; #else # $not_set = 0; #if ($not_set) # $link=database_connect('firespeaker'); $linky=database_connect('firespeaker'); $query = "select permissions from users where username='$username'"; $thingy = mysql_query ($query, $linky); $dataline = mysql_fetch_array($thingy); if ($not_set) mysql_close($linky); $permissions = split(",", $dataline[permissions]); return $permissions; mysql_close($linky); } ?>
Fatal error: Uncaught Error: Call to undefined function check_permissions() in /server/uzbek/top.php:18 Stack trace: #0 /server/uzbek/about.html(4): include() #1 {main} thrown in /server/uzbek/top.php on line 18