I think this I could handle, for example to wordpress db, but to this completely different script I cant do it, because I cant find the file with adsense code, this code can be changed in my admin panel...
here is the ad header :
<?PHP
//* MyWebMakers Wp-Themes V 1.0 Admin Panel*//
//* Copyright 2007 Agares Media. All rights reserved. *//
//* Developed By Grishma for MyWebMakers.Info *//
require_once("../includes/corefunctions.php"); // Load the AMCMS3 functions
require_once("../includes/db.php"); // Get the database configuration settings & connect to DB.
require_once("../includes/config.php"); // Load the admin's preferences
require_once("./adminfunctions.php"); // Load the AMCMS3 admin functions
$reg_user = am_getadminuser($db);
$reg_pass = am_getadminpass($db);
$ipaddress = getenv("REMOTE_ADDR");
if (isset($_COOKIE['AMCMS31admin'])) {
if ($_COOKIE['AMCMS31admin'] == $reg_pass) {
$addata = am_queries($db, 'SELECT * FROM AMCMS_pref WHERE prefkey=5;');
if ($addata[0][3] == 'google_ad_type = "text_image";') {$typesel='(SELECTED) Text & Image';}
if ($addata[0][3] == 'google_ad_type = "text";') {$typesel='(SELECTED) Text Only';}
if ($addata[0][3] == 'google_ad_type = "image";') {$typesel='(SELECTED) Image Only';}
if (substr($addata[0][4], 12, 2) == 'al') {$typesel='(SELECTED) Link Unit';}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head>
<script type="text/javascript" src="../includes/jquery.js"></script>
<script type="text/javascript" src="../includes/interface.js"></script>
<script type="text/javascript">
function setOptions(chosen) {
var selbox = document.headerad.adsize;
selbox.options.length = 0;
if (chosen == " ") {
selbox.options[selbox.options.length] = new Option('Please select one of the options above first',' ');
}
if (chosen == "preselected") {
selbox.options[selbox.options.length] = new Option('(SELECTED) <?PHP echo $addata[0][4];?>',' ');
}
if (chosen == "text_image") {
selbox.options[selbox.options.length] = new Option('HORIZONTAL: Leaderboard 728x90','728x90_as');
selbox.options[selbox.options.length] = new Option('HORIZONTAL: Banner 468x60','468x60_as');
selbox.options[selbox.options.length] = new Option('HORIZONTAL: Half Banner 234x60','234x60_as');
selbox.options[selbox.options.length] = new Option('VERTICAL: Wideskyscraper 160x600','160x600_as');
selbox.options[selbox.options.length] = new Option('VERTICAL: Skyscraper 120x600','120x600_as');
selbox.options[selbox.options.length] = new Option('VERTICAL: Vertical Banner 120x240','120x240_as');
selbox.options[selbox.options.length] = new Option('RECTANGLE: Large Rectangle 336x280','336x280_as');
selbox.options[selbox.options.length] = new Option('RECTANGLE: Medium Rectangle 300x250','300x250_as');
selbox.options[selbox.options.length] = new Option('RECTANGLE: Small Rectangle 180x150','180x150_as');
selbox.options[selbox.options.length] = new Option('SQUARE: Square 250x250','250x250_as');
selbox.options[selbox.options.length] = new Option('SQUARE: Small Square 200x200','200x200_as');
selbox.options[selbox.options.length] = new Option('SQUARE: Button 125x125','125x125_as');
}
if (chosen == "text") {
selbox.options[selbox.options.length] = new Option('HORIZONTAL: Leaderboard 728x90','728x90_as');
selbox.options[selbox.options.length] = new Option('HORIZONTAL: Banner 468x60','468x60_as');
selbox.options[selbox.options.length] = new Option('HORIZONTAL: Half Banner 234x60','234x60_as');
selbox.options[selbox.options.length] = new Option('VERTICAL: Wideskyscraper 160x600','160x600_as');
selbox.options[selbox.options.length] = new Option('VERTICAL: Skyscraper 120x600','120x600_as');
selbox.options[selbox.options.length] = new Option('VERTICAL: Vertical Banner 120x240','120x240_as');
selbox.options[selbox.options.length] = new Option('RECTANGLE: Large Rectangle 336x280','336x280_as');
selbox.options[selbox.options.length] = new Option('RECTANGLE: Medium Rectangle 300x250','300x250_as');
selbox.options[selbox.options.length] = new Option('RECTANGLE: Small Rectangle 180x150','180x150_as');
selbox.options[selbox.options.length] = new Option('SQUARE: Square 250x250','250x250_as');
selbox.options[selbox.options.length] = new Option('SQUARE: Small Square 200x200','200x200_as');
selbox.options[selbox.options.length] = new Option('SQUARE: Button 125x125','125x125_as');
}
if (chosen == "image") {
selbox.options[selbox.options.length] = new Option('HORIZONTAL: Leaderboard 728x90','728x90_as');
selbox.options[selbox.options.length] = new Option('HORIZONTAL: Banner 468x60','468x60_as');
selbox.options[selbox.options.length] = new Option('VERTICAL: Wideskyscraper 160x600','160x600_as');
selbox.options[selbox.options.length] = new Option('VERTICAL: Skyscraper 120x600','120x600_as');
selbox.options[selbox.options.length] = new Option('RECTANGLE: Medium Rectangle 300x250','300x250_as');
selbox.options[selbox.options.length] = new Option('SQUARE: Small Square 200x200','200x200_as');
}
if (chosen == "linkunit") {
selbox.options[selbox.options.length] = new Option('120x90 - 5 Links','120x90_0ads_al_s');
selbox.options[selbox.options.length] = new Option('120x90 - 4 Links','120x90_0ads_al');
selbox.options[selbox.options.length] = new Option('160x90 - 5 Links','160x90_0ads_al_s');
selbox.options[selbox.options.length] = new Option('160x90 - 4 Links','160x90_0ads_al');
selbox.options[selbox.options.length] = new Option('180x90 - 5 Links','180x90_0ads_al_s');
selbox.options[selbox.options.length] = new Option('180x90 - 4 Links','180x90_0ads_al');
selbox.options[selbox.options.length] = new Option('200x90 - 5 Links','200x90_0ads_al_s');
selbox.options[selbox.options.length] = new Option('200x90 - 4 Links','200x90_0ads_al');
selbox.options[selbox.options.length] = new Option('468x15 - 5 Links','468x15_0ads_al_s');
selbox.options[selbox.options.length] = new Option('468x15 - 4 Links','468x15_0ads_al');
selbox.options[selbox.options.length] = new Option('728x15 - 5 Links','728x15_0ads_al_s');
selbox.options[selbox.options.length] = new Option('728x15 - 4 Links','728x15_0ads_al');
}
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="subwindow.css" /><link rel="stylesheet" type="text/css" href="colorpicker.css" />
<script type="text/javascript">
var baseColor = {r:255,g:0,b:0};
var currentColor = {r:255,g:255,b:255};
var lastValues = [0,0];
$(document).ready(
function()
{
$('#color').Slider(
{
accept : '#colorIndic',
onSlide : function( cordx, cordy,x, y)
{
lastValues = [parseInt(cordx * 255/100),parseInt(cordy * 255/100)];
setGradientColor();
},
onChange : function()
{
document.getElementById('oldColor').style.backgrou ndColor = 'rgb(' + currentColor.r + ',' + currentColor.g + ',' + currentColor.b + ')';
}
}
);
$('#hue').Slider(
{
accept : '#hueIndic',
onSlide : function( cordx, cordy,x, y)
{
setVertColor(parseInt(cordy * 255 / 100));
setGradientColor();
},
onChange : function()
{
document.getElementById('oldColor').style.backgrou ndColor = 'rgb(' + currentColor.r + ',' + currentColor.g + ',' + currentColor.b + ')';
}
}
);
}
);