<?php

ob_start();
include_once "../config.php";
include_once "../scripts/time_ago_format.php";
$myObject = new time_ago_format();
if (isset($_POST['id'])) {
    $id = $_POST['id'];
    $ids = $_POST['ids'];
}
if (isset($_POST['cacheBuster'])) {
    $cacheBuster = $_POST['cacheBuster'];
}
if (!isset($id) or !isset($ids)) {
    header("Location: ../index.php");
    exit;
}
ob_flush();
$mysql = mysql_query("SELECT user_id,creator_array,admin_array,member_array FROM planets WHERE id='{$id}'");
while ($row = mysql_fetch_array($mysql)) {
    $user_id = $row['user_id'];
    $creator_array = $row['creator_array'];
    $admin_array = $row['admin_array'];
    $member_array = $row['member_array'];
    $memberArray = explode(",", $member_array);
    $adminArray = explode(",", $admin_array);
    $creatorArray = explode(",", $creator_array);
    $CREATORS = join(',', $creatorArray);
}
if (in_array($ids, $adminArray) or in_array($ids, $creatorArray)) {
    $view_type = "";
<?php

ob_start();
include_once "../config.php";
include_once "../scripts/time_ago_format.php";
$myObject = new time_ago_format();
if (!isset($number)) {
    $number = "0";
}
$DisplayList = "";
$comment = "";
$comments = "";
$like_love = "";
$like_love2 = "";
if (isset($_GET['number'])) {
    $number = $_GET['number'];
    $cacheBuster = $_GET['cacheBuster'];
    $id = $_GET['id'];
    $ids = $_GET['ids'];
    $media_id = $_GET['album_id'];
}
if (!isset($id) or !isset($ids)) {
    header("Location: ../index.php");
    exit;
}
$mysql = mysql_query("SELECT * FROM planets WHERE id={$id}");
while ($row = mysql_fetch_array($mysql)) {
    $planet_id = $row['id'];
    $planet_name = $row['planet_name'];
    $creator_display = $row['creator_display'];
    $user_id = $row['user_id'];
<?php

ob_start();
include_once "../config.php";
include_once "../scripts/time_ago_format.php";
$myObject = new time_ago_format();
if (!isset($number)) {
    $number = "0";
}
$DisplayList = "";
$comment = "";
$comments = "";
$like_love = "";
$like_love2 = "";
if (isset($_GET['number'])) {
    $number = $_GET['number'];
    $cacheBuster = $_GET['cacheBuster'];
    $id = $_GET['id'];
    $ids = $_GET['ids'];
}
if (!isset($id) or !isset($ids)) {
    header("Location: ../index.php");
    exit;
}
ob_flush();
////////// SUBSCRIPTIONS!!! //////////
$mysql_union = mysql_query("(SELECT id, post_date AS datetime, union_type FROM posts WHERE ((user_page_id='{$id}')AND((memory_type='b')OR(memory_type='d'))) \n\t\t\t\t\t\tOR ((user_post_id='{$id}')AND((memory_type='c')OR(memory_type='d'))))\n\t\t\t\t\tUNION ALL(SELECT id, note_date AS datetime, union_type FROM notes WHERE user_id='{$id}' AND delete_item='1' AND memory_type='b')\n\t\t\t\t\tUNION ALL(SELECT id, upload_date AS datetime, union_type FROM albums WHERE user_id='{$id}' AND delete_item='1' AND memory_type='b')\n\t\t\t\t\tUNION ALL(SELECT id, upload_date AS datetime, union_type FROM images_walls WHERE user_id='{$id}' AND delete_item='1' AND memory_type='b')\n\t\t\t\t\tUNION ALL(SELECT id, upload_date AS datetime, union_type FROM videos WHERE user_id='{$id}' AND delete_item='1' AND memory_type='b')\n\t\t\t\t\tUNION ALL(SELECT id, upload_date AS datetime, union_type FROM games WHERE user_id='{$id}' AND delete_item='1' AND memory_type='b')\n\t\t\t\t\tUNION ALL(SELECT id, post_date AS datetime, union_type FROM albums_posts WHERE user_id='{$id}' AND delete_item='1' AND memory_type='b')\n\t\t\t\t\tUNION ALL(SELECT id, post_date AS datetime, union_type FROM images_posts WHERE user_id='{$id}' AND delete_item='1' AND memory_type='b')\n\t\t\t\t\tUNION ALL(SELECT id, post_date AS datetime, union_type FROM games_posts WHERE user_id='{$id}' AND delete_item='1' AND memory_type='b')\n\t\t\t\t\tUNION ALL(SELECT id, post_date AS datetime, union_type FROM videos_posts WHERE user_id='{$id}' AND delete_item='1' AND memory_type='b')\n\t\t\t\t\tUNION ALL(SELECT id, create_date AS datetime, union_type FROM planets WHERE user_id='{$id}' AND delete_item='1' AND memory_type='b') \n\t\t\t\t\tORDER BY datetime DESC LIMIT " . $number . ",20");
$numRows = mysql_num_rows($mysql_union);
if ($numRows > 0) {
    while ($row = mysql_fetch_array($mysql_union)) {
        $item_id = $row['id'];
<?php

ob_start();
include_once "../config.php";
include_once "../scripts/time_ago_format.php";
$myObject = new time_ago_format();
if (!isset($number)) {
    $number = "0";
}
$DisplayList = "";
$numRows = "";
$comment = "";
$comments = "";
$like_love = "";
$like_love2 = "";
if (isset($_GET['number'])) {
    $number = $_GET['number'];
    $cacheBuster = $_GET['cacheBuster'];
    $id = $_GET['id'];
    $ids = $_GET['ids'];
}
if (!isset($id) or !isset($ids)) {
    header("Location: ../index.php");
    exit;
}
ob_flush();
$mysql = mysql_query("SELECT planets_array FROM planets WHERE id={$id}");
while ($row = mysql_fetch_array($mysql)) {
    $planets_array = $row['planets_array'];
    $planetsArray = explode(",", $planets_array);
    $PLANETS = join(',', $planetsArray);
<?php

ob_start();
include_once "../config.php";
include_once "../scripts/time_ago_format.php";
$myObject = new time_ago_format();
if (!isset($number)) {
    $number = "0";
}
$TransactionsDisplayList = "";
if (isset($_GET['number'])) {
    $number = $_GET['number'];
    $id = $_GET['id'];
    $ids = $_GET['ids'];
    $list_number = $_GET['list_number'];
} else {
    if (isset($_POST['id'])) {
        $id = $_POST['id'];
        $ids = $_POST['ids'];
        $list_number = "1";
    } else {
        $id = $_SESSION['ids'];
        $ids = $_SESSION['ids'];
        $list_number = "1";
    }
}
ob_flush();
$mysql_union = mysql_query("(SELECT * FROM point_transactions WHERE (plus_id='{$ids}' OR minus_id='{$ids}') AND delete_transaction='1' AND create_type='planet') \n\t\t\t\t\tUNION ALL(SELECT * FROM point_transactions_comments WHERE (plus_id='{$ids}' OR minus_id='{$ids}') AND delete_transaction='1' AND create_type='planet')\n\t\t\t\t\tORDER BY transaction_date DESC LIMIT " . $number . ",30");
$numRows = mysql_num_rows($mysql_union);
if ($numRows > 0) {
    while ($row = mysql_fetch_array($mysql_union)) {
<?php

ob_start();
include_once "../config.php";
include_once "../scripts/time_ago_format.php";
$myObject = new time_ago_format();
if (!isset($number)) {
    $number = "0";
}
$DisplayList = "";
$numRows = "";
$comment = "";
$comments = "";
$like_love = "";
$like_love2 = "";
if (isset($_GET['number'])) {
    $number = $_GET['number'];
    $cacheBuster = $_GET['cacheBuster'];
    $id = $_GET['id'];
    $ids = $_GET['ids'];
}
if (isset($_GET['search'])) {
    $search = $_GET['search'];
    $search = strip_tags($_GET['search']);
    $search = mysql_real_escape_string($search);
}
if (!isset($id) or !isset($ids)) {
    header("Location: ../index.php");
    exit;
}
ob_flush();
<?php

ob_start();
include_once "../config.php";
include_once "../scripts/time_ago_format.php";
$myObject = new time_ago_format();
if (isset($_POST['id'])) {
    $id = $_POST['id'];
    $ids = $_POST['ids'];
    $cacheBuster = $_POST['cacheBuster'];
}
if (isset($_POST['items_per_page'])) {
    $items_per_page = $_POST['items_per_page'];
}
if ($items_per_page == "8") {
    $items_page = "40";
} else {
    $items_page = "100";
}
$mysql_tab = mysql_query("SELECT * FROM members_log WHERE id='{$ids}' LIMIT 1") or die("Sorry, we have a system error!");
while ($row = mysql_fetch_array($mysql_tab)) {
    $planets_tab = $row['planets_tab'];
}
if ($planets_tab == "1") {
    $tab_heading = "Popular & Recent";
    $mysql_order = "AND create_date>DATE_SUB(UTC_TIMESTAMP(),INTERVAL 336 HOUR) ORDER BY LENGTH(love_array) DESC, LENGTH(like_array) DESC, create_date DESC";
} else {
    if ($planets_tab == "2") {
        $tab_heading = "Popular";
        $mysql_order = "ORDER BY LENGTH(love_array) DESC, LENGTH(like_array) DESC, create_date DESC";
    } else {
<?php

ob_start();
include_once "../config.php";
include_once "../scripts/time_ago_format.php";
$myObject = new time_ago_format();
if (!isset($number)) {
    $number = "0";
}
$DisplayList = "";
$numRows = "";
$comment = "";
$comments = "";
$like_love = "";
$like_love2 = "";
if (isset($_GET['number'])) {
    $number = $_GET['number'];
    $cacheBuster = $_GET['cacheBuster'];
    $id = $_GET['id'];
    $ids = $_GET['ids'];
}
if (isset($_GET['search'])) {
    $search = $_GET['search'];
    $search = strip_tags($_GET['search']);
    $search = mysql_real_escape_string($search);
}
if (!isset($id) or !isset($ids)) {
    header("Location: ../index.php");
    exit;
}
ob_flush();