Go Back

Real Estate Portal version 3.0 - description of the configuration file


Posted on: June 5, 2019
Category: Real Estate Portal

You could find in the document more detailed explanations for the different settings in the main configuration file for Real Estate Portal. The configuration file is located in the root folder of Real Estate Portal and it's called /config.php 
This file can't be modified directly from the back office (for security reasons). You need to modify it with direct file access to your installation folder, either by using ftp or using the File Manager in your hosting package control panel.

//THE DOMAIN NAME USED FOR THE WEBSITE
$DOMAIN_NAME="domain.com";

You need to setup in DOMAIN_NAME your current domain name. If you have installed the product in a sub folder on your website, you need to set as value of DOMAIN_NAME domain.com/folder.


//MYSQL DATABASE ACCESS SETTINGS
$DBHost="localhost";
$DBUser="";
$DBPass="";
$DBName="realestate_new20";
$Dbprefix="websiteadmin_";

The mysql access settings are set during the setup. If you want to move your database to another server or use different access settings for it, you need to modify this section of the configuration file and set the correct values.

//THE CURRENCY SYMBOL SHOWN ON THE WEBSITE
$CURRENCY_SYMBOL="$";

Using this setting, you could modify the currency sign displayed on the website. So you need to modify it if you would like to use another currency such as euro or British pounds.

//IF PAYPAL IS ACCEPTED - POSSIBLE VALUES true OR false
$ACCEPT_PAYPAL = true;

You need to set ACCEPT_PAYPAL to true if you would like to accept paypal payments on your website. If set to true you need also to make sure that you have set your paypal accout in PAYPAL_ACCOUNT.

//THE CURRENCY CODE WHICH WILL BE USED FOR PAYPAL PAYMENTS
//SOME OF THE AVAILABLE OPTIONS ARE: USD EUR GBP ...
$PAYPAL_CURRENCY_CODE="USD";

//THE PRIMARY PAYPAL ACCOUNT USED FOR ACCEPTING PAYMENTS FROM PAYPAL
$PAYPAL_ACCOUNT="paypal@paypal.com";

//IF PAYPAL IS ACCEPTED - POSSIBLE VALUES true OR false
$ACCEPT_2CHECKOUT = false;

You may use these settings if you would like to accept 2checkout on your website. The 2checkout SID is you seller id that you could see on your 2checkout admin interface.

//2CHECKOUT SID
$_2CHECKOUT_SID = "";

//IF CHECKS ARE ACCEPTED - POSSIBLE VALUES true OR false
$ACCEPT_CHECK = true;

If set to true, the users will be able to pay for the services on your website also by sending cheques. Please note that you need to enter in CHEQUE_ADDRESS the cheque address exactly as you wish that it appear on the website � you need to use directly html code (for example <br> instead of the character for new line etc.)

//ADDRESS TO WHICH THE CHECKS WHOULS BE SENT
$CHEQUE_ADDRESS="[cheque address goes here]";

//IF BANK WIRE TRANSFERS ARE ACCEPTED OR NOT - POSSIBLE VALUES true OR false
$ACCEPT_BANK_WIRE_TRANSFER = false;

You could use this option, you could receive bank wire transfer payments from your clients. BANK_WIRE_TRANSFER_INFO should contain your full back account details.

//IF BANK WIRE TRANSFERS ARE ACCEPTED YOU SHOULD PLACE THE BANK
//ACCOUNT DETAILS HERE, IN THE FORMAT YOU WOULD LIKE THE USERS TO SEE IT
$BANK_WIRE_TRANSFER_INFO="";

//KEEP THIS TO FALSE
$SYSTEM_DEBUG_MODE = false;

If set to true, the mysql errors will be shown on the website. We highly recommend to keep this value always to false unless you would like to debug your website.

//EU or US, if US enables ZIP search
$SITE_FORMAT = "US";
If set to EU, the distance search based on US ZIP codes will be disabled.

$MAX_NUMBER_IMAGES = 9;

You need to set in MAX_NUMBER_IMAGES the maximum allowed number of images for the real estate agents ads. The maximum number of images for the private sellers can be set individually for every package (depending on the price of the package).


//IF IS SET TO TRUE THE IMAGES WILL BE STORED IN THE MAIN DATABASE
$IMAGES_IN_DB = true;

Please note that keeping the images in the database can slow down the performance on your website that's why it's recommended that you keep them in a local folder.


