Backend home page - "Search for a new Joomla version" restricted access

Locked
User avatar
eelziere
Joomla! Apprentice
Joomla! Apprentice
Posts: 23
Joined: Mon Aug 28, 2006 10:04 pm

Backend home page - "Search for a new Joomla version" restricted access

Post by eelziere » Fri Oct 13, 2006 11:37 am

Hi All,

In version 1.0.11, a new functionality has been added to show you how old your Joomla version is
and to let you search for a newer version.
This is great, but I think that managers should not be able to access this functionality, i.e. only super administrators
and administrators should be able.

So I suggest to modify the josVersionCheck function located into the includes/admin.php file the following way:

Code: Select all

/*
 * Added 1.0.11
 */
function josVersionCheck($width='95%',$always=1) {
    global $my;
 
    $_VERSION = new joomlaVersion();				 	
    $versioninfo = $_VERSION->RELEASE .'.'. $_VERSION->DEV_LEVEL .' '. $_VERSION->DEV_STATUS;
	
    $link 	= 'http://www.joomla.org/content/blogcategory/32/66/';
    $status	= 'status=yes,toolbar=yes,scrollbars=yes,titlebar=yes,menubar=yes,resizable=yes,directories=yes,location=yes';
	
    $release = strtotime($_VERSION->RELDATE);
    $now	= strtotime('now');
    $age	= ($now - $release) / 86400;	
    $age	= round($age);	
	
    $check = 0;
    if ($my->usertype == 'Super Administrator' || $my->usertype == 'Administrator') {
        if ($always) {
            if ($age > 1) {
                $check = 1;
            } else {
                $check = 0;			
            }
        } else {
            if ($age > 27) {
                $check = 1;
            } else {
                $check = 0;			
            }
        }
    }
	
    if ($check) {
        /* AND SO ON. . . */
    }
}
I hope this will make sense to you guys...

Cheers,
EE.

User avatar
bzoellers
Joomla! Explorer
Joomla! Explorer
Posts: 402
Joined: Sat Oct 07, 2006 6:21 pm
Location: Pikeville, KY
Contact:

Re: Backend home page - "Search for a new Joomla version" restricted access

Post by bzoellers » Sun Oct 15, 2006 3:34 am

not trying to argue, but does it really matter, all it does it takes them to joomla.org, its not like they can upgrade joomla by clicking the button

or are you just saying for the 'look of it'


Locked

Return to “Wishlist Archives - Archived”