Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
Guardian
Site Admin
Site Admin



Joined: Jul 18, 2005
Posts: 397

PostPosted: Wed Oct 25, 2006 6:03 am Reply with quote

Metopen Projects Module v1.0I only have the htaccess tap for this;
Code:
#MetProjects
RewriteRule ^project_details-([0-9]*)-([a-zA-Z0-9_-]*).html modules.php?name=MetProjects&mop=project_details&mpid=$1&mpname=$2 [L]
RewriteRule ^project_edit-([0-9]*).html modules.php?name=MetProjects&mop=project_edit&mpid=$1 [L]
RewriteRule ^project_add.html modules.php?name=MetProjects&mop=project_edit [L]
RewriteRule ^project_version_edit-([0-9]*)-([0-9]*).html modules.php?name=MetProjects&mop=version_edit&mpid=$1&mpvid=$2 [L]
RewriteRule ^project_version_add-([0-9]*).html modules.php?name=MetProjects&mop=version_edit&mpid=$1 [L]
RewriteRule ^project_delete-([0-9]*)-([0-9]*).html modules.php?name=MetProjects&mop=project_delete&mpid=$1&confirm=$2 [L]
RewriteRule ^project_delete-([0-9]*).html modules.php?name=MetProjects&mop=project_delete&mpid=$1 [L]
RewriteRule ^project_version_delete-([0-9]*)-([0-9]*)-([0-9]*).html modules.php?name=MetProjects&mop=version_delete&mpid=$1&mpvid=$2&confirm=$3 [L]
RewriteRule ^project_version_delete-([0-9]*)-([0-9]*).html modules.php?name=MetProjects&mop=version_delete&mpid=$1&mpvid=$2 [L]
RewriteRule ^project_list.html modules.php?name=MetProjects&mop=project_list [L]
RewriteRule ^project_make_latest-([0-9]*)-([0-9]*).html modules.php?name=MetProjects&mop=make_latest&mpid=$1&mpvid=$2 [L]
RewriteRule ^projects.html modules.php?name=MetProjects [L]
RewriteRule ^projects_admin.html admin.php?op=MetProjectsAdmin [L]
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Wed Oct 25, 2006 8:20 am Reply with quote

I believe that the GT-MetProjects.php would have these urlin/urlout to match the .htaccess statements:

Code:
$urlin = array(
'"(?<!/)modules.php\?name=MetProjects&amp;mop=project_details&amp;mpid=([0-9]*)&amp;mpname=([a-zA-Z0-9_-]*)"',
'"(?<!/)modules.php\?name=MetProjects&amp;mop=project_edit&amp;mpid=([0-9]*)"',
'"(?<!/)modules.php\?name=MetProjects&amp;mop=project_edit"',
'"(?<!/)modules.php\?name=MetProjects&amp;mop=version_edit&amp;mpid=([0-9]*)&amp;mpvid=([0-9]*)"',
'"(?<!/)modules.php\?name=MetProjects&amp;mop=version_edit&amp;mpid=([0-9]*)"',
'"(?<!/)modules.php\?name=MetProjects&amp;mop=project_delete&amp;mpid=([0-9]*)&amp;confirm=([0-9]*)"',
'"(?<!/)modules.php\?name=MetProjects&amp;mop=project_delete&amp;mpid=([0-9]*)"',
'"(?<!/)modules.php\?name=MetProjects&amp;mop=version_delete&amp;mpid=([0-9]*)&amp;mpvid=([0-9]*)&amp;confirm=([0-9]*)"',
'"(?<!/)modules.php\?name=MetProjects&amp;mop=version_delete&amp;mpid=([0-9]*)&amp;mpvid=([0-9]*)"',
'"(?<!/)modules.php\?name=MetProjects&amp;mop=project_list"',
'"(?<!/)modules.php\?name=MetProjects&amp;mop=make_latest&amp;mpid=([0-9]*)&amp;mpvid=([0-9]*)"',
'"(?<!/)modules.php\?name=MetProjects"',
'"(?<!/)admin.php\?op=MetProjectsAdmin"'
);

$urlout = array(
'project_details-\\1-\\2.html',
'project_edit-\\1.html',
'project_add.html',
'project_version_edit-\\1-\\2.html',
'project_version_add-\\1.html',
'project_delete-\\1-\\2.html',
'project_delete-\\1.html',
'project_version_delete-\\1-\\2-\\3.html',
'project_version_delete-\\1-\\2.html',
'project_list.html',
'project_make_latest-\\1-\\2.html',
'projects.html',
'projects_admin.html'
);

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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 vote in polls in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunchlinear-bunch
linear-bunch
linear-bunch