modified eCommerce Shopsoftware http://www.modified-shop.org Copyright (c) 2009 - 2013 [www.modified-shop.org] ----------------------------------------------------------------------------------------- Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ require 'includes/application_top.php'; // include needed classes require_once DIR_FS_EXTERNAL . 'paypal/classes/PayPalAdmin.php'; $paypal = new PayPalAdmin(); if (isset($_GET['action'])) { switch ($_GET['action']) { case 'delete': $paypal->delete_profile($_GET['id']); xtc_redirect(xtc_href_link(basename($PHP_SELF))); break; case 'update': $paypal->update_profile($_POST['config']); xtc_redirect(xtc_href_link(basename($PHP_SELF))); break; case 'insert': $paypal->create_profile($_POST['config']); xtc_redirect(xtc_href_link(basename($PHP_SELF))); break; } } $locale_code_array = array(array('id' => 'DE', 'text' => 'DE'), array('id' => 'AU', 'text' => 'AU'), array('id' => 'AT', 'text' => 'AT'), array('id' => 'BE', 'text' => 'BE'), array('id' => 'BR', 'text' => 'BR'), array('id' => 'CA', 'text' => 'CA'), array('id' => 'CH', 'text' => 'CH'), array('id' => 'CN', 'text' => 'CN'), array('id' => 'ES', 'text' => 'ES'), array('id' => 'FR', 'text' => 'FR'), array('id' => 'GB', 'text' => 'GB'), array('id' => 'IT', 'text' => 'IT'), array('id' => 'NL', 'text' => 'NL'), array('id' => 'PL', 'text' => 'PL'), array('id' => 'PT', 'text' => 'PT'), array('id' => 'RU', 'text' => 'RU'), array('id' => 'US', 'text' => 'US')); $status_array = array(array('id' => '1', 'text' => YES), array('id' => '0', 'text' => NO)); $landingpage_array = array(array('id' => 'Login', 'text' => 'Login'), array('id' => 'Billing', 'text' => 'Billing'));