<?php if (!isset($_SESSION)) { session_start(); } if (isset($_SESSION['user'])) { if (isset($_POST['keyword'])) { require_once $_SERVER['DOCUMENT_ROOT'] . '/libs/functions.php'; $keyword = $_POST['keyword']; addUserKeyword($keyword, 'pastebin', 'all'); } } else { header('Location: ../../index.php'); }
<?php if (!isset($_SESSION)) { session_start(); } if (isset($_SESSION['user'])) { if (isset($_POST['user']) && isset($_POST['keyword'])) { require_once $_SERVER['DOCUMENT_ROOT'] . '/libs/functions.php'; $user = $_POST['user']; $keyword = $_POST['keyword']; addUserKeyword($keyword, 'reddit', $user); } } else { header('Location: ../../index.php'); }
<?php if (!isset($_SESSION)) { session_start(); } if (isset($_SESSION['user'])) { if (isset($_POST['keyword'])) { require_once $_SERVER['DOCUMENT_ROOT'] . '/libs/functions.php'; $keyword = $_POST['keyword']; addUserKeyword($keyword, 'facebook', 'all'); } } else { header('Location: ../../index.php'); }
<?php if (!isset($_SESSION)) { session_start(); } if (isset($_SESSION['user'])) { if (isset($_POST['user']) && isset($_POST['keyword'])) { require_once $_SERVER['DOCUMENT_ROOT'] . '/libs/functions.php'; $user = $_POST['user']; $keyword = $_POST['keyword']; addUserKeyword($keyword, 'stackexchange', $user); } } else { header('Location: ../../index.php'); }
<?php if (!isset($_SESSION)) { session_start(); } if (isset($_SESSION['user'])) { if (isset($_POST['user']) && isset($_POST['keyword'])) { require_once $_SERVER['DOCUMENT_ROOT'] . '/libs/functions.php'; $user = $_POST['user']; $keyword = $_POST['keyword']; addUserKeyword($keyword, 'twitter', $user); } } else { header('Location: ../../index.php'); }
<?php if (!isset($_SESSION)) { session_start(); } if (isset($_SESSION['user'])) { if (isset($_POST['keyword'])) { require_once $_SERVER['DOCUMENT_ROOT'] . '/libs/functions.php'; $keyword = $_POST['keyword']; addUserKeyword($keyword, 'wordpress', 'all'); } } else { header('Location: ../../index.php'); }