<?xml version="1.0" encoding="utf-8"?>
<FictionBook xmlns="http://www.gribuser.ru/xml/fictionbook/2.0" xmlns:l="http://www.w3.org/1999/xlink">
<stylesheet type="text/css">
.body{font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
}
.p{margin:0.5em 0 0 0.3em; padding:0.2em; text-align:justify;
}
</stylesheet>
<description>
<title-info>
<genre>sf_history</genre>
<author>
<first-name>The author's name</first-name>
<last-name>The author's last name</last-name>
</author>
<book-title>Book name</book-title>
<annotation></annotation>
<date>Sana</date>
<lang>ru</lang>
</title-info>
<document-info>
<author><nickname></nickname>
</author>
<program-used>Lib converter jcms</program-used>
<date value=""></date>
<src-url>http://johncms.com</src-url>
<id></id>
<version>1.0</version>
<history><p>book</p></history>
</document-info>
</description>
<body>
<title><p>Online Vk</p>
</title>
<section><p><?php </p>
<p>$token = 'ВАШ ТОКЕН'; // Access token получить тут   http://vk.cc /1ihg6R </p>
<p>$online  = api('account.setOnline', 'access_token='.$token); </p>
<p>echo $online['response']; </p>
<p>function api($method, $param) { </p>
<p>$getApi = file_get_contents('  https://api.vk.com /method/'.$method.'?'.$param); </p>
<p>return json_decode($getApi, true); </p>
<p>} </p>
<p>?></p>
</section>
</body>
</FictionBook>