Файл: api_core/head.php
Строк: 121
<?php
////////////////////////////////////////
///// Основа ApiCMS //////
///// Автор биллинга - IvanDanilov /////
///// Автор биллинга - IvanDanilov /////
///// ICQ 936545, mail: KyberID@ya.ru //
////////////////////////////////////////
////////////////////////////////////////
header('Cache-control: no-cache');
echo '<?xml version="1.0" encoding="utf-8" core="api"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>';
////////////////////////////////////////
echo '<link rel="shortcut icon" href="http://'.$set['site'].'/favicon.ico"/>';
////////////////////////////////////////
if ($user['id']){
echo '<link rel="stylesheet" href="http://'.$set['site'].'/design/styles/'.$user['style'].'/style.css" type="text/css"/>';
}else{
echo '<link rel="stylesheet" href="http://'.$set['site'].'/design/styles/'.$api_settings['style'].'/style.css" type="text/css"/>';
}
////////////////////////////////////////
echo'<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>';
if (isset($user)){
?><script>
function show() {
$.ajax({
url: "/livemail.ajax.php",
cache: false,
success: function(html){
$("#frends").html(html);
}
});
}
$(document).ready(function(){
show();
setInterval('show()',160000);
});
</script><div style="position:fixed; left: 10px; bottom:15px;" id="frends"></div><script type="text/javascript">
$(function() {
$.fn.scrollToTop = function() {
$(this).hide().removeAttr("href");
if ($(window).scrollTop() >= "250") $(this).fadeIn("slow")
var scrollDiv = $(this);
$(window).scroll(function() {
if ($(window).scrollTop() <= "250") $(scrollDiv).fadeOut("slow")
else $(scrollDiv).fadeIn("slow")
});
$(this).click(function() {
$("html, body").animate({scrollTop: 0}, "slow")
})
}
});
$(function() {
$("#Go_Top").scrollToTop();
});
</script>
<?
}
if ($_SERVER['PHP_SELF']=='/index.php'){
echo '<meta name="keywords" content="'.$api_settings['Keywords'].'">';
echo '<meta name="description" content="'.$api_settings['Description'].'">';
echo '<meta name="revisit" content="'.$api_settings['revisit'].' minutes">';
echo '<meta name="Generator" content="APICMS v.2.0, http://apicms.ru" />'; ///// не убирайте это для определения сервисами CMS
echo '<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/>';
echo '<meta http-equiv="Content-Style-Type" content="text/css" />';
}else{
if(empty($title)){
echo '<title>Биллинг</title></head><body>';
}else{
echo '<title>'.$api_settings['title'].'</title></head><body>';
}
echo '<meta name="keywords" content="'.$api_settings['Keywords'].'">';
echo '<meta name="description" content="'.$api_settings['Description'].'">';
echo '<meta name="revisit" content="'.$api_settings['revisit'].' minutes">';
echo '<meta name="Generator" content="APICMS v.2.0, http://apicms.ru" />'; ///// не убирайте это для определения сервисами CMS
echo '<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/>';
echo '<meta http-equiv="Content-Style-Type" content="text/css" />';
}
echo '<a href="/"><div class="logo"><center><img src="/design/styles/'.$api_settings['style'].'/'.rand(1, 13).'.png" height="25"/></center></div></a>';
///////////////////записываем активность
if ($user['id'] && $_SERVER['PHP_SELF']!='/index.php'){
mysql_query("UPDATE `users` SET `activity` = '$time', `my_place` = '".htmlspecialchars($title)."' WHERE `id` = '$user[id]' LIMIT 1");
}
include_once 'ads_up.php';
////////////////////////////////////////
include_once 'user_panel.php';
////////////////////////////////////////
if ($_SERVER['PHP_SELF']!='/index.php'){
echo '<div class="subhead"><center>'.htmlspecialchars($title).'</center></div>';
}
////////////////////////////////////////
?>