public function __construct() { parent::__construct(); $this->obj_user_help = userfunc::get_instance(); $this->obj_order = order::get_instance(); $this->obj_orderbasic = OrderBasic::instance(); $this->obj_orderdetail = OrderDetail::instance(); if ($this->obj_user_help->is_login() == FALSE) { //header('Location: http://'.$this->_site_config['site_config']['name'].'/user/login'); } }
public function upload_model($upload_name, $dirname) { if ($this->obj_user_help->is_login() == FALSE) { //header('Location: http://'.$this->_site_config['site_config']['name'].'/user/login'); } $return = order::get_instance()->upload_attach($upload_name, $dirname, 'model'); if ($return['code'] == 1) { $this->obj_session->set('PRINT_3D_MODELSTL', $return['data']); } echo json_encode($return); return; }