Guest User

Untitled

a guest
Mar 13th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1. this the original
  2.  
  3. if( !$this->settings['ipb_reg_number'] )
  4. {
  5. $this->lang->words['license_missing_info'] = sprintf( $this->lang->words['license_missing_info'], $this->settings['base_url'] . 'app=core&module=tools&section=licensekey' );
  6. $extra_class = 'force_license';
  7. $license_html = <<<HTML
  8. <div id='license_notice_force'>
  9. <h4>{$this->lang->words['license_missing_header']}</h4>
  10. <p>{$this->lang->words['license_missing_info']}</p>
  11. </div>
  12. HTML;
  13. }
  14. else
  15. {
  16. $licenseData = $this->cache->getCache( 'licenseData' );
  17. if( ( !$licenseData OR !$licenseData['key']['_expires'] OR $licenseData['key']['_expires'] < IPS_UNIX_TIME_NOW and $licenseData['key']['_expires'] != -1 ) AND !IPSCookie::get( 'ignore-license-notice' ) )
  18. {
  19. $extra_class = 'expired_license';
  20. $license_html = <<<HTML
  21. <div id='license_notice_expired'>
  22. <div class='right'><a id='license-close' href='#'>Close</a></div>
  23. <h4>{$this->lang->words['license_expired_header']}</h4>
  24. <p>{$this->lang->words['license_expired_info']}</p>
  25. </div>
  26. HTML;
  27. }
  28. }
  29.  
  30.  
  31. THIS THE EDIT ONE---------------------------------------------------------
  32.  
  33. /*
  34. if( !$this->settings['ipb_reg_number'] )
  35. {
  36. $this->lang->words['license_missing_info'] = sprintf( $this->lang->words['license_missing_info'], $this->settings['base_url'] . 'app=core&module=tools&section=licensekey' );
  37. $extra_class = 'force_license';
  38. $license_html = <<<HTML
  39. <div id='license_notice_force'>
  40. <h4>{$this->lang->words['license_missing_header']}</h4>
  41. <p>{$this->lang->words['license_missing_info']}</p>
  42. </div>
  43. HTML;
  44. }
  45. else
  46. {
  47. $licenseData = $this->cache->getCache( 'licenseData' );
  48. if( ( !$licenseData OR !$licenseData['key']['_expires'] OR $licenseData['key']['_expires'] < IPS_UNIX_TIME_NOW and $licenseData['key']['_expires'] != -1 ) AND !IPSCookie::get( 'ignore-license-notice' ) )
  49. {
  50. $extra_class = 'expired_license';
  51. $license_html = <<<HTML
  52. <div id='license_notice_expired'>
  53. <div class='right'><a id='license-close' href='#'>Close</a></div>
  54. <h4>{$this->lang->words['license_expired_header']}</h4>
  55. <p>{$this->lang->words['license_expired_info']}</p>
  56. </div>
  57. HTML;
  58. }
  59. }
  60. */
Advertisement
Add Comment
Please, Sign In to add comment