Jump to content
Sign in to follow this  
Parikesit

[Contribution] Admin Account with Access Level

Recommended Posts

I have added this contribution and it works great, the only thing is how can i add more contributions on to my Oscommerce after as it just says

"Please contact your Web Administrator to request

more access or if you found any problem."

 

How do i get round this do i have to declare the filename somewhere in the admin access?

 

Thanks

you need to set the permissions for the file access in admin under administration you can add the files for any added contribution and set whom has access to what


No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Share this post


Link to post
Share on other sites

Have found a weird problem and can't seem to see the solution. I have installed Admin Access With Levels 1.6 contrib and also have edit orders contrib. As main admin I have no problem with anything - it all works great.

 

However, when i create a user all works well except they can not print an invoice or packing slip (they have been setup to access this area :rolleyes: ).

 

Is this a permissions problem or me being my usual stupid self and missing that one little thing?? :huh:

 

Install on MS2 - invoice button is looking for the following link;

 

http://localhost/oscommerce/catalog/admin/invoice.php?oID=6

 

Result is new window comes up "page cannot be displayed".

 

Invoice.php exists in this directory

 

Appreciate your help on this.

Edited by deepfreeze

Share this post


Link to post
Share on other sites

I just got it installed. I can get to the login page, but after I login, i get this error:

Fatal error: Call to undefined function: tep_validate_password() in /www/a/*******/htdocs/milty/catalog/admin/login.php on line 26

Can anyone help me?

Share this post


Link to post
Share on other sites

You probably forget to upload the file admin/includes/functions/password_funcs.php which is supposed to contains the function tep_validate_password()

 

Or you didn't updated your admin/includes/application_top.php with a line like

require(DIR_WS_FUNCTIONS . 'password_funcs.php');

Share this post


Link to post
Share on other sites

Thanks, after looking at my site, I discovered that I edited the wrong application_top.php :D. I edited the one in Catalog/includes rather then the one in catalog/admin/includes.

Thanks anyways!

Share this post


Link to post
Share on other sites

I have installed this module but get the following error when going to the admin page

 

Fatal error: Cannot redeclare tep_redirect() (previously declared in /files/catalog/admin/includes/functions/general.php:15) in /files/catalog/admin/includes/functions/general.php on line 15

 

 

I cant work out what I have done wrong any clues?

Share this post


Link to post
Share on other sites

My error, i have fixed this, I am now at the logon prompt and searching for the default password for the admin@localhost account!!

Share this post


Link to post
Share on other sites

default password is admin...

 

 

having just installed 2.3, I am at a dead standstill...

 

any ideas what might be causing this?

 

Fatal error: Call to undefined function: tep_array_merge() in /cart/admin/admin_members.php on line 352

Edited by valdier

Share this post


Link to post
Share on other sites

Hello!

 

I'm sorry but I always get this error on this page admin_members.php, too:

 

Fatal error: Call to undefined function: tep_array_merge() in /cart/admin/admin_members.php on line 352

 

I dont know what I did wrong, but it would be very nice if you can help me.

Thanks!

 

Bye Dave!

Share this post


Link to post
Share on other sites

Ok, I just spent the past two hours reading through all 22 pages of this support thread, and I still can't figure out a way to login to the freakin admin panel. I tried "admin@localhost" and "admin" - that didn't work. I tried the changing of the name in the database to my first name and email and such, requested new password, got password in email, plugged it in, STILL won't work. I am at my wits end!

 

I have been trying every little trick I know, but to no avail. PLEASE, if someone figured this out, HELP! I am desperate. I am setting this up for a client and I have 3 days to pull it off. In DIRE need of some help. Any would be appreciated.

Share this post


Link to post
Share on other sites

I got it to work, FINALLY!

 

I was missing some files. Lavarock emailed me and then called me and suggested that it might be a missing file, so I re-uploaded ALL the files, and BAM it worked. Thanks Lavarock!

Share this post


Link to post
Share on other sites

Hi, its me again... for some reason, I tried to login today, and couldn't! I didn't even change anything.

 

I fixed that problem, now I am getting ANOTHER error after I login and get to the catalog/admin/admin_account.php page:

 

