| Author |
Message |
floppy
Newbie


Joined: Sep 11, 2006
Posts: 92
|
Posted:
Thu Oct 19, 2006 11:55 am |
|
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? |
| |
|
|
 |
floppy
Newbie


Joined: Sep 11, 2006
Posts: 92
|
Posted:
Thu Oct 19, 2006 1:55 pm |
|
Well anyway I got that tapped, I still would like to know an easier way if it exist. |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1281
|
Posted:
Thu Oct 19, 2006 7:38 pm |
|
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 |
|
|
 |
floppy
Newbie


Joined: Sep 11, 2006
Posts: 92
|
Posted:
Thu Oct 19, 2006 7:47 pm |
|
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. |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1281
|
Posted:
Thu Oct 19, 2006 8:31 pm |
|
[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  |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|
|
 |
floppy
Newbie


Joined: Sep 11, 2006
Posts: 92
|
Posted:
Thu Oct 19, 2006 8:35 pm |
|
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&op=getzip&l_id=([0-9]*)"',
'"(?<!/)modules.php\?name=Link_To_Us&op=getres&r_id=([0-9]*)"',
'"(?<!/)modules.php\?name=Link_To_Us&file=admin&op=([a-z]*)&([A-Za-z0-9_-]*)=([0-9]*)"',
'"(?<!/)modules.php\?name=Link_To_Us&file=admin&op=([a-z]*)"',
'"(?<!/)modules.php\?name=Link_To_Us&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 |
| |
|
|
 |
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1281
|
Posted:
Fri Oct 20, 2006 8:04 am |
|
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 |
|
|
 |
|
|