2 /*------begin------ This protection code was suggested by Luki R. luki@karet.org ---- */
3 if (eregi('save_admission_data.inc.php',$PHP_SELF))
4 die('<meta http-equiv="refresh" content="0; url=../">');
6 $obj->setDataArray($HTTP_POST_VARS);
10 if($obj->insertDataFromInternalArray()) {
12 header("location:".$thisfile.URL_REDIRECT_APPEND
."&target=$target&type_nr=$type_nr&allow_update=1&pid=".$HTTP_SESSION_VARS['sess_pid']);
13 //echo "$obj->getLastQuery<br>$LDDbNoSave";
17 echo "$obj->getLastQuery<br>$LDDbNoSave";
22 $obj->where
=' nr='.$nr;
23 if($obj->updateDataFromInternalArray($nr)) {
25 header("location:".$thisfile.URL_REDIRECT_APPEND
."&target=$target&type_nr=$type_nr&allow_update=1&pid=".$HTTP_SESSION_VARS['sess_pid']);
26 //echo "$obj->sql<br>$LDDbNoUpdate";
30 echo "$obj->getLastQuery<br>$LDDbNoUpdate";