ImpressCMS Core is an open source project powered by Assembla

Assembla offers free public and private SVN/Git repositories and project hosting with bug/issue tracking and collaboration tools.

impresscms

Commit 9205

User picture
  • Author: realtherplima
  • 2009-08-18 16:51 (over 4 years ago)

Removed all references (files, folders and data) from the old core content manager. ref[t:517]

Files Affected

 
92049205
41
* #705: Module name in module preferences breadcrumb is linked to module administration now (Phoenyx)
41
* #705: Module name in module preferences breadcrumb is linked to module administration now (Phoenyx)
42
* #294: replaced scraps with system comment function in imProfile | ticket from addons (Phoenyx)
42
* #294: replaced scraps with system comment function in imProfile | ticket from addons (Phoenyx)
43
 
43
 
44
'''Fixed'''
44
'''Fixed'''
45
* #661: Uploader setPrefix may incorrectly assign filenames. (vaughan)
45
* #661: Uploader setPrefix may incorrectly assign filenames. (vaughan)
46
* #: Unable to login with email address, function getUnameFromUserEmail() was getting $uname & not $login_name. (vaughan)
46
* #: Unable to login with email address, function getUnameFromUserEmail() was getting $uname & not $login_name. (vaughan)
47
* fixed class/icmsform/icmsform.php 723-728 lines (????) (mekdrop)
47
* fixed class/icmsform/icmsform.php 723-728 lines (????) (mekdrop)
...
 
...
 
101
* #309: imProfile: all tabs are highlighted according to the current page again | ticket from addons (Phoenyx)
101
* #309: imProfile: all tabs are highlighted according to the current page again | ticket from addons (Phoenyx)
102
* #737: $sortable for IcmsPersistableColumn is working now (Phoenyx)
102
* #737: $sortable for IcmsPersistableColumn is working now (Phoenyx)
103
* #310: imProfile: removed sort option from audio file, picture, tribe picture and youtube video | ticket from addons (Phoenyx)
103
* #310: imProfile: removed sort option from audio file, picture, tribe picture and youtube video | ticket from addons (Phoenyx)
104
* #311: imProfile: added some field descriptions for pictures and videos | tickets from addons (Phoenyx)
104
* #311: imProfile: added some field descriptions for pictures and videos | ticket from addons (Phoenyx)
 
 
105
* #312: imProfile: tribeusers can now be added and deleted in the control panel | ticket from addons (Phoenyx)
105
 
106
 
106
===2009-06-20 : 1.2 Alpha 2.1 ===
107
===2009-06-20 : 1.2 Alpha 2.1 ===
107
'''Fixed'''
108
'''Fixed'''
92049205
1
<?php
1
<?php
2
/**
2
/**
3
* Content Manager
3
 * Content page
4
*
4
 *
5
* System tool that allow create and manage content pages
5
 * @copyright    The ImpressCMS Project
6
* Some parts of this tool was based on mastop publish and smartcontent modules
6
 * @license        http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
7
*
7
 * @since        1.0
8
* @copyright    The ImpressCMS Project http://www.impresscms.org/
8
 * @author        Rodrigo P Lima aka TheRplima <therplima@impresscms.org>
9
* @license    http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
9
 * @package        content
10
* @package    core
10
 * @version        $Id$
11
* @since    1.1
11
 */
12
* @author    Rodrigo Pereira Lima (AKA TheRplima) <therplima@impresscms.org>
12
 
13
* @version    $Id$
13
include_once 'mainfile.php';
14
*/
14
 
15
 
15
define ( "CONTENT_DIRNAME", 'content' );
16
$xoopsOption['pagetype'] = 'content';
16
define ( "CONTENT_URL", ICMS_URL . '/modules/' . CONTENT_DIRNAME . '/' );
17
/** Including mainfile.php is required */
17
define ( "CONTENT_ROOT_PATH", ICMS_ROOT_PATH . '/modules/' . CONTENT_DIRNAME . '/' );
18
include 'mainfile.php';
18
define ( "CONTENT_IMAGES_URL", CONTENT_URL . 'images/' );
19
/** Include the textsanitizer class*/
19
define ( "CONTENT_ADMIN_URL", CONTENT_URL . 'admin/' );
20
include_once ICMS_ROOT_PATH.'/class/module.textsanitizer.php';
20
 
21
/** Include the system constants definitions */
21
$mhandler = xoops_gethandler('module');
22
include_once ICMS_ROOT_PATH.'/modules/system/constants.php';
22
$xoopsModule = $mhandler->getByDirname(CONTENT_DIRNAME);
23
 
23
include_once ICMS_ROOT_PATH . '/modules/content/include/common.php';
24
$im_contentConfig =& $config_handler->getConfigsByCat(IM_CONF_CONTENT);
24
$icmsModule = $xoopsModule;
25
$page = (isset($_GET['page']))?trim(StopXSS($_GET['page'])):((isset($_POST['page']))?trim(StopXSS($_POST['page'])):0);
25
icms_loadLanguageFile('content', 'common');
26
 
26
icms_loadLanguageFile('content', 'main');
27
$gperm_handler = & xoops_gethandler('groupperm');
27
$icmsModuleConfig = $contentConfig;
28
$groups = is_object($icmsUser) ? $icmsUser->getGroups() : array(XOOPS_GROUP_ANONYMOUS);
28
 
29
$agroups = $gperm_handler->getGroupIds('system_admin',XOOPS_SYSTEM_CONTENT);
29
$content_content_handler = xoops_getModuleHandler ( 'content', 'content' );
30
$allowed_groups = array_intersect($groups, $agroups);
30
 
31
$uid = is_object($icmsUser) ? intval($icmsUser->getVar('uid')) : 0;
31
/** Again, use a naming convention that indicates the source of the content of the variable */
32
$content_handler =& xoops_gethandler('content');
32
$clean_content_id = isset ( $_GET ['content_id'] ) ? intval ( $_GET ['content_id'] ) : 0;
33
 
33
$page = (isset ( $_GET ['page'] )) ? trim ( StopXSS ( $_GET ['page'] ) ) : ((isset ( $_POST ['page'] )) ? trim ( StopXSS ( $_POST ['page'] ) ) : $clean_content_id);
34
$tag = (isset($_GET['tag']))?trim(StopXSS($_GET['tag'])):((isset($_POST['tag']))?trim(StopXSS($_POST['tag'])):null);
34
 
