Your IP : 216.73.216.235


Current Path : /home/alh/webpayinstaller/
Upload File :
Current File : //home/alh/webpayinstaller/index.php

<?php
include("../config.php");
if($myDB = mysql_connect(DB_HOSTNAME,DB_USERNAME,DB_PASSWORD))
 	mysql_select_db(DB_DATABASE,$myDB);

$PREFIX=DB_PREFIX;
 

$sql="CREATE TABLE  `op_webpay_log` (  `id` int(250) NOT NULL AUTO_INCREMENT,  `order_id` varchar(250) COLLATE utf8_unicode_ci NOT NULL,  `transn_id` varchar(250)  NOT NULL, `pay_ref` varchar(250)  NOT NULL,  `amount` varchar(100)  NOT NULL,  `product_id` text  NOT NULL,  `mac_key` text  NOT NULL,  `validate_url` text  NOT NULL,  `validate_notes` text  NOT NULL,  `addon_notes` text  NOT NULL,  `success_url` text  NOT NULL,  `cancel_url` text  NOT NULL,  `pg_response` text  NOT NULL, `raw_response` text  NOT NULL,  `post_time` varchar(50)  NOT NULL,  PRIMARY KEY (`id`)) COMMENT='Site WebpPay Transaction Log' AUTO_INCREMENT=1";
$sucess=true;
mysql_query($sql) or die("Invalid query: " . mysql_error());
if(mysql_query($sql))
{
	$errormessage[]="<span class='success'>Database Script Installed for trnsaction log</span>";
}
else
{
	$errorerrormessage[]="<span class='error'>Database Script Installation Failure</span>";
	$sucess=false;
}
print_r($errorerrormessage);


?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<title>Interswitch Opencart Installation</title>
</head>
<body>
<style>
*
{
	font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; 	 
	font-size: 12px;
}
.success
{
	font-weight:bold;
	color:green;
}
.error
{
	font-weight:bold;
	color:red;
}
</style>
<table cellspacing="5" cellpadding="5" border="0" width="500" align="center">
<tr>
	<td><CENTER><U><B>Interswitch Opencart Installation</B></U></CENTER></td>
</tr>
<tr>
	<td style="border:1px solid #AEAEAE;background-color: #ECECEC; border-radius:5px;padding:20px;">
	 <?php
	 if($sucess)
	 {
		 echo "<span class='success'>Interswitch Opencart Installation Done Successfully. Please check details below</span>";
	 }
	 else
	 {
		 echo "<span class='error'>Interswitch Opencart Installation Done With Error. Please check details below</span>";
	 }
	 ?>
	 <p><p>
	 
	<ul>
	<?php
	foreach($errorerrormessage as $k=>$v)
	{
		echo "<li>".$v;
	}
	?>
	</ul>
	
	</td>
</tr>
</table>
</body>
</html>