0) { $object = mysql_fetch_object($sql_query); $username_check = $object->username; } ?>
\n"; $headers .= "X-Sender: <$email_from>\n"; $headers .= "X-Mailer: PHP\n"; $headers .= "Return-Path: <$email_from>\n"; $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; @mail($email_to,$subject,$message,$headers); } function send_email2($email_from_name,$email_from,$email_to,$subject,$message) { //echo "***********************************11111111111111111111111 $email_from_name ,,,,$email_from,,,,$email_to vv$subject,$message"; $headers = "From: $email_from_name <$email_from>\n"; $headers .= "X-Sender: <$email_from>\n"; $headers .= "X-Mailer: PHP\n"; $headers .= "Return-Path: <$email_from>\n"; $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; @mail($email_to,$subject,$message,$headers); } function imagesize($imagename,$std_imgwidth) { $imageInfo=@getimagesize($imagename); $width=$imageInfo[0]; $height=$imageInfo[1]; $std_height=@round(($std_imgwidth/$width) * $height); return $std_height; } function createThumbnail($srcFile, $destFile, $width, $quality = 75) { $thumbnail = ''; if(!$width) $width=160; if (file_exists($srcFile) && isset($destFile)) { $std_height = imagesize($srcFile,$width); if($std_height>164) $std_height=164; $thumbnail = copyImage($srcFile, $destFile, $width, $std_height, $quality); } // return the thumbnail file name on sucess or blank on fail return basename($thumbnail); } /* Copy an image to a destination file. The destination image size will be $w X $h pixels */ function copyImage($srcFile, $destFile, $w, $h, $quality = 75) { $tmpSrc = pathinfo(strtolower($srcFile)); $tmpDest = pathinfo(strtolower($destFile)); $size = getimagesize($srcFile); //if ($tmpDest['extension'] == "gif" || $tmpDest['extension'] == "jpg") if ( $tmpDest['extension'] == "jpg") { //$destFile = substr_replace($destFile, 'jpg', -3); $dest = imagecreatetruecolor($w, $h); imageantialias($dest, TRUE); } elseif ($tmpDest['extension'] == "JPG") { $dest = imagecreatetruecolor($w, $h); imageantialias($dest, TRUE); } elseif ($tmpDest['extension'] == "gif") { $dest = imagecreatetruecolor($w, $h); imageantialias($dest, TRUE); } elseif ($tmpDest['extension'] == "GIF") { $dest = imagecreatetruecolor($w, $h); imageantialias($dest, TRUE); } elseif ($tmpDest['extension'] == "PNG") { $dest = imagecreatetruecolor($w, $h); imageantialias($dest, TRUE); } elseif ($tmpDest['extension'] == "png") { $dest = imagecreatetruecolor($w, $h); imageantialias($dest, TRUE); } else { return false; } switch($size[2]) { case 1: //GIF $src = imagecreatefromgif($srcFile); break; case 2: //JPEG $src = imagecreatefromjpeg($srcFile); break; case 3: //PNG $src = imagecreatefrompng($srcFile); break; default: return false; break; } imagecopyresampled($dest, $src, 0, 0, 0, 0, $w, $h, $size[0], $size[1]); switch($size[2]) { case 1: case 2: imagejpeg($dest,$destFile, $quality); break; case 3: imagepng($dest,$destFile); } return $destFile; } // call createThumbnail as given below. //$logo_after_nail = createThumbnail($file_temp, $destFile, 120, $quality = 75); ############## DATE FORMATE CONVERSION ################ function date_conversion($date_str, $sourse_format, $desired_format) { $source_day=""; $source_month=""; $source_year=""; switch( $sourse_format) { case "Y-m-d" : $sourse_arr=split('[-/]',$date_str); $source_day=$sourse_arr[2]; $source_month=$sourse_arr[1]; $source_year=$sourse_arr[0]; break; case "y-m-d" : $sourse_arr=split('[-/]',$date_str); $source_day=$sourse_arr[2]; $source_month=$sourse_arr[1]; $source_year=$sourse_arr[0]; break; case "d-m-Y" : $sourse_arr=split('[-/]',$date_str); $source_day=$sourse_arr[0]; $source_month=$sourse_arr[1]; $source_year=$sourse_arr[2]; break; case "d-m-Y" : $sourse_arr=split('[-/]',$date_str); $source_day=$sourse_arr[0]; $source_month=$sourse_arr[1]; $source_year=$sourse_arr[2]; break; case "m-d-Y" : $sourse_arr=split('[-/]',$date_str); $source_day=$sourse_arr[1]; $source_month=$sourse_arr[0]; $source_year=$sourse_arr[2]; break; } if($source_month>=1 && $source_day>=1 && $source_year >=1970) $result_date=date($desired_format, mktime(0,0,0,$source_month, $source_day, $source_year)); else $result_date=""; return $result_date; } ####### END DATE FORMATE CONVERSION ##################################3 function removeSpaces($txt){ $reqtxt=preg_replace('/[ ]+/',"",$txt); return str_replace(" ","",$reqtxt); } ?> username; $password = $object->password; $first = $object->first; $email = $object->email; $subject = "VisualShows.com"; $msg = "Hello ".$first.",

"; $msg .= "Here is your username and password:

"; $msg .= "To login : Click Here
"; $msg .= "Your username is: ".$username."
"; $msg .= "  Your password is: ".$password."

"; $msg .= "Again, thank you for choosing VisualShows. We look forward to being your partner in success.

"; $msg .= "VisualShows team"; $from = "From: VisualShows.com"; $email_from_name = "Visualshows.com"; $email_from = "support@VisualShows.com"; send_email($email_from_name,$email_from,$emailId,$subject,$msg); /*if($emails[2]) { send_email($email_from_name,$email_from,$emails[2],$subject,$msg); }*/ }else{ echo ""; } } /*if($profileId!="") { $sql_query = mysql_query("select * from user_info where username='".$profileId."'"); $num = mysql_num_rows($sql_query); if($num) { $object = mysql_fetch_object($sql_query); $username = $object->username; $password = $object->password; $first = $object->first; $email = $object->email; $var1=substr($email,0,1); $var2=substr($email,strlen($email)-1,strlen($email)); $var=substr($email,1,strlen($email)-2); if(($var1==",") && ($var2==",")) { $emails=@explode(",",$email); } else { $emails=array();//(1->$email); $emails[1]=$email; } $subject = "VisualShows.com"; $msg = "Hello ".$first.",

"; $msg .= "Here is your user name and password:

"; $msg .= "To login : Click Here
"; $msg .= "Your user name is: ".$username."
"; $msg .= "  Your password is: ".$password."

"; $msg .= "Again, thank you for choosing VisualShows. We look forward to being your partner in success.

"; $msg .= "VisualShows team"; $from = "From: VisualShows.com"; //sendmail($email,$subject,$msg,$from); $email_from_name = "Visualshows.com"; $email_from = "support@VisualShows.com"; send_email($email_from_name,$email_from,$emails[1],$subject,$msg); if($emails[2]) { send_email($email_from_name,$email_from,$emails[2],$subject,$msg); } }else{ echo ""; } }*/ echo ""; } ?>

Forget Password

Invalid login Information