<?php define('THIS_FILE', 'admin/help/install_help.php'); $pathtoroot = ""; if( !(isset($pathtoroot) && $pathtoroot) ) { //$path=dirname(realpath(__FILE__));PATH_TRANSLATED $path=dirname(realpath(__FILE__)); if(strlen($path)) { /* determine the OS type for path parsing */ $pos = strpos($path,":"); if ($pos === false) { $gOS_TYPE="unix"; $pathchar = "/"; } else { $gOS_TYPE="win"; $pathchar="\\"; } $p = $path.$pathchar; /*Start looking for the root flag file */ if( !isset($pathtoroot) ) $pathtoroot = ''; while(!strlen($pathtoroot) && strlen($p)) { $sub = substr($p,strlen($pathchar)*-1); if($sub==$pathchar) { $filename = $p."root.flg"; } else $filename = $p.$pathchar."root.flg"; if(file_exists($filename)) { $pathtoroot = $p; } else { $parent = realpath($p.$pathchar."..".$pathchar); if($parent!=$p) { $p = $parent; } else $p = ""; } } if( !(isset($pathtoroot) && $pathtoroot) ) $pathtoroot = ".".$pathchar; } else { $pathtoroot = ".".$pathchar; } } function GetPathChar($path = null) { if( !isset($path) ) $path = $GLOBALS['pathtoroot']; $pos = strpos($path, ':'); return ($pos === false) ? "/" : "\\"; } $path_char = GetPathChar(); $rootURL = 'http://'.dirname($_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME']); $rootURL = str_replace('/help','',$rootURL); $tmp = explode('/', $rootURL); if( $tmp[ count($tmp) - 1 ] == $admin) unset( $tmp[ count($tmp) - 1 ] ); $rootURL = implode('/', $tmp).'/'; unset($tmp); function print_pre($s) { echo '<pre>'.print_r($s, true).'</pre>'; } $section = $_REQUEST['section']; $section = explode(':', $section); if($section[0] == 'in-portal') $section[0] = 'kernel'; $topic_path = str_replace(THIS_FILE, '', $_SERVER['PATH_TRANSLATED']).$section[0].'/admin/include/help/'.$section[1].'.txt'; //echo "TP: $topic_path<br>"; ?> <html> <head> <title>In-Portal - Help</title> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <meta http-equiv="Pragma" content="no-cache"> <link rel="stylesheet" type="text/css" href="<?php echo $rootURL; ?>include/style.css"> </head> <body topmargin="0" leftmargin="8" marginheight="8" marginwidth="8" bgcolor="#FFFFFF"> <DIV style='position:relative; z-Index: 1; background-color: #ffffff; padding-top:1px;'> <div style='position:absolute; width:100%;top:0px;' align='right'> <img src='<?php echo $rootURL; ?>images/logo_bg.gif'> </div> <img src="<?php echo $rootURL; ?>images/spacer.gif" width="1" height="7"><br> <div style='z-Index:1; position:relative'> <!-- ADMIN TITLE --> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr><td valign="top" class="admintitle" align="left"> <img title="" width="46" height="46" src="<?php echo $rootURL; ?>images/icon_install.gif" align="absmiddle"> Installtion Help<br> <img src='<?php echo $rootURL; ?>images/spacer.gif' width=1 height=4><br> </td></tr></table> <!-- SECTION NAVIGATOR --> <table border="0" cellpadding="2" cellspacing="0" class="tableborder_full" width="100%" height="30"><tr> <TD class="header_left_bg" width="100%"> <span class="tablenav_link">Install</span> </td> <td align="right" class="tablenav" background="<?php echo $rootURL; ?>images/tabnav_back.jpg" width="10"> </td> </tr> </table> <!-- END SECTION NAVIGATOR --> <table width="100%" border="0" cellspacing="0" cellpadding="4" class="tableborder"> <tr> <td bgcolor="F6F6F6"> <div class="help_box"> <?php if( file_exists($topic_path) ) { echo file_get_contents($topic_path); } ?> </h3> </div> </td> </tr> </table> </body> </html>