//APPLIES IF IMAGES ARE STORED IN A LOCAL FOLDER
$UPLOAD_DIR = "/home/images/";

You need to set in UPLOAD_DIR the path on your server for the /uploaded_images folder. Please note that the value coming by default is just an example and you have to set the correct value for your hosting package. Additionally you need to set also write permissions for this folder otherwise the php file upload will fail.

//THE MAXIMUM ALLOWED IMAGE SIZE FOR UPLOAD
$MAX_IMAGE_SIZE = 1000000;

The maximum size of an image that the users will be able to upload. If un user tries to upload an image with a bigger size, the upload will file. Please note that this is also limited globally by php � for maximum amount of data that can be posted from a web form and also maximum size of a file that can be uploaded.

//ACCEPTED IMAGE TYPES
$image_types = Array 
(
array("image/jpeg","jpg"),
array("image/pjpeg","jpg"),
array("image/bmp","bmp"),
array("image/gif","gif"),
array("image/x-png","png")
);

The different image formats accepted on the website.    

$USE_GD= false;

$ADDITIONAL_IMAGES_COLUMNS_PER_LINE = 8;

The number of columns in which will be displayed the additional images for a selected property.


// YOU CAN MANAGE FROM THIS SECTION THE EMAIL NOTIFICATIONS
// SENT TO THE USERS WHEN THEY SIGNUP OR POST ADS ON THE SITE
//EMAIL WHICH WILL APPEAR AS SENDER OF THE MESSAGE
//PLEASE NOTE THAT THIS SHOULD BE A VALID EMAIL OTHERWISE AN ECXEPTION
//WILL BE THROWN AT THE MOMENT OF SENDING THE EMAIL
$EMAIL_FROM="info@domain.com";

//THE SENDER NAME
$NAME_FROM="YOUR NAME";

$CONTACT_EMAIL_SUBJECT="Real Estate Portal message";

//IF TO SEND WELCOME MESSAGES TO NEW USERS OR NOTE
$SEND_WELCOME_MESSAGES = false;

//PRIVATE SELLERS MESSAGES SUBJECT AND MESSAGE BODY
$PRIVATE_SELLER_SUBJECT = "seller subject";
$PRIVATE_SELLER_MESSAGE = "seller message";

//AGENT MESSAGES SUBJECT AND MESSAGE BODY
$AGENT_SIGNUP_SUBJECT = "agent subject";
$AGENT_SIGNUP_MESSAGE = "agent message";

//AFFILIATE MESSAGES SUBJECT AND MESSAGE BODY
$AFFILIATE_SIGNUP_SUBJECT = "affiliate subject";
$AFFILIATE_SIGNUP_MESSAGE = "affiliate message";

$SEND_EMAIL_NOTIFICATIONS = true;
$NEW_PROPERTY_EMAIL_ALERT_SUBJECT = "New property listed";
$NEW_PROPERTY_EMAIL_ALERT_MESSAGE = "New property meeting your search criteria was listed. Please click on the following link: [LINK]";

The variables above may be used to enable and also set the text and subject of some of the email notifications.

//USE SECURITY IMAGES IN ORDER TO PRVENT SPAMMING
//REQUIRES GD IN ORDER TO RUN
$USE_SECURITY_IMAGES = false;

If set to true, captcha images will be generated to prevent spaming. If you don't have the GD library on your hosting package, please keep to false.


//THE ADMIN TEMPLATE
$ADMIN_TEMPLATE_ID=13;

The id of the template used for the private sellers and agents personal administration spaces.

//TOTAL NUMBER OF RESULTS PER PAGE
$RESULTS_PER_PAGE = 10;

This is the number of results displayed on the front site when making searches.


//SET TO TRUE IF THE WEBSITE IS FREE
$FREE_WEBSITE = false;

You need to set this value to true if you would like to run an entirely free website � in such a case the users will not be asked for payments when they post their ads.

//PLEASE SPECIFY THE NUMBER OF DAYS AFTER WHICH THE ADS WILL EXPIRE
$ADS_EXPIRE_AFTER = 10; 

You need to set in ADS_EXPIRE_AFTER the number of days in which the ads on the website will expire. After that the private sellers or real estate agents will be able to renew them.

//PLEASE DO NOT EDIT THIS FIELD UNLESS YOU WOULD LIKE TO SPECIFY EXPIRE TIME IN SECONDS
$EXPIRE_TIMESTAMP = $ADS_EXPIRE_AFTER * 86400;

You don't need to edit this value unless you want to set an expire time in seconds for the real estate ads on the front site.

//THE PHP DATE FORMATTING
$PHP_DATE_FORMAT="d/m h:iA";

You can set in PHP_DATE_FORMAT the php date forma string.


//SET TO TRUE IF THE WEBSITE IS MULTILANGUAGE
$WEBSITE_MULTILANGUAGE = false;

Please keep this value to false if your website doesn't use multiple languages (for optimization purposes).

//SET TO TRUE IF YOU WOULD LIKE TO USE MOD_REWRITE FOR SEO LINKS
$USE_MOD_REWRITE= false;

If set to true the system will use mod_rewrite to generate SEO links on the front site. You need to keep it to false if your current hosting package doesn't support mod_rewrite.


//TOTAL NUMBER OF RESULTS PER PAGE
$RESULTS_PER_PAGE = 10;

You can use this variable to modify the number of results showing up in the middle result. 

//AUTHORIZE.NET PAYMENT SETTINGS
$ENABLE_AUTHORIZE_NET_AIM_PAYMENTS = false;
$LOGIN_ID="";
$TRANSACTION_KEY="";

By setting ENABLE_AUTHORIZE_NET_AIM_PAYMENTS to �true�, you can enale the authorize.net payment system on your website and use it to charge your users when posting ads. When enabling authorize.net, you have to set your authorize.net login id and transaction key (the information can be found in your authorize.net admin panel).

//IF SET TO TRUE, WILL ENABLE THE GOOGLE MAPS ON THE WEBSITE
$ENABLE_GOOGLE_MAPS=false;
$GOOGLE_MAPS_KEY="";

Please note that when enabling google maps on your website, you need to set a google maps key � it can be generated on the google maps website sign up page: http://code.google.com/apis/maps/signup.html , by entering your website url.

//THE NUMBER OF DAYS IN WHICH THE FEATURED ADS ON THE WEBSITE WILL EXPIRE
$FEATURED_ADS_EXPIRE=30;

This variable allows you to set the number of days in which the featured ads will expire � when this period is over, the property listing will no more be featured and it will show up in the search result as normal listing. 

//SEPARATOR FOR NUMBER FORMATTING
$PRICE_FORMAT_THOUSANDS_SEP=",";

The thousands separator can be used to format the property prices on the website. For example if you set it to �,�, the numbers will be formated as 1,000,000. You could use any symbol you prefer including point �.� and space � �.

//IF IS SET TO FALSE THE ZIP FIELD WILL BE HIDDEN
$ASK_FOR_ZIP = true;
//IF IS SET TO TRUE, THE US ZIP RADIUS SEARCH FUNCTIONALITY WILL BE ENABLED
$ENABLE_ZIP_SEARCH= true;

These variables allow to control if the ZIP field will be visible on the website and if the ZIP distance search will be enabled. For countries in which ZIP codes aren't used, both variables can be set to false.

/IF SET TO FALSE, WILL DISABLE THE VIDEO UPLOAD FUNCTIONALITY ON THE WEBSITE
$ALLOW_VIDEO = true;

If you set the variable to false, this will disable the video upload functionality on the website. You may consider disabling the video upload feature if your hosting package has limited disk space since allowing videos upload could require significantly more space.

//VIDEO FILE UPLOAD SETTINGS
$MAX_FILE_SIZE = 2000000;
$USE_FFMPEG=false; 
$file_types = Array 
(
array("video/x-ms-wmv","wmv"),
array("video/mpeg","mpg"),
array("video/x-msvideo","avi"),
array("video/avi","avi")
);
$AJAX_LOADING=false;

These variables allow to control the video upload and the allowed video files and maximum video file size.

//IF YOU ENTER A VALUE, THIS ACCESS TO THE ADMIN PANEL WILL BE RESTRICTED TO THESE IP ADDRESSES ONLY
//YOU CAN ENTER A LIST, FOR EXAMPLE "77.100.55.14,67.34.98.2,105.45.67.125"
$AUTHORIZED_IPS_ADMIN_PANEL="";

Allows you to specify a list of authorized ips (for example: 77.100.55.14,67.34.98.2,105.45.67.125). After that the access to the admin panel will be limited to these ip addresses only, which can be used as an additional security measure and protection of the admin panel from unauthorized access.




Related Articles


Version 3 installation instructions and manual (Real Estate Portal)
Updated list of the Real Estate Portal v5 admin panel features

Advertisements


Ready-made web systems to help you achieve success with your online business ...