[SOLVED]Problem with admin area

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
sasha2002
New Member
New Member
Posts: 6
Joined: Sun Aug 09, 2009 7:32 am

[SOLVED]Problem with admin area

Post by sasha2002 »

I enabled debug mode and on site.com/admin/login.php see :

Notice: Undefined index: PHP_AUTH_USER in /home/user/public_html/lib/classes/class.usertagoperations.inc.php(243) : eval()'d code on line 3
Notice: Undefined variable: SERVER_NAME in /home/user/public_html/lib/classes/class.usertagoperations.inc.php(243) : eval()'d code on line 10

I didn't understood why you use eval() ????

Can someone help me with this?

P.S.
I setup some events to mail me when someone enter in admin area
LoginPost and LoginFailed if someone try to exploit me ;)
Last edited by sasha2002 on Wed Apr 04, 2012 10:35 pm, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Problem with admin area

Post by Jos »

sasha2002 wrote:/home/user/public_html/lib/classes/class.usertagoperations.inc.php
I think this indicates there is an error in one of your "User Defined Tags (UDT)" ?
sasha2002
New Member
New Member
Posts: 6
Joined: Sun Aug 09, 2009 7:32 am

Re: Problem with admin area

Post by sasha2002 »

Code: Select all

$agent = $_SERVER['HTTP_USER_AGENT'];
$uri = $_SERVER['REQUEST_URI'];
$user = $_SERVER['PHP_AUTH_USER'];
$ip = $_SERVER['REMOTE_ADDR'];
$ref = $_SERVER['HTTP_REFERER'];
$dtime = date('r');
$entry_line = "$dtime - IP: $ip | Agent: $agent | URL: $uri | Referrer: $ref | Username: $user n";

$messagez="Succesful Login to Admin Area at ".$dtime."\nPlease Check it ASAP\n".$agent."\n".$uri."\n".$user."\n".$ip."\n".$ref."\n".$entry_line;
mail("email@gmail.com", "Succesful Admin Login", $messagez, "From: alert@Domain\r\n"."Reply-To: alert@Domain\r\n"."X-Mailer: PHP/");
This is code, what's wrong?
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Problem with admin area

Post by Jos »

http://nl.php.net/manual/en/reserved.va ... server.php
$_SERVER is an array containing information such as headers, paths, and script locations. The entries in this array are created by the web server. There is no guarantee that every web server will provide any of these; servers may omit some, or provide others not listed here.
Post Reply

Return to “CMSMS Core”