'ODLINKS Settings','arg'=>'odlinkssettings',prg=>'process_odlinkssettings'), array('name'=>'ODLINKS Structure','arg'=>'odlinksstructure',prg=>'process_odlinksstructure'), array('name'=>'ODLINKS Links','arg'=>'odlinksposts',prg=>'process_odlinksposts'), array('name'=>'ODLINKS Utilities','arg'=>'odlinksutilities',prg=>'process_odlinksutilities'), ); if (!$odlinkstheme) {$odlinkstheme = 'default';}; if (!$table_prefix){ $table_prefix = $wpdb->prefix; } define('ODL', 'wp-content/plugins/odlinks'); define('ODLADMIN', 'wp-content/plugins/odlinks/admin/'); define('ODLINC', 'wp-content/plugins/odlinks/includes/'); define('ODLADMINTHEME', 'wp-content/plugins/odlinks/themes'); define('ODLTHEME', 'wp-content/plugins/odlinks/themes/'.$odlinkstheme); define('ODLSMARTY', 'wp-content/plugins/odlinks/includes/Smarty'); define('ODLANG', 'wp-content/plugins/odlinks/languages/'); $smarty_template_dir = ABSPATH . ODLTHEME; $smarty_compile_dir = ABSPATH . ODLSMARTY . '/templates_c'; $smarty_cache_dir = ABSPATH . ODLSMARTY . '/cache'; $smarty_config_dir = ABSPATH . ODLSMARTY . '/configs'; require_once(ABSPATH . ODLINC . '/odl_functions.php'); require_once(ABSPATH . ODLADMIN . '/odl_admin_functions.php'); require_once(ABSPATH . ODLADMIN . '/odl_admin.php'); require_once(ABSPATH . ODLADMIN . '/odl_admin_settings.php'); require_once(ABSPATH . ODLADMIN . '/odl_admin_structure.php'); require_once(ABSPATH . ODLADMIN . '/odl_admin_utilities.php'); require_once(ABSPATH . ODL . '/odl_posts.php'); require_once(ABSPATH . ODL . '/odl_search.php'); require_once(ABSPATH . ODL . '/odl_main.php'); require_once(ABSPATH . ODLINC . '/captcha_class.php'); #add_action("generate_rewrite_rules","odlinksrewrite_rules_wp"); #add_action("mod_rewrite_rules", "odlinksrewrite_rules_wp"); add_filter("the_content", "odlinkspage_handle_content"); add_filter("the_title", "odlinkspage_handle_title"); add_filter("wp_list_pages", "odlinkspage_handle_titlechange"); add_filter("single_post_title", "odlinkspage_handle_pagetitle"); add_filter("query_vars", "odlinksquery_vars"); if (function_exists('add_action')) { add_action('admin_menu', 'odlinks_admin_page'); } // Assigns each respective variable. if (!$_GET)$_GET = $HTTP_GET_VARS; if (!$_POST)$_POST = $HTTP_POST_VARS; if (!$_SERVER)$_SERVER = $HTTP_SERVER_VARS; if (!$_COOKIE)$_COOKIE = $HTTP_COOKIE_VARS; // Format any data sent to odlinks. if ($_REQUEST["odlinksaction"]){ $_SERVER["REQUEST_URI"] = dirname(dirname($_SERVER["PHP_SELF"]))."/".$odlinkssettings['odlinksslug']."/"; $_SERVER["REQUEST_URI"] = stripslashes($_SERVER["REQUEST_URI"]); } ?>