Esempio n. 1
0
        ?>
" />
	<meta name="generator" content="Pixie <?php 
        print $version;
        ?>
 - Copyright (C) 2006 - <?php 
        print date('Y');
        ?>
." />

	<!-- Title -->
	<title><?php 
        if (isset($ptitle) && $ptitle) {
            echo $ptitle;
        } else {
            build_title();
        }
        ?>
</title>

	<?php 
        if (!isset($theme_g_apis_jquery)) {
            $theme_g_apis_jquery = 'no';
        }
        if (!isset($theme_g_apis_jquery_loc)) {
            $theme_g_apis_jquery_loc = NULL;
        }
        if (!isset($theme_swfobject_g_apis)) {
            $theme_swfobject_g_apis = 'no';
        }
        if (!isset($theme_swfobject_g_apis_loc)) {
Esempio n. 2
0
//       $where: sql-where-clause specifying the primary keys to fetch the blob
require './inc/script_start.inc.php';
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
    $table = get_request_data('table', 'GET');
    $col = get_request_data('col', 'GET');
    $where = get_request_data('where', 'GET');
} else {
    $table = get_request_data('table');
    $col = get_request_data('col');
    $where = get_request_data('where');
    $s_wt['blob_as'][$col] = get_request_data('blobtype');
}
$imageurl = 'showimage.php?where=' . urlencode($where) . '&table=' . $table . '&col=' . $col;
$imageurl .= '&' . uniqid('UNIQ_');
$blob = get_blob_content(sprintf('SELECT %s FROM %s %s', $col, $table, $where));
$title = build_title(sprintf('Blob from %s %s', $table, $where), FALSE);
echo html_head($title) . '<body bgcolor="' . $s_cust['color']['area'] . "\">\n" . js_window_resize(BLOB_WINDOW_WIDTH, BLOB_WINDOW_HEIGHT) . '<form method="post" action="' . url_session($_SERVER['PHP_SELF']) . '" name="showblob_form">' . "\n" . hidden_field('table', htmlentities($table)) . hidden_field('col', htmlentities($col)) . hidden_field('where', htmlentities($where)) . "<table>\n<tr>\n<td>\n" . get_selectlist('blobtype', $blob_types, $s_wt['blob_as'][$col], TRUE) . "</td>\n<td>\n" . '<input type="submit" name="change_blobtype" value="Change Type">' . "\n" . "</td>\n<td width=\"50\">\n</td>\n<td>\n" . '<input type="button" value="Close" onClick="self.close()">' . "\n" . "</td>\n</tr>\n<table>\n" . "</form>\n";
$blobas = isset($s_wt['blob_as'][$col]) && $s_wt['blob_as'][$col] != '' ? $s_wt['blob_as'][$col] : 'hex';
switch ($blobas) {
    case 'png':
    case 'jpg':
    case 'gif':
        echo '<img src="' . $imageurl . "\">\n";
        break;
    case 'text':
        echo '<pre align="left">' . htmlspecialchars($blob) . "</pre>\n";
        break;
    case 'html':
        echo $blob;
        break;
    case 'hex':
<?php

// File           script_end.inc.php / FirebirdWebAdmin
// Purpose        output the whole html source for the page
// Author         Lutz Brueckner <*****@*****.**>
// Copyright      (c) 2000-2006 by Lutz Brueckner,
//                published under the terms of the GNU General Public Licence v.2,
//                see file LICENCE for details
// Varibles:   $title    title string for the page
//             $panels   panel array for the page
$title = build_title($menu_strings[$s_page]);
require_once './views/header.php';
//echo html_head($title).
//    ""
//   . js_global_variables()
//   . js_xml_http_request_client()
//   . js_request_close_panel()
//   . $js_stack
//
//   . get_tabmenu($s_page)
//    ;
// display the panels on the active page
foreach ($panels as $nr => $panel) {
    // take respect for the $HIDE_PANELS configuration
    if (in_array($panel[0], $HIDE_PANELS) && ($s_login['user'] != 'SYSDBA' || SYSDBA_GET_ALL == FALSE || $s_connected == FALSE)) {
        continue;
    }
    echo '<div id="p' . $nr . "\">\n" . '<a name="' . $panel[0] . '"></a>' . "\n";
    if ($panel[2] == 'open' || $panel[0] == 'info' && critical_error()) {
        echo get_open_panel_start($panel[1], $nr);
        // there may be different instances of the data edit/delete panel,