1054 - Unknown column 'admin_id' in 'where clause'

select admin_files_id from admin_files where FIND_IN_SET( '1', admin_groups_id) or FIND_IN_SET( '1', admin_id) and admin_files_is_boxes = '1' and admin_files_name = 'administrator.php'

[TEP STOP]

 

I have checked the database and the admin table and everything is fine.

I have checked the database_tables.php and all the admin tables are defined.

 

Anyone else have any ideas? I even tried re-uploading all the files, in case I missed something.

 

Any help would be great. Thanks!

 

Jodi Mann

Edited by quillspirit

Share this post


Link to post
Share on other sites

Well, thanks to some cool people who contacted me offline, I finally got it working for me. It appears I was missing a file somewhere. It works fine now. If any one else needs help, do not hesitate to PM or Email me! I will help the best I can! Since no one else seems to want to support this mod anymore.

Share this post


Link to post
Share on other sites

Fatal error: Call to undefined function: tep_admin_check_boxes() in /home/.sites/31/site63/web/catalog/admin/index.php on line 24

 

 

How can i fix this?

Share this post


Link to post
Share on other sites

That function appears to be defined in:

 

admin\includes\functions\general.php

 

and should look something like this. Note that is only a part of a larger section that you were supposed to insert, located between the ADMIN BEGIN and ADMIN END headings.

 

====snip==================================

 

////

//Return 'true' or 'false' value to display boxes and files in index.php and column_left.php

function tep_admin_check_boxes($filename, $boxes='') {

global $login_groups_id, $login_id;

 

$is_boxes = 1;

if ($boxes == 'sub_boxes') {

$is_boxes = 0;

}

$dbquery = tep_db_query("select admin_files_id from " . TABLE_ADMIN_FILES . " where FIND_IN_SET( '" . $login_groups_id . "', admin_groups_id) or FIND_IN_SET( '" . $login_id . "', admin_id) and admin_files_is_boxes = '" . $is_boxes . "' and admin_files_name = '" . $filename . "'");

 

 

 

$return_value = false;

if (tep_db_num_rows($dbquery)) {

$return_value = true;

}

return $return_value;

}

 

////

 

====snip==================================

 

If I remember correctly, the zip file had two different directory structures in it.

 

The first was called ORIGINALS, which were files which did not already exist in OSC and could be copied right into your directory structure.

 

The second directory tree was called CHANGED FILES. If you were working with an unmodified OSC like a brand new install, you could copy these 17 files overtop of the existing files. HOWEVER, most of us would have to open those existing files and cut and paste the changes in.

Share this post


Link to post
Share on other sites

I would like to increase the delay in logout time to 4 hours, and preferrably set a time limit on when it can be used, ie M-F want it set to 4 hours before autologout, after 6pm revert back to normal and on weekends be the normal way now.

 

all the other addons can be down the road, i just need to increase the delay in autologout


John Oligario

 

Knowledge Base Contributions

Share this post


Link to post
Share on other sites

ok just installed the latest "admin patch" from the register globals contribution

(http://www.oscommerce.com/community/contri...,admin+password)

 

, so i can run oscommerce on my server with register globals being off.

 

and then I installed ur admin account with access level contribution, but i get the following error messages :

 

Fatal error: Session variable login_id is not globally defined

Fatal error: Session variable login_groups_id is not globally defined

Fatal error: Session variable login_first_name is not globally defined

 

what could be wrong? anyone had any similar problems ?

Share this post


Link to post
Share on other sites

took a closer look at that register global contribution, and tryed the "careless code" now i dont get any error messages, but nothing happens when i enter the right password and username, it just clears out the username and password fields.

 

If i type in the wrong username or password i get an error message that says "ERROR: Wrong username or password!" so that part has worked all the time, but it doesnt seem to go any further when i enter the right username and password :-(.

 

 

if i switch back to the "paranoid code" on the register globals contribution i get the error messages

 

Fatal error: Session variable login_id is not globally defined

Fatal error: Session variable login_groups_id is not globally defined

Fatal error: Session variable login_first_name is not globally defined

 

i dont get thsoe with the "careless code" not sure if the careless code actually fixes this problem or doesnt bother printing the error messages. :blink:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×