35
$start = (isset($_GET['start']))?intval($_GET['start']):((isset($_POST['start']))?intval($_POST['start']):0);
35
if (! $page) {
36
if (!$page){
36
    $path = (isset ( $_SERVER ['PATH_INFO'] ) && substr ( $_SERVER ['PATH_INFO'], 0, 1 ) == '/') ? substr ( $_SERVER ['PATH_INFO'], 1, strlen ( $_SERVER ['PATH_INFO'] ) ) : ((isset ( $_SERVER ['PATH_INFO'] )) ? $_SERVER ['PATH_INFO'] : '');
37
    $path = (isset($_SERVER['PATH_INFO']) && substr($_SERVER['PATH_INFO'],0,1) == '/')?substr($_SERVER['PATH_INFO'],1,strlen($_SERVER['PATH_INFO'])):((isset($_SERVER['PATH_INFO']))?$_SERVER['PATH_INFO']:'');
37
    $path = trim ( StopXSS ( $path ) );
38
    $path = trim(StopXSS($path));
38
    $params = explode ( '/', $path );
39
    $params = explode('/',$path);
39
    if (count ( $params ) > 0) {
40
    if (count($params) > 0){
40
        if ($params [0] == 'page') {
41
        if ($params[0] == 'page'){
41
            $page = (isset ( $params [1] )) ? $params [1] : 0;
42
            $page = (isset($params[1]))?$params[1]:0;
42
        } else {
43
        }elseif ($params[0] == 'tag'){
43
            $page = $params [0];
44
            $tag = (isset($params[1]))?$params[1]:null;
44
        }
45
            $start = (isset($params[2]))?$params[2]:0;
45
    }
46
        }else{
46
}
47
            $page = $params[0];
47
 
48
        }
48
/** Decoding the parameter to certify that is the correct value **/
49
    }
49
$page = (! empty ( $page )) ? urlencode ( $page ) : null;
50
}
50
 
51
 
51
if (! empty ( $page )) {
52
if (!is_null($tag)){
52
    $page = (is_int ( $page )) ? intval ( $page ) : $page;
53
  /** Include the header that starts page rendering */
53
    $criteria = $content_content_handler->getContentsCriteria ( 0, 1, false, false, $page, false, 'content_id', 'DESC' );
54
    include ICMS_ROOT_PATH.'/header.php';
54
    $content = $content_content_handler->getObjects ( $criteria );
55
    echo list_by_tag($tag,$start);
55
    $contentObj = false;
56
    /** Include the footer that completes page rendering */
56
    foreach ( $content as $content ) {
57
    include ICMS_ROOT_PATH.'/footer.php';
57
        $contentObj = $content;
58
    exit;
58
        break;
59
}
59
    }
60
 
60
    $clean_content_id = $contentObj->getVar ( 'content_id' );
61
if(!$page)
61
}
62
{
62
 
63
    if($im_contentConfig['default_page'] != 0)
63
$xoopsOption['template_main'] = 'content_content.html';
64
    {
64
include_once ICMS_ROOT_PATH . '/header.php';
65
        $criteria = new CriteriaCompo(new Criteria('content_id', $im_contentConfig['default_page']));
65
 
66
    }
66
if (is_object ( $contentObj ) && $contentObj->accessGranted ()) {
67
    else
67
    $content_content_handler->updateCounter ( $clean_content_id );
68
    {
68
    $content = $contentObj->toArray ();
69
        $criteria = new CriteriaCompo(new Criteria('content_status', 1));
69
    $icmsTpl->assign ( 'content_content', $content );
70
        $criteria->setSort('content_id');
70
    $icmsTpl->assign ( 'showInfo', $contentConfig ['show_contentinfo'] );
71
        $criteria->setOrder('DESC');
71
    $showSubs = ($contentConfig ['show_relateds'] && $content ['content_showsubs']) ? true : false;
72
    }
72
    $icmsTpl->assign ( 'showSubs', $showSubs );
73
    $impress_content = $content_handler->getObjects($criteria);
73
    if ($contentConfig ['show_breadcrumb']) {
74
    $impress_content = (isset($impress_content[0]))?$impress_content[0]:null;
74
        $icmsTpl->assign ( 'content_category_path', $content_content_handler->getBreadcrumbForPid ( $contentObj->getVar ( 'content_id', 'e' ), 1 ) );
75
}
75
    } else {
76
else
76
        $icmsTpl->assign ( 'content_category_path', false );
77
{
77
    }
78
    $page = (is_int($page)) ? intval($page) : str_replace("-"," ", $page);
78
} else {
79
    $criteria = new CriteriaCompo(new Criteria('content_status', 1));
79
    redirect_header ( CONTENT_URL, 3, _NOPERM );
80
    $criteria->add(new Criteria('content_menu', $page,'LIKE'));
80
}
81
    $criteria->add(new Criteria('content_id', $page),'OR');
81
 
82
    $impress_content = $content_handler->getObjects($criteria);
82
if ($contentConfig ['com_rule'] && $contentObj->getVar ( 'content_cancomment' )) {
83
    $impress_content = (isset($impress_content[0]))?$impress_content[0]:null;
83
    $icmsTpl->assign ( 'content_content_comment', true );
84
}
84
    include_once ICMS_ROOT_PATH . '/include/comment_view.php';
85
if(!is_object($impress_content)) {redirect_header('index.php', 2, _CT_SELECTNG);}
85
}
86
$content_id = $impress_content->getVar('content_id');
86
 
87
$viewperm  = $gperm_handler->checkRight('content_read', $content_id, $groups); // $viewperm is true if user has permision to see this page
87
/**
88
$adminperm = $gperm_handler->checkRight('content_admin', $content_id, $uid) || (is_object($icmsUser) && count($allowed_groups) > 0); // $adminperm is true if user has permision to admin this page
88
 * Generating meta information for this page
89
if(!$viewperm) {redirect_header('index.php', 2, _NOPERM);}
89
 */
90
$myts =& MyTextSanitizer::getInstance();
90
$icms_metagen = new IcmsMetagen ( $contentObj->getVar ( 'content_title' ), $contentObj->getVar ( 'meta_keywords', 'n' ), $contentObj->getVar ( 'meta_description', 'n' ) );
91
$xoopsOption['template_main'] = 'system_content.html';
91
$icms_metagen->createMetaTags ();
92
/** Include the header file to start page rendering */
92
 
93
include ICMS_ROOT_PATH.'/header.php';
93
$xoTheme->addStylesheet ( ICMS_URL . '/modules/content/include/content.css' );
94
 
94
$icmsTpl->assign ( 'content_module_home', content_getModuleName ( true, true ) );
95
$xoTheme->addMeta('meta', 'description', $impress_content->getVar('content_seo_description'));
95
 
96
$xoTheme->addMeta('meta', 'keywords', $impress_content->getVar('content_seo_keywords'));
96
 
97
 
97
 
