Example #1
0
 private function getDate($key, $format)
 {
     return russian_date($format, strtotime($this->data[$key]));
 }
Example #2
0
function cp_bitrix_date($format, $date)
{
    list($d, $m, $y) = explode('.', $date);
    $time = mktime(1, 1, 1, $m, $d, $y);
    $retval = null;
    switch (LANGUAGE_ID) {
        case 'en':
            $retval = date($format, $time);
            break;
        default:
            $retval = russian_date($format, $time);
            break;
    }
    return $retval;
}
    echo preg_replace("/.date=(0|1|2|3)/", "", $_SERVER['REQUEST_URI']) . "?date=1";
    ?>
">Завтра</a> |
        <a
            href="<?php 
    echo preg_replace("/.date=(0|1|2|3)/", "", $_SERVER['REQUEST_URI']) . "?date=2";
    ?>
"><?php 
    echo russian_date("l, j F", strtotime($mayday) + 60 * 60 * 24 * 2);
    ?>
</a> |
        <a href="<?php 
    echo preg_replace("/.date=(0|1|2|3)/", "", $_SERVER['REQUEST_URI']) . "?date=3";
    ?>
"><?php 
    echo russian_date("l, j F", strtotime($mayday) + 60 * 60 * 24 * 3);
    ?>
</a>
    </p>
<?php 
}
$showcit = urlencode(get_option('showtime_city'));
include_once 'simple_html_dom.php';
//$html = new simple_html_dom();
$gorod = formatstr($_GET["location"]);
$lang = substr(get_bloginfo('language'), 0, 2);
if (!empty($gorod)) {
    $html = file_get_html('http://www.google.com/movies?mid=&hl=' . $lang . '&near=' . $cit . '&date=' . $dat);
} else {
    $html = file_get_html('http://www.google.com/movies?mid=&hl=' . $lang . '&near=' . $showcit . '&date=' . $dat);
}
	<meta charset="UTF-8">
	<title>Currency</title>
	<link rel="stylesheet" href="styles/main.css">
	<link rel="stylesheet" href="styles/currency.css">
</head>
<body>
	<div class="wrapper center">
		<div class="github">
			<a href="https://github.com/randomfederation/randomfederation/blob/master/currency.php" class="github-link" title="Github сурс для currency.php" target="_blank"></a>
		</div>
		<header>
			<a href="index.php"><img src="img/rand-fed-logo.png" alt="rand fed logo"></a>
		</header>
		<main>
			<h1>Официальный курс валюты Центрального Банка Рандомной Федерации на <?php 
echo russian_date();
?>
:</h1>
			<h2>Доллар США: <?php 
echo $dollarCost_display;
?>
</h2>
			<h2>У вас имеется: <?php 
echo $rubHave_display;
?>
</h2>
			<h2>Вы можете купить: <?php 
echo $dollarAmount_display;
?>
</h2>
			<input class="reload-button" type="button" value="Обновить" onClick="window.location.reload()">