Ejemplo n.º 1
0
$nno = !empty($_GET['nno']) ? intval($_GET['nno']) : 0;
# UPDATE NOTIFICATION AS VIEWED
if ($nno != 0) {
    $response = $mc->posted_modals_notification_Query(array('nno' => $nno, 'notification_query' => 'set-notification-viewed'));
}
# get image src
$modal['src'] = $mc->image(array('table_name' => $modal['table_name'], 'table_id' => $modal['table_id'], 'type' => 'get-default-image-src', 'size' => 'detail'));
// echo " this is the src $modal[src] <br> ";
# initialized 2
$_SESSION['plno'] = $_GET['id'];
$li = $mc->posted_look_info($_GET['id']);
$_SESSION['plno'] = $_GET['id'];
$date_ = $li['date_'];
$lookOwnerMno = intval($li["lookOwnerMno"]);
$mno1 = intval($li["lookOwnerMno"]);
$memFsInfo = $mc->get_user_full_fs_info($mno1);
$opercentage = $memFsInfo['opercentage'];
$otrating = $memFsInfo['otrating'];
$user['username'] = $memFsInfo['username'];
$occupation = $memFsInfo['memInfo'][0]['occupation'];
$tlooks = $memFsInfo['memInfo'][0]['tlooks'];
$tfollower = $memFsInfo['memInfo'][0]['tfollower'];
// $_SESSION['details_user_mno'] = $mno;
//ARTICLE DATA
if ($_GET['id'] = helper::get_table_id($_GET['id'], $_SESSION['table_id'])) {
    if (!$_GET['id']) {
        $mc->go("/");
    }
    unset($_SESSION['table_id']);
}
$_SESSION['mno'] = $mc->get_cookie('mno', 136);
Ejemplo n.º 2
0
$mc->get_visitor_info("", "lookdetails page lookid = {$plno} ", "home");
$nno = !empty($_GET['nno']) ? intval($_GET['nno']) : 0;
# UPDATE NOTIFICATION AS VIEWED
if ($nno != 0) {
    $response = $mc->posted_modals_notification_Query(array('nno' => $nno, 'notification_query' => 'set-notification-viewed'));
}
# get image src
$modal['src'] = $mc->image(array('table_name' => $modal['table_name'], 'table_id' => $modal['table_id'], 'type' => 'get-default-image-src', 'size' => 'detail'));
// echo " this is the src $modal[src] <br> ";
# initialized 2
$li = $mc->posted_look_info($_GET['id']);
$_SESSION['plno'] = $_GET['id'];
$date_ = $li['date_'];
$lookOwnerMno = intval($li["lookOwnerMno"]);
$mno1 = intval($li["lookOwnerMno"]);
$memFsInfo = $mc->get_user_full_fs_info($mno1);
$opercentage = $memFsInfo['opercentage'];
$otrating = $memFsInfo['otrating'];
$user['username'] = $memFsInfo['username'];
$user['profile_tab'] = 'looks';
$mno = $_SESSION["mno"];
$lookOwnerName = $li["lookOwnerName"];
$pltags = $li['pltags'];
$plstyle = $li['style'];
$Ttag = count($li['pltags']);
$lookName = $li["lookName"];
$lookAbout = $li["lookAbout"];
$pltvotes = $li["pltvotes"];
$trating = $li["trating"];
$style = $li["style"];
$pltratings = number_format($li["trating"]);
 $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";
 $modal['src_img_share'] = "look-icon-share.png";
 $modal['src_img_flag'] = "modal-flag-dot.png";
 //"modal-flag.png";
 $modal['src_img_main'] = "";
 // $modal['src_img_flag']        = "large-flag-red.png";
 #USER OWNER MODAL
 $user['user'] = $mc->get_user_full_fs_info($modal['mno']);
 $user['trating'] = $user['user']['otrating'];
 $user['tfollower'] = $user['user']['tfollowers'];
 $user['following'] = $user['user']['tfollowing'];
 $user['tlook'] = $user['user']['tlooks'];
 $user['tpercentage'] = $user['user']['opercentage'];
 $user['username'] = $user['user']['username'];
 $user['tarticle'] = $user['user']['tarticle'];
 $user['profile_tab'] = 'articles';
 // echo " username ".$user['username'] ;
 //   $next = $modal['nextprev']['next'];
 //     $prev = $modal['nextprev']['prev'];
 // $mc->print_name_looktitle_look_desc_for_share( $lookOwnerMno , $plno ,  $modal['title'] , $modal['description'] );
 // echo  'image src = '.$modal['src']." style modal image ". $modal['modal_style'].'<br>';
 // $mc->print_look_details_look_owner_header( $mno , $mno1 , $plno , $plno1  , false ,  $lookOwnerMno , $lookOwnerName , $opercentage , $date_ , $user_total_rating , $user_total_followers , $user_total_following , $user_total_lookuploaded );
 # set view and add