Subversion Repositories personal-webbase

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. <?php
  2.  
  3. if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgef&uuml;hrt werden.');
  4.  
  5. if (!isset($skey)) $skey = '';
  6.  
  7. $skey_decoded = wb_decrypt($skey, '@ibs');
  8.  
  9. $skey_ary = explode('@', $skey_decoded);
  10. $id = $skey_ary[0];
  11.  
  12. $res = db_query("SELECT `user_cnid` FROM `".$WBConfig->getMySQLPrefix()."links` WHERE `id` = '".db_escape($id)."'");
  13. $row = db_fetch($res);
  14. $lid = $row['user_cnid'];
  15.  
  16. $res2 = db_query("SELECT `password` FROM `".$WBConfig->getMySQLPrefix()."users` WHERE `id` = '$lid'");
  17. $row2 = db_fetch($res2);
  18. $erw = md5($row2['password']);
  19.  
  20. if ($erw == $skey_ary[1])
  21. {
  22.         $module_information = WBModuleHandler::get_module_information('user_links');
  23.  
  24.         $benutzer['id'] = $lid;
  25.  
  26.         if (file_exists('modules/user_links/page/view.inc.php'))
  27.                 include 'modules/user_links/page/view.inc.php';
  28. }
  29. else
  30. {
  31.         echo $header.'Sicherheitsschl&uuml;ssel fehlerhaft.'.$footer;
  32. }
  33.  
  34. ?>
  35.