12) { $id = 1; $errmsg .= _("You can only place an advertisement for up to 12 months.")."
"; $process=""; $oldid=0; } if(strlen($title) <= 5) { $id = 1; $errmsg .= _("Link title was too short.")."
"; $process=""; $oldid=0; } if(strlen($link) <= 10) { $id = 1; $errmsg .= _("Link URI was too short.")."
"; $process=""; $oldid=0; } } if($oldid == 1 && $process != "") { $query = "insert into `advertising` set `link`='$link', `title`='$title', `months`='$months', `who`='".$_SESSION['profile']['id']."', `when`=NOW()"; mysql_query($query); unset($link); unset($title); unset($months); $id = 1; $errmsg = _("Your advertisement request has been lodge in the system and administrators notified. Once the information has been reviewed, you will be notified if the link was acceptable or declined and the reason for the decline. If the request is successful the system will generate an invoice."); } showheader(_("CAcert.org Advertising Section")); includeit($id, "advertising"); showfooter(); ?>