<?php
@session_start();
?>
<!-- Welcome to the scripts database of HIOX INDIA -->
<!-- This tool is developed and a copyright -->
<!-- product of HIOX INDIA. -->
<!-- For more information visit http://www.hscripts.com -->
<html>
<head>
</head>
<?php
include "authheader.php";
if($block != "true")
{
include "heade.php"
?>
<!-- content row -->
<table width=95% algin=center border=1 cellpadding=0 cellspacing=0 bgcolor=adccaa>
<tr height=100%>
<td height=100% class=maintext align=center>
<?php
$asd = $_POST['addd'];
if($asd == "addp")
{
$height = $_POST['height'];
$width = $_POST['width'];
$speed = $_POST['speed'];
$bcolor = $_POST['bcolor'];
if($height == "" || $width=="" || $speed=="" || $bcolor=="")
{
echo "<font color=red>Empty Values Not allowed</font><br><br>";
}
else if(intval($height) == 0 || intval($width)==0 || intval($speed)==0)
{
echo "<font color=red>Invalid argumnets passed. Please use proper integer values</font><br><br>";
}
else
{
// add ad code here
$open = fopen("props.php", "w");
fwrite($open, "<?php\n\n");
fwrite($open, "$"."imageWidth=\"".$width."\";");
fwrite($open, "\n");
fwrite($open, "$"."imageHeight=\"".$height."\";");
fwrite($open, "\n");
fwrite($open, "$"."borderColor=\"".$bcolor."\";");
fwrite($open, "\n");
fwrite($open, "$"."rotatorSpeed=\"".$speed."\";");
fwrite($open, "\n ?>");
fclose($open);
// add ad code here
echo "<font color=green><b>Updated Successfully</b></font><br><br>";
}
}
?>
Use this form to update campaign properties.
<?php include "props.php"; ?>
<table class=maintext bgcolor=acbefa style="color:000000;">
<form name=addf action="<?php echo $PHP_SELF;?>" method=POST>
<input name=addd type=hidden value=addp>
<tr><td>Banner Display Height</td><td><input name=height type=text size=10 value="<?php echo($imageHeight); ?>"></td></tr>
<tr><td></td><td>Ex: 200</td></tr>
<tr><td> </td><td> </td></tr>
<tr><td>Banner Display Width</td><td><input name=width type=text size=10 value="<?php echo($imageWidth); ?>"></td></tr>
<tr><td></td><td>Ex: 200 </td></tr>
<tr><td>Banner Rotation Speed</td><td><input name=speed type=text size=10 value="<?php echo($rotatorSpeed); ?>"></td></tr>
<tr><td></td><td>Ex [in milliseconds]: 1000 </td></tr>
<tr><td>Border Color</td><td><input name=bcolor type=text size=10 value="<?php echo($borderColor); ?>"></td></tr>
<tr><td></td><td>Ex: red or ae34ee</td></tr>
<tr><td></td><td><br><input type=submit value=update></td></tr>
</table>
</td>
</tr>
</table>
</td></tr>
<!-- content row -->
</table>
<!-- main table -->
</td></tr>
</table>
<?php
}
?>
</body>
</html>
<!-- Welcome to the scripts database of HIOX INDIA -->
<!-- This tool is developed and a copyright -->
<!-- product of HIOX INDIA. -->
<!-- For more information visit http://www.hscripts.com -->