98
$xoopsTpl->assign("content_title", $impress_content->getVar('content_title'));
98
include_once CONTENT_ROOT_PATH.'footer.php';
99
$xoopsTpl->assign("isAdmin", $adminperm);
 
 
100
$options = '<a href="'.ICMS_URL.'/modules/system/admin.php?fct=content&amp;op=editcontent&amp;content_id='.$impress_content->getVar('content_id').'"><img src="'.ICMS_URL.'/modules/system/images/edit_big.png" title="'._CT_EDIT_CONTENT.'" alt="'._CT_EDIT_CONTENT.'" /></a>';
 
 
101
$options .= '<a href="'.ICMS_URL.'/modules/system/admin.php?fct=content&amp;op=delcontent&amp;content_id='.$impress_content->getVar('content_id').'"><img src="'.ICMS_URL.'/modules/system/images/delete_big.png" title="'._CT_DELETE_CONTENT.'" alt="'._CT_DELETE_CONTENT.'" /></a>';
 
 
102
$xoopsTpl->assign("content_admlinks", $options);
 
 
103
$member_handler =& xoops_gethandler('member');
 
 
104
$autor =& $member_handler->getUser($impress_content->getVar('content_uid'));
 
 
105
$xoopsTpl->assign("show_pinfo",$im_contentConfig['show_pinfo']);
 
 
106
$xoopsTpl->assign("content_tinfo", sprintf(_CT_PUBLISHEDBY.' <a href="'.ICMS_URL.'/userinfo.php?uid=%u">%s</a> '._CT_ON.' %s (%s '._CT_READS.')',$autor->getVar('uid'),$autor->getVar('uname'),formatTimestamp($impress_content->getVar('content_created'),"s"),icms_conv_nr2local($impress_content->getReads())));
 
 
107
$xoopsTpl->assign("content_body", $myts->displayTarea($impress_content->getVar('content_body', "n"),1,1,1,1,0));
 
 
108
$xoopsTpl->assign("content_css", icms_sanitizeContentCss($impress_content->getVar('content_css')));
 
 
109
$xoopsTpl->assign("content_tags", filter_bytags($impress_content->getVar('content_tags')));
 
 
110
$xoopsTpl->assign("lang_tags", _CT_TAGS);
 
 
111
 
 
 
112
if($im_contentConfig['show_subs'])
 
 
113
{
 
 
114
    $criteria = new Criteria('content_supid', $content_id);
 
 
115
    $subs = $content_handler->getCount($criteria);
 
 
116
    if($subs > 0)
 
 
117
    {
 
 
118
        $criteria = new CriteriaCompo(new Criteria('content_status', 1));
 
 
119
        $criteria->add(new Criteria('content_supid', $content_id));
 
 
120
        $crit = new CriteriaCompo(new Criteria('content_visibility', 2));
 
 
121
        $crit->add(new Criteria('content_visibility', 3),'OR');
 
 
122
        $criteria->add($crit);
 
 
123
        $subs = $content_handler->getObjects($criteria);
 
 
124
        foreach($subs as $sub)
 
 
125
        {
 
 
126
            $content_subs = array();
 
 
127
            $content_subs['titulo'] = $sub->getVar("content_title");
 
 
128
            $content_subs['teaser'] = icms_substr(icms_cleanTags($sub->getVar("content_body",'n'),array()),0,300);
 
 
129
            $seo = urlencode(str_replace(" ", "-",$sub->getVar('content_menu')));
 
 
130
            $content_subs['link'] = ICMS_URL.'/content.php?page='.$seo;
 
 
131
            $xoopsTpl->append("content_subs", $content_subs);
 
 
132
        }
 
 
133
        $xoopsTpl->assign('showSubs', 1);
 
 
134
        $xoopsTpl->assign('subs_label', _CT_RELATEDS);
 
 
135
    }
 
 
136
}
 
 
137
else
 
 
138
{
 
 
139
    $xoopsTpl->assign('showSubs', 0);
 
 
140
}
 
 
141
$xoopsTpl->assign('showNav',$im_contentConfig['show_nav']);
 
 
142
$xoopsTpl->assign('nav', showNav($content_id));
 
 
143
$xoopsTpl->assign("xoops_pagetitle", $impress_content->getVar('content_title'));
 
 
144
//$xoopsTpl->assign("xoops_module_header", '<link rel="stylesheet" type="text/css" media="all" title="Style sheet" href="'.ICMS_URL.'/modules/system/admin/content/style.css" />');
 
 
145
$xoTheme->addStylesheet('/modules/system/admin/content/style'.(( defined('_ADM_USE_RTL') && _ADM_USE_RTL )?'_rtl':'').'.css');
 
 
146
 
 
 
147
if(!is_object($icmsUser))
 
 
148
{
 
 
149
    $impress_content->setReads();
 
 
150
}
 
 
151
else
 
 
152
{
 
 
153
    if($icmsUser->getVar('uid') != $autor->getVar('uid')) {$impress_content->setReads();}
 
 
154
}
 
 
155
$content_handler->insert($impress_content);
 
 
156
/** Include the footer file to complete page rendering */
 
 
157
include ICMS_ROOT_PATH.'/footer.php';
 
 
158
 
 
 
159
/**
 
 
160
* List content items by tag
 
 
161
* 
 
 
162
* @param string  $tag  The tag to list the content items of
 
 
163
* @param int  $start  When the list contains more than 1 page, this is where to start the next pages
 
 
164
* 
 
 
165
* @return string  the generated list
 
 
166
*/
 
 
167
function list_by_tag($tag,$start=0){
 
 
168
    global $im_contentConfig,$groups,$uid,$xoopsTpl,$xoTheme;
 
 
169
    
 
 
170
    $myts =& MyTextSanitizer::getInstance();
 
 
171
    
 
 
172
    $gperm_handler   =& xoops_gethandler('groupperm');
 
 
173
    $content_handler =& xoops_gethandler('content');
 
 
174
    
 
 
175
    $criteria = new CriteriaCompo(new Criteria('content_status', 1));
 
 
176
    $criteria->add(new Criteria('content_tags', '%'.$tag.'%','LIKE'));
 
 
177
    $pagecount = $content_handler->getCount($criteria);
 
 
178
    $criteria->setLimit($im_contentConfig['num_pages']);
 
 
179
    $criteria->setStart($start);
 
 
180
    $pages = $content_handler->getObjects($criteria);
 
 
181
 
 
 
182
    foreach ($pages as $page){
 
 
183
        if ($gperm_handler->checkRight('content_read', $page->getVar('content_id'), $groups)){
 
 
184
            $adminperm = $gperm_handler->checkRight('content_admin', $page->getVar('content_id'), $uid);
 
 
185
            $cont = array();
 
 
186
            $cont['title'] = $page->getVar('content_title');
 
 
187
            $cont['url'] = ICMS_URL.'/content.php?page='.$content_handler->makeLink($page);
 
 
188
            $cont['isAdmin'] = $adminperm;
 
 
189
            $options = '<a href="'.ICMS_URL.'/modules/system/admin.php?fct=content&amp;op=editcontent&amp;content_id='.$page->getVar('content_id').'"><img src="'.ICMS_URL.'/modules/system/images/edit_big.png" title="'._CT_EDIT_CONTENT.'" alt="'._CT_EDIT_CONTENT.'" /></a>';
 
 
190
            $options .= '<a href="'.ICMS_URL.'/modules/system/admin.php?fct=content&amp;op=delcontent&amp;content_id='.$page->getVar('content_id').'"><img src="'.ICMS_URL.'/modules/system/images/delete_big.png" title="'._CT_DELETE_CONTENT.'" alt="'._CT_DELETE_CONTENT.'" /></a>';
 
 
191
            $cont['admlinks'] = $options;
 
 
192
            $member_handler =& xoops_gethandler('member');
 
 
193
            $autor =& $member_handler->getUser($page->getVar('content_uid'));
 
 
194
            $cont['tinfo'] = sprintf(_CT_PUBLISHEDBY.' <a href="'.ICMS_URL.'/userinfo.php?uid=%u">%s</a> '._CT_ON.' %s (%u '._CT_READS.')',$autor->getVar('uid'),$autor->getVar('uname'),formatTimestamp($page->getVar('content_created'),"s"),$page->getReads());
 
 
195
            if ($im_contentConfig['teaser_length'] > 0){
 
 
196
                $cont['body'] = icms_substr(icms_cleanTags($page->getVar("content_body",'n'),array()),0,$im_contentConfig['teaser_length']);
 
 
197
            }else{
 
 
198
                $cont['body'] = $myts->previewTarea($page->getVar('content_body', "n"),1,1,1,1,0);
 
 
199
            }
 
 
200
            $cont['tags'] = filter_bytags($page->getVar('content_tags'));
 
 
201
            $xoopsTpl->append('contents',$cont);
 
 
202
        }
 
 
203
    }
 
 
204
    
 
 
205
    if ($pagecount > 0){
 
 
206
        if ($pagecount > $im_contentConfig['num_pages']) {
 
 
207
            /** Include the page navigation class for rendering */
 
 
208
      include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
 
 
209
            $nav = new XoopsPageNav($pagecount, $im_contentConfig['num_pages'], $start, 'start','tag='.$tag);
 
 
210
            $xoopsTpl->assign('pag',$nav->renderNav());
 
 
211
        }else{
 
 
212
            $xoopsTpl->assign('pag','');
 
 
213
        }
 
 
214
    }else{
 
 
215
        $xoopsTpl->assign('pag','');
 
 
216
    }
 
 
217
    
 
 
218
    $xoopsTpl->assign("lang_tags", _CT_TAGS);
 
 
219
    $xoopsTpl->assign("show_pinfo",$im_contentConfig['show_pinfo']);
 
 
220
    
 
 
221
    $xoTheme->addStylesheet(ICMS_URL.'/modules/system/admin/content/style.css');
 
 
222
    
 
 
223
    return $xoopsTpl->fetch('db:system_content_list.html');
 
 
224
}
 
 
225
 
 
 
