Location: PHPKode > projects > mediaIndex > includes/options.php
<?php
// user is authenticated, show edit button
if ($GLOBALS['action'] != "search") {
    if (_authenticated()) {
        echo "<div id=\"mode\"><a href=\"javascript:void(0);\" onmouseover=\"window.status='Edit';return true;\" onmouseout=\"window.status='';return true;\" onclick=\"togDisplay('editForm');\"><img src=\""._ICONSURL."/edit.gif\" border=\"0\" alt=\"Edit\" title=\"Edit\" /></a></div>\n";
    } else {
        echo "<div id=\"mode\"><a href=\"{$_SERVER['REQUEST_URI']}&amp;mode=admin\" onmouseover=\"window.status='Login';return true;\" onmouseout=\"window.status='';return true;\"><img src=\""._ICONSURL."/admin.gif\" border=\"0\" alt=\"Admin\" title=\"Admin\" /></a></div>\n";
    }
}
?>
Return current item: mediaIndex