Example #1
0
		$style =  ""; 
		$article_link = ""; 
		// echo "from posted look";
		$plno = user_last_look_uploaded();
		$_SESSION['last_look_uploaded'] = $plno; 
		$_SESSION['look_edit'] = false;  
		// set notification 
			// $_SESSION['modal_posted'] = 1;
			// $mc->set_notification_info( 'postedlooks' , $plno , ' posted a new look' , 0 ,  0 ); 
		$type = ( !empty( $_GET['type']) ) ? $_GET['type'] : null ;  
 		switch ( $type ) {
 			case 'cropped': 
 				break; 
 			default:
 				#this is not being cropped  
 					$mc->resize_posted_look( $plno , $mc->look_folder );   
 				break;
 		} 
	}  
	// echo'LOOK ID '.$plno.'<BR>';
	 // print_r($pl_info['pltags']);
 	$h1 = 600;  # height of the look container
	$w1 = 889;  # width of the look container
	//$plno = '396';  
	$img              = "$mc->look_folder_lookdetails/$plno.jpg";
	$lookmodalssize = $mc->lookdetails_set_size_of_the_look( $img , $ri  ); 
	// $li               = $mc->posted_look_info($_GET['id']); 



	$mc->header_attribute( 
Example #2
0
                // $mc->go( $mc->get_username_by_mno( $mno ) );
            break;
		case 'profile-timeline':  
			    $mptno = $mc->member_profile_timeline_query( array('mno'=>$mno , 'action'=> 'Update Timeline' , 'type'=>'insert-new-profile-pic-db' ) );
			    $mc->resize_profile_timeline( $mno , $mptno );    
			    $username =$mc->get_username_by_mno( $mno );
			    echo " profile time line cropped <br>"; 	 
				// $mc->set_notification_info( 'fs_member_timeline' , $mptno , null  ,  null , 0 , 'change-profile-cover-photo' ); 
				// $mc->set_session_notification( $mno , 'fs_member_timeline' , $mptno , 'updated' , null , null , 'change-profile-cover-photo' , 0 );    
				$mc->set_notification_info( 'fs_member_timeline' ,  $mptno , null , null , null , 0 ,  'change-profile-cover-photo' );  
				// $this->set_notification_info( $table_name , $table_id , $action , $action1 , $action2 , $status , $noti_type=null  ) 
				$mc->go("$username"); 
			break;
		case 'posted-look': 
				$plno = $mc->postedlook_query( array('mno' =>$mno , 'type'=>'get-latest-plno' ) ); 
				$mc->resize_posted_look( $plno , $mc->look_folder_cropped  );    

				$mc->go("post-look-label?type=cropped"); 
				echo " posted looks <br> ";  

			break;   
		case 'upload-article-and-resize':
			 
            echo " This is the file name " . $_POST['file_name'];

            $fileName = ( !empty($_POST['fileName']) ) ? $_POST['fileName'] : null ;
            $fileUrl  = ( !empty($_POST['fileUrl']) )  ? $_POST['fileUrl'] : null ; 

		  		// echo " upload new article image and resize to thumbnail , home and so on. . .";  

		  		/** get latest article uploaded  */