Posts

Showing posts from June, 2017

common functions

public function get_user_meta($userID,$metakey){ $this->db->where(['user_id'=>$userID,'key'=>$metakey]); $query = $this->db->get('user_meta'); if($query->num_rows()>0){ $row = $query->row(); return is_serial($row->value) ? unserialize($row->value) : $row->value ; } } public function update_user_meta($userID,$metakey,$metavalue){ $this->db->where(['user_id'=>$userID,'key'=>$metakey]); $query = $this->db->get('user_meta'); $metavalue = is_array($metavalue) ? serialize($metavalue) : $metavalue; if($query->num_rows()>0){ $this->db->update('user_meta',['value'=>$metavalue], 'user_id'=>$userID,'key'=>$metakey]); $row = $query->row(); return $row->id; }else{ $this->db->insert('user_meta',['value'=>$metavalue,'user_id'=>$userID,'key'=&g

skype multiple login

On the  Shortcut  tab, in the  Target  field add  /secondary  to the end of the path. The Target field should now read  "C:\Program Files\Skype\Phone\Skype.exe" /secondary  (or  "C:\Program Files (x86)\Skype\Phone\Skype.exe" /secondary  if you’re running a 64-bit operating system).