diff -ur olaf_glob2/index.php olaf/index.php --- olaf_glob2/index.php Mon Mar 17 00:28:08 2003 +++ olaf/index.php Tue Jul 8 17:41:09 2003 @@ -11,8 +11,6 @@ of the License, or (at your option) any later version. */ -$mode='frameset'; - require_once('src/olaf.inc'); ?> diff -ur olaf_glob2/src/cache.inc olaf/src/cache.inc --- olaf_glob2/src/cache.inc Thu Apr 24 01:17:44 2003 +++ olaf/src/cache.inc Wed Jul 9 10:31:00 2003 @@ -17,7 +17,7 @@ $config['cachesize']=2000000; // Make the unique cache name string out of the get variables -$cache['file']=$config['cachepath'].md5($_SERVER['PHP_SELF'].'?path='.$get['path'].'&lang='.$get['lang']); +$cache['file']=$config['cachepath'].md5($_SERVER['PHP_SELF'].$get['path'].'?frame='.$get['frame'].'&lang='.$get['lang']); // If the cache exists if(file_exists($cache['file'].'.buf') && file_exists($cache['file'].'.dep')) diff -ur olaf_glob2/src/html.inc olaf/src/html.inc --- olaf_glob2/src/html.inc Thu Apr 24 02:00:22 2003 +++ olaf/src/html.inc Wed Jul 9 11:46:58 2003 @@ -15,24 +15,24 @@ function genPage() { - switch($GLOBALS['mode']) + switch($GLOBALS['frame']) { - case 'noframe': - noframe(); + case 'no': + frameno(); break; - case 'frameset': + case 'set': frameset(); break; - case 'framemenu': + case 'menu': framemenu(); break; - case 'framecontent': + case 'content': framecontent(); break; } } -function noframe() +function frameno() { head(); ?> @@ -66,12 +66,23 @@ function frameset() { head(); + + $defaultframe = $GLOBALS['root']['frame_default']; + $menuframeArg = ''; + if ($defaultframe!='menu') + $menuframeArg="frame=menu&"; + $contentframeArg = ''; + if ($defaultframe!='content') + $contentframeArg="frame=content&"; + $noframeArg = ''; + if ($defaultframe!='no') + $noframeArg="frame=no&"; ?>