* Easyshop is a web shop system */ class website_password_forgotten { private $base_object; private $layout_object; public function __construct($base_object, $layout_object) { $this->base_object = $base_object; $this->layout_object = $layout_object; } function run() { $state = 0; if (isset($_POST['email']) && $_POST['email']) { $state = $this->base_object->customer->lost_password($_POST['email']); } $this->layout_object->assign('state', $state); return $this->layout_object->_fetch('content_lost_password.tpl'); } }