function cancel_addPost($post_id, $post_type = 'notpage') { $objResponse = new xajaxResponse(); if ($post_id != 'new') { $project7 = new editsee_App(); $objResponse->assign('post-' . $post_id, 'innerHTML', $project7->get_single_post($post_id, 'innerHTML')); } else { $objResponse->remove('new-post'); if ($post_type = 'page') { $project7 = new editsee_App(); $objResponse->redirect($project7->get_config('es_main"url')); } } $_SESSION['in-quick' . $post_id] = 'no'; return $objResponse; }