fclose($stat_archivo); //volcamos por pantalla y cerramos el output buffer ob_end_flush(); echo "<div id=\"message\"><b>" . $indexphp_todo . " <b>" . $_POST['status'] . "</b> " . $indexphp_todo2 . "</div>"; //FOLLOW COMMAND } elseif (eregi("^FOLLOW _", $_POST['status']) == true) { echo "<div id=\"message\">"; $getnick = sacar($_POST["status"], "_", "_"); $nicktofollow = idfromnick($getnick); follow($nicktofollow, $_SESSION['user_id']); echo "</div>"; //UNFOLLOW COMMAND } elseif (eregi("^UNFOLLOW _", $_POST['status']) == true) { echo "<div id=\"message\">"; $getnick = sacar($_POST["status"], "_", "_"); $nicktofollow = idfromnick($getnick); unfollow($nicktofollow, $_SESSION['user_id']); echo "</div>"; //DELETE TODO LIST COMMAND } elseif (eregi("^DONE _", $_POST['status']) == true) { $n_td_l = md5($_SESSION['user_id'] . "_todo_list"); $name = "./todo/" . $n_td_l . ".txt"; $line = sacar($_POST["status"], "_", "_"); $line = $line - 1; $file = file($name); $file[$line] = ""; $file = implode("", $file); $o = fopen($name, "w+"); fwrite($o, $file); fclose($o); echo "<div id=\"message\">" . $indexphp_todo3 . "<b>" . ($line + 1) . "</b>.</div>";
include "./inc/database.php"; include "./inc/login.php"; include "./inc/functions.php"; ?> <?php //header('Content-Type: text/xml; charset=UTF-8'); ?> <?php echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>"; ?> <rss version="0.92"> <?php $user = idfromnick($_GET["user"]); if ($_GET["user"]) { $sql2 = "SELECT status_id,user_id,status, DATE_FORMAT(date_set,'%M %e, %Y @ %l:%i:%s %p') AS ds FROM mt_statuses WHERE user_id='" . avoid_injection($user) . "' ORDER BY date_set DESC limit 15"; } else { $sql2 = "SELECT status_id,user_id,status, DATE_FORMAT(date_set,'%M %e, %Y @ %l:%i:%s %p') AS ds FROM mt_statuses ORDER BY date_set DESC limit 15"; } $resultado2 = mysql_query($sql2, $connuni); if ($_GET["user"]) { echo " <channel>\n <title>miniTwitter / " . name_hide($user) . "</title>\n <link>" . $pth . "index.php?user="******"</link>\n <description>miniTwitter updates from " . name_hide($user) . "</description>\n <language>en-us</language>\n <ttl>15</ttl>"; } else { echo " <channel>\n <title>miniTwitter / Public Timeline</title>\n <link>" . $pth . "index.php</link>\n <description>miniTwitter updates from Public Timeline</description>\n <language>en-us</language>\n <ttl>15</ttl>"; } while ($row2 = mysql_fetch_array($resultado2)) { echo "<item>\n <title>" . name_hide($row2["user_id"]) . ": " . $row2["status"] . "</title>\n <description>" . name_hide($row2["user_id"]) . ": " . $row2["status"] . "</description>\n <pubDate>" . $row2["ds"] . "</pubDate>\n </item>"; } echo "</channel>";
$p = $p + 1; } $restop = $p % 4; if ($restop == 0 && $p != 0) { echo "<div style=\"clear: both;\"></div>"; } $i = $i + 1; } } echo "<div style=\"clear: both;\"></div>"; ?> <h3>My groups:</h3><br> <?php //Mis grupos $admin_id = idfromnick($_SESSION["usernameuniversal"]); $query = "SELECT group_name, group_desc, members_twitter FROM mt_group WHERE admin_id='{$admin_id}'"; $result = mysql_query($query, $connuni) or die(mysql_error() . ': ' . $query); $gh = 2; while ($row = mysql_fetch_assoc($result)) { echo "<div class=\"grupos\"><a title=\"" . $row["group_desc"] . "\" href=\"javascript:countries.expandit(" . $gh . ")\" rel=\"country" . $gh . "\">" . $row["group_name"] . "</a></div>"; $gh = $gh + 1; } ?> <?php } $query = "SELECT id_usr, nombre, apellidos, nick, password, correo, dia, mes, anio, gravatar FROM mt_users Where nick <> '{$_SESSION['usernameuniversal']}' ORDER BY id_usr DESC LIMIT 49"; //RAND() $result = mysql_query($query, $connuni) or die(mysql_error() . ': ' . $query); ?> <div style="clear: both;"></div>