226
/**
 
 
227
* Filter the list by tag
 
 
228
* 
 
 
229
* @param string  $tag  the tag to filter the list on
 
 
230
* 
 
 
231
* @return string  the filtered list
 
 
232
*/
 
 
233
function filter_bytags($tags){
 
 
234
    if (!empty($tags)){
 
 
235
        $tags_arr = explode(',',$tags);
 
 
236
    }else{
 
 
237
        $tags_arr = array();
 
 
238
    }
 
 
239
 
 
 
240
    $ret = '';
 
 
241
    if (count($tags_arr) > 0){
 
 
242
        foreach ($tags_arr as $tag){
 
 
243
            $ret .= '<a href="'.ICMS_URL.'/content.php?tag='.$tag.'">'.$tag.'</a>, ';
 
 
244
        }
 
 
245
        $ret = substr($ret,0,strlen($ret)-2);
 
 
246
    }
 
 
247
    return $ret;
 
 
248
}
 
 
249
?>
99
?>
92049205
33
INSERT INTO smiles VALUES (17, ':idea:', 'smil3dbd4e7853679.gif', 'I have an idea', 0);
33
INSERT INTO smiles VALUES (17, ':idea:', 'smil3dbd4e7853679.gif', 'I have an idea', 0);
34
 
34
 
35
#
35
#
36
# Dumping data for table `icmscontent`
 
 
37
#
 
 
38
 
 
 
39
INSERT INTO icmscontent VALUES (1, 1, 0, 1, 'Welcome to ImpressCMS', 'What is ImpressCMS?', '<h1>What is ImpressCMS?</h1>\r\n<p>ImpressCMS is a community developed Content Management System. With this tool maintaining the content of a website becomes as easy as writing a word document. ImpressCMS is the ideal tool for a wide range of users: from business to community users, from large enterprises to people who want a simple, easy to use blogging tool. ImpressCMS is a powerful system that gets outstanding results and it is free!</p>\r\n<p><strong>What can you do with it?</strong></p>\r\n<p>ImpressCMS can be used for many types of web sites. The system is highly scalable and it can be used for example as an intranet for a company with 20,000 employees as well as for building a simple 5-page website for the promotion of your company. The system is extremely useful for managing online communities because it has the ability to create user groups and assign permissions for managing content to each different group.</p>\r\n<p>For each type of website ImpressCMS offers different functionality with a collection of hundreds of free modules available on http://addons.impresscms.org. A few examples of what you can do with them:</p>\r\n<div id="xo-content">\r\n<li>Publish news of your organization</li>\r\n<li>Let visitors contact you through a state of the art customizable contact form</li>\r\n<li>Create and manage articles</li>\r\n<li>Add a forum to your site</li>\r\n<li>Sell products through your web site using an online store</li>\r\n<li>...and many more</li>\r\n<p><strong>List of key features:</strong></p>\r\n<table style="border-color: #000000; padding: 2pt; background-color: #ffeeee;" border="0">\r\n<tbody>\r\n<tr>\r\n<td>\r\n<p><strong>Database-driven </strong></p>\r\n<p>ImpressCMS uses a database to store the data required for running your ImpressCMS site. MySQL is currently supported. Support for other DBMS''s is coming soon.</p>\r\n<p><strong>Fully modularized </strong></p>\r\n<p>Website content is managed by separate content modules/web applications. Simply install the module which has the features you need: a news module, forum module, photo album module, there are many many third party modules to choose from.</p>\r\n<p><strong>User Management</strong></p>\r\n<li style="list-style-type: circle; list-style-image: none; list-style-position: inside; margin-left: 24px;"><strong>Optional user registration</strong>: Registered users are authenticated using the standard ImpressCMS system, or by using LDAP.</li>\r\n<li style="list-style-type: circle; list-style-image: none; list-style-position: inside; margin-left: 24px;"><strong>Security</strong>: IP banning, restricting content by group, backend security features for database manipulation, security token system for form validation and more.</li>\r\n<li style="list-style-type: circle; list-style-image: none; list-style-position: inside; margin-left: 24px;"><strong>Personalization</strong>: Registered users can edit their profiles, select site themes, upload custom avatars, and much more!</li>\r\n<li style="list-style-type: circle; list-style-image: none; list-style-position: inside; margin-left: 24px;"><strong>Versatile Group Permissions System</strong>: Powerful and user-friendly permissions system which enables administrators to set permissions by group.</li>\r\n<p><strong>Supported World-wide</strong></p>\r\n<p>ImpressCMS was created and is maintained by a team of hard-working volunteers working from all over the world. The ImpressCMS community has support sites around the world for support of non-English speaking users.</p>\r\n<p><strong>Multi-byte Language Support</strong></p>\r\n<p>Fully supports multi-byte languages, including Japanese, Simplified and Traditional Chinese, Korean, etc.</p>\r\n<p><strong>Theme-based skinnable interface</strong></p>\r\n<p>ImpressCMS is driven by a powerful theme system. Both admins and users can change the look of the entire web site with just a click of a mouse. There are also hundreds of quality themes available for download!</p>\r\n</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n</div>', '.content_nav {\r\n    padding:3px;\r\n}\r\n\r\n#content_header {\r\n    padding: 0;\r\n    margin:0;\r\n}\r\n\r\n.content_title_admlinks {\r\n    padding: 0;\r\n    padding-bottom:2px;\r\n    margin:0;\r\n    font-size: 18px;\r\n    float:right;\r\n}\r\n\r\nh1.content_title {\r\n    padding: 0;\r\n    padding-bottom:2px;\r\n    margin:0;\r\n    font-size: 18px;\r\n    border-bottom: 1px solid #333333;\r\n}\r\n\r\nh2.content_title_info {\r\n    height: 15px;\r\n    padding: 2px;\r\n    margin: 0;\r\n    background: #efefef;\r\n    font-size: 11px;\r\n    font-style:italic;\r\n    font-weight:normal;\r\n    text-align: right;\r\n}\r\n\r\n.content_body {\r\n   padding:5px;\r\n}\r\n\r\n.content_tags {\r\n   padding:5px;\r\n   background: #efefef;\r\n   font-size: 11px;\r\n}\r\n\r\n#content_subs {\r\n   margin-top: 5px;\r\n}\r\n\r\n.content_subs_header {\r\n    padding: 0;\r\n    margin:0;\r\n    font-size: 14px;\r\n    font-weight: bold;\r\n}\r\n\r\n.content_subs_item {}\r\n.content_subs_item even {}\r\n.content_subs_item odd {}\r\nh3.content_subs_item_title {}\r\n.content_subs_item_teaser{\r\n    font-style:italic;\r\n}', 'ImpressCMS', 3, 1213474318, 1213474318, 0, 0, 1,'','');
 
 
40
 
 
 
