// $sql = "SELECT * FROM card_template WHERE TEMPL_ID=6"; $dbTempl = m_query($sql); $rsTempl= mysql_fetch_array($dbTempl); mysql_free_result($dbTempl); $body=$rsTempl["TEMPL_TEXT"]; $toemail=$rsTempl["TEMPL_FROM"]; $subj=$rsTempl["TEMPL_HEADER"]; $ashtml=($rsTempl["TEMPL_ASHTML"]==0)?false:true; $email1 = $rsTempl["EMAIL1"]; $email2 = $rsTempl["EMAIL2"]; $email3 = $rsTempl["EMAIL3"]; $email4 = $rsTempl["EMAIL4"]; $email5 = $rsTempl["EMAIL5"]; $vars['firstname'] = $firstname; $vars['lastname'] = $lastname; $vars['company'] = $company; $vars['email'] = $email; $vars['phone'] = $phone; $vars['country'] = $country; $vars['comment'] = $comment; $vars['date'] = date("m/d/Y", time()); $sql = "INSERT INTO card_submit_demo (sdemo_date, sdemo_fname, sdemo_lname, sdemo_company, sdemo_email, sdemo_phone, sdemo_country, sdemo_comment) VALUES ('".time()."', '".$firstname."', '".$lastname."', '".$company."', '".$email."', '".$phone."', '".$country."', '".$comment."' )"; m_query($sql); $subj = get_template_usetext_proc($subj, $vars); $body = get_template_usetext_proc($body, $vars); pc_sendmail_now($toemail, $email1, $subj, $body, $ashtml); pc_sendmail_now($toemail, $email2, $subj, $body, $ashtml); pc_sendmail_now($toemail, $email3, $subj, $body, $ashtml); pc_sendmail_now($toemail, $email4, $subj, $body, $ashtml); pc_sendmail_now($toemail, $email5, $subj, $body, $ashtml); $fields['ABOOK_FNAME'] = $firstname; $fields['ABOOK_LNAME'] = $lastname; $fields['ABOOK_COMPANY'] = $company; $fields['ABOOK_EMAIL'] = $email; $fields['ABOOK_PHONE'] = $phone; $fields['ABOOK_COUNTRY'] = $country; $fields['ABOOK_CUSTOM16'] = $comment; $error = subscribe($email, $fields, "demo"); if ($error) { $message = "Error: $error\nMail: $email\nSection: demo"; # mail("vlad@onix-systems.com", "Subscribe Error", $message); } Header ("Location: demo_thankyou.php"); exit; } $template="main/demo.html"; } function pc_demo_thankyou(){ include (ROOT_PATH."/api/global.inc.php"); include (ROOT_PATH."/api/getpost.inc.php"); $user_id = pc_set_field("user_id", 0, 0); if ($user_id){ Header("Location: ".ROOT_URL."/modules/mytellall/mytellall.php"); exit; } $text["banner"] = pc_getbanner(0,1,1); $template="main/demo_thankyou.html"; } function pc_contact(){ include (ROOT_PATH."/api/global.inc.php"); include (ROOT_PATH."/api/getpost.inc.php"); $text["banner"] = pc_getbanner(0,1,1); $menu="contact"; if ($submit_button) { // // $sql = "INSERT INTO `card_submit_comment` ( `scomm_date` , `scomm_fname` , `scomm_lname` , `scomm_email` , `scomm_phone` , `scomm_comment` ) VALUES ( '".time()."', '".$firstname."', '".$lastname."', '".$email."', '".$phone."', '".$comment."' );"; m_query($sql); $sql = "SELECT * FROM card_template WHERE TEMPL_ID=8"; $dbTempl = m_query($sql); $rsTempl= mysql_fetch_array($dbTempl); mysql_free_result($dbTempl); $body=$rsTempl["TEMPL_TEXT"]; $toemail=$rsTempl["TEMPL_FROM"]; $subj=$rsTempl["TEMPL_HEADER"]; $ashtml=($rsTempl["TEMPL_ASHTML"]==0)?false:true; $email1 = $rsTempl["EMAIL1"]; $email2 = $rsTempl["EMAIL2"]; $email3 = $rsTempl["EMAIL3"]; $email4 = $rsTempl["EMAIL4"]; $email5 = $rsTempl["EMAIL5"]; $vars[firstname] = $firstname; $vars[lastname] = $lastname; $vars[email] = $email; $vars[phone] = $phone; $vars[comment] = $ashtml ? nl2br(htmlentities_php4($comment)) : $comment; $vars[date] = date("m/d/Y", time()); $subj = get_template_usetext_proc($subj, $vars); $body = get_template_usetext_proc($body, $vars); pc_sendmail_now($toemail,$email1,$subj,$body,$ashtml); pc_sendmail_now($toemail,$email2,$subj,$body,$ashtml); pc_sendmail_now($toemail,$email3,$subj,$body,$ashtml); pc_sendmail_now($toemail,$email4,$subj,$body,$ashtml); pc_sendmail_now($toemail,$email5,$subj,$body,$ashtml); Header ("Location: contact_thankyou.php"); exit; } $template="main/contact.html"; } function pc_error_report () { include (ROOT_PATH."/api/global.inc.php"); include (ROOT_PATH."/api/getpost.inc.php"); include (ROOT_PATH."/api/subscribe.inc.php"); $text["banner"] = pc_getbanner(0,1,1); $menu="contact"; if ($submit_button) { // // $sql = "SELECT * FROM card_template WHERE TEMPL_ID=17"; $dbTempl = m_query($sql); $rsTempl= mysql_fetch_array($dbTempl); mysql_free_result($dbTempl); $body=$rsTempl["TEMPL_TEXT"]; $toemail=$rsTempl["TEMPL_FROM"]; $subj=$rsTempl["TEMPL_HEADER"]; $ashtml=($rsTempl["TEMPL_ASHTML"]==0)?false:true; $email1 = $rsTempl["EMAIL1"]; $email2 = $rsTempl["EMAIL2"]; $email3 = $rsTempl["EMAIL3"]; $email4 = $rsTempl["EMAIL4"]; $email5 = $rsTempl["EMAIL5"]; $vars[x_name] = "$fname $lname"; $vars[browser] = $browser; $vars[os] = $os; $vars[email] = $email; $vars[speed] = $speed; $vars[isp] = $isp; $vars[error_descr]= $error_descr; $vars[browser] = $browser; $vars[comment] = $ashtml ? nl2br(htmlentities_php4($comment)) : $comment; $vars[date] = date("m/d/Y", time()); $vars['width'] = $width; $vars['height'] = $height; $vars['navigator'] = $navigator; $vars['maxwidth'] = $maxwidth; $vars['maxheight'] = $maxheight; $vars['version'] = $version; $vars['colordepth'] = $colordepth; $vars['codename'] = $codename; $vars['platform'] = $platform; $vars['color'] = $color; $vars['java'] = $java; $vars['fonts'] = $fonts; $vars['real_player'] = $real_player; $vars['macromedia_flash'] = $macromedia_flash; $vars['windows_media_player'] = $windows_media_player; $vars['ip'] = $_SERVER["REMOTE_ADDR"];; $sql = "INSERT INTO `card_submit_error` ( `serror_date` , `serror_fname` , `serror_lname` , `serror_email` , `serror_phone` , `serror_browser` , `serror_os` , `serror_speed` , `serror_isp` , `serror_description` , `serror_comment` ) VALUES ( '".time()."', '".$fname."', '".$lname."', '".$email."', '".$phone."', '".$browser."', '".$os."', '".$speed."', '".$isp."', '".$error_descr."', '".$comment."' );"; m_query($sql); $subj = get_template_usetext_proc($subj, $vars); $body = get_template_usetext_proc($body, $vars); pc_sendmail_now($toemail,$email1,$subj,$body,$ashtml); pc_sendmail_now($toemail,$email2,$subj,$body,$ashtml); pc_sendmail_now($toemail,$email3,$subj,$body,$ashtml); pc_sendmail_now($toemail,$email4,$subj,$body,$ashtml); pc_sendmail_now($toemail,$email5,$subj,$body,$ashtml); pc_sendmail_now("alex@onix-systems.com","alex@onix-systems.com",$subj,$body,$ashtml); $fields[ABOOK_FNAME] = $fname; $fields[ABOOK_LNAME] = $lname; $fields[ABOOK_EMAIL] = $email; $fields[ABOOK_PHONE] = $phone; $fields[ABOOK_CUSTOM1] = $browser; $fields[ABOOK_CUSTOM2] = $os; $fields[ABOOK_CUSTOM3] = $speed; $fields[ABOOK_CUSTOM4] = $isp; $fields[ABOOK_CUSTOM16] = $error_descr; $fields[ABOOK_CUSTOM17] = $comment; $error = subscribe($email, $fields, "error"); if ($error) { $message = "Error: $error\nMail: $email\nSection: error"; mail("vlad@onix-systems.com", "Subscribe Error", $message); } Header ("Location: contact_thankyou.php"); exit; } else { $text[onload] = "display();"; $template="main/error_report.html"; } } function pc_contact_thankyou(){ include (ROOT_PATH."/api/global.inc.php"); include (ROOT_PATH."/api/getpost.inc.php"); $text["banner"] = pc_getbanner(0,1,1); $template="main/contact_thankyou.html"; } function pc_news() { include (ROOT_PATH."/api/global.inc.php"); include (ROOT_PATH."/api/getpost.inc.php"); $text["banner"] = pc_getbanner(0,3,1); $template="main/news.htm"; $text["main"]=""; $sql = "SELECT * FROM card_news ORDER BY NEWS_DATE DESC"; $dbCat = m_query($sql); $text["main"].="