static function isloged()
 {
     if (wra_vku::isvkd()) {
         if (self::curuser()) {
             return true;
         } else {
             return false;
         }
     }
     if (wra_fbu::isfbd()) {
         if (self::curuser()) {
             return true;
         } else {
             return false;
         }
     }
     if (isset($_COOKIE['uid']) && isset($_COOKIE['passs'])) {
         $_SESSION['uid'] = $_COOKIE['uid'];
         $_SESSION['passs'] = $_COOKIE['passs'];
     }
     if (isset($_SESSION['uid']) && isset($_SESSION['passs'])) {
         if (wra_userscontext::confirm_user($_SESSION['uid'], $_SESSION['passs']) != 0) {
             unset($_SESSION['uid']);
             unset($_SESSION['passs']);
             return false;
         }
         return true;
     }
     return false;
 }
Beispiel #2
0
 static function islogin()
 {
     if (wra_fbu::isfbd()) {
         return 'fb';
     }
     if (wra_vku::isvkd()) {
         return 'vk';
     }
     return false;
 }