Guest User

Untitled

a guest
Dec 19th, 2012
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.5.0
  8. * @ Author : DeZender
  9. * @ Release on : 09.06.2012
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function Loginform($err = '') {
  15. global $smarty;
  16. global $lang;
  17. global $config;
  18. global $dbconn;
  19. global $user;
  20. global $config;
  21.  
  22. $file_name = seo( 'index', 1 );
  23. $smarty->assign( 'template_root', $config['index_theme_path'] );
  24. $smarty->assign( 'template_images_root', $config['index_theme_images_path'] );
  25.  
  26. if (( empty( $err ) && $err != '' )) {
  27. $smarty->assign( 'err', $err );
  28. }
  29.  
  30. $form['login_link'] = seo( 'index', 1 ) . '?sel=login';
  31. $smarty->assign( 'form', $form );
  32. $form['login_action'] = $file_name;
  33. $smarty->assign( 'form', $form );
  34. $smarty->display( TrimSlash( $config['index_theme_path'] ) . '/new_index_login_form.tpl' );
  35. exit( );
  36. }
  37.  
  38. function LogoutUser() {
  39. global $smarty;
  40. global $lang;
  41. global $config;
  42. global $dbconn;
  43. global $user;
  44.  
  45. $strSQL = 'Delete from ' . ACTIVE_SESSIONS_TABLE . ' where id_user=\'' . $user[0] . '\' and session=\'' . session_id( ) . '\' ';
  46. $rs = $dbconn->Execute( $strSQL );
  47. $strSQL = 'Delete from ' . ONLINE_NOTICE_TABLE . ' where id_from =\'' . $user[0] . '\' and type=\'1\' ';
  48. $rs = $dbconn->Execute( $strSQL );
  49. unset( $_SESSION[saved_user_ip] );
  50. unset( $_SESSION[back_url] );
  51. echo '<script>location.href=\'' . seo( 'index', 1 ) . '\'</script>';
  52. }
  53. .............................................................
  54. ................................
  55. ........
Advertisement
Add Comment
Please, Sign In to add comment