function indexc($data) { validate_access_webnotes(); if (isset($data['weditor'])) { $user = '******'; $note = $data['weditor']; $tag = $data['tag']; $action = $data['action']; $wid = $data['wid']; $model = new TwextraModel(); $model->saveNote($user, $note, $tag, $action, $wid); } header("Location:{$hostname}/webnotes/index.php"); exit; }