|
|||
|
Ich bin gerade dabei, meinen Beta 2 Shop auf den RC 1.2 zu updaten.
Habe den neuen Shop installiert und aus dem Update-Thread die alten DB-Inhalte mit dem Skript in die neue ?bertragen. Hat wunderbar geklappt. Einloggen klappt auch, nur komme ich beim Klick auf den Admin-Button nicht in den Admin-Bereich, sondern es wir die login.php aufgerufen zum erneuten Einloggen. Habe mir bereits ein neues PW schicken lassen, hilft aber auch nix... Wie komme ich wieder in den Admin-Bereich? |
|
|||
|
Die Passwortfunktion ist ne andere in der 1.2 als in der Beta,
Inhalt der xtc_validate_password.inc.php austauschen, dann geht. Die L?sung stand auch schonmal hier im Forum. Code:
/* ----------------------------------------------------------------------------------------- $Id: xtc_validate_password.inc.php,v 1.2 2004/02/08 16:18:03 fanta2k Exp $ XT-Commerce - community made shopping http://www.xt-commerce.com Copyright (c) 2003 XT-Commerce ----------------------------------------------------------------------------------------- based on: (c) 2000-2001 The Exchange Project (earlier name of osCommerce) (c) 2002-2003 osCommerce(password_funcs.php,v 1.10 2003/02/11); www.oscommerce.com (c) 2003 nextcommerce (xtc_validate_password.inc.php,v 1.4 2003/08/13); www.nextcommerce.org Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ // This funstion validates a plain text password with an // encrpyted password // function xtc_validate_password($plain, $encrypted) { // if (xtc_not_null($plain) && xtc_not_null($encrypted)) { // split apart the hash / salt // if ($encrypted!= md5($plain)){ // return false; // } else { // return true; // } // } // return false; // } // This funstion validates a plain text password with an // encrpyted password function xtc_validate_password($plain, $encrypted) { if (xtc_not_null($plain) && xtc_not_null($encrypted)) { // check if it's an old pw. if (ereg(':', $encrypted)) { $stack = explode(':', $encrypted); if (sizeof($stack) != 2) return false; if (md5($stack[1] . $plain) == $stack[0]) {return true;} // if not, do plain md5 } else { if ($encrypted!= md5($plain)){ return false; } else { return true; } } } // if we're still here, return false return false; } |
|
|||
|
Hmmm dann schau dir mal die Tabelle admin_access per phpmyadmin an ob deine customers_id dort zu finden ist und ob die f?r alle Admin Bereiche frei ist.
Ansonsten dort einf?gen und alle felder auf 1 setzen. |
|
|||
|
habe ein ?hnliches Problem mit einer erstinstallation auf einem lokalen Windows 2003 Server.
tabelle "admin_access" habe ich kontrolliert, alles auf "1" funktioniert trotzdem nicht. vielleicht liegts an der tabelle "customers": - customers_cid = NULL - customers_status = 0 - member_flag = 0 - account_type = 0 (wenn ich das auf 1 setze, erscheint der admin-button nicht mehr) noch eine idee, woran es liegen k?nnte? Danke, Jens |
|
|||
|
das ist wirklich seltsam. auf dem *nix webserver funktionierrt es auf anhieb, aber unter windows komm ich nicht in den adminbereich. wie gesagt, ich kann mich einloggen und sehe rechts die adminfeatures und den adminbutton, aber wenn ich draufklicke, bekomm ich den login-screen.
w?rde aber sehr gerne erstmal lokal mit dem teil arbeiten... Gruss, Jens |
![]() |
| Lesezeichen |
| Stichworte |
| admin, zugang |
| Themen-Optionen | |
| Ansicht | |
|
|