diff --git a/common.php b/common.php
index b9118e474..8a69c4539 100644
--- a/common.php
+++ b/common.php
@@ -266,7 +266,6 @@ $_SESSION['ss_is_mobile'] = $is_mobile;
define('G5_IS_MOBILE', $is_mobile);
define('G5_DEVICE_BUTTON_DISPLAY', $set_device);
if (G5_IS_MOBILE) {
- include_once(G5_LIB_PATH.'/mobile.lib.php'); // 모바일 전용 라이브러리
$g5['mobile_path'] = G5_PATH.'/'.$g5['mobile_dir'];
}
//==============================================================================
diff --git a/lib/mobile.lib.php b/lib/mobile.lib.php
deleted file mode 100644
index 5143791b4..000000000
--- a/lib/mobile.lib.php
+++ /dev/null
@@ -1,145 +0,0 @@
-";
-
- preg_match("/src=[\"\']?([^\"\'\s>]+)/i", $img, $m);
- $src = trim($m[1]);
- //echo $src;
-
- // 상대경로(..)로 시작되면 sir.co.kr 도메인으로 여긴다.
- $src = preg_replace("/^\.\.\//", "http://m.sir.co.kr/", $src);
- $absolute = preg_replace("/^http\:\/\/(www\.)?sir\.co\.kr\/(.*)$/", "/home/sir/$2", $src);
-
- $thumb_dir = G5_DATA_PATH.'/thumb/'.$bo_table;
- if (!is_dir($thumb_dir)) {
- @mkdir($thumb_dir, G5_DIR_PERMISSION);
- @chmod($thumb_dir, G5_DIR_PERMISSION);
- }
-
- $result = true;
-
- if (preg_match("/\.(jpe?g|png)$/i", $src)) {
- // 유일한 파일명을 만든다.
- $src_md5 = md5($src.$width);
- $thumb = "$thumb_dir/{$wr_id}-{$src_md5}";
-
- if (!file_exists($thumb)) {
- $result = mobile_create_thumb($src, $width, $thumb);
- }
- }
- else {
- $thumb = $src;
- }
-
- if ($result) {
- $size = @getimagesize($absolute);
- if ($size[2] == IMAGETYPE_GIF)
- $w = ($size[0] < $width) ? $size[0] : $width;
- else
- $w = ($size[0] < $width) ? $size[0] : "100%";
- return "";
- }
- }
- } else {
-
- foreach ($matches as $img) {
- preg_match("/src=[\"\']?([^\"\'\s>]+)/i", $img, $m);
-
- $result = true;
-
- $src = trim($m[1]);
- //if ($is_admin) echo $src."
";
- if (preg_match("/\.(jpe?g|png)$/i", $src)) {
- // 상대경로(..)로 시작되면 도메인으로 여긴다.
- $src = preg_replace("/^\.\.\//", 'http://'.$_SERVER['SERVER_NAME'].'/', $src);
-
- // 유일한 파일명을 만든다.
- $src_md5 = md5($src.$width);
- $thumb = G5_DATA_PATH.'/thumb/'.$bo_table.'-'.$wr_id.'-'.$src_md5;
-
- if (!file_exists($thumb)) {
- $result = mobile_create_thumb($src, $width, $thumb);
- }
- }
- else {
- $thumb = $src;
- }
-
- if ($result) {
- //if ($is_admin) { $begin_time = get_microtime(); }
- //echo $thumb;
- $size = @getimagesize($thumb);
- //if ($is_admin) print_r2($size);
- if ($size[2] == IMAGETYPE_GIF)
- $w = ($size[0] < $width) ? $size[0] : $width;
- else
- $w = ($size[0] < $width) ? $size[0] : "100%";
- //if ($is_admin) { echo "
time : "; echo get_microtime() - $begin_time; }
- return "";
- }
- }
-
- }
-
-}
-
-function mobile_embed($matches)
-{
- foreach ($matches as $embed) {
- //$embed = preg_replace("#height\=\d+#i", "", $embed);
- //$embed = preg_replace("#width\=\d+#i", "", $embed);
-
- return $embed;
- }
-}
-?>
\ No newline at end of file