HOW TO upgrade Calendar in ApPHP AdminPanel?

Talk and info about common issues and learn how to do almost anything with ApPHP AdminPanel

Moderator: alexandrleonenko

administrator
Site Admin
Site Admin
Posts: 6003
Joined: Jan 7th, '09, 23:18
Contact:

HOW TO upgrade Calendar in ApPHP AdminPanel?

Postby administrator » Jan 31st, '13, 12:55

Upgrading of Calendar component is a very simple procedure.
To perform it do following:

1. Unzip the new version of calendar.

2. Replace the content of the directory called modules/calendar/ with the content of new version of Calendar script.

3. Open modules/calendar/inc/connection.php file and comment there following line of code:

Code: Select all

require_once('config.inc.php');


4. Open modules/calendar/ajax/handler.ajax.php and add at the top of the file (above the line require_once('../inc/connection.inc.php');)

Code: Select all

require_once('../../../inc/config.inc.php');

session_start();

define('DB_CONNECTION_MODE', 'production');   
define('INSTALLATION_KEY', _INSTALLATION_KEY);
define('DB_PREFIX', _DB_PREFIX);

$config = new Config();
define('DATABASE_HOST', $config->getHost());
define('DATABASE_NAME', $config->getDatabase());
define('DATABASE_USERNAME', $config->getUser());
define('DATABASE_PASSWORD', $config->getPassword());

Return to “ApPHP AdminPanel {HOW TO}”