$id_profile = $profiles['owloo_user_id'];
 $screen_name = $profiles['owloo_screen_name'];
 $name = $profiles['owloo_user_name'];
 $description = $profiles['owloo_user_description'];
 $picture = $profiles['owloo_user_photo'];
 $cover = $profiles['owloo_user_cover'];
 $is_verified = $profiles['owloo_user_verified_account'];
 $location = $profiles['owloo_user_location'];
 $idiom = $profiles['owloo_user_language'];
 $in_twitter_from = date("Y-m-d", strtotime($profiles['owloo_user_created_on']));
 $followers_count = $profiles['owloo_followers_count'];
 $following_count = $profiles['owloo_following_count'];
 $tweet_count = $profiles['owloo_tweetcount'];
 $tweets_made_by_day = get_tweets_made_by_day($id_profile);
 $tweets_made_by_day_of_the_week = get_tweets_made_by_day_of_the_week($id_profile);
 $history = getHistory30Array($id_profile);
 $history['tweets_made_by_day'] = $tweets_made_by_day;
 $history['tweets_made_by_day_of_the_week'] = $tweets_made_by_day_of_the_week;
 $average_growth = $history['followers']['average_growth'] === NULL ? 'NULL' : $history['followers']['average_growth'];
 $accumulate_down_30 = $history['followers']['accumulate_down'];
 unset($history['followers']['accumulate_down']);
 $charts = json_encode($history);
 $followers_grow_1 = "NULL";
 $followers_grow_7 = "NULL";
 $followers_grow_15 = "NULL";
 $followers_grow_30 = "NULL";
 $tw_profile_followers_nun_dates = get_tw_profile_followers_nun_dates($id_profile);
 if ($tw_profile_followers_nun_dates > 1) {
     $followers_grow_1 = getCrecimientoTwitterFollowers($id_profile, $followers_count, 1);
 }
 if ($tw_profile_followers_nun_dates > 7) {
Пример #2
0
$que_pages = db_query($query, array());
while ($pages = mysql_fetch_assoc($que_pages)) {
    $id_page = $pages['id_page'];
    $parent = !empty($pages['parent']) ? $pages['parent'] : "0";
    $fb_id = $pages['fb_id'];
    $username = $pages['username'];
    $name = $pages['name'];
    $about = $pages['about'];
    $description = !empty($pages['description']) ? $pages['description'] : "NULL";
    $link = $pages['link'];
    $picture = $pages['picture'];
    $cover = $pages['cover'];
    $is_verified = $pages['is_verified'];
    $fb_page_likes_last_update = get_fb_page_likes_last_update($id_page);
    $fb_page_likes_nun_dates = get_fb_page_likes_nun_dates($id_page);
    $history = getHistory30Array($id_page, $fb_page_likes_last_update);
    $likes = $pages['likes'];
    $likes_history_30 = json_encode($history['likes']);
    $likes_grow_1 = "NULL";
    $likes_grow_7 = "NULL";
    $likes_grow_15 = "NULL";
    $likes_grow_30 = "NULL";
    $likes_grow_60 = "NULL";
    $talking_about = $pages['talking_about'];
    $talking_about_history_30 = json_encode($history['talking_about']);
    $talking_about_grow_1 = "NULL";
    $talking_about_grow_7 = "NULL";
    $talking_about_grow_15 = "NULL";
    $talking_about_grow_30 = "NULL";
    $talking_about_grow_60 = "NULL";
    if ($fb_page_likes_nun_dates > 1) {