One Hat Cyber Team
Your IP :
216.73.216.84
Server IP :
50.6.229.107
Server :
Linux server.hostburly.com 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
andjemzt
/
nportal.andjemztech.com
/
examAdmin
/
Edit File:
update_profile.php
<?php include_once("auth.inc.php"); include_once("config.php"); ?> <? if ($image) { require ("function_randomletter.php"); $myrand = randomString(12); $std_custome4 = "$myrand"; } $surname = addslashes($surname); $firstname = addslashes($firstname); $othernames = addslashes($othernames); $place_of_birth = addslashes($place_of_birth); $home_town = addslashes($home_town); $local_gov = addslashes($local_gov); $state_of_origin = addslashes($state_of_origin); $nationality = addslashes($nationality); $contact_address = addslashes($contact_address); $student_email = addslashes($student_email); $parents_name = addslashes($parents_name); $student_homeaddress = addslashes($student_homeaddress); $next_of_kin = addslashes($next_of_kin); $nok_address = addslashes($nok_address); $std_custome1 = addslashes($std_custome1); $std_custome2 = addslashes($std_custome2); $std_custome3 = addslashes($std_custome3); $std_custome4 = addslashes($std_custome4); $std_custome5 = addslashes($std_custome5); $std_custome6 = addslashes($std_custome6); $std_custome7 = addslashes($std_custome7); $std_custome8 = addslashes($std_custome8); $birthdate = "$date_year-$date_month-$date_day"; $update="UPDATE students_profile SET surname='$surname', firstname='$firstname', othernames='$othernames', gender='$gender', marital_status='$marital_status', birthdate='$birthdate', place_of_birth='$place_of_birth', home_town='$home_town', local_gov='$local_gov', state_of_origin='$state_of_origin', nationality='$nationality', contact_address='$contact_address', student_email='$student_email', parents_name='$parents_name', student_homeaddress='$student_homeaddress', student_mobiletel='$student_mobiletel', student_landtel='$student_landtel', next_of_kin='$next_of_kin', nok_address='$nok_address', nok_tel='$nok_tel', stdprogramme_id='$programme_id', stdfaculty_id='$faculty_id', stddepartment_id='$department_id', std_custome1='$std_custome1', std_custome2='$std_custome2', std_custome3='$std_custome3', std_custome5='$std_custome5', std_custome6='$std_custome6', std_custome7='$std_custome7', std_custome8='$std_custome8' WHERE std_id='$std_id'"; $results = mysql_query($update) or die(mysql_error()); $upd_affected = mysql_affected_rows(); if ($image) { $update1="UPDATE students_profile SET std_custome4='$std_custome4' WHERE std_id='$std_id'"; $results1 = mysql_query($update1); $upd_affected2 = mysql_affected_rows(); } if ($image) { require ("uploader.php"); } $std_fullname = trim("$surname $firstname $othernames"); if (($upd_affected) OR ($upd_affected2) OR ($image)) { echo "<center><a href=\"myprofile.php?w_update=$std_fullname was updated\" style=\"font-family: Tahoma, Verdana, Arial; font-size: 16px; color: #006699;border: 1px ridge #72A4D5;background-color: #F4F4F7;padding-top: 2px; padding-right: 15px; padding-bottom: 2px; padding-left:15px; text-decoration: none;\">continue please</a></center>"; exit; } else { echo "<center><a href=\"myprofile.php?w_update=Sorry, $std_fullname was not successfully updated.\" style=\"font-family: Tahoma, Verdana, Arial; font-size: 16px; color: #006699;border: 1px ridge #72A4D5;background-color: #F4F4F7;padding-top: 2px; padding-right: 15px; padding-bottom: 2px; padding-left:15px; text-decoration: none;\">continue please</a></center>"; exit; } ?>
Simpan