การเพิ่มเวลาเข้าระบบ (Prestashop)

          คุณอาจประสบปัญหาในการออกจากระบบอัตโนมัติจากระบบรักษาความปลอดภัยของโปรแกรม Preatashop   ซึ่งจะทำงานเมื่อคุณไม่ได้เปิดหน้าหลังร้านเป็นเวลานานๆ   แต่คุณสามารถเพิ่มเวลาในการอยู่หลังร้านได้ด้วยวิธีการนี้

Edit File: <presta shop folder>/classes/cookie.php

สำหรับ Prestashop Version 1.3

ให้คุณหาคำสั่งเหล่านี้

if ($this->id_employee AND Validate::isUnsignedId($this->id_employee) AND Employee::checkPassword(intval($this->id_employee), $this->passwd) AND (!isset($this->_content['remote_addr']) OR $this->_content['remote_addr'] == ip2long(Tools::getRemoteAddr())))

แล้วแก้เป็นดังนี้

if ($this->id_employee AND Validate::isUnsignedId($this->id_employee) AND Employee::checkPassword(intval($this->id_employee), $this->passwd))

 

 

สำหรับ Prestashop Version 1.4

ให้คุณหาคำสั่งเหล่านี้

AND (!isset($this->_content['remote_addr']) OR $this->_content['remote_addr'] == ip2long(Tools::getRemoteAddr()))

แล้วแก้เป็นดังนี้

//AND (!isset($this->_content['remote_addr']) OR $this->_content['remote_addr'] == ip2long(Tools::getRemoteAddr()))

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

ติดตั้ง captcha บน joomla 1.5.x

  คุณต้องดาวน์โหลด component จาก...

ไชโย โฮสติ้ง มีบริการติดตั้ง โปรแกรม opensource ให้หรือไม่ ?

ทาง ไชโย โฮสติ้ง มีบริการติดตั้ง โปรแกรม opensource ให้กับลูกค้าที่ใช้บริการ โฮสติ้ง กับ ไชโย...

การแก้ captcha ไม่เปลี่ียนใน smf

การแก้ไขปัญหา captcha ไม่เปลี่ยนเวลาสมัครสมาชิกของ smf board เพื่อป้องกันการโจมตีของ spam post...

การ upgrade เวอร์ชั่น ของ Smf Board

อันดับแรก ต้องเตรียมพร้อมสำหรับการอัพเกรดก่อน ซึ่งสิ่งที่ต้องมี คือ > โปรแกรม smf v.2.0 RC1.2...

การตั้งค่าผู้รับส่งสินค้า (Prestashop)

การตั้งค่าผู้รับส่งสินค้า(Prestashop) 1.             เข้าหลังร้านของ Prestashop >>...