1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84:
<?php
PHPShopObj::importCore('users');
class PHPShopClients extends PHPShopUsers {
var $order_live=3;
function __construct() {
$this->debug=false;
parent::__construct();
$this->action=array('get'=>array('order'),'post'=>array('order'),'nav'=>'index');
}
function index() {
$this->set('formaContent',ParseTemplateReturn($this->getValue('templates.clients_forma')));
$this->set('formaTitle',__(''));
$this->setHook(__CLASS__,__FUNCTION__);
$this->ParseTemplate($this->getValue('templates.clients_page_list'));
}
function true_user() {
$hook=$this->setHook(__CLASS__,__FUNCTION__);
if($hook) return $hook;
if(PHPShopSecurity::true_order($_REQUEST['order']) and PHPShopSecurity::true_email($_REQUEST['mail'])) {
return true;
}
}
function order() {
if($this->true_user()) {
$this->doLoadFunction(__CLASS__,'action_order_info',$tip=2,'users');
$this->set('formaTitle',__(''));
$this->setHook(__CLASS__,__FUNCTION__);
$this->ParseTemplate($this->getValue('templates.users_page_list'));
}
else {
$this->index();
}
}
}
?>