function edit($id)
 {
     if ($this->data['users']->role != "admin") {
         exit;
     }
     $newsboard = newsboard::find($id);
     $newsboard->newsTitle = Input::get('newsTitle');
     $newsboard->newsText = htmlspecialchars(Input::get('newsText'), ENT_QUOTES);
     $newsboard->newsFor = Input::get('newsFor');
     if (Input::get('newsDate') != "") {
         $newsDate = explode("/", Input::get('newsDate'));
         $newsDate = mktime(0, 0, 0, $newsDate['0'], $newsDate['1'], $newsDate['2']);
         $newsboard->newsDate = $newsDate;
     }
     $newsboard->save();
     $newsboard->newsText = strip_tags(htmlspecialchars_decode($newsboard->newsText));
     return $this->panelInit->apiOutput(true, $this->panelInit->language['editNews'], $this->panelInit->language['newsModified'], $newsboard->toArray());
 }