include_once "../../../../includes/functions.inc.php"; $config = fetchDbConfig("config"); include_once "../../../../language/" . $config['defaultLang'] . "/lang.inc.php"; $enableSSl = 1; include_once "../../../../includes/sslSwitch.inc.php"; include "../../../includes/auth.inc.php"; include "../../../includes/header.inc.php"; if (permission("settings", "read") == FALSE) { header("Location: " . $GLOBALS['rootRel'] . "admin/401.php"); exit; } if (isset($_POST['module'])) { include "../../status.php"; include "../../../includes/functions.inc.php"; $module = fetchDbConfig($_GET['folder']); $msg = writeDbConf($_POST['module'], $_GET['folder'], $module); } $module = fetchDbConfig($_GET['folder']); ?> <p><a href="https://pagseguro.uol.com.br/" title="PagSeguro"><img src="logo.gif" alt="PagSeguro" border="0" /></a></p> <?php if (isset($msg)) { echo stripslashes($msg); } ?> <p class="copyText">Este é o gateway de pagamento PagSeguro para CubeCart. </p> <form action="<?php echo $GLOBALS['rootRel']; ?>
* * @copyright Copyright 2008, PayFast (Pty) Ltd * @copyright Portions Copyright Devellion Limited 2006 * @author Jonathan Smit */ // {{{ Standard CubeCart permission("settings", "read", $halt = TRUE); require $glob['adminFolder'] . CC_DS . 'includes' . CC_DS . 'header.inc.php'; if (isset($_POST['module'])) { require CC_ROOT_DIR . CC_DS . 'modules' . CC_DS . 'status.inc.php'; $cache = new cache("config." . $moduleName); $cache->clearCache(); //$module = fetchDbConfig($moduleName); // Uncomment this is you wish to merge old config with new $module = array(); // Comment this out if you don't want the old config to merge with new $msg = writeDbConf($_POST['module'], $moduleName, $module); } $module = fetchDbConfig($moduleName); // }}} // {{{ PayFast $formActionUrl = $glob['adminFile'] . '?_g=' . $_GET['_g'] . '&module=' . $_GET['module']; $methodFsRoot = 'modules/' . $moduleType . '/' . $moduleName; $default = array('desc' => 'PayFast', 'merchant_id' => '', 'merchant_key' => '', 'server' => 0, 'default' => 1, 'status' => 0, 'debug_log' => 0, 'debug_email' => ''); $data = array(); foreach ($default as $key => $val) { $data[$key] = !isset($module[$key]) ? $default[$key] : $module[$key]; } // }}} ?> <!-- Initial Paragraph -->