Пример #1
0
//									if($happyValueArray[$key] < 0){
//                                if($tweet['user']['verified']){
//                                    printTweet($tweet, false, $key,$happyValueArray);
//                                if(!$tweet['user']['verified']){
//                                    printTweet($tweet, false, $key,$happyValueArray);
//                            case "Popular":
//                                if($tweet['retweet_count']>=10){
//                                    printTweet($tweet, false, $key,$happyValueArray);
//                            case "Unpopular":
//                                if($tweet['retweet_count']<10){
//                            case "Frequent":
//                                if($posterFrequency[$key] > 10000){
//                            case "Infrequent":
//                                if($posterFrequency[$key] < 10000){
// Print tweets
printTweets_SQL();
// Set index-1 to visited
$_SESSION[index][1] = true;
?>

  			</div>
        <!-- Control Panel -->
  			<div class="col-xs-4 totop">
          <button id="toggle">Hide/Show</button>
          <div id="newpost">

                <?php 
echo "Logged in as <b>" . $user->screen_name;
echo "</b> <img src='" . $user->profile_image_url . "' alt='error'>";
?>
								<a href="logout.php"><button id="logout">Logout</button></a>
Пример #2
0
    $_SESSION['tweet_popular'] = $popular_bool;
    $_SESSION['tweet_unpopular'] = $unpopular_bool;
    $_SESSION['poster_frequent'] = $frequent_bool;
    $_SESSION['poster_infrequent'] = $infrequent_bool;
    $_SESSION['verified'] = $verified_bool;
    $_SESSION['unverified'] = $unverified_bool;
    $_SESSION['sentiment_positive'] = $sentimentPos_bool;
    $_SESSION['sentiment_negative'] = $sentimentNeg_bool;
    $_SESSION['sql_filter'] = $sql_filter;
    $db->close();
}
// $filter = $_GET['filter'];
if ($_SERVER["REQUEST_METHOD"] == "GET") {
    //If a server request has been made, update filter word.
    //Switch to change from filtering by sentiment or specific word.
    printTweets_SQL($user);
}
//									if($happyValueArray[$key] > 0){
//									if($happyValueArray[$key] < 0){
//                                if($tweet['user']['verified']){
//                                    printTweet($tweet, false, $key,$happyValueArray);
//                                if(!$tweet['user']['verified']){
//                                    printTweet($tweet, false, $key,$happyValueArray);
//                            case "Popular":
//                                if($tweet['retweet_count']>=10){
//                                    printTweet($tweet, false, $key,$happyValueArray);
//                            case "Unpopular":
//                                if($tweet['retweet_count']<10){
//                            case "Frequent":
//                                if($posterFrequency[$key] > 10000){
//                            case "Infrequent":