& Matías Parodi # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # ## if (!defined("SECURITY")) { exit; } if ($_SESSION['LOGIN'] !== true) header("Location: {$base}home"); echo '

'; $sql = "SELECT `users`.* FROM `users` WHERE (`users`.`id_user` = '" . $_SESSION['ID_USER'] . "')"; $result = mysql_query($sql); $userinfo = mysql_fetch_assoc($result); mysql_free_result($result); if ($_POST) { if (!ereg('^' . $base, $_SERVER['HTTP_REFERER'])) exit; $note = $_POST['note']; post_note($note, 'web'); } do_note_form(); $action = safe_str($_GET['action']); $sql = "SELECT `users`.`twitter_password` FROM `users` WHERE (`users`.`username` = '" . $_SESSION['USERNAME'] . "') LIMIT 1;"; $result = mysql_query($sql); $row = mysql_fetch_assoc($result); mysql_free_result($result); $twitter_password = $row['twitter_password']; if (empty($action) && !empty($twitter_password)) $action = 'all'; elseif(empty($action)) $action = 'friends'; echo (!empty($twitter_password)) ? '