| [1] | 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * XPressME - WordPress for XOOPS |
|---|
| 4 | * |
|---|
| 5 | * Adding multi-author features to XPress |
|---|
| 6 | * |
|---|
| 7 | * @copyright toemon |
|---|
| 8 | * @license GNU public license |
|---|
| [193] | 9 | * @author "toemon ( http://ja.xpressme.info)" |
|---|
| [1] | 10 | * @package module::xpressme |
|---|
| 11 | */ |
|---|
| 12 | |
|---|
| 13 | if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ; |
|---|
| 14 | |
|---|
| 15 | $mydirpath = dirname(__FILE__); |
|---|
| 16 | $mydirname = basename($mydirpath); |
|---|
| 17 | |
|---|
| 18 | $lang = @$GLOBALS["xoopsConfig"]['language']; |
|---|
| 19 | |
|---|
| 20 | // language file (modinfo.php) |
|---|
| 21 | |
|---|
| 22 | if( file_exists( $mydirpath .'/language/'.$lang.'/modinfo.php' ) ) { |
|---|
| 23 | include_once $mydirpath .'/language/'.$lang.'/modinfo.php' ; |
|---|
| 24 | } else if( file_exists( $mydirpath .'/language/english/modinfo.php' ) ) { |
|---|
| 25 | include_once $mydirpath .'/language/english/modinfo.php' ; |
|---|
| 26 | } |
|---|
| 27 | global $wp_db_version,$wp_version; |
|---|
| 28 | |
|---|
| 29 | include $mydirpath .'/wp-includes/version.php' ; |
|---|
| 30 | |
|---|
| [183] | 31 | $modversion['name'] = ucfirst($mydirname) . ' ' . constant('_MI_XP2_NAME') ; |
|---|
| 32 | $modversion['description'] = constant( '_MI_XP2_DESC'); |
|---|
| [252] | 33 | $modversion['version'] = "2.10"; |
|---|
| [193] | 34 | $modversion['credits'] = "Wordpress DEV (http://wordpress.org/) XPressME DEV Toemon) (http://ja.xpressme.info) ;"; |
|---|
| 35 | $modversion['author'] = "toemon (http://ja.xpressme.info)"; |
|---|
| [1] | 36 | $modversion['license'] = "GPL see LICENSE"; |
|---|
| [30] | 37 | $modversion['official'] = 0 ; |
|---|
| [1] | 38 | $modversion['image'] = 'module_icon.php' ; |
|---|
| 39 | $modversion['dirname'] = $mydirname; |
|---|
| 40 | |
|---|
| 41 | // status |
|---|
| [275] | 42 | $modversion['codename'] = "Bata-3(r275)"; |
|---|
| [1] | 43 | |
|---|
| 44 | // onInstall, onUpdate, onUninstall |
|---|
| 45 | $modversion['onInstall'] = 'include/oninstall.php' ; |
|---|
| 46 | $modversion['onUpdate'] = 'include/onupdate.php' ; |
|---|
| 47 | $modversion['onUninstall'] = 'include/onuninstall.php' ; |
|---|
| 48 | |
|---|
| 49 | // Sql file (must contain sql generated by phpMyAdmin or phpPgAdmin) |
|---|
| 50 | //$modversion['sqlfile']['mysql'] = "sql/mysql.sql"; |
|---|
| 51 | |
|---|
| 52 | $db_prefix = $mydirname; |
|---|
| 53 | if ($mydirname == 'wordpress') { |
|---|
| 54 | $db_prefix = 'wp'; |
|---|
| 55 | } |
|---|
| [122] | 56 | |
|---|
| [188] | 57 | /* |
|---|
| 58 | * Table information is not described. |
|---|
| 59 | * |
|---|
| 60 | * The create of the table is do with oninstall.php. |
|---|
| 61 | * The drop of the table is do with onuninstall.php. |
|---|
| 62 | * |
|---|
| 63 | * $modversion['tables'] = array( ,,,); |
|---|
| 64 | */ |
|---|
| [1] | 65 | |
|---|
| 66 | |
|---|
| 67 | // Search |
|---|
| [30] | 68 | $modversion['hasSearch'] = 1 ; |
|---|
| 69 | $modversion['search']['file'] = 'include/search.php' ; |
|---|
| 70 | $modversion['search']['func'] = $mydirname.'_global_search' ; |
|---|
| [1] | 71 | //Admin things |
|---|
| [61] | 72 | $modversion['hasAdmin'] = 1; |
|---|
| 73 | $modversion['adminindex'] = "admin/index.php"; |
|---|
| 74 | $modversion['adminmenu'] = "admin/menu.php"; |
|---|
| [1] | 75 | |
|---|
| 76 | $modversion['hasMain'] = 1; |
|---|
| [162] | 77 | |
|---|
| 78 | |
|---|
| [1] | 79 | if(is_object($GLOBALS["xoopsUser"])){ |
|---|
| [162] | 80 | global $current_user; |
|---|
| 81 | if (@$current_user->user_level > 0) { |
|---|
| [183] | 82 | $modversion['sub'][1]['name'] = constant( '_MI_XP2_MENU_POST_NEW'); |
|---|
| [252] | 83 | if ($wp_db_version > 5000) |
|---|
| 84 | $modversion['sub'][1]['url'] = "wp-admin/post-new.php"; |
|---|
| 85 | else |
|---|
| 86 | $modversion['sub'][1]['url'] = "wp-admin/post.php"; |
|---|
| [183] | 87 | $modversion['sub'][2]['name'] = constant( '_MI_XP2_MENU_EDIT'); |
|---|
| [1] | 88 | $modversion['sub'][2]['url'] = "wp-admin/edit.php"; |
|---|
| [183] | 89 | $modversion['sub'][3]['name'] = constant( '_MI_XP2_MENU_ADMIN'); |
|---|
| [141] | 90 | $modversion['sub'][3]['url'] = "wp-admin/"; |
|---|
| [162] | 91 | } |
|---|
| 92 | if (@$current_user->user_level > 9) { |
|---|
| [183] | 93 | $modversion['sub'][4]['name'] = constant( '_MI_XP2_MENU_XPRESS'); |
|---|
| [141] | 94 | $modversion['sub'][4]['url'] = "wp-admin/options-general.php?page=xpressme_config"; |
|---|
| [162] | 95 | } |
|---|
| [1] | 96 | } |
|---|
| 97 | |
|---|
| 98 | // Use smarty |
|---|
| [61] | 99 | $modversion["use_smarty"] = 1; |
|---|
| [1] | 100 | |
|---|
| 101 | /** |
|---|
| 102 | * Templates |
|---|
| 103 | */ |
|---|
| [35] | 104 | // All Templates can't be touched by modulesadmin. |
|---|
| 105 | $modversion['templates'] = array() ; |
|---|
| [1] | 106 | |
|---|
| [61] | 107 | $modversion['hasconfig'] = 1; |
|---|
| [35] | 108 | |
|---|
| 109 | //BLOCKS |
|---|
| [118] | 110 | $b_no =1; |
|---|
| 111 | $modversion['blocks'][$b_no] = array( |
|---|
| [54] | 112 | 'file' => 'recent_posts_content_block.php' , |
|---|
| [183] | 113 | 'name' => constant('_MI_XP2_BLOCK_CONTENT') , |
|---|
| [54] | 114 | 'description' => '' , |
|---|
| 115 | 'show_func' => "b_". $mydirname . "_content_show" , |
|---|
| 116 | 'edit_func' => "b_". $mydirname . "_content_edit" , |
|---|
| [89] | 117 | 'template' => '' , |
|---|
| [142] | 118 | 'options' => $mydirname. '||10|0|100||||0' , |
|---|
| [54] | 119 | 'can_clone' => true , |
|---|
| [118] | 120 | 'func_num' => $b_no, |
|---|
| [54] | 121 | ); |
|---|
| [118] | 122 | $b_no++; |
|---|
| 123 | $modversion['blocks'][$b_no] = array( |
|---|
| [100] | 124 | 'file' => 'recent_posts_list_block.php' , |
|---|
| [183] | 125 | 'name' => constant('_MI_XP2_BLOCK_POSTS') , |
|---|
| [100] | 126 | 'description' => '' , |
|---|
| 127 | 'show_func' => "b_". $mydirname . "_posts_show" , |
|---|
| 128 | 'edit_func' => "b_". $mydirname . "_posts_edit" , |
|---|
| [142] | 129 | 'options' => $mydirname. '||10|1|7||||0' , |
|---|
| [100] | 130 | 'can_clone' => true , |
|---|
| [118] | 131 | 'func_num' => $b_no, |
|---|
| [100] | 132 | ); |
|---|
| [118] | 133 | $b_no++; |
|---|
| 134 | $modversion['blocks'][$b_no] = array( |
|---|
| [109] | 135 | 'file' => 'popular_posts_block.php' , |
|---|
| [183] | 136 | 'name' => constant('_MI_XP2_BLOCK_POPULAR') , |
|---|
| [109] | 137 | 'description' => '' , |
|---|
| 138 | 'show_func' => "b_". $mydirname . "_popular_show" , |
|---|
| 139 | 'edit_func' => "b_". $mydirname . "_popular_edit" , |
|---|
| [142] | 140 | 'options' => $mydirname. '||10|0||||0' , |
|---|
| [109] | 141 | 'can_clone' => true , |
|---|
| [118] | 142 | 'func_num' => $b_no, |
|---|
| [109] | 143 | ); |
|---|
| [118] | 144 | $b_no++; |
|---|
| 145 | $modversion['blocks'][$b_no] = array( |
|---|
| [142] | 146 | 'file' => 'page_block.php' , |
|---|
| [183] | 147 | 'name' => constant('_MI_XP2_BLOCK_PAGE') , |
|---|
| [110] | 148 | 'description' => '' , |
|---|
| [142] | 149 | 'show_func' => "b_". $mydirname . "_page_show" , |
|---|
| 150 | 'edit_func' => "b_". $mydirname . "_page_edit" , |
|---|
| [205] | 151 | 'options' => $mydirname. '||post_title|asc||||0|0|none||1||' , |
|---|
| [125] | 152 | 'can_clone' => true , |
|---|
| [142] | 153 | 'func_num' => $b_no, |
|---|
| [110] | 154 | ); |
|---|
| [118] | 155 | $b_no++; |
|---|
| 156 | $modversion['blocks'][$b_no] = array( |
|---|
| [142] | 157 | 'file' => 'recent_comments_block.php' , |
|---|
| [183] | 158 | 'name' => constant('_MI_XP2_BLOCK_COMMENTS') , |
|---|
| [110] | 159 | 'description' => '' , |
|---|
| [142] | 160 | 'show_func' => "b_". $mydirname . "_comments_show" , |
|---|
| 161 | 'edit_func' => "b_". $mydirname . "_comments_edit" , |
|---|
| 162 | 'template' => '' , |
|---|
| 163 | 'options' => $mydirname. '||10|30|||0' , |
|---|
| 164 | 'can_clone' => true , |
|---|
| [118] | 165 | 'func_num' => $b_no, |
|---|
| [110] | 166 | ); |
|---|
| [118] | 167 | $b_no++; |
|---|
| 168 | $modversion['blocks'][$b_no] = array( |
|---|
| [142] | 169 | 'file' => 'sidebar_block.php' , |
|---|
| [183] | 170 | 'name' => constant('_MI_XP2_BLOCK_SIDEBAR') , |
|---|
| [118] | 171 | 'description' => '' , |
|---|
| [142] | 172 | 'show_func' => "b_". $mydirname . "_sidebar_show" , |
|---|
| 173 | 'edit_func' => '' , |
|---|
| 174 | 'options' => '' , |
|---|
| 175 | 'can_clone' => false , |
|---|
| 176 | 'func_num' => $b_no, |
|---|
| [118] | 177 | ); |
|---|
| [119] | 178 | $b_no++; |
|---|
| 179 | $modversion['blocks'][$b_no] = array( |
|---|
| 180 | 'file' => 'search_block.php' , |
|---|
| [183] | 181 | 'name' => constant('_MI_XP2_BLOCK_SEARCH') , |
|---|
| [119] | 182 | 'description' => '' , |
|---|
| 183 | 'show_func' => "b_". $mydirname . "_search_show" , |
|---|
| 184 | 'edit_func' => "b_". $mydirname . "_search_edit" , |
|---|
| 185 | 'options' => $mydirname. '||18' , |
|---|
| 186 | 'can_clone' => false , |
|---|
| 187 | 'func_num' => $b_no , |
|---|
| 188 | ); |
|---|
| [122] | 189 | $b_no++; |
|---|
| 190 | $modversion['blocks'][$b_no] = array( |
|---|
| [142] | 191 | 'file' => 'calender_block.php' , |
|---|
| [183] | 192 | 'name' => constant('_MI_XP2_BLOCK_CALENDER') , |
|---|
| [142] | 193 | 'description' => '' , |
|---|
| 194 | 'show_func' => "b_". $mydirname . "_calender_show" , |
|---|
| 195 | 'edit_func' => "b_". $mydirname . "_calender_edit" , |
|---|
| 196 | 'options' => $mydirname. '||#DB0000|#004D99' , |
|---|
| 197 | 'can_clone' => false , |
|---|
| 198 | 'func_num' => $b_no, |
|---|
| 199 | ); |
|---|
| 200 | $b_no++; |
|---|
| 201 | $modversion['blocks'][$b_no] = array( |
|---|
| 202 | 'file' => 'archives_block.php' , |
|---|
| [183] | 203 | 'name' => constant('_MI_XP2_BLOCK_ARCHIVE') , |
|---|
| [142] | 204 | 'description' => '' , |
|---|
| 205 | 'show_func' => "b_". $mydirname . "_archives_show" , |
|---|
| 206 | 'edit_func' => "b_". $mydirname . "_archives_edit" , |
|---|
| 207 | 'options' => $mydirname. '||monthly|0|1|0' , |
|---|
| 208 | 'can_clone' => true , |
|---|
| 209 | 'func_num' => $b_no, |
|---|
| 210 | ); |
|---|
| 211 | $b_no++; |
|---|
| 212 | $modversion['blocks'][$b_no] = array( |
|---|
| 213 | 'file' => 'authors_block.php' , |
|---|
| [183] | 214 | 'name' => constant('_MI_XP2_BLOCK_AUTHORS') , |
|---|
| [142] | 215 | 'description' => '' , |
|---|
| 216 | 'show_func' => "b_". $mydirname . "_authors_show" , |
|---|
| 217 | 'edit_func' => "b_". $mydirname . "_authors_edit" , |
|---|
| 218 | 'options' => $mydirname. '||0|1|0|1' , |
|---|
| 219 | 'can_clone' => false , |
|---|
| 220 | 'func_num' => $b_no, |
|---|
| 221 | ); |
|---|
| 222 | $b_no++; |
|---|
| 223 | $modversion['blocks'][$b_no] = array( |
|---|
| [122] | 224 | 'file' => 'tag_cloud_block.php' , |
|---|
| [183] | 225 | 'name' => constant('_MI_XP2_BLOCK_TAG') , |
|---|
| [122] | 226 | 'description' => '' , |
|---|
| 227 | 'show_func' => "b_". $mydirname . "_tag_cloud_show" , |
|---|
| 228 | 'edit_func' => "b_". $mydirname . "_tag_cloud_edit" , |
|---|
| 229 | 'options' => $mydirname. '||8|22|pt|45|flat|name|ASC||' , |
|---|
| 230 | 'can_clone' => false , |
|---|
| 231 | 'func_num' => $b_no, |
|---|
| 232 | ); |
|---|
| 233 | $b_no++; |
|---|
| 234 | $modversion['blocks'][$b_no] = array( |
|---|
| 235 | 'file' => 'category_block.php' , |
|---|
| [183] | 236 | 'name' => constant('_MI_XP2_BLOCK_CATEGORY') , |
|---|
| [122] | 237 | 'description' => '' , |
|---|
| 238 | 'show_func' => "b_". $mydirname . "_category_show" , |
|---|
| 239 | 'edit_func' => "b_". $mydirname . "_category_edit" , |
|---|
| 240 | 'options' => $mydirname. '||ALL|name|ASC|0|0|1|1|||1|0' , |
|---|
| 241 | 'can_clone' => false , |
|---|
| 242 | 'func_num' => $b_no, |
|---|
| 243 | ); |
|---|
| 244 | $b_no++; |
|---|
| 245 | $modversion['blocks'][$b_no] = array( |
|---|
| 246 | 'file' => 'meta_block.php' , |
|---|
| [183] | 247 | 'name' => constant('_MI_XP2_BLOCK_META') , |
|---|
| [122] | 248 | 'description' => '' , |
|---|
| 249 | 'show_func' => "b_". $mydirname . "_meta_show" , |
|---|
| 250 | 'edit_func' => "b_". $mydirname . "_meta_edit" , |
|---|
| 251 | 'options' => $mydirname. '||1|1|1|1|1|1|1|1' , |
|---|
| 252 | 'can_clone' => false , |
|---|
| 253 | 'func_num' => $b_no, |
|---|
| 254 | ); |
|---|
| [124] | 255 | $b_no++; |
|---|
| 256 | $modversion['blocks'][$b_no] = array( |
|---|
| [136] | 257 | 'file' => 'widget_block.php' , |
|---|
| [183] | 258 | 'name' => constant('_MI_XP2_BLOCK_WIDGET') , |
|---|
| [136] | 259 | 'description' => '' , |
|---|
| 260 | 'show_func' => "b_". $mydirname . "_widget_show" , |
|---|
| 261 | 'edit_func' => "b_". $mydirname . "_widget_edit" , |
|---|
| 262 | 'options' => $mydirname. '||' , |
|---|
| 263 | 'can_clone' => true , |
|---|
| 264 | 'func_num' => $b_no, |
|---|
| 265 | ); |
|---|
| [138] | 266 | $b_no++; |
|---|
| 267 | $modversion['blocks'][$b_no] = array( |
|---|
| 268 | 'file' => 'enhanced_block.php' , |
|---|
| [183] | 269 | 'name' => constant('_MI_XP2_BLOCK_ENHANCED') , |
|---|
| [138] | 270 | 'description' => '' , |
|---|
| 271 | 'show_func' => "b_". $mydirname . "_enhanced_show" , |
|---|
| 272 | 'edit_func' => "b_". $mydirname . "_enhanced_edit" , |
|---|
| 273 | 'options' => $mydirname. '||' , |
|---|
| 274 | 'can_clone' => true , |
|---|
| 275 | 'func_num' => $b_no, |
|---|
| 276 | ); |
|---|
| [122] | 277 | |
|---|
| 278 | |
|---|
| [61] | 279 | // Notification |
|---|
| 280 | $modversion['hasNotification'] = 1; |
|---|
| 281 | $modversion['notification'] = array( |
|---|
| 282 | 'lookup_file' => 'include/notification.inc.php' , |
|---|
| [95] | 283 | 'lookup_func' => "xpress_notify" , |
|---|
| [61] | 284 | 'category' => array( |
|---|
| 285 | array( |
|---|
| 286 | 'name' => 'global' , |
|---|
| [183] | 287 | 'title' => constant('_MI_XP2_NOTCAT_GLOBAL') , |
|---|
| 288 | 'description' => constant('_MI_XP2_NOTCAT_GLOBALDSC') , |
|---|
| [61] | 289 | 'subscribe_from' => 'index.php' , |
|---|
| 290 | ) , |
|---|
| 291 | array( |
|---|
| 292 | 'name' => 'category' , |
|---|
| [183] | 293 | 'title' => constant('_MI_XP2_NOTCAT_CAT') , |
|---|
| 294 | 'description' => constant('_MI_XP2_NOTCAT_CATDSC') , |
|---|
| [61] | 295 | 'subscribe_from' => 'index.php' , |
|---|
| 296 | 'item_name' => 'cat' , |
|---|
| 297 | 'allow_bookmark' => 1 , |
|---|
| 298 | ) , |
|---|
| 299 | array( |
|---|
| 300 | 'name' => 'author' , |
|---|
| [183] | 301 | 'title' => constant('_MI_XP2_NOTCAT_AUTHOR') , |
|---|
| 302 | 'description' => constant('_MI_XP2_NOTCAT_AUTHORDSC') , |
|---|
| [61] | 303 | 'subscribe_from' => 'index.php' , |
|---|
| 304 | 'item_name' => 'author' , |
|---|
| 305 | 'allow_bookmark' => 1 , |
|---|
| 306 | ) , |
|---|
| 307 | array( |
|---|
| 308 | 'name' => 'post' , |
|---|
| [183] | 309 | 'title' => constant('_MI_XP2_NOTCAT_POST') , |
|---|
| 310 | 'description' => constant('_MI_XP2_NOTCAT_POSTDSC') , |
|---|
| [61] | 311 | 'subscribe_from' => 'index.php' , |
|---|
| 312 | 'item_name' => 'p' , |
|---|
| 313 | 'allow_bookmark' => 1 , |
|---|
| 314 | ) , |
|---|
| 315 | ) , |
|---|
| 316 | 'event' => array( |
|---|
| 317 | array( |
|---|
| 318 | 'name' => 'waiting' , |
|---|
| 319 | 'category' => 'global' , |
|---|
| [183] | 320 | 'title' => constant('_MI_XP2_NOTIFY_GLOBAL_WAITING') , |
|---|
| 321 | 'caption' => constant('_MI_XP2_NOTIFY_GLOBAL_WAITINGCAP') , |
|---|
| 322 | 'description' => constant('_MI_XP2_NOTIFY_GLOBAL_WAITINGCAP') , |
|---|
| [61] | 323 | 'mail_template' => 'global_waiting' , |
|---|
| [183] | 324 | 'mail_subject' => constant('_MI_XP2_NOTIFY_GLOBAL_WAITINGSBJ') , |
|---|
| [61] | 325 | 'admin_only' => 1 , |
|---|
| 326 | ) , |
|---|
| 327 | array( |
|---|
| 328 | 'name' => 'newpost' , |
|---|
| 329 | 'category' => 'global' , |
|---|
| [183] | 330 | 'title' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWPOST') , |
|---|
| 331 | 'caption' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWPOSTCAP') , |
|---|
| 332 | 'description' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWPOSTCAP') , |
|---|
| [61] | 333 | 'mail_template' => 'global_newpost' , |
|---|
| [183] | 334 | 'mail_subject' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWPOSTSBJ') , |
|---|
| [61] | 335 | ) , |
|---|
| 336 | array( |
|---|
| 337 | 'name' => 'comment' , |
|---|
| 338 | 'category' => 'global' , |
|---|
| [183] | 339 | 'title' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWCOMMENT') , |
|---|
| 340 | 'caption' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWCOMMENTCAP') , |
|---|
| 341 | 'description' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWCOMMENTCAP') , |
|---|
| [61] | 342 | 'mail_template' => 'global_newcomment' , |
|---|
| [183] | 343 | 'mail_subject' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWCOMMENTSBJ') , |
|---|
| [61] | 344 | ) , |
|---|
| 345 | |
|---|
| 346 | array( |
|---|
| 347 | 'name' => 'newpost' , |
|---|
| 348 | 'category' => 'category' , |
|---|
| [183] | 349 | 'title' => constant('_MI_XP2_NOTIFY_CAT_NEWPOST') , |
|---|
| 350 | 'caption' => constant('_MI_XP2_NOTIFY_CAT_NEWPOSTCAP') , |
|---|
| 351 | 'description' => constant('_MI_XP2_NOTIFY_CAT_NEWPOSTCAP') , |
|---|
| [61] | 352 | 'mail_template' => 'category_newpost' , |
|---|
| [183] | 353 | 'mail_subject' => constant('_MI_XP2_NOTIFY_CAT_NEWPOSTSBJ') , |
|---|
| [61] | 354 | ) , |
|---|
| 355 | array( |
|---|
| 356 | 'name' => 'comment' , |
|---|
| 357 | 'category' => 'category' , |
|---|
| [183] | 358 | 'title' => constant('_MI_XP2_NOTIFY_CAT_NEWCOMMENT') , |
|---|
| 359 | 'caption' => constant('_MI_XP2_NOTIFY_CAT_NEWCOMMENTCAP') , |
|---|
| 360 | 'description' => constant('_MI_XP2_NOTIFY_CAT_NEWCOMMENTCAP') , |
|---|
| [61] | 361 | 'mail_template' => 'category_newcomment' , |
|---|
| [183] | 362 | 'mail_subject' => constant('_MI_XP2_NOTIFY_CAT_NEWCOMMENTSBJ') , |
|---|
| [61] | 363 | ) , |
|---|
| 364 | |
|---|
| 365 | array( |
|---|
| 366 | 'name' => 'newpost' , |
|---|
| 367 | 'category' => 'author' , |
|---|
| [183] | 368 | 'title' => constant('_MI_XP2_NOTIFY_AUT_NEWPOST') , |
|---|
| 369 | 'caption' => constant('_MI_XP2_NOTIFY_AUT_NEWPOSTCAP') , |
|---|
| 370 | 'description' => constant('_MI_XP2_NOTIFY_AUT_NEWPOSTCAP') , |
|---|
| [61] | 371 | 'mail_template' => 'author_newpost' , |
|---|
| [183] | 372 | 'mail_subject' => constant('_MI_XP2_NOTIFY_AUT_NEWPOSTSBJ') , |
|---|
| [61] | 373 | ) , |
|---|
| 374 | array( |
|---|
| 375 | 'name' => 'comment' , |
|---|
| 376 | 'category' => 'author' , |
|---|
| [183] | 377 | 'title' => constant('_MI_XP2_NOTIFY_AUT_NEWCOMMENT') , |
|---|
| 378 | 'caption' => constant('_MI_XP2_NOTIFY_AUT_NEWCOMMENTCAP') , |
|---|
| 379 | 'description' => constant('_MI_XP2_NOTIFY_AUT_NEWCOMMENTCAP') , |
|---|
| [61] | 380 | 'mail_template' => 'author_newcomment' , |
|---|
| [183] | 381 | 'mail_subject' => constant('_MI_XP2_NOTIFY_AUT_NEWCOMMENTSBJ') , |
|---|
| [61] | 382 | ) , |
|---|
| 383 | |
|---|
| 384 | array( |
|---|
| 385 | 'name' => 'comment' , |
|---|
| 386 | 'category' => 'post' , |
|---|
| [183] | 387 | 'title' => constant('_MI_XP2_NOTIFY_POST_NEWCOMMENT') , |
|---|
| 388 | 'caption' => constant('_MI_XP2_NOTIFY_POST_NEWCOMMENTCAP') , |
|---|
| 389 | 'description' => constant('_MI_XP2_NOTIFY_POST_NEWCOMMENTCAP') , |
|---|
| [61] | 390 | 'mail_template' => 'post_newcomment' , |
|---|
| [183] | 391 | 'mail_subject' => constant('_MI_XP2_NOTIFY_POST_NEWCOMMENTSBJ') , |
|---|
| [61] | 392 | ) , |
|---|
| 393 | ) , |
|---|
| 394 | ) ; |
|---|
| 395 | |
|---|
| 396 | |
|---|
| [1] | 397 | ?> |
|---|