function article_event($event, $step) { require_privs('article'); $save = gps('save'); if ($save) { $step = 'save'; } $publish = gps('publish'); if ($publish) { $step = 'publish'; } switch (strtolower($step)) { case "": article_edit(); break; case "create": article_edit(); break; case "publish": article_post(); break; case "edit": article_edit(); break; case "save": article_save(); break; } }
if ($save) { $step = 'save'; } $publish = gps('publish'); if ($publish) { $step = 'publish'; } switch (strtolower($step)) { case "": article_edit(); break; case "create": article_edit(); break; case "publish": article_post(); break; case "edit": article_edit(); break; case "save": article_save(); break; } } //-------------------------------------------------------------- function article_post() { global $txp_user, $vars, $txpcfg, $prefs; extract($prefs); $incoming = psa($vars);