mariovaldez.net http://www.mariovaldez.net/webapps/forums/ |
|
Version 0.6.0a7 EDITS http://www.mariovaldez.net/webapps/forums/viewtopic.php?f=3&t=24 |
Page 1 of 1 |
Author: | iPsymon [ 15 May 2003, 13:46 ] |
Post subject: | Version 0.6.0a7 EDITS |
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 |
Author: | iPsymon [ 16 May 2003, 10:30 ] |
Post subject: | #SHORTINDEX# not working |
To enable #SHORTINDEX# I had to make the following changes in cm_lib.inc.php: Code: if ($cm_level) {
$result2 = db_query("select cmdb_title, cmdb_directory, cmdb_parentdir, cmdb_abstract, cmdb_date_update, cmdb_type, cmdb_logo from content3 where cmdb_directory like '$cm_currentpath' and cmdb_type like '%" . CM_HITTYPE_PAGE . "%' " . fcm_access_sqldef ($user_kurz) . " order by cmdb_date_update desc") or db_die(); } else { // Modified by Mark Coudriet - Date: May 16, 2003 // Added if/else & " and cmdb_directory not like '$cm_currentpath/%/%' " for single directory travel //original --> $result2 = db_query("select cmdb_title, cmdb_directory, cmdb_parentdir, cmdb_abstract, cmdb_date_update, cmdb_type, cmdb_logo from content3 where cmdb_directory like '$cm_currentpath/%' and cmdb_type like '%" . CM_HITTYPE_PAGE . "%' " . fcm_access_sqldef ($user_kurz) . " order by cmdb_date_update desc") or db_die(); // NEW if ($cm_mksymbol != "#INDEX#") { $result2 = db_query("select cmdb_title, cmdb_directory, cmdb_parentdir, cmdb_abstract, cmdb_date_update, cmdb_type, cmdb_logo from content3 where cmdb_directory like '$cm_currentpath/%'and cmdb_directory not like '$cm_currentpath/%/%' and cmdb_type like '%" . CM_HITTYPE_PAGE . "%' " . fcm_access_sqldef ($user_kurz) . " order by cmdb_date_update desc") or db_die(); } else { $result2 = db_query("select cmdb_title, cmdb_directory, cmdb_parentdir, cmdb_abstract, cmdb_date_update, cmdb_type, cmdb_logo from content3 where cmdb_directory like '$cm_currentpath/%' and cmdb_type like '%" . CM_HITTYPE_PAGE . "%' " . fcm_access_sqldef ($user_kurz) . " order by cmdb_date_update desc") or db_die(); } // End Modified } Regards, Mark Coudriet |
Author: | mvaldez [ 22 May 2003, 01:58 ] |
Post subject: | Content root directory, server independance... |
Psymon, Hi again. In the latest beta 3 of 0.6.0 I've included a new configuration option to define if the root content directory is a Windows share. If you set it then the management of the URLs is different, compatible with the //server/share/dirname path. I think I finally understood what you have been fixing with several of your patches. The ShortIndex problem has also been fixed. Regards, Mario A. Valdez-Ramirez. |
Page 1 of 1 | All times are UTC - 7 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |