-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Linking pages to slogan URL * 이제 블로그 주소 끝에 임의의 URL을 입력할 경우 그에 해당하는 page의 slogan이 있으면 바로 보여줍니다. * The simplest is the best.
- Loading branch information
Showing
3 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
/// Copyright (c) 2004-2010, Needlworks / Tatter Network Foundation | ||
/// All rights reserved. Licensed under the GPL. | ||
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT) | ||
require ROOT . '/library/preprocessor.php'; | ||
|
||
define('__TEXTCUBE_PAGE__',true); | ||
if (isset($suri['id']) || (isset($suri['value']) && strlen($suri['value']) > 0)) { | ||
if (!isset($suri['id']) || (Setting::getBlogSettingGlobal('useSloganOnPost',1) == 1)) { | ||
list($entries, $paging) = getEntryWithPagingBySlogan($blogid, $suri['value'], true); | ||
} else { | ||
list($entries, $paging) = getEntryWithPaging($blogid, $suri['id'], true); | ||
} | ||
fireEvent('OBStart'); | ||
require ROOT . '/interface/common/blog/begin.php'; | ||
|
||
if (empty($entries)) { | ||
header('HTTP/1.1 404 Not Found'); | ||
if (empty($skin->pageError)) { | ||
dress('article_rep', '<div class="TCwarning">' . _text('존재하지 않는 페이지입니다.') . '</div>', $view); | ||
} else { | ||
dress('article_rep', NULL, $view); | ||
dress('page_error', $skin->pageError, $view); | ||
} | ||
unset($paging); | ||
} else { | ||
require ROOT . '/interface/common/blog/entries.php'; | ||
} | ||
require ROOT . '/interface/common/blog/end.php'; | ||
fireEvent('OBEnd'); | ||
} else { | ||
header("HTTP/1.1 404 Not Found");exit; | ||
} | ||
?> |