Knowledge Base Navigation

Articles: 51 Categories: 8

KB Article: PHP Nuke Theme Fix

Article:PHP Nuke Theme Fix     Popular
Submitted By:Telli
Date Added:04-27-2004 4:08:37
Hits:9,730



Reset default theme

Upload a theme and now your whole site is shambles? Save this as themefix.php and upload to your root folder next to your mainfile.php and config.php then point your browser to it. If your not using the DeepBlue theme then replace that with your theme name.(One that you know works)
[ Register or login to view links on this board. ]

<?php
require_once("mainfile.php");
$theme= "DeepBlue";
$sql = "UPDATE ".$prefix."_config SET Default_Theme = '".$theme."'";
$result = $db->sql_query($sql);
echo "Thanks for using this fix! Your theme has been reset to ".$theme."";
?>

Current rating: 9.37 by 483 users
Please take one second and rate this article...

Not a Chance 12345678910 Absolutely

Please register or sign-in to post comments.


Jump to a selected article...