404 Not Found"); header("HTTP/1.1 301 Moved Permanently"); header("Location: /"); } if(is_numeric($urlparts[1]) AND trim($urlparts[2])){ $tag_slug = sanitize_output(_clean(urldecode($urlparts[2]))); $tag_name = trim(str_replace("-"," ",$urlparts['2'])); $tag_url = $settings['site_home_url'].'/'.$settings['search_slug'].'/'.$tag_slug; }elseif(!is_numeric($urlparts[1])){ $tag_slug = sanitize_output(_clean(urldecode($urlparts[1]))); $tag_name = trim(str_replace("-"," ",$urlparts['1'])); $tag_url = $settings['site_home_url'].'/'.$settings['search_slug'].'/'.$tag_slug; }else{ $tag_slug = sanitize_output(_clean(urldecode($urlparts[1]))); $tag_name = trim(str_replace("-"," ",$urlparts['1'])); $tag_url = $settings['site_home_url'].'/'.$settings['search_slug'].'/'.$tag_slug; } if($urlparts['2'] != NULL){ header("HTTP/1.1 301 Moved Permanently"); header('Location: '.$settings['site_home_url'].'/'.$settings['search_slug'].'/'.$tag_slug.'/'); exit; } } //Переключить $tag_name = strip_tags(urldecode(urldecode($tag_name))); $video_ids = explode(",",$settings['videos_ids']); $setting_video_id = array_random($video_ids, 1); $vid['video_id'] = $setting_video_id; $video = $wb->getVideo($vid['video_id']); $db->query("UPDATE ".PREFIX."_videos SET views=views+1 WHERE video_id='{$video['video_id']}'"); $description = str_replace("{title}",urldecode($tag_name),$settings['tags_schema']); ?>

%

0 LIKE!

0

Other Videos

Warning: Invalid argument supplied for foreach() in /home/xxnx1/public_html/system/theme/Defaults/search.php on line 170

Latest searches