Welcome to Geeklog, Anonymous Thursday, May 30 2024 @ 04:16 pm EDT

Geeklog Forums

Wierd Behavior with Admin Home Links

Status: offline


Forum User
Registered: 03/05/03
Posts: 30
Location:North Carolina
I have a couple of sites hosted on the same server and am have found a weird behavior.

The server is apache on linux.

The "Admin Home" links on each admin page was returning the correct link, but when clicked was going to the other site. The issue is that the $_ENV["SERVER_NAME"] has not been changed in the virtual host block by my webhost.

The link http://sitename2.com/admin will go to the site in the $SERVER_NAME
The link http://sitename2.com/admin/ will go to the correct place

I noticed that this was not a problem in any of the other links to the admin blocks, just the links to the admin home, because the other links directly address the admin pages.

After looking through the code, I noticed that in each admin block, the code that creates the "Admin Home" link looks like the following

Text Formatted Code

array('url' => $_CONF['site_admin_url'],
    'text' => $LANG_ADMIN['admin_home'])


What do the developers think about changing the code to this?

Text Formatted Code

 array('url' => $_CONF['site_admin_url'] . "/",
      'text' => $LANG_ADMIN['admin_home'])
array('url' => $_CONF['site_admin_url'] . "/moderation.php",
    'text' => $LANG_ADMIN['admin_home'])


I know this does not affect many people, but it would seem like the correct behavior.

I work for a Wilmington NC Attorney

All times are EDT. The time is now 04:16 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