There was a problem with the company name. Please fill it in, and for security reasons please avoiding special characters.

"; } //// Email $email = stripslashes_mysql($email); $email = strtolower(trim($email)); if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email) and trim($email)){ // Good email // now check that it is not a duplicate if($type == "new"){ $result = mysql_query("SELECT email from Y_prospects WHERE LOWER(email) = '$email'"); if($row = mysql_fetch_array($result)){ $error .= "

That email address is already in use. Perhaps you should try to login and request your password.

"; }else{ $result = mysql_query("SELECT email from Y_customers WHERE LOWER(email) = '$email'"); if($row = mysql_fetch_array($result)){ $error .= "

That email address is already in use. Perhaps you should try to login and request your password.

"; } } } }else{ // Bad email $error .= "

There was a problem with the email address. Please check that you have entered in correctly.

"; } // First name $firstname = stripslashes_mysql($firstname); $firstname = trim($firstname); $firstnameClean = $firstname; $firstnameClean = strip_tags($firstnameClean); $firstnameClean = htmlspecialchars($firstnameClean); if(!$firstnameClean or $firstnameClean != $firstname){ $error .= "

There was a problem with your first name. Please fill it in, and for security reasons please avoiding special characters.

"; } // Last name $lastname = stripslashes_mysql($lastname); $lastname = trim($lastname); $lastnameClean = $lastname; $lastnameClean = strip_tags($lastnameClean); $lastnameClean = htmlspecialchars($lastnameClean); if(!$lastnameClean or $lastnameClean != $lastname){ $error .= "

There was a problem with your last name. Please fill it in, and for security reasons please avoiding special characters.

"; } // City $city = stripslashes_mysql($city); $city = trim($city); $cityClean = $city; $cityClean = strip_tags($cityClean); $cityClean = htmlspecialchars($cityClean); if(!$cityClean or $cityClean != $city){ $error .= "

There was a problem with the city. Please fill it in, and for security reasons please avoiding special characters.

"; } // Phone $phone = stripslashes_mysql($phone); $phone = trim($phone); $phoneClean = $phone; $phoneClean = strip_tags($phoneClean); $phoneClean = htmlspecialchars($phoneClean); if(!$phoneClean or $phoneClean != $phone){ $error .= "

There was a problem with the phone number. Please fill it in, and for security reasons please avoiding special characters.

"; } /* // Check username characters $new_com1 = ereg_replace("[^A-Za-z0-9-]", "", $usr); if($new_com1 != $usr and $oktocreate == true){ $oktocreate = false; $ret = "The username must be made up of alphanumeric characters. That is letters and numbers only."; } */ // Check password if($password1){ $password1 = trim($password1); $password2 = trim($password2); if($password1){ if(strlen($password1) < 5){ $error .= "

The password must contain at least five characters.

"; } if($password1 != $password2){ $error .= "

The password did not match the duplicate. Try again.

"; } } } return $error; } if(!$s){ $s = "downloadform"; } if(!$dpro){ $dpro = "Print Manager Plus"; } if($uid == 0 and $action == "login" and $username and $password){ $uid = loginuser($username, $password); if($uid == 0){ echo "

Login failed. Please check your username and password.

"; }else{ if($urlref64){ $url = base64_decode($urlref64); ?> You are now logged in. Continue

"; } } if($uid == 0 and $action == "login" and $submit == "Lost Password"){ echo "

Lost Password

"; if($username){ $found = false; // Find out who this is - Check Y_customers $result = mysql_query("SELECT id, password, contact from Y_customers WHERE email = '$username'"); if($row = mysql_fetch_array($result)){ $found = true; $passtosend = $row['password']; // Send the actual email $fromemail = "support@printmanager.com"; $fromname = "Print Manager"; $htmlmessage = "

Your password for PrintManager.com was requested.

"; $htmlmessage .= "

Password: ".$passtosend."

"; $htmlmessage .= "

Best regards,
Software Shelf International

"; //$toemail = $row['email']; $toemail = $username; $toname = $row['contact']; $emailtype = "Password Reminder"; $subject = "Your Print Manager password"; //echo "

Send to: $toemail

"; //include_once("mail.php"); include("../management/mailman.php"); } if($found == false){ // Find out who this is - Check Y_prospects $result = mysql_query("SELECT id, password, firstname, lastname from Y_prospects WHERE email = '$username'"); if($row = mysql_fetch_array($result)){ $found = true; $passtosend = $row['password']; // Send the actual email $fromemail = "support@printmanager.com"; $fromname = "Print Manager"; $htmlmessage = "

Your password for PrintManager.com was requested.

"; $htmlmessage .= "

Password: ".$passtosend."

"; $htmlmessage .= "

Best regards,
Software Shelf International

"; //$toemail = $row['email']; $toemail = $username; $toname = $row['firstname'] . " " . $row['lastname']; $emailtype = "Password Reminder"; $subject = "Your Print Manager password"; //echo "

