$modal['extention'] = $modal['modal'][0]['extention']; $modal['tshare'] = $modal['modal'][0]['tshare']; $modal['tdrip'] = $modal['modal'][0]['tdrip']; $modal['tfavorite'] = $modal['modal'][0]['tfavorite']; $modal['tcomment'] = $modal['modal'][0]['tcomment']; $modal['trating'] = $modal['modal'][0]['trating']; $modal['tpercentage'] = $modal['modal'][0]['tpercentage']; $modal['tview'] = $modal['modal'][0]['tview']; $modal['active'] = $modal['modal'][0]['active']; $modal['date'] = $modal['modal'][0]['date']; $modal['pltvotes'] = $modal['modal'][0]['pltvotes']; $modal['modal_style'] = $mc->lookdetails_set_size_of_the_look($modal['src'], $ri); $modal['modalowner'] = $modal['modal'][0]['date']; $modal['current'] = $table_id; $modal['mno'] = $mc->get_modal_owner($table_name, $table_id); $modal['modalownername'] = $mc->get_full_name_by_id($modal['mno']); $modal['kind'] = 'ARTICLE'; $modal['position'] = 1; $modal['total'] = 30; $modal['view_footer_id'] = 'lf_div_container'; $modal['thumbsUp'] = 'look-white-thumb.png'; $modal['thumbsDown'] = 'look-white-down-thumb.png'; $modal['stat_rated'] = 'look not rated'; $modal['stat_dripted'] = 'look not dripted'; $modal['stat_favorited'] = 'look not favorited'; $modal['headermssg'] = 'SUCCESSFULLY FAVORITED'; # this is for success message popup $modal['contentmssg'] = 'This Look is now on your favorite list.'; # this is for success message popup $modal['src_img_drip'] = "look-icon-drip.png"; $modal['src_img_favorite'] = "look-icon-favorite.png";
$limit_end = 1; for ($i = 0; $i < $variables['len']; $i++) { // each msgno $variables['msgno'] = intval($variables['response'][$i]['msgno']); $variables['mno'] = intval($variables['response'][$i]['mno']); $variables['mno1'] = intval($variables['response'][$i]['mno1']); // get chat mate $variables['mno1'] = $variables['mno'] == $mno ? $variables['mno1'] : $variables['mno']; // get username chat mate $username = $mc->get_username_by_mno($variables['mno1']); // get from fs_comment table via table id and table name from fs_message $variables['comment_r'] = $mc->posted_modals_comment_Query(array('comment_query' => 'get-all-comment-by-tbn_and_tbid', 'table_name' => 'fs_message', 'table_id' => intval($variables['msgno']), 'orderby' => 'order by date desc', 'limit_start' => $limit_start, 'limit_end' => $limit_end)); $variables['comment'] = $variables['comment_r'][0]['comment']; $variables['mno'] = intval($variables['comment_r'][0]['mno']); $variables['date'] = $variables['comment_r'][0]['date']; $fullname = $mc->get_full_name_by_id($variables['mno1']); // header title desc $mc->header_attribute("OOTD | Trends | Fashion Blogs | Beauty Tips | Fashion Inspiration | Fashion Sponge ", "Fashion Sponge is the easiest & fastest way to: Show your ootd, see the latest trends, discover fashionable people & blogs, get beauty & style tips & find fashion inspiration.", "OOTD | Trends | Fashion Blogs | Beauty Tips | Fashion Inspiration "); ?> <tr> <td> <?php $mc->member_thumbnail_display($mc->ppic_thumbnail, $variables['mno1'], "{$mc->ppic_thumbnail}", null, '35px;'); ?> </td> <td onclick="chat( 'chat?u=<?php echo "{$username}"; ?> ' , 'open-new-chat' ) " style="cursor:pointer;" > <!-- <a href="chat?u=<?php
require "fs_folders/php_functions/connect.php"; require "fs_folders/php_functions/function.php"; require "fs_folders/php_functions/myclass.php"; require "fs_folders/php_functions/library.php"; require "fs_folders/php_functions/source.php"; $mc = new myclass(); $accounts = $mc->selectV1('*', 'fs_member_accounts'); $invites = $mc->selectV1('*', 'fs_invited'); echo " <table border='1' cellpsacing='0' cellpadding='0' id='table' > "; $c = 0; echo "<td> <h4> from old fs version people </h4> </td> <tr> "; for ($i = 0; $i < count($accounts); $i++) { if (!empty($accounts[$i]['email']) and !empty($accounts[$i]['mno'])) { $c++; $mail = $accounts[$i]['email']; $name = $mc->get_full_name_by_id($accounts[$i]['mno']); echo " <td> {$c}.) </td> <td width='20px' > {$mail} </td> <td width='20px' > {$name} </td> <tr>"; } } echo " \n\t<th> # </th>\t \n\t<th> name </th> \n\t<td> email </th>\n\t<th> website or blog </th> \n\t<th> occupation </th> \n\t<th> style </th> \n\t<th> offer </th> \n\t \n\t<th> ip address </th> \n\t<th> date sign up </th> \n\t<tr> "; for ($i = 0; $i < count($invites); $i++) { $c++; $name = $invites[$i]['invited_fn']; $invited_ln = $invites[$i]['invited_ln']; $mail = $invites[$i]['invited_email']; $invited_wob = $invites[$i]['invited_wob']; $invited_occu = $invites[$i]['invited_occu']; $invited_style = $invites[$i]['invited_style']; $invited_offer = $invites[$i]['invited_offer']; $invited_genCode = $invites[$i]['invited_genCode']; $invited_ip = $invites[$i]['invited_ip'];
$limit = $_SESSION['csm_limit']; $fb_friends_on_fs = $_SESSION['fb_friends_on_fs']; $fb_friends_on_fs_len = count($_SESSION['fb_friends_on_fs']); $start = $mc->get_loop_start($pagenum, $limit); $end = $mc->get_loop_end($pagenum, $limit); if ($start < $fb_friends_on_fs_len - 1) { echo " \n\t\t\t\t \t\t\t<table>\n\t\t\t\t\t\t\t\t<tr> "; $c = 0; for ($i = $start; $i < $end; $i++) { $c++; if ($i < $fb_friends_on_fs_len - 1) { $mno1 = $fb_friends_on_fs[$i]; // $mno1 = $mem[0]['mno']; // $mem = $mc->get_fb_user_fs_info( intval($fbid) ); $followed = $mc->check_if_already_followed($mno, $mno1); $fullname = $mc->get_full_name_by_id($mno1); // echo " mno1 = $mno1 <br>"; echo "\n\t\t\t\t\t\t\t\t\t\t\t<td style='padding-right:10px;' > \n\t\t\t\t\t\t\t\t\t\t\t\t<table border='0' > \n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<center> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"; $mppno = $mc->member_profile_pic_query(array('mno' => $mno1, 'type' => 'get-latest-mppno')); if (file_exists("../../../{$mc->ppic_profile}/{$mppno}.jpg")) { echo "<img src= '{$mc->ppic_profile}/{$mppno}.jpg' style='cursor:pointer; width:120px;height:120px;'"; } else { $avatar = $mc->get_male_female_avatar($mno1); echo "<img src= '{$mc->ppic_profile}/{$avatar}' style='cursor:pointer; width:120px;height:120px;' />"; } echo " \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</center> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div id='welcome-name-container' >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{$fullname}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td style='padding-bottom:5px;' > \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<center> "; if (empty($followed)) { echo " \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img id='suggested-member-follow-image{$mno1}' class='suggested-member-follow' src='{$mc->genImgs}/profile-follow.png' style='cursor:pointer;' onclick='suggested_member_follow ( \"#suggested-member-follow-image{$mno1}\" , \"{$mno1}\" )' /> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"; } else { echo " \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img id='suggested-member-unfollow-image{$mno1}' class='suggested-member-unfollow' src='{$mc->genImgs}/profile-unfollow.png' style='cursor:pointer;' onclick='suggested_member_follow ( \"#suggested-member-unfollow-image{$mno1}\" , \"{$mno1}\" )' /> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"; }
$_SESSION['mno'] = $mc->get_cookie('mno', 136); $mno = $mc->get_cookie('mno', 136); // initialized $variable = array(); echo "<div style='display:none;color:#000' >"; // $_GET['u'] = username // $_GET['mn'] = message num // get id via username $msgno = !empty($_GET['mn']) ? $_GET['mn'] : 0; if (!empty($_GET['u'])) { $mno1 = intval($mc->get_mnobyusername($_GET['u'])); } else { $mno1 = intval($_GET['id']); } // get full name of the chat mate $fullname1 = $mc->get_full_name_by_id($mno1); // get message id or msgno $msgno = $mc->fs_message(array('type' => 'get-msgno', 'mno' => $mno, 'mno1' => $mno1)); // get latest 10 comments $limit_start = 0; $limit_end = 20; $variable['message'] = $mc->posted_modals_comment_Query(array('comment_query' => 'get-all-comment-by-tbn_and_tbid', 'table_name' => 'fs_message', 'table_id' => intval($msgno), 'orderby' => 'order by date desc', 'limit_start' => $limit_start, 'limit_end' => $limit_end)); // initlaized len of the total messages $variable['len'] = count($variable['message']); // initialized the profile image for the real time comment display owner $thumbnail_src = $mc->member_thumbnail_display($mc->ppic_thumbnail, $mno, "{$mc->ppic_thumbnail}", null, '35px;'); // get current total message of the user $new_total_message = $mc->posted_modals_comment_Query(array('table_name' => 'fs_message', 'table_id' => $msgno, 'mno1' => $mno1, 'comment_query' => 'get-total-comment-by-chatmate')); // initialized name of the cockie $sessionkeyword = "current_total_message_{$mno1}"; // assign total message to cockie
$modal['extention'] = $modal['modal'][0]['extention']; $modal['tshare'] = $modal['modal'][0]['tshare']; $modal['tdrip'] = $modal['modal'][0]['tdrip']; $modal['tfavorite'] = $modal['modal'][0]['tfavorite']; $modal['tcomment'] = $modal['modal'][0]['tcomment']; $modal['trating'] = $modal['modal'][0]['trating']; $modal['tpercentage'] = $modal['modal'][0]['tpercentage']; $modal['tview'] = $modal['modal'][0]['tview']; $modal['active'] = $modal['modal'][0]['active']; $modal['date'] = $modal['modal'][0]['date']; $modal['pltvotes'] = $modal['modal'][0]['pltvotes']; $modal['modal_style'] = $mc->lookdetails_set_size_of_the_look($modal['src'], $ri); $modal['modalowner'] = $modal['modal'][0]['date']; $modal['current'] = $table_id; $modal['mno'] = $mc->get_modal_owner($table_name, $table_id); $modal['modalownername'] = $mc->get_full_name_by_id($modal['mno']); $modal['kind'] = 'ARTICLE'; $modal['position'] = $article->position($table_id, $modal['category'], $modal['mno']); $modal['total'] = $article->totalUploaded($modal['category'], $modal['mno']); $modal['view_footer_id'] = 'lf_div_container1'; $modal['thumbsUp'] = 'look-white-thumb.png'; $modal['thumbsDown'] = 'look-white-down-thumb.png'; $modal['stat_rated'] = 'look not rated'; $modal['stat_dripted'] = 'look not dripted'; $modal['stat_favorited'] = 'look not favorited'; $modal['headermssg'] = 'SUCCESSFULLY FAVORITED'; # this is for success message popup $modal['contentmssg'] = 'This Look is now on your favorite list.'; # this is for success message popup $modal['src_img_drip'] = "look-icon-drip.png"; $modal['src_img_favorite'] = "look-icon-favorite.png";
$mc->auto_detect_path(); $mc->save_current_page_visited(); //redirect /* $actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; if ($actual_link == 'http://fashionsponge.com/' || $actual_link == 'http://www.fashionsponge.com/' || $actual_link == 'http://fashionsponge.com/?login=1' || $actual_link == 'http://www.fashionsponge.com/?login=1') { echo "redirecting to.... $actual_link <br>"; $mc->go('http://fashionsponge.com/signup'); } */ # initlaized mno // $is_cookie_set = $mc->set_cookie( 'mno' , 130 , time()+3600*24 ); $_SESSION['mno'] = $mc->get_cookie('mno', 136); $mno = $mc->get_cookie('mno', 136); $mc->mno = $mc->get_cookie('mno', 136); $fulleName = $mc->get_full_name_by_id($mc->mno); # initialized the next viewed more modals // $_SESSION['counter'] = 3; // echo " <bR><br><bR><Br>mno ".$_SESSION['mno']; // $mc->automatic_insert(5); // echo " id = ".$_GET["id"]; // popularlatest // popularlooks // popularmembers // populararticles // popularmedia // $_SESSION["mno"] = 134; // echo " full url = ".basename($_SERVER["PHP_SELF"]); $fs_home_tab = basename($_SERVER["PHP_SELF"]); $fs_home_tab = str_replace(".php", "", $fs_home_tab); if ($fs_home_tab == "index") {