OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
award
/
process
Server IP: 10.0.0.4
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/20/2025 11:54:41 PM
rwxrwxrwx
📄
add.nominee.php
5.7 KB
12/02/2020 03:45:24 PM
rw-rw-r--
📄
chk.login.php
816 bytes
12/02/2020 03:45:24 PM
rw-rw-r--
📄
edit.nominee.php
15.99 KB
12/02/2020 03:45:24 PM
rw-rw-r--
📄
endorse.nominee.php
4.01 KB
12/02/2020 03:45:24 PM
rw-rw-r--
📄
forgot.password.php
1.9 KB
12/02/2020 03:45:25 PM
rw-rw-r--
📄
logout.php
105 bytes
12/02/2020 03:45:26 PM
rw-rw-r--
📄
register.php
3.04 KB
12/02/2020 03:45:26 PM
rw-rw-r--
📄
submit.nominee.php
18.61 KB
12/02/2020 03:45:26 PM
rw-rw-r--
📄
update.nominee.php
5.86 KB
12/02/2020 03:45:26 PM
rw-rw-r--
📄
view.endorsement.php
1.48 KB
12/02/2020 03:45:26 PM
rw-rw-r--
📄
view.nominee.php
10.59 KB
12/02/2020 03:45:27 PM
rw-rw-r--
Editing: submit.nominee.php
Close
<? // Submit Nominee include '../inc/validate.php'; include '../inc/utils.php'; include '../inc/PHPMailer/Exception.php'; include '../inc/PHPMailer/PHPMailer.php'; include '../inc/PHPMailer/SMTP.php'; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\SMTP; use PHPMailer\PHPMailer\Exception; $nomineeId = trim(isset($_POST["nomineeId"]) ? $_POST["nomineeId"] : ''); $nomineeSalutation = trim(isset($_POST["nomineeSalutation"]) ? $_POST["nomineeSalutation"] : ''); $nomineeFirstName = trim(isset($_POST["nomineeFirstName"]) ? $_POST["nomineeFirstName"] : ''); $nomineeLastName = trim(isset($_POST["nomineeLastName"]) ? $_POST["nomineeLastName"] : ''); $nomineeAffiliation = trim(isset($_POST["nomineeAffiliation"]) ? $_POST["nomineeAffiliation"] : ''); $nomineeRole = trim(isset($_POST["nomineeRole"]) ? $_POST["nomineeRole"] : ''); $nomineeAddress = trim(isset($_POST["nomineeAddress"]) ? $_POST["nomineeAddress"] : ''); $nomineeCity = trim(isset($_POST["nomineeCity"]) ? $_POST["nomineeCity"] : ''); $nomineeCountry = trim(isset($_POST["nomineeCountry"]) ? $_POST["nomineeCountry"] : ''); $nomineePincode = trim(isset($_POST["nomineePincode"]) ? $_POST["nomineePincode"] : ''); $nomineePhone = trim(isset($_POST["nomineePhone"]) ? $_POST["nomineePhone"] : ''); $nomineeEmail = trim(isset($_POST["nomineeEmail"]) ? $_POST["nomineeEmail"] : ''); $nomineeDOB = trim(isset($_POST["nomineeDOB"]) ? $_POST["nomineeDOB"] : ''); $nomineeAcademic = trim(isset($_POST["nomineeAcademic"]) ? $_POST["nomineeAcademic"] : ''); $nomineePositions = trim(isset($_POST["nomineePositions"]) ? $_POST["nomineePositions"] : ''); $nomineeContributions = trim(isset($_POST["nomineeContributions"]) ? $_POST["nomineeContributions"] : ''); $nomineeImpact = trim(isset($_POST["nomineeImpact"]) ? $_POST["nomineeImpact"] : ''); $nomineeRecognition = trim(isset($_POST["nomineeRecognition"]) ? $_POST["nomineeRecognition"] : ''); $nomineePatents = trim(isset($_POST["nomineePatents"]) ? $_POST["nomineePatents"] : ''); $nomineePubs = trim(isset($_POST["nomineePubs"]) ? $_POST["nomineePubs"] : ''); $nomineeTopPubs = trim(isset($_POST["nomineeTopPubs"]) ? $_POST["nomineeTopPubs"] : ''); $nomineeCitations = trim(isset($_POST["nomineeCitations"]) ? $_POST["nomineeCitations"] : ''); $endorserSalutation1 = trim(isset($_POST["endorserSalutation1"]) ? $_POST["endorserSalutation1"] : ''); $endorserFirstName1 = trim(isset($_POST["endorserFirstName1"]) ? $_POST["endorserFirstName1"] : ''); $endorserLastName1 = trim(isset($_POST["endorserLastName1"]) ? $_POST["endorserLastName1"] : ''); $endorserPhone1 = trim(isset($_POST["endorserPhone1"]) ? $_POST["endorserPhone1"] : ''); $endorserEmail1 = trim(isset($_POST["endorserEmail1"]) ? $_POST["endorserEmail1"] : ''); $endorserSalutation2 = trim(isset($_POST["endorserSalutation2"]) ? $_POST["endorserSalutation2"] : ''); $endorserFirstName2 = trim(isset($_POST["endorserFirstName2"]) ? $_POST["endorserFirstName2"] : ''); $endorserLastName2 = trim(isset($_POST["endorserLastName2"]) ? $_POST["endorserLastName2"] : ''); $endorserPhone2 = trim(isset($_POST["endorserPhone2"]) ? $_POST["endorserPhone2"] : ''); $endorserEmail2 = trim(isset($_POST["endorserEmail2"]) ? $_POST["endorserEmail2"] : ''); $endorserSalutation3 = trim(isset($_POST["endorserSalutation3"]) ? $_POST["endorserSalutation3"] : ''); $endorserFirstName3 = trim(isset($_POST["endorserFirstName3"]) ? $_POST["endorserFirstName3"] : ''); $endorserLastName3 = trim(isset($_POST["endorserLastName3"]) ? $_POST["endorserLastName3"] : ''); $endorserPhone3 = trim(isset($_POST["endorserPhone3"]) ? $_POST["endorserPhone3"] : ''); $endorserEmail3 = trim(isset($_POST["endorserEmail3"]) ? $_POST["endorserEmail3"] : ''); if ($nomineeFirstName <> '' && $nomineeLastName <> '' && $nomineeAffiliation <> '' && $nomineeRole <> '' && $nomineePhone <> '' && $nomineeEmail <> '' && $nomineePositions <> '' && $nomineeContributions <> '' && $nomineeImpact <> '' && $nomineeRecognition <> '' && $nomineePubs <> '' && $nomineeTopPubs <> '' && $nomineeCitations <> '') { $nomineeAffiliation = mysqli_real_escape_string($con, $nomineeAffiliation); $nomineeAddress = mysqli_real_escape_string($con, $nomineeAddress); $nomineeAcademic = mysqli_real_escape_string($con, $nomineeAcademic); $nomineePositions = mysqli_real_escape_string($con, $nomineePositions); $nomineeContributions = mysqli_real_escape_string($con, $nomineeContributions); $nomineeImpact = mysqli_real_escape_string($con, $nomineeImpact); $nomineeRecognition = mysqli_real_escape_string($con, $nomineeRecognition); $nomineePatents = mysqli_real_escape_string($con, $nomineePatents); $nomineePubs = mysqli_real_escape_string($con, $nomineePubs); $nomineeTopPubs = mysqli_real_escape_string($con, $nomineeTopPubs); $nomineeCitations = mysqli_real_escape_string($con, $nomineeCitations); $sql = "UPDATE nomination SET salutation='$nomineeSalutation',fname='$nomineeFirstName',sname='$nomineeLastName',affiliation='$nomineeAffiliation',role='$nomineeRole',dob='$nomineeDOB',academic='$nomineeAcademic',addr='$nomineeAddress',city='$nomineeCity',country='$nomineeCountry',pin='$nomineePincode',phone='$nomineePhone',email='$nomineeEmail',positions='$nomineePositions',contrib='$nomineeContributions',impact='$nomineeImpact',recognition='$nomineeRecognition',patents='$nomineePatents',pubs='$nomineePubs',toppubs='$nomineeTopPubs',cit='$nomineeCitations',submitted='YES' WHERE id=$nomineeId AND nominatedby=$gUserId"; mysqli_query($con, $sql); $sql = "DELETE FROM endorser WHERE nominationid=$nomineeId AND nominatedby=$gUserId"; mysqli_query($con, $sql); $sql = "INSERT INTO endorser(endorsernum,salutation,fname,sname,phone,email,nominationid,nominatedby,datecreated) VALUE (1,'$endorserSalutation1','$endorserFirstName1','$endorserLastName1','$endorserPhone1','$endorserEmail1',$nomineeId,$gUserId,Now())"; mysqli_query($con, $sql); $endorserId1 = mysqli_insert_id($con); $sql = "INSERT INTO endorser(endorsernum,salutation,fname,sname,phone,email,nominationid,nominatedby,datecreated) VALUE (2,'$endorserSalutation2','$endorserFirstName2','$endorserLastName2','$endorserPhone2','$endorserEmail2',$nomineeId,$gUserId,Now())"; mysqli_query($con, $sql); $endorserId2 = mysqli_insert_id($con); $sql = "INSERT INTO endorser(endorsernum,salutation,fname,sname,phone,email,nominationid,nominatedby,datecreated) VALUE (3,'$endorserSalutation3','$endorserFirstName3','$endorserLastName3','$endorserPhone3','$endorserEmail3',$nomineeId,$gUserId,Now())"; mysqli_query($con, $sql); $endorserId3 = mysqli_insert_id($con); $sql = "SELECT email FROM nominator WHERE id=$gUserId"; $result = mysqli_query($con, $sql); $numRows = mysqli_num_rows($result); if ($numRows > 0) { $row = mysqli_fetch_assoc($result); $nominatorEmail = $row['email']; // Mail to Nominee $nomineeTxt = "Dear $nomineeSalutation $nomineeFirstName $nomineeLastName,<br><br>"; $nomineeTxt .= "We are pleased to inform you that $gUserName has nominated you for the ACCS Foundation Award 2020.<br><br>"; $nomineeTxt .= "This Award instituted in 2004 by the Advanced Computing and Communications Society (ACCS) fosters the development and dissemination of the theory and applications of Computing and Communications sciences. The ACCS Foundation Award is given to individuals with outstanding contributions and accomplishments that have had a significant and demonstrable effect on the practice of computing and communications. For additional information on the Award and past winners please visit: <a href='https://accsindia.org/awards/'>https://accsindia.org/awards/</a><br><br>"; $nomineeTxt .= "ACCS is a registered scientific society founded to provide a forum to individuals, institutions and industry to promote advanced Computing and Communication technologies. It is widely recognized as the premier organization for computing professionals in India delivering a broad array of resources that advance the computing and networking disciplines and enables professional development. For additional information on the Society, please visit: <a href='http://accsindia.org/'>http://accsindia.org/</a><br><br>"; $nomineeTxt .= "This nomination will be evaluated by a committee comprised of eminent scientists, industry leaders and past award winners.<br><br>"; $nomineeTxt .= "ACCS is honored to have you as a nominee this year. On behalf of the Society and the Awards Committee, we wish you the best.<br><br>"; $nomineeTxt .= "Sincerely,<br><br>"; $nomineeTxt .= "Saragur M. Srinidhi, PhD<br><br>"; $nomineeTxt .= "President<br>"; $nomineeTxt .= "Advanced Computing and Communications Society (ACCS)<br>"; $nomineeTxt .= "Gate No. 2, Sir C. V. Raman Avenue<br>"; $nomineeTxt .= "Indian Institute Science, Bangalore 560012<br><br>"; $nomineeTxt .= "Telefax: +91 80 2360 7142<br>"; $nomineeTxt .= "Mobile: +91 98450 67476<br>"; $nomineeTxt .= "Email: <a href='mailto:ssrinidhi@accsindia.org'>ssrinidhi@accsindia.org</a><br>"; try { $mail = new PHPMailer(true); $mail->isSMTP(); $mail->Host = 'smtp.office365.com'; $mail->SMTPAuth = true; $mail->Username = 'president@accsindia.org'; $mail->Password = 'Xaf55215'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->isHTML(true); $mail->setFrom('president@accsindia.org', 'ACCS Awards'); $mail->addAddress($nomineeEmail, $nomineeFirstName . ' ' . $nomineeLastName); $mail->addBCC('awards@accsindia.org', 'ACCS Awards'); $mail->Subject = "You have been nominated for the ACCS Foundation Award 2020"; $mail->Body = $nomineeTxt; $mail->send(); $mail->clearAllRecipients(); } catch (Exception $e) { } // Mail to Nominator $nominatorTxt = "Dear $gUserName,<br><br>"; $nominatorTxt .= "Your nomination on behalf of $nomineeSalutation $nomineeFirstName $nomineeLastName has been received.<br><br>"; $nominatorTxt .= "The endorsers have been notified that you are awaiting their letters of recommendation. Please ensure that your referees submit their recommendations on or before 15th Nov 2020 failing which this nomination will be considered withdrawn.<br><br>"; $nominatorTxt .= "The Name and Emails of the Endorsers are as follows:<br>"; $nominatorTxt .= "Endorser 1: $endorserSalutation1 $endorserFirstName1 $endorserLastName1, $endorserEmail1<br>"; $nominatorTxt .= "Endorser 2: $endorserSalutation2 $endorserFirstName2 $endorserLastName2, $endorserEmail2<br>"; $nominatorTxt .= "Endorser 3: $endorserSalutation3 $endorserFirstName3 $endorserLastName3, $endorserEmail3<br><br>"; $nominatorTxt .= "Thank you for your support. Should you have questions please reply to this email.<br><br>"; $nominatorTxt .= "Sincerely,<br><br>"; $nominatorTxt .= "Saragur M. Srinidhi, PhD<br><br>"; $nominatorTxt .= "President<br>"; $nominatorTxt .= "Advanced Computing and Communications Society (ACCS)<br>"; $nominatorTxt .= "Gate No. 2, Sir C. V. Raman Avenue<br>"; $nominatorTxt .= "Indian Institute Science, Bangalore 560012<br><br>"; $nominatorTxt .= "Telefax: +91 80 2360 7142<br>"; $nominatorTxt .= "Mobile: +91 98450 67476<br>"; $nominatorTxt .= "Email: <a href='mailto:ssrinidhi@accsindia.org'>ssrinidhi@accsindia.org</a><br>"; try { $mail = new PHPMailer(true); $mail->isSMTP(); $mail->Host = 'smtp.office365.com'; $mail->SMTPAuth = true; $mail->Username = 'president@accsindia.org'; $mail->Password = 'Xaf55215'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->isHTML(true); $mail->setFrom('president@accsindia.org', 'ACCS Awards'); $mail->addAddress($nominatorEmail, $gUserName); $mail->addCC('president@accsindia.org', 'Saragur M. Srinidhi'); $mail->addBCC('awards@accsindia.org', 'ACCS Awards'); $mail->Subject = 'Your Nomination to ACCS Awards'; $mail->Body = $nominatorTxt; $mail->send(); $mail->clearAllRecipients(); } catch (Exception $e) { } // Mail to Endorser 1 $endorseData = "$nomineeId|$endorserId1"; $endorseData = simpleEncDec($endorseData); $endorseUrl = "https://award.accsindia.org/endorse.php?key=$endorseData"; $endorserTxt = "Dear $endorserSalutation1 $endorserFirstName1 $endorserLastName1,<br><br>"; $endorserTxt .= "$nomineeSalutation $nomineeFirstName $nomineeLastName has been nominated for the ACCS Foundation Award 2020. $gUserName, the Nominator, requests you to endorse the nomination.<br><br>"; $endorserTxt .= "We ask you to complete the brief online recommendation form by accessing the link below<br>"; $endorserTxt .= "<a href='$endorseUrl'>$endorseUrl</a><br><br>"; $endorserTxt .= "The link will allow you to write a personalized recommendation OR/AND upload your recommendation on your letterhead.<br><br>"; $endorserTxt .= "Should you have questions or experience any difficulties please reply to this email.<br><br>"; $endorserTxt .= "We look forward to receiving your recommendation.<br><br>"; $endorserTxt .= "Sincerely,<br><br>"; $endorserTxt .= "Saragur M. Srinidhi, PhD<br><br>"; $endorserTxt .= "President<br>"; $endorserTxt .= "Advanced Computing and Communications Society (ACCS)<br>"; $endorserTxt .= "Gate No. 2, Sir C. V. Raman Avenue<br>"; $endorserTxt .= "Indian Institute Science, Bangalore 560012<br><br>"; $endorserTxt .= "Telefax: +91 80 2360 7142<br>"; $endorserTxt .= "Mobile: +91 98450 67476<br>"; $endorserTxt .= "Email: <a href='mailto:ssrinidhi@accsindia.org'>ssrinidhi@accsindia.org</a><br>"; try { $mail = new PHPMailer(true); $mail->isSMTP(); $mail->Host = 'smtp.office365.com'; $mail->SMTPAuth = true; $mail->Username = 'president@accsindia.org'; $mail->Password = 'Xaf55215'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->isHTML(true); $mail->setFrom('president@accsindia.org', 'ACCS Awards'); $mail->addAddress($endorserEmail1, $endorserFirstName1 . ' ' . $endorserLastName1); $mail->addBCC('awards@accsindia.org', 'ACCS Awards'); $mail->Subject = 'Your recommendation is requested for the ACCS Foundation Award 2020'; $mail->Body = $endorserTxt; $mail->send(); $mail->clearAllRecipients(); } catch (Exception $e) { } // Mail to Endorser 2 $endorseData = "$nomineeId|$endorserId2"; $endorseData = simpleEncDec($endorseData); $endorseUrl = "https://award.accsindia.org/endorse.php?key=$endorseData"; $endorserTxt = "Dear $endorserSalutation2 $endorserFirstName2 $endorserLastName2,<br><br>"; $endorserTxt .= "$nomineeSalutation $nomineeFirstName $nomineeLastName has been nominated for the ACCS Foundation Award 2020. $gUserName, the Nominator, requests you to endorse the nomination.<br><br>"; $endorserTxt .= "We ask you to complete the brief online recommendation form by accessing the link below<br>"; $endorserTxt .= "<a href='$endorseUrl'>$endorseUrl</a><br><br>"; $endorserTxt .= "The link will allow you to write a personalized recommendation OR/AND upload your recommendation on your letterhead.<br><br>"; $endorserTxt .= "Should you have questions or experience any difficulties please reply to this email.<br><br>"; $endorserTxt .= "We look forward to receiving your recommendation.<br><br>"; $endorserTxt .= "Sincerely,<br><br>"; $endorserTxt .= "Saragur M. Srinidhi, PhD<br><br>"; $endorserTxt .= "President<br>"; $endorserTxt .= "Advanced Computing and Communications Society (ACCS)<br>"; $endorserTxt .= "Gate No. 2, Sir C. V. Raman Avenue<br>"; $endorserTxt .= "Indian Institute Science, Bangalore 560012<br><br>"; $endorserTxt .= "Telefax: +91 80 2360 7142<br>"; $endorserTxt .= "Mobile: +91 98450 67476<br>"; $endorserTxt .= "Email: <a href='mailto:ssrinidhi@accsindia.org'>ssrinidhi@accsindia.org</a><br>"; try { $mail = new PHPMailer(true); $mail->isSMTP(); $mail->Host = 'smtp.office365.com'; $mail->SMTPAuth = true; $mail->Username = 'president@accsindia.org'; $mail->Password = 'Xaf55215'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->isHTML(true); $mail->setFrom('president@accsindia.org', 'ACCS Awards'); $mail->addAddress($endorserEmail2, $endorserFirstName2 . ' ' . $endorserLastName2); $mail->addBCC('awards@accsindia.org', 'ACCS Awards'); $mail->Subject = 'Your recommendation is requested for the ACCS Foundation Award 2020'; $mail->Body = $endorserTxt; $mail->send(); $mail->clearAllRecipients(); } catch (Exception $e) { } // Mail to Endorser 3 $endorseData = "$nomineeId|$endorserId3"; $endorseData = simpleEncDec($endorseData); $endorseUrl = "https://award.accsindia.org/endorse.php?key=$endorseData"; $endorserTxt = "Dear $endorserSalutation3 $endorserFirstName3 $endorserLastName3,<br><br>"; $endorserTxt .= "$nomineeSalutation $nomineeFirstName $nomineeLastName has been nominated for the ACCS Foundation Award 2020. $gUserName, the Nominator, requests you to endorse the nomination.<br><br>"; $endorserTxt .= "We ask you to complete the brief online recommendation form by accessing the link below<br>"; $endorserTxt .= "<a href='$endorseUrl'>$endorseUrl</a><br><br>"; $endorserTxt .= "The link will allow you to write a personalized recommendation OR/AND upload your recommendation on your letterhead.<br><br>"; $endorserTxt .= "Should you have questions or experience any difficulties please reply to this email.<br><br>"; $endorserTxt .= "We look forward to receiving your recommendation.<br><br>"; $endorserTxt .= "Sincerely,<br><br>"; $endorserTxt .= "Saragur M. Srinidhi, PhD<br><br>"; $endorserTxt .= "President<br>"; $endorserTxt .= "Advanced Computing and Communications Society (ACCS)<br>"; $endorserTxt .= "Gate No. 2, Sir C. V. Raman Avenue<br>"; $endorserTxt .= "Indian Institute Science, Bangalore 560012<br><br>"; $endorserTxt .= "Telefax: +91 80 2360 7142<br>"; $endorserTxt .= "Mobile: +91 98450 67476<br>"; $endorserTxt .= "Email: <a href='mailto:ssrinidhi@accsindia.org'>ssrinidhi@accsindia.org</a><br>"; try { $mail = new PHPMailer(true); $mail->isSMTP(); $mail->Host = 'smtp.office365.com'; $mail->SMTPAuth = true; $mail->Username = 'president@accsindia.org'; $mail->Password = 'Xaf55215'; $mail->SMTPSecure = 'tls'; $mail->Port = 587; $mail->isHTML(true); $mail->setFrom('president@accsindia.org', 'ACCS Awards'); $mail->addAddress($endorserEmail3, $endorserFirstName3 . ' ' . $endorserLastName3); $mail->addBCC('awards@accsindia.org', 'ACCS Awards'); $mail->Subject = 'Your recommendation is requested for the ACCS Foundation Award 2020'; $mail->Body = $endorserTxt; $mail->send(); $mail->clearAllRecipients(); } catch (Exception $e) { } } echo 'OK'; } else { echo ''; }