Skip to content

Commit

Permalink
refs #1249
Browse files Browse the repository at this point in the history
  * 글주소로 접근했을 때 아이폰인 경우는 아이폰 페이지로 리다이렉트.
  • Loading branch information
inureyes committed Nov 28, 2009
1 parent d727eaa commit 55d434a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions interface/blog/entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@

require ROOT . '/library/preprocessor.php';

if(Setting::getBlogSettingGlobal('useiPhoneUI',true) && (isset($_SERVER['HTTP_USER_AGENT']) && (strpos($_SERVER['HTTP_USER_AGENT'],'iPod') || strpos($_SERVER['HTTP_USER_AGENT'],'iPhone')))){
if(empty($suri['value'])) {
header("Location: $blogURL/i"); exit;
} else {
header("Location: $blogURL/i/entry/".$suri['value']); exit;
}
}

if(empty($suri['value'])) {
list($entries, $paging) = getEntriesWithPaging($blogid, $suri['page'], $blog['entriesOnPage']);
} else if(isset($_GET['category'])) { // category exists
Expand Down

0 comments on commit 55d434a

Please # to comment.