Jump to content

Bid and Time of delete that


Blu-Express VA

Recommended Posts

Hi,

i know that there is a file for set a days when the system will to reset the Bid flights not flew.

But where is a file?

:D

Sorry for the question ..

Thnx

Check to see if the below is in your local.config.php file. If not, put it there.


# Whether to close any bids after a certain amount of time
Config::Set('CLOSE_BIDS_AFTER_EXPIRE', false);
Config::Set('BID_EXPIRE_TIME', '48'); # How many hours to hold bids for

Link to comment
Share on other sites

Check to see if the below is in your local.config.php file. If not, put it there.


# Whether to close any bids after a certain amount of time
Config::Set('CLOSE_BIDS_AFTER_EXPIRE', false);
Config::Set('BID_EXPIRE_TIME', '48'); # How many hours to hold bids for

There isn't this is the local.config

<?php

/**
* This is the phpVMS Main Configuration File
*
* This file won't be modified/touched by future versions
* of phpVMS, you can change your settings here
* 
* There may also be additional settings in app.config.php
* To change it, copy the line into this file here, for the
* settings to take effect
*
*/
define('DBASE_USER', 'bluepan1_davide');
define('DBASE_PASS', '********');
define('DBASE_NAME', 'bluepan1_home');
define('DBASE_SERVER', 'localhost');
define('DBASE_TYPE', 'mysql');

define('TABLE_PREFIX', 'phpvms_');

define('SITE_URL', 'http://www.bluepanoramava.com');

# Page encoding options
Config::Set('PAGE_ENCODING', 'ISO-8859-1');

# Maintenance mode - this disables the site to non-admins
Config::Set('MAINTENANCE_MODE', false);
Config::Set('MAINTENANCE_MESSAGE', 'We are currently down for maintenance, please check back soon.');

# See more details about these in the docs
Config::Set('PAGE_EXT', '.htm');	# .htm is fine. You can still run PHP
Config::Set('PILOTID_OFFSET', 0);	# What # to start pilot ID's from
Config::Set('PILOTID_LENGTH', 4);	# Length of the Pilot ID
Config::Set('UNITS', 'nm');			# Your units: nm, mi or km
Config::Set('LOAD_FACTOR', '82');	# %age load factor 
Config::Set('CARGO_UNITS', 'lbs');

# After how long to mark a pilot inactive, in days
Config::Set('PILOT_AUTO_RETIRE', true);
Config::Set('PILOT_INACTIVE_TIME', 30);

# Automatically confirm pilots?
Config::Set('PILOT_AUTO_CONFIRM', false);

# Automatically calculate ranks?
Config::Set('RANKS_AUTOCALCULATE', true);

# For how many hours a pilot can edit their submitted PIREP (custom fields only)
Config::Set('PIREP_CUSTOM_FIELD_EDIT', '48');

# If someone places a bid, whether to disable that or not
Config::Set('DISABLE_SCHED_ON_BID', true);
Config::Set('DISABLE_BIDS_ON_BID', false);

# If you want to count transfer hours in rank calculations
Config::Set('TRANSFER_HOURS_IN_RANKS', true);

# The StatsData::UserOnline() function - how many minutes to check
Config::Set('USERS_ONLINE_TIME', 2);

# Google Map Options
Config::Set('MAP_WIDTH', '600px');
Config::Set('MAP_HEIGHT', '600px');
# Valid types are G_NORMAL_MAP, G_SATELLITE_MAP, G_HYBRID_MAP, G_PHYSICAL_MAP
Config::Set('MAP_TYPE', 'G_PHYSICAL_MAP');
Config::Set('MAP_LINE_COLOR', '#ff0000');
Config::Set('MAP_CENTER_LAT', '42.16340342422401');
Config::Set('MAP_CENTER_LNG', '12.83203125');
Config::Set('MAP_ZOOM_LEVEL', 5);

# ACARS options
#  Minutes, flights to show on the ACARS
#  Default is 2 minutes (2 minutes)
Config::Set('ACARS_LIVE_TIME', 2); 
Config::Set('ACARS_DEBUG', false);


/*
 This is the unit of money. For non-dollars, use :
Dollars ($), enter "{:content:}quot;
Euro (€), enter "€"
Yen (Â¥), enter "¥"
Pounds (£), enter "£"

 For example, to set EUROS:
Config::Set('MONEY_UNIT', '€');
*/

Config::Set('MONEY_UNIT', '€');

# FSPassengers Settings
# Units settings
Config::Set('WeightUnit', '1');   # 0=Kg 1=lbs
Config::Set('DistanceUnit', '2');   # 0=KM 1= Miles 2=NMiles
Config::Set('SpeedUnit', '1');   # 0=Km/H 1=Kts
Config::Set('AltUnit', '1');   # 0=Meter 1=Feet 
Config::Set('LiquidUnit', '2');   # 0=liter 1=gal 2=kg 3=lbs
Config::Set('WelcomeMessage', 'phpVMS/FSPAX ACARS'); # Welcome Message

/* FSFK Settings
Your FTP Server, and path to the lib/images folder (from where the FTP connects from), IE
ftp://phpvms.net/phpvms/lib/fsfk or ftp://phpvms.net/public_html/phpvms/lib/fsfk

You want the path from when you connect to the FTP down to where the /lib/fsfk folder is 
*/
Config::Set('FSFK_FTP_SERVER', '');
Config::Set('FSFK_FTP_PORT', '21');
Config::Set('FSFK_FTP_USER', '');
Config::Set('FSFK_FTP_PASS', '');
Config::Set('FSFK_FTP_PASSIVE_MODE', 'TRUE');
Config::Set('FSFK_IMAGE_PATH', '/lib/fsfk'); // web path from SITE_ROOT

# Options for the signature that's generated 
Config::Set('SIGNATURE_TEXT_COLOR', '#000');
Config::Set('SIGNATURE_SHOW_EARNINGS', true);
Config::Set('SIGNATURE_SHOW_RANK_IMAGE', true);
Config::Set('SIGNATURE_SHOW_COPYRIGHT', true);

# Avatar information
Config::Set('AVATAR_FILE_SIZE', 50000); 
Config::Set('AVATAR_MAX_WIDTH', 80);
Config::Set('AVATAR_MAX_HEIGHT', 80);

# Email Settings
Config::Set('EMAIL_FROM_NAME', 'Blue Panorama VA');
Config::Set('EMAIL_FROM_ADDRESS', 'dir@bluepanoramava.com');

Config::Set('EMAIL_USE_SMTP', false);
# Add multiple SMTP servers by separating them with ;
Config::Set('EMAIL_SMTP_SERVERS', '');
Config::Set('EMAIL_SMTP_PORT', '25');
Config::Set('EMAIL_SMTP_USE_AUTH', false);
Config::Set('EMAIL_SMTP_USER', '');
Config::Set('EMAIL_SMTP_PASS', '');

# Debug mode is off by default
Config::Set('DEBUG_MODE', false);
Config::Set('ERROR_LEVEL', E_ALL ^ E_NOTICE);

Config::Set('SESSION_LOGIN_TIME', (60*60*24*30)); # Expire after 30 days, in seconds

/* Days of the Week
The compacted view, and the full text
DON'T CHANGE THE ORDER!! And yes, Sunday is in there twice
*/
Config::Set('DAYS_COMPACT',  array('Su', 'M', 'T', 'W', 'Th', 'F', 'S', 'Su'));

Config::Set('DAYS_LONG', 
	array('Sunday',
	  	'Monday',
	  	'Tuesday',
	  	'Wednesday',
	  	'Thursday',
	  	'Friday',
	  	'Saturday',
	  	'Sunday'
	)
);
Config::Set('VACENTRAL_ENABLED', true);
Config::Set('VACENTRAL_API_SERVER', 'http://api.phpvms.net');
Config::Set('VACENTRAL_API_KEY', 'e32123ea8ccd3eaf00a198b1ecf05ff2');

Edited by joeri
security
Link to comment
Share on other sites

Yeah it's in the app.config.php. All you have to do is copy this into local.config.php:

