<?php
/*
Plugin Name: Plugin for XPressME
Plugin URI: http://www.toemon.com
Description: Plugin for XPressME (custom function,filter,action)
Author: toemon
Version: 0.001
Author URI: http://www.toemon.com
*/
require_once('xpressme_class.php');
require_once dirname( __FILE__ ).'/include/custom_functions.php' ;


$xpessme = new XPressME_Class();


$xoops_db = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);
$xoops_db->prefix = get_xoops_prefix();
$xoops_db->tables = array('modules', 'newblocks', 'users');


add_action('admin_menu', array(&$xpessme, 'add_option_page'));
add_action('admin_head', array(&$xpessme, 'add_admin_head'));
add_filter("upload_dir",array(&$xpessme, 'xpress_upload_filter'),	1);		// Change wp-include/wp_upload_dir()
if (!$xpressme->is_save_post_revision){
	remove_action( 'pre_post_update', 'wp_save_post_revision' );			// Not Save Post Revision
}
add_action("comment_post",	"block_cache_refresh");
add_action("edit_comment",	"block_cache_refresh");
add_action("delete_comment","block_cache_refresh");
add_action("delete_post",	"block_cache_refresh");
add_action("publish_post",	"block_cache_refresh");
add_action("edit_post",		"block_cache_refresh");
add_action("private_to_published",	"block_cache_refresh");
add_action("wp_set_comment_status" , "block_cache_refresh");

//require_once('../include/custom_functions.php');
?>