vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Moderator management system (https://vborg.vbsupport.ru/showthread.php?t=70850)

Lionel 10-23-2004 03:55 AM

Now, you want to hear the best? I am at home on a different PC, and it tells me unable to add cookies headers already sent on the echo line. When I remove the echo line, the page simply takes forever to load.... or perhaps does not load at all (closed brpwser after 5 minutes)

SaN-DeeP 10-23-2004 04:35 AM

Page generated in 0.51729 seconds with 13 queries [Server Loads: 0.49 0.55 : 0.47]awesome hack :)

sv1cec 10-23-2004 05:00 AM

Quote:

Originally Posted by Kentaurus
That might be the problem.... I have only tested this hack with vb3.0.3, it might not work with 3.0.1. Depending on your server configuration you can get a blank page if you have a php error, like calling a function that didn't exist... can you get the detailed error from the server log or something like that? maybe it is a simple fix. Did you remembered to upload functions_modmanagement.php in the includes directory? You can also try adding something like "Hello" at the very end of the file, if it doesn't print then it is a php error and nothing with the template.

It works fine with 3.0.1, I can assure you.

And again, thanks for a lovely hack. Now, I am awaiting for the alerts to see what they are about, haven't seen one yet.

Rgds

Makador 10-23-2004 12:01 PM

This hack has a major bug. If your Admins dont have the groupid 6 you cant access the page...

/edit:
Hm and changing to this doesn't work:

if (!can_administer('whatever'))
{
print_cp_no_permission();
}

/edit2:
Anybody knows a way to change it in that way, that all people who have access to the admin panel can view it? Because in my case, they are all in a lot of different usergroups.

mtha 10-23-2004 01:33 PM

Quote:

Originally Posted by Makador
This hack has a major bug. If your Admins dont have the groupid 6 you cant access the page...

/edit:
Hm and changing to this doesn't work:

if (!can_administer('whatever'))
{
print_cp_no_permission();
}

/edit2:
Anybody knows a way to change it in that way, that all people who have access to the admin panel can view it? Because in my case, they are all in a lot of different usergroups.

// only administrators can see this page
if (($bbuserinfo['usergroupid'] != 6) AND ($bbuserinfo['usergroupid'] != 5))
{
print_no_permission();
}

Add any group that you want to included in the above IF condition, same way I add
"AND ($bbuserinfo['usergroupid'] != 5)"

Makador 10-23-2004 01:52 PM

Hm I could do that, but I dont want to put everyone who can access the admin panel in one group and especially not as primary group, because they all need different acess to forums and different titles. We got around 400+ Forums, so it is a bit complex ;)

GamerJunk.net 10-23-2004 05:10 PM

Awesome! Great Job!

trackpads 10-23-2004 05:38 PM

Great Hack!!!

Kentaurus 10-23-2004 06:17 PM

Quote:

Originally Posted by Makador
This hack has a major bug. If your Admins dont have the groupid 6 you cant access the page...

/edit:
Hm and changing to this doesn't work:

if (!can_administer('whatever'))
{
print_cp_no_permission();
}

/edit2:
Anybody knows a way to change it in that way, that all people who have access to the admin panel can view it? Because in my case, they are all in a lot of different usergroups.

First of all I would appreciate if you didn't call that a "major bug" because you are going to frighten someone, after reading it I thought it was a security issue, performance issue or something like that :)

Certainly yours is a special setup, by default most people use the 6 as the administrator group and it is also the default. I agree with you that it should be fixed. here it is.

In modmanagement.php change
PHP Code:

if ($bbuserinfo['usergroupid'] != 6)
{
    
print_no_permission();


To this
PHP Code:

if (!($permissions['adminpermissions'] & CANCONTROLPANEL))
{
    
print_no_permission();



Makador 10-23-2004 06:38 PM

Hehe sorry for calling it a major bug and thanks for your help :)
But I also need to change the modmanagement_cron.php. Same here: All users, who can see the adminpanel should get the pm's.


All times are GMT. The time now is 01:36 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01088 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete