how to integrate many application with pluf

2 views
Skip to first unread message

php

unread,
Apr 13, 2011, 7:12:56 AM4/13/11
to Pluf Users
hello,
i have 3 three application ADMIN ,MCMS and MFORUM
IN the path of admin i have write
$path_to_Pluf = '/pluf';
$path_to_Admin = dirname(__FILE__).'/../src';
$path_to_apps1 = dirname(__FILE__).'/var/www/admin-master/src/mcms-2/
src';
$path_to_apps2 = dirname(__FILE__).'/var/www/admin-master/src/mforum/
src';
// $path_to_yourapp = '/path/to/your/app/src';

set_include_path(get_include_path()
.PATH_SEPARATOR.$path_to_Pluf
.PATH_SEPARATOR.$path_to_Admin
// .PATH_SEPARATOR.$path_to_yourapp
);

// Where is your configuration file?
define('ADMIN_CONFIG_FILE', $path_to_Admin.'/Admin/conf/admin.php');
define('MAIN_CONFIG_FILE', $path_to_apps1.'/RS/conf/rs.php');
define('MAIN_CONFIG_FILE', $path_to_apps2.'/MForum/conf/mforum.php');

in the file conf/admin.php
$cfg['installed_apps'] = array('Pluf', 'Admin','RS','MForum');
please give me some directive to integrate there applications;please i
need your help,,

php

unread,
Apr 13, 2011, 7:23:21 AM4/13/11
to Pluf Users
I have 3 application ;each application has an index.php ant path.php
and how I can integrate it so that the application works,,,,i dont
know how to integretd them;;please i need your help
in the file path of admin-master/www/path.php
i have writen
$path_to_Pluf = '/pluf';
$path_to_Admin = dirname(__FILE__).'/../src';
$path_to_apps1 = dirname(__FILE__).'/var/www/admin-master/src/mcms-2/
src';
$path_to_apps2 = dirname(__FILE__).'/var/www/admin-master/src/mforum/
src';
// $path_to_yourapp = '/path/to/your/app/src';

set_include_path(get_include_path()
.PATH_SEPARATOR.$path_to_Pluf
.PATH_SEPARATOR.$path_to_Admin
// .PATH_SEPARATOR.$path_to_yourapp
);

// Where is your configuration file?
define('ADMIN_CONFIG_FILE', $path_to_Admin.'/Admin/conf/admin.php');
define('MAIN_CONFIG_FILE', $path_to_apps1.'/RS/conf/rs.php');
define('MAIN_CONFIG_FILE', $path_to_apps2.'/MForum/conf/mforum.php');
in the file admin-master/src/conf/admin.php:

$cfg['installed_apps'] = array('Pluf', 'Admin','RS','MForum');
in admin-master/src/mfroum
admin-master/src/mcm-2
can you give me directive please;;
Reply all
Reply to author
Forward
0 new messages