plugin_path . '/tools/tools.php'); $tools = new GADASH_Tools (); /* * Include backend widgets */ if ($tools->check_roles ( $GADASH_Config->options ['ga_dash_access_back'] )) { include_once (dirname ( __FILE__ ) . '/admin/dashboard_widgets.php'); } /* * Include frontend widgets */ include_once (dirname ( __FILE__ ) . '/front/widgets.php'); } function gadash_front_init() { /* * Include config */ include_once (dirname ( __FILE__ ) . '/config.php'); global $GADASH_Config; /* * Include Tools */ include_once ($GADASH_Config->plugin_path . '/tools/tools.php'); $tools = new GADASH_Tools (); /* * Include frontend stats */ if ($tools->check_roles ( $GADASH_Config->options ['ga_dash_access_front'] ) and ($GADASH_Config->options ['ga_dash_frontend_stats'] or $GADASH_Config->options ['ga_dash_frontend_keywords'])) { include_once (dirname ( __FILE__ ) . '/front/frontend.php'); } /* * Include tracking */ if (! $tools->check_roles ( $GADASH_Config->options ['ga_track_exclude'], true ) and $GADASH_Config->options ['ga_dash_tracking']) { include_once (dirname ( __FILE__ ) . '/front/tracking.php'); } /* * Include frontend widgets */ include_once (dirname ( __FILE__ ) . '/front/widgets.php'); }