Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
floppy
Newbie
Newbie



Joined: Sep 11, 2006
Posts: 92

PostPosted: Thu Oct 19, 2006 11:55 am Reply with quote

Lets say for instance a modules admin path is this

Code:
modules.php?name=Hey&file=admin


Is there a shortcut to keep from having to tap this?
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
floppy
Newbie
Newbie



Joined: Sep 11, 2006
Posts: 92

PostPosted: Thu Oct 19, 2006 1:55 pm Reply with quote

Well anyway I got that tapped, I still would like to know an easier way if it exist.
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Thu Oct 19, 2006 7:38 pm Reply with quote

That is a really odd module admin link. It looks like the author chose to keep the administration strictly within the module rather than creating an Administration Panel admininstration component for the module. I have not seen too many like this, so would think it better to just "tap" as you find them.

Personally, I would not bother tapping administration links. I don't see the value in it.

_________________
“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
floppy
Newbie
Newbie



Joined: Sep 11, 2006
Posts: 92

PostPosted: Thu Oct 19, 2006 7:47 pm Reply with quote

Agreed its pointless, but its the only way to access the modules admin if you tap.

The way its built is a seperate admin.php inside the hey module folder. Very strange way to admin a module, very.
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Thu Oct 19, 2006 8:31 pm Reply with quote

[quote="floppy"]but its the only way to access the modules admin if you tap.[/quote]

Interesting point that I may have missed earlier. Why would you not be able to access the module's admin? Without your extra "tap" what was the url? The one you posted looks just fine to work untapped, so I am Confused

_________________
“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
floppy
Newbie
Newbie



Joined: Sep 11, 2006
Posts: 92

PostPosted: Thu Oct 19, 2006 8:35 pm Reply with quote

Well I will spill the beans I was tapping Telli's Link To Us mod

Here is the info

GT-Link_To_Us.php
Code:
$urlin = array(
'"(?<!/)modules.php\?name=Link_To_Us&amp;op=getzip&amp;l_id=([0-9]*)"',
'"(?<!/)modules.php\?name=Link_To_Us&amp;op=getres&amp;r_id=([0-9]*)"',
'"(?<!/)modules.php\?name=Link_To_Us&amp;file=admin&amp;op=([a-z]*)&amp;([A-Za-z0-9_-]*)=([0-9]*)"',
'"(?<!/)modules.php\?name=Link_To_Us&amp;file=admin&amp;op=([a-z]*)"',
'"(?<!/)modules.php\?name=Link_To_Us&amp;file=admin"',
'"(?<!/)modules.php\?name=Link_To_Us"'
);

$urlout = array(
'link_to_us-getzip-\\1.html',
'link_to_us-res-\\1.html',
'link_to_us-admin-\\1-\\2-\\3.html',
'link_to_us-admin-\\1.html',
'link_to_us-admin.html',
'link_to_us.html'
);


.htaccess
Code:
#Link_To_US
RewriteRule ^link_to_us-getzip-([0-9]*).html modules.php?name=Link_To_Us&op=getzip&l_id=$1 [L]
RewriteRule ^link_to_us-res-([0-9]*).html modules.php?name=Link_To_Us&op=getres&r_id=$1 [L]
RewriteRule ^link_to_us-admin-([a-z]*)-([A-Za-z0-9_-]*)-([0-9]*).html modules.php?name=Link_To_Us&file=admin&op=$1&$2=$3 [L]
RewriteRule ^link_to_us-admin-([a-z]*).html modules.php?name=Link_To_Us&file=admin&op=$1 [L]
RewriteRule ^link_to_us-admin.html modules.php?name=Link_To_Us&file=admin [L]
RewriteRule ^link_to_us.html modules.php?name=Link_To_Us [L]


As you can see the admin is actually written inside the modules folder with a seperate admin.php

Directory Structure
/Link_To_Us/admin.php
/Link_To_Us/admin
 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Fri Oct 20, 2006 8:04 am Reply with quote

Ok, I see. When you say that the link to admin would not work without it being tapped, was the resultant link something like this:

link_to_us.html&file=admin

Unfortunately, what you have done, is probably the only thing that you could have done.

Good job!

_________________
“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-bunch