Welcome to Geeklog, Anonymous Tuesday, November 26 2024 @ 03:31 pm EST

Geeklog Forums

Loged in users can see "admins Only" Block


Status: offline

Bananiel

Forum User
Newbie
Registered: 02/16/04
Posts: 9
brainy
hi i just installed Geekbook and now loged in users can see the Geekbook admin options in the "Admins Only" block.
so they can also add,modify and remove GeekBook msgs

how is this possible and how do i fix this ?

*its looks they belong to the root user group but only for GeekBook*

Greetz Daniel
http://www.bananiel.nl/
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
That's a bug in the GeekBook then. It should be checking if the current user is an Admin before returning that option to Geeklog.

Shouldn't be too hard to fix. It should have a function plugin_getadminoption_geekbook which should either return that option or return nothing at all.

bye, Dirk
 Quote

Status: offline

Bananiel

Forum User
Newbie
Registered: 02/16/04
Posts: 9
and where do i need to search for that option ?

Thanx
http://www.bananiel.nl/
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
In the functions.inc of that plugin, /path/to/geeklog/plugins/geekbook/

bye, Dirk
 Quote

Status: offline

Bananiel

Forum User
Newbie
Registered: 02/16/04
Posts: 9
i took a look there and that says :

Text Formatted Code
/**
* returns the administrative option for this plugin
*
*/
function plugin_getadminoption_geekbook()
{
    global $LANG_GKB, $_CONF;
    $result=mysql_query("SELECT name, date, email, website, comment, yahoo, aolim, icq, msn FROM geekbook");

    $results = mysql_query("SELECT * FROM geekbook");
    $endresult = mysql_num_rows($results);
    $siteurl = $_CONF['site_url'];

        return array($LANG_GKB['geekbook'], $_CONF['site_url'] . '/admin/plugins/GeekBook/index.php', $endresult);
}
 


looks ok to me but im just a noob on this :'(
http://www.bananiel.nl/
 Quote

All times are EST. The time is now 03:31 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content