Example #1
0
            $dontlocalizeagain = 1;
            // Just spare the running of an extra function (since it was already (by necessity) run within this else)--see the "if" just below
        }
        // end else (if there is no heading or alias set for the specific table--having this option allows titles to appear with the table name (in some form at least), even if a localization was not set (or if it was not set because the name is intended to be the heading))
        if (!$dontlocalizeagain) {
            localize(1);
            // Go back to the localization for the user's choice of language
        }
        // end if (if need to localize again)
    }
    // end else (if there is no heading or alias in the given language)
    // This will be overwritten in browse9.php if there is a file defined
    $title = $strings["browserfile"] . ": " . $heading;
    // Call header function to add XHTML headers
    // If no file is set, refer the user back to the main page.
    if (!$file) {
        headerAdd($charset, $defaultlanguage, $title, $headerdirection, "", $style);
        delaytime(0, $browserfile);
    }
    // end if (if there is no file defined, redirect the user back to the main page)
    // Get table metadata such as:
    ////// 1) The number of levels (e.g., the Bible with book, chapter, verse has 3) and their fields
    ////// 2) The number of options (e.g., the Qur'an can be browsed by Rodwell or traditional numbering--Fix: (later?) Any other reasonable options should also be added (e.g., to Collins esp.). Once searching has been added, this might be merged with that.)
    ////// 3) The fields to comprise the above-mentioned browsing options
    ////// 4) A default field and default value if the user does not specify a range.
    ////// 5) The original language (by code) of the table (would be used if implement a multilingual feature to allow users to view the table names in their original language, if they (the main text--not necessarily notes, etc.) were written in that language.
    ////// 6) The original language (by code) in which the table name and fields were written.
    ///////////////////
    get_table($file);
}
// end if defined HAVEACCESS
Example #2
0
 function assistant_wrongpass_redirect()
 {
     global $strings, $assistantfile;
     ob_start();
     setcookie("edit_language", "");
     // Remove cookie
     setcookie("edit_pass", "");
     // Remove cookie
     ob_end_clean();
     print $strings["assistantwrongpassword"] . ".<br /><br />" . $strings["assistantredirecting"] . " <a href='{$assistantfile}'>{$assistantfile}</a>...";
     delaytime(5, $assistantfile);
     // Delays 5 seconds and redirects
 }