pirex
11-11-2005, 14:20
Witam pobrałem sobie z tej strony: http://mamboforge.net/frs/?group_id=543 plik MOS_SMF_BRIDGEv3.19a_stable.zip i zaczełem integrację. Integracja składa się z 4 punktów. Pierwsze 3 punkty wykonałem poprawnie, ale zatrzymałem się na czwartm, który brzmi tak:
Step 4 - Installing the Login Module in Mambo
a) Install mod_smf_login.php as a module.
b) Go to your Mambo template (index.php), and add the following code, right before the </head> tag:
<?php
global $sc, $context;
if (!defined('SMF')){
require ("administrator/components/com_smf/config.smf.php");
require ($smf_path."/SSI.php");
}
$sc = &$context['session_id'];
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];
mysql_select_db($mosConfig_db);
?>
c) Also, in your mambo template (index.php), add the following code just above the </body> tag:
<?php mysql_select_db($db_name); ?>
d) Publish the module, and unpublish the default Mambo login module.
A wykonuję go w taki sposób: otwieram plik index.php z mojej templatki i przed </head> umieszczam:
<?php
global $sc, $context;
if (!defined('SMF'))
{
require ("administrator/components/com_smf/config.smf.php");
require ($smf_path."/SSI.php");
}
$sc = &$context['session_id'];
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];
mysql_select_db($mosConfig_db);
?>
oraz przed </body> umieszczam:
<?php mysql_select_db($db_name); ?>
I teraz gdy wchodzę na strone mam białą strone a na niej błąd:
Warning: main() [function.main]: open_basedir restriction in effect. File(/SSI.php) is not within the allowed path(s): (/home/site:/home/www:/usr/share/php) in /home/site/10895/www/templates/zwiast_email/index.php on line 70
Warning: main(/SSI.php) [function.main]: failed to open stream: Operation not permitted in /home/site/10895/www/templates/zwiast_email/index.php on line 70
Warning: main() [function.main]: open_basedir restriction in effect. File(/SSI.php) is not within the allowed path(s): (/home/site:/home/www:/usr/share/php) in /home/site/10895/www/templates/zwiast_email/index.php on line 70
Warning: main(/SSI.php) [function.main]: failed to open stream: Operation not permitted in /home/site/10895/www/templates/zwiast_email/index.php on line 70
Fatal error: main() [function.require]: Failed op
W czym może być problem?
Step 4 - Installing the Login Module in Mambo
a) Install mod_smf_login.php as a module.
b) Go to your Mambo template (index.php), and add the following code, right before the </head> tag:
<?php
global $sc, $context;
if (!defined('SMF')){
require ("administrator/components/com_smf/config.smf.php");
require ($smf_path."/SSI.php");
}
$sc = &$context['session_id'];
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];
mysql_select_db($mosConfig_db);
?>
c) Also, in your mambo template (index.php), add the following code just above the </body> tag:
<?php mysql_select_db($db_name); ?>
d) Publish the module, and unpublish the default Mambo login module.
A wykonuję go w taki sposób: otwieram plik index.php z mojej templatki i przed </head> umieszczam:
<?php
global $sc, $context;
if (!defined('SMF'))
{
require ("administrator/components/com_smf/config.smf.php");
require ($smf_path."/SSI.php");
}
$sc = &$context['session_id'];
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];
mysql_select_db($mosConfig_db);
?>
oraz przed </body> umieszczam:
<?php mysql_select_db($db_name); ?>
I teraz gdy wchodzę na strone mam białą strone a na niej błąd:
Warning: main() [function.main]: open_basedir restriction in effect. File(/SSI.php) is not within the allowed path(s): (/home/site:/home/www:/usr/share/php) in /home/site/10895/www/templates/zwiast_email/index.php on line 70
Warning: main(/SSI.php) [function.main]: failed to open stream: Operation not permitted in /home/site/10895/www/templates/zwiast_email/index.php on line 70
Warning: main() [function.main]: open_basedir restriction in effect. File(/SSI.php) is not within the allowed path(s): (/home/site:/home/www:/usr/share/php) in /home/site/10895/www/templates/zwiast_email/index.php on line 70
Warning: main(/SSI.php) [function.main]: failed to open stream: Operation not permitted in /home/site/10895/www/templates/zwiast_email/index.php on line 70
Fatal error: main() [function.require]: Failed op
W czym może być problem?