From: Ron W. <rwh...@ar...> - 2005-03-04 20:44:34
|
I have got it installed to the point where I can get through the login. It is not putting the HTTP_HOST in the addresses that it generates for the menus. The menus have hrefs as shown in the view source shown below. <table border="0" cellspacing="0" cellpadding="0" align="center"><tr><td> <ul> <li><a href="//admin/manage.php?where=new">Create a New Survey</a></li> <li><a href="//admin/manage.php?where=edit">Edit an Existing Survey</a></li> <li><a href="//admin/manage.php?where=test">Test a Survey</a></li> <li><a href="//admin/manage.php?where=copy">Copy an Existing Survey</a></li> <li><a href="//admin/manage.php?where=status">Change the Status of a Survey</a> (active/end/delete)</li> Clicking on a menu item sends me to odd sites but not where I want to go - the menu item. The top of my phpESP.ini.php is as follows. I changes the username and password and modified the following line since the code is not under a phpesp subdirectory. $ESPCONFIG['base_url'] = 'http://' . $server['HTTP_HOST'] . '/'; <?php # $Id: phpESP.ini.php,v 1.13.2.1 2003/04/23 00:07:09 jimmerman Exp $ // Written by James Flemer // For eGrad2000.com // <jf...@al...> if (!defined('ESP_BASE')) define('ESP_BASE', dirname(dirname(__FILE__)) .'/'); if (isset($_SERVER)) $server =& $_SERVER; else $server =& $HTTP_SERVER_VARS; /** * Here are all the configuration options. */ // Base URL for phpESP // The string $server['HTTP_HOST'] will be replaced by the server name $ESPCONFIG['base_url'] = 'http://' . $server['HTTP_HOST'] . '/'; // URL of the images directory (for <img src='...'> tags) $ESPCONFIG['image_url'] = $ESPCONFIG['base_url'] . 'images/'; // URL of the automatic survey publisher $ESPCONFIG['autopub_url'] = $ESPCONFIG['base_url'] . 'public/survey.php'; // URL of the CSS directory (for themes) $ESPCONFIG['css_url'] = $ESPCONFIG['base_url'] . 'public/css/'; // Database connection information $ESPCONFIG['db_host'] = 'localhost'; $ESPCONFIG['db_user'] = 'xxxxx'; $ESPCONFIG['db_pass'] = 'yyyyy'; $ESPCONFIG['db_name'] = 'phpesp'; // Allow phpESP to send email (BOOLEAN) $ESPCONFIG['allow_email'] = true; Where are the menus created and what do I have to do to get the right URL? Ron |