Montego Scripts: Forums
 

 

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



Joined: Dec 03, 2006
Posts: 4

PostPosted: Thu Dec 07, 2006 5:58 am Reply with quote

Thanks for the ShortLinks hack

I am using ravenNuke v2.02.00

For NSN GR Downloads, I got this error message
Quote:
Warning: preg_replace() [function.preg-replace]: Compilation failed: unmatched parentheses at offset 67 in ../../../../includes/tegonuke/shortlinks/shortlinks.php on line 86


when set

$display_errors = true;

and

$tnsl_bUseShortLinks = TRUE;

in config.php


This error message will be displayed as below
Quote:
[nextGenFunction] = Present In Header
[nextGenName] = Downloads
[nextGenPath] = GT File :: ShortLinks/GT-Downloads.php :: Does Exist
[nextGenPath] = Using GT File :: ShortLinks/GT-Downloads.php

Warning: preg_replace() [function.preg-replace]: Compilation failed: unmatched parentheses at offset 67 in ../../../../includes/tegonuke/shortlinks/shortlinks.php on line 86

[nextGenPath] = Using GT File :: ShortLinks/GTZ-PageTap.php
[nextGenPath] = GT File :: ShortLinks/GTZ-PageTap.php :: Does Exist


line 86 includes/tegonuke/shortlinks/shortlinks.php
Quote:
$nextGenContent = preg_replace($urlin, $urlout, $nextGenContent);


Thanks
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Thu Dec 07, 2006 7:48 am Reply with quote

Have you changed GT-Downloads at all? I just checked the download against what I have running on the site here and it is an exact match. So, I am thinking that either you have modified it, or maybe the FTP of the file corrupted 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
alnuke
Newbie
Newbie



Joined: Dec 03, 2006
Posts: 4

PostPosted: Thu Dec 07, 2006 8:14 am Reply with quote

Thanks for the quick reply

from my /ShortLinks/GT-Downloads.php
Code:
<?php
/******************************************************************************
* Script:     TegoNuke(tm) ShortLinks "Tap" for NSN GR Downloads v1.0.3pl1
*             from http://www.nukescripts.net.
* 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)
******************************************************************************/

$urlin = array(
'"(?<!/)modules.php\?name=Downloads&amp;op=modifydownloadrequest&amp;lid=([0-9]*)"',
'"(?<!/)modules.php\?name=Downloads&amp;op=NewDownloads&amp;newdownloadshowdays=([0-9]*)"',
'"(?<!/)modules.php\?name=Downloads&amp;op=NewDownloadsDate&amp;selectdate=([a-zA-Z0-9+]*)"',
'"(?<!/)modules.php\?name=Downloads&amp;op=getit&amp;lid=([0-9]*)"',
'"(?<!/)modules.php\?name=Downloads&amp;op=(MostPopular)&amp;ratenum=([0-9]*)&amp;ratetype=(num|percent)"',
'"(?<!/)modules.php\?name=Downloads&amp;op=(NewDownloads|MostPopular)"',
'"(?<!/)modules.php\?name=Downloads&amp;cid=([0-9]*)&amp;orderby=([a-zA-Z0-9+]*)"',
'"(?<!/)modules.php\?name=Downloads&amp;min=([0-9]*)&amp;cid=([0-9]*))"',   //Must make code chg to work!
'"(?<!/)modules.php\?name=Downloads&amp;op=search&amp;query=([/:\-\'{}()\,\._&amp;a-zA-Z0-9+=]*)&amp;min=([0-9]*)&amp;orderby=([a-zA-Z0-9+]*)&amp;show=([0-9]*)"',  //Must make code chg to work!
'"(?<!/)modules.php\?name=Downloads&amp;op=search&amp;query=([/:\-\'{}()\,\._&amp;a-zA-Z0-9+= ]*)&amp;orderby=([a-zA-Z0-9+]*)"',    //Must make code chg to work!
'"(?<!/)modules.php\?name=Downloads&amp;op=search"',    //Must make code chg to work!
'"(?<!/)modules.php\?name=Downloads&amp;op=gfx&amp;random_num=([0-9]*)"',
'"(?<!/)modules.php\?name=Downloads&amp;cid=([0-9]*)"',
'"(?<!/)modules.php\?name=Downloads"'
);

