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