Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Next Gen and Standard
Author Message
link
Regular
Regular


Joined: Dec 24, 2004
Posts: 56

PostPosted: Sat Oct 22, 2005 9:46 am Reply with quote

I am having problems with the 2nd page of and download section. Tells me i have used invalid characters... you know the error.

Here is an example page. Scroll down to botton click page 2 and see the error. Only registered users can see links on this board! Get registered or login!


Here is my download section from the header.php
Array
Code:
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownload(comments|details|editorial)&amp;lid=([0-9]*)&amp;ttitle=([/:\-\'{}()._&a-zA-Z0-9+= ]*)'",

 "'(?<!/)modules.php\?name=Downloads&d_op=modifydownloadrequest&amp;lid=([0-9]*)'",
 "'(?<!/)modules.php\?name=Downloads&d_op=brokendownload&amp;lid=([0-9]*)'",
 "'(?<!/)modules.php\?name=Downloads&d_op=NewDownloads&amp;newdownloadshowdays=([0-9]*)'",
 "'(?<!/)modules.php\?name=Downloads&d_op=NewDownloadsDate&amp;selectdate=([a-zA-Z0-9+]*)'",
 "'(?<!/)modules.php\?name=Downloads&d_op=getit&amp;lid=([0-9]*)'",
 "'(?<!/)modules.php\?name=Downloads&d_op=ratedownload&amp;lid=([0-9]*)&amp;ttitle=([/:\-\'{}()._&a-zA-Z0-9+= ]*)'",
 "'(?<!/)modules.php\?name=Downloads&d_op=ratedownload&amp;lid=([0-9]*)'",
 "'(?<!/)modules.php\?name=Downloads&d_op=ratedownload&lid=([0-9]*)'",
 "'(?<!/)modules.php\?name=Downloads&d_op=(TopRated|MostPopular)&amp;ratenum=([0-9]*)&amp;ratetype=(num|percent)'",
 "'(?<!/)modules.php\?name=Downloads&d_op=(AddDownload|NewDownloads|MostPopular|TopRated)'",
 "'(?<!/)modules.php\?name=Downloads&d_op=viewdownload&amp;cid=([0-9]*)&amp;orderby=([a-zA-Z0-9+]*)'",
 "'(?<!/)modules.php\?name=Downloads&d_op=viewdownload&amp;cid=([0-9]*)&amp;min=([0-9]*)&amp;orderby=([a-zA-Z0-9+]*)&amp;show=([0-9]*)'",
 "'(?<!/)modules.php\?name=Downloads&d_op=search&amp;query=([/:\-\'{}()._&a-zA-Z0-9+=]*)&amp;min=([0-9]*)&amp;orderby=([a-zA-Z0-9+]*)&amp;show=([0-9]*)'",
 "'(?<!/)modules.php\?name=Downloads&d_op=search&amp;query=([/:\-\'{}()._&a-zA-Z0-9+= ]*)&amp;orderby=([a-zA-Z0-9+]*)'",
 "'(?<!/)modules.php\?name=Downloads&d_op=search&amp;query=([/:\-\'{}()._&a-zA-Z0-9+=]*)'",
 "'(?<!/)modules.php\?name=Downloads&d_op=outsidedownloadsetup&amp;lid=([0-9]*)'",
 "'(?<!/)modules.php\?name=Downloads&d_op=viewdownload&cid=([0-9]*)'",
 "'(?<!/)modules.php\?name=Downloads&d_op=viewdownload&amp;cid=([0-9]*)'",
 "'(?<!/)modules.php\?name=Downloads'",


Url Out
Code:
 "downloadview-\\1-\\2-\\3.html",

 "download-mod-\\1.html",
 "download-broken-\\1.html",
 "download-shownew-\\1.html",
 "download-seldate-\\1.html",
 "download-file-\\1.html",
 "ratedownload-\\1-\\2.html",
 "ratedownload-\\1.html",
 "ratedownload-\\1.html",
 "download-\\1-\\2-\\3.html",
 "downloads-\\1.html",
 "download\\1-orderby\\2.html",
 "download\\1-\\2-\\3-\\4.html",
 "download-search-\\1-\\2-\\3-\\4.html",
 "download-search-\\1-\\2.html",
 "download-search-\\1.html",
 "download-outside-\\1.html",
 "downloads-cat\\1.html",
 "downloads-cat\\1.html",
 "downloads.html",


and the htaccess rewrite.. for downloads
Code:
#Downloads

RewriteRule ^downloadview-(comments|details|editorial)-([0-9]*)-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=viewdownload$1&lid=$2&ttitle=$3
RewriteRule ^download-mod-([0-9]*).html modules.php?name=Downloads&d_op=modifydownloadrequest&lid=$1
RewriteRule ^download-broken-([0-9]*).html modules.php?name=Downloads&d_op=brokendownload&lid=$1
RewriteRule ^download-shownew-([0-9]*).html modules.php?name=Downloads&d_op=NewDownloads`"wdownloadshowdays=$1
RewriteRule ^download-seldate-([a-zA-Z0-9+]*).html modules.php?name=Downloads&d_op=NewDownloadsDate&selectdate=$1
RewriteRule ^download-file-([0-9]*).html modules.php?name=Downloads&d_op=getit&lid=$1
RewriteRule ^ratedownload-([0-9]*)-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=ratedownload&lid=$1&ttitle=$2
RewriteRule ^ratedownload-([0-9]*).html modules.php?name=Downloads&d_op=ratedownload&lid=$1
RewriteRule ^download-(TopRated|MostPopular)-([0-9]*)-(num|percent).html modules.php?name=Downloads&d_op=$1&ratenum=$2&ratetype=$3
RewriteRule ^downloads-(AddDownload|NewDownloads|MostPopular|TopRated).html modules.php?name=Downloads&d_op=$1
RewriteRule ^download([0-9]*)-orderby([a-zA-Z0-9+]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1("derby=$2
RewriteRule ^download([0-9]*)-([0-9]*)-([a-zA-Z0-9+]*)-([0-9]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1&min=$2("derby=$3&show=$4
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("derby=$3&show=$4
RewriteRule ^download-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*)-([a-zA-Z0-9+]*).html modules.php?name=Downloads&d_op=search&query=$1("derby=$2
RewriteRule ^download-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=search&query=$1
RewriteRule ^download-outside-([0-9]*).html modules.php?name=Downloads&d_op=outsidedownloadsetup&lid=$1
RewriteRule ^downloads-cat([0-9]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1
RewriteRule ^downloads.html downloads.html



does anyone see what would be causeing this error. It worked the last 2 days.. and then nothing today. Poof.

Thanks ALot Ravenscripts.

_________________
Only registered users can see links on this board! Get registered or login! & Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Sat Oct 22, 2005 10:39 am Reply with quote

This has been documented several times here. Get rid of the ( and ) in the titles.
 
View user's profile Send private message
link
PostPosted: Sat Oct 22, 2005 12:19 pm Reply with quote

Get rid of ( ) in titles?

Title of the the download name?
 
Raven
PostPosted: Sat Oct 22, 2005 12:31 pm Reply with quote

Yes.
 
link
PostPosted: Sat Oct 22, 2005 6:23 pm Reply with quote

That didnt seem to fix it. Is it a problem with my google tap? That is recently installed?
 
Raven
PostPosted: Sat Oct 22, 2005 6:32 pm Reply with quote

In mainfile.php you will see code similar to
Code:
foreach ($_GET as $secvalue) {

    if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*meta*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*style*\"?[^>]*>", $secvalue)) ||
   (eregi("<[^>]*form*\"?[^>]*>", $secvalue)) ||
   (eregi("\([^>]*\"?[^)]*\)", $secvalue)) ||
   (eregi("\"", $secvalue))) {
   die ("<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\"javascript:history.go(-1)\"><b>Go Back</b></a> ]");
    }
}

Those are the words/characters not allowed. In your downloads you have a title(s) that is violating those rules.
 
link
PostPosted: Tue Oct 25, 2005 9:28 am Reply with quote

Thanks Alot Raven... that helped me resolve the problem Smile
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Next Gen and Standard

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©