# Whether to close any bids after a certain amount of time
Config::Set('CLOSE_BIDS_AFTER_EXPIRE', false);
Config::Set('BID_EXPIRE_TIME', '48'); # How many hours to hold bids for

It's like copying files from core/templates to lib/skins/yourskin :)

Link to comment
Share on other sites

Not Work -.-

This is my file now:

<?php

/**
* This is the phpVMS Main Configuration File
*
* This file won't be modified/touched by future versions
* of phpVMS, you can change your settings here
* 
* There may also be additional settings in app.config.php
* To change it, copy the line into this file here, for the
* settings to take effect
*
*/
define('DBASE_USER', 'bluepan1_davide');
define('DBASE_PASS', '******************');
define('DBASE_NAME', 'bluepan1_home');
define('DBASE_SERVER', 'localhost');
define('DBASE_TYPE', 'mysql');

define('TABLE_PREFIX', 'phpvms_');

define('SITE_URL', 'http://www.bluepanoramava.com');

# Page encoding options
Config::Set('PAGE_ENCODING', 'ISO-8859-1');

# Maintenance mode - this disables the site to non-admins
Config::Set('MAINTENANCE_MODE', false);
Config::Set('MAINTENANCE_MESSAGE', 'We are currently down for maintenance, please check back soon.');

# See more details about these in the docs
Config::Set('PAGE_EXT', '.htm');	# .htm is fine. You can still run PHP
Config::Set('PILOTID_OFFSET', 0);	# What # to start pilot ID's from
Config::Set('PILOTID_LENGTH', 4);	# Length of the Pilot ID
Config::Set('UNITS', 'nm');			# Your units: nm, mi or km
Config::Set('LOAD_FACTOR', '82');	# %age load factor 
Config::Set('CARGO_UNITS', 'lbs');

# After how long to mark a pilot inactive, in days
Config::Set('PILOT_AUTO_RETIRE', true);
Config::Set('PILOT_INACTIVE_TIME', 30);

# Automatically confirm pilots?
Config::Set('PILOT_AUTO_CONFIRM', false);

# Automatically calculate ranks?
Config::Set('RANKS_AUTOCALCULATE', true);

# For how many hours a pilot can edit their submitted PIREP (custom fields only)
Config::Set('PIREP_CUSTOM_FIELD_EDIT', '48');

# If someone places a bid, whether to disable that or not
Config::Set('DISABLE_SCHED_ON_BID', true);
Config::Set('DISABLE_BIDS_ON_BID', true);

# If you want to count transfer hours in rank calculations
Config::Set('TRANSFER_HOURS_IN_RANKS', true);

# The StatsData::UserOnline() function - how many minutes to check
Config::Set('USERS_ONLINE_TIME', 2);

# Google Map Options
Config::Set('MAP_WIDTH', '600px');
Config::Set('MAP_HEIGHT', '600px');
# Valid types are G_NORMAL_MAP, G_SATELLITE_MAP, G_HYBRID_MAP, G_PHYSICAL_MAP
Config::Set('MAP_TYPE', 'G_PHYSICAL_MAP');
Config::Set('MAP_LINE_COLOR', '#ff0000');
Config::Set('MAP_CENTER_LAT', '42.16340342422401');
Config::Set('MAP_CENTER_LNG', '12.83203125');
Config::Set('MAP_ZOOM_LEVEL', 5);

# ACARS options
#  Minutes, flights to show on the ACARS
#  Default is 2 minutes (2 minutes)
Config::Set('ACARS_LIVE_TIME', 1); 
Config::Set('ACARS_DEBUG', false);


/*
 This is the unit of money. For non-dollars, use :
Dollars ($), enter "{:content:}quot;
Euro (€), enter "€"
Yen (Â¥), enter "¥"
Pounds (£), enter "£"

 For example, to set EUROS:
Config::Set('MONEY_UNIT', '€');
*/

Config::Set('MONEY_UNIT', '€');

