Пример #1
0
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'];
?>
admin/modules/<?php 
echo $_GET['module'];
Пример #2
0
|   UNITED KINGDOM
|   http://www.devellion.com
|	UK Private Limited Company No. 5323904
|   ========================================
|   Web: http://www.cubecart.com
|   Date: Tuesday, 17th July 2007
|   Email: sales (at) cubecart (dot) com
|	License Type: CubeCart is NOT Open Source Software and Limitations Apply 
|   Licence Info: http://www.cubecart.com/site/faq/license.php
+--------------------------------------------------------------------------
|	transfer.php
|   ========================================
|	Funções para o gateway de pagamento PagSeguro
+--------------------------------------------------------------------------
*/
$module = fetchDbConfig("PagSeguro");
require_once "biblioteca_pagseguro_v0.21/pgs.php";
$formAction = "https://pagseguro.uol.com.br/security/webpagamentos/webpagto.aspx";
$formMethod = "post";
$formTarget = "_self";
function repeatVars()
{
    return FALSE;
}
function fixedVars()
{
    global $glob, $db, $module, $basket, $ccUserData, $cart_order_id, $config, $GLOBALS, $pgs;
    $curr = $db->select("SELECT * FROM " . $glob['dbprefix'] . "CubeCart_currencies ORDER BY name ASC");
    $fator = 1;
    foreach ($curr as $moeda) {
        if ($moeda["active"] == 1 && $moeda["code"] == $config['defaultCurrency']) {
 * @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'] . '&amp;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 -->
<p>
<a href="http://www.payfast.co.za/" target="_blank">