09 Sep 2010 
Support Center » Knowledgebase » The config.php variables
 The config.php variables
Solution
In order to enable/disable certain features you will have to modify the appropriate variables in the config.php file, located in the /includes folder:


define("_AREAMANAGEMENT","1");
If the variable is set on 1, on the Add / Modify property form will be used dropdowns for the location fields: country, region, town. the dropdowns will be populated with values defined in the admin area >> Settings >> Area management

$Config["numberofproptocompare"] = 3;
The variable allows you to define the maximum number of properties that can be compared on the frontend


$Config["numberofmonthsincalendar"]=4;
The variable allows you to define the number of months to be displayed for the avaialability calendar on the property details page.


$Config["compareprop"]=1;
If the variable is set to 1, the frontend "Compare" function will be activated


$Config["usepma"] = 1;
If the variable is set to 1, on the admin area will be used the new property management are page (v60)


Variables used for the remote / local backup cronjob

- $Config['remoteftp']=''; - host


- $Config['remoteuser']=''; - username


- $Config['remotepass']=''; - parola


- $Config['remotedir']=''; - the directory where the backup is saved (i.e : /home/user/save/)

- $Config['localdir']=''; - the local directory where the backup is saved (i.e. : /public_html/online-rent-script/backup/)


IMPORTANT: The directories must be defined before running the cronjob!!


- $Config['cronsave']=0; // 0 - disabled , 1 - local , 2 - remote


The cronjob backup can be:

- 0 - deactivated;

- 1 - the backup is saved on the same server;

- 2 - the backup is saved on another server (remote);

- $Config['crondays']=3; // 1 - once a day , 7 - once a week , 31 - once a month
This variable allows you to define the number of days within the backup is done.

The backup saving date is updated when the cronjob file is accessed - i.e: if the backup is done today, then he will be done again after 3 days (if the variable is set to 3) even if the cronjob is daily ran.

IMPORTANT: Is is mandatory for the cronjob to run daily (cronjob file: cronjob_site.php located in root)



$Config[showspecialdiscounts]=1;
If this value is 1, the special discounts are displayed on the property description page;

$IMG_HEIGHT = '120';
$IMG_WIDTH = '120';
Accepted height/width of resized image for small pictures "*" not resized; Maximum height/width for small pictures (the ones appearing on the List Properties page);

$IMG_WIDTH_BIG = '400';
$IMG_HEIGHT_BIG = '300';
Accepted height/width of resized image for big pictures "*" not resized; Maximum width for small pictures (the ones appearing on the Property Details page when you click on a property);

$POPUP_HEIGHT=300;
$POPUP_WIDTH=400;

The height/width of popups appearing when clicking on Rental Conditions link or on any of the cutsom booking form fields;

$POPUP_WIDTHSPECIALPRICE = 600;
$POPUP_HEIGHTSPECIALPRICE = 250;

The height/width of popups appearing when clicking on the question mark near the Special days/weeks low/high price (booking form in visitor area);

$POPUP_WIDTHRESERVATION=850;
$POPUP_HEIGHTRESERVATION=350;

Popup width/height when CONFIGPOPUPRESERVATION is activated (booking calendar appears in a popup window and the property details page remains opened);


$use_imagecreatetruecolor = true;
$use_imagecopyresampled = true;

These flags enble ImageCreateTrueColor(); ImageCopyResampled();
Activation/dezactivation of the imagecreatetruecolor function which can be used when GD version > 2.0 (true for GD > 2.0 and false for GD < 2.0);

$JPG_QUALITY = 80;
Jpeg quality obtained when resizing uploaded images;

define("_INSTALL","1");
Control value in order to check if the script was installed in order to redirect or not toward the install folder when accessing the script; (0 - no / 1 - yes);

define("_PLUSDAYSONWEEKRESERVATION","1");
Offset used when defining the week's period - you can add a day to the last day of week in the booking calendar;this is only for the display;
For example it was: 08th - 14th # 15th - 21nd # 22nd - 29th >> And now is: 08th - 15th # 15th - 22nd # 22nd - 29th

define("_COMBINATIONADAYSCONFIG","1");
If this value is 1 then the [Combined days] menu appears in the admin area for the properties with the booking per days type;

define("_PAYMENTSHOWONVISITAREA","1");
If this value is 1, the the payment link will appear at the end of a reservation;

define("_APROVEBOOKINGPAYPAL","0");
If this value is 1, the Paypal processor returns to the script once the payment is confirmed and approves the reservation;

define("_DEZACTIVATEMENUUSER","0");
If this value is 1, then the user menu in frontend is deactivated;

define("_CONFIG_PAYLINK","0");
If this value is set to 1, then the payment link will appear in the email sent to the client, when the admin or the user confirms a reservation( only for the PayPal);

