[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 | |
---|
[365] | 15 | if (!function_exists('wp_version_compare')){ |
---|
| 16 | function wp_version_compare($wp_version , $operator='==',$comp_version){ |
---|
| 17 | $inc_wp_version = str_replace("ME", "", $wp_version); |
---|
| 18 | return version_compare($inc_wp_version, $comp_version, $operator); |
---|
| 19 | } |
---|
| 20 | } |
---|
| 21 | |
---|
[527] | 22 | if (!function_exists('mod_access_level')){ |
---|
| 23 | function mod_access_level(){ |
---|
| 24 | global $current_user; |
---|
| 25 | |
---|
| 26 | $level = @$current_user->user_level; |
---|
| 27 | $role = @$current_user->roles[0]; |
---|
| 28 | switch ($role){ |
---|
| 29 | case 'administrator': |
---|
| 30 | $role_level = 10; |
---|
| 31 | break; |
---|
| 32 | case 'editor': |
---|
| 33 | $role_level = 7; |
---|
| 34 | break; |
---|
| 35 | case 'author': |
---|
| 36 | $role_level = 2; |
---|
| 37 | break; |
---|
| 38 | case 'contributor': |
---|
| 39 | $role_level = 1; |
---|
| 40 | break; |
---|
| 41 | default: |
---|
| 42 | $role_level = 0; |
---|
| 43 | } |
---|
| 44 | |
---|
| 45 | if ($level > $role_level){ |
---|
| 46 | return $level; |
---|
| 47 | } else { |
---|
| 48 | return $role_level; |
---|
| 49 | } |
---|
| 50 | } |
---|
| 51 | } |
---|
| 52 | |
---|
[1] | 53 | $mydirpath = dirname(__FILE__); |
---|
| 54 | $mydirname = basename($mydirpath); |
---|
| 55 | |
---|
| 56 | $lang = @$GLOBALS["xoopsConfig"]['language']; |
---|
| 57 | |
---|
| 58 | // language file (modinfo.php) |
---|
| 59 | |
---|
| 60 | if( file_exists( $mydirpath .'/language/'.$lang.'/modinfo.php' ) ) { |
---|
| 61 | include_once $mydirpath .'/language/'.$lang.'/modinfo.php' ; |
---|
| 62 | } else if( file_exists( $mydirpath .'/language/english/modinfo.php' ) ) { |
---|
| 63 | include_once $mydirpath .'/language/english/modinfo.php' ; |
---|
| 64 | } |
---|
| 65 | global $wp_db_version,$wp_version; |
---|
| 66 | |
---|
| 67 | include $mydirpath .'/wp-includes/version.php' ; |
---|
| 68 | |
---|
[183] | 69 | $modversion['name'] = ucfirst($mydirname) . ' ' . constant('_MI_XP2_NAME') ; |
---|
| 70 | $modversion['description'] = constant( '_MI_XP2_DESC'); |
---|
[519] | 71 | $modversion['version'] = "2.25"; |
---|
[193] | 72 | $modversion['credits'] = "Wordpress DEV (http://wordpress.org/) XPressME DEV Toemon) (http://ja.xpressme.info) ;"; |
---|
| 73 | $modversion['author'] = "toemon (http://ja.xpressme.info)"; |
---|
[1] | 74 | $modversion['license'] = "GPL see LICENSE"; |
---|
[30] | 75 | $modversion['official'] = 0 ; |
---|
[1] | 76 | $modversion['image'] = 'module_icon.php' ; |
---|
| 77 | $modversion['dirname'] = $mydirname; |
---|
| 78 | |
---|
| 79 | // status |
---|
[522] | 80 | $modversion['codename'] = ""; |
---|
[1] | 81 | |
---|
| 82 | // onInstall, onUpdate, onUninstall |
---|
| 83 | $modversion['onInstall'] = 'include/oninstall.php' ; |
---|
| 84 | $modversion['onUpdate'] = 'include/onupdate.php' ; |
---|
| 85 | $modversion['onUninstall'] = 'include/onuninstall.php' ; |
---|
| 86 | |
---|
| 87 | // Sql file (must contain sql generated by phpMyAdmin or phpPgAdmin) |
---|
| 88 | //$modversion['sqlfile']['mysql'] = "sql/mysql.sql"; |
---|
| 89 | |
---|
| 90 | $db_prefix = $mydirname; |
---|
| 91 | if ($mydirname == 'wordpress') { |
---|
| 92 | $db_prefix = 'wp'; |
---|
| 93 | } |
---|
[122] | 94 | |
---|
[188] | 95 | /* |
---|
| 96 | * Table information is not described. |
---|
| 97 | * |
---|
| 98 | * The create of the table is do with oninstall.php. |
---|
| 99 | * The drop of the table is do with onuninstall.php. |
---|
| 100 | * |
---|
| 101 | * $modversion['tables'] = array( ,,,); |
---|
| 102 | */ |
---|
[1] | 103 | |
---|
[527] | 104 | |
---|
[1] | 105 | // Search |
---|
[30] | 106 | $modversion['hasSearch'] = 1 ; |
---|
| 107 | $modversion['search']['file'] = 'include/search.php' ; |
---|
| 108 | $modversion['search']['func'] = $mydirname.'_global_search' ; |
---|
[1] | 109 | //Admin things |
---|
[61] | 110 | $modversion['hasAdmin'] = 1; |
---|
| 111 | $modversion['adminindex'] = "admin/index.php"; |
---|
| 112 | $modversion['adminmenu'] = "admin/menu.php"; |
---|
[1] | 113 | |
---|
| 114 | $modversion['hasMain'] = 1; |
---|
[162] | 115 | |
---|
[401] | 116 | if (function_exists('get_bloginfo')){ |
---|
| 117 | //$add_url for wpmu multiblog |
---|
| 118 | $pattern = '/.*\/' . $mydirname . '/'; |
---|
| 119 | $add_url = preg_replace($pattern,'',get_bloginfo('url')); |
---|
| 120 | if (!empty($add_url)){ |
---|
| 121 | $pattern = '/^\//'; |
---|
| 122 | $add_url = preg_replace($pattern,'',$add_url) . '/'; |
---|
| 123 | } |
---|
[162] | 124 | |
---|
[401] | 125 | if(is_object($GLOBALS["xoopsUser"])){ |
---|
| 126 | global $current_user , $xoops_config; |
---|
[527] | 127 | if (mod_access_level() > 0) { |
---|
[401] | 128 | $modversion['sub'][1]['name'] = constant( '_MI_XP2_MENU_POST_NEW'); |
---|
| 129 | if (wp_version_compare($wp_version, '>=','2.1')) |
---|
| 130 | $modversion['sub'][1]['url'] = $add_url . "wp-admin/post-new.php"; |
---|
| 131 | else |
---|
| 132 | $modversion['sub'][1]['url'] = $add_url . "wp-admin/post.php"; |
---|
| 133 | $modversion['sub'][2]['name'] = constant( '_MI_XP2_MENU_EDIT'); |
---|
| 134 | $modversion['sub'][2]['url'] = $add_url . "wp-admin/edit.php"; |
---|
| 135 | $modversion['sub'][3]['name'] = constant( '_MI_XP2_MENU_ADMIN'); |
---|
| 136 | $modversion['sub'][3]['url'] = $add_url . "wp-admin/"; |
---|
| 137 | } |
---|
[527] | 138 | if (mod_access_level() > 9) { |
---|
[401] | 139 | $modversion['sub'][4]['name'] = constant( '_MI_XP2_MENU_XPRESS'); |
---|
[494] | 140 | $modversion['sub'][4]['url'] = $add_url . "wp-admin/admin.php?page=xpressme" . DIRECTORY_SEPARATOR . "xpressme.php"; |
---|
[401] | 141 | } |
---|
| 142 | if($GLOBALS["xoopsUserIsAdmin"]){ |
---|
| 143 | $modversion['sub'][5]['name'] = constant( '_MI_XP2_MOD_ADMIN'); |
---|
| 144 | $modversion['sub'][5]['url'] = "admin/index.php"; |
---|
| 145 | } |
---|
[542] | 146 | $create_new_blog = xpress_create_new_blog(); |
---|
| 147 | if(!empty($create_new_blog)){ |
---|
| 148 | $modversion['sub'][6]['name'] = $create_new_blog['title']; |
---|
| 149 | $modversion['sub'][6]['url'] = $create_new_blog['script']; |
---|
| 150 | } |
---|
[162] | 151 | } |
---|
[1] | 152 | } |
---|
| 153 | |
---|
| 154 | // Use smarty |
---|
[61] | 155 | $modversion["use_smarty"] = 1; |
---|
[1] | 156 | |
---|
| 157 | /** |
---|
| 158 | * Templates |
---|
| 159 | */ |
---|
[35] | 160 | // All Templates can't be touched by modulesadmin. |
---|
| 161 | $modversion['templates'] = array() ; |
---|
[1] | 162 | |
---|
[387] | 163 | $modversion['hasconfig'] = 1; |
---|
| 164 | $modversion['config'][] = array( |
---|
| 165 | 'name' => 'libxml_patch' , |
---|
| 166 | 'title' => '_MI_LIBXML_PATCH' , |
---|
| 167 | 'description' => '_MI_LIBXML_PATCH_DESC' , |
---|
| 168 | 'formtype' => 'yesno' , |
---|
| 169 | 'valuetype' => 'int' , |
---|
| 170 | 'default' => 0 , |
---|
| 171 | ); |
---|
[491] | 172 | $modversion['config'][] = array( |
---|
| 173 | 'name' => 'memory_limit' , |
---|
| 174 | 'title' => '_MI_MEMORY_LIMIT' , |
---|
| 175 | 'description' => '_MI_MEMORY_LIMIT_DESC' , |
---|
| 176 | 'formtype' => 'textbox' , |
---|
| 177 | 'valuetype' => 'int' , |
---|
| 178 | 'default' => 64 , |
---|
| 179 | ); |
---|
[35] | 180 | |
---|
| 181 | //BLOCKS |
---|
[118] | 182 | $b_no =1; |
---|
| 183 | $modversion['blocks'][$b_no] = array( |
---|
[54] | 184 | 'file' => 'recent_posts_content_block.php' , |
---|
[183] | 185 | 'name' => constant('_MI_XP2_BLOCK_CONTENT') , |
---|
[54] | 186 | 'description' => '' , |
---|
| 187 | 'show_func' => "b_". $mydirname . "_content_show" , |
---|
| 188 | 'edit_func' => "b_". $mydirname . "_content_edit" , |
---|
[89] | 189 | 'template' => '' , |
---|
[435] | 190 | 'options' => $mydirname. '||10|0|100||||0|0|0' , |
---|
[54] | 191 | 'can_clone' => true , |
---|
[118] | 192 | 'func_num' => $b_no, |
---|
[54] | 193 | ); |
---|
[118] | 194 | $b_no++; |
---|
| 195 | $modversion['blocks'][$b_no] = array( |
---|
[100] | 196 | 'file' => 'recent_posts_list_block.php' , |
---|
[183] | 197 | 'name' => constant('_MI_XP2_BLOCK_POSTS') , |
---|
[100] | 198 | 'description' => '' , |
---|
| 199 | 'show_func' => "b_". $mydirname . "_posts_show" , |
---|
| 200 | 'edit_func' => "b_". $mydirname . "_posts_edit" , |
---|
[142] | 201 | 'options' => $mydirname. '||10|1|7||||0' , |
---|
[100] | 202 | 'can_clone' => true , |
---|
[118] | 203 | 'func_num' => $b_no, |
---|
[100] | 204 | ); |
---|
[118] | 205 | $b_no++; |
---|
| 206 | $modversion['blocks'][$b_no] = array( |
---|
[109] | 207 | 'file' => 'popular_posts_block.php' , |
---|
[183] | 208 | 'name' => constant('_MI_XP2_BLOCK_POPULAR') , |
---|
[109] | 209 | 'description' => '' , |
---|
| 210 | 'show_func' => "b_". $mydirname . "_popular_show" , |
---|
| 211 | 'edit_func' => "b_". $mydirname . "_popular_edit" , |
---|
[142] | 212 | 'options' => $mydirname. '||10|0||||0' , |
---|
[109] | 213 | 'can_clone' => true , |
---|
[118] | 214 | 'func_num' => $b_no, |
---|
[109] | 215 | ); |
---|
[118] | 216 | $b_no++; |
---|
| 217 | $modversion['blocks'][$b_no] = array( |
---|
[142] | 218 | 'file' => 'page_block.php' , |
---|
[183] | 219 | 'name' => constant('_MI_XP2_BLOCK_PAGE') , |
---|
[110] | 220 | 'description' => '' , |
---|
[142] | 221 | 'show_func' => "b_". $mydirname . "_page_show" , |
---|
| 222 | 'edit_func' => "b_". $mydirname . "_page_edit" , |
---|
[205] | 223 | 'options' => $mydirname. '||post_title|asc||||0|0|none||1||' , |
---|
[125] | 224 | 'can_clone' => true , |
---|
[142] | 225 | 'func_num' => $b_no, |
---|
[110] | 226 | ); |
---|
[118] | 227 | $b_no++; |
---|
| 228 | $modversion['blocks'][$b_no] = array( |
---|
[142] | 229 | 'file' => 'recent_comments_block.php' , |
---|
[183] | 230 | 'name' => constant('_MI_XP2_BLOCK_COMMENTS') , |
---|
[110] | 231 | 'description' => '' , |
---|
[142] | 232 | 'show_func' => "b_". $mydirname . "_comments_show" , |
---|
| 233 | 'edit_func' => "b_". $mydirname . "_comments_edit" , |
---|
| 234 | 'template' => '' , |
---|
| 235 | 'options' => $mydirname. '||10|30|||0' , |
---|
| 236 | 'can_clone' => true , |
---|
[118] | 237 | 'func_num' => $b_no, |
---|
[110] | 238 | ); |
---|
[118] | 239 | $b_no++; |
---|
| 240 | $modversion['blocks'][$b_no] = array( |
---|
[142] | 241 | 'file' => 'sidebar_block.php' , |
---|
[183] | 242 | 'name' => constant('_MI_XP2_BLOCK_SIDEBAR') , |
---|
[118] | 243 | 'description' => '' , |
---|
[142] | 244 | 'show_func' => "b_". $mydirname . "_sidebar_show" , |
---|
| 245 | 'edit_func' => '' , |
---|
| 246 | 'options' => '' , |
---|
| 247 | 'can_clone' => false , |
---|
| 248 | 'func_num' => $b_no, |
---|
[118] | 249 | ); |
---|
[119] | 250 | $b_no++; |
---|
| 251 | $modversion['blocks'][$b_no] = array( |
---|
| 252 | 'file' => 'search_block.php' , |
---|
[183] | 253 | 'name' => constant('_MI_XP2_BLOCK_SEARCH') , |
---|
[119] | 254 | 'description' => '' , |
---|
| 255 | 'show_func' => "b_". $mydirname . "_search_show" , |
---|
| 256 | 'edit_func' => "b_". $mydirname . "_search_edit" , |
---|
| 257 | 'options' => $mydirname. '||18' , |
---|
| 258 | 'can_clone' => false , |
---|
| 259 | 'func_num' => $b_no , |
---|
| 260 | ); |
---|
[122] | 261 | $b_no++; |
---|
| 262 | $modversion['blocks'][$b_no] = array( |
---|
[142] | 263 | 'file' => 'calender_block.php' , |
---|
[183] | 264 | 'name' => constant('_MI_XP2_BLOCK_CALENDER') , |
---|
[142] | 265 | 'description' => '' , |
---|
| 266 | 'show_func' => "b_". $mydirname . "_calender_show" , |
---|
| 267 | 'edit_func' => "b_". $mydirname . "_calender_edit" , |
---|
| 268 | 'options' => $mydirname. '||#DB0000|#004D99' , |
---|
| 269 | 'can_clone' => false , |
---|
| 270 | 'func_num' => $b_no, |
---|
| 271 | ); |
---|
| 272 | $b_no++; |
---|
| 273 | $modversion['blocks'][$b_no] = array( |
---|
| 274 | 'file' => 'archives_block.php' , |
---|
[183] | 275 | 'name' => constant('_MI_XP2_BLOCK_ARCHIVE') , |
---|
[142] | 276 | 'description' => '' , |
---|
| 277 | 'show_func' => "b_". $mydirname . "_archives_show" , |
---|
| 278 | 'edit_func' => "b_". $mydirname . "_archives_edit" , |
---|
| 279 | 'options' => $mydirname. '||monthly|0|1|0' , |
---|
| 280 | 'can_clone' => true , |
---|
| 281 | 'func_num' => $b_no, |
---|
| 282 | ); |
---|
| 283 | $b_no++; |
---|
| 284 | $modversion['blocks'][$b_no] = array( |
---|
| 285 | 'file' => 'authors_block.php' , |
---|
[183] | 286 | 'name' => constant('_MI_XP2_BLOCK_AUTHORS') , |
---|
[142] | 287 | 'description' => '' , |
---|
| 288 | 'show_func' => "b_". $mydirname . "_authors_show" , |
---|
| 289 | 'edit_func' => "b_". $mydirname . "_authors_edit" , |
---|
| 290 | 'options' => $mydirname. '||0|1|0|1' , |
---|
| 291 | 'can_clone' => false , |
---|
| 292 | 'func_num' => $b_no, |
---|
| 293 | ); |
---|
[365] | 294 | if (wp_version_compare($wp_version, '>=','2.3')){ |
---|
[501] | 295 | $b_no++; |
---|
[365] | 296 | $modversion['blocks'][$b_no] = array( |
---|
| 297 | 'file' => 'tag_cloud_block.php' , |
---|
| 298 | 'name' => constant('_MI_XP2_BLOCK_TAG') , |
---|
| 299 | 'description' => '' , |
---|
| 300 | 'show_func' => "b_". $mydirname . "_tag_cloud_show" , |
---|
| 301 | 'edit_func' => "b_". $mydirname . "_tag_cloud_edit" , |
---|
| 302 | 'options' => $mydirname. '||8|22|pt|45|flat|name|ASC||' , |
---|
| 303 | 'can_clone' => false , |
---|
| 304 | 'func_num' => $b_no, |
---|
| 305 | ); |
---|
| 306 | } |
---|
[122] | 307 | $b_no++; |
---|
| 308 | $modversion['blocks'][$b_no] = array( |
---|
| 309 | 'file' => 'category_block.php' , |
---|
[183] | 310 | 'name' => constant('_MI_XP2_BLOCK_CATEGORY') , |
---|
[122] | 311 | 'description' => '' , |
---|
| 312 | 'show_func' => "b_". $mydirname . "_category_show" , |
---|
| 313 | 'edit_func' => "b_". $mydirname . "_category_edit" , |
---|
| 314 | 'options' => $mydirname. '||ALL|name|ASC|0|0|1|1|||1|0' , |
---|
| 315 | 'can_clone' => false , |
---|
| 316 | 'func_num' => $b_no, |
---|
| 317 | ); |
---|
| 318 | $b_no++; |
---|
| 319 | $modversion['blocks'][$b_no] = array( |
---|
| 320 | 'file' => 'meta_block.php' , |
---|
[183] | 321 | 'name' => constant('_MI_XP2_BLOCK_META') , |
---|
[122] | 322 | 'description' => '' , |
---|
| 323 | 'show_func' => "b_". $mydirname . "_meta_show" , |
---|
| 324 | 'edit_func' => "b_". $mydirname . "_meta_edit" , |
---|
| 325 | 'options' => $mydirname. '||1|1|1|1|1|1|1|1' , |
---|
| 326 | 'can_clone' => false , |
---|
| 327 | 'func_num' => $b_no, |
---|
| 328 | ); |
---|
[365] | 329 | if (wp_version_compare($wp_version, '>=','2.7')){ |
---|
[501] | 330 | $b_no++; |
---|
[365] | 331 | $modversion['blocks'][$b_no] = array( |
---|
| 332 | 'file' => 'widget_block.php' , |
---|
| 333 | 'name' => constant('_MI_XP2_BLOCK_WIDGET') , |
---|
| 334 | 'description' => '' , |
---|
| 335 | 'show_func' => "b_". $mydirname . "_widget_show" , |
---|
| 336 | 'edit_func' => "b_". $mydirname . "_widget_edit" , |
---|
[438] | 337 | 'options' => $mydirname. '||1|' , |
---|
[365] | 338 | 'can_clone' => true , |
---|
| 339 | 'func_num' => $b_no, |
---|
| 340 | ); |
---|
| 341 | } |
---|
[138] | 342 | $b_no++; |
---|
| 343 | $modversion['blocks'][$b_no] = array( |
---|
| 344 | 'file' => 'enhanced_block.php' , |
---|
[183] | 345 | 'name' => constant('_MI_XP2_BLOCK_ENHANCED') , |
---|
[138] | 346 | 'description' => '' , |
---|
| 347 | 'show_func' => "b_". $mydirname . "_enhanced_show" , |
---|
| 348 | 'edit_func' => "b_". $mydirname . "_enhanced_edit" , |
---|
| 349 | 'options' => $mydirname. '||' , |
---|
| 350 | 'can_clone' => true , |
---|
| 351 | 'func_num' => $b_no, |
---|
| 352 | ); |
---|
[122] | 353 | |
---|
[533] | 354 | if (wp_version_compare($wp_version, '>=','2.9')){ |
---|
| 355 | $b_no++; |
---|
| 356 | $modversion['blocks'][$b_no] = array( |
---|
| 357 | 'file' => 'blog_list_block.php' , |
---|
| 358 | 'name' => constant('_MI_XP2_BLOCK_BLOG_LIST') , |
---|
| 359 | 'description' => '' , |
---|
| 360 | 'show_func' => "b_". $mydirname . "_blog_list_show" , |
---|
| 361 | 'edit_func' => "b_". $mydirname . "_blog_list_edit" , |
---|
| 362 | 'options' => $mydirname. '||name|ASC' , |
---|
| 363 | 'can_clone' => false , |
---|
| 364 | 'func_num' => $b_no, |
---|
| 365 | ); |
---|
[536] | 366 | $b_no++; |
---|
| 367 | $modversion['blocks'][$b_no] = array( |
---|
| 368 | 'file' => 'global_recent_posts_list_block.php' , |
---|
| 369 | 'name' => constant('_MI_XP2_BLOCK_GLOBAL_POSTS') , |
---|
| 370 | 'description' => '' , |
---|
| 371 | 'show_func' => "b_". $mydirname . "_global_posts_show" , |
---|
| 372 | 'edit_func' => "b_". $mydirname . "_global_posts_edit" , |
---|
| 373 | 'options' => $mydirname. '||10|1|7||' , |
---|
| 374 | 'can_clone' => true , |
---|
| 375 | 'func_num' => $b_no, |
---|
| 376 | ); |
---|
| 377 | |
---|
[533] | 378 | } |
---|
[122] | 379 | |
---|
[61] | 380 | // Notification |
---|
| 381 | $modversion['hasNotification'] = 1; |
---|
| 382 | $modversion['notification'] = array( |
---|
| 383 | 'lookup_file' => 'include/notification.inc.php' , |
---|
[95] | 384 | 'lookup_func' => "xpress_notify" , |
---|
[61] | 385 | 'category' => array( |
---|
| 386 | array( |
---|
| 387 | 'name' => 'global' , |
---|
[183] | 388 | 'title' => constant('_MI_XP2_NOTCAT_GLOBAL') , |
---|
| 389 | 'description' => constant('_MI_XP2_NOTCAT_GLOBALDSC') , |
---|
[61] | 390 | 'subscribe_from' => 'index.php' , |
---|
| 391 | ) , |
---|
| 392 | array( |
---|
| 393 | 'name' => 'category' , |
---|
[183] | 394 | 'title' => constant('_MI_XP2_NOTCAT_CAT') , |
---|
| 395 | 'description' => constant('_MI_XP2_NOTCAT_CATDSC') , |
---|
[61] | 396 | 'subscribe_from' => 'index.php' , |
---|
| 397 | 'item_name' => 'cat' , |
---|
| 398 | 'allow_bookmark' => 1 , |
---|
| 399 | ) , |
---|
| 400 | array( |
---|
| 401 | 'name' => 'author' , |
---|
[183] | 402 | 'title' => constant('_MI_XP2_NOTCAT_AUTHOR') , |
---|
| 403 | 'description' => constant('_MI_XP2_NOTCAT_AUTHORDSC') , |
---|
[61] | 404 | 'subscribe_from' => 'index.php' , |
---|
| 405 | 'item_name' => 'author' , |
---|
| 406 | 'allow_bookmark' => 1 , |
---|
| 407 | ) , |
---|
| 408 | array( |
---|
| 409 | 'name' => 'post' , |
---|
[183] | 410 | 'title' => constant('_MI_XP2_NOTCAT_POST') , |
---|
| 411 | 'description' => constant('_MI_XP2_NOTCAT_POSTDSC') , |
---|
[61] | 412 | 'subscribe_from' => 'index.php' , |
---|
| 413 | 'item_name' => 'p' , |
---|
| 414 | 'allow_bookmark' => 1 , |
---|
| 415 | ) , |
---|
| 416 | ) , |
---|
| 417 | 'event' => array( |
---|
| 418 | array( |
---|
| 419 | 'name' => 'waiting' , |
---|
| 420 | 'category' => 'global' , |
---|
[183] | 421 | 'title' => constant('_MI_XP2_NOTIFY_GLOBAL_WAITING') , |
---|
| 422 | 'caption' => constant('_MI_XP2_NOTIFY_GLOBAL_WAITINGCAP') , |
---|
| 423 | 'description' => constant('_MI_XP2_NOTIFY_GLOBAL_WAITINGCAP') , |
---|
[61] | 424 | 'mail_template' => 'global_waiting' , |
---|
[183] | 425 | 'mail_subject' => constant('_MI_XP2_NOTIFY_GLOBAL_WAITINGSBJ') , |
---|
[61] | 426 | 'admin_only' => 1 , |
---|
| 427 | ) , |
---|
| 428 | array( |
---|
| 429 | 'name' => 'newpost' , |
---|
| 430 | 'category' => 'global' , |
---|
[183] | 431 | 'title' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWPOST') , |
---|
| 432 | 'caption' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWPOSTCAP') , |
---|
| 433 | 'description' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWPOSTCAP') , |
---|
[61] | 434 | 'mail_template' => 'global_newpost' , |
---|
[183] | 435 | 'mail_subject' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWPOSTSBJ') , |
---|
[61] | 436 | ) , |
---|
| 437 | array( |
---|
| 438 | 'name' => 'comment' , |
---|
| 439 | 'category' => 'global' , |
---|
[183] | 440 | 'title' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWCOMMENT') , |
---|
| 441 | 'caption' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWCOMMENTCAP') , |
---|
| 442 | 'description' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWCOMMENTCAP') , |
---|
[61] | 443 | 'mail_template' => 'global_newcomment' , |
---|
[183] | 444 | 'mail_subject' => constant('_MI_XP2_NOTIFY_GLOBAL_NEWCOMMENTSBJ') , |
---|
[61] | 445 | ) , |
---|
| 446 | |
---|
| 447 | array( |
---|
| 448 | 'name' => 'newpost' , |
---|
| 449 | 'category' => 'category' , |
---|
[183] | 450 | 'title' => constant('_MI_XP2_NOTIFY_CAT_NEWPOST') , |
---|
| 451 | 'caption' => constant('_MI_XP2_NOTIFY_CAT_NEWPOSTCAP') , |
---|
| 452 | 'description' => constant('_MI_XP2_NOTIFY_CAT_NEWPOSTCAP') , |
---|
[61] | 453 | 'mail_template' => 'category_newpost' , |
---|
[183] | 454 | 'mail_subject' => constant('_MI_XP2_NOTIFY_CAT_NEWPOSTSBJ') , |
---|
[61] | 455 | ) , |
---|
| 456 | array( |
---|
| 457 | 'name' => 'comment' , |
---|
| 458 | 'category' => 'category' , |
---|
[183] | 459 | 'title' => constant('_MI_XP2_NOTIFY_CAT_NEWCOMMENT') , |
---|
| 460 | 'caption' => constant('_MI_XP2_NOTIFY_CAT_NEWCOMMENTCAP') , |
---|
| 461 | 'description' => constant('_MI_XP2_NOTIFY_CAT_NEWCOMMENTCAP') , |
---|
[61] | 462 | 'mail_template' => 'category_newcomment' , |
---|
[183] | 463 | 'mail_subject' => constant('_MI_XP2_NOTIFY_CAT_NEWCOMMENTSBJ') , |
---|
[61] | 464 | ) , |
---|
| 465 | |
---|
| 466 | array( |
---|
| 467 | 'name' => 'newpost' , |
---|
| 468 | 'category' => 'author' , |
---|
[183] | 469 | 'title' => constant('_MI_XP2_NOTIFY_AUT_NEWPOST') , |
---|
| 470 | 'caption' => constant('_MI_XP2_NOTIFY_AUT_NEWPOSTCAP') , |
---|
| 471 | 'description' => constant('_MI_XP2_NOTIFY_AUT_NEWPOSTCAP') , |
---|
[61] | 472 | 'mail_template' => 'author_newpost' , |
---|
[183] | 473 | 'mail_subject' => constant('_MI_XP2_NOTIFY_AUT_NEWPOSTSBJ') , |
---|
[61] | 474 | ) , |
---|
| 475 | array( |
---|
| 476 | 'name' => 'comment' , |
---|
| 477 | 'category' => 'author' , |
---|
[183] | 478 | 'title' => constant('_MI_XP2_NOTIFY_AUT_NEWCOMMENT') , |
---|
| 479 | 'caption' => constant('_MI_XP2_NOTIFY_AUT_NEWCOMMENTCAP') , |
---|
| 480 | 'description' => constant('_MI_XP2_NOTIFY_AUT_NEWCOMMENTCAP') , |
---|
[61] | 481 | 'mail_template' => 'author_newcomment' , |
---|
[183] | 482 | 'mail_subject' => constant('_MI_XP2_NOTIFY_AUT_NEWCOMMENTSBJ') , |
---|
[61] | 483 | ) , |
---|
| 484 | |
---|
| 485 | array( |
---|
| 486 | 'name' => 'comment' , |
---|
| 487 | 'category' => 'post' , |
---|
[183] | 488 | 'title' => constant('_MI_XP2_NOTIFY_POST_NEWCOMMENT') , |
---|
| 489 | 'caption' => constant('_MI_XP2_NOTIFY_POST_NEWCOMMENTCAP') , |
---|
| 490 | 'description' => constant('_MI_XP2_NOTIFY_POST_NEWCOMMENTCAP') , |
---|
[61] | 491 | 'mail_template' => 'post_newcomment' , |
---|
[183] | 492 | 'mail_subject' => constant('_MI_XP2_NOTIFY_POST_NEWCOMMENTSBJ') , |
---|
[61] | 493 | ) , |
---|
| 494 | ) , |
---|
| 495 | ) ; |
---|
| 496 | |
---|
| 497 | |
---|
[1] | 498 | ?> |
---|