function IsUserExists($login) { global $MDL, $GV, $CURRENT_USER; $MDL->Load("smadbis"); $BILL = new CBilling($GV["dbhost"], $GV["dbname"], $GV["dblogin"], $GV["dbpassword"]); return $BILL->IsUserExists($login); /*include $this->list_file; if(!isset($USERS_IDS[$login]))return false; return (file_exists($this->data_dir."/".$USERS_IDS[$login]) && is_file($this->data_dir."/".$USERS_IDS[$login]));*/ }