Advertisement
Guest User

Untitled

a guest
Aug 19th, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 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. class WPGPTB_Page_Admin_Importer extends WPGPTB_Page_Admin {
  15. private $_tab_type = 'tools';
  16. private $_tab_selected = 'importer';
  17.  
  18. function action_index() {
  19. $this->action_list( );
  20. }
  21.  
  22. function action_list() {
  23. $view = $this->_object->get( 'helpers/view', 'pages/admin/import_list' );
  24. $view->bind( 'offers', $offers );
  25. $view->bind( 'pagination', $pagination );
  26. $view->set( 'blam_api_key', WPGPTB_Model_Options::get_option( 'blam_api_key' ) );
  27. $view->set( 'blam_id', WPGPTB_Model_Options::get_option( 'blam_id' ) );
  28. $view->set( 'get', $_GET );
  29. $model = $this->_object->get( array( 'models/import', 'Model_Import' ) );
  30. $model->build_query_criteria( $_GET );
  31. $pagination = $this->_object->get( 'helpers/pagination', array( 'total_items' => $model->count_imports( ), 'view' => 'admin', 'items_per_page' => 25, 'data' => $_GET, 'page_url' => $this->_object->get( 'url' )->admin_url( 'importer' ) ) );
  32.  
  33. if (0 < $pagination->total_items) {
  34. $offers = $model->get_imports( $pagination->items_per_page, $pagination->offset );
  35. }
  36.  
  37. $this->_object->get( 'response' )->set_response( $view );
  38. }
  39. ...............................................................
  40. ......................................
  41. ..........
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement