Remove code that was commented out

This commit is contained in:
copernicus-mogley 2018-05-16 13:32:18 +02:00
parent aedc95780a
commit cdd8d07fe8
1 changed files with 0 additions and 21 deletions

View File

@ -1,27 +1,6 @@
<?php
$langs = ["ru","fr","zh","pt","ko_KR","ja","es"];
$pathArray = explode('/', $_SERVER[REQUEST_URI]);
// Redirect non-english posts for translation
/*
if (is_single()){
$pubDate = get_the_date(U);
if ( (in_array($pathArray[1], $langs)) && ($pubDate <= 1489363200 ) ) { // Published on or before 2017-03-13
$redirectLang = strtolower($pathArray[1]);
if ($redirectLang === 'pt') {
$redirectLang = 'pt_br';
}
$origURL = 'https://z.cash/'.$redirectLang.'/blog/'.$pathArray[2].'.html';
echo '<a href="'.$origPost.'" target="_blank">'.$origPost.'</a>';
function Redirect($url, $permanent = false) {
if (headers_sent() === false) {
header('Location: ' . $url, true, ($permanent === true) ? 301 : 302);
}
exit();
}
Redirect($origURL);
}
}
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js no-svg">
<head>