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