Advertisement
Guest User

Untitled

a guest
Apr 1st, 2013
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.42 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.  
  15. class Admin {
  16. var $script = null;
  17. var $session = null;
  18. var $title = 'Associate-O-Matic v5.4.0 Control Panel';
  19. var $title_lite = 'Associate-O-Matic LITE v5.4.0 Control Panel';
  20. var $title_trial = 'Associate-O-Matic 30-Day Trial v5.4.0 Control Panel';
  21. var $version = '5.4.0';
  22. var $cfg_version = null;
  23. var $lang_version = null;
  24. var $cfg_backups = 10;
  25. var $path = 'aom';
  26. var $cfg_file_categories = 'cfg.default.php';
  27. var $cfg_file_saved = 'cfg.saved.php';
  28. var $cfg_file_saved_admin = 'cfg.admin.php';
  29. var $cfg = array( );
  30. var $saved = array( );
  31. var $setting = array( );
  32. var $nodes = array( );
  33. var $form = array( );
  34. var $err = array( );
  35. var $err_xml = '';
  36. var $msg = null;
  37. var $colorpicker = 0;
  38. var $cache = null;
  39. var $ed = 'cfg.aomhelper.php';
  40. var $app = array( );
  41. var $gs = array( 0 => 'AmazonStoreType', 1 => 'AmazonAssociateId', 2 => 'AmazonAccessKeyId', 3 => 'AmazonSecretAccessKey', 4 => 'SiteName' );
  42. var $lite = array( 0 => 'AmazonCommissionSplitter', 1 => 'BuyButtonDigitalGoods', 2 => 'BuyButtonViewCart', 3 => 'CacheHeader', 4 => 'CacheFooter', 5 => 'CartAddTrackingCode', 6 => 'CartBgColorEven', 7 => 'CartBgColorOdd', 8 => 'CartCheckoutTrackingCode', 9 => 'CheckoutNewWindow', 10 => 'DisplayCartSimilarItems', 11 => 'DisplayCartSimilarViewedItems', 12 => 'DisplayCartBestsellers', 13 => 'DisplayCartNewReleases', 14 => 'DisplayCategoryColumn', 15 => 'DisplayImageColumn', 16 => 'DisplaySellerColumn', 17 => 'ErrorCart', 18 => 'ModRewrite', 19 => 'MiniCartBox', 20 => 'PoweredBy', 21 => 'Reports', 22 => 'SmtpHost', 23 => 'SmtpPort', 24 => 'SmtpAuth', 25 => 'SmtpUsername', 26 => 'SmtpPass', 27 => 'ReportsEmailFrom', 28 => 'ReportsEmailHeader', 29 => 'ReportsEmailTo', 30 => 'ReportsTitle', 31 => 'RssCustomBoxes', 32 => 'RssCustomPages', 33 => 'ShoppingCart', 34 => 'ShoppingCartInstructions', 35 => 'ShoppingCartInstructions2', 36 => 'UrlHomeFile', 37 => 'UrlEndsWith', 38 => 'UrlSeparator' );
  43. var $flag = array( 'Amazon.com' => 'flag_us', 'Amazon.co.uk' => 'flag_uk', 'Amazon.ca' => 'flag_ca', 'Amazon.de' => 'flag_de', 'Amazon.fr' => 'flag_fr', 'Amazon.co.jp' => 'flag_jp', 'Amazon.it' => 'flag_it', 'Amazon.cn' => 'flag_cn', 'Amazon.es' => 'flag_es' );
  44. var $locale_array = array( 'Amazon.com' => 'us', 'Amazon.co.uk' => 'uk', 'Amazon.ca' => 'ca', 'Amazon.de' => 'de', 'Amazon.fr' => 'fr', 'Amazon.co.jp' => 'jp', 'Amazon.it' => 'it', 'Amazon.cn' => 'cn', 'Amazon.es' => 'es' );
  45. var $lang = array( 'Amazon.com' => 'en.lang.php', 'Amazon.co.uk' => 'en.lang.php', 'Amazon.ca' => 'en.lang.php', 'Amazon.de' => 'de.lang.php', 'Amazon.fr' => 'fr.lang.php', 'Amazon.co.jp' => 'jp.lang.php', 'Amazon.it' => 'it.lang.php', 'Amazon.cn' => 'cn.lang.php', 'Amazon.es' => 'es.lang.php' );
  46. var $branded = array( 0 => 'PoweredBy' );
  47. var $amazon = array( 0 => 'EcsVersion', 1 => 'UrlRest', 2 => 'UrlSoap' );
  48. var $section = array( 99 => 'Getting Started', 0 => 'Amazon', 4 => 'Categories', 15 => 'Home Page', 24 => 'Merchant', 7 => 'Shopping Cart', 1 => 'Site', 29 => 'Subcategories', 31 => 'Built-In Boxes', 6 => 'Custom Boxes', 25 => 'Custom Pages', 23 => 'Currency', 14 => 'Display', 22 => 'Meta Descriptions', 21 => 'Meta Keywords', 32 => 'Reviews', 30 => 'RSS', 13 => 'Search', 11 => 'Titles', 35 => 'Background', 34 => 'Buttons', 10 => 'Colors', 28 => 'CSS', 9 => 'Images', 27 => 'Layout', 17 => 'Tabs', 2 => 'Text', 33 => 'Themes', 98 => 'Advanced', 19 => 'Cache', 16 => 'Errors', 26 => 'Filters', 12 => 'Reports', 18 => 'SEO' );
  49. var $section_descr = array( 99 => 'the place to start', 0 => 'amazon settings', 4 => 'store categories', 15 => 'home page settings', 24 => 'merchant settings', 7 => 'customize cart', 1 => 'general settings', 29 => 'store sub categories', 23 => 'foreign currency settings', 31 => 'configure built-in boxes', 6 => 'setup custom boxes', 36 => 'configure built-in pages', 25 => 'setup custom pages', 14 => 'general display settings', 22 => 'configure page meta descriptions', 21 => 'configure page meta keywords', 32 => 'amazon item reviews', 30 => 'really simple syndication', 13 => 'fine-tune search settings', 11 => 'configure page titles', 35 => 'store background settings', 34 => 'shopping button settings', 10 => 'customize your colors', 28 => 'cascading style sheets', 9 => 'store image settings', 27 => 'customize store layout', 17 => 'store category tabs', 2 => 'customize text settings', 33 => 'choose store theme', 98 => 'be careful', 19 => 'page cache settings', 16 => 'customize error messages', 26 => 'item and category filtering', 12 => 'get email reports', 18 => 'search engine optimzation' );
  50. var $group = array( 'STORE' => array( 0 => 99, 1 => 0, 2 => 4, 3 => 15, 4 => 24, 5 => 7, 6 => 1, 7 => 29 ), 'CONTENT' => array( 0 => 31, 1 => 6, 2 => 25, 3 => 23, 4 => 14, 5 => 22, 6 => 21, 7 => 32, 8 => 30, 9 => 13, 10 => 11 ), 'APPEARANCE' => array( 0 => 35, 1 => 34, 2 => 10, 3 => 28, 4 => 9, 5 => 27, 6 => 17, 7 => 2, 8 => 33 ), 'OPTIMIZE' => array( 0 => 98, 1 => 19, 2 => 16, 3 => 26, 4 => 12, 5 => 18 ) );
  51. var $group_descr = array( 'STORE' => 'Customize your homepage, categories, subcategories, general store settings and more.', 'CONTENT' => 'Customize the content that appears in your store including custom boxes, custom pages, title, meta tags and more.', 'APPEARANCE' => 'Customize the theme, colors and layout of your store.', 'OPTIMIZE' => 'Customize reporting, filters, SEO, page caching and more.' );
  52. var $location = array( 'L' => 'Left', 'R' => 'Right', 'PT' => 'Page Top', 'PT2' => 'Page Top 2', 'PB' => 'Page Bottom', 'PB2' => 'Page Bottom 2', 'BT' => 'Body Top', 'BB' => 'Body Bottom', 'I1' => 'Item Location 1', 'I2' => 'Item Location 2', 'I3' => 'Item Location 3', 'I4' => 'Item Location 4', 'I5' => 'Item Location 5', 'I6' => 'Item Location 6', 'I7' => 'Item Location 7', 'C1' => 'Category Location 1', 'C2' => 'Category Location 2', 'C3' => 'Category Location 3' );
  53. var $dpages = array( '1st' => '', 404 => '404 Pages', 'C' => 'Shopping Cart', 'CP' => 'Custom Pages', 'H' => 'Home', 'I' => 'Items', 'L' => 'Categories', 'S' => 'Subcategories', 'SA' => 'Search All' );
  54. var $types = array( '' => '', 'Actor' => 'Actor', 'Artist' => 'Artist', 'Author' => 'Author', 'Brand' => 'Brand', 'Creator' => 'Creator', 'Director' => 'Director', 'Manufacturer' => 'Manufacturer', 'MusicLabel' => 'Music Label', 'Publisher' => 'Publisher', 'Title' => 'Title' );
  55.  
  56. function Admin() {
  57. if (isset( $GLOBALS['_REQUEST']['form'] )) {
  58. $this->form = $GLOBALS['_REQUEST']['form'];
  59.  
  60. if (isset( $GLOBALS['_REQUEST']['form_admin'] )) {
  61. $this->form_admin = $GLOBALS['_REQUEST']['form_admin'];
  62. }
  63. }
  64.  
  65.  
  66. if (defined( 'LITE' )) {
  67. $this->section['12'] = '';
  68. $this->section['30'] = '';
  69. unset( $this->section[bddaifhbgf] );
  70. unset( $this->section[cehdcibdhj] );
  71. }
  72.  
  73. }
  74.  
  75. function Load() {
  76. $this->clearSession( );
  77. $this->getScript( );
  78. $this->getSession( );
  79.  
  80. if (( isset( $GLOBALS['_GET']['popup'] ) && $GLOBALS['_GET']['popup'] == 'backup' )) {
  81. $this->manageBackups( );
  82. return null;
  83. }
  84.  
  85.  
  86. if (( isset( $GLOBALS['_GET']['popup'] ) && $GLOBALS['_GET']['popup'] == 'new' )) {
  87. $this->whatsNew( );
  88. return null;
  89. }
  90.  
  91.  
  92. if (( isset( $GLOBALS['_GET']['popup'] ) && $GLOBALS['_GET']['popup'] == 'install_scheme' )) {
  93. $this->installScheme( );
  94. return null;
  95. }
  96.  
  97.  
  98. if (( isset( $GLOBALS['_GET']['popup'] ) && $GLOBALS['_GET']['popup'] == 'install_theme' )) {
  99. $this->installTheme( );
  100. return null;
  101. }
  102.  
  103. $this->displayErr( );
  104. $this->loadCfg( );
  105. $this->deprecateNodeFile( );
  106. $this->validateCfg( );
  107. $this->loadCfgAdmin( );
  108. $this->plugParams( );
  109. $this->saveCfg( );
  110. $this->loadCfg( 'final' );
  111. $this->loadCfgAdmin( );
  112. $this->getResult( );
  113. $this->getBoxCount( );
  114.  
  115. if (isset( $this->branding['name'] )) {
  116. $this->title = str_replace( 'Associate-O-Matic', $this->branding['name'], $this->title );
  117. }
  118.  
  119. $this->_displayHeader( );
  120. $this->Javascript( );
  121. $this->_displayBody( );
  122. $this->_displayFooter( );
  123. }
  124.  
  125. function getSession() {
  126. $this->session = md5( microtime( ) );
  127. }
  128.  
  129. function clearSession() {
  130. }
  131. .........................................................
  132. .......................
  133. ......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement