Server IP : 162.241.126.129 / Your IP : 3.148.115.187 Web Server : Apache System : Linux 162-241-126-129.cprapid.com 4.18.0-477.27.2.el8_8.x86_64 #1 SMP Fri Sep 29 08:21:01 EDT 2023 x86_64 User : rvway5nu4 ( 1018) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/rvway5nu4/www/config/ |
Upload File : |
<?php session_start(); //error_reporting(E_ALL ^ E_NOTICE); //error_reporting(1); //echo '<div style="display:none;" >'; echo "<pre>"; print_r( $_SESSION); echo '</div>'; //set_magic_quotes_runtime(0); date_default_timezone_set('Asia/Kolkata'); //-------------------------------------------------------------- // Global Configuration File //-------------------------------------------------------------- // SOME GUIDELINES: // Make sure that all files/dirs have a valid permissions. // Right permissions should be for dirs 0755 and for files 0644. // Please mention in the below line which dirs/files must have writeable by webserver. // You should also write some description here about dirs/files. // This may be require to other developers who will might have to work on this project. // <MENTION HERE DIRS/FILES NAME WHICH MUST HAVE WRITEABLE BY WEBSERVER> // Host/Server Name $HOST_NAME = $_SERVER['SERVER_NAME']; $DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT']; $ROOT_DIR = $DOCUMENT_ROOT; if($HOST_NAME == "localhost") { if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/'); //define('ABSPATH', 'F:\xampp\htdocs\carivon/'); define( 'SUB_DIR_PROJECT', '/carivon' ); $site_url = 'https://rvway.net/'; $DB_HOST = "localhost"; // Database Host Server $DB_USERNAME = "rvusr_demo"; // Database Username $DB_PASSWORD = "R5VSssC1knyI"; // Password for the Db User $DB_NAME = "rvusr_demo"; // Database name $DB_REPORT_ERROR = false; // To Report Error $DB_PERSISTENT_CONN = false; // If Db Connection to be persistent $MAP_VROOT_PATH = "/carivon"; $MAP_VROOT_FILE_PATH = "/carivon"; $MAP_VROOT_PATH_ONLINE = ""; $MAP_VROOT_FILE_PATH_ONLINE = ""; $MAP_VROOT_HOST = "http://localhost/carivon"; }else { if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/'); //define('ABSPATH', 'F:\xampp\htdocs\carivon/'); define( 'SUB_DIR_PROJECT', '' ); $site_url = 'https://rvway.net/'; $DB_HOST = "localhost"; // Database Host Server $DB_USERNAME = "rvway5nu4_rvusr_demo"; // Database Username $DB_PASSWORD = '*{DgBMXDj*1A'; // Password for the Db User $DB_NAME = "rvway5nu4_rvusr_demo"; // Database name $DB_REPORT_ERROR = false; // To Report Error $DB_PERSISTENT_CONN = false; // If Db Connection to be persistent $MAP_VROOT_PATH = ""; $MAP_VROOT_FILE_PATH = ""; $MAP_VROOT_PATH_LOCAL = ""; $MAP_VROOT_FILE_PATH_LOCAL = ""; $MAP_VROOT_HOST = ""; } define( 'DB_HOST', $DB_HOST ); define( 'DB_USER', $DB_USERNAME ); define( 'DB_PASS', $DB_PASSWORD ); define( 'DB_NAME', $DB_NAME ); define ("DATE_FORMAT", "m/d/Y"); define ("DATETIME_FORMAT", "m/d/Y H:i"); define ("DATE_FORMAT_MYSQL", "Y-m-d"); define ("DATE_FANCY", "jS M, Y"); define ("DATE_TIME_FANCY", "jS M, Y, g:i a"); $VIR_ROOT_PATH = $ROOT_PATH.SUB_DIR_PROJECT; $LIB_DIR = "$VIR_ROOT_PATH/phplib"; define('site_url', $site_url); define('vir_root_path', $VIR_ROOT_PATH); $APPL_NAME = "Caravon"; $SITE_URL = site_url; $SUPPORT_MAIL = 'contactus@caravon.com'; $COMPANY_NAME = 'Caravon'; $statusArray = array('A'=>'Active', 'D'=>'Deactive', 'S'=>'Suspended'); //Application directory Path of the app from Virtual root $SUB_DOMAIN = ""; //Website URL $SITE_URL = "https://$HOST_NAME$MAP_VROOT_PATH"; $DOMAIN_URL = "https://$HOST_NAME$MAP_VROOT_PATH"; //$ADMIN_URL = "http://$HOST_NAME/cms"; //HTML Global Templates Location $TEMPLATE_DIR = "$DOCUMENT_ROOT$MAP_VROOT_PATH/templates"; //////Root $ROOT_DIR = "$DOCUMENT_ROOT$MAP_VROOT_PATH"; //Image Directory from Virtual Root $IMAGES_DIR ="$MAP_VROOT_PATH/images"; $PIC_DIR ="$MAP_VROOT_PATH/pic"; $CASEIMAGE ="$SITE_URL/case_images"; $CASEIMAGEUPLOAD ="$DOCUMENT_ROOT$MAP_VROOT_PATH/case_images"; $HOMEIMAGE ="$SITE_URL/home_images"; $HOMEIMAGEUPLOAD ="$DOCUMENT_ROOT$MAP_VROOT_PATH/home_images"; $FILEUPLOAD ="$DOCUMENT_ROOT$MAP_VROOT_PATH/uploads"; $FILEDOWNLOAD ="$DOCUMENT_ROOT$MAP_VROOT_PATH/downloads"; $IMAGE ="$SITE_URL/banner_images"; $IMAGEUPLOAD ="$DOCUMENT_ROOT$MAP_VROOT_PATH/banner_images"; //CSS Directory from Virtual Root $CSS_DIR = "$DOMAIN_URL/css"; $IMG_DIR = "$DOMAIN_URL/images"; $IMG_DIR_ADMIN = "$DOMAIN_URL/admin/images"; //PHP Global Library Location $LIB_DIR = "$DOCUMENT_ROOT$MAP_VROOT_PATH/phplib"; $JS_DIR = "$DOMAIN_URL/jslib"; //$DOWNLOAD_DIR = "$MAP_VROOT_PATH/download"; $TEMP_DIR = "/tmp"; $APPL_NAME = "DEALWIZARD"; $COMPANY_NAME = ""; $COPYRIGHT_YEAR = date("Y"); $MYTIME = date("n/j/Y/H/i/s"); $ADMIN_LOGOUT = "http://$_SERVER[SERVER_NAME]/admin/logout.php"; $ADMIN_LOGIN = "http://$_SERVER[SERVER_NAME]/admin/controlpanel.php"; $DIR_FS_FILES = $DOCUMENT_ROOT.$MAP_VROOT_PATH.'/userfiles'; //-------------------------------------------------------------- // MAIL SERVER TYPE //-------------------------------------------------------------- $MAIL_SERVER_TYPE = "smtp"; //Value Pool: sendmail, mail, qmail, smtp $USER_IP = "Unknown"; if (isset($_SERVER['REMOTE_ADDR'])) { $USER_IP = $_SERVER['REMOTE_ADDR']; } //echo "hello"; //echo $_SERVER['HTTP_X_FORWARDED_FOR']; if (isset($_SESSION["SESS_v_memberLoggedIn"])) { $SETT_dt_last_logged = $_SESSION["SESS_dt_last_logged"]; $SETT_v_userType_ex = $_SESSION["SESS_v_userType_ex"]; $SETT_v_memberName = $_SESSION["SESS_v_memberName"]; $SETT_v_image = $_SESSION["SESS_v_image"]; } else { $SETT_dt_last_logged = ''; $SETT_v_userType_ex = ''; $SETT_v_memberName = ''; $SETT_v_image = ''; } if(isset($_POST) && (is_array($_POST)) ) { foreach($_POST as $key=>$val){ //echo "$$key = $val <br/>"; $$key = $val; } } global $SITE_URL; ?>