";
#print_r($myarray);
} else
{
if ($_FILES['photofield']['size']>0)
$myerror="Bitte laden Sie nur PDF oder JPG-Dateien hoch. Vielen Dank.";
}
if ($newpicuploaded==false && !empty($photofromlasttime)) #Vom letzten Mal merken wir uns das!
{
$myarray["filename"]=$savephotoarray["filename"]=$photofromlasttime["filename"];
$myarray["filetype"]=$savephotoarray["filetype"]=$photofromlasttime["filetype"];
$myarray["fileurl"]=$savephotoarray["fileurl"]=basename($photofromlasttime["fileurl"]); #Damit es wirklich nur ein Dateiname ist
}
if ($anrede=="")
$myerror.="
Salutation";
if ($nachname=="")
$myerror.="
Surname";
if ($name=="")
$myerror.="
Name";
if (round($gebday)==0 || round($gebmonth)==0 || round($gebyear)==0)
$myerror.="
Date of birth";
if ($gebort=="")
$myerror.="
Place of birth";
if ($nationalitaet=="")
$myerror.="
Nationality";
if ($adresse=="")
$myerror.="
Adress";
if ($plz=="")
$myerror.="
Postcode";
if ($city=="")
$myerror.="
City";
if ($ort=="")
$myerror.="
Country";
if ($tel=="")
$myerror.="
Telephone";
if (!preg_match("/^[0-9A-Za-z.\-_]+@[0-9A-Za-z.-]+\.[A-Za-z.-]+$/",$email) || $email=="")
$myerror.="
Email";
$tempdata=get_generic_all_sql($fs_db,"SELECT * FROM student WHERE email=".$fs_db->qstr($email));
if (!empty($tempdata) && !$editmode)
{
$myerror.="
Diese Emailadresse ist bereits registriert worden.";
}
if ($myerror=="")
{
/*echo "
";
print_r($myarray);
#print_r($_FILES);
echo "
";*/
if ($editmode==false)
{
$myarray["passcode"]=strtoupper(base_convert(uniqid(),16,35));
$_SESSION["sess_studentpasskey"]=$myarray["passcode"];
$id=create_item($fs_db,"student");
}
else
{
$id=$trueid; #Kommt von weiter oben
}
set_item_data($fs_db,"student",$id,$myarray);
header("Location: myprofile-thankyou.php");
die();
}
}
if(!$doingsomething && $_REQUEST["createnew"]=="")
{
header("Location: loginstudent.php");
die();
}
?>
FIRST - My Profile
include($_SERVER['DOCUMENT_ROOT']."/includes/metas.php"); ?>
include($_SERVER['DOCUMENT_ROOT']."/includes/javas.php"); ?>
Please fill in the form, so we have all your details, including the current contact details. Most of the information is only for administration purposes and will not be visible on the web. If anything changes (e.g. contact address, email etc), please log on and change it here.