0) { $wrd_query = (strlen($wrd_uri)>0) ? explode('/', $wrd_uri) : false ; } $userdata = run_session(); $userprefs=init_siteprefs($userdata); $wwg['page']=(isset($_GET['page']) && $_GET['page']!='') ? $_GET['page'] : ((isset($_POST['page']) && $_POST['page']!='') ? $_POST['page'] : '1'); $header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: '; // let's retrieve headings... if(count($wrd_query)>1) { if(!(strstr($wrd_query[1], $phpEx))) { if ($coda_config['urw_lang']) { // are we on language home page ??? $ava_lang=explode(',', $coda_config['available_languages']); if (count($wrd_query)==2 && in_array($wrd_query[1], $ava_lang )) { $heading=WRD_is_permalink('heading', 'home'); $inc= $site_root_path .'lib/codae/home.'.$phpEx; } else { if(in_array($wrd_query[1], $ava_lang )) { array_splice($wrd_query, 1, 1); } } } // let's retrieve headings if(!$inc && $heading=WRD_is_permalink('heading', $wrd_query[1])) { // ok it seems to be a valid directory let's check what else we have if(count($wrd_query)<3 && !empty($heading['content']) && $heading['home']=="heading") { $inc= $site_root_path .'lib/codae/heading.'.$phpEx; } elseif(strstr($heading['feed'], ',')) { // multiple stuff in this heading... $feeds= explode(',', $heading['feed']); //print_pre($feeds); //let's reverse array// $wrd_query=array_reverse($wrd_query); for($i=0;$i