<?php

require_once '../../owloo_config.php';
if (!isset($_POST['page']) || !isset($_POST['country'])) {
    exit;
}
$page_data = '{"id_page":"7","fb_id":"81221197163","username":"******","name":"Cristiano Ronaldo","about":"Welcome to the OFFICIAL Facebook page of Cristiano Ronaldo.","description":"","link":"https:\\/\\/www.facebook.com\\/Cristiano","picture":"https:\\/\\/fbcdn-profile-a.akamaihd.net\\/hprofile-ak-xfp1\\/v\\/t1.0-1\\/p50x50\\/10363769_10152518873712164_4951848658666973254_n.jpg?oh=a58b55ef5e822b30902b977a7ae2ae84&oe=549A1A5F&__gda__=1419871796_c17e96d5391735170849fab441a859b4","cover":"https:\\/\\/fbcdn-sphotos-g-a.akamaihd.net\\/hphotos-ak-xaf1\\/v\\/t1.0-9\\/s720x720\\/10441268_10152518873232164_3307823841159892259_n.png?oh=3bd65e113bba9c1e1e76485d9302de78&oe=549E56E5&__gda__=1419091984_8bd025bd1060a7ebb3ad1541f710ab14","location":"47","is_verified":"1","likes":"97627263","talking_about":"2985798","first_local_fans_country":"22","hispanic":"1","active":"1","date_add":"2014-05-29","date_update":"2014-09-10"}';
$page_data = json_decode($page_data, true);
$country_data = get_country_data_from_name($_POST['country']);
$seriesData_local_fans = '5839160,5853876,5866833,5880096,5892288,5904250,5917764,5933002,5948022,5957060,5965955,5974640,5982445,5990687,5998803,6006173,6011661,6017995,6026323,6029664,6035152,6042974,6048281,6052939,6062842,6066755,6071209,6074966,6078541,6080822';
$seriesDataMin_local_fans = '5839160';
$seriesDataMax_local_fans = '6080822';
$xAxisCategories_local_fans = "'09 Ago','10 Ago','11 Ago','12 Ago','13 Ago','14 Ago','15 Ago','16 Ago','17 Ago','18 Ago','19 Ago','20 Ago','21 Ago','22 Ago','23 Ago','24 Ago','25 Ago','26 Ago','27 Ago','28 Ago','29 Ago','30 Ago','31 Ago','01 Set','03 Set','04 Set','05 Set','06 Set','07 Set','08 Set'";
$step_2 = 3;
$local_fans_table = '<table><thead><tr><th>Periodo</th><th class="owloo_country_table_2">Fans</th><th>Porcentaje</th></tr></thead><tbody><tr><td>Dí­a</td><td><span class="owloo_change_audition owloo_arrow_up">2.281</span></td><td><span class="owloo_arrow_up_porcent">0,037511%</span></td></tr><tr><td>Semana</td><td><span class="owloo_change_audition owloo_arrow_up">27.883</span></td><td><span class="owloo_arrow_up_porcent">0,46%</span></td></tr><tr><td>Dos semanas</td><td><span class="owloo_change_audition owloo_arrow_up">74.649</span></td><td><span class="owloo_arrow_up_porcent">1,23%</span></td></tr><tr><td>Mes</td><td><span class="owloo_change_audition owloo_arrow_up">241.662</span></td><td><span class="owloo_arrow_up_porcent">3,97%</span></td></tr><tr><td>Dos meses</td><td><span class="owloo_change_audition owloo_arrow_up">569.507</span></td><td><span class="owloo_arrow_up_porcent">9,37%</span></td></tr></tbody></table>';
/********************************* FIN - CHART: Historial de total de usuarios en los ultimos 30 dias ***************************************/
?>
<div class="owloo_left owloo_country_table_chart_audience">
    <div id="owloo_chart_local_fans" class="owloo_chart_audiencie"></div>
</div>
<div id="owloo_chart_local_fans_table" class="owloo_right owloo_country_table_2_content">
</div>
<script type="text/javascript">
/***** FACEBOOK PAGE CHARTS *****/
    $(function () {
        var chartAudiencia;
        $(document).ready(function() {
            chartAudiencia = new Highcharts.Chart({
                chart: {
                    renderTo: 'owloo_chart_local_fans',
                    type: 'area',
Exemplo n.º 2
0
    return $hispanic ? 20 : 212;
}
define('COUNTRY_TOTAL_COUNT', get_country_total_count());
define('COUNTRY_HISPANIC_TOTAL_COUNT', get_country_total_count(true));
function get_city_total_count()
{
    return 19232;
}
define('CITY_TOTAL_COUNT', get_city_total_count());
define('MAX_LIST_CITY_COUNT', 500);
function get_country_data_from_name($name)
{
    return json_decode('{"id_country":"21","code":"IN","name":"India","nombre":"India"}', true);
}
if (isset($_GET['country']) && !empty($_GET['country'])) {
    $_country_data = get_country_data_from_name($_GET['country']);
    define('COUNTRY_DATA_CODE', $_country_data ? $_country_data['code'] : NULL);
    define('COUNTRY_DATA_ID', $_country_data ? $_country_data['id_country'] : NULL);
    define('COUNTRY_DATA_NAME_ES', $_country_data ? $_country_data['nombre'] : NULL);
    define('COUNTRY_DATA_NAME_EN', $_country_data ? $_country_data['name'] : NULL);
}
/***** FIN Constantes para agilizar las consultas *****/
/***** Paginador *****/
define('PAGER_PP', 20);
//Cantidad de elementos que se mostraran por pagina
define('TWITTER_TOTAL_PROFILES', 1000);
define('TWITTER_MENTIONS_TOTAL_PROFILES', 100);
/***** FIN Paginador *****/
function get_country_data_from_code($code)
{
    return json_decode('{"id_country":"80","code":"PY","name":"Paraguay","nombre":"Paraguay"}', true);