Send to: $toemail

"; //include_once("mail.php"); include("../management/mailman.php"); } } if($found){ echo "

Your password has been sent to ".$toemail."

"; }else{ echo "

Sorry - We could not find your details. Please contact Print Manager.

"; } }else{ echo "

You need to enter an email address.

"; } } // echo "

$uid

"; if($uid) { ?> is_valid) { // // What happens when the CAPTCHA was entered incorrectly // //die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA said: " . $resp->error . ")"); // $error .= "The reCAPTCHA wasn't entered correctly. Please try it again."; // } else { // $error = checkprospectdetails($email, $company, $firstname, $lastname, $city, $phone, "new"); // } $error = checkprospectdetails($email, $company, $firstname, $lastname, $city, $phone, "new"); //$error = checkprospectdetails($email, $company, $firstname, $lastname, $city, $phone, "new"); if($error){ echo "". $error . ""; $s = "newaccount"; }else{ // All good. Save the data // Y_prospects is used for logging in and out. Also add data to Y_leads // Generate the password $password = makerandompassword(); $insert = mysql_query("INSERT INTO Y_prospects( company, email, password, firstname, lastname, city, country, phone ) VALUES ( '".addslashes_mysql($company)."', '$email', '$password', '".addslashes_mysql($firstname)."', '".addslashes_mysql($lastname)."', '".addslashes_mysql($city)."', '".addslashes_mysql($country)."', '".addslashes_mysql($phone)."' ) SELECT LAST_INSERT_ID=@@IDENTITY "); $r = mysql_fetch_assoc($result); $uid = $r['LAST_INSERT_ID']; // Make the number negative as this indicates a prospect user id. $uid = $uid * -1; // Now log the user in $uid = loginuser($email, $password); $tuid = $uid; // keep a copy of the entry id for the Y_leads table if($tuid < 0){$tuid = $tuid * -1;} // Now add it to the leads table if a download. $sql = "Insert into Y_leads ( FirstName, LastName, Company, city, Country, phone, Email, Product, NTWire, hearabout, comment, prospectid ) values ( '".addslashes_mysql($firstname)."', '".addslashes_mysql($lastname)."', '".addslashes_mysql($company)."', '".addslashes_mysql($city)."', '".addslashes_mysql($country)."', '".addslashes_mysql($phone)."', '$email', '$dpro', '1', '$hearabout', '$comments', '$tuid' )"; $result = mysql_query($sql); // Email Bill with the lead $toemail = "bfeeley@printmanager.com"; // $toemail = "ericseijo@gmail.com"; $toname = "Bill Feeley"; // $toname = "Eric Seijo"; $subject = "New Lead"; $fromemail = "support@printmanager.com"; $fromname = "Print Manager Service"; $textmessage = " First Name: $firstname Last Name: $lastname Company: $company City: $city Country: $country Phone: $phone Email: $email Product: $dpro Comments: $comments IP: $ip "; $htmlmessage = nl2br($textmessage); include("../management/mailman.php"); // } if(is_numeric($uid) and $uid < 0){ // echo '

You have created an account and you are now logged in. Your password has been sent to your email address. Please keep it on record for future use of our services.

'; // Send the password $toemail = $email; $toname = $firstname . " " . $lastname; $subject = "Your Print Manager password"; $fromemail = "support@softwareshelf.com"; $fromname = "Print Manager Service"; $textmessage = "Thank you for signing up to printmanager.com \n\n Here are your login details. \n\n Email: $email \n Password: $password"; $htmlmessage = nl2br($textmessage); $htmlmessage .= '

-----------------------------------------------


Print Manager
PO Box 209, Nevada City, CA 95959
USA Contact: 727-445-1920 | 800-962-2290 | Office Hours: 4:00am to 6:00pm PST
Europe Contact: +44-1342-310950 | 0800 048 8689 | Office Hours: 8:00am to 5:00pm GMT

Sales: sales@printmanager.com
Support: support@printmanager.com
Customer Service: service@printmanager.com
Website: http://www.printmanager.com '; // Send the actual email //include("mailer.php"); include("../management/mailman.php"); //echo " - " . $mail->Username; if($fasttrack == "printmanagerplus"){ ?> Oops! That failed. Our fault. Please contact us for any help.

"; } } } // if($dpro == "Print Manager Plus"){ // $redir = "print-manager-plus-download.htm"; // echo "

Download

"; // ?>

Login or Create Account

Have An Account?


Email:   Password:

Create New Account


Company:*

Email:*

First Name:*

Last Name:*

City:*

Country:*

Phone:*

* All fields are required.

 

How did you hear about us:


Schedule a WebEx

Subscribe Print Manager Newsletter: Get the latest news from Software Shelf directly served to you. Learn about the availability of updates, new products, betas, special offers, and network information on print management tips and helpful advise.

Please note any questions or comments you would like answered: