</iframe> </div><?php break; case 'invited-person': switch ($process) { case 'function': if (false) { if (LookbookDatabase::isUserAlreadSignedUp($invited_id)) { //invited_status = 2 echo "<br> this user is already signed up and approved then it should go to sign up"; $response = mysql_query(" UPDATE fs_invited SET invited_status = 2 , invited_date = '{$mc->date_time}' WHERE invited_id = {$invited_id} "); } else { echo "<br> this user not yet sign up and approved "; // update invited_status $response = mysql_query(" UPDATE fs_invited SET invited_status = {$status_val} , invited_date = '{$mc->date_time}' WHERE invited_id = {$invited_id} "); $mc->message(" update invited_status = {$status_val} ", $response, ""); // from pending and approved then automaticaly send an invitation email if ($status_val == 0) { if (mysql_query(" UPDATE fs_invited SET invited_status=0, temail_sent=0 WHERE invited_id = {$invited_id} ")) { echo " successfully updated to pending "; } else { echo "failled to update UPDATE fs_invited SET invited_status=0, temail_sent=0 WHERE invited_id = {$invited_id} "; } } else { if ($status_val == 1) { /* $response = $mc->fs_invited( array( 'type'=>'select', 'where'=>" invited_id = $invited_id " ) ); $subject = 'An Invitation to Share Your Blog Content on Fashion Sponge'; $from = '*****@*****.**'; $type = 'invitations'; $mc->send_email_signup_to_user( $response[0]['invited_fn'] , $response[0]['invited_email'] , $type , $from , $subject );
endif; echo "<img src='$src' /> "; echo " $src <br><BR><Br><br>"; $pa->download_image_from_other_site( $artno , $src , 'fs_folders/images/uploads/posted articles/detail/' ); else: $response = $mc->upload_image( array( "tmp_name" =>$_FILES["file"]["tmp_name"] , "destination" =>"$mc->article_detail/$artno.jpg" ) ); $mc-> message ( 'image upload ', $response , ' ' ); endif; echo " video id = $video_id <br>"; /** resize image */ $response = $mc->resize_image( array( 'id' =>$artno, 'source' => "$mc->article_detail/$artno.jpg", 'destination1' => "$mc->article_home/$artno.jpg", 'destination2' => "$mc->article_thumbnail/$artno.jpg", 'width1' => 300, 'width2' => 50 ) );