bestbuildpc: Forums
 

 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hacking phpbb color mod for RavenNuke
 
 
Post new topic   Reply to topic    bestbuildpc Forum Index -> RavenNuke -> Mods and Hacks
View previous topic :: View next topic  
Author Message
bestbuildpc
Site Admin
Site Admin


Joined: Jun 30, 2012
Posts: 213
Location: NL

PostPosted: Mon Sep 30, 2013 9:58    Post subject: Hacking phpbb color mod for RavenNuke Reply with quote

This hack will change the colors for your admin and moderators for your phpbb forums

Code:
<?php


/****************************************************************/
/***************Hacking Color Mod********************************/
/*          ..::phpbb themes color mod by hicux::..             */
/****************************************************************/
if (!defined('PHP_EOL')) define ('PHP_EOL', strtoupper(substr(PHP_OS,0,3) == 'WIN') ? "\r\n" : "\n");

require_once 'mainfile.php';
global $admin;
if (!is_admin($admin)) { die ('Sorry you are not an administrator, You can not use this hack. Please log into your nuke admin panel..'); }
switch($op) {
default:
include_once 'header.php';
OpenTable();
     echo '<form action="phpbbcolors.php" method="post">' , PHP_EOL
        , '<table align="center" border="0" cellpadding="2" cellspacing="2">' , PHP_EOL
        , '<tr><td>This hack will change the colors for your admin and moderators for your phpbb forums.</td></tr>' , PHP_EOL
        , '<tr><td><b>Backup data tables before going on! [Not neccessary but a precaution :)]</b><br /><br /><i>*How to use : Place the web colors for each font in the text boxes below. ONLY use the number, not the "#". So the only thing to place in the box is like the following... FF0000 .<br /> You can leave blank either of the text box that you don\'t want the color changed.</i></td></tr>' , PHP_EOL
        , '<tr><td>Admin color # <input type="text" name="font3" /> <br /><br />' , PHP_EOL
        , 'Moderator color # <input type="text" name="font2" /> <br /><br />' , PHP_EOL
        , '<input type="hidden" name="op" value="update" />' , PHP_EOL
        , '<input type="submit" value="Change" /></td></tr>' , PHP_EOL
        , '<tr><td><b>Once you have finished with this script, delete it from your server!</b></td></tr>' , PHP_EOL
        , '</table>' , PHP_EOL
        , '</form>' , PHP_EOL;
CloseTable();
  include_once 'footer.php';
break;

case 'update':
require_once 'mainfile.php';
global $prefix, $db;
include_once 'header.php';
OpenTable();
echo 'Installation Status<br /><br />';
if($font3 !=''){
$result = $db->sql_query('UPDATE `' . $prefix . '_bbthemes` SET `fontcolor3` = \'' . $font3 . '\'');
if (!$result) { echo '- Update admin color failed<br /><br />' , PHP_EOL; } else { echo '- Update admin color succeded<br /><br />' , PHP_EOL; }
}
if($font2 !=''){
$result2 = $db->sql_query('UPDATE `' . $prefix . '_bbthemes` SET `fontcolor2` = \'' . $font2 . '\'');
if (!$result2) { echo '- Update Moderator color failed<br /><br />' , PHP_EOL; } else { echo '- Update Moderator color succeded<br /><br />' , PHP_EOL; }
}
CloseTable();
      include_once 'footer.php';
break;
}


Note: This file is validated and clean. Upload it to the root of your server using your favorite ftp. That's folks!
  
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    bestbuildpc Forum Index -> RavenNuke -> Mods and Hacks All times are GMT + 2 Hours
 
 Page 1 of 1

 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001-2008 phpBB Group
 
Forums ©