|
From: mdw c. <myd...@li...> - 2001-08-28 13:39:27
|
MyDynaWeb CVS committal
Author : sukria
Project : mydynaweb
Module : htdocs
Dir : mydynaweb/htdocs/include
Modified Files:
mydynaweb.libs.php templates.inc.php
Log Message:
Trying to fix the problem with undefined $DYNA_SESSION.
In fact this problem is due to the fact that vars ('$') are
not global in PHP, we must use constant (with the 'define' function)
to have global values.
* I've updated mydynaweb.libs.php to set DYNA_SESSION with the value of $DYNA_SESSION
if this var is set.
* Then I've updated templates.inc.php to call get_login_box with DYNA_SESION instead
of $DYNA_SESSION
Hope it will work... ;)
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/include/mydynaweb.libs.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- mydynaweb.libs.php 2001/07/27 15:49:17 1.18
+++ mydynaweb.libs.php 2001/08/28 13:39:24 1.19
@@ -41,6 +41,9 @@
define ("USER_LANG", $UserLang);
define ("DVISIT", $DYNAVISIT);
+if (isset($DYNA_SESSION)) {
+ define("DYNA_SESSION", $DYNA_SESSION);
+}
// defining the theme
switch(THEMES_BEHAVIOR)
===================================================================
RCS file: /cvsroot/mydynaweb/mydynaweb/htdocs/include/templates.inc.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- templates.inc.php 2001/08/26 18:52:52 1.19
+++ templates.inc.php 2001/08/28 13:39:24 1.20
@@ -83,7 +83,7 @@
$VALUES['SEARCH'] = get_searchengine(CP_SEARCH, $DBH);
//FIXME: doesnt work (DYNA_SESSION is undefined, surely because we are not in the main script)
- $VALUES['LOGIN'] = get_login_box($DYNA_SESSION , CP_LOGIN, $DBH);
+ $VALUES['LOGIN'] = get_login_box(DYNA_SESSION , CP_LOGIN, $DBH);
$VALUES["LINK_BOXES"] = get_link_boxes($DBH);
$VALUES["CONTROL_PANNEL"] = get_control_panel(CP_DATE,CP_LANG,CP_TIME,$DBH);
|