示例#1
0
 /**
  * main action
  */
 public function mainAction()
 {
     /**
      * get input
      */
     $node_id = $this->GET['node_id'];
     $type = $this->GET['type'];
     /**
      * check value
      */
     if (!is_numeric($node_id)) {
         return false;
     }
     /**
      * initialize
      */
     require_once 'models/common/common_node.php';
     $Node = new common_node();
     /**
      * increment value
      */
     $Node->incrementShareCounter($node_id);
     /**
      * if user is logged in save action
      */
     $this->saveClientAction($node_id, $type);
     return true;
 }