Advertisement
Guest User

Untitled

a guest
Aug 17th, 2011
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 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.3.0
  8. * @ Author : DeZender
  9. * @ Release on : 17.05.2011
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class NNewsGrabber {
  15. private $_licserial = null;
  16. private $_lickey = null;
  17. private $_licdata = null;
  18. protected $_serverurl = null;
  19. protected $_comkey = null;
  20. protected $_licstatus = null;
  21. protected $_limitfilter = null;
  22. protected $_limitautorun = null;
  23. protected $_isshowad = null;
  24. protected $_lictoname = null;
  25. protected $_db = null;
  26. protected $_filterid = null;
  27. protected $_filterdata = null;
  28. protected $_filtertop = null;
  29. protected $_filterbot = null;
  30. protected $_realurl = null;
  31. protected $_filterresult = null;
  32. protected $_filtername = null;
  33. var $regname = null;
  34. var $regemail = null;
  35. var $regdomain = null;
  36. var $regterm = null;
  37.  
  38. function __construct($licserial, $lickey, $licdata) {
  39. $this->_serverurl = 'http://www.nhutcorp.net';
  40. $this->_comkey = '$%&@(#CongTyCPTinHocNhut2011';
  41. $this->showdebug = 0;
  42. $this->errortype = 1;
  43. $this->emailadmin = '[email protected]';
  44. $this->_db = &JFactory::getdbo( );
  45.  
  46. $this->_licserial = $licserial;
  47. $this->_lickey = $lickey;
  48. $this->_licdata = $licdata;
  49. $this->_check_license( );
  50. }
  51.  
  52. function __destruct() {
  53. unset( $this->_licserial );
  54. unset( $this->_lickey );
  55. unset( $this->_licdata );
  56. unset( $this->_serverurl );
  57. unset( $this->_comkey );
  58. unset( $this->_db );
  59. unset( $this->showdebug );
  60. unset( $this->errortype );
  61. unset( $this->emailadmin );
  62. }
  63.  
  64. function _check_license() {
  65. if ($this->local_valid_lic( ) == 'OK') {
  66. $this->_licstatus = 1;
  67. return null;
  68. }
  69.  
  70. if ($this->remote_valid_lic( ) == 'OK') {
  71. $this->_licstatus = 2;
  72. return null;
  73. }
  74.  
  75. $this->_licstatus = 0;
  76. }
  77.  
  78. function _limit_lic_valid() {
  79. $query = 'SELECT count(*) FROM #__ngrab_filter';
  80. $this->_db->setQuery( $query );
  81. $countfillter = $this->_db->loadResult( );
  82. $query = 'SELECT count(*) FROM #__ngrab_cron';
  83. $this->_db->setQuery( $query );
  84. $countautorun = $this->_db->loadResult( );
  85.  
  86. if (( ( 0 < $this->get_limit_filter( ) && $this->get_limit_filter( ) < $countfillter ) || ( 0 < $this->get_limit_autorun( ) && $this->get_limit_autorun( ) < $countautorun ) )) {
  87. return false;
  88. }
  89.  
  90. return true;
  91. }
  92.  
  93. function get_lic_serial() {
  94. return $this->_licserial;
  95. }
  96.  
  97. function get_lic_key() {
  98. return $this->_lickey;
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement