by the way my line 218 says:
PHP Code:
<td class="smallText" valign="top"><?php echo $admins_split->
Printable View
by the way my line 218 says:
PHP Code:
<td class="smallText" valign="top"><?php echo $admins_split->
Ok, I fixed it! had some of the new code in slightly the wrong placed
I am running Zen Cart 1.3.0.1 with Database Patch Level: 1.3.0.1.
I have installed Admin Profiles Version: 1.0.4. and had it working fine until this morning.
Now when logged in as admin and I try to access anything it just logs me out & takes me back to the login page.
I have been through this forum and yes register globals if off.
Any ideas please?
Cheers
Claire
Hi Claire
This doesn't sound like an Admin Profiles problem. If it were, I would expect that you would get bumped to the access denied page rather than get logged out. This sounds more like your environment not properly holding onto session variables.
To test this I recommend the following
Insert the following linesbetween lines 58 and 59 of admin/index.php and between 52 and 53 of admin/logon.php. Also comment out line 24 of admin/logoff.php. Then close your browser and start from fresh. What values does this give you as you go through the process of logging in and being bumped out?Quote:
<?php echo 'cjsmiff - trace admin flag: ' . IS_ADMIN_FLAG . '<br />'; ?>
<?php echo 'cjsmiff - trace admin id: ' . $_SESSION['admin_id'] . '<br />'; ?>
Hi,
Seems to be ok since pc restart!
Will check that anyway, thanks loads
Hi,
I have been having the same logoff issue as cj and I tried your test. Sometimes it either loogs me off OR it denies access to a page and then whn I go back to sames I am a different admin ID....
help :)
BTW I have Zen 1.3.6 and AdminProfiles version 1.0.6
I also run
User_Tracking
Super Orders
Sales Report
This certainly sounds like your adminID being reset. Admin Profiles doesn't do this, but it does show it up when it happens.
Puzzlingly this was a known problem in earlier versions of Zen Cart (when registers global is ON), but was fixed from 1.3.5 onwards.
If you're using up-to-date versions of the other mods, none of them should cause this to happen (I doubt whether older versions would either) and I've rechecked every refer to it in Admin Profiles in case I had some sloppy programming (unlikely, but wanted to be safe).
So no, obvious answer. Let's start tweaking at the threads instead ...
Do you have registers global ON or OFF (you can find out by going into Admin, selecting "version" from the menu top right and then searching on register_globals)?
Could you post lines 74-75 and 101-103 of admin.php?
Hi
I did the esearch and register_globals was OFF for both values in the version screen.
As for the admin.php lines here they are:
74-75
$new_admin_id = zen_db_insert_id();
$admins_id = $new_admin_id;
101-106
case 'deleteconfirm':
$new_admin_id = zen_db_prepare_input($_GET['adminID']);
$db->Execute("delete from " . TABLE_ADMIN . " where admin_id = '" . (int)$new_admin_id . "'");
zen_redirect(zen_href_link(FILENAME_ADMIN, 'page=' . $_GET['page']));
break;
Will this mod allow you to give manufacturers their own access to put their own products in the store... but not allow them to go anywhere else in the store admin?