99 lines
3.9 KiB
PHP
Executable File
99 lines
3.9 KiB
PHP
Executable File
<?php
|
|
/*
|
|
+--------------------------------------------------------------------------
|
|
| CubeCart 4
|
|
| ========================================
|
|
| CubeCart is a Trade Mark of Devellion Limited
|
|
| Copyright Devellion Limited 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
|
|
| Email: info (at) cubecart (dot) com
|
|
| License Type: CubeCart is NOT Open Source Software and Limitations Apply
|
|
| Licence Info: http://www.cubecart.com/v4-software-license
|
|
+--------------------------------------------------------------------------
|
|
| index.inc.php
|
|
| ========================================
|
|
| Configure iDevAffiliate
|
|
+--------------------------------------------------------------------------
|
|
*/
|
|
|
|
|
|
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.idevdirect.com/affiliates/idevaffiliate.php?id=370"><img src="modules/<?php echo $moduleType; ?>/<?php echo $moduleName; ?>/admin/logo.gif" alt="iDevAffilliate" border="0" title="" /></a></p>
|
|
<?php
|
|
if(isset($msg))
|
|
{
|
|
echo msg($msg);
|
|
}
|
|
?>
|
|
<p class="copyText">"Adding affiliate tracking software to your site is one of the most effective ways to achieve more sales and more traffic!"<br />
|
|
<a href="http://www.idevdirect.com/affiliates/idevaffiliate.php?id=370" target="_blank" class="txtLink">http://www.idevdirect.com</a></p>
|
|
<form action="<?php echo $module['URL']; ?>/admin/setup.php" method="post" enctype="multipart/form-data" name="login" target="_blank" id="login">
|
|
<table border="0" cellspacing="1" cellpadding="3" class="mainTable">
|
|
<tr>
|
|
<td colspan="2" class="tdTitle">Login to iDevAffiliate (Opens in new window) </td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" class="tdText">Admin Username:</td>
|
|
<td class="tdText"><input type="text" name="aduser" class="textbox" size="20" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="left" class="tdText">Admin Password:</td>
|
|
<td class="tdText"><input type="password" name="adpass" class="textbox" size="20" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right" class="tdText"> </td>
|
|
<td class="tdText"><input type="submit" class="submit" value="Login As Admin" /></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<br />
|
|
<form action="<?php echo $glob['adminFile']; ?>?_g=<?php echo $_GET['_g']; ?>&module=<?php echo $_GET['module']; ?>" method="post" enctype="multipart/form-data">
|
|
<table border="0" cellspacing="1" 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" valign="top" class="tdText"><strong>URL to iDevAffiliate: </strong></td>
|
|
<td class="tdText"><input type="text" name="module[URL]" value="<?php echo $module['URL']; ?>" class="textbox" size="40" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right" class="tdText"> </td>
|
|
<td class="tdText"><input type="submit" class="submit" value="Edit Config" /></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|