$urlout = array(
'download-mod-\\1.html',
'download-shownew-\\1.html',
'download-seldate-\\1.html',
'download-file-\\1.html',
'download-\\1-\\2-\\3.html',
'downloads-\\1.html',
'download-sort-\\1-orderby-\\2.html',
'download-paging-\\1-\\2.html', //Must make code chg to work!
'download-search-\\1-\\2-\\3-\\4.html', //Must make code chg to work!
'download-search-\\1-\\2.html', //Must make code chg to work!
'download-search.html', //Must make code chg to work!
'download-gfx-\\1.html',
'downloads-cat\\1.html',
'downloads.html'
);

?>


From my .htaccess
Code:
#NSN GR Downloads
RewriteRule ^download-mod-([0-9]*).html modules.php?name=Downloads&op=modifydownloadrequest&lid=$1 [L]
RewriteRule ^download-file-([0-9]*).html modules.php?name=Downloads&op=getit&lid=$1 [L]
RewriteRule ^downloads-(NewDownloads|newdownloads).html modules.php?name=Downloads&op=NewDownloads [L]
RewriteRule ^download-shownew-([0-9]*).html modules.php?name=Downloads&op=NewDownloads&newdownloadshowdays=$1 [L]
RewriteRule ^download-seldate-([a-zA-Z0-9+]*).html modules.php?name=Downloads&op=NewDownloadsDate&selectdate=$1 [L]
RewriteRule ^downloads-(MostPopular|mostpopular).html modules.php?name=Downloads&op=MostPopular [L]
RewriteRule ^download-(MostPopular|mostpopular)-([0-9]*)-(num|percent).html modules.php?name=Downloads&op=MostPopular&ratenum=$2&ratetype=$3 [L]
RewriteRule ^download-sort-([0-9]*)-orderby-title([aA]).html modules.php?name=Downloads&cid=$1&orderby=titleA [L]
RewriteRule ^download-sort-([0-9]*)-orderby-title([dD]).html modules.php?name=Downloads&cid=$1&orderby=titleD [L]
RewriteRule ^download-sort-([0-9]*)-orderby-date([aA]).html modules.php?name=Downloads&cid=$1&orderby=dateA [L]
RewriteRule ^download-sort-([0-9]*)-orderby-date([dD]).html modules.php?name=Downloads&cid=$1&orderby=dateD [L]
RewriteRule ^download-sort-([0-9]*)-orderby-hits([aA]).html modules.php?name=Downloads&cid=$1&orderby=hitsA [L]
RewriteRule ^download-sort-([0-9]*)-orderby-hits([dD]).html modules.php?name=Downloads&cid=$1&orderby=hitsD [L]
RewriteRule ^download-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*)-([0-9]*)-([a-zA-Z0-9+]*)-([0-9]*).html modules.php?name=Downloads&d_op=search&query=$1&min=$2&orderby=$3&show=$4 [L]
RewriteRule ^download-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*)-([a-zA-Z0-9+]*).html modules.php?name=Downloads&d_op=search&query=$1&orderby=$2 [L]
RewriteRule ^download-search.html modules.php?name=Downloads&op=search [L]
RewriteRule ^download-gfx-([0-9]*).html modules.php?name=Downloads&op=gfx&random_num=$1 [L]
RewriteRule ^downloads-cat([0-9]*).html modules.php?name=Downloads&cid=$1 [L]
RewriteRule ^downloads.html&min=([0-9]*)&cid=([0-9]*)$ modules.php?name=Downloads&min=$1&cid=$2 [L]
RewriteRule ^downloads.html downloads.html [L]
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Thu Dec 07, 2006 8:24 am Reply with quote

Although it is not apparent in what you have posted, first try re-FTP'ing the GT-Downloads.php file over using ASCII. If that does not work, use BINARY. I am seeing extra characters at the end of each line and I am thinking that these are ^M, which could be from a bad FTP.

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



Joined: Dec 03, 2006
Posts: 4

PostPosted: Thu Dec 07, 2006 11:25 am Reply with quote

sorry montego, where is that ^M ? i don't see it above
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Fri Dec 08, 2006 8:03 am Reply with quote

You don't see it above, but when I copy and paste that text into a good text editor, I see some lines having an extra character that my original distribution file does not have.

_________________
“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
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sat Dec 16, 2006 12:34 pm Reply with quote

alnuke,

What is the status on this?

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