Skip to content

Commit

Permalink
Framed docs can now select a named anchor in a page
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Jan 6, 2003
1 parent bfe8931 commit 20f4749
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions doc/index.php
Expand Up @@ -2,15 +2,20 @@

require("../config.php");

optional_variable($file, ""); // docs file to view
optional_variable($file, ""); // docs file to view
optional_variable($frame, ""); // docs file to view
optional_variable($lang, ""); // override current language
optional_variable($sub, ""); // sub-section (named anchor)
optional_variable($lang, ""); // override current language

if (!empty($lang)) {
$SESSION->doclang = $lang;
save_session("SESSION");
}

if (!empty($sub)) {
$sub = "#$sub";
}

if (empty($file)) {
$include = false;
if (empty($frame)) {
Expand Down Expand Up @@ -38,6 +43,6 @@
<FRAME NAME="top" SRC="top.php">
<FRAMESET COLS="200,*">
<FRAME NAME="contents" SRC="contents.php">
<FRAME NAME="main" SRC="index.php?file=<?PHP echo "$file"; ?>">
<FRAME NAME="main" SRC="index.php?file=<?PHP echo "$file$sub"; ?>">
</FRAMESET>
</FRAMESET>

0 comments on commit 20f4749

Please sign in to comment.