moku
Archived-
Posts
24 -
Joined
-
Last visited
Everything posted by moku
-
Support thread for the Image Magic contribution
moku replied to tomjmul's topic in General Add-Ons Support
Open "includes/functions/html_output.php" and find "tep_href_link('imagemagic.php'". On this line, replace all three "&" by "&". That sould do it! ;-) -
[CONTRIB] Admin Access Level Accounts for MS2
moku replied to papasan's topic in General Add-Ons Support
Have you a file named "includes/languages/english/FILENAME_LOGIN" on your server? No, of course, and the error message tells you. Did you defined FILENAME_LOGIN in the "includes/filenames.php" file? Mine contains this: [...] define('FILENAME_LOGIN', 'login.php'); [...] I guess you forget to update this file. And maybe other. Check your installation of this contrib, it don't seems to be complete. -
[CONTRIB] Admin Access Level Accounts for MS2
moku replied to papasan's topic in General Add-Ons Support
In my "admin/includes/database_tables.php" I have the following: define('TABLE_ADMIN', 'admin'); define('TABLE_ADMIN_FILES', 'admin_files'); define('TABLE_ADMIN_GROUPS', 'admin_groups'); Good luck. -
[Contribution] Admin Account with Access Level
moku replied to Parikesit's topic in General Add-Ons Support
Did you search in the forums? A simple search gives this: http://www.oscommerce.com/forums/index.php?act...min_members.php that gives you this: http://www.oscommerce.com/forums/index.php?sho...70entry383009 noisebox wrote: HTH -
[Contribution] Admin Account with Access Level
moku replied to Parikesit's topic in General Add-Ons Support
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'); -
[Contribution] Admin Account with Access Level
moku replied to Parikesit's topic in General Add-Ons Support
Have you tried this? http://www.oscommerce.com/forums/index.php?sho...ndpost&p=265353 -
[Contribution] Admin Account with Access Level
moku replied to Parikesit's topic in General Add-Ons Support
I don't know if this could be of any help to anyone, but hey, at least it's here. If you want to directly go to a page of your admin directory and are not yet identified, then you are redirected to login.php and have to say again where you want to go after being autenthificated. Here is a little patch for remembering where you wanted to go and taking you there. admin/includes/functions/general.php Modify the tep_admin_check_login() function like this: Before: if (!tep_session_is_registered('login_id')) { tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } else { After: if (!tep_session_is_registered('login_id')) { $redir = urlencode("http://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]); tep_redirect(tep_href_link(FILENAME_LOGIN, 'redir=' . $redir, 'SSL')); } else { admin/login.php Around line 50, modify like this: Before: tep_redirect(tep_href_link(FILENAME_ADMIN_ACCOUNT)); } else { tep_redirect(tep_href_link(FILENAME_DEFAULT)); } After: tep_redirect(tep_href_link(FILENAME_ADMIN_ACCOUNT)); } else { $redir = urldecode($HTTP_POST_VARS['redir']); tep_redirect("$redir"); } And around line 100, modify like this: Before: <tr bgcolor="#080381"> <td colspan="2" align="center" valign="middle"> <?php echo tep_draw_form('login', 'login.php?action=process'); ?> <table width="280" border="0" cellspacing="0" cellpadding="2"> <tr> After: <tr bgcolor="#080381"> <td colspan="2" align="center" valign="middle"> <?php echo tep_draw_form('login', 'login.php?action=process'); ?> <?php if ($HTTP_GET_VARS['redir']) { $redir = urlencode($HTTP_GET_VARS['redir']); echo '<input type="hidden" name="redir" value="' . $redir . '">'; } ?> <table width="280" border="0" cellspacing="0" cellpadding="2"> <tr> If someone see a better way to know the $redir contents (if https and not http, etc.), please say it. Hope this will help. (sorry for my english...) -
[Contribution] Admin Account with Access Level
moku replied to Parikesit's topic in General Add-Ons Support
You simply have to change in the file admin/login.php tep_redirect(tep_href_link(FILENAME_DEFAULT)); With something like this //tep_redirect(tep_href_link(FILENAME_DEFAULT)); tep_redirect(tep_href_link(FILENAME_CATEGORIES)); Where you'll change "FILENAME_CATEGORIES" by the constant name of where you want to take your admins. (cf. the file admin/includes/filenames.php) And if you have time, you can not so hardly tweak the admin/index.php file for showing only the authorized areas. Testing can be done by using the code in admin/includes/functions/general.php, the function named "tep_admin_check_login()". But I have no time... ^_^; HTH -- moku -
[CONTRIB] Admin Access Level Accounts for MS2
moku replied to papasan's topic in General Add-Ons Support
I think you should not comment out this lines if you use SSL: # The following makes adjustments to the SSL protocol for Internet # Explorer browsers <IfModule mod_setenvif.c> <IfDefine SSL> SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </IfDefine> </IfModule> I dream a World where only free software like Mozilla were used... but actually, we also have to look at MSIE... :( -
[CONTRIB] Admin Access Level Accounts for MS2
moku replied to papasan's topic in General Add-Ons Support
See there: http://www.oscommerce.com/forums/index.php?sho...60entry265353 HTH -
[Contribution] Admin Account with Access Level
moku replied to Parikesit's topic in General Add-Ons Support
I'm not sure it's a good way to do it, but try this: Replace in admin/includes/functions/sessions.php: if (STORE_SESSIONS == 'mysql') { if (!$SESS_LIFE = get_cfg_var('session.gc_maxlifetime')) { $SESS_LIFE = 1440; } With: if (STORE_SESSIONS == 'mysql') { # if (!$SESS_LIFE = get_cfg_var('session.gc_maxlifetime')) { # $SESS_LIFE = 1440; // 3600 is 1 hour, so 36000 is 10. $SESS_LIFE = 36000; # } It works. There is time out after 10 hours of idle time (I tried with 10 secondes, but it must be equal with 36000) -
[Contribution Update] Down for Maintenance v1.1 for MS 2.2
moku replied to Farrukh's topic in General Add-Ons Support
Right, very useful idea! Thanks! but... ;-) > Oh one more thing: in header.php it says tep_output_warning( twice, this gives me an error message on 2.2 ms2. I think it should say tep_output_string( , > at least it works for me that way Okay, I notice this think me too (replace tep_output_warning with tep_output_string) but tep_output_string returns nothing at all! This will return null chain: tep_output_string(TEXT_BEFORE_DOWN_FOR_MAINTENANCE . PERIOD_BEFORE_DOWN_FOR_MAINTENANCE); and this will work well: echo TEXT_BEFORE_DOWN_FOR_MAINTENANCE . PERIOD_BEFORE_DOWN_FOR_MAINTENANCE; I think it's not very "osCommerce's way" to do thinks, but I don't understand why tep_output_string doesn't work with me ? The strings are : TEXT_BEFORE_DOWN_FOR_MAINTENANCE = "AVERTISSEMENT : Le site sera ferm? pour maintenance dans la p?riode du " PERIOD_BEFORE_DOWN_FOR_MAINTENANCE = "28/07/2003 01h -> 02h" If anybody have any explication, it'll be appreciated :-) (sorry for my bad english...)