logo_IIT
IPv4
facebook twitter
<!-- require_once $_SERVER['DOCUMENT_ROOT']."/service/utils/utils.php"; require_once $_SERVER['DOCUMENT_ROOT']."/service/utils/validators.php"; if (!isset($_SESSION)) sec_session_start(); if (!isset($_SESSION['step'])) $_SESSION['step'] = 1; if (isset($_POST['send_data'])) { require_once "../utility/utility.php"; if ($_SESSION['step'] == 1) { // expects main contact if (!isset($_POST['name']) || !isset($_POST['surname']) || !isset($_POST['email']) || !isset($_POST['organization'])) { $xmlFile = simplexml_load_file($_SERVER['DOCUMENT_ROOT']."/pages/".get_lang($_GET)."/join_us.xml"); echo "<span class='error'>".$xmlFile->xpath("/content/validators/fill_all_fields")[0].""; exit; } $name = htmlentities($_POST['name']); $surname = htmlentities($_POST['surname']); $organization = htmlentities($_POST['organization']); $email = htmlentities($_POST['email']); $user_ip = htmlentities($_SERVER['HTTP_X_FORWARDED_FOR']); $user_port = htmlentities($_SERVER['REMOTE_PORT']); $ua = htmlentities($_SERVER['HTTP_USER_AGENT']); $time = htmlentities($_SERVER['REQUEST_TIME']); /* if (!is_valid_email($email)) { $xmlFile = simplexml_load_file($_SERVER['DOCUMENT_ROOT']."/pages/".get_lang($_GET)."/join_us.xml"); echo "".$xmlFile->xpath("/content/validators/invalid_email")[0].""; exit; }*/ /*mail_info("Join request - $name $surname", "STEP 1\nThe following person completed the first step of the join procedure \nName:[$name]\nSurname:[$surname]\nEmail:[$email]\notrganization[$organization] \n[Submission details]\nSource IP: $user_ip\nSource Port: $user_port\nUser Agent: $ua\nTimestamp: $time "); $_SESSION['step'] = 2; $_SESSION['name'] = "$name $surname"; echo second_step_form(); } else if ($_SESSION['step'] == 2) { // BGP info received if (!isset($_POST['sessions'])) { header("Location index.php&page;=join_us⟨=".get_lang($_GET)); } else { $sessions = json_decode($_POST['sessions'], true); $mail_text = "STEP 2\n".$_SESSION['name']." sent BGP sessions parameters:\n"; $i = 1; foreach ($sessions as $key=>$value) { $asn = $value['asn']; $mail_text.="$i) Source IP [$key] ASN $asn\n"; $i++; } mail_info("Join request - ".$_SESSION['name'], $mail_text); echo third_step_form(); $_SESSION['step'] = 3; } } else if ($_SESSION['step'] == 3) { // Users received if (!isset($_POST['users'])) { header("Location index.php&page;=join_us⟨=".get_lang($_GET)); } else { $users = json_decode($_POST['users'], true); $mail_text = "STEP 3\n".$_SESSION['name']." sent system users:\n"; $i = 1; foreach ($users as $key=>$value) { $name = $value['name']; $surname = $value['surname']; $email = $value['email']; $mail_text.="$i) Name [$name] Surname [$surname] Email[$email]\n"; $i++; } mail_info("Join request - ".$_SESSION['name'], $mail_text); echo thanks(); $_SESSION['step'] = 1; } } exit; } else { echo ''; echo ""; echo ""; } ?>
Notice: Undefined index: step in /var/www/htdocs/pages/join_us.php on line 101

Notice: Undefined index: step in /var/www/htdocs/pages/join_us.php on line 104

Notice: Undefined index: step in /var/www/htdocs/pages/join_us.php on line 107