Example #1
0
 function add_article_html()
 {
     $article_obj = new Article();
     $helper_obj = new Helper();
     if ($helper_obj->user_is_logged_in() && $helper_obj->check_role(CLIENT_ROLE_ID)) {
         $last_id = $article_obj->add_article_html($_POST);
         echo $article_obj->build_article_html_row($last_id);
     }
     exit;
 }