41
#
 
 
42
# Dumping data for table `icmspage`
36
# Dumping data for table `icmspage`
43
#
37
#
44
 
38
 
...
 
...
 
49
INSERT INTO icmspage VALUES (5, 1, 'Blocks Admin', 'modules/system/admin.php?fct=blocksadmin*', 1);
43
INSERT INTO icmspage VALUES (5, 1, 'Blocks Admin', 'modules/system/admin.php?fct=blocksadmin*', 1);
50
INSERT INTO icmspage VALUES (6, 1, 'Block Positions', 'modules/system/admin.php?fct=blockspadmin*', 1);
44
INSERT INTO icmspage VALUES (6, 1, 'Block Positions', 'modules/system/admin.php?fct=blockspadmin*', 1);
51
INSERT INTO icmspage VALUES (7, 1, 'Comments', 'modules/system/admin.php?fct=comments*', 1);
45
INSERT INTO icmspage VALUES (7, 1, 'Comments', 'modules/system/admin.php?fct=comments*', 1);
52
INSERT INTO icmspage VALUES (8, 1, 'Content Manager [Core version]', 'modules/system/admin.php?fct=content*', 1);
 
 
53
INSERT INTO icmspage VALUES (9, 1, 'Find Users', 'modules/system/admin.php?fct=findusers*', 1);
46
INSERT INTO icmspage VALUES (9, 1, 'Find Users', 'modules/system/admin.php?fct=findusers*', 1);
54
INSERT INTO icmspage VALUES (10, 1, 'Custom Tag', 'modules/system/admin.php?fct=customtag*', 1);
47
INSERT INTO icmspage VALUES (10, 1, 'Custom Tag', 'modules/system/admin.php?fct=customtag*', 1);
55
INSERT INTO icmspage VALUES (11, 1, 'Groups', 'modules/system/admin.php?fct=groups*', 1);
48
INSERT INTO icmspage VALUES (11, 1, 'Groups', 'modules/system/admin.php?fct=groups*', 1);
92049205
69
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",14,1,'system_admin')");
69
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",14,1,'system_admin')");
70
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",15,1,'system_admin')");
70
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",15,1,'system_admin')");
71
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",16,1,'system_admin')");
71
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",16,1,'system_admin')");
72
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",17,1,'system_admin')");
 
 
73
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",18,1,'system_admin')");
72
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",18,1,'system_admin')");
74
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",19,1,'system_admin')");
73
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",19,1,'system_admin')");
75
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",20,1,'system_admin')");
74
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",20,1,'system_admin')");
...
 
...
 
76
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",1,1,'group_manager')");
75
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",1,1,'group_manager')");
77
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",2,1,'group_manager')");
76
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",2,1,'group_manager')");
78
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",3,1,'group_manager')");
77
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",3,1,'group_manager')");
79
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",1,1,'content_read')");
 
 
80
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_USERS'].",1,1,'content_read')");
 
 
81
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ANONYMOUS'].",1,1,'content_read')");
 
 
82
    $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",1,1,'content_admin')");
 
 
83
    $dbm->insert("group_permission", "
VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",1,1,'use_wysiwygeditor')");
78
    $dbm->insert("group_permission", "
VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",1,1,'use_wysiwygeditor')");
84
    // data for table 'banner'
79
    // data for table 'banner'
85
 
80
 
...
 
...
 
239
        $dbm->insert('config', " VALUES ($i, 0, $c, 'language', '_MD_AM_LANGUAGE',
'".addslashes($language)."', '_MD_AM_LANGUAGEDSC', 'language', 'other', $p)");
234
        $dbm->insert('config', " VALUES ($i, 0, $c, 'language', '_MD_AM_LANGUAGE',
'".addslashes($language)."', '_MD_AM_LANGUAGEDSC', 'language', 'other', $p)");
240
    $i++;
235
    $i++;
241
    $p++;
236
    $p++;
242
        $dbm->insert('config', " VALUES ($i, 0, $c, 'startpage', '_MD_AM_STARTPAGE', 'a:3:{i:1;s:3:\"1-1\";i:2;s:3:\"1-1\";i:3;s:3:\"1-1\";}', '_MD_AM_STARTPAGEDSC', 'startpage', 'array', $p)");
237
        $dbm->insert('config', " VALUES ($i, 0, $c, 'startpage', '_MD_AM_STARTPAGE', 'a:3:{i:1;s:2:\"--\";i:2;s:2:\"--\";i:3;s:2:\"--\";}', '_MD_AM_STARTPAGEDSC', 'startpage', 'array', $p)");
243
    $i++;
238
    $i++;
244
    $p++;
239
    $p++;
245
        $dbm->insert('config', " VALUES ($i, 0, $c, 'server_TZ', '_MD_AM_SERVERTZ', '0',
'_MD_AM_SERVERTZDSC', 'timezone', 'float', $p)");
240
        $dbm->insert('config', " VALUES ($i, 0, $c, 'server_TZ', '_MD_AM_SERVERTZ', '0',
'_MD_AM_SERVERTZDSC', 'timezone', 'float', $p)");
...
 
...
 
773
    $p++;
768
    $p++;
774
    $dbm->insert('config', " VALUES ($i, 0, $c,'ml_charset', '_MD_AM_ML_CHARSET', 'UTF-8,UTF-8',
'_MD_AM_ML_CHARSETDSC', 'textbox', 'text', $p)");
769
    $dbm->insert('config', " VALUES ($i, 0, $c,'ml_charset', '_MD_AM_ML_CHARSET', 'UTF-8,UTF-8',
'_MD_AM_ML_CHARSETDSC', 'textbox', 'text', $p)");
775
 
770
 
