function sav_actions($read) { if ($_GET['insert'] == 'ok') { save_art(); } if ($_GET['continue'] == "ok" && $read) { modif_art($read, $_POST['msg']); } if ($_GET['trash_art']) { trash_art(); } if ($_GET['delete_art']) { delete_art(); } if ($_GET['im'] == 'on') { $im = save_img(); } if ($_GET['publish'] && $_GET['idy']) { publish_art($_GET['publish'], $_GET['idy'], 'qdi'); } elseif ($_GET['publish'] && $read) { publish_art($_GET['publish'], $read, "qda"); } if ($_GET['deploy']) { req('ajxf'); alert($_GET['deploy']); } if ($_GET['idy_hide'] or $_GET['idy_erase']) { edit_tracks($_GET["idy_hide"], $_GET["idy_erase"]); } }
function addart_new($msg, $id, $res) { req('boot'); list($suj, $frm, $urlsrc, $date, $name, $mail, $ib, $pub) = ajxr($res); //,$sub $_POST['msg'] = str_replace("\n", "\r", $msg); $_POST['suj'] = $suj; $_SESSION['frm'] = $frm; $_POST['urlsrc'] = $urlsrc; $_POST['postdat'] = $date; $_POST['mail'] = $mail; $_POST['name'] = $name; $_POST['ib'] = $ib; $_POST['pub'] = $pub; //$_POST['sub']=$sub; return save_art(); }