return;
//include('funcs.php');
connectSQL();
$error = 0;
function eback($reason) {
global $error;
print "
! Kitltsi hiny: $reason";
$error = 1;
return;
}
function mback($reason) {
global $error;
print "
! Tl hossz absztrakt ($reason sz). A megengedett maximum 250 sz!";
$error = 1;
return;
}
if (isset($send)) {
//die("A jelentkezsi id lejrt!
");
global $error;
trim($name_)!='' ? $name = $name_ : eback('name_');
trim($addr_)!='' ? $address = $addr_ : eback('addr_');
trim($email_)!='' ? $email = $email_ : eback('email_');
trim($inst_)!='' ? $inst = $inst_ : eback('inst_');
$accessories = '';
if (!isset($only_visitor)) {
trim($title_e)!='' ? $title_eng = $title_e : eback('title_e');
trim($title_h)!='' ? $title_hun = $title_h : eback('title_h');
trim($authors_)!='' ? $authors = $authors_ : eback('authors_');
if (str_word_count($abstr_hun_)>550) mback(str_word_count($abstr_hun_));
if (str_word_count($abstr_eng_)>350) mback(str_word_count($abstr_eng_));
trim($abstr_hun_)!='' ? $abstract_hun = $abstr_hun_ : eback('abstr_hun_');
trim($abstr_eng_)!='' ? $abstract_eng = $abstr_eng_ : eback('abstr_eng_');
if (isset($acces_dia)) $accessories .= 'diavett,';
if (isset($acces_write)) $accessories .= 'rsvett,';
if (isset($acces_proj)) $accessories .= 'projektor,';
if (trim($acces_other)!='') $accessories .= $acces_other;
$accessories = preg_replace('/,$/','',$accessories);
} else {
$abstract_hun = '';
$abstarct_eng = '';
}
if (!isset($backing)) $backing = 0;
if (!$error) {
sqlcmd("INSERT INTO kongress (id,name,institute,address,email,title_hun,title_eng,authors,accessories,abstract_hun,abstract_eng,backing)
VALUES ('','$name','$inst','$address','$email','$title_hun','$title_eng','$authors','$accessories','$abstract_hun','$abstract_eng','$backing')");
if ($backing>0) $backing_mess = 'A szllstmogats ignylse miatt rvidesen kap kln rtestst!';
else $backing_mess = '';
mail($email,'regisztrci visszaigazols','A regisztrc a 8. Viselkedskolgiai Tallkozra sikeresen megtrtnt'."\n\n\nregisztrlt nv: $name\ncm: $address\nelads cme: $title_hun / $title_eng\nszerzk: $authors\nignyelt kellkek: $accessories\n$backing_mess\n\n\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nEz az zenet a http://vocs.unideb.hu oldalrl jtt.",
"From: peterlpap@gmail.com\n"
."Cc: peterlpap@gmail.com,vocs@delfin.unideb.hu\n"
."X-Mailer: PHP/" . phpversion());
$error = 2;
}
}
if ($error == 0 or $error == 1 ) {
?>
8. Viselkedskolgiai Tallkoz (Kolozsvr)
2007. november 9-11.
REGISZTRCI
A jelentkezsi hatrid (2007. okt. 15.) lejrt.
} elseif ($error == 2) {
?>
Ksznjk a regisztrcit a megadott
email-cmre rvidesen kldjk a visszaigazolst
vissza
}
?>