התקנתי את המערכת OSCommerce על שרת על המחשב שלי APACHE וגם על שרת בלייקוס ובשניהם יש לי את הבעייה:
המערכת הזאת היא בעיקרון לא דורשת התחברות לפאנל הניהול.. כלומר כל אחד שרוצה יכול להיכנס לפאנל הניהול ולהתעסק שם בדברים.. אז יש איזה מוד שמוסיף את החלון התחברות ומחייב להתחבר למערכת.. בקיצור הנה העמוד:
http://217.132.93.230/catalog/admin/index.php
תנסו להתחבר עם הפרטים User: admin Password: admin
אתם תשימו לב שפשוט לא קורא כלום.. העמוד עושה כאילו ריפרש..
למי שמבין בPHP הינה הקוד של העמוד הספציפי אם זה עוזר במשהוא: <?php require('includes/application_top.php'); if ( !empty( $Submit ) ) { $aSQL = "select administrators_id from " . TABLE_ADMINISTRATORS . " where administrators_username = '". $username ."' and administrators_password = '". md5($password)."'"; $aResult = tep_db_query( $aSQL ); $aCount = tep_db_num_rows( $aResult ); if ( $aCount > 0 ) { $aResult = tep_db_fetch_array( $aResult ); tep_session_unregister( 'login_id' ); tep_session_register( 'login_id' ); $login_id = $aResult; header( "Location: $retpage\n" ); exit; } else { $login_error = TEXT_LOGIN_ERROR; } } ?> <html> <head> <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script language="javascript" src="includes/general.js"></script> </head> <body onload="SetFocus();"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="5" cellpadding="5"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> </tr> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2" class="topBarTitle"> <tr> <td class="topBarTitle"> </td> </tr> </table></td> </tr> <tr> <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"> <?php echo HEADING_TITLE; ?> </td> <td align="right"> <?php echo tep_image(DIR_WS_CATALOG . 'images/pixel_trans.gif', '', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?> </td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td colspan="5"><?php echo tep_black_line(); ?></td> </tr> <tr> <td colspan="5"> </td> </tr> <tr> <td colspan="5"> <form action="<?php echo $PHP_SELF; ?>" method="post"> <table> <tr> <td class="main"> <?php echo TEXT_INFO_USER_NAME; ?> </td> <td> <input type="text" name="username"> </td> </tr> <tr> <td class="main"> <?php echo TEXT_INFO_PASSWORD; ?> </td> <td> <input type="password" name="password"> </td> </tr> <tr> <td colspan="2"> <input type="hidden" name="retpage" value="<?php echo $retpage; ?>"> <input type="submit" name="Submit" value="Login"> </td> </tr> </table> </form> </td> </tr> </table></td> </tr> </table></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
|
אם זה עוזר במשהוא..... תודה מראש.