if(! function_exists('local_user')) {
function local_user() {
if((x($_SESSION,'authenticated')) && (x($_SESSION,'uid')))
- return $_SESSION['uid'];
+ return intval($_SESSION['uid']);
return false;
}}
if(! function_exists('remote_user')) {
function remote_user() {
if((x($_SESSION,'authenticated')) && (x($_SESSION,'visitor_id')))
- return $_SESSION['visitor_id'];
+ return intval($_SESSION['visitor_id']);
return false;
}}
}}
-// Returns logged in user ID
-
-if(! function_exists('get_uid')) {
-function get_uid() {
- return ((x($_SESSION,'uid')) ? intval($_SESSION['uid']) : 0) ;
-}}
-
// Take a URL from the wild, prepend http:// if necessary
// and check DNS to see if it's real
// return true if it's OK, false if something is wrong with it