<?php
//.......................
include "$_SERVER[DOCUMENT_ROOT]/webifycore/inc/protect.php";
include "$_SERVER[DOCUMENT_ROOT]/webifycore/db/mysql.php";

$field = $_GET[field];
$table = $_GET[table];
$q1 = $_GET[q1];
$q2 = $_GET[q2];

//$postvar = $_GET[postvar];
//$_GET[postvar] = mysql_real_escape_string($_GET['postvar']);
//echo $_GET[postvar];

//$sql    = "UPDATE $table SET
//$field  = '$_GET[postvar]' WHERE $q1 = '$q2'";
//$query  = mysql_query($sql) or die(mysql_error());

$sql    = "UPDATE THEMES SET
CLASSCSS  = '$_GET[postvar]' WHERE CLASSNAME = '$field' AND THEMEID = '$q2'";
$query  = mysql_query($sql) or die(mysql_error());
//.......................
?>

<a href="index.php?page=<?php echo $_GET[page]; ?>&id=<?php echo $_GET[id]; ?>" class="deltabutton">Refresh</a>
<a href="index.php?page=<?php echo $_GET[page]; ?>&id=<?php echo $_GET[id]; ?>&designmode=on" class="deltabutton">Design More</a>

