Index page Aviation Catalog
Aviation Catalog



 

bearcraft-online.com
Aviation Catalogue
Add Your site
"; for ($i=0; $i     No title was specified."; $url = ereg_replace ("http://", "", $url); if (empty($url)) $err[] = "
    No url was specified."; if (empty($passwd)) $err[] = "
    No password was specified."; if ($cpasswd != $passwd) $err[] = "
    Please, confirm password in accuracy."; if ($cid1==0 & $cid2==0 & $cid3==0) $err[] = "
    No category was specified. Please, select at least one category."; $res = mysql ($db, "SELECT url FROM CATALOGsite WHERE url = '$url'"); if (mysql_numrows($res)) $err[] = "
    The site $url has already registered in the catalog."; if (!count($err)) { if ($cid1!=0) { $res = mysql($db, "SELECT pid,cname FROM CATALOGcat WHERE cid=$cid1"); $cname1 = mysql_result($res, 0, 1); $pid = mysql_result($res, 0, 0); $res = mysql($db, "SELECT cname FROM CATALOGcat WHERE cid=$pid"); $cname1 = mysql_result($res, 0, 0)."->".$cname1; } else $cname1 = " ---not selected--- "; if ($cid2!=0) { $res = mysql($db, "SELECT pid,cname FROM CATALOGcat WHERE cid=$cid2"); $cname2 = mysql_result($res, 0, 1); $pid = mysql_result($res, 0, 0); $res = mysql($db, "SELECT cname FROM CATALOGcat WHERE cid=$pid"); $cname2 = mysql_result($res, 0, 0)."->".$cname2; } else $cname2 = " ---not selected--- "; if ($cid3!=0) { $res = mysql($db, "SELECT pid,cname FROM CATALOGcat WHERE cid=$cid3"); $cname3 = mysql_result($res, 0, 1); $pid = mysql_result($res, 0, 0); $res = mysql($db, "SELECT cname FROM CATALOGcat WHERE cid=$pid"); $cname3 = mysql_result($res, 0, 0)."->".$cname3; } else $cname3 = " ---not selected--- "; $title = ereg_replace ("'", "`", $title); $description = ereg_replace ("'", "`", $description); $contact = ereg_replace ("'", "`", $contact); $res = mysql($db, "INSERT INTO CATALOGsite (sid, title, url, contact, email, passwd, cid1, cid2, cid3, description, pub, keywords, ldate) VALUES ('', '$title', '$url', '$contact', '$email', '$passwd', '$cid1', '$cid2', '$cid3', '$description', '', '$keywords', NOW())") or die(mysql_error());; $res = mysql($db, "SELECT sid FROM CATALOGsite WHERE url='$url'"); $sid = mysql_result($res, 0, 0); $emsg = "Adding new site in Bearcarft-online.com Catalogue
Title: $title
URL: $url
Contact Person: $contact
Contact Email: $email
Category:
$cname1
$cname2
$cname3
Description: $description

"; $emsg1 = "Publish"; mail("catalog@bearcraft-online.com", "$url was added to catalog", $emsg.$emsg1, "From: BoL-Robot\nContent-Type: text/html; charset=windows-1251\nContent-Transfer-Encoding: 8bit"); ?>


THANK YOU!!!


We'll check the site within several days and publish it in our catalogue.