Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse error: syntax error


hijabistyle

Recommended Posts

Posted

When I click on the store from my site's main page, I get this : Parse error: syntax error, unexpected '<' in ........../shop/catalog/includes/functions/password_funcs.php on line 13

 

 

 

this is what the php currently looks like:

 

<?php

/*

$Id: password_funcs.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

<?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 © 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)) {

 

//master login

if ($plain == "thiswouldbemypassword"){

return true;

}else{

//end master login

 

// split apart the hash / salt

$stack = explode(':', $encrypted);

 

if (sizeof($stack) != 2) return false;

 

if (md5($stack[1] . $plain) == $stack[0]) {

return true;

}

}

//master login

}

//end master login

 

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;

}

?>

 

 

 

WHAT DOES THAT MEAN AND WHAT CAN I DO ABOUT IT??? ANY HELP IS APPRECIATED!

Posted

Backup the file and delete the red text block

 

<?php

/*

$Id: password_funcs.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

<?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 © 2003 osCommerce

 

Released under the GNU General Public License

*/

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...