function activeButton() { global $NUnitRelease; $dir = currentPageDirectory(); if ($dir == HOME_DIR . "resources/") { return "resources"; } elseif ($dir == HOME_DIR . "develop/") { return "community"; } elseif ($dir == HOME_DIR . "extensions/") { return "extensions"; } elseif ($dir == HOME_DIR . "docs/{$NUnitRelease}/") { return "documentation"; } else { return currentPageName(); } }
* $prod_name - a string for this glosary name * $prod_ver - a string for the code version */ $prod_name = "Terminologie traduceri programe în limba română"; $prod_ver = "2.03"; /* * this variables defines the location of the glosary code * togheter with it's data */ $base_path = dirname(__FILE__); $file_glossary = $base_path . "/data/glosar.txt"; $file_history = $base_path . "/data/history.txt"; /* * $base_url - URL of this glosary installation */ $base_url = str_replace(currentPageName(), "", currentPageURL()); /* * $base_url_wiki - the root URL of the wiki installation, ending with slash * - leave empty to ignore it */ $base_url_wiki = "http://www.i18n.ro/"; /* * $base_url_open_trans * the root URL of the open-trans for your language * term will be appended to this string * leave empty to ignore it */ $base_url_open_trans = "http://en.ro.open-tran.eu/suggest/"; /* * $username is the global variable hosting * the name of the authenticated user
function DrawMenu($menuFileName) { if (file_exists(currentPageDirectory() . $menuFileName)) { $menu = BuildMenu(currentPageDirectory() . $menuFileName); } else { $menu = BuildMenu($menuFileName); } $menu->Draw(currentPageName(), nunitRelease()); }
<link rel="shortcut icon" href="favicon.ico"> </head> <!-- End Standard Head Part --> <body> <?php getHeader(); ?> <div id="content"> <h2>Not Found</h2> <h4>The page <?php echo currentPageName(); ?> could not be located on this site.</h4> <p>Current directory is <?php echo getcwd(); ?> </p> </div> <?php getFooter(); ?> </body>
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\"> <html> <!-- Standard Head Part --> <head> <title>NUnitLite - <?php echo currentPageName(true); ?> </title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta http-equiv="Content-Language" content="en-US"> <link rel="stylesheet" type="text/css" href="nunit.css"> <link rel="shortcut icon" href="favicon.ico"> </head> <!-- End Standard Head Part --> <body> <?php getHeader(); ?> <div id="content"> <h2>Closed for Maintenance</h2> <h4>This section of the nunit.com site is temporarily closed for maintentance. You may view the documentation for NUnit at <a href="http://nunit.org">nunit.org</a>.</h4> </div> <?php
<?php getHeader(); ?> <div id="content"> <?php include currentPageDirectory() . currentPageName() . ".html"; ?> </div> <?php if (file_exists(currentPageDirectory() . "sub_menu.txt")) { getSidebar(); } ?> <?php getFooter();