if (!ereg('/$', $HTTP_SERVER_VARS['DOCUMENT_ROOT'])) $_root = $HTTP_SERVER_VARS['DOCUMENT_ROOT'].'/'; else $_root = $HTTP_SERVER_VARS['DOCUMENT_ROOT']; define('DR', $_root); unset($_root); // set $spaw_root variable to the physical path were control resides // don't forget to modify other settings in config/spaw_control.config.php // namely $spaw_dir and $spaw_base_url most likely require your modification $spaw_root = DR.'intourx/spaw/'; // include the control file include $spaw_root.'spaw_control.class.php'; // here we add some styles to styles dropdown $spaw_dropdown_data['style']['default'] = 'No styles'; $spaw_dropdown_data['style']['style1'] = 'Style no. 1'; $spaw_dropdown_data['style']['style2'] = 'Style no. 2'; ?> show(); ?>