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.6.0
- * @ Author : DeZender
- * @ Release on : 02.06.2013
- * @ Official site : http://DeZender.Net
- *
- */
- class NgrabnewsHelper {
- public function autoValidLic() {
- $db = &JFactory::getdbo( );
- $license = new stdClass( );
- $query = 'SELECT *' . ' FROM #__ngrab_lic' . ' WHERE id = 1';
- $db->setQuery( $query );
- $ret = $db->loadObject( );
- if ($ret) {
- $lic_data = pack( 'H' . strlen( $ret->license ), $ret->license );
- $nng = new NNewsGrabber( $ret->serial_number, $ret->license_key, $lic_data );
- $lic_status = $nng->get_lic_status( );
- if ($lic_status) {
- if ($lic_status == 2) {
- $license->id = $ret->id;
- $license->license = bin2hex( $nng->get_lic_data( ) );
- $db->updateObject( '#__ngrab_lic', $license, 'id' );
- }
- return true;
- }
- return false;
- }
- }
- public function loadLimitLic() {
- $db = &JFactory::getdbo( );
- $licinfo = array( );
- $query = 'SELECT *' . ' FROM #__ngrab_lic' . ' WHERE id = 1';
- $db->setQuery( $query );
- $ret = $db->loadObject( );
- if ($ret) {
- $lic_data = pack( 'H' . strlen( $ret->license ), $ret->license );
- $nng = new NNewsGrabber( $ret->serial_number, $ret->license_key, $lic_data );
- $licinfo['limitfilter'] = $nng->get_limit_filter( );
- $licinfo['limitautorun'] = $nng->get_limit_autorun( );
- $licinfo['isshowad'] = $nng->get_is_showad( );
- $licinfo['lictoname'] = $nng->get_lic_toname( );
- }
- return $licinfo;
- }
- ..................................................................................
- .......................................
- ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement