Guest Posted June 28, 2004 Posted June 28, 2004 It's looking for a page 'password_funcs.php' that it's not included in the contribution... any ideas? Warning: main(includes/functions/password_funcs.php): failed to open stream: No such file or directory in /home/site/public_html/catalog/admin/includes/application_top.php on line 73 Fatal error: main(): Failed opening required 'includes/functions/password_funcs.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/site/public_html/catalog/admin/includes/application_top.php on line 73
241 Posted June 28, 2004 Posted June 28, 2004 create a file called password_func.php containing this code <?php /* $Id: password_funcs.php,v 1.10 2003/02/11 01:31:02 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ //// // This funstion validates a plain text password with an // encrpyted password function tep_validate_password($plain, $encrypted) { if (tep_not_null($plain) && tep_not_null($encrypted)) { // split apart the hash / salt $stack = explode(':', $encrypted); if (sizeof($stack) != 2) return false; if (md5($stack[1] . $plain) == $stack[0]) { return true; } } return false; } //// // This function makes a new password from a plaintext password. function tep_encrypt_password($plain) { $password = ''; for ($i=0; $i<10; $i++) { $password .= tep_rand(); } $salt = substr(md5($password), 0, 2); $password = md5($salt . $plain) . ':' . $salt; return $password; } ?> place this file in admin/includes/functions/ 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! Is your Osc dated try Phoenix raising oscommerce from the ashes.
Guest Posted June 28, 2004 Posted June 28, 2004 Thanks! I can access now the admin but I see no difference I mean there is nothing to edit admin profiles, although in phpMyAdmin I can see some new tables... Am I missing something?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.