mariovaldez.net

MV.net forums
It is currently 14 Jul 2016, 00:44

All times are UTC - 7 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Version 0.6.0a7 EDITS
PostPosted: 15 May 2003, 13:46 
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. :D

Best Regards,
Mark Coudriet


Report this post
Top
  
Reply with quote  
 Post subject: #SHORTINDEX# not working
PostPosted: 16 May 2003, 10:30 
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 :P


Report this post
Top
  
Reply with quote  
PostPosted: 22 May 2003, 01:58 
User avatar

Joined: 06 Mar 2003, 03:21
Posts: 447
Location: Monterrey, NL, Mexico
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. :oops:

The ShortIndex problem has also been fixed.

Regards,

Mario A. Valdez-Ramirez.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group