776
    // Data for Config Category 9 (Content Manager Settings)
 
 
777
    $c=9; // sets config category id
 
 
778
    $i++;
 
 
779
    $p=0;
 
 
780
    $dbm->insert('config', " VALUES ($i, 0, $c, 'default_page', '_MD_AM_DEFAULT_CONTPAGE', '0', '_MD_AM_DEFAULT_CONTPAGEDSC', 'select_pages', 'int', $p)");
 
 
781
    $i++;
 
 
782
    $p++;
 
 
783
    $dbm->insert('config', " VALUES ($i, 0, $c, 'show_nav', '_MD_AM_CONT_SHOWNAV', '1', '_MD_AM_CONT_SHOWNAVDSC', 'yesno', 'int', $p)");
 
 
784
    $i++;
 
 
785
    $p++;
 
 
786
    $dbm->insert('config', " VALUES ($i, 0, $c, 'show_subs', '_MD_AM_CONT_SHOWSUBS', '1', '_MD_AM_CONT_SHOWSUBSDSC', 'yesno', 'int', $p)");
 
 
787
    $i++;
 
 
788
    $p++;
 
 
789
    $dbm->insert('config', " VALUES ($i, 0, $c, 'show_pinfo', '_MD_AM_CONT_SHOWPINFO', '1', '_MD_AM_CONT_SHOWPINFODSC', 'yesno', 'int', $p)");
 
 
790
    $i++;
 
 
791
    $p++;
 
 
792
    $dbm->insert('config', " VALUES ($i, 0, $c, 'num_pages', '_MD_AM_CONT_NUMPAGES', '10', '_MD_AM_CONT_NUMPAGESDSC', 'textbox', 'int', $p)");
 
 
793
    $i++;
 
 
794
    $p++;
 
 
795
    $dbm->insert('config', " VALUES ($i, 0, $c, 'teaser_length', '_MD_AM_CONT_TEASERLENGTH', '500', '_MD_AM_CONT_TEASERLENGTHDSC', 'textbox', 'int', $p)");
 
 
796
 
 
 
797
 
 
 
798
    // Data for Config Category 10 (Personalization Settings)
771
    // Data for Config Category 10 (Personalization Settings)
799
    $c=10; // sets config category id
772
    $c=10; // sets config category id
800
    $i++;
773
    $i++;
92049205
57
INSERT INTO configcategory VALUES (6, '_MD_AM_MAILER', 0);
57
INSERT INTO configcategory VALUES (6, '_MD_AM_MAILER', 0);
58
INSERT INTO configcategory VALUES (7, '_MD_AM_AUTHENTICATION', 0);
58
INSERT INTO configcategory VALUES (7, '_MD_AM_AUTHENTICATION', 0);
59
INSERT INTO configcategory VALUES (8, '_MD_AM_MULTILANGUAGE', 0);
59
INSERT INTO configcategory VALUES (8, '_MD_AM_MULTILANGUAGE', 0);
60
INSERT INTO configcategory VALUES (9, '_MD_AM_CONTMANAGER', 0);
 
 
61
INSERT INTO configcategory VALUES (10, '_MD_AM_PERSON', 0);
60
INSERT INTO configcategory VALUES (10, '_MD_AM_PERSON', 0);
62
INSERT INTO configcategory VALUES (11, '_MD_AM_CAPTCHA', 0);
61
INSERT INTO configcategory VALUES (11, '_MD_AM_CAPTCHA', 0);
63
INSERT INTO configcategory VALUES (12, '_MD_AM_PLUGINS', 0);
62
INSERT INTO configcategory VALUES (12, '_MD_AM_PLUGINS', 0);
92049205
154
# --------------------------------------------------------
154
# --------------------------------------------------------
155
 
155
 
156
#
156
#
157
# Table structure for table icmscontent
 
 
158
#
 
 
159
CREATE TABLE icmscontent (
 
 
160
  content_id mediumint(8) unsigned NOT NULL auto_increment,
 
 
161
  content_catid mediumint(8) unsigned NOT NULL default '1',
 
 
162
  content_supid mediumint(8) unsigned NOT NULL default '0',
 
 
163
  content_uid mediumint(5) NOT NULL default '1',
 
 
164
  content_title varchar(255) NOT NULL default '',
 
 
165
  content_menu varchar(100) default NULL,
 
 
166
  content_body text,
 
 
167
  content_css text,
 
 
168
  content_tags text,
 
 
169
  content_visibility int(10) NOT NULL default '3',
 
 
170
  content_created int(10) NOT NULL default '0',
 
 
171
  content_updated int(10) NOT NULL default '0',
 
 
172
  content_weight smallint(5) unsigned NOT NULL default '0',
 
 
173
  content_reads int(11) NOT NULL default '0',
 
 
174
  content_status tinyint(1) unsigned NOT NULL default '0',
 
 
175
  content_seo_description text,
 
 
176
  content_seo_keywords text,
 
 
177
  PRIMARY KEY  (content_id)
 
 
178
) TYPE=MyISAM;
 
 
179
# --------------------------------------------------------
 
 
180
 
 
 
181
#
 
 
182
# Table structure for table icmspage
157
# Table structure for table icmspage
183
#
158
#
184
CREATE TABLE icmspage (
159
CREATE TABLE icmspage (
...
 
...
 
729
  KEY sat_interval (sat_interval),
704
  KEY sat_interval (sat_interval),
730
  KEY sat_lastruntime (sat_lastruntime),
705
  KEY sat_lastruntime (sat_lastruntime),
731
  KEY sat_type (sat_type)
706
  KEY sat_type (sat_type)
732
);
707
);
92049205
49
INSERT INTO configcategory VALUES (6, '_MD_AM_MAILER', 0);
49
INSERT INTO configcategory VALUES (6, '_MD_AM_MAILER', 0);
50
INSERT INTO configcategory VALUES (7, '_MD_AM_AUTHENTICATION', 0);
50
INSERT INTO configcategory VALUES (7, '_MD_AM_AUTHENTICATION', 0);
51
INSERT INTO configcategory VALUES (8, '_MD_AM_MULTILANGUAGE', 0);
51
INSERT INTO configcategory VALUES (8, '_MD_AM_MULTILANGUAGE', 0);
52
INSERT INTO configcategory VALUES (9, '_MD_AM_CONTMANAGER', 0);
 
 
53
INSERT INTO configcategory VALUES (10, '_MD_AM_PERSON', 0);
52
INSERT INTO configcategory VALUES (10, '_MD_AM_PERSON', 0);
54
INSERT INTO configcategory VALUES (11, '_MD_AM_CAPTCHA', 0);
53
INSERT INTO configcategory VALUES (11, '_MD_AM_CAPTCHA', 0);
55
INSERT INTO configcategory VALUES (12, '_MD_AM_PLUGINS', 0);
54
INSERT INTO configcategory VALUES (12, '_MD_AM_PLUGINS', 0);
92049205
154
# --------------------------------------------------------
154
# --------------------------------------------------------
155
 
155
 
