THoTH
Newbie


Joined: Oct 12, 2006
Posts: 12
|
Posted:
Mon May 19, 2008 1:56 pm |
|
Now why would you want to tap this, after all, search engines won't be entering search queries. Well no, but users, especially me don't like looking at ugly URLs, especially when the rest of your site is Shortlinked.
Anyway, wasn't difficult so here's the shortlink file, just call it GT-mSearch.php
| Code: |
<?php
/************************************************************************
* Script: TegoNuke(tm) ShortLinks
* Version: 1.0
* Author: Rob Herder (aka: montego) of http://montegoscripts.com
* Contact: montego@montegoscripts.com
* Copyright: Copyright © 2006 by Montego Scripts
* License: GNU/GPL (see provided LICENSE.txt file)
* Collator: THoTH from http://www.book-of-thoth.com
************************************************************************/
//GT-NExtGEn 0.4/0.5 by Bill Murrin (Audioslaved) http://gt.audioslaved.com (c) 2004
//Original Nukecops GoogleTap done by NukeCops (http://www.nukecops.com)
$urlin = array(
'"(?<!/)modules.php\?name=News&file=article&sid=([0-9]*)&mode=([a-z]*)&order=([0-9]*)&thold=([0-9]*)"',
'"(?<!/)modules.php\?name=Journal&file=([a-zA-Z0-9+]*)&(jid|onwhat|disp|op)=([a-zA-Z0-9+]*)"',
"'(?<!/)modules.php\?name=Sections&op=(printpage|viewarticle)&artid=([0-9]*)'",
'"(?<!/)modules.php\?name=Content&pa=showpage&pid=([0-9]*)&page=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&pa=list_pages_categories&cid=([0-9]*)"',
'"(?<!/)modules.php\?name=Encyclopedia&op=content&tid=([0-9]*)"',
'"(?<!/)modules.php\?name=Content&pa=showpage&pid=([0-9]*)"',
'"(?<!/)modules.php\?name=Content"'
);
$urlout = array(
'article\\1.html',
'journal-\\1-\\2-\\3.html',
'sections-\\1-\\2.html',
'content-\\1-page\\2.html',
'content-cat-\\1.html',
'encyclopedia-\\1.html',
'content-\\1.html',
'content.html'
);
?> |
|
| |
|
montego
Site Admin/Owner


Joined: Feb 12, 2005
Posts: 1294
|
Posted:
Mon May 19, 2008 11:22 pm |
|
Good one THoTH. Thanks! |
_________________ “To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins |
|