Pyromanci
12-07-2006, 04:42 PM
Well, its been a while since I posted. So I post this code mod I have made.
This is a mod for the admin section of SD. It should function with just about any version. It also require a min of PHP 4 on the server. I made this mod because I needed to access the mysqldump commands, because my host times out during and php based sql exports because they take longer then 60 seconds. So I figured I just make a console access page for my SD admin.
Install Instructions:
Upload the attached file and place it in your main admin folder.
Then open your menu.php file and add a menu print function call to the file. Here is how i did it (code is from SD 2.4)
// admin menus
if($userinfo['adminaccess'])
{
// ########################## Menu_Settings ##########################
StartMenu();
PrintMenuTitle('Settings', true);
PrintMenuRow('mainsettings.php', 'Main Settings');
PrintMenuRow('skins.php', 'Skins');
PrintMenuRow('plugins.php', 'Plugins');
if($mainsettings['sdversiontype'] == 'Pro')
{
PrintMenuRow('forumintegration.php', 'Forum Integration');
}
PrintMenuRow('languages.php', 'Languages');
PrintMenuRow('comments.php', 'Comments');
EndBlock();
PrintMenuTitle('Admin', true);
PrintMenuRow('database.php', 'Database');
PrintMenuRow('info.php', 'Server Info');
PrintMenuRow('syslog.php', 'System Log');
PrintMenuRow('console.php', 'Server Console'); // <-------- This is the call for this mod
EndBlock();
EndMenu();
Once that is done go into your admin panel and move to that page. To run a simple test to make sure everything is working. Use the command whoami.
Let me know what you think. If you like things like this I do have more. I even have one that allows you to change the meta description for each catagory.
This is a mod for the admin section of SD. It should function with just about any version. It also require a min of PHP 4 on the server. I made this mod because I needed to access the mysqldump commands, because my host times out during and php based sql exports because they take longer then 60 seconds. So I figured I just make a console access page for my SD admin.
Install Instructions:
Upload the attached file and place it in your main admin folder.
Then open your menu.php file and add a menu print function call to the file. Here is how i did it (code is from SD 2.4)
// admin menus
if($userinfo['adminaccess'])
{
// ########################## Menu_Settings ##########################
StartMenu();
PrintMenuTitle('Settings', true);
PrintMenuRow('mainsettings.php', 'Main Settings');
PrintMenuRow('skins.php', 'Skins');
PrintMenuRow('plugins.php', 'Plugins');
if($mainsettings['sdversiontype'] == 'Pro')
{
PrintMenuRow('forumintegration.php', 'Forum Integration');
}
PrintMenuRow('languages.php', 'Languages');
PrintMenuRow('comments.php', 'Comments');
EndBlock();
PrintMenuTitle('Admin', true);
PrintMenuRow('database.php', 'Database');
PrintMenuRow('info.php', 'Server Info');
PrintMenuRow('syslog.php', 'System Log');
PrintMenuRow('console.php', 'Server Console'); // <-------- This is the call for this mod
EndBlock();
EndMenu();
Once that is done go into your admin panel and move to that page. To run a simple test to make sure everything is working. Use the command whoami.
Let me know what you think. If you like things like this I do have more. I even have one that allows you to change the meta description for each catagory.