Need to edit editor.php, editorup.php, editorm.php
All instances of;
Code:
// Modified by Mark Coudriet - Date: May 14, 2003
// for server independance
// FROM:
//$cm_http_base = "http://$SERVER_NAME/" . substr ($cm_php_self, 1, strrpos ($PHP_SELF, "/"));
//$cm_https_base = "https://$SERVER_NAME/" . substr ($cm_php_self, 1, strrpos ($PHP_SELF, "/"));
// TO:
$cm_http_base = "http://". $_SERVER['SERVER_NAME'] ."/" . substr ($cm_php_self, 1, strrpos ($PHP_SELF, "/"));
$cm_https_base = "https://". $_SERVER['SERVER_NAME'] ."/" . substr ($cm_php_self, 1, strrpos ($PHP_SELF, "/"));
Code:
// Modified by Mark Coudriet -- For file upload
// FROM:
//$cm_indexpath = str_replace (basename (__FILE__), "", __FILE__) . $cm_mainroot . $cm_path . "/";
// TO:
$cm_indexpath = $cm_mainroot . $cm_path . "/";
Need to edit fileman.php
Code:
// Modified by Mark Coudriet -- For file upload
// FROM:
//$cm_indexpath = str_replace (basename (__FILE__), "", __FILE__) . $cm_mainroot . $cm_path . "/";
// TO:
$cm_indexpath = $cm_mainroot . $cm_path . "/";
Now CMS module is server independant.
Best Regards,
Mark Coudriet