예제 #1
0
파일: logout.php 프로젝트: 119155012/kals
 /**
  * 儲存記錄
  */
 private function _log()
 {
     // log區 -登入成功(有登入才記log)-action = 39
     $action = 42;
     $log_webpage_id = NULL;
     $log_user_id = get_context_user_id();
     $array_data = $this->client_ip;
     kals_mobile_log($this->db, $log_webpage_id, $action, array('memo' => $array_data, 'user_id' => $log_user_id));
     context_complete();
     //寫入db
 }
예제 #2
0
 /**
  * log區
  * @param Annotation $topic_annotation
  */
 private function _log($topic_annotation)
 {
     //log區-mobile瀏覽討論-action = 41
     $action = 41;
     // data: topic_id
     $log_webpage = $topic_annotation->get_append_to_webpages();
     $log_webpage_id = $log_webpage[0]->get_id();
     $log_topic_id = $topic_annotation->get_id();
     $log_user_id = get_context_user_id();
     $array_data = array('target_topic' => FALSE, 'topic_id' => $log_topic_id, 'order_by' => 'create', 'show_total_count' => TRUE);
     kals_mobile_log($this->db, $log_webpage_id, $action, array('memo' => $array_data, 'user_id' => $log_user_id));
     context_complete();
     //寫入db
 }
예제 #3
0
파일: mobile.php 프로젝트: 119155012/kals
 /**
  * log區 -使用mobile裝置瀏覽topic list- action = 40
  * @param Int $webpage_id
  */
 private function _log_annotation_thread($webpage_id)
 {
     $action = 40;
     // webpage_id, action, user_id, array data
     $log_webpage_id = $webpage_id;
     $log_user_id = null;
     $user = get_context_user();
     if (isset($user)) {
         $log_user_id = $user->get_id();
     }
     $array_data = $this->client_ip;
     kals_mobile_log($this->db, $log_webpage_id, $action, array('memo' => $array_data, 'user_id' => $log_user_id));
     context_complete();
     //寫入db
     //kals_mobile_log($this->db, $log_webpage_id, $action, array('memo'=>$array_data, 'user_id' => $log_user_id));
 }