Index: trunk/admin/help/help.php =================================================================== diff -u -r13 -r36 --- trunk/admin/help/help.php (.../help.php) (revision 13) +++ trunk/admin/help/help.php (.../help.php) (revision 36) @@ -63,6 +63,8 @@ $rootURL="http://".ThisDomain().$objConfig->Get("Site_Path"); +$baseURL = $_SERVER['DOCUMENT_ROOT'].$path_char.$objConfig->Get("Site_Path"); + $admin = $objConfig->Get("AdminDirectory"); if(!strlen($admin)) $admin = "admin"; @@ -78,23 +80,51 @@ //require_once ($pathtolocal."admin/include/navmenu.php"); require_once($pathtoroot.$admin."/toolbar.php"); +$section = $_REQUEST["section"]; -$m = GetModuleArray(); -foreach($m as $key=>$value) +$envar = BuildEnv(); +int_help_header(); + +$topic_path = $baseURL.$admin.'/help/topics/'.str_replace(':','@',$section).'.txt'; + +// for debugging: save new help content +if( GetVar('action') == 'save_help' ) { - $path = $pathtoroot.$value."admin/include/subitems.php"; - if(file_exists($path)) - { - //echo ""; - include_once($path); - } + error_reporting(E_ALL); + $fp = fopen($topic_path, 'w'); + fwrite($fp, stripslashes(GetVar('help_content')) ); + fclose($fp); } -$section = $_GET["section"]; +$help_data = file_exists($topic_path) ? file_get_contents($topic_path) : GetVar('help_content'); -$envar = BuildEnv(); -int_header(); ?> -

Not Implemented

- - + + + + +
+
+ '.str_replace(':','@',$section).'.txt
' : admin_language('la_help_in_progress'); + + ?> +
+ +

+
+ + + +
+ +
+ \ No newline at end of file