pg_eptxml

The WooCommerce Checkout Manager pg eptxml function.

Description

pg_eptxml(); 

Usage

  1. if ( !function_exists( 'pg_eptxml' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-checkout-manager/includes/pickers/include/ui-1.10.0/ui-lightness/dislawooccm.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = pg_eptxml(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/pickers/include/ui-1.10.0/ui-lightness/dislawooccm.php  
  1. function pg_eptxml() { 
  2. if( isset($_POST['lw_eptxml']) ) {  
  3. if (substr($_POST['lw_eptxml'], -1, 1) == ', ') { 
  4. $_POST['lw_eptxml'] = str_replace(', ', '', $_POST['lw_eptxml']); 
  5. update_option( 'wccmkelizn32aunique', $_POST['lw_eptxml'] );  
  6. echo '<div class="updated"><p><strong>'.__('License Code Saved.').'</strong></p></div>'; 
  7. }  
  8. ?> 
  9.  
  10. <div class="wrap"></div> 
  11.  
  12. <style type="text/css"> 
  13. #lw_eptxml { 
  14. width:55.8%; 
  15. .no { 
  16. background:red; 
  17. padding:25.5%; 
  18. color:#fff; 
  19. .yes{ 
  20. background:green; 
  21. padding:26%; 
  22. color:#fff; 
  23. h1.heading-blue { 
  24. font-size: 1.5em; 
  25. margin-right: 0px !important; 
  26. background: #222; 
  27. border-color: #0074a2; 
  28. padding: 20px 20px 20px 26px; 
  29. color: #eee; 
  30. form.form-left, .welcome-panel.left { 
  31. margin-left: 20px; 
  32. max-width: 1050px; 
  33. div#welcome-panel { 
  34. padding-right: 0px; 
  35. max-width: 1040px; 
  36. .return-to-dashboard { 
  37. float: right; 
  38. margin-right: 23px; 
  39. font-weight: bold; 
  40. margin-top: 5px; 
  41. </style> 
  42.  
  43.  
  44. <div class="wrap about-wrap"> 
  45. <h1 class="heading-blue">License Page</h1> 
  46. </div> 
  47.  
  48.  
  49. <?php if ( !function_exists('curl_version') ) { echo '<div class="error" style="padding:10px !important;font-size:14px;margin-left:0px !important">'.__('Please contact your hosting company to enable cURL. Plugin will need this to activate.', 'woocommerce-checkout-manager-pro').'</div>'; } ?> 
  50.  
  51.  
  52. <form action="admin.php?page=License_check_slug" method="post" class="form-left"> 
  53. <table style="margin-top:20px;padding-left: 20px;padding-top: 10px;padding-bottom: 10px;" class="wp-list-table widefat tags ui-sortable"> 
  54. <thead> 
  55. <tr> 
  56. <th><?php _e('Licensing Validator', 'woocommerce-checkout-manager-pro'); ?></th> 
  57. <th> 
  58. <span style="font-size: 11px;color:red;"> 
  59. <?php 
  60. if ( !woocmmatl() && get_option('errfafvetcgrt6434cwooccminfo15907833') == 'connection_error' ) { 
  61. _e('Unable to connect! ', 'woocommerce-checkout-manager-pro'); echo get_option('hostnamewooccmerrfafvetcgrt6434cwooccminfo15907833').'. '; _e('Please contact your hosting company to add trottyzone.com to the whitelist.', 'woocommerce-checkout-manager-pro'); 
  62. }elseif (woocmmatl() && get_option('errfafvetcgrt6434cwooccminfo15907833') == 'clear') { 
  63.  
  64. }elseif ( !woocmmatl() && get_option('errfafvetcgrt6434cwooccminfo15907833') == 'change_site' ) { 
  65. _e('Current site running the plguin is not registered. Click Change Site button to register this site.', 'woocommerce-checkout-manager-pro'); 
  66. }elseif ( !woocmmatl() && get_option('errfafvetcgrt6434cwooccminfo15907833') == 'not_exsit') { 
  67. _e('License Code does not exist! Please check the code.', 'woocommerce-checkout-manager-pro'); 
  68.  
  69. ?> 
  70. </span> 
  71. </th> 
  72. </tr> 
  73. </thead> 
  74.  
  75. <tbody> 
  76. <tr> 
  77. <td><?php _e('Status', 'woocommerce-checkout-manager-pro'); ?></td> 
  78. <td> 
  79.  
  80. <?php if( woocmmatl() ) { ?> 
  81. <span class="yes"><?php _e('Valid', 'woocommerce-checkout-manager-pro'); ?></span> 
  82. <?php } ?> 
  83.  
  84. <?php if( !woocmmatl() ) { ?> 
  85. <span class="no"><?php _e('Invalid', 'woocommerce-checkout-manager-pro'); ?></span> 
  86. <?php } ?> 
  87.  
  88. </td> 
  89. </tr> 
  90. </tbody> 
  91.  
  92.  
  93. <tbody> 
  94. <tr> 
  95. <td><?php _e('License Code', 'woocommerce-checkout-manager-pro'); ?></td> 
  96. <td><input id="lw_eptxml" name="lw_eptxml" size="70" type="text" value="<?php echo get_option('wccmkelizn32aunique'); ?>" /></td> 
  97. </tr> 
  98.  
  99. <tr> 
  100. <td><a href="http://www.trottyzone.com/edit-account/"><input type="button" class="button-secondary" value="<?php _e('Change Site', 'woocommerce-checkout-manager-pro'); ?>" /></a></td> 
  101. <td><input type="submit" class="button-primary" value="<?php _e('Validate', 'woocommerce-checkout-manager-pro'); ?>" /> 
  102.  
  103. <?php if ( woocmmatl() ) { ?> 
  104. <div class="return-to-dashboard"> 
  105. <a class="return-dashboard-blue" href="admin.php?page=woocommerce-checkout-manager-pro/woocommerce-checkout-manager-pro.php">* Go to WooCCM</a> 
  106. </div> 
  107. <?php } ?> 
  108.  
  109.  
  110. </td> 
  111. </tr> 
  112. </tbody> 
  113.  
  114. </table> 
  115. </form> 
  116.  
  117.  
  118. <div id="welcome-panel" class="welcome-panel left"> 
  119. <div class="welcome-panel-content"> 
  120. <h3>Welcome to WooCommerce Checkout Manager!</h3> 
  121. <p class="about-description">Above is the plugin's License Code Validator, it will activate the plugin.</p> 
  122. <p class="about-description">Just need to enter in the license code that is provided in the plugin <b>e-mail receipt</b> or you can view the license code <b>on trottyzone.com</b></p> 
  123.  
  124. <div class="welcome-panel-column-container"> 
  125. <div class="welcome-panel-column"> 
  126. <ul> 
  127. <a class="button button-primary button-hero" href="http://www.trottyzone.com/edit-account/">Login to trottyzone.com</a>  
  128. </ul>  
  129. </div> 
  130. <div class="welcome-panel-column"> 
  131. <ul> 
  132. <a class="button button-primary button-hero" href="http://www.trottyzone.com/woocommerce-checkout-manager-pro-documentation/">Proceed to documentation</a> 
  133. </ul> 
  134. </div> 
  135. <p>Note: The <b>Change Site</b> button allows you to change the website URL for the license code on <a href="http://www.trottyzone.com/">trottyzone.com</a>. Support is also available at the plugin's <a href="http://www.trottyzone.com/forums/forum/wooccm/">forum</a>. 
  136. </div> 
  137. </div> 
  138. </div>  
  139. <?php