|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/abtechsci/mmc15/HDWRegistrationAndLogin/ |
Upload File : |
<?php
// ********************************************************************
// 1- MYSQL CONNECTION SETTINGS
// ********************************************************************
define ('HDW_MYSQL', false);
define ('HDW_HOST', 'localhost');
define ('HDW_DATABASE', 'formreg');
define ('HDW_USERNAME', 'mmctony');
define ('HDW_PASSWORD', 'abtech321');
define ('HDW_PASS', 'mmc15clemson');
// define ('HDW_PASS', 'mypass');
// ********************************************************************
// 2- ALLOWED FILE EXTENSIONS FOR UPLOADS
// ********************************************************************
$file_ext = array('jpg','gif','png','bmp','doc','pdf','ppt','pps','xls');
// ********************************************************************
// 3- IF YOU WANT TO SEND COPIES OF THE REGISTRATION NOTIFICATION
// TO ANOTHER EMAIL ADDRESS
// ********************************************************************
// These emails will receive a copy of the email,
// set to empty string if you don't want to send some copy.
// Example: define('EMAIL_COPY1','[email protected]');
// Note that the emails has been set to empty string by default (no copies sent).
define('EMAIL_COPY1','[email protected]');
define('EMAIL_COPY2','[email protected]');
// ********************************************************************
// 4- IF YOU WANT TO PUT SEPARATOR LINES INTO THE REGISTRATION
// NOTIFICATION EMAIL TO MAKE IT EASIER TO READ
// ********************************************************************
// this is the content of the line used as separator
$separator_item = '##########################';
// These are the names of the separator fields, you can add any number of them,
// just add new lines with the desired field's name.
// The field must be placed as a hidden field into your form in the place that you
// want to appear the separator line
$separator_field["sample_field1"] = true;
$separator_field["sample_secondfield"] = true;
$separator_field["sample_anotherfield"] = true;
// ********************************************************************
// 5- CONNECTION SETTINGS FOR NON-STANDARD MAIL SERVERS
// ********************************************************************
// If your SMTP server is not the local server, then change it here
define('SMTP_SERVER', 'localhost');
// If your SMTP server requires authentication then set this parameter to true
// and put your username and password here
define('USE_SMTP_AUTHENTICATION', false);
define('SMTP_USERNAME', 'your_username');
define('SMTP_password', 'your_password');
// ********************************************************************
// 6- ENABLE OR DISABLE DATABASE, EMAIL'S ATTACHMENTS AND EXTRA FIELDS
// ********************************************************************
define("SEND_EMAIL_ATTACHMENTS", true);
define("SAVE_DATABASE_FILE", true);
define("INCLUDE_EXTRA_INFO",true);
// ********************************************************************
// 7- TEXT MESSAGES
// ********************************************************************
define('HDW_MESSAGE_USERNAME_REQUIRED', "Please enter the username.");
define('HDW_MESSAGE_PASSWORD_REQUIRED', "Please enter the password.");
define('HDW_MESSAGE_PASSWORD_CONFIRM', "Password and confirmation must coincide. Please retype password and confirmation.");
define('HDW_MESSAGE_EMAIL_REQUIRED', "Please enter a valid email address.");
define('HDW_MESSAGE_USERNAME_USED', "The username is already in use. Please enter a different username.");
define('HDW_MESSAGE_ACTIVATION_FAILED', "INVALID ACTIVATION LINK:: Please be sure to paste the complete link.");
define('HDW_FRL_FAILED_LOGIN',"Login Failed: Invalid username and/or password.");
// ********************************************************************
// 8- AUTOMATIC CONFIGURATION BELOW
// PLEASE DO NOT EDIT THE FOLLOWING LINES
// ********************************************************************
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Pragma: no-cache");
session_start();
error_reporting(7);
define('HDW_VIRTUAL_PATH',"/HDWRegistrationAndLogin/");
define('HDW_FRL_SUCCESSFULL_LOGIN',"OK");
define('HDW_FRL_USERNAME_OK',"OK");
define('HDW_FRL_USERNAME_USED',"USED");
$dc = __FILE__;
if ($dc == '')
$dc = $_SERVER["SCRIPT_FILENAME"];
$dc = str_replace("\\","/", $dc);
$dc = str_replace("//","/", $dc);
$dc = substr($dc,0,strrpos($dc, "/"));
$documentroot = $dc;
define('HDW_DC_ROOT',$documentroot."/saved_forms/");
define('HDW_FLAT_DBNAME',substr(md5($_SERVER["SERVER_NAME"]),0,10));
define('HDW_FLAT_DBNAME_FULL',HDW_DC_ROOT.HDW_FLAT_DBNAME);
define('HDW_FRL_DATA_DB',HDW_DC_ROOT);
define ("HDW_FOLDER_NAME","HDWRegistrationAndLogin/saved_forms");
if (!file_exists(HDW_FRL_DATA_DB))
if (!(mkdir(HDW_FRL_DATA_DB)))
{
echo "Please, set write permissions to the folder <b>".HDW_FOLDER_NAME."</b>.";
exit;
}
?>