define("_CONFIG_WEEKSHOWPRICE","1");
If the value is 1, the week price and number are displayed on the booking calendar - applies to the weekly calendar;

define("_CONFIG_NOWEEKSHOWPRICE","1");
If the value is 1, the week price and number aren't displayed on the booking calendar - applies to weekly calendar;

define("_CONFIG_TAKEADEPOZIT","0");
If this value is 1, at the end of reservation a deposit from the total price of the reservation will be taken (the deposit value is set in the admin area);

define("_CONFIG_TAKEADEPOZIT_DAYS","10");
If the days number till the first reserved day is smaller than this value, then the deposit will be 100%;

define("_CONFIGPOPUPRESERVATION","0");
If this value is 1, then the booking window will appear in a popup;

define("_SENDEMAILADMINNEWPROPERTYCONFIG","0");
If this value is 1, an email is sent to the admin when a new property is added;

define("_CONFIGURE_POPUP_BOOKING","0");
If this value is 1, the booking is displayed in a popup;

define("_CONFIGURE_POPUP_WIDTH","1000");
define("_CONFIGURE_POPUP_HEIGHT","550");

Popup height/width;

$Config['separator'] = ", ";
The separator used in admin area for collect email address;

$Config['tooltips']=1;
If this value is 1, tooltips are displayed in the settings menu, admin area;

$Config['minamountofdaystobook']=1;
When not defined in the admin area, this variable is used for the booking days calendar as minimum amount of days to book;

$Config['currencydirection']="Left";
Show currency left/right;

$Config['currencysignfloat']=",";
Decimal sign for currency;

$Config['currencysignhundreds']=".";
Thousand sign for currency;

$Config['bookingacceptrentalconditions']=1;
If this value is 1, the booking can be done only if the rental conditions are accepted (0 = deactivated , 1 activated);

define("_APROVEBOOKINGPAYPAL","0");
If this value is 1, the Paypal processor returns to the script once the payment is confirmed and approves the reservation

$slave=false;
Define the script as a slave script;

define("_CONFIG_DAYSSHOWPRICE","1");
If this value is 1, the price for each day is displayed on the booking calendar in frontend;

define("_REALESTATE_AREA",1);
If this value is 1, the "Real Estate" option is activate and a new link is displayed in the top menu: "Real Estate properties";

$Config["show_calendar_on_description_page"]=1;
If this value is 1, an availability calendar is displayed on the description page;

$Config["insert_rental_conditions_in_mail"]=1;
If this value is 1, rental conditions are displayed in the email sent on reservation;

define("_USER_HAS_TO_REGISTER_IN_ORDER_TO_BOOK",0);
If this value is 1, the client can make a reservation only from his account ("Membership" -> "Register");

define("SHOPPING_CART","1");
If this value is 1, the shopping cart is displayed in frontend;

define("SHOPPING_CART_LEFT_POSITION",0);
If this value is 1, the shopping cart is displayed on left position;

define("SHOPPING_CART_TOP_POSITION",0);
If this value is 1, the shopping cart is displayed on top position;

define("_SHOWADMINCOMISIONINUSERAREA",1);
If this value is 1, the admin commision is displayed in the user area;

define("_EMAILTOCARETAKERONBOOKINGAPPROVAL",1);
If this value is 1, an email is send to the caretaker on booking approval;

define("_SENDASKMOREINFORMATIONTOADMIN",0);
If this value is 1, send the ask more information data to the admin;

define("_HIDECLIENTEMAILADDRESS",0);
If this value is 1, hide client email address in the booking emails;

define("_LISTPROPERTIESDISPLAY",2);
Listed properties in frontend, depending on the property type: sale/rent ( 2 - sale and rent using separate links, 1 - for sale , 0 - all);

define("HISTORY",1);
If this value is 1, activate history in admin area;

$Config[use_cms_and_dynamic_menu]=1;
If this value is 1, activate the custom links and the CMS in admin area;

$Config["add_property_old_style"]=0;
If this value is 1, activate in admin the old "Add property";

$Config["use_template_for_booking_form"]=0;
If this value is 1, use the template for the booking form;

define("_CR_WIDTH",800);
define("_CR_HEIGHT",400);

Feedbacks (reviews) popup width/height;

define("_HP_WIDTH",400);
define("_HP_HEIGHT",400);

Holiday packages height/width;

define("_REMINDER_PACKAGES_OFFSET",10);
Number of days used before the link for the "package reminder" is displayed in the admin and user area ( subscription based advertising);


Article Details
Article ID: 85
Created On: 05 Jul 2007 12:49 PM

 This answer was helpful  This answer was not helpful

 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search
 Article Options
Home | Register | Submit a Ticket | Knowledgebase | Troubleshooter | News | Downloads
Language:

Help Desk Software By Kayako SupportSuite v3.10.02