Subversion Repositories SmartDukaan

Rev

Rev 20493 | Rev 20495 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20493 Rev 20494
Line 1552... Line 1552...
1552
		}
1552
		}
1553
		$this->set(compact('message'));
1553
		$this->set(compact('message'));
1554
	}
1554
	}
1555
 
1555
 
1556
	public function admin_usercalled($id){
1556
	public function admin_usercalled($id){
1557
		if($this->User->updateAll(array('status' => 2),array('id' => $id))){
1557
		if($this->User->updateAll(array('status' => 2),array('User.id' => $id))){
1558
			$this->Session->setFlash(__('User upadated'));
1558
			$this->Session->setFlash(__('User upadated'));
1559
		} else {
1559
		} else {
1560
			$this->Session->setFlash(__('User could not be updated'));
1560
			$this->Session->setFlash(__('User could not be updated'));
1561
		}
1561
		}
1562
		return $this->redirect($this->referer());
1562
		return $this->redirect($this->referer());
1563
	}
1563
	}
1564
	public function admin_userunreachable($id){
1564
	public function admin_userunreachable($id){
1565
		if($this->User->updateAll(array('status' => 3),array('id' => $id))){
1565
		if($this->User->updateAll(array('status' => 3),array('User.id' => $id))){
1566
			$this->Session->setFlash(__('User upadated'));
1566
			$this->Session->setFlash(__('User upadated'));
1567
		} else {
1567
		} else {
1568
			$this->Session->setFlash(__('User could not be updated'));
1568
			$this->Session->setFlash(__('User could not be updated'));
1569
		}
1569
		}
1570
		return $this->redirect($this->referer());
1570
		return $this->redirect($this->referer());