Subject: Loged in users can see "admins Only" Block

Posted on: 17/02/04 01:06pm
By: Bananiel

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

Loged in users can see "admins Only" Block

Posted on: 18/02/04 02:16am
By: Dirk

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

Loged in users can see "admins Only" Block

Posted on: 18/02/04 05:23pm
By: Bananiel

and where do i need to search for that option ?

Thanx

Loged in users can see "admins Only" Block

Posted on: 19/02/04 01:55am
By: Dirk

In the functions.inc of that plugin, /path/to/geeklog/plugins/geekbook/

bye, Dirk

Loged in users can see "admins Only" Block

Posted on: 19/02/04 06:24am
By: Bananiel

i took a look there and that says :

/**
* 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 :'(

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=30708