1

我正在尝试分析将 Presta 与其他系统集成的 AuthController.php 文件或模块,但它失败了..

您是否有任何解决方案或代码片段可以轻松做到这一点?

4

1 回答 1

3

OK I've got one that's work for me:

include '../config/config.inc.php';  // path ti the config file
   $cookie = new Cookie('ps', '', 3600);

Db::getInstance()->Execute("INSERT INTO `ps_customer` VALUES (NULL,$gengre,1,'$tempname','$tempsurname','$email','".md5(_COOKIE_KEY_.$passNew)."',NOW(),NULL,0,NULL,NULL,0,'ba27e0ac14389d8feb89c3c9e7594464',NULL,1,0,0,NOW(),NOW())");

maybe It can help someone

于 2012-10-03T14:39:34.007 回答