コード例 #1
0
ファイル: signupon13.php プロジェクト: amitjoy/nitd-network
                     break;
                 case "1":
                     $direction = 1;
                     $friend_status = 0;
                     break;
                 case "2":
                     $direction = 2;
                     $friend_status = 1;
                     break;
                 case "3":
                     $direction = 1;
                     $friend_status = 1;
                     break;
             }
             // INSERT FRIENDS INTO FRIEND TABLE AND EXPLANATION INTO EXPLAIN TABLE
             $friend->user_friend_add($new_user->user_info['user_id'], $friend_status, '', '');
             // IF TWO-WAY CONNECTION AND NON-CONFIRMED, INSERT OTHER DIRECTION
             if ($direction == 2 && $friend_status == 1) {
                 $new_user->user_friend_add($friend->user_info['user_id'], $friend_status, '', '');
             }
         }
     }
     // DELETE INVITE CODE
     $database->database_query("DELETE FROM se_invites WHERE invite_id='{$invitation['invite_id']}' LIMIT 1");
 }
 // SET SIGNUP COOKIE
 $new_user->user_salt = $new_user->user_info['user_code'];
 $id = $new_user->user_info['user_id'];
 $em = $new_user->user_password_crypt($new_user->user_info['user_email']);
 $pass = $new_user->user_info['user_password'];
 setcookie("signup_id", "{$id}", 0, "/");