Exemplo n.º 1
0
        if ($_GET['cmd'] == 'thumb') {
            sfpg_image(GALLERY, IMAGE, 'thumb');
            exit;
        }
        if ($_GET['cmd'] == 'image') {
            sfpg_image(GALLERY, IMAGE, 'image');
            exit;
        }
        if ($_GET['cmd'] == 'preview') {
            if (USE_PREVIEW) {
                sfpg_image(GALLERY, IMAGE, 'preview');
            }
            exit;
        }
        if ($_GET['cmd'] == 'dl' and TEXT_DOWNLOAD != '') {
            sfpg_image(GALLERY, IMAGE, 'image', TRUE);
            exit;
        }
        if ($_GET['cmd'] == 'file') {
            header('Location: ' . GALLERY_ROOT . GALLERY . IMAGE);
            exit;
        }
    }
    if ($_GET['cmd'] == 'css') {
        header('Content-type: text/css');
        echo "\n\t\t\timg\n\t\t\t{\n\t\t\t\t-ms-interpolation-mode : bicubic;\n\t\t\t}\n\n\t\t\tbody.sfpg\n\t\t\t{\n\t\t\t\tbackground : {$color_body_back};\n\t\t\t\tcolor: {$color_body_text};\n\t\t\t\tfont-family: Arial, Helvetica, sans-serif;\n\t\t\t\tfont-size: " . FONT_SIZE . "px;\n\t\t\t\tfont-weight: normal;\n\t\t\t\tmargin:0px;\n\t\t\t\tpadding:0px;\n\t\t\t\toverflow:hidden;\n\t\t\t}\n\n\t\t\tbody.sfpg a:active, body.sfpg a:link, body.sfpg a:visited, body.sfpg a:focus\n\t\t\t{\n\t\t\t\tcolor : {$color_body_link};\n\t\t\t\ttext-decoration : none;\n\t\t\t}\n\n\t\t\tbody.sfpg a:hover\n\t\t\t{\n\t\t\t\tcolor : {$color_body_hover};\n\t\t\t\ttext-decoration : none;\n\t\t\t}\n\n\t\t\ttable\n\t\t\t{\n\t\t\t\tfont-size: " . FONT_SIZE . "px;\n\t\t\t\theight:100%;\n\t\t\t\twidth:100%;\n\t\t\t}\n\n\t\t\ttable.info td\n\t\t\t{\n\t\t\t\tpadding : 10px;\n\t\t\t\tvertical-align : top;\n\t\t\t}\n\n\t\t\ttable.sfpg_disp\n\t\t\t{\n\t\t\t\ttext-align : center;\n\t\t\t\tpadding : 0px;\n\t\t\t}\n\n\t\t\ttable.sfpg_disp td.menu\n\t\t\t{\n\t\t\t\tbackground : #000000;\n\t\t\t\tborder-top : 1px solid #303030;\n\t\t\t\tvertical-align : middle;\n\t\t\t\twhite-space: nowrap;\n\t\t\t}\n\n\t\t\ttable.sfpg_disp td.navi\n\t\t\t{\n\t\t\t\theight: " . NAV_BAR_HEIGHT . "px;\n\t\t\t\tbackground : #202020;\n\t\t\t\tborder-top : 1px solid #303030;\n\t\t\t\tvertical-align : middle;\n\t\t\t\twhite-space: nowrap;\n\t\t\t}\n\n\t\t\ttable.sfpg_disp td.mid\n\t\t\t{\n\t\t\t\tvertical-align : middle;\n\t\t\t}\n\n\t\t\t.sfpg_info_text, .loading\n\t\t\t{\n\t\t\t\t" . (ROUND_CORNERS ? 'border-radius: ' . ROUND_CORNERS . 'px;' : '') . "\n\t\t\t\tbackground : #000000;\n\t\t\t\tborder : 1px solid #606060;\n\t\t\t\tcolor : #aaaaaa;\n\t\t\t\tpadding : 1px 4px 1px 4px;\n\t\t\t\twidth : 200px;\n\t\t\t}\n\t\t\t\n\t\t\t.loading\n\t\t\t{\n\t\t\t\tpadding : 20px 20px 20px 20px;\n\t\t\t\tmargin-right: auto;\n\t\t\t\tmargin-left: auto;\n\t\t\t}\n\t\t\t\n\t\t\t.sfpg_button, .sfpg_button_hover, .sfpg_button_on, .sfpg_button_nav, .sfpg_button_disabled\n\t\t\t{\n\t\t\t\t" . (ROUND_CORNERS ? 'border-radius: ' . ROUND_CORNERS . 'px;' : '') . "\n\t\t\t\tcursor : pointer;\n\t\t\t\tbackground : {$color_button_back};\n\t\t\t\tborder : 1px solid {$color_button_border};\n\t\t\t\tcolor : {$color_button_text};\n\t\t\t\tpadding : 0px 5px 0px 5px;\n\t\t\t\tmargin : 0px 5px 0px 5px;\n\t\t\t\twhite-space: nowrap;\n\t\t\t}\n\n\t\t\t.sfpg_button_hover\n\t\t\t{\n\t\t\t\tbackground : {$color_button_hover};\n\t\t\t\tcolor : {$color_button_hover_text};\n\t\t\t}\n\n\t\t\t.sfpg_button_on\n\t\t\t{\n\t\t\t\tbackground : {$color_button_on};\n\t\t\t\tcolor : {$color_button_text_on};\n\t\t\t}\n\n\t\t\t.sfpg_button_disabled\n\t\t\t{\n\t\t\t\tcursor : default;\n\t\t\t\tborder : 1px solid {$color_button_border_off};\n\t\t\t\tbackground : {$color_button_back_off};\n\t\t\t\tcolor : {$color_button_text_off};\n\t\t\t}\n\n\t\t\t.sfpg_button_nav\n\t\t\t{\n\t\t\t\tborder : 1px solid #404040;\n\t\t\t\tbackground:#101010;\n\t\t\t\tcolor:#808080;\n\t\t\t}\n\n\t\t\t.thumbbox, .descbox\n\t\t\t{\n\t\t\t\tvertical-align : top;\n\t\t\t\tdisplay:-moz-inline-stack;\n\t\t\t\tdisplay:inline-block;\n\t\t\t\tzoom:1;\n\t\t\t\t*display:inline;\n\t\t\t\twidth: " . (2 * (THUMB_BORDER_WIDTH + THUMB_MARGIN + THUMB_BOX_MARGIN) + THUMB_MAX_WIDTH + 2) . "px;\n\t\t\t\theight: " . (2 * (THUMB_BORDER_WIDTH + THUMB_MARGIN + THUMB_BOX_MARGIN) + THUMB_MAX_HEIGHT + 2 + THUMB_BOX_EXTRA_HEIGHT) . "px;\n\t\t\t\tmargin: 0px;\n\t\t\t\tpadding: 0px;\n\t\t\t}\n\n\t\t\t.descbox\n\t\t\t{\n\t\t\t\twidth: " . (2 * (THUMB_BORDER_WIDTH + THUMB_MARGIN + THUMB_BOX_MARGIN) + THUMB_MAX_WIDTH + 2) * 2 . "px;\n\t\t\t}\n\n\t\t\t.thumbimgbox\n\t\t\t{\n\t\t\t\twidth: " . (2 * (THUMB_BORDER_WIDTH + THUMB_MARGIN) + THUMB_MAX_WIDTH) . "px;\n\t\t\t\theight: " . (THUMB_BORDER_WIDTH * 2 + THUMB_MARGIN + THUMB_MAX_HEIGHT + 6) . "px;\n\t\t\t\tmargin: 0px; \n\t\t\t\tpadding: 0px;\n\t\t\t}\n\t\t\t\n\t\t\t.innerboxdir, .innerboximg, .innerboxfile, .innerboxdir_hover, .innerboximg_hover, .innerboxfile_hover\n\t\t\t{\n\t\t\t\t" . (ROUND_CORNERS ? 'border-radius: ' . ROUND_CORNERS * 2 . 'px;' : '') . "\n\t\t\t\tcursor:pointer;\n\t\t\t\tmargin: " . THUMB_BOX_MARGIN . "px;\n\t\t\t\tpadding: 0px;\n\t\t\t\twidth: " . (2 * (THUMB_BORDER_WIDTH + THUMB_MARGIN) + THUMB_MAX_WIDTH + 2) . "px;\n\t\t\t\theight: " . (2 * (THUMB_BORDER_WIDTH + THUMB_MARGIN) + THUMB_MAX_HEIGHT + 2 + THUMB_BOX_EXTRA_HEIGHT) . "px;\n\t\t\t}\n\n\t\t\t.innerboxdesc\n\t\t\t{\n\t\t\t\ttext-align : left;\n\t\t\t\toverflow:auto;\n\t\t\t\t" . (ROUND_CORNERS ? 'border-radius: ' . ROUND_CORNERS * 2 . 'px;' : '') . "\n\t\t\t\tmargin: " . THUMB_BOX_MARGIN . "px;\n\t\t\t\tpadding: 5px;\n\t\t\t\twidth: " . 2 * (THUMB_BOX_MARGIN + 2 * (THUMB_BORDER_WIDTH + THUMB_MARGIN) + THUMB_MAX_WIDTH + 2 - 5) . "px;\n\t\t\t\theight: " . (2 * (THUMB_BORDER_WIDTH + THUMB_MARGIN) + THUMB_MAX_HEIGHT + 2 + THUMB_BOX_EXTRA_HEIGHT - 10) . "px;\n\t\t\t\tborder: 1px solid {$color_desc_box_border};\n\t\t\t\tbackground : {$color_desc_box_back};\n\t\t\t\tcolor : {$color_desc_box_text};\n\t\t\t}\n\n\t\t\t.innerboxdir, .innerboxdir_hover\n\t\t\t{\n\t\t\t\tborder: 1px solid {$color_dir_box_border};\n\t\t\t\tbackground : {$color_dir_box_back};\n\t\t\t\tcolor : {$color_dir_box_text};\n\t\t\t}\n\n\t\t\t.innerboximg, .innerboximg_hover\n\t\t\t{\n\t\t\t\tborder: 1px solid {$color_img_box_border};\n\t\t\t\tbackground : {$color_img_box_back};\n\t\t\t\tcolor : {$color_img_box_text};\n\t\t\t}\n\n\t\t\t.innerboxfile, .innerboxfile_hover\n\t\t\t{\n\t\t\t\tborder: 1px solid {$color_file_box_border};\n\t\t\t\tbackground : {$color_file_box_back};\n\t\t\t\tcolor : {$color_file_box_text};\n\t\t\t}\n\n\t\t\t.innerboxdir_hover\n\t\t\t{\n\t\t\t\tbackground : {$color_dir_hover};\n\t\t\t\tcolor : {$color_dir_hover_text};\n\t\t\t}\n\n\t\t\t.innerboximg_hover\n\t\t\t{\n\t\t\t\tbackground : {$color_img_hover};\n\t\t\t\tcolor : {$color_img_hover_text};\n\t\t\t}\n\n\t\t\t.innerboxfile_hover\n\t\t\t{\n\t\t\t\tbackground : {$color_file_hover};\n\t\t\t\tcolor : {$color_file_hover_text};\n\t\t\t}\n\n\t\t\t.full_image\n\t\t\t{\n\t\t\t\tcursor:pointer;\n\t\t\t\tborder : " . FULLIMG_BORDER_WIDTH . "px solid {$color_fullimg_border};\n\t\t\t}\n\n\t\t\t.thumb\n\t\t\t{\n\t\t\t\t" . (ROUND_CORNERS ? 'border-radius: ' . ROUND_CORNERS . 'px;' : '') . "\n\t\t\t\tmargin: " . THUMB_MARGIN . "px " . THUMB_MARGIN . "px 5px " . THUMB_MARGIN . "px;\n\t\t\t\tborder : " . THUMB_BORDER_WIDTH . "px solid {$color_thumb_border};\n\t\t\t}\n\n\t\t\t.box_image\n\t\t\t{\n\t\t\t\tposition:absolute;\n\t\t\t\tbottom:" . MENU_BOX_HEIGHT . "px;\n\t\t\t\tright:0;\n\t\t\t\tz-index:1020;\n\t\t\t\toverflow:auto;\n\t\t\t\tvisibility:hidden;\n\t\t\t\ttext-align : center;\n\t\t\t}\n\n\t\t\t.box_wait\n\t\t\t{\n\t\t\t\tposition:absolute;\n\t\t\t\tbottom:" . MENU_BOX_HEIGHT . "px;\n\t\t\t\tright:0;\n\t\t\t\tz-index:1015;\n\t\t\t\toverflow:auto;\n\t\t\t\tvisibility:hidden;\n\t\t\t\ttext-align : center;\n\t\t\t}\n\n\t\t\t.box_navi\n\t\t\t{\n\t\t\t\tposition:absolute;\n\t\t\t\tbottom:0;\n\t\t\t\tleft:0;\n\t\t\t\theight:" . MENU_BOX_HEIGHT . "px;\n\t\t\t\twidth:100%;\n\t\t\t\tz-index:1120;\n\t\t\t\toverflow:hidden;\n\t\t\t\ttext-align : center;\n\t\t\t}\n\n\t\t\t.box_info\n\t\t\t{\n\t\t\t\t" . (ROUND_CORNERS ? 'border-radius: ' . ROUND_CORNERS * 2 . 'px;' : '') . "\n\t\t\t\tposition:absolute;\n\t\t\t\ttop:10px;\n\t\t\t\tleft:10px;\n\t\t\t\twidth:" . INFO_BOX_WIDTH . "px;\n\t\t\t\tz-index:1040;\n\t\t\t\tvisibility:hidden;\n\t\t\t\toverflow:auto;\n\t\t\t\tborder : 1px solid #404040;\n\t\t\t\tbackground: #101010;\n\t\t\t}\n\n\t\t\t.box_overlay\n\t\t\t{\n\t\t\t\tposition:absolute;\n\t\t\t\tbottom:" . MENU_BOX_HEIGHT . "px;\n\t\t\t\tleft:0;\n\t\t\t\theight:100%;\n\t\t\t\twidth:100%;\n\t\t\t\tz-index:1010;\n\t\t\t\toverflow:hidden;\n\t\t\t\tvisibility:hidden;\n\t\t\t\tbackground:{$color_overlay};\n\t\t\t}\n\n\t\t\t.box_gallery\n\t\t\t{\n\t\t\t\ttext-align:center;\n\t\t\t\tposition:absolute;\n\t\t\t\ttop:0;\n\t\t\t\tright:0;\n\t\t\t\tz-index:1000;\n\t\t\t\toverflow:auto;\n\t\t\t}\n\t\t\t";
        exit;
    }
}
if (PAYPAL_ENABLED) {
    if (isset($_GET['sold'])) {
Exemplo n.º 2
0
        header("Content-type: text/css");
        echo "\r\n\r\n\t\t\timg\r\n\t\t\t{\r\n\t\t\t\t-ms-interpolation-mode : bicubic;\r\n\t\t\t}\r\n\r\n\t\t\tbody.sfpg\r\n\t\t\t{\r\n\t\t\t\tbackground : {$color_body_back};\r\n\t\t\t\tcolor: {$color_body_text};\r\n\t\t\t\tfont-family: Arial, Helvetica, sans-serif;\r\n\t\t\t\tfont-size: " . FONT_SIZE . "px;\r\n\t\t\t\tfont-weight: normal;\r\n\t\t\t\tmargin:0px;\r\n\t\t\t\tpadding:0px;\r\n\t\t\t\toverflow:hidden;\r\n\t\t\t}\r\n\r\n\t\t\tbody.sfpg a:active, body.sfpg a:link, body.sfpg a:visited, body.sfpg a:focus\r\n\t\t\t{\r\n\t\t\t\tcolor : {$color_body_link};\r\n\t\t\t\ttext-decoration : none;\r\n\t\t\t}\r\n\r\n\t\t\tbody.sfpg a:hover\r\n\t\t\t{\r\n\t\t\t\tcolor : {$color_body_hover};\r\n\t\t\t\ttext-decoration : none;\r\n\t\t\t}\r\n\r\n\t\t\ttable\r\n\t\t\t{\r\n\t\t\t\tfont-size: " . FONT_SIZE . "px;\r\n\t\t\t\theight:100%;\r\n\t\t\t\twidth:100%;\r\n\t\t\t}\r\n\r\n\t\t\ttable.info td\r\n\t\t\t{\r\n\t\t\t\tpadding : 10px;\r\n\t\t\t\tvertical-align : top;\r\n\t\t\t}\r\n\r\n\t\t\ttable.sfpg_disp\r\n\t\t\t{\r\n\t\t\t\ttext-align : center;\r\n\t\t\t\tpadding : 0px;\r\n\t\t\t}\r\n\r\n\t\t\ttable.sfpg_disp td.menu\r\n\t\t\t{\r\n\t\t\t\tbackground : #000000;\r\n\t\t\t\tborder-top : 1px solid #303030;\r\n\t\t\t\tvertical-align : middle;\r\n\t\t\t\twhite-space: nowrap;\r\n\t\t\t}\r\n\r\n\t\t\ttable.sfpg_disp td.navi\r\n\t\t\t{\r\n\t\t\t\theight: " . NAV_BAR_HEIGHT . "px;\r\n\t\t\t\tbackground : #202020;\r\n\t\t\t\tborder-top : 1px solid #303030;\r\n\t\t\t\tvertical-align : middle;\r\n\t\t\t\twhite-space: nowrap;\r\n\t\t\t}\r\n\r\n\t\t\ttable.sfpg_disp td.mid\r\n\t\t\t{\r\n\t\t\t\tvertical-align : middle;\r\n\t\t\t}\r\n\r\n\t\t\t.sfpg_info_text, .loading\r\n\t\t\t{\r\n\t\t\t\tbackground : #000000;\r\n\t\t\t\tborder : 1px solid #606060;\r\n\t\t\t\tcolor : #aaaaaa;\r\n\t\t\t\tpadding : 1px 4px 1px 4px;\r\n\t\t\t\twidth : 200px;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t.loading\r\n\t\t\t{\r\n\t\t\t\tpadding : 20px 20px 20px 20px;\r\n\t\t\t\tmargin-right: auto;\r\n\t\t\t\tmargin-left: auto;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t.sfpg_button, .sfpg_button_hover, .sfpg_button_on, .sfpg_button_nav, .sfpg_button_disabled\r\n\t\t\t{\r\n\t\t\t\tcursor : pointer;\r\n\t\t\t\tbackground : {$color_button_back};\r\n\t\t\t\tborder : 1px solid {$color_button_border};\r\n\t\t\t\tcolor : {$color_button_text};\r\n\t\t\t\tpadding : 0px 5px 0px 5px;\r\n\t\t\t\tmargin : 0px 5px 0px 5px;\r\n\t\t\t\twhite-space: nowrap;\r\n\t\t\t}\r\n\r\n\t\t\t.sfpg_button_hover\r\n\t\t\t{\r\n\t\t\t\tbackground : {$color_button_hover};\r\n\t\t\t\tcolor : {$color_button_hover_text};\r\n\t\t\t}\r\n\r\n\t\t\t.sfpg_button_on\r\n\t\t\t{\r\n\t\t\t\tbackground : {$color_button_on};\r\n\t\t\t\tcolor : {$color_button_text_on};\r\n\t\t\t}\r\n\r\n\t\t\t.sfpg_button_disabled\r\n\t\t\t{\r\n\t\t\t\tcursor : default;\r\n\t\t\t\tborder : 1px solid {$color_button_border_off};\r\n\t\t\t\tbackground : {$color_button_back_off};\r\n\t\t\t\tcolor : {$color_button_text_off};\r\n\t\t\t}\r\n\r\n\t\t\t.sfpg_button_nav\r\n\t\t\t{\r\n\t\t\t\tborder : 1px solid #404040;\r\n\t\t\t\tbackground:#101010;\r\n\t\t\t\tcolor:#808080;\r\n\t\t\t}\r\n\r\n\t\t\t.thumbbox\r\n\t\t\t{\r\n\t\t\t\tvertical-align : top;\r\n\t\t\t\tdisplay:-moz-inline-stack;\r\n\t\t\t\tdisplay:inline-block;\r\n\t\t\t\tzoom:1;\r\n\t\t\t\t*display:inline;\r\n\t\t\t\twidth: " . (2 * (THUMB_BORDER_WIDTH + THUMB_MARGIN + THUMB_BOX_MARGIN) + THUMB_MAX_WIDTH + 2) . "px;\r\n\t\t\t\theight: " . (2 * (THUMB_BORDER_WIDTH + THUMB_MARGIN + THUMB_BOX_MARGIN) + THUMB_MAX_HEIGHT + 2 + THUMB_BOX_EXTRA_HEIGHT) . "px;\r\n\t\t\t\tmargin: 0px;\r\n\t\t\t\tpadding: 0px;\r\n\t\t\t}\r\n\r\n\t\t\t.thumbimgbox\r\n\t\t\t{\r\n\t\t\t\twidth: " . (2 * (THUMB_BORDER_WIDTH + THUMB_MARGIN) + THUMB_MAX_WIDTH) . "px;\r\n\t\t\t\theight: " . (THUMB_BORDER_WIDTH * 2 + THUMB_MARGIN + THUMB_MAX_HEIGHT + 6) . "px;\r\n\t\t\t\tmargin: 0px; \r\n\t\t\t\tpadding: 0px;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t.innerboxdir, .innerboximg, .innerboxfile, .innerboxdir_hover, .innerboximg_hover, .innerboxfile_hover\r\n\t\t\t{\r\n\t\t\t\tcursor:pointer;\r\n\t\t\t\tmargin: " . THUMB_BOX_MARGIN . "px;\r\n\t\t\t\tpadding: 0px;\r\n\t\t\t\twidth: " . (2 * (THUMB_BORDER_WIDTH + THUMB_MARGIN) + THUMB_MAX_WIDTH + 2) . "px;\r\n\t\t\t\theight: " . (2 * (THUMB_BORDER_WIDTH + THUMB_MARGIN) + THUMB_MAX_HEIGHT + 2 + THUMB_BOX_EXTRA_HEIGHT) . "px;\r\n\t\t\t}\r\n\r\n\t\t\t.innerboxdir, .innerboxdir_hover\r\n\t\t\t{\r\n\t\t\t\tborder: 1px solid {$color_dir_box_border};\r\n\t\t\t\tbackground : {$color_dir_box_back};\r\n\t\t\t\tcolor : {$color_dir_box_text};\r\n\t\t\t}\r\n\r\n\t\t\t.innerboximg, .innerboximg_hover\r\n\t\t\t{\r\n\t\t\t\tborder: 1px solid {$color_img_box_border};\r\n\t\t\t\tbackground : {$color_img_box_back};\r\n\t\t\t\tcolor : {$color_img_box_text};\r\n\t\t\t}\r\n\r\n\t\t\t.innerboxfile, .innerboxfile_hover\r\n\t\t\t{\r\n\t\t\t\tborder: 1px solid {$color_file_box_border};\r\n\t\t\t\tbackground : {$color_file_box_back};\r\n\t\t\t\tcolor : {$color_file_box_text};\r\n\t\t\t}\r\n\r\n\t\t\t.innerboxdir_hover\r\n\t\t\t{\r\n\t\t\t\tbackground : {$color_dir_hover};\r\n\t\t\t\tcolor : {$color_dir_hover_text};\r\n\t\t\t}\r\n\r\n\t\t\t.innerboximg_hover\r\n\t\t\t{\r\n\t\t\t\tbackground : {$color_img_hover};\r\n\t\t\t\tcolor : {$color_img_hover_text};\r\n\t\t\t}\r\n\r\n\t\t\t.innerboxfile_hover\r\n\t\t\t{\r\n\t\t\t\tbackground : {$color_file_hover};\r\n\t\t\t\tcolor : {$color_file_hover_text};\r\n\t\t\t}\r\n\r\n\t\t\t.full_image\r\n\t\t\t{\r\n\t\t\t\tcursor:pointer;\r\n\t\t\t\tborder : " . FULLIMG_BORDER_WIDTH . "px solid {$color_fullimg_border};\r\n\t\t\t}\r\n\r\n\t\t\t.thumb\r\n\t\t\t{\r\n\t\t\t\tmargin: " . THUMB_MARGIN . "px " . THUMB_MARGIN . "px 5px " . THUMB_MARGIN . "px;\r\n\t\t\t\tborder : " . THUMB_BORDER_WIDTH . "px solid {$color_thumb_border};\r\n\t\t\t}\r\n\r\n\t\t\t.box_image\r\n\t\t\t{\r\n\t\t\t\tposition:absolute;\r\n\t\t\t\tbottom:" . MENU_BOX_HEIGHT . "px;\r\n\t\t\t\tright:0;\r\n\t\t\t\tz-index:1020;\r\n\t\t\t\toverflow:auto;\r\n\t\t\t\tvisibility:hidden;\r\n\t\t\t\ttext-align : center;\r\n\t\t\t}\r\n\r\n\t\t\t.box_wait\r\n\t\t\t{\r\n\t\t\t\tposition:absolute;\r\n\t\t\t\tbottom:" . MENU_BOX_HEIGHT . "px;\r\n\t\t\t\tright:0;\r\n\t\t\t\tz-index:1015;\r\n\t\t\t\toverflow:auto;\r\n\t\t\t\tvisibility:hidden;\r\n\t\t\t\ttext-align : center;\r\n\t\t\t}\r\n\r\n\t\t\t.box_navi\r\n\t\t\t{\r\n\t\t\t\tposition:absolute;\r\n\t\t\t\tbottom:0;\r\n\t\t\t\tleft:0;\r\n\t\t\t\theight:" . MENU_BOX_HEIGHT . "px;\r\n\t\t\t\twidth:100%;\r\n\t\t\t\tz-index:1120;\r\n\t\t\t\toverflow:hidden;\r\n\t\t\t\ttext-align : center;\r\n\t\t\t}\r\n\r\n\t\t\t.box_info\r\n\t\t\t{\r\n\t\t\t\tposition:absolute;\r\n\t\t\t\ttop:10px;\r\n\t\t\t\tleft:10px;\r\n\t\t\t\twidth:" . INFO_BOX_WIDTH . "px;\r\n\t\t\t\tz-index:1040;\r\n\t\t\t\tvisibility:hidden;\r\n\t\t\t\toverflow:auto;\r\n\t\t\t\tborder : 1px solid #404040;\r\n\t\t\t\tbackground: #101010;\r\n\t\t\t}\r\n\r\n\t\t\t.box_overlay\r\n\t\t\t{\r\n\t\t\t\tposition:absolute;\r\n\t\t\t\tbottom:" . MENU_BOX_HEIGHT . "px;\r\n\t\t\t\tleft:0;\r\n\t\t\t\theight:100%;\r\n\t\t\t\twidth:100%;\r\n\t\t\t\tz-index:1010;\r\n\t\t\t\toverflow:hidden;\r\n\t\t\t\tvisibility:hidden;\r\n\t\t\t\tbackground:{$color_overlay};\r\n\t\t\t}\r\n\r\n\t\t\t.box_gallery\r\n\t\t\t{\r\n\t\t\t\ttext-align:center;\r\n\t\t\t\tposition:absolute;\r\n\t\t\t\ttop:0;\r\n\t\t\t\tright:0;\r\n\t\t\t\tz-index:1000;\r\n\t\t\t\toverflow:auto;\r\n\t\t\t}\r\n\t\t\t";
        exit;
    }
    if ($_GET["cmd"] == "thumb") {
        sfpg_image(GALLERY, IMAGE, "thumb");
        exit;
    }
    if ($_GET["cmd"] == "preview") {
        if (USE_PREVIEW) {
            sfpg_image(GALLERY, IMAGE, "preview");
        }
        exit;
    }
    if ($_GET["cmd"] == "image") {
        sfpg_image(GALLERY, IMAGE, "image");
        exit;
    }
    if ($_GET["cmd"] == "dl" and TEXT_DOWNLOAD) {
        sfpg_image(GALLERY, IMAGE, "image", TRUE);
        exit;
    }
    if ($_GET["cmd"] == "file") {
        header("Location: " . GALLERY_ROOT . GALLERY . IMAGE);
        exit;
    }
}
list($dirs, $images, $files) = sfpg_get_dir(GALLERY);
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"><html><head>" . "<link rel=\"stylesheet\" type=\"text/css\" href=\"" . $_SERVER["PHP_SELF"] . "?cmd=css\">" . "<meta http-equiv=\"Content-Type\" content=\"text/html;charset=" . CHARSET . "\"><title>" . TEXT_GALLERY_NAME . "</title>";
sfpg_javascript();
echo "</head><body onresize='initDisplay()' onload='showGallery(" . (OPEN_IMAGE_ON_LOAD ? OPEN_IMAGE_ON_LOAD : "false") . ")' class=\"sfpg\">" . "<div id=\"box_navi\" class=\"box_navi\">" . "<table class=\"sfpg_disp\" cellspacing=\"0\">" . "<tr><td class=\"navi\">" . "<div id=\"navi\"></div>" . "</td></tr>" . "<tr><td class=\"menu\">" . "<div id=\"div_menu\"></div>" . "</td></tr>" . "</table>" . "</div>" . "<div id=\"box_image\" class=\"box_image\">" . "<table class=\"sfpg_disp\" cellspacing=\"0\">" . "<tr><td class=\"mid\">" . "<img alt=\"\" src=\"\" id=\"full\" class=\"full_image\" onclick=\"closeImageView()\">" . "</td></tr>" . "</table>" . "</div>" . "<div id=\"box_wait\" class=\"box_wait\">" . "<table class=\"sfpg_disp\" cellspacing=\"0\">" . "<tr><td class=\"mid\">" . "<div id=\"wait\"></div>" . "</td></tr>" . "</table>" . "</div>" . "<div id=\"box_info\" class=\"box_info\">" . "<table class=\"info\" cellspacing=\"0\">" . "<tr><td>" . "<div id=\"box_inner_info\"></div>" . "</td></tr>" . "</table>" . "</div>" . "<div id=\"box_gallery\" class=\"box_gallery\"></div>" . "<div id=\"box_overlay\" class=\"box_overlay\"></div>" . "</body></html>";