156
#
156
#
157
# Table structure for table icmscontent
 
 
158
#
 
 
159
CREATE TABLE icmscontent (
 
 
160
  content_id mediumint(8) unsigned NOT NULL auto_increment,
 
 
161
  content_catid mediumint(8) unsigned NOT NULL default '1',
 
 
162
  content_supid mediumint(8) unsigned NOT NULL default '0',
 
 
163
  content_uid mediumint(5) NOT NULL default '1',
 
 
164
  content_title varchar(255) NOT NULL default '',
 
 
165
  content_menu varchar(100) default NULL,
 
 
166
  content_body text,
 
 
167
  content_css text,
 
 
168
  content_tags text,
 
 
169
  content_visibility int(10) NOT NULL default '3',
 
 
170
  content_created int(10) NOT NULL default '0',
 
 
171
  content_updated int(10) NOT NULL default '0',
 
 
172
  content_weight smallint(5) unsigned NOT NULL default '0',
 
 
173
  content_reads int(11) NOT NULL default '0',
 
 
174
  content_status tinyint(1) unsigned NOT NULL default '0',
 
 
175
  content_seo_description text,
 
 
176
  content_seo_keywords text,
 
 
177
  PRIMARY KEY  (content_id)
 
 
178
) TYPE=MyISAM;
 
 
179
# --------------------------------------------------------
 
 
180
 
 
 
