コード例 #1
0
ファイル: invite_people.php プロジェクト: epsilon670/Poolski
        //add pool id to user's "Pool Invites" field in DB
        echo $invite_receive_result;
    }
    exit;
} else {
    //if this file is being accessed by user navigation and not thru ajax:
    if (!isset($current_user)) {
        /*We send the user back to home page if $current_user is not set 
          This would indicate that the user is trying to access invite_people.php by itself and not via the pool.php page
          */
        header("Location: home.php");
    } else {
        $inviter = $current_user;
        //get the inviter's email address/username (this is so that the invitee knows who is inviting them)
        $user_id = $user->GetUserIDFromEmail($inviter);
        $users_friends_array = $user->GetFriends($user_id);
        ?>
    <br>
    <div class="row" >
        <div class="col-md-7" id="invite_email_input_container">
            <h3>Enter email addresses to invite people to the pool:</h3>
            <br>
            <div id="invitee_email_form">   
                    <input type="text" name="new_invitee_email" id="new_invitee_email" size="75" required>
                    <input id="submit_invitee_email" type="submit" value="Add to invite list">
                    <span id="invite_error_message" style='color:red'></span>
            </div>
            <br>
            <div id="invitee_email_list">

            </div>