Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 1.1.3.0
- * @ Author : DeZender
- * @ Release on : 17.05.2011
- * @ Official site : http://DeZender.Net
- *
- */
- class NNewsGrabber {
- private $_licserial = null;
- private $_lickey = null;
- private $_licdata = null;
- protected $_serverurl = null;
- protected $_comkey = null;
- protected $_licstatus = null;
- protected $_limitfilter = null;
- protected $_limitautorun = null;
- protected $_isshowad = null;
- protected $_lictoname = null;
- protected $_db = null;
- protected $_filterid = null;
- protected $_filterdata = null;
- protected $_filtertop = null;
- protected $_filterbot = null;
- protected $_realurl = null;
- protected $_filterresult = null;
- protected $_filtername = null;
- var $regname = null;
- var $regemail = null;
- var $regdomain = null;
- var $regterm = null;
- function __construct($licserial, $lickey, $licdata) {
- $this->_serverurl = 'http://www.nhutcorp.net';
- $this->_comkey = '$%&@(#CongTyCPTinHocNhut2011';
- $this->showdebug = 0;
- $this->errortype = 1;
- $this->emailadmin = '[email protected]';
- $this->_db = &JFactory::getdbo( );
- $this->_licserial = $licserial;
- $this->_lickey = $lickey;
- $this->_licdata = $licdata;
- $this->_check_license( );
- }
- function __destruct() {
- unset( $this->_licserial );
- unset( $this->_lickey );
- unset( $this->_licdata );
- unset( $this->_serverurl );
- unset( $this->_comkey );
- unset( $this->_db );
- unset( $this->showdebug );
- unset( $this->errortype );
- unset( $this->emailadmin );
- }
- function _check_license() {
- if ($this->local_valid_lic( ) == 'OK') {
- $this->_licstatus = 1;
- return null;
- }
- if ($this->remote_valid_lic( ) == 'OK') {
- $this->_licstatus = 2;
- return null;
- }
- $this->_licstatus = 0;
- }
- function _limit_lic_valid() {
- $query = 'SELECT count(*) FROM #__ngrab_filter';
- $this->_db->setQuery( $query );
- $countfillter = $this->_db->loadResult( );
- $query = 'SELECT count(*) FROM #__ngrab_cron';
- $this->_db->setQuery( $query );
- $countautorun = $this->_db->loadResult( );
- if (( ( 0 < $this->get_limit_filter( ) && $this->get_limit_filter( ) < $countfillter ) || ( 0 < $this->get_limit_autorun( ) && $this->get_limit_autorun( ) < $countautorun ) )) {
- return false;
- }
- return true;
- }
- function get_lic_serial() {
- return $this->_licserial;
- }
- function get_lic_key() {
- return $this->_lickey;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement