Files
2017-03-02 20:30:40 -06:00

109 lines
4.4 KiB
PHP

<?php
/*
+--------------------------------------------------------------------------
| CubeCart 4
| ========================================
| CubeCart is a Trade Mark of Devellion Limited
| Copyright Devellion Limited 2005 - 2006. All rights reserved.
| Devellion Limited,
| 5 Bridge Street,
| Bishops Stortford,
| HERTFORDSHIRE.
| CM23 2JU
| UNITED KINGDOM
| http://www.devellion.com
| UK Private Limited Company No. 5323904
| ========================================
| Web: http://www.cubecart.com
| Date: Thursday, 17th August 2006
| 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
+--------------------------------------------------------------------------
| index.inc.php
| ========================================
| Configure Chronopay
+--------------------------------------------------------------------------
*/
if(!defined('CC_INI_SET')){ die("Access Denied"); }
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);
?>
<p><a href="http://www.chronopay.com/"><img src="modules/<?php echo $moduleType; ?>/<?php echo $moduleName; ?>/admin/logo.gif" alt="" border="0" title="" /></a></p>
<?php
if(isset($msg)){
echo stripslashes($msg);
}
?>
<p class="copyText">&quot;a new gear of e-commerce.&quot;</p>
<form action="<?php echo $glob['adminFile']; ?>?_g=<?php echo $_GET['_g']; ?>&amp;module=<?php echo $_GET['module']; ?>" method="post" enctype="multipart/form-data">
<table border="0" cellspacing="0" cellpadding="3" class="mainTable">
<tr>
<td colspan="2" class="tdTitle">Configuration Settings </td>
</tr>
<tr>
<td align="left" class="tdText"><strong>Status:</strong></td>
<td class="tdText">
<select name="module[status]">
<option value="1" <?php if($module['status']==1) echo "selected='selected'"; ?>>Enabled</option>
<option value="0" <?php if($module['status']==0) echo "selected='selected'"; ?>>Disabled</option>
</select>
</td>
</tr>
<tr>
<td align="left" class="tdText"><strong>Description:</strong>
</td>
<td class="tdText"><input type="text" name="module[desc]" value="<?php if( $module['desc']!='' ) echo $module['desc']; else echo 'ChronoPay'; ?>" class="textbox" size="30" /></td>
</tr>
<tr>
<td align="left" class="tdText"><strong>Product ID:</strong></td>
<td class="tdText"><input type="text" name="module[productId]" value="<?php echo $module['productId']; ?>" class="textbox" size="30" /></td>
</tr>
<tr>
<td align="left" class="tdText"><strong>Product Name:</strong></td>
<td class="tdText"><input type="text" name="module[productName]" value="<?php echo $module['productName']; ?>" class="textbox" size="30" /></td>
</tr>
<tr>
<td align="left" class="tdText"><strong>Currency:</strong></td>
<td class="tdText">Ensure the "Default Currency" set in the "<a href="<?php echo $glob['adminFile']; ?>?_g=settings/index" class="txtLink">General Settings</a>" is the same as the currency that
ChronoPay will process the order in.</td>
</tr>
<tr>
<td align="left" class="tdText"><strong>Default:</strong></td>
<td class="tdText">
<select name="module[default]">
<option value="1" <?php if($module['default'] == 1) echo "selected='selected'"; ?>>Yes</option>
<option value="0" <?php if($module['default'] == 0) echo "selected='selected'"; ?>>No</option>
</select>
</td>
</tr>
<!--
<tr>
<td align="left" class="tdText"><strong>Response URL:</strong><br/>This has to be set in the Chronopay Product <br/>in the Chronopay control panel.</td>
<td class="tdText">
<input type="textbox" name="relayUrl" size="40" value="<?php echo $GLOBALS['storeURL']."/index.php?_g=rm&amp;type=gateway&amp;cmd=process&amp;module=Chronopay";?>" />
</td>
</tr>
-->
<tr>
<td align="right" class="tdText">&nbsp;</td>
<td class="tdText"><input type="submit" class="submit" value="Edit Config" /></td>
</tr>
</table>
</form>