--- flashvideo_objects.inc.orignal	Thu Mar 13 16:46:29 2008
+++ flashvideo_objects.inc	Fri Mar  7 10:38:48 2008
@@ -485,7 +485,7 @@ function theme_flashvideo_format_play($v
   $video_text = flashvideo_variable_get($video['nodetype'], 'downloadtext', '');
   
   if(flashvideo_variable_get($video['nodetype'], 'downloadfile', 0)) {
-   if($video_text == '') {
+   /*if($video_text == '') {
       $output .= '<p>'. t('Download the original : '); 
       $output .= l(basename($video['original_video']), file_create_url($video['original_video']), array('title' => basename($video['original_video'])), NULL, NULL, TRUE) . '</p>';      
    }
@@ -495,6 +495,26 @@ function theme_flashvideo_format_play($v
   }  
   return $output . '</div>';
 }
+*/
+global $user;
+if ($user->uid)
+{
+	if($video_text == '')
+	{
+	$output .= '<p>'.l(basename("Download Original"), file_create_url($video['original_video']), array('title' => basename("Download Now")), NULL, NULL, TRUE) . '</p>';
+	}
+	else
+	{
+	$output .='<p>'.l(basename($video_text), file_create_url($video['original_video']), array('title' => basename("Download Now")), NULL, NULL, TRUE) . '</p>';
+	}
+}
+else
+{
+$output .='<p>'.l(basename("Log In To Download Original Clip"),"http://www.filetube.in/user/", array('title' => basename("Log In Now")), NULL, NULL, TRUE) . '</p>';
+}
+  }
+  return $output . '</div>';
+}
 
 /**
  * Takes an associative array of $fields with 'title' and 'body' keys and outputs the HTML.
@@ -516,4 +536,4 @@ function theme_flashvideo_fields($fields
   return $output;
 }
 
-?>
\ No newline at end of file
+?>
