No token provided. if (isset($_GET['token'])) { require_once '../cloud/config.inc.php'; require_once '../cloud/classes/url_handler.class.php'; require_once 'includes/core.inc.php'; db::connect(); $token = explode('.', $_GET['token']); session_start(); $req = db::query("SELECT * FROM oauth_authorization_codes WHERE authorization_code = '".db::escape($token[0])."' AND user_id='".db::escape($token[1])."' LIMIT 1"); if (db::num_rows($req) == 1) { $req = db::query("SELECT * FROM oauth_users WHERE id='".db::escape($token[1])."' LIMIT 1"); $_SESSION['user'] = db::fetch_assoc($req); $_SESSION['user']['token'] = $_GET['token']; } } if ($_SERVER['HTTP_HOST'] == 'ads.wedo.tv') { if (explode('?', $_SERVER['REQUEST_URI'])[0] == '/10001.xml') { header('content-type: application/xml'); require_once '10001.php'; } if (stripos($_SERVER['REQUEST_URI'], '/events/') !== false) { //file_put_contents('/var/www/preview/events/log/'.$_SERVER['HTTP_CF_IPCOUNTRY'].'_'.$session.'.log', json_encode($txt)); $uri = explode('?', $_SERVER['REQUEST_URI'])[1]; $session = explode('&', $uri)[0]; $uri = explode('?', $_SERVER['REQUEST_URI'])[0]; $event = explode('/', $uri)[2]; $txt['GET'] = $_GET; $txt['POST'] = $_POST; $txt['SERVER'] = $_SERVER; file_put_contents('/var/www/preview/events/log/'.$_SERVER['HTTP_CF_IPCOUNTRY'].'_'.time().'_'.$session.'_'.$event.'.log', json_encode($txt)); } die(); } if ($_SERVER['HTTP_HOST'] == 'preview.wedo.tv') { $_GET['geo'] = 'es'; $_GET['show_login'] = 1; } if (explode('?', $_SERVER['REQUEST_URI'])[0] == '/ads.txt') { require_once '../cloud/config.inc.php'; require_once 'includes/core.inc.php'; header('content-type:text/plain'); $req = db::query("SELECT * FROM adstxt WHERE file='ads.txt' AND status='LISTED' GROUP BY content ORDER BY id DESC"); while ($row = db::fetch_assoc($req)) { echo $row['content']."\n"; } die(); } if (explode('?', $_SERVER['REQUEST_URI'])[0] == '/app-ads.txt') { require_once '../cloud/config.inc.php'; require_once 'includes/core.inc.php'; header('content-type:text/plain'); $req = db::query("SELECT * FROM adstxt WHERE file='app-ads.txt' AND status='LISTED' ORDER BY id DESC"); while ($row = db::fetch_assoc($req)) { echo $row['content']."\n"; } die(); } if (explode('?', $_SERVER['REQUEST_URI'])[0] == '/sellers.json') { require_once '../cloud/config.inc.php'; require_once 'includes/core.inc.php'; header('content-type:text/plain'); $req = db::query("SELECT * FROM adstxt WHERE file='sellers.json' AND status='LISTED' ORDER BY id DESC"); while ($row = db::fetch_assoc($req)) { $c = explode(',', $row['content']); $json[] = [ 'seller_id' => $c[0], 'name' => $c[1], 'domain' => $c[2], 'seller_type' => $c[3], 'is_passtrough' => 0, ]; } echo json_encode($json); die(); } if (isset($_POST['confirm_16_years_old'])) { setcookie('confirm_16_years_old', '1', time() + (86400 * 360), '/', '.wedotv.com'); $_COOKIE['confirm_16_years_old'] = 1; } if (isset($_POST['confirm_18_years_old'])) { setcookie('confirm_18_years_old', '1', time() + (86400 * 360), '/', '.wedotv.com'); $_COOKIE['confirm_18_years_old'] = 1; } header('content-type: text/html'); if (stripos($_SERVER['REQUEST_URI'], 'CHAR(') !== false) { die(); } if ($_SERVER['HTTP_HOST'] == 'www.wedo.tv' || $_SERVER['HTTP_HOST'] == 'wedo.tv') { header('location: https://wedotv.com'); die(); } if (stripos($_SERVER['REQUEST_URI'], '/news/') !== false) { die(); } if (stripos($_SERVER['REQUEST_URI'], 'lang=en?lang') !== false) { die(); die(); } if (stripos($_SERVER['REQUEST_URI'], 'lang=de?lang') !== false) { die(); die(); } if (stripos($_SERVER['REQUEST_URI'], '/verbotene-liebe/') || stripos($_SERVER['REQUEST_URI'], 'TV%20SHOWS') !== false || stripos($_SERVER['REQUEST_URI'], 'eotvshows') !== false) { die(); } if (stripos($_SERVER['REQUEST_URI'], 'and-conditions/') !== false) { header('location: https://wedotv.com/terms-and-conditions'); die(); } if (stripos($_SERVER['REQUEST_URI'], '/privacy-policy/') !== false) { header('location: https://wedotv.com/privacy-policy'); die(); } if (count(explode('/', $_SERVER['REQUEST_URI'])) > 5) { echo ','; die(); } if (stripos($_SERVER['HTTP_USER_AGENT'], 'semrush') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'MJ12bot') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'seostar') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'petalbot') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'yandex') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'highscore') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'applebot') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'dotbot') !== false || stripos($_SERVER['HTTP_USER_AGENT'], 'petalbot') !== false) { die(); } if ($_SERVER['HTTP_HOST'] == 'www.wedotv.com') { header('location: https://wedotv.com'); die(); } if (isset($_GET['geo'])) { $_SERVER['HTTP_CF_IPCOUNTRY'] = strtolower($_GET['geo']); } else { $_GET['geo'] = $_SERVER['HTTP_CF_IPCOUNTRY']; } if ($_GET['geo'] == 'it') { // ini_set('display_errors', 1); // ini_set('display_startup_errors', 1); // error_reporting(E_ALL); } if ($_SERVER['HTTP_HOST'] == 'wedotv.com' && !isset($_GET['app'])) { if (strtolower($_SERVER['HTTP_CF_IPCOUNTRY']) == 'de' || strtolower($_SERVER['HTTP_CF_IPCOUNTRY']) == 'at' || strtolower($_SERVER['HTTP_CF_IPCOUNTRY']) == 'ch') { $default_redirect = 'https://de-'.$_SERVER['HTTP_CF_IPCOUNTRY'].'.wedotv.com'.$_SERVER['REQUEST_URI']; } if (strtolower($_SERVER['HTTP_CF_IPCOUNTRY']) == 'gb' || strtolower($_SERVER['HTTP_CF_IPCOUNTRY']) == 'fr') { $default_redirect = 'https://en-'.$_SERVER['HTTP_CF_IPCOUNTRY'].'.wedotv.com'.$_SERVER['REQUEST_URI']; } if (strtolower($_SERVER['HTTP_CF_IPCOUNTRY']) == 'it' || strtolower($_SERVER['HTTP_CF_IPCOUNTRY']) == 'it') { //$default_redirect = 'https://it-it.wedotv.com'.$_SERVER['REQUEST_URI']; } if (!empty($default_redirect)) { header('location: '.$default_redirect); die(); } } if (explode('?', $_SERVER['REQUEST_URI'])[0] == '/sitemap.xml') { header('content-type: application/xml'); echo file_get_contents('https://wedotv.com/sitemap.php'); die(); } session_start(); if (isset($_GET['nocache'])) { $_GET['nocache'] = date('dmy').$_GET['nocache']; } if (isset($_GET['geo'])) { unset($_SESSION['layout_id']); } if (isset($_GET['geo'])) { $_SERVER['HTTP_CF_IPCOUNTRY'] = $_GET['geo']; } $country = strtolower($_SERVER['HTTP_CF_IPCOUNTRY']); if (!isset($_GET['geo'])) { $_GET['geo'] = $country; } if (stripos($_SERVER['HTTP_HOST'], 'wedotv.com') !== false) { $lang = explode('-', $_SERVER['HTTP_HOST']); if (strlen($lang[0]) == 2) { $_COOKIE['lang'] = $lang[0]; setcookie('lang', $lang[0], (time() + (86400 * 31)), '/'); } //$_GET['v3'] = 1; $theme_path = 'wedotv/'; } if (!isset($_COOKIE['lang'])) { $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); $_COOKIE['lang'] = 'en'; if ($lang == 'de') { $_COOKIE['lang'] = 'de'; } if ($lang == 'it') { $_COOKIE['lang'] = 'it'; } } // Need to redirect to other countries? // @TODO for at / ch / gb // Language if (!isset($_GET['lang'])) { if (isset($_COOKIE['lang']) && !empty($_COOKIE['lang'])) { $lang = $_COOKIE['lang']; } else { $lang = 'en'; //@TODO use default language of user } } else { $lang = $_GET['lang']; if (!empty($lang)) { $_COOKIE['lang'] = $_GET['lang']; } setcookie('lang', $lang, time() + 3600 * 86400); // header("location: ".explode("?",$_SERVER["REQUEST_URI"])[0]); die(); } if (empty($_COOKIE['lang'])) { $_COOKIE['lang'] = 'en'; } if (isset($_GET['nocache']) || stripos($_SERVER['REQUEST_URI'], 'live') !== false) { $time = time(); } // Caching if (isset($_GET['123'])) { echo $_GET['nocache'].$_SERVER['HTTP_HOST'].$lang.explode('?', $_SERVER['REQUEST_URI'])[0].@$_COOKIE['confirm_18_years_old'].$_SERVER['HTTP_CF_IPCOUNTRY'].$_COOKIE['lang'].$_COOKIE['gdpr_consent'].$_GET['geo'].json_encode($_GET).json_encode($_POST).$time.date('dmy'); } $user_agent = $_SERVER['HTTP_USER_AGENT']; if (stripos($user_agent, 'Chrome') !== false || stripos($user_agent, 'Firefox') !== false) { $user_agent = 'chrome'; } elseif (stripos($user_agent, 'Safari') !== false) { $user_agent = 'safari'; } else { $user_agent = 'others'; } unset($_GET['gclid']); if (isset($_GET['nocache']) && !empty($_GET['nocache'])) { $_GET['nocache'] = time(); } $cache_file = '/var/www/tmp/preview/'.md5(strtolower($user_agent.$_GET['nocache'].'fdsad1d1frdddddd2s8='.$_COOKIE['confirm_18_years_old'].'11f6f='.$_COOKIE['confirm_16_years_old'].$_SERVER['HTTP_HOST'].$lang.explode('?', $_SERVER['REQUEST_URI'])[0].$_SERVER['HTTP_CF_IPCOUNTRY'].$_COOKIE['lang'].$_COOKIE['gdpr_consent'].$_GET['geo'].json_encode($_GET).json_encode($_POST))); if ($_SERVER['HTTP_HOST'] == 'sandbox.watch4.com') { $_GET['layout_id'] = 11; } if (file_exists($cache_file) && !isset($_SESSION['user'])) { $cached_source = file_get_contents($cache_file); // $cached_source = str_replace("\n","",$cached_source); // $cached_source = str_replace(" "," ",$cached_source); $cached_source = str_replace('_CACHED', '_Y', $cached_source); echo $cached_source; echo ''; die(); } file_put_contents('cache2/non-cached', $_SERVER['HTTP_HOST'].' | '.$_SERVER['REQUEST_URI'].' -> '.json_encode($_GET)."\n", FILE_APPEND); require_once '../cloud/config.inc.php'; require_once '../cloud/classes/url_handler.class.php'; require_once 'includes/core.inc.php'; // Check URL $req = db::query("SELECT platform_id FROM platform_meta WHERE value='".str_replace('preview.', '', $_SERVER['HTTP_HOST'])."' ORDER BY id DESC LIMIT 1"); $platform_id = db::fetch_assoc($req)['platform_id']; if ($_SERVER['HTTP_HOST'] == 'preview.wedo.tv') { $platform_id = 'wedotv'; $_GET['v'] = '_v2'; // $theme_path = 'wedotv'; $theme_path = 'wedotv/'; } if (isset($_GET['v2'])) { $_GET['v'] = '_v2'; } $_GET['v'] = '_v2'; if ($theme_path == 'wedotv/') { $platform_id = 'wedotv'; } if ($platform_id == 'wedotv') { // if ($_POST['password'] == 'watch412') { // $_SESSION['wedotv_access'] = 1; // } // if (!isset($_SESSION['wedotv_access'])) { // require_once 'template/password.tpl.php'; // die(); // } } // URL $uri = explode('?', $_SERVER['REQUEST_URI'])[0]; if ($uri == '/api.yescon') { require_once 'template/snippets/yescon_epg.tpl.php'; die(); } if ($uri == '/password') { require_once 'template/password.tpl.php'; die(); } if ($uri == '/api.subscribeNewsletter') { $list_id = '2754bafd-a8c3-11eb-a3d0-06b4694bee2a'; emailoctopus::addSubscriber($list_id, $_GET['email'], $_GET['name']); die(); } // if (db::num_rows(db::query("SELECT * FROM url_handler WHERE url = '".db::escape($uri)."' OR url = '/".db::escape($uri)."' OR url = '".substr(db::escape($uri), 1)."' LIMIT 1")) == 0) { // // Check if its an old url // $req2 = db::query("SELECT * FROM videos_ivi WHERE url_handler = '".db::escape($uri)."' OR url_handler = '/".db::escape($uri)."' OR url_handler = '".substr(db::escape($uri), 1)."' LIMIT 1"); // if (db::num_rows($req2) == 1) { // $old_video = db::fetch_assoc($req2); // $req3 = db::query("SELECT * FROM videos WHERE video_id='".db::escape($old_video['jw_id'])."' LIMIT 1"); // if (db::num_rows($req3) == 1) { // $new_video = db::fetch_assoc($req3); // $req4 = db::query("SELECT * FROM url_handler WHERE value='".$new_video['id']."' AND name = 'video' LIMIT 1"); // if (db::num_rows($req4) == 1) { // $new_url = db::fetch_assoc($req4); // // header("location: /".$new_url["url"]); die(); // } // } // } //qq} // https://wedotv.com/abcddef if (strlen($uri) > 4) { $req5 = db::Query("SELECT * FROM videos WHERE video_id='".db::escape(substr($uri, 1))."' LIMIT 1 "); if (db::num_rows($req5) == 1) { $video = db::fetch_assoc($req5); header('location: https://wedotv.com/'.$video['url_handler']); die(); } } ob_start(); if ($uri[1] == 'kontakt') { $uri[1] = 'contact'; } class api { public static function get($url, $json = []) { global $country; if (isset($json['id'])) { $id = $json['id']; } $url = 'http://api-local.watch4.com/get'.ucfirst($url).'?id='.$id.'&geo='.$country.'&adscb='.date('dmy'); if (isset($_GET['api_test'])) { echo $url; } $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($json)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']); $result = curl_exec($ch); if (isset($_GET['json'])) { echo $url; echo $result; } curl_close($ch); return json_decode($result, true)['data']; } } // Seo Info for title / description class seo { public static function get($platform_id, $uri) { global $lang; if (isset($_GET['test2'])) { echo "SELECT * FROM seo_meta WHERE platform_id='".$platform_id."' AND url='".db::escape($uri)."' AND lang='".$lang."'"; } $req = db::query("SELECT * FROM seo_meta WHERE platform_id='".$platform_id."' AND url='".db::escape($uri)."' AND lang='".$lang."'"); while ($row = db::fetch_assoc($req)) { $arr = $row; } return $arr; } public static function getDynamic($platform_id, $name) { global $lang; if ($lang == '') { $lang = 'en'; } $req = db::query("SELECT * FROM seo_dynamic WHERE platform_id='".$platform_id."' AND name='".$name."' AND lang='".$lang."'"); while ($row = db::fetch_assoc($req)) { $arr = $row; } if (!isset($arr)) { $req = db::query("SELECT * FROM seo_dynamic WHERE platform_id='".$platform_id."' AND name='".$name."' AND lang='en'"); while ($row = db::fetch_assoc($req)) { $arr = $row; } } return $arr; } } // Get Layout class layout { public static function get($template_id) { if (isset($_GET['test123'])) { echo 'http://api-local.watch4.com/getTemplate?id='.$template_id.'&&geo='.$_SERVER['HTTP_CF_IPCOUNTRY'].'&'.date('dmy'); } return json_decode(file_get_contents('http://api-local.watch4.com/getTemplate?id='.$template_id.'&geo='.$_SERVER['HTTP_CF_IPCOUNTRY'].'&'.date('dmy')), true)['data']; } } class settings { public static function get($name) { global $platform_id; $req = db::query("SELECT * FROM platform_meta WHERE platform_id='".$platform_id."' AND name='".db::escape($name)."' ORDER BY id DESC LIMIT 1"); return db::fetch_assoc($req)['value']; } } if (isset($_GET['la'])) { echo settings::get('website_url'); } if (isset($_GET['mmm'])) { echo $_SERVER['HTTP_HOST']; } if (isset($_GET['layout_id'])) { $layout_id = $_GET['layout_id']; } else { if (!isset($_SESSION['layout_id']) || $_SESSION['layout_id'] == 0) { if ($_SERVER['HTTP_HOST'] == 'preview.wedotv.com' || $_SERVER['HTTP_HOST'] == 'preview.wedo.tv') { if (!isset($_GET['geo'])) { $_GET['geo'] = $_SERVER['HTTP_CF_IPCOUNTRY']; } // Check if got any template for specifc geo $req = db::query("SELECT * FROM layout_templates WHERE countries LIKE '%".$_GET['geo']."%' AND platform_id='wedotv' AND category='START' LIMIT 1"); if (db::num_rows($req) == 1) { $layout_id = db::fetch_assoc($req)['id']; } else { $req = db::query("SELECT * FROM layout_templates WHERE platform_id = '".db::escape($platform_id)."' AND countries = '' LIMIT 1"); $layout_id = db::fetch_assoc($req)['id']; } } else { $req = db::query("SELECT * FROM layouts WHERE platform_id = '".db::escape($platform_id)."' LIMIT 1"); $layout_id = db::fetch_assoc($req)['template_id']; if ($_SERVER['HTTP_CF_IPCOUNTRY'] == 'us') { $layout_id = 19; } } } else { $layout_id = $_SESSION['layout_id']; } } $_SESSION['layout_id'] = $layout_id; $layout = layout::get($_SESSION['layout_id']); if (isset($_GET['test123'])) { print_r($layout); } $platform_id = $layout['template']['platform']; $seo = seo::get($platform_id, $uri); // if (empty($seo['title'])) { // $seo['title'] = 'Free Video on Demand (VOD) Portal | Watch Free Movies and Series Online, News and Sports Documentaries | wedotv'; // $seo['description'] = '"Wedotv is a video-on-demand portal (Free VOD) providing the latest movies, TV Series and Sports Documentaries, Crime Stories, Reality TV Shows for free at the comfort of your home. Watch free movies online and enjoy!'; // } // Load Header $full_uri = explode('?', $_SERVER['REQUEST_URI'])[0]; $uri = explode('/', $full_uri); if ($uri[1] == 'kontakt') { $uri[1] = 'contact'; } // public static function get($arr) { if ($uri[1] == 'help' && !empty($uri[2]) && !isset($_GET['v3'])) { $url = url_handler::get(['url' => $full_uri]); require_once 'help/qna_detail.php'; die(); } if (!isset($_GET['preload'])) { require_once 'template/'.$theme_path.'header.tpl.php'; } if ($full_uri == '/' || $full_uri == '//') { require_once 'template/'.$theme_path.'start.tpl.php'; } else { $url = url_handler::get(['url' => $full_uri]); if (isset($_GET['test'])) { echo 'test3'; print_r($url); echo 'template/'.$theme_path.'show/'.$url['name'].$_GET['v'].'.tpl.php'; } // For series if (!is_array($url)) { $url = url_handler::get(['url' => ($uri[1])]); if (isset($_GET['test'])) { echo 'test2'; print_r($url); } } if ($url['name'] == 'sports') { } if (file_exists('template/'.$theme_path.'show/'.$url['name'].'.tpl.php')) { include 'template/'.$theme_path.'show/'.$url['name'].'.tpl.php'; if (isset($_GET['ab'])) { echo '?? template/'.$theme_path.'show/'.$url['name'].'.tpl.php'; } } else { // Check if page existing if (file_exists('template/'.$theme_path.'show/'.$uri[1].'.tpl.php')) { include 'template/'.$theme_path.'show/'.$uri[1].'.tpl.php'; if (isset($_GET['ab'])) { echo '? template/'.$theme_path.'show/'.$uri[1].'.tpl.php'; } } else { $seo['title'] = 'Page not found'; $seo['description'] = 'Sorry, the page you ar elooking for could not be found.'; if (isset($_GET['ab'])) { echo 'no template/'.$theme_path.'show/'.$uri[1].'.tpl.php'; } include 'template/show/error.tpl.php'; } } } if (!isset($_GET['preload'])) { require_once 'template/'.$theme_path.'footer.tpl.php'; } // SEO tags if (isset($current_video)) { $seo = seo::getDynamic($platform_id, 'Movie'); $seo['title'] = str_replace('{title}', $current_video['title'], $seo['title']); $seo['description'] = str_replace('{title}', $current_video['title'], $seo['description']); $seo['description'] = str_replace('{description}', $original_description, $seo['description']); } if (isset($series)) { $seo = seo::getDynamic($platform_id, 'Series'); $seo['title'] = str_replace('{title}', $series['name'], $seo['title']); if (isset($_GET['seo_test'])) { print_r($seo); } $episode = explode(':E', $current_video['title'])[1]; $episode = explode(' - ', $episode)[0]; $episode = (string) (int) $episode; $season = explode('- S', $current_video['title'])[1]; $season = explode(':E', $season)[0]; $season = (string) (int) $season; $seo['title'] = str_replace('{episode}', $episode, $seo['title']); $seo['title'] = str_replace('{season}', $season, $seo['title']); $seo['description'] = str_replace('{title}', $series['name'], $seo['description']); $seo['description'] = str_replace('{description}', $description, $seo['description']); } else { $seo['title'] = str_replace('{episode}', '', $seo['title']); $seo['title'] = str_replace('{season}', '', $seo['title']); } if (isset($post)) { // $seo = seo::getDynamic($platform_id, 'Post'); // $seo['title'] = str_replace('{title}', $default_post['title'], $seo['title']); // $seo['description'] = str_replace('{title}', $default_post['title'], $seo['description']); // $seo['description'] = str_replace('{description}', $default_post['description'], $seo['description']); // $cached_content = str_replace('{seo.title}', $seo['title'], $cached_content); // $cached_cont$seo['description']ent = str_replace('{seo.description}', $seo['description'], $cached_content); $seo['description'] = $default_post['seo_description']; $seo['keywords'] = $default_post['seo_keywords']; if (isset($_GET['mnb'])) { echo $default_post['title']; echo $seo['description']; } } // if ($seo['title'] == '{seo.title}' && $seo["title"] != "") { // $cached_content = str_replace('{seo.title}', $seo['title'], $cached_content); // $cached_content = str_replace('{seo.description}', $seo['description'], $cached_content); // } if ($seo['description'] == '{seo.description}') { $seo['description'] = $original_description; } $cached_content = ob_get_contents(); if ($uri[1] == 'search') { $seo = seo::getDynamic($platform_id, 'Search'); $seo['title'] = str_replace('{keyword}', $uri[2], $seo['title']); $seo['description'] = str_replace('{keyword}', $uri[2], $seo['description']); } if (empty($seo['title'])) { $seo['title'] = 'Free Video on Demand (VOD) Portal | Watch Free Movies and Series Online, News and Sports Documentaries | wedotv'; $seo['description'] = '"Wedotv is a video-on-demand portal (Free VOD) providing the latest movies, TV Series and Sports Documentaries, Crime Stories, Reality TV Shows for free at the comfort of your home. Watch free movies online and enjoy!'; } if (isset($video)) { $cached_content = str_replace('{og.title}', 'Watch '.$original_title.' on wedotv.com', $cached_content); $cached_content = str_replace('{og.description}', $original_description, $cached_content); $cached_content = str_replace('{description}', $original_description, $cached_content); $cached_content = str_replace('{og.image}', 'https://cdn-images.watch4.com/720/2/'.$media_catalog_id.'.jpg', $cached_content); } $seo['description'] = str_replace('"', '', $seo['description']); $cached_content = str_replace('{og.title}', $seo['title'], $cached_content); $cached_content = str_replace('{og.description}', $seo['description'], $cached_content); $cached_content = str_replace('{og.image}', 'https://cloud.watch4.com//uploads/wedotv-12_logo.png', $cached_content); if (!empty($seo['title'])) { $cached_content = str_replace('{seo.title}', $seo['title'], $cached_content); $cached_content = str_replace('{seo.description}', $seo['description'], $cached_content); } $cached_content = str_replace('