0 || $page == "edit_works"){ if ($firstid>0){ $profile_id = $firstid; } if (strpos($current_url[$offset+2],".html") === false){ $section_id = get_id($current_url[$offset+2]); } }else{ if ($lastid>0){ if (strpos($current_url[$offset+2],".html") === false){ $section_id = $lastid; } } } $offset = count($current_url)-1; if (strpos($current_url[$offset],".html") !== false){ $work_page = get_id($current_url[$offset]); $work_id = get_id($current_url[$offset], false); if ($work_id > 0){ $work_page = 0; $section_id = 0; $profile_id = 0; } } $page = $_POST["page"] != "" ? $_POST["page"] : $page; include_once("content.php"); ?>