示例#1
0
    $folders_in_url = explode("/", $url_folder);
    $folders_in_url_count = count($folders_in_url);
    for ($i = 0; $i < $folders_in_url_count; $i++) {
        $temp = "";
        for ($j = 0; $j < $i + 1; $j++) {
            $temp .= "/" . $folders_in_url[$j];
        }
        $temp = substr($temp, 1);
        echo '<a href="' . $this_file_name . '?folder=' . base64_encode($temp) . '">' . $folders_in_url[$i] . '</a>/';
    }
}
echo '</td>';
if ($_SESSION['logged_in']) {
    echo '<td width="150" align="right"><a href="' . get_base_uri('?logout=true&folder=' . $_GET['folder'], 'admin') . '">Admin Logout</a><br><img id="checking_gif" src="dirLIST_files/checking.gif" style="display:none"/><span id="update_link_container"><a id="update_link" href="#" onclick="check_for_update();">' . $local_text['check_for_update'] . '</a><span></td>';
} elseif ($admin_login_link == 1) {
    echo '<td width="90" align="right"><a href="' . get_base_uri('?folder=' . $_GET['folder'], 'admin') . '">Admin Login</a></td>';
}
echo '</tr></table><br />';
//Breadcrumbs -done
//Any upload error is displayed here
switch (base64_decode(_is($_GET['err']))) {
    case "upload_banned":
        echo display_error_message("<b>Upload failed, banned file type</b>") . "<br/>";
        break;
    case "upload_error":
        echo display_error_message("<b>Upload failed, an unknown error occured</b>") . "<br />";
        break;
    case "size":
        echo display_error_message("<b>File size exceeded limit. Max allowed is " . max_upload_size() . "B</b>") . "<br />";
        break;
    case "nofile":
示例#2
0
function get_js_script($filename)
{
    return '<script type="text/javascript" src="' . get_base_uri($filename, 'js') . '"></script>' . PHP_EOL;
}
 /**
  * msysException::_wikified()
  * 
  * @param mixed $message
  * @return
  */
 private function _wikified($message)
 {
     return preg_replace(self::WIKI_TAG, '<a href="' . get_base_uri('ErrorCode#Error_code_reference', 'wiki') . '">$1</a>', $message);
 }