* @copyright Copyright 2007 Edward Dale * @license http://www.gnu.org/licenses/gpl.txt GPL 2.0 * @version $Id: zensor.php 17 2007-06-20 13:54:55Z scompt $ * @link http://www.scompt.com/projects/zensor * @since 0.5 */ /** * Functionality for the admin screen in general */ require_once(dirname(__FILE__).'/admin.php'); /** * Functionality for the options screen */ require_once(dirname(__FILE__).'/options.php'); /** * Functionality for the management screen where posts/pages are listed */ require_once(dirname(__FILE__).'/manage.php'); /** * Functionality for when posts/pages are being edited */ require_once(dirname(__FILE__).'/edit.php'); /** * Functionality for public pages that the user interacts with */ require_once(dirname(__FILE__).'/public.php'); /** * The name of the Zensor table in the database. Prefixed with the Wordpress * database prefix in the init step. * @global string $GLOBALS['zensor_table'] */ $GLOBALS['zensor_table'] = 'zensor'; /** * The version of the Zensor database schema. * @global string $GLOBALS['zensor_db_version'] */ $GLOBALS['zensor_db_version'] = "2"; /** * Initializes everything Zensor needs * * Builds the zensor_table global variable and loads translations. */ function zensor_init() { global $zensor_table, $wpdb; $zensor_table = $wpdb->prefix . $zensor_table; load_plugin_textdomain('zensor', PLUGINDIR.'/zensor/gettext'); } /* * Hook into the init action to initialize things at the right time. */ if( function_exists('add_action') ) { add_action('init', zensor_init, 1); } ?>