@@ -17,8 +17,8 @@ discard block |
||
| 17 | 17 | * @author XOOPS Development Team |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | -require_once __DIR__ . '/../../../include/cp_header.php'; |
|
| 21 | -require_once __DIR__ . '/admin_header.php'; |
|
| 20 | +require_once __DIR__.'/../../../include/cp_header.php'; |
|
| 21 | +require_once __DIR__.'/admin_header.php'; |
|
| 22 | 22 | |
| 23 | 23 | xoops_cp_header(); |
| 24 | 24 | |
@@ -27,4 +27,4 @@ discard block |
||
| 27 | 27 | $adminObject->displayNavigation(basename(__FILE__)); |
| 28 | 28 | $adminObject->displayIndex(); |
| 29 | 29 | |
| 30 | -require_once __DIR__ . '/admin_footer.php'; |
|
| 30 | +require_once __DIR__.'/admin_footer.php'; |
|
@@ -25,10 +25,10 @@ |
||
| 25 | 25 | // Project: Article Project // |
| 26 | 26 | // ------------------------------------------------------------------------ // |
| 27 | 27 | |
| 28 | -include __DIR__ . '/../../mainfile.php'; |
|
| 29 | -include XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/vars.php'; |
|
| 28 | +include __DIR__.'/../../mainfile.php'; |
|
| 29 | +include XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/include/vars.php'; |
|
| 30 | 30 | //require_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/functions.php'; |
| 31 | -require_once __DIR__ . '/class/utility.php'; |
|
| 31 | +require_once __DIR__.'/class/utility.php'; |
|
| 32 | 32 | |
| 33 | 33 | planet_define_url_delimiter(); |
| 34 | 34 | $myts = MyTextSanitizer::getInstance(); |
@@ -29,10 +29,10 @@ |
||
| 29 | 29 | include __DIR__ . '/header.php'; |
| 30 | 30 | $article_id = Request::getInt('article', 0, 'GET');//empty($_GET['article']) ? 0 : (int)$_GET['article']; |
| 31 | 31 | if (empty($article_id)) { |
| 32 | - return; |
|
| 32 | + return; |
|
| 33 | 33 | } |
| 34 | 34 | if (planetGetCookie('art_' . $article_id) > 0) { |
| 35 | - return; |
|
| 35 | + return; |
|
| 36 | 36 | } |
| 37 | 37 | $articleHandler = xoops_getModuleHandler('article', $xoopsModule->getVar('dirname')); |
| 38 | 38 | $article_obj = $articleHandler->get($article_id); |
@@ -26,18 +26,18 @@ |
||
| 26 | 26 | // ------------------------------------------------------------------------ // |
| 27 | 27 | use Xmf\Request; |
| 28 | 28 | |
| 29 | -include __DIR__ . '/header.php'; |
|
| 30 | -$article_id = Request::getInt('article', 0, 'GET');//empty($_GET['article']) ? 0 : (int)$_GET['article']; |
|
| 29 | +include __DIR__.'/header.php'; |
|
| 30 | +$article_id = Request::getInt('article', 0, 'GET'); //empty($_GET['article']) ? 0 : (int)$_GET['article']; |
|
| 31 | 31 | if (empty($article_id)) { |
| 32 | 32 | return; |
| 33 | 33 | } |
| 34 | -if (planetGetCookie('art_' . $article_id) > 0) { |
|
| 34 | +if (planetGetCookie('art_'.$article_id)>0) { |
|
| 35 | 35 | return; |
| 36 | 36 | } |
| 37 | 37 | $articleHandler = xoops_getModuleHandler('article', $xoopsModule->getVar('dirname')); |
| 38 | 38 | $article_obj = $articleHandler->get($article_id); |
| 39 | -$article_obj->setVar('art_views', $article_obj->getVar('art_views') + 1, true); |
|
| 39 | +$article_obj->setVar('art_views', $article_obj->getVar('art_views')+1, true); |
|
| 40 | 40 | $articleHandler->insert($article_obj, true); |
| 41 | -PlanetUtility::planetSetCookie('art_' . $article_id, time()); |
|
| 41 | +PlanetUtility::planetSetCookie('art_'.$article_id, time()); |
|
| 42 | 42 | |
| 43 | 43 | return; |
@@ -24,5 +24,5 @@ |
||
| 24 | 24 | // URL: https://xoops.org // |
| 25 | 25 | // Project: Article Project // |
| 26 | 26 | // ------------------------------------------------------------------------ // |
| 27 | -include __DIR__ . '/../../mainfile.php'; |
|
| 28 | -include XOOPS_ROOT_PATH . '/include/comment_reply.php'; |
|
| 27 | +include __DIR__.'/../../mainfile.php'; |
|
| 28 | +include XOOPS_ROOT_PATH.'/include/comment_reply.php'; |
|
@@ -26,26 +26,26 @@ discard block |
||
| 26 | 26 | // ------------------------------------------------------------------------ // |
| 27 | 27 | use Xmf\Request; |
| 28 | 28 | |
| 29 | -include __DIR__ . '/header.php'; |
|
| 29 | +include __DIR__.'/header.php'; |
|
| 30 | 30 | |
| 31 | -$art_id = Request::getInt('article', Request::getInt('article', 0, 'POST'), 'GET');//(int)(isset($_GET['article']) ? $_GET['article'] : (isset($_POST['article']) ? $_POST['article'] : 0)); |
|
| 31 | +$art_id = Request::getInt('article', Request::getInt('article', 0, 'POST'), 'GET'); //(int)(isset($_GET['article']) ? $_GET['article'] : (isset($_POST['article']) ? $_POST['article'] : 0)); |
|
| 32 | 32 | if (empty($art_id)) { |
| 33 | 33 | redirect_header('javascript:history.go(-1);', 1, planet_constant('MD_INVALID')); |
| 34 | 34 | } |
| 35 | 35 | if (!$xoopsUser->isAdmin()) { |
| 36 | 36 | redirect_header('javascript:history.go(-1);', 2, _NOPERM); |
| 37 | 37 | } |
| 38 | -include XOOPS_ROOT_PATH . '/header.php'; |
|
| 39 | -include XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/vars.php'; |
|
| 38 | +include XOOPS_ROOT_PATH.'/header.php'; |
|
| 39 | +include XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/include/vars.php'; |
|
| 40 | 40 | |
| 41 | 41 | $articleHandler = xoops_getModuleHandler('article', $GLOBALS['moddirname']); |
| 42 | 42 | $article_obj = $articleHandler->get($art_id); |
| 43 | 43 | |
| 44 | -$op = Request::getCmd('op', 'check', 'POST');//isset($_POST['op']) ? $_POST['op'] : ''; |
|
| 44 | +$op = Request::getCmd('op', 'check', 'POST'); //isset($_POST['op']) ? $_POST['op'] : ''; |
|
| 45 | 45 | |
| 46 | 46 | if ($op === 'del' || !empty(Request::getString('del', '', 'POST'))) { |
| 47 | 47 | $articleHandler->delete($article_obj); |
| 48 | - $redirect = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php'; |
|
| 48 | + $redirect = XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/index.php'; |
|
| 49 | 49 | $message = planet_constant('MD_SAVED'); |
| 50 | 50 | redirect_header($redirect, 2, $message); |
| 51 | 51 | } elseif ($op === 'save') { |
@@ -66,15 +66,15 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | $art_id_new = $articleHandler->insert($article_obj); |
| 68 | 68 | if (!$article_obj->getVar('art_id')) { |
| 69 | - $redirect = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php'; |
|
| 69 | + $redirect = XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/index.php'; |
|
| 70 | 70 | $message = planet_constant('MD_INSERTERROR'); |
| 71 | - } else { |
|
| 72 | - $redirect = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php' . URL_DELIMITER . '' . $article_obj->getVar('art_id'); |
|
| 71 | + }else { |
|
| 72 | + $redirect = XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/view.article.php'.URL_DELIMITER.''.$article_obj->getVar('art_id'); |
|
| 73 | 73 | $message = planet_constant('MD_SAVED'); |
| 74 | 74 | } |
| 75 | 75 | redirect_header($redirect, 2, $message); |
| 76 | -} else { |
|
| 77 | - require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 76 | +}else { |
|
| 77 | + require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
| 78 | 78 | |
| 79 | 79 | $form = new XoopsThemeForm(_EDIT, 'formarticle', xoops_getenv('PHP_SELF'), 'post', true); |
| 80 | 80 | |
@@ -93,9 +93,9 @@ discard block |
||
| 93 | 93 | $butt_del->setExtra("onClick='document.forms.formarticle.op.value=del'"); |
| 94 | 94 | $button_tray->addElement($butt_del); |
| 95 | 95 | $butt_cancel = new XoopsFormButton('', 'cancel', _CANCEL, 'button'); |
| 96 | - $butt_cancel->setExtra("onclick='window.document.location=\"" . XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php' . URL_DELIMITER . '' . (int)$art_id . "\"'"); |
|
| 96 | + $butt_cancel->setExtra("onclick='window.document.location=\"".XOOPS_URL.'/modules/'.$GLOBALS['moddirname'].'/view.article.php'.URL_DELIMITER.''.(int) $art_id."\"'"); |
|
| 97 | 97 | $button_tray->addElement($butt_cancel); |
| 98 | 98 | $form->addElement($button_tray); |
| 99 | 99 | $form->display(); |
| 100 | 100 | } |
| 101 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
| 101 | +include XOOPS_ROOT_PATH.'/footer.php'; |
|
@@ -30,10 +30,10 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | $art_id = Request::getInt('article', Request::getInt('article', 0, 'POST'), 'GET');//(int)(isset($_GET['article']) ? $_GET['article'] : (isset($_POST['article']) ? $_POST['article'] : 0)); |
| 32 | 32 | if (empty($art_id)) { |
| 33 | - redirect_header('javascript:history.go(-1);', 1, planet_constant('MD_INVALID')); |
|
| 33 | + redirect_header('javascript:history.go(-1);', 1, planet_constant('MD_INVALID')); |
|
| 34 | 34 | } |
| 35 | 35 | if (!$xoopsUser->isAdmin()) { |
| 36 | - redirect_header('javascript:history.go(-1);', 2, _NOPERM); |
|
| 36 | + redirect_header('javascript:history.go(-1);', 2, _NOPERM); |
|
| 37 | 37 | } |
| 38 | 38 | include XOOPS_ROOT_PATH . '/header.php'; |
| 39 | 39 | include XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/vars.php'; |
@@ -44,58 +44,58 @@ discard block |
||
| 44 | 44 | $op = Request::getCmd('op', 'check', 'POST');//isset($_POST['op']) ? $_POST['op'] : ''; |
| 45 | 45 | |
| 46 | 46 | if ($op === 'del' || !empty(Request::getString('del', '', 'POST'))) { |
| 47 | - $articleHandler->delete($article_obj); |
|
| 48 | - $redirect = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php'; |
|
| 49 | - $message = planet_constant('MD_SAVED'); |
|
| 50 | - redirect_header($redirect, 2, $message); |
|
| 47 | + $articleHandler->delete($article_obj); |
|
| 48 | + $redirect = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php'; |
|
| 49 | + $message = planet_constant('MD_SAVED'); |
|
| 50 | + redirect_header($redirect, 2, $message); |
|
| 51 | 51 | } elseif ($op === 'save') { |
| 52 | - if (empty($_POST['art_content'])) { |
|
| 53 | - redirect_header('javascript:history.go(-1);', 1, planet_constant('MD_TEXTEMPTY')); |
|
| 54 | - } |
|
| 52 | + if (empty($_POST['art_content'])) { |
|
| 53 | + redirect_header('javascript:history.go(-1);', 1, planet_constant('MD_TEXTEMPTY')); |
|
| 54 | + } |
|
| 55 | 55 | |
| 56 | - foreach ([ |
|
| 57 | - 'art_title', |
|
| 58 | - 'art_link', |
|
| 59 | - 'art_author', |
|
| 60 | - 'art_content' |
|
| 61 | - ] as $tag) { |
|
| 62 | - if (@Request::getString('tag', '', 'POST') != $article_obj->getVar($tag)) { |
|
| 63 | - $article_obj->setVar($tag, @Request::getString('tag', '', 'POST')); |
|
| 64 | - } |
|
| 65 | - } |
|
| 56 | + foreach ([ |
|
| 57 | + 'art_title', |
|
| 58 | + 'art_link', |
|
| 59 | + 'art_author', |
|
| 60 | + 'art_content' |
|
| 61 | + ] as $tag) { |
|
| 62 | + if (@Request::getString('tag', '', 'POST') != $article_obj->getVar($tag)) { |
|
| 63 | + $article_obj->setVar($tag, @Request::getString('tag', '', 'POST')); |
|
| 64 | + } |
|
| 65 | + } |
|
| 66 | 66 | |
| 67 | - $art_id_new = $articleHandler->insert($article_obj); |
|
| 68 | - if (!$article_obj->getVar('art_id')) { |
|
| 69 | - $redirect = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php'; |
|
| 70 | - $message = planet_constant('MD_INSERTERROR'); |
|
| 71 | - } else { |
|
| 72 | - $redirect = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php' . URL_DELIMITER . '' . $article_obj->getVar('art_id'); |
|
| 73 | - $message = planet_constant('MD_SAVED'); |
|
| 74 | - } |
|
| 75 | - redirect_header($redirect, 2, $message); |
|
| 67 | + $art_id_new = $articleHandler->insert($article_obj); |
|
| 68 | + if (!$article_obj->getVar('art_id')) { |
|
| 69 | + $redirect = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/index.php'; |
|
| 70 | + $message = planet_constant('MD_INSERTERROR'); |
|
| 71 | + } else { |
|
| 72 | + $redirect = XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php' . URL_DELIMITER . '' . $article_obj->getVar('art_id'); |
|
| 73 | + $message = planet_constant('MD_SAVED'); |
|
| 74 | + } |
|
| 75 | + redirect_header($redirect, 2, $message); |
|
| 76 | 76 | } else { |
| 77 | - require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 77 | + require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 78 | 78 | |
| 79 | - $form = new XoopsThemeForm(_EDIT, 'formarticle', xoops_getenv('PHP_SELF'), 'post', true); |
|
| 79 | + $form = new XoopsThemeForm(_EDIT, 'formarticle', xoops_getenv('PHP_SELF'), 'post', true); |
|
| 80 | 80 | |
| 81 | - $form->addElement(new XoopsFormText(planet_constant('MD_TITLE'), 'art_title', 50, 255, $article_obj->getVar('art_title', 'E')), true); |
|
| 82 | - $form->addElement(new XoopsFormText(planet_constant('MD_LINK'), 'art_link', 50, 255, $article_obj->getVar('art_link', 'E')), true); |
|
| 83 | - $form->addElement(new XoopsFormText(planet_constant('MD_AUTHOR'), 'art_author', 80, 255, $article_obj->getVar('art_author', 'E'))); |
|
| 84 | - $form->addElement(new XoopsFormTextArea(planet_constant('MD_CONTENT'), 'art_content', $article_obj->getVar('art_content', 'E')), true); |
|
| 81 | + $form->addElement(new XoopsFormText(planet_constant('MD_TITLE'), 'art_title', 50, 255, $article_obj->getVar('art_title', 'E')), true); |
|
| 82 | + $form->addElement(new XoopsFormText(planet_constant('MD_LINK'), 'art_link', 50, 255, $article_obj->getVar('art_link', 'E')), true); |
|
| 83 | + $form->addElement(new XoopsFormText(planet_constant('MD_AUTHOR'), 'art_author', 80, 255, $article_obj->getVar('art_author', 'E'))); |
|
| 84 | + $form->addElement(new XoopsFormTextArea(planet_constant('MD_CONTENT'), 'art_content', $article_obj->getVar('art_content', 'E')), true); |
|
| 85 | 85 | |
| 86 | - $form->addElement(new XoopsFormHidden('article', $art_id)); |
|
| 87 | - $form->addElement(new XoopsFormHidden('op', 'save')); |
|
| 86 | + $form->addElement(new XoopsFormHidden('article', $art_id)); |
|
| 87 | + $form->addElement(new XoopsFormHidden('op', 'save')); |
|
| 88 | 88 | |
| 89 | - $button_tray = new XoopsFormElementTray('', ''); |
|
| 90 | - $butt_save = new XoopsFormButton('', 'submit', _SUBMIT, 'submit'); |
|
| 91 | - $button_tray->addElement($butt_save); |
|
| 92 | - $butt_del = new XoopsFormButton('', 'del', _DELETE, 'submit'); |
|
| 93 | - $butt_del->setExtra("onClick='document.forms.formarticle.op.value=del'"); |
|
| 94 | - $button_tray->addElement($butt_del); |
|
| 95 | - $butt_cancel = new XoopsFormButton('', 'cancel', _CANCEL, 'button'); |
|
| 96 | - $butt_cancel->setExtra("onclick='window.document.location=\"" . XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php' . URL_DELIMITER . '' . (int)$art_id . "\"'"); |
|
| 97 | - $button_tray->addElement($butt_cancel); |
|
| 98 | - $form->addElement($button_tray); |
|
| 99 | - $form->display(); |
|
| 89 | + $button_tray = new XoopsFormElementTray('', ''); |
|
| 90 | + $butt_save = new XoopsFormButton('', 'submit', _SUBMIT, 'submit'); |
|
| 91 | + $button_tray->addElement($butt_save); |
|
| 92 | + $butt_del = new XoopsFormButton('', 'del', _DELETE, 'submit'); |
|
| 93 | + $butt_del->setExtra("onClick='document.forms.formarticle.op.value=del'"); |
|
| 94 | + $button_tray->addElement($butt_del); |
|
| 95 | + $butt_cancel = new XoopsFormButton('', 'cancel', _CANCEL, 'button'); |
|
| 96 | + $butt_cancel->setExtra("onclick='window.document.location=\"" . XOOPS_URL . '/modules/' . $GLOBALS['moddirname'] . '/view.article.php' . URL_DELIMITER . '' . (int)$art_id . "\"'"); |
|
| 97 | + $button_tray->addElement($butt_cancel); |
|
| 98 | + $form->addElement($button_tray); |
|
| 99 | + $form->display(); |
|
| 100 | 100 | } |
| 101 | 101 | include XOOPS_ROOT_PATH . '/footer.php'; |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | use Xmf\Request; |
| 28 | 28 | |
| 29 | 29 | error_reporting(0); |
| 30 | -include __DIR__ . '/header.php'; |
|
| 30 | +include __DIR__.'/header.php'; |
|
| 31 | 31 | error_reporting(0); |
| 32 | 32 | |
| 33 | 33 | if (empty(Request::getString('print_data', '', 'POST'))) { |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $args['article'] = @$args_num[0]; |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - $article_id = Request::getInt('article', @$args['article'], 'POST');//(int)(empty($_GET['article']) ? @$args['article'] : $_GET['article']); |
|
| 40 | + $article_id = Request::getInt('article', @$args['article'], 'POST'); //(int)(empty($_GET['article']) ? @$args['article'] : $_GET['article']); |
|
| 41 | 41 | |
| 42 | 42 | $articleHandler = xoops_getModuleHandler('article', $GLOBALS['moddirname']); |
| 43 | 43 | $article_obj = $articleHandler->get($article_id); |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | $article_data['time'] = $article_obj->getTime('l'); |
| 57 | 57 | |
| 58 | 58 | // summary |
| 59 | - $article_data['summary'] =& $article_obj->getSummary(); |
|
| 59 | + $article_data['summary'] = & $article_obj->getSummary(); |
|
| 60 | 60 | |
| 61 | 61 | // text of page |
| 62 | 62 | $article_data['text'] = $article_obj->getVar('art_content'); |
@@ -64,25 +64,25 @@ discard block |
||
| 64 | 64 | $print_data['title'] = $article_data['title']; |
| 65 | 65 | $print_data['author'] = $article_data['author']; |
| 66 | 66 | $print_data['date'] = $article_data['time']; |
| 67 | - $print_data['summary'] = empty($article_data['summary']) ? '' : planet_constant('MD_SUMMARY') . ': ' . $article_data['summary']; |
|
| 67 | + $print_data['summary'] = empty($article_data['summary']) ? '' : planet_constant('MD_SUMMARY').': '.$article_data['summary']; |
|
| 68 | 68 | $print_data['content'] = $article_data['text']; |
| 69 | - $print_data['url'] = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/view.article.php' . URL_DELIMITER . 'c' . $category_id . '/' . $article_id . '/p' . $page; |
|
| 70 | -} else { |
|
| 71 | - $print_data = unserialize(base64_decode(Request::getString('print_data', '', 'POST')));//$_POST['print_data'])); |
|
| 69 | + $print_data['url'] = XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/view.article.php'.URL_DELIMITER.'c'.$category_id.'/'.$article_id.'/p'.$page; |
|
| 70 | +}else { |
|
| 71 | + $print_data = unserialize(base64_decode(Request::getString('print_data', '', 'POST'))); //$_POST['print_data'])); |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | -$print_data['image'] = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/' . $xoopsModule->getInfo('image'); |
|
| 75 | -$print_data['module'] = $xoopsModule->getVar('name') . ' V' . $xoopsModule->getInfo('version'); |
|
| 74 | +$print_data['image'] = XOOPS_URL.'/modules/'.$xoopsModule->getVar('dirname').'/'.$xoopsModule->getInfo('image'); |
|
| 75 | +$print_data['module'] = $xoopsModule->getVar('name').' V'.$xoopsModule->getInfo('version'); |
|
| 76 | 76 | |
| 77 | -header('Content-Type: text/html; charset=' . _CHARSET); |
|
| 77 | +header('Content-Type: text/html; charset='._CHARSET); |
|
| 78 | 78 | echo "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>\n"; |
| 79 | 79 | echo "<html>\n<head>\n"; |
| 80 | -echo '<title>' . $xoopsConfig['sitename'] . "</title>\n"; |
|
| 81 | -echo "<meta http-equiv='Content-Type' content='text/html; charset=" . _CHARSET . "'>\n"; |
|
| 82 | -echo "<meta name='AUTHOR' content='" . $myts->htmlSpecialChars($xoopsConfig['sitename']) . "'>\n"; |
|
| 83 | -echo "<meta name='COPYRIGHT' content='Copyright (c) " . date('Y') . ' by ' . $xoopsConfig['sitename'] . "'>\n"; |
|
| 84 | -echo "<meta name='DESCRIPTION' content='" . $myts->htmlSpecialChars($xoopsConfig['slogan']) . "'>\n"; |
|
| 85 | -echo "<meta name='GENERATOR' content='" . XOOPS_VERSION . "'>\n"; |
|
| 80 | +echo '<title>'.$xoopsConfig['sitename']."</title>\n"; |
|
| 81 | +echo "<meta http-equiv='Content-Type' content='text/html; charset="._CHARSET."'>\n"; |
|
| 82 | +echo "<meta name='AUTHOR' content='".$myts->htmlSpecialChars($xoopsConfig['sitename'])."'>\n"; |
|
| 83 | +echo "<meta name='COPYRIGHT' content='Copyright (c) ".date('Y').' by '.$xoopsConfig['sitename']."'>\n"; |
|
| 84 | +echo "<meta name='DESCRIPTION' content='".$myts->htmlSpecialChars($xoopsConfig['slogan'])."'>\n"; |
|
| 85 | +echo "<meta name='GENERATOR' content='".XOOPS_VERSION."'>\n"; |
|
| 86 | 86 | echo "<style type='text/css'> |
| 87 | 87 | body { |
| 88 | 88 | color:#000000; |
@@ -111,13 +111,13 @@ discard block |
||
| 111 | 111 | . "</h2>\n" |
| 112 | 112 | . "</div>\n" |
| 113 | 113 | . "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 2px solid #ccc;'></div>\n"; |
| 114 | -echo(empty($print_data['author']) ? '' : '<div>' . planet_constant('MD_AUTHOR') . ': ' . $print_data['author'] . "</div>\n") |
|
| 114 | +echo(empty($print_data['author']) ? '' : '<div>'.planet_constant('MD_AUTHOR').': '.$print_data['author']."</div>\n") |
|
| 115 | 115 | . '<div>' |
| 116 | 116 | . planet_constant('MD_DATE') |
| 117 | 117 | . ': ' |
| 118 | 118 | . $print_data['date'] |
| 119 | 119 | . "</div>\n" |
| 120 | - . (empty($article_data['summary']) ? '' : "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 1px solid #ccc;'></div>\n" . '<div>' . $print_data['summary'] . "</div>\n") |
|
| 120 | + . (empty($article_data['summary']) ? '' : "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 1px solid #ccc;'></div>\n".'<div>'.$print_data['summary']."</div>\n") |
|
| 121 | 121 | . "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 1px solid #ccc;'></div>\n" |
| 122 | 122 | . '<div>' |
| 123 | 123 | . $print_data['content'] |
@@ -31,44 +31,44 @@ discard block |
||
| 31 | 31 | error_reporting(0); |
| 32 | 32 | |
| 33 | 33 | if (empty(Request::getString('print_data', '', 'POST'))) { |
| 34 | - //$_POST['print_data'])) |
|
| 34 | + //$_POST['print_data'])) |
|
| 35 | 35 | |
| 36 | - if (PlanetUtility::planetParseArguments($args_num, $args, $args_str)) { |
|
| 37 | - $args['article'] = @$args_num[0]; |
|
| 38 | - } |
|
| 36 | + if (PlanetUtility::planetParseArguments($args_num, $args, $args_str)) { |
|
| 37 | + $args['article'] = @$args_num[0]; |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | - $article_id = Request::getInt('article', @$args['article'], 'POST');//(int)(empty($_GET['article']) ? @$args['article'] : $_GET['article']); |
|
| 40 | + $article_id = Request::getInt('article', @$args['article'], 'POST');//(int)(empty($_GET['article']) ? @$args['article'] : $_GET['article']); |
|
| 41 | 41 | |
| 42 | - $articleHandler = xoops_getModuleHandler('article', $GLOBALS['moddirname']); |
|
| 43 | - $article_obj = $articleHandler->get($article_id); |
|
| 42 | + $articleHandler = xoops_getModuleHandler('article', $GLOBALS['moddirname']); |
|
| 43 | + $article_obj = $articleHandler->get($article_id); |
|
| 44 | 44 | |
| 45 | - $article_data = []; |
|
| 45 | + $article_data = []; |
|
| 46 | 46 | |
| 47 | - // title |
|
| 48 | - $article_data['title'] = $article_obj->getVar('art_title'); |
|
| 47 | + // title |
|
| 48 | + $article_data['title'] = $article_obj->getVar('art_title'); |
|
| 49 | 49 | |
| 50 | - $article_data['author'] = $article_obj->getVar('art_author'); |
|
| 50 | + $article_data['author'] = $article_obj->getVar('art_author'); |
|
| 51 | 51 | |
| 52 | - // source |
|
| 53 | - $article_data['source'] = $article_obj->getVar('art_link'); |
|
| 52 | + // source |
|
| 53 | + $article_data['source'] = $article_obj->getVar('art_link'); |
|
| 54 | 54 | |
| 55 | - // publish time |
|
| 56 | - $article_data['time'] = $article_obj->getTime('l'); |
|
| 55 | + // publish time |
|
| 56 | + $article_data['time'] = $article_obj->getTime('l'); |
|
| 57 | 57 | |
| 58 | - // summary |
|
| 59 | - $article_data['summary'] =& $article_obj->getSummary(); |
|
| 58 | + // summary |
|
| 59 | + $article_data['summary'] =& $article_obj->getSummary(); |
|
| 60 | 60 | |
| 61 | - // text of page |
|
| 62 | - $article_data['text'] = $article_obj->getVar('art_content'); |
|
| 61 | + // text of page |
|
| 62 | + $article_data['text'] = $article_obj->getVar('art_content'); |
|
| 63 | 63 | |
| 64 | - $print_data['title'] = $article_data['title']; |
|
| 65 | - $print_data['author'] = $article_data['author']; |
|
| 66 | - $print_data['date'] = $article_data['time']; |
|
| 67 | - $print_data['summary'] = empty($article_data['summary']) ? '' : planet_constant('MD_SUMMARY') . ': ' . $article_data['summary']; |
|
| 68 | - $print_data['content'] = $article_data['text']; |
|
| 69 | - $print_data['url'] = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/view.article.php' . URL_DELIMITER . 'c' . $category_id . '/' . $article_id . '/p' . $page; |
|
| 64 | + $print_data['title'] = $article_data['title']; |
|
| 65 | + $print_data['author'] = $article_data['author']; |
|
| 66 | + $print_data['date'] = $article_data['time']; |
|
| 67 | + $print_data['summary'] = empty($article_data['summary']) ? '' : planet_constant('MD_SUMMARY') . ': ' . $article_data['summary']; |
|
| 68 | + $print_data['content'] = $article_data['text']; |
|
| 69 | + $print_data['url'] = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/view.article.php' . URL_DELIMITER . 'c' . $category_id . '/' . $article_id . '/p' . $page; |
|
| 70 | 70 | } else { |
| 71 | - $print_data = unserialize(base64_decode(Request::getString('print_data', '', 'POST')));//$_POST['print_data'])); |
|
| 71 | + $print_data = unserialize(base64_decode(Request::getString('print_data', '', 'POST')));//$_POST['print_data'])); |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | $print_data['image'] = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/' . $xoopsModule->getInfo('image'); |
@@ -99,36 +99,36 @@ discard block |
||
| 99 | 99 | </style>\n"; |
| 100 | 100 | echo "</head>\n"; |
| 101 | 101 | echo "<body style='background-color:#ffffff; color:#000000; font-family: Arial' onload='window.print()'>\n" |
| 102 | - . "<div style='float:center; width: 750px; border: 1px solid #000; padding: 20px;'>\n" |
|
| 103 | - . "<div style='text-align: center; display: block; margin: 0 0 6px 0; padding: 5px;'>\n" |
|
| 104 | - . "<img src='" |
|
| 105 | - . $print_data['image'] |
|
| 106 | - . "' border='0' alt='" |
|
| 107 | - . $print_data['module'] |
|
| 108 | - . "'>\n" |
|
| 109 | - . '<h2>' |
|
| 110 | - . $print_data['title'] |
|
| 111 | - . "</h2>\n" |
|
| 112 | - . "</div>\n" |
|
| 113 | - . "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 2px solid #ccc;'></div>\n"; |
|
| 102 | + . "<div style='float:center; width: 750px; border: 1px solid #000; padding: 20px;'>\n" |
|
| 103 | + . "<div style='text-align: center; display: block; margin: 0 0 6px 0; padding: 5px;'>\n" |
|
| 104 | + . "<img src='" |
|
| 105 | + . $print_data['image'] |
|
| 106 | + . "' border='0' alt='" |
|
| 107 | + . $print_data['module'] |
|
| 108 | + . "'>\n" |
|
| 109 | + . '<h2>' |
|
| 110 | + . $print_data['title'] |
|
| 111 | + . "</h2>\n" |
|
| 112 | + . "</div>\n" |
|
| 113 | + . "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 2px solid #ccc;'></div>\n"; |
|
| 114 | 114 | echo(empty($print_data['author']) ? '' : '<div>' . planet_constant('MD_AUTHOR') . ': ' . $print_data['author'] . "</div>\n") |
| 115 | - . '<div>' |
|
| 116 | - . planet_constant('MD_DATE') |
|
| 117 | - . ': ' |
|
| 118 | - . $print_data['date'] |
|
| 119 | - . "</div>\n" |
|
| 120 | - . (empty($article_data['summary']) ? '' : "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 1px solid #ccc;'></div>\n" . '<div>' . $print_data['summary'] . "</div>\n") |
|
| 121 | - . "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 1px solid #ccc;'></div>\n" |
|
| 122 | - . '<div>' |
|
| 123 | - . $print_data['content'] |
|
| 124 | - . "</div>\n" |
|
| 125 | - . "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 2px solid #ccc;'></div>\n" |
|
| 126 | - . '<div>' |
|
| 127 | - . $print_data['module'] |
|
| 128 | - . "</div>\n" |
|
| 129 | - . '<div>URL: ' |
|
| 130 | - . $print_data['url'] |
|
| 131 | - . "</div>\n" |
|
| 132 | - . "</div>\n" |
|
| 133 | - . "</body>\n</html>\n"; |
|
| 115 | + . '<div>' |
|
| 116 | + . planet_constant('MD_DATE') |
|
| 117 | + . ': ' |
|
| 118 | + . $print_data['date'] |
|
| 119 | + . "</div>\n" |
|
| 120 | + . (empty($article_data['summary']) ? '' : "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 1px solid #ccc;'></div>\n" . '<div>' . $print_data['summary'] . "</div>\n") |
|
| 121 | + . "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 1px solid #ccc;'></div>\n" |
|
| 122 | + . '<div>' |
|
| 123 | + . $print_data['content'] |
|
| 124 | + . "</div>\n" |
|
| 125 | + . "<div style='margin-top: 12px; margin-bottom: 12px; border-top: 2px solid #ccc;'></div>\n" |
|
| 126 | + . '<div>' |
|
| 127 | + . $print_data['module'] |
|
| 128 | + . "</div>\n" |
|
| 129 | + . '<div>URL: ' |
|
| 130 | + . $print_data['url'] |
|
| 131 | + . "</div>\n" |
|
| 132 | + . "</div>\n" |
|
| 133 | + . "</body>\n</html>\n"; |
|
| 134 | 134 | exit(); |
@@ -17,5 +17,5 @@ |
||
| 17 | 17 | * @author XOOPS Development Team, Kazumi Ono (AKA onokazu) |
| 18 | 18 | */ |
| 19 | 19 | |
| 20 | -include __DIR__ . '/../../mainfile.php'; |
|
| 21 | -include XOOPS_ROOT_PATH . '/include/notification_update.php'; |
|
| 20 | +include __DIR__.'/../../mainfile.php'; |
|
| 21 | +include XOOPS_ROOT_PATH.'/include/notification_update.php'; |
|
@@ -25,4 +25,4 @@ |
||
| 25 | 25 | // Project: Article Project // |
| 26 | 26 | // ------------------------------------------------------------------------ // |
| 27 | 27 | |
| 28 | -require_once XOOPS_ROOT_PATH . '/footer.php'; |
|
| 28 | +require_once XOOPS_ROOT_PATH.'/footer.php'; |
|
@@ -8,13 +8,13 @@ |
||
| 8 | 8 | |
| 9 | 9 | $current_path = __FILE__; |
| 10 | 10 | if (DIRECTORY_SEPARATOR !== '/') { |
| 11 | - $current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, '/', $current_path); |
|
| 11 | + $current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, '/', $current_path); |
|
| 12 | 12 | } |
| 13 | 13 | $url_arr = explode('/', strstr($current_path, '/modules/')); |
| 14 | 14 | include XOOPS_ROOT_PATH . '/modules/' . $url_arr[2] . '/include/vars.php'; |
| 15 | 15 | |
| 16 | 16 | if (defined($GLOBALS['VAR_PREFIXU'] . '_LANG_EN_MODINFO')) { |
| 17 | - return; |
|
| 17 | + return; |
|
| 18 | 18 | } |
| 19 | 19 | define($GLOBALS['VAR_PREFIXU'] . '_LANG_EN_MODINFO', 1); |
| 20 | 20 | |
@@ -11,117 +11,117 @@ |
||
| 11 | 11 | $current_path = str_replace(strpos($current_path, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, '/', $current_path); |
| 12 | 12 | } |
| 13 | 13 | $url_arr = explode('/', strstr($current_path, '/modules/')); |
| 14 | -include XOOPS_ROOT_PATH . '/modules/' . $url_arr[2] . '/include/vars.php'; |
|
| 14 | +include XOOPS_ROOT_PATH.'/modules/'.$url_arr[2].'/include/vars.php'; |
|
| 15 | 15 | |
| 16 | -if (defined($GLOBALS['VAR_PREFIXU'] . '_LANG_EN_MODINFO')) { |
|
| 16 | +if (defined($GLOBALS['VAR_PREFIXU'].'_LANG_EN_MODINFO')) { |
|
| 17 | 17 | return; |
| 18 | 18 | } |
| 19 | -define($GLOBALS['VAR_PREFIXU'] . '_LANG_EN_MODINFO', 1); |
|
| 20 | - |
|
| 21 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_NAME', 'Planet'); |
|
| 22 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_DESC', 'Feed Planet For Xoops'); |
|
| 23 | - |
|
| 24 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_PAGE_INDEX', 'Index'); |
|
| 25 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_PAGE_ARTICLE', 'Article'); |
|
| 26 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_PAGE_ARCHIVE', 'Archive'); |
|
| 27 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_PAGE_LIST', 'List'); |
|
| 28 | - |
|
| 29 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_SUBMIT', 'Submit'); |
|
| 30 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE', 'Articles'); |
|
| 31 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_DESC', ''); |
|
| 32 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_CATEGORY', 'Categories'); |
|
| 33 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_CATEGORY_DESC', ''); |
|
| 34 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG', 'BLogs'); |
|
| 35 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_DESC', ''); |
|
| 36 | - |
|
| 37 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET', 'Theme set'); |
|
| 38 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_THEMESET_DESC', "Module-wide, select '" . _NONE . "' will use site-wide theme"); |
|
| 39 | - |
|
| 40 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT', 'Time format for display'); |
|
| 41 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_DESC', ''); |
|
| 42 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_TIMEFORMAT_CUSTOM', 'Custom'); |
|
| 43 | - |
|
| 44 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY', 'Display summary length on article list'); |
|
| 45 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_DISPLAY_SUMMARY_DESC', '0 for full text'); |
|
| 46 | - |
|
| 47 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG', 'Enable debug'); |
|
| 48 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_DODEBUG_DESC', ''); |
|
| 49 | - |
|
| 50 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE', 'Enable URL rewrite'); |
|
| 51 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_DOURLREWRITE_DESC', 'AcceptPathInfo On for Apache2 is required'); |
|
| 52 | - |
|
| 53 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING', 'Enable sibling articles'); |
|
| 54 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_DOSIBLING_DESC', ''); |
|
| 55 | - |
|
| 56 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE', 'Articles on one page'); |
|
| 57 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLESPERPAGE_DESC', ''); |
|
| 58 | - |
|
| 59 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE', 'Lists on one page'); |
|
| 60 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_LISTPERPAGE_DESC', ''); |
|
| 61 | - |
|
| 62 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE', 'Blogs for each update'); |
|
| 63 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOGSPERUPDATE_DESC', ''); |
|
| 64 | - |
|
| 65 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE', 'Time for article to expire'); |
|
| 66 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_EXPIRE_DESC', 'In days'); |
|
| 67 | - |
|
| 68 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT', 'Copyright'); |
|
| 69 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_COPYRIGHT_DESC', ''); |
|
| 70 | - |
|
| 71 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_PING', 'Pings'); |
|
| 72 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_PING_DESC', 'URLs to ping'); |
|
| 73 | - |
|
| 74 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION', 'Option for recieved trackbacks'); |
|
| 75 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_TRACKBACK_OPTION_DESC', ''); |
|
| 76 | - |
|
| 77 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_MODERATION', 'Moderator to approve'); |
|
| 78 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_MEMBER', 'Member atuo-approve'); |
|
| 79 | - |
|
| 80 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT', 'Right for submitting new blog'); |
|
| 81 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_NEWBLOG_SUBMIT_DESC', ''); |
|
| 82 | - |
|
| 83 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE', 'Allow anonymous to rate'); |
|
| 84 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_ANONYMOUSRATE_DESC', ''); |
|
| 85 | - |
|
| 86 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON', 'Pseudo cron'); |
|
| 87 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_PSEUDOCRON_DESC', 'Use pseudo cron to update blogs'); |
|
| 88 | - |
|
| 89 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_ADMENU_INDEX', 'Index'); |
|
| 90 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_ADMENU_CATEGORY', 'Category'); |
|
| 91 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_ADMENU_BLOG', 'Blog'); |
|
| 92 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_ADMENU_ARTICLE', 'Article'); |
|
| 93 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_ADMENU_BLOCK', 'Block'); |
|
| 94 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_ADMENU_ABOUT', 'About'); |
|
| 95 | - |
|
| 96 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_NOTIFY', 'Global'); |
|
| 97 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_NOTIFYDSC', 'Global notification options'); |
|
| 98 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_NOTIFY', 'Blog'); |
|
| 99 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_NOTIFYDSC', 'Blog notification options'); |
|
| 100 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_NOTIFY', 'Article'); |
|
| 101 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_NOTIFYDSC', 'Article notification options'); |
|
| 102 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_BLOGSUBMIT_NOTIFY', 'Article submission'); |
|
| 103 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_BLOGSUBMIT_NOTIFYCAP', 'Notify me of any pending blog'); |
|
| 104 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_BLOGSUBMIT_NOTIFYDSC', 'Receive notification when a new blog is submitted'); |
|
| 105 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_BLOGSUBMIT_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : New blog submitted'); |
|
| 106 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_NEWBLOG_NOTIFY', 'New blog'); |
|
| 107 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_NEWBLOG_NOTIFYCAP', 'Notify of any new blog published'); |
|
| 108 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_NEWBLOG_NOTIFYDSC', 'Receive notification when a new blog is published'); |
|
| 109 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_NEWBLOG_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : New blog published'); |
|
| 110 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_ARTICLEMONITOR_NOTIFY', 'Article monitor'); |
|
| 111 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_ARTICLEMONITOR_NOTIFYCAP', 'Notify me of all actions on my articles'); |
|
| 112 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_ARTICLEMONITOR_NOTIFYDSC', 'Receive notification when an action is taken over my articles'); |
|
| 113 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_GLOBAL_ARTICLEMONITOR_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : New action'); |
|
| 114 | - |
|
| 115 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_BLOGAPPROVE_NOTIFY', 'Blog approved'); |
|
| 116 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_BLOGAPPROVE_NOTIFYCAP', 'Notify me of approval of this blog'); |
|
| 117 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_BLOGAPPROVE_NOTIFYDSC', 'Receive notification when the blog is approved'); |
|
| 118 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_BLOGAPPROVE_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : blog approved'); |
|
| 119 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_BLOGUPDATE_NOTIFY', 'Blog updated'); |
|
| 120 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_BLOGUPDATE_NOTIFYCAP', 'Notify me of update of this blog'); |
|
| 121 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_BLOGUPDATE_NOTIFYDSC', 'Receive notification when the blog is upated'); |
|
| 122 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_BLOG_BLOGUPDATE_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : blog updated'); |
|
| 123 | - |
|
| 124 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_ARTICLEMONITOR_NOTIFY', 'Article monitor'); |
|
| 125 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_ARTICLEMONITOR_NOTIFYCAP', 'Notify me of any action taken on this article'); |
|
| 126 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_ARTICLEMONITOR_NOTIFYDSC', 'Receive notification when an action is taken on this article'); |
|
| 127 | -define($GLOBALS['VAR_PREFIXU'] . '_MI_ARTICLE_ARTICLEMONITOR_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : New article published'); |
|
| 19 | +define($GLOBALS['VAR_PREFIXU'].'_LANG_EN_MODINFO', 1); |
|
| 20 | + |
|
| 21 | +define($GLOBALS['VAR_PREFIXU'].'_MI_NAME', 'Planet'); |
|
| 22 | +define($GLOBALS['VAR_PREFIXU'].'_MI_DESC', 'Feed Planet For Xoops'); |
|
| 23 | + |
|
| 24 | +define($GLOBALS['VAR_PREFIXU'].'_MI_PAGE_INDEX', 'Index'); |
|
| 25 | +define($GLOBALS['VAR_PREFIXU'].'_MI_PAGE_ARTICLE', 'Article'); |
|
| 26 | +define($GLOBALS['VAR_PREFIXU'].'_MI_PAGE_ARCHIVE', 'Archive'); |
|
| 27 | +define($GLOBALS['VAR_PREFIXU'].'_MI_PAGE_LIST', 'List'); |
|
| 28 | + |
|
| 29 | +define($GLOBALS['VAR_PREFIXU'].'_MI_SUBMIT', 'Submit'); |
|
| 30 | +define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE', 'Articles'); |
|
| 31 | +define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_DESC', ''); |
|
| 32 | +define($GLOBALS['VAR_PREFIXU'].'_MI_CATEGORY', 'Categories'); |
|
| 33 | +define($GLOBALS['VAR_PREFIXU'].'_MI_CATEGORY_DESC', ''); |
|
| 34 | +define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG', 'BLogs'); |
|
| 35 | +define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_DESC', ''); |
|
| 36 | + |
|
| 37 | +define($GLOBALS['VAR_PREFIXU'].'_MI_THEMESET', 'Theme set'); |
|
| 38 | +define($GLOBALS['VAR_PREFIXU'].'_MI_THEMESET_DESC', "Module-wide, select '"._NONE."' will use site-wide theme"); |
|
| 39 | + |
|
| 40 | +define($GLOBALS['VAR_PREFIXU'].'_MI_TIMEFORMAT', 'Time format for display'); |
|
| 41 | +define($GLOBALS['VAR_PREFIXU'].'_MI_TIMEFORMAT_DESC', ''); |
|
| 42 | +define($GLOBALS['VAR_PREFIXU'].'_MI_TIMEFORMAT_CUSTOM', 'Custom'); |
|
| 43 | + |
|
| 44 | +define($GLOBALS['VAR_PREFIXU'].'_MI_DISPLAY_SUMMARY', 'Display summary length on article list'); |
|
| 45 | +define($GLOBALS['VAR_PREFIXU'].'_MI_DISPLAY_SUMMARY_DESC', '0 for full text'); |
|
| 46 | + |
|
| 47 | +define($GLOBALS['VAR_PREFIXU'].'_MI_DODEBUG', 'Enable debug'); |
|
| 48 | +define($GLOBALS['VAR_PREFIXU'].'_MI_DODEBUG_DESC', ''); |
|
| 49 | + |
|
| 50 | +define($GLOBALS['VAR_PREFIXU'].'_MI_DOURLREWRITE', 'Enable URL rewrite'); |
|
| 51 | +define($GLOBALS['VAR_PREFIXU'].'_MI_DOURLREWRITE_DESC', 'AcceptPathInfo On for Apache2 is required'); |
|
| 52 | + |
|
| 53 | +define($GLOBALS['VAR_PREFIXU'].'_MI_DOSIBLING', 'Enable sibling articles'); |
|
| 54 | +define($GLOBALS['VAR_PREFIXU'].'_MI_DOSIBLING_DESC', ''); |
|
| 55 | + |
|
| 56 | +define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLESPERPAGE', 'Articles on one page'); |
|
| 57 | +define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLESPERPAGE_DESC', ''); |
|
| 58 | + |
|
| 59 | +define($GLOBALS['VAR_PREFIXU'].'_MI_LISTPERPAGE', 'Lists on one page'); |
|
| 60 | +define($GLOBALS['VAR_PREFIXU'].'_MI_LISTPERPAGE_DESC', ''); |
|
| 61 | + |
|
| 62 | +define($GLOBALS['VAR_PREFIXU'].'_MI_BLOGSPERUPDATE', 'Blogs for each update'); |
|
| 63 | +define($GLOBALS['VAR_PREFIXU'].'_MI_BLOGSPERUPDATE_DESC', ''); |
|
| 64 | + |
|
| 65 | +define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_EXPIRE', 'Time for article to expire'); |
|
| 66 | +define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_EXPIRE_DESC', 'In days'); |
|
| 67 | + |
|
| 68 | +define($GLOBALS['VAR_PREFIXU'].'_MI_COPYRIGHT', 'Copyright'); |
|
| 69 | +define($GLOBALS['VAR_PREFIXU'].'_MI_COPYRIGHT_DESC', ''); |
|
| 70 | + |
|
| 71 | +define($GLOBALS['VAR_PREFIXU'].'_MI_PING', 'Pings'); |
|
| 72 | +define($GLOBALS['VAR_PREFIXU'].'_MI_PING_DESC', 'URLs to ping'); |
|
| 73 | + |
|
| 74 | +define($GLOBALS['VAR_PREFIXU'].'_MI_TRACKBACK_OPTION', 'Option for recieved trackbacks'); |
|
| 75 | +define($GLOBALS['VAR_PREFIXU'].'_MI_TRACKBACK_OPTION_DESC', ''); |
|
| 76 | + |
|
| 77 | +define($GLOBALS['VAR_PREFIXU'].'_MI_MODERATION', 'Moderator to approve'); |
|
| 78 | +define($GLOBALS['VAR_PREFIXU'].'_MI_MEMBER', 'Member atuo-approve'); |
|
| 79 | + |
|
| 80 | +define($GLOBALS['VAR_PREFIXU'].'_MI_NEWBLOG_SUBMIT', 'Right for submitting new blog'); |
|
| 81 | +define($GLOBALS['VAR_PREFIXU'].'_MI_NEWBLOG_SUBMIT_DESC', ''); |
|
| 82 | + |
|
| 83 | +define($GLOBALS['VAR_PREFIXU'].'_MI_ANONYMOUSRATE', 'Allow anonymous to rate'); |
|
| 84 | +define($GLOBALS['VAR_PREFIXU'].'_MI_ANONYMOUSRATE_DESC', ''); |
|
| 85 | + |
|
| 86 | +define($GLOBALS['VAR_PREFIXU'].'_MI_PSEUDOCRON', 'Pseudo cron'); |
|
| 87 | +define($GLOBALS['VAR_PREFIXU'].'_MI_PSEUDOCRON_DESC', 'Use pseudo cron to update blogs'); |
|
| 88 | + |
|
| 89 | +define($GLOBALS['VAR_PREFIXU'].'_MI_ADMENU_INDEX', 'Index'); |
|
| 90 | +define($GLOBALS['VAR_PREFIXU'].'_MI_ADMENU_CATEGORY', 'Category'); |
|
| 91 | +define($GLOBALS['VAR_PREFIXU'].'_MI_ADMENU_BLOG', 'Blog'); |
|
| 92 | +define($GLOBALS['VAR_PREFIXU'].'_MI_ADMENU_ARTICLE', 'Article'); |
|
| 93 | +define($GLOBALS['VAR_PREFIXU'].'_MI_ADMENU_BLOCK', 'Block'); |
|
| 94 | +define($GLOBALS['VAR_PREFIXU'].'_MI_ADMENU_ABOUT', 'About'); |
|
| 95 | + |
|
| 96 | +define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_NOTIFY', 'Global'); |
|
| 97 | +define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_NOTIFYDSC', 'Global notification options'); |
|
| 98 | +define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_NOTIFY', 'Blog'); |
|
| 99 | +define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_NOTIFYDSC', 'Blog notification options'); |
|
| 100 | +define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_NOTIFY', 'Article'); |
|
| 101 | +define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_NOTIFYDSC', 'Article notification options'); |
|
| 102 | +define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_BLOGSUBMIT_NOTIFY', 'Article submission'); |
|
| 103 | +define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_BLOGSUBMIT_NOTIFYCAP', 'Notify me of any pending blog'); |
|
| 104 | +define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_BLOGSUBMIT_NOTIFYDSC', 'Receive notification when a new blog is submitted'); |
|
| 105 | +define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_BLOGSUBMIT_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : New blog submitted'); |
|
| 106 | +define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_NEWBLOG_NOTIFY', 'New blog'); |
|
| 107 | +define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_NEWBLOG_NOTIFYCAP', 'Notify of any new blog published'); |
|
| 108 | +define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_NEWBLOG_NOTIFYDSC', 'Receive notification when a new blog is published'); |
|
| 109 | +define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_NEWBLOG_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : New blog published'); |
|
| 110 | +define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_ARTICLEMONITOR_NOTIFY', 'Article monitor'); |
|
| 111 | +define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_ARTICLEMONITOR_NOTIFYCAP', 'Notify me of all actions on my articles'); |
|
| 112 | +define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_ARTICLEMONITOR_NOTIFYDSC', 'Receive notification when an action is taken over my articles'); |
|
| 113 | +define($GLOBALS['VAR_PREFIXU'].'_MI_GLOBAL_ARTICLEMONITOR_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : New action'); |
|
| 114 | + |
|
| 115 | +define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_BLOGAPPROVE_NOTIFY', 'Blog approved'); |
|
| 116 | +define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_BLOGAPPROVE_NOTIFYCAP', 'Notify me of approval of this blog'); |
|
| 117 | +define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_BLOGAPPROVE_NOTIFYDSC', 'Receive notification when the blog is approved'); |
|
| 118 | +define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_BLOGAPPROVE_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : blog approved'); |
|
| 119 | +define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_BLOGUPDATE_NOTIFY', 'Blog updated'); |
|
| 120 | +define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_BLOGUPDATE_NOTIFYCAP', 'Notify me of update of this blog'); |
|
| 121 | +define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_BLOGUPDATE_NOTIFYDSC', 'Receive notification when the blog is upated'); |
|
| 122 | +define($GLOBALS['VAR_PREFIXU'].'_MI_BLOG_BLOGUPDATE_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : blog updated'); |
|
| 123 | + |
|
| 124 | +define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_ARTICLEMONITOR_NOTIFY', 'Article monitor'); |
|
| 125 | +define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_ARTICLEMONITOR_NOTIFYCAP', 'Notify me of any action taken on this article'); |
|
| 126 | +define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_ARTICLEMONITOR_NOTIFYDSC', 'Receive notification when an action is taken on this article'); |
|
| 127 | +define($GLOBALS['VAR_PREFIXU'].'_MI_ARTICLE_ARTICLEMONITOR_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify : New article published'); |
|