# FSPassengers Settings
# Units settings
Config::Set('WeightUnit', '1');   # 0=Kg 1=lbs
Config::Set('DistanceUnit', '2');   # 0=KM 1= Miles 2=NMiles
Config::Set('SpeedUnit', '1');   # 0=Km/H 1=Kts
Config::Set('AltUnit', '1');   # 0=Meter 1=Feet 
Config::Set('LiquidUnit', '2');   # 0=liter 1=gal 2=kg 3=lbs
Config::Set('WelcomeMessage', 'phpVMS/FSPAX ACARS'); # Welcome Message

/* FSFK Settings
Your FTP Server, and path to the lib/images folder (from where the FTP connects from), IE
ftp://phpvms.net/phpvms/lib/fsfk or ftp://phpvms.net/public_html/phpvms/lib/fsfk

You want the path from when you connect to the FTP down to where the /lib/fsfk folder is 
*/
Config::Set('FSFK_FTP_SERVER', '');
Config::Set('FSFK_FTP_PORT', '21');
Config::Set('FSFK_FTP_USER', '');
Config::Set('FSFK_FTP_PASS', '');
Config::Set('FSFK_FTP_PASSIVE_MODE', 'TRUE');
Config::Set('FSFK_IMAGE_PATH', '/lib/fsfk'); // web path from SITE_ROOT

# Options for the signature that's generated 
Config::Set('SIGNATURE_TEXT_COLOR', '#000');
Config::Set('SIGNATURE_SHOW_EARNINGS', true);
Config::Set('SIGNATURE_SHOW_RANK_IMAGE', true);
Config::Set('SIGNATURE_SHOW_COPYRIGHT', true);

# Avatar information
Config::Set('AVATAR_FILE_SIZE', 50000); 
Config::Set('AVATAR_MAX_WIDTH', 80);
Config::Set('AVATAR_MAX_HEIGHT', 80);

# Email Settings
Config::Set('EMAIL_FROM_NAME', 'Blue Panorama VA');
Config::Set('EMAIL_FROM_ADDRESS', 'dir@bluepanoramava.com');

Config::Set('EMAIL_USE_SMTP', false);
# Add multiple SMTP servers by separating them with ;
Config::Set('EMAIL_SMTP_SERVERS', '');
Config::Set('EMAIL_SMTP_PORT', '25');
Config::Set('EMAIL_SMTP_USE_AUTH', false);
Config::Set('EMAIL_SMTP_USER', '');
Config::Set('EMAIL_SMTP_PASS', '');

# Debug mode is off by default
Config::Set('DEBUG_MODE', false);
Config::Set('ERROR_LEVEL', E_ALL ^ E_NOTICE);

Config::Set('SESSION_LOGIN_TIME', (60*60*24*30)); # Expire after 30 days, in seconds

/* Days of the Week
The compacted view, and the full text
DON'T CHANGE THE ORDER!! And yes, Sunday is in there twice
*/
Config::Set('DAYS_COMPACT',  array('Su', 'M', 'T', 'W', 'Th', 'F', 'S', 'Su'));

Config::Set('DAYS_LONG', 
	array('Sunday',
	  	'Monday',
	  	'Tuesday',
	  	'Wednesday',
	  	'Thursday',
	  	'Friday',
	  	'Saturday',
	  	'Sunday'
	)
);
Config::Set('VACENTRAL_ENABLED', true);
Config::Set('VACENTRAL_API_SERVER', 'http://api.phpvms.net');
Config::Set('VACENTRAL_API_KEY', 'e32123ea8ccd3eaf00a198b1ecf05ff2');

# Whether to close any bids after a certain amount of time
Config::Set('CLOSE_BIDS_AFTER_EXPIRE', true);
Config::Set('BID_EXPIRE_TIME', '48'); # How many hours to hold bids for

Edited by joeri
security
Link to comment
Share on other sites

  • 1 month later...
  • 5 years later...
  • Moderators
9 hours ago, servetas said:

Are you sure about phpVMS 5.3? There are 2.1 and 5.5..

Open your admin/maintenance.php and check line 46 (approximately). It should include something like this:


if(Config::Get('CLOSE_BIDS_AFTER_EXPIRE') === true) {

Does it?

5.3 (version of php)= 2.1 (version of phpvms):P

regarding admin/maintenance.php 

Yes is it but still doesn't work

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...