\r\n" ."Return-Path: " . $From_Email . "\r\n" ."Reply-To: $From_Email"."\r\n" ."X-Mailer: PHP/" . phpversion(); $send = mail($toEmail, $Subject, $bodyString, $headers); if($send == 1){ if(strlen($URL)>1){ echo "An Email has been sent with the information you requested.
"; echo "You should be redirected. If you are not, please click here
"; echo ""; } } } //----------------------------------------------------------------- //--------------------------------------------IMAGE UPLOAD FUNCTION function zrImgUpload($File,$path,$Dir,$Name){ global $MaxSize; $Answer = 0; if (($_FILES[$File]['type'] == "image/gif") or ($_FILES[$File]['type'] == "image/jpeg") or ($_FILES[$File]['type'] == "image/pjpeg")){ if ($_FILES[$File]['size'] < $MaxSize){ $ext = ".jpg"; if ($_FILES[$File]['type'] == "image/gif"){ $ext = ".gif"; } $DirPrefix = "/the-babyroom.com/".$path; //echo $DirPrefix; //exit; $Name = "$Name"."$ext"; $conn_id = ftp_connect("ftp.the-babyroom.com"); $login_result = ftp_login($conn_id, "lownams", "s2ves"); // check connection if ((!$conn_id) || (!$login_result)) { echo "FTP connection has failed!"; echo "Attempted to connect to ftp server"; }else{ ftp_chdir($conn_id, $DirPrefix); if(is_dir($Dir) == 0){ //check for and create destination directory if needed //@ftp_mkdir($conn_id, "$Dir"); } //echo $DirPrefix."/".$Dir; //exit; ftp_chdir($conn_id, $Dir); $upload = ftp_put($conn_id, $Name, $_FILES[$File]['tmp_name'], FTP_BINARY); // upload the file if (!$upload) { echo "FTP upload has failed!"; exit; }else{ $Answer = $Name; ftp_close($conn_id); // close the FTP stream } } } } return $Answer; } //------------------------------------- //---------------------------FTP DELETE function zrFiledelete($file){ // set up basic connection $conn_id = ftp_connect("ftp.the-babyroom.com"); // login with username and password $login_result = ftp_login($conn_id, "lownams", "s2ves"); // try to delete $file if (ftp_delete($conn_id, "/the-babyroom.com/"."$file")) { //echo "$file deleted successful\n"; } else { //echo "could not delete $file\n"; } // close the connection ftp_close($conn_id); } //------------------------------------------------------------- //--------------- function getSectionDescription($section){ $row = zrQ("select * from productTypes where ID = ".$section); echo $row[0]['description']; } function getThumbs($section){ global $productID; $maxThumbs = 9; $row = zrQ("select * from products where productType = ".$section." and visible=1 order by title ASC"); $t = ""; $count = 0; for ($i=0;$i < $maxThumbs;$i++){ if($count == 0){ $t = $t.""; } if($i < count($row)){ $ID = $row[$i]['ID']; $title = $row[$i]['title']; $thumb = $row[$i]['thumbNail']; //Build table $css = "standardThumb"; if($productID == "0"){ if($i == 0){ $css = "selectedThumb"; $productID = $ID; } } if($productID == $ID){ $css = "selectedThumb"; } //$t = $t.""; $t = $t.""; }else{ $t = $t.""; } $count++; if($count == 3){ $t = $t.""; $count = 0; } } $t = $t."

".$title."

".$title."

Click on a product above to view a fullsize image and description.
"; echo $t; } $product; function loadProduct(){ global $product,$productID; $product = zrQ("select * from products where Id = ".$productID); } function getFullImg(){ global $product,$productID; if(!isset($product)){ loadProduct(); } $img = $product[0]['fullSize']; //echo "
"; echo ""; } function getDescription(){ global $product,$productID; if(!isset($product)){ loadProduct(); } echo "
Description:
".$product[0]['description']."
"; } function getDetails(){ global $product,$productID; if(!isset($product)){ loadProduct(); } $title = $product[0]['title']; $sizes = $product[0]['sizes']; echo "".$title."
Sizes: ".$sizes; } function getPatterns(){ global $productID; $t=""; $count = 0; $row = zrQ("select * from patterns where productId = ".$productID." Order by title ASC"); if($row[0]['RowCount'] < 1){ $t = $t.""; }else{ for ($i=0;$i < count($row);$i++){ if($count == 0){ $t = $t.""; } $title = $row[$i]['title']; $image = $row[$i]['image']; $t = $t.""; $count++; if($count == 3){ $t = $t.""; $count = 0; } } } $t = $t."
N/A
".$title."
"; echo $t; } ?> <? echo $Site_Title; ?>


Welcome to The-Babyroom.com

Our mission is connecting your consumers to high quality baby clothing.

We offer:
Clothes for boys, girls and seasonal apperal
Designs meant to stimulate an infant’s senses
Creative and unique characters for infants and toddlers
A history in family-run business
A commitment to catering to your individual needs

Please use the browser above and tabs to navigate some of our products and learn more about us.

 

Last Updated: ".$modDate; ?>

Introducing our mascot – Bluebear. He represents the love and commitment that go into raising an infant. This is the commitment that parents give to their children and the commitment that we have to our customers. Along with his friends, Pinkbear and Whitebears, he would love to show you our many offerings in infant textiles.

Name: Bluebear
Date of Birth: August 14, 2005
Favorite Colors: Blue, pink, earth tones
Parents: Dedicated people like you who believe that the greatest joy is in a child’s smile. We use only the highest quality materials (100% cotton, TC, and CVC blends) in our products to promote happiness for those who purchase and wear our designs.