@@ 49-53 (lines=5) @@ | ||
46 | include_once XOOPS_ROOT_PATH . '/modules/news/class/class.newsstory.php'; |
|
47 | include_once XOOPS_ROOT_PATH . '/modules/news/include/functions.php'; |
|
48 | include_once XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/calendar.php'; |
|
49 | if (file_exists(XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/main.php')) { |
|
50 | include_once XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/main.php'; |
|
51 | } else { |
|
52 | include_once XOOPS_ROOT_PATH . '/modules/news/language/english/main.php'; |
|
53 | } |
|
54 | ||
55 | $months_arr = array( |
|
56 | 1 => _CAL_JANUARY, |
@@ 29-33 (lines=5) @@ | ||
26 | // ------------------------------------------------------------------------ // |
|
27 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
|
28 | ||
29 | if (file_exists(XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/calendar.php')) { |
|
30 | include_once XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/calendar.php'; |
|
31 | } else { |
|
32 | include_once XOOPS_ROOT_PATH . '/language/english/calendar.php'; |
|
33 | } |
|
34 | include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
35 | include_once XOOPS_ROOT_PATH . '/modules/news/include/functions.php'; |
|
36 | include_once XOOPS_ROOT_PATH . '/modules/news/config.php'; |
@@ 29-33 (lines=5) @@ | ||
26 | // ------------------------------------------------------------------------ // |
|
27 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
|
28 | ||
29 | if (file_exists(XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/calendar.php')) { |
|
30 | include_once XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/calendar.php'; |
|
31 | } else { |
|
32 | include_once XOOPS_ROOT_PATH . '/language/english/calendar.php'; |
|
33 | } |
|
34 | include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
35 | include_once XOOPS_ROOT_PATH . '/modules/news/include/functions.php'; |
|
36 | include_once XOOPS_ROOT_PATH . '/modules/news/config.php'; |
@@ 82-86 (lines=5) @@ | ||
79 | include_once XOOPS_ROOT_PATH . '/modules/news/include/functions.php'; |
|
80 | global $xoopsUser; |
|
81 | ||
82 | if (file_exists(XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/modinfo.php')) { |
|
83 | include_once XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/modinfo.php'; |
|
84 | } else { |
|
85 | include_once XOOPS_ROOT_PATH . '/modules/news/language/english/modinfo.php'; |
|
86 | } |
|
87 | ||
88 | $uid = isset($_GET['uid']) ? (int)$_GET['uid'] : 0; |
|
89 | if (empty($uid)) { |
@@ 39-43 (lines=5) @@ | ||
36 | include_once XOOPS_ROOT_PATH . '/class/uploader.php'; |
|
37 | include_once XOOPS_ROOT_PATH . '/header.php'; |
|
38 | include_once XOOPS_ROOT_PATH . '/modules/news/include/functions.php'; |
|
39 | if (file_exists(XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/admin.php')) { |
|
40 | include_once XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/admin.php'; |
|
41 | } else { |
|
42 | include_once XOOPS_ROOT_PATH . '/modules/news/language/english/admin.php'; |
|
43 | } |
|
44 | $myts = MyTextSanitizer::getInstance(); |
|
45 | $module_id = $xoopsModule->getVar('mid'); |
|
46 | $storyid = 0; |
@@ 57-61 (lines=5) @@ | ||
54 | echo "<br><br>If you check the two last options then the forum's link and all the external links will be added at the end of the body text."; |
|
55 | } else { |
|
56 | // Launch the import |
|
57 | if (file_exists(XOOPS_ROOT_PATH . '/modules/AMS/language/' . $xoopsConfig['language'] . '/main.php')) { |
|
58 | include_once XOOPS_ROOT_PATH . '/modules/AMS/language/' . $xoopsConfig['language'] . '/main.php'; |
|
59 | } else { |
|
60 | include_once XOOPS_ROOT_PATH . '/modules/AMS/language/english/main.php'; |
|
61 | } |
|
62 | if (file_exists(XOOPS_ROOT_PATH . '/modules/AMS/language/' . $xoopsConfig['language'] . '/admin.php')) { |
|
63 | include_once XOOPS_ROOT_PATH . '/modules/AMS/language/' . $xoopsConfig['language'] . '/admin.php'; |
|
64 | } else { |
|
@@ 62-66 (lines=5) @@ | ||
59 | } else { |
|
60 | include_once XOOPS_ROOT_PATH . '/modules/AMS/language/english/main.php'; |
|
61 | } |
|
62 | if (file_exists(XOOPS_ROOT_PATH . '/modules/AMS/language/' . $xoopsConfig['language'] . '/admin.php')) { |
|
63 | include_once XOOPS_ROOT_PATH . '/modules/AMS/language/' . $xoopsConfig['language'] . '/admin.php'; |
|
64 | } else { |
|
65 | include_once XOOPS_ROOT_PATH . '/modules/AMS/language/english/admin.php'; |
|
66 | } |
|
67 | $db = XoopsDatabaseFactory::getDatabaseConnection(); |
|
68 | // User's choices |
|
69 | $use_forum = (isset($_POST['useforum']) && $_POST['useforum'] == 1) ? 1 : 0; |
@@ 54-58 (lines=5) @@ | ||
51 | $displayname = news_getmoduleoption('displayname'); |
|
52 | $tabskin = news_getmoduleoption('tabskin'); |
|
53 | ||
54 | if (file_exists(XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/main.php')) { |
|
55 | include_once XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/main.php'; |
|
56 | } else { |
|
57 | include_once XOOPS_ROOT_PATH . '/modules/news/language/english/main.php'; |
|
58 | } |
|
59 | ||
60 | $block['displayview'] = $options[8]; |
|
61 | $block['tabskin'] = $tabskin; |
@@ 636-640 (lines=5) @@ | ||
633 | $newsletterAdmin = new ModuleAdmin(); |
|
634 | echo $newsletterAdmin->addNavigation('index.php?op=configurenewsletter'); |
|
635 | $newslettertemplate = ''; |
|
636 | if (file_exists(XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/newsletter.php')) { |
|
637 | include_once XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/newsletter.php'; |
|
638 | } else { |
|
639 | include_once XOOPS_ROOT_PATH . '/modules/news/language/english/newsletter.php'; |
|
640 | } |
|
641 | echo '<br>'; |
|
642 | $story = new NewsStory(); |
|
643 | $exportedstories = array(); |
|
@@ 1614-1618 (lines=5) @@ | ||
1611 | global $xoopsModule, $xoopsConfig; |
|
1612 | xoops_cp_header(); |
|
1613 | $myts = MyTextSanitizer::getInstance(); |
|
1614 | if (file_exists(XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/main.php')) { |
|
1615 | include_once XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/main.php'; |
|
1616 | } else { |
|
1617 | include_once XOOPS_ROOT_PATH . '/modules/news/language/english/main.php'; |
|
1618 | } |
|
1619 | $statsAdmin = new ModuleAdmin(); |
|
1620 | echo $statsAdmin->addNavigation('index.php?op=stats'); |
|
1621 | $news = new NewsStory(); |
|
@@ 1814-1818 (lines=5) @@ | ||
1811 | global $xoopsModule, $xoopsConfig, $xoopsModuleConfig, $cfg; |
|
1812 | xoops_cp_header(); |
|
1813 | $myts = MyTextSanitizer::getInstance(); |
|
1814 | if (file_exists(XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/main.php')) { |
|
1815 | include_once XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/main.php'; |
|
1816 | } else { |
|
1817 | include_once XOOPS_ROOT_PATH . '/modules/news/language/english/main.php'; |
|
1818 | } |
|
1819 | $metagenAdmin = new ModuleAdmin(); |
|
1820 | echo $metagenAdmin->addNavigation('index.php?op=metagen'); |
|
1821 | //echo "<h1>"._AM_NEWS_METAGEN."</h1>"; |
|
@@ 1982-1986 (lines=5) @@ | ||
1979 | $published = 0; |
|
1980 | $description = ''; |
|
1981 | $keywords = ''; |
|
1982 | if (file_exists(XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/main.php')) { |
|
1983 | include_once XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/main.php'; |
|
1984 | } else { |
|
1985 | include_once XOOPS_ROOT_PATH . '/modules/news/language/english/main.php'; |
|
1986 | } |
|
1987 | ||
1988 | if ($xoopsModuleConfig['autoapprove'] == 1) { |
|
1989 | $approve = 1; |
|
@@ 2046-2050 (lines=5) @@ | ||
2043 | break; |
|
2044 | ||
2045 | case 'edit': |
|
2046 | if (file_exists(XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/main.php')) { |
|
2047 | include_once XOOPS_ROOT_PATH . '/modules/news/language/' . $xoopsConfig['language'] . '/main.php'; |
|
2048 | } else { |
|
2049 | include_once XOOPS_ROOT_PATH . '/modules/news/language/english/main.php'; |
|
2050 | } |
|
2051 | include_once XOOPS_ROOT_PATH . '/modules/news/submit.php'; |
|
2052 | break; |
|
2053 |