181
#
 
 
182
# Table structure for table icmspage
157
# Table structure for table icmspage
183
#
158
#
184
CREATE TABLE icmspage (
159
CREATE TABLE icmspage (
92049205
22
define("_CO_CONTENT_CONTENT_CONTENT_BODY", "Content Body");
22
define("_CO_CONTENT_CONTENT_CONTENT_BODY", "Content Body");
23
define("_CO_CONTENT_CONTENT_CONTENT_BODY_DSC", " ");
23
define("_CO_CONTENT_CONTENT_CONTENT_BODY_DSC", " ");
24
define("_CO_CONTENT_CONTENT_CONTENT_CSS", "Custom CSS");
24
define("_CO_CONTENT_CONTENT_CONTENT_CSS", "Custom CSS");
25
define("_CO_CONTENT_CONTENT_CONTENT_CSS_DSC", 'If you want to personalize the visual of the page you can define here some css styles for this purpose. <br />Click <a href="javascript:openWithSelfMain(\''.ICMS_URL.'/modules/system/admin/content/images/content-help.png\', \'content_help\', 1000, 600);">here</a> to see the css classes and Ids avaliable.<br />Recommended only for advanced users.');
25
define("_CO_CONTENT_CONTENT_CONTENT_CSS_DSC", 'If you want to personalize the visual of the page you can define here some css styles for this
purpose. <br />Click <a href="javascript:openWithSelfMain(\''.ICMS_URL.'/modules/content/images/content-help.png\',
\'content_help\', 1000, 600);">here</a> to see the css classes and Ids avaliable.<br />Recommended only for advanced
users.');
26
define("_CO_CONTENT_CONTENT_CONTENT_TAGS", "Tags");
26
define("_CO_CONTENT_CONTENT_CONTENT_TAGS", "Tags");
27
define("_CO_CONTENT_CONTENT_CONTENT_TAGS_DSC", 'Separate the tags with "<font color=red>,</font>"');
27
define("_CO_CONTENT_CONTENT_CONTENT_TAGS_DSC", 'Separate the tags with "<font color=red>,</font>"');
28
define("_CO_CONTENT_CONTENT_CONTENT_VISIBILITY", "Show link in");
28
define("_CO_CONTENT_CONTENT_CONTENT_VISIBILITY", "Show link in");
92049205
30
define('XOOPS_SYSTEM_COMMENT', 14);
30
define('XOOPS_SYSTEM_COMMENT', 14);
31
define('XOOPS_SYSTEM_TPLSET', 15);
31
define('XOOPS_SYSTEM_TPLSET', 15);
32
define('XOOPS_SYSTEM_VERSION', 16);
32
define('XOOPS_SYSTEM_VERSION', 16);
33
if(is_dir(ICMS_ROOT_PATH.'/modules/system/admin/content')){
 
 
34
    define('XOOPS_SYSTEM_CONTENT', 17);
 
 
35
}
 
 
36
define('XOOPS_SYSTEM_BLOCKP', 18);
33
define('XOOPS_SYSTEM_BLOCKP', 18);
37
define('XOOPS_SYSTEM_PAGES', 19);
34
define('XOOPS_SYSTEM_PAGES', 19);
38
define('XOOPS_SYSTEM_CUSTOMTAGS', 20);
35
define('XOOPS_SYSTEM_CUSTOMTAGS', 20);
92049205
79
$modversion['onUpdate'] = "include/update.php";
79
$modversion['onUpdate'] = "include/update.php";
80
 
80
 
81
/** Search information */
81
/** Search information */
82
$modversion['hasSearch'] = true;
82
$modversion['hasSearch'] = false;
83
$modversion['search'] = array (
 
 
84
    'file' => "include/search.inc.php",
 
 
85
    'func' => "search_content");
 
 
86
 
83
 
87
/** Menu information */
84
/** Menu information */
88
$modversion['hasMain'] = false;
85
$modversion['hasMain'] = false;
...
 
...
 
192
    'template' => 'system_block_multilanguage.html');
189
    'template' => 'system_block_multilanguage.html');
193
 
190
 
194
$modversion['blocks'][] = array(
191
$modversion['blocks'][] = array(
195
    'file' => 'content_blocks.php',
 
 
196
    'name' => _MI_SYSTEM_BNAME15,
 
 
197
    'description' => '',
 
 
198
    'show_func' => 'b_content_show',
 
 
199
    'edit_func' => 'b_content_edit',
 
 
200
    'options' => '1|1|1|1',
 
 
201
    'template' => 'system_block_content.html');
 
 
202
 
 
 
203
$modversion['blocks'][] = array(
 
 
204
    'file' => 'content_blocks.php',
 
 
205
    'name' => _MI_SYSTEM_BNAME16,
 
 
206
    'description' => '',
 
 
207
    'show_func' => 'b_content_menu_show',
 
 
208
    'edit_func' => 'b_content_menu_edit',
 
 
209
    'options' => 'content_weight|ASC|1|#F2E2A0|0',
 
 
210
    'template' => 'system_block_contentmenu.html');
 
 
211
 
 
 
212
$modversion['blocks'][] = array(
 
 
213
    'file' => 'content_blocks.php',
 
 
214
    'name' => _MI_SYSTEM_BNAME17,
 
 
215
    'description' => '',
 
 
216
    'show_func' => 'b_content_relmenu_show',
 
 
217
    'edit_func' => 'b_content_relmenu_edit',
 
 
218
    'options' => 'content_weight|ASC|1',
 
 
219
    'template' => 'system_block_contentmenu.html');
 
 
220
 
 
 
221
$modversion['blocks'][] = array(
 
 
222
    'file' => 'social_bookmarks.php',
192
    'file' => 'social_bookmarks.php',
223
    'name' => _MI_SYSTEM_BNAME18,
193
    'name' => _MI_SYSTEM_BNAME18,
224
    'description' => '',
194
    'description' => '',
...
 
...
 
422
    'file' => 'admin/mimetype/system_adm_mimetype.html',
392
    'file' => 'admin/mimetype/system_adm_mimetype.html',
423
    'description' => '');
393
    'description' => '');
424
 
394
 
425
if(is_dir(ICMS_ROOT_PATH.'/modules/system/admin/content')){
 
 
426
$modversion['templates'][] = array(
395
$modversion['templates'][] = array(
427
    'file' => 'blocks/system_block_contentmenu_structure.html',
 
 
428
    'description' => '');
 
 
429
 
 
 
430
$modversion['templates'][] = array(
 
 
431
    'file' => 'admin/content/system_adm_contentmanager_index.html',
 
 
432
    'description' => '');
 
 
433
 
 
 
434
$modversion['templates'][] = array(
 
 
435
    'file' => 'system_content_list.html',
 
 
436
    'description' => '');
 
 
437
 
 
 
438
$modversion['templates'][] = array(
 
 
439
    'file' => 'system_content.html',
 
 
440
    'description' => '');
 
 
441
}
 
 
442
 
 
 
443
$modversion['templates'][] = array(
 
 
444
    'file' => 'admin/userrank/system_adm_userrank.html',
396
    'file' => 'admin/userrank/system_adm_userrank.html',
445
    'description' => '');
397
    'description' => '');
446
 
398
 
92049205
22
define('_MD_AM_AVATARS', 'Avatars');
22
define('_MD_AM_AVATARS', 'Avatars');
23
define('_MD_AM_TPLSETS', 'Templates');
23
define('_MD_AM_TPLSETS', 'Templates');
24
define('_MD_AM_COMMENTS', 'Comments');
24
define('_MD_AM_COMMENTS', 'Comments');
25
define('_MD_AM_CONTENT', 'Content Manager');
 
 
26
define('_MD_AM_BKPOSAD','Block Positions');
25
define('_MD_AM_BKPOSAD','Block Positions');
27
define('_MD_AM_PAGES','Symlink Manager');
26
define('_MD_AM_PAGES','Symlink Manager');
28
define('_MD_AM_CUSTOMTAGS', 'Custom Tags');
27
define('_MD_AM_CUSTOMTAGS', 'Custom Tags');
92049205
44
define('_MB_SYSTEM_REMEMBERME', 'Remember me');
44
define('_MB_SYSTEM_REMEMBERME', 'Remember me');
45
define("_MB_SYSTEM_PRIVPOLICY", "Privacy Policy");
45
define("_MB_SYSTEM_PRIVPOLICY", "Privacy Policy");
46
 
46
 
47
//Content Manager
 
 
48
define("_MB_SYSTEM_SHOWSUBS", "Show sub-pages?");
 
 
49
define("_MB_SYSTEM_SHOWNAV", "Show navigation menu?");
 
 
50
define("_MB_SYSTEM_SHOWPINFO", "Show poster and published infos?");
 
 
51
define("_MB_SYSTEM_SORT", "Sort");
 
 
52
define("_MB_SYSTEM_ORDER", "Order");
 
 
53
define("_MB_SYSTEM_SELCOLOR", "Background color of the selected item: ");
 
 
54
define("_MB_SYSTEM_PAGE", "Page to show");
 
 
55
if (!defined('_CT_EDIT_CONTENT')){define('_CT_EDIT_CONTENT','Edit Content');}
 
 
56
if (!defined('_CT_DELETE_CONTENT')){define('_CT_DELETE_CONTENT','Delete Content');}
 
 
57
if (!defined('_CT_PUBLISHEDBY')){define('_CT_PUBLISHEDBY','Published by');}
 
 
58
if (!defined('_CT_READS')){define('_CT_READS','reads');}
 
 
59
if (!defined('_CT_ON')){define('_CT_ON','on');}
 
 
60
/*
47
/*
61
 * Added in 1.2
48
 * Added in 1.2
62
 */
49
 */
92049205
24
define('_MI_SYSTEM_BNAME13', "Themes");
24
define('_MI_SYSTEM_BNAME13', "Themes");
25
define('_MI_SYSTEM_BNAME14', "Language Selection");
25
define('_MI_SYSTEM_BNAME14', "Language Selection");
26
 
26
 
27
//Content Manager
 
 
28
define('_MI_SYSTEM_BNAME15', "Content");
 
 
29
define('_MI_SYSTEM_BNAME16', "Content Menu");
 
 
30
define('_MI_SYSTEM_BNAME17', "Related Content");
 
 
31
define('_MI_SYSTEM_BNAME18', "Share this page!");
27
define('_MI_SYSTEM_BNAME18', "Share this page!");
32
 
28
 
33
// Names of admin menu items
29
// Names of admin menu items
...
 
...
 
47
define("_MI_SYSTEM_ADMENU16", "Comments");
43
define("_MI_SYSTEM_ADMENU16", "Comments");
48
// Version Added
44
// Version Added
49
define("_MI_SYSTEM_ADMENU17", "Version");
45
define("_MI_SYSTEM_ADMENU17", "Version");
50
define("_MI_SYSTEM_ADMENU18", "Content Manager");
 
 
51
define("_MI_SYSTEM_ADMENU19", "Block Positions");
46
define("_MI_SYSTEM_ADMENU19", "Block Positions");
52
define("_MI_SYSTEM_ADMENU20", "Symlink Manager");
47
define("_MI_SYSTEM_ADMENU20", "Symlink Manager");
53
define("_MI_SYSTEM_ADMENU21", "Custom Tags");
48
define("_MI_SYSTEM_ADMENU21", "Custom Tags");
92049205
119
$adminmenu[$i]['icon'] = "admin/version/images/version.png";
119
$adminmenu[$i]['icon'] = "admin/version/images/version.png";
120
$adminmenu[$i]['small'] = "admin/version/images/version_small.png";
120
$adminmenu[$i]['small'] = "admin/version/images/version_small.png";
121
$adminmenu[$i]['id'] = XOOPS_SYSTEM_VERSION;
121
$adminmenu[$i]['id'] = XOOPS_SYSTEM_VERSION;
122
if(is_dir(ICMS_ROOT_PATH.'/modules/system/admin/content')){
 
 
123
$i++;
122
$i++;
124
$adminmenu[$i]['title'] = _MI_SYSTEM_ADMENU18;
 
 
125
$adminmenu[$i]['link'] = "admin.php?fct=content";
 
 
126
$adminmenu[$i]['icon'] = "admin/content/images/content.png";
 
 
127
$adminmenu[$i]['small'] = "admin/content/images/content_small.png";
 
 
128
$adminmenu[$i]['id'] = XOOPS_SYSTEM_CONTENT;
 
 
129
}
 
 
130
$i++;
 
 
131
$adminmenu[$i]['title'] = _MI_SYSTEM_ADMENU19;
123
$adminmenu[$i]['title'] = _MI_SYSTEM_ADMENU19;
132
$adminmenu[$i]['link'] = "admin.php?fct=blockspadmin";
124
$adminmenu[$i]['link'] = "admin.php?fct=blockspadmin";
133
$adminmenu[$i]['icon'] = "admin/blockspadmin/images/blockspadmin.png";
125
$adminmenu[$i]['icon'] = "admin/blockspadmin/images/blockspadmin.png";