PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
rafamp
Regular
Regular


Joined: Oct 15, 2005
Posts: 92
Location: Brazil

PostPosted: Mon Nov 07, 2005 11:16 am Reply with quote Back to top

hi

how can i encrypt encyclopedia terms? its d*** easy to steal content:

modules.php?name=Encyclopedia&op=content&tid=4

just change to

modules.php?name=Encyclopedia&op=content&tid=5

and you will get the next term to steal....

how can i encrypt like:

modules.php?name=Encyclopedia&op=content&tid=45893shds3#sds

?
View user's profile Send private message MSN Messenger
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon Nov 07, 2005 3:44 pm Reply with quote Back to top

Well you'd have to MD5 all the output for $tid.
To do the query, you'd have to check the correct term in the query

Need to add to the query something like
Code:

WHERE MD5($tid) = MD5(tid)
View user's profile Send private message Visit poster's website
rafamp
Regular
Regular


Joined: Oct 15, 2005
Posts: 92
Location: Brazil

PostPosted: Tue Nov 08, 2005 5:35 pm Reply with quote Back to top

there is the following code:

modules/Encyclopedia/index.php

Code:
         $tid = intval($row3['tid']);


Code:
         echo "<tr><td><a href=\"modules.php?name=$module_name&amp;op=content&amp;tid=$tid\">$title</a></td></tr>";


Code:
function content($tid, $ltr, $page=0, $query="") {


Code:
   $tid = intval($tid);


Code:
   $ency = $db->sql_fetchrow($db->sql_query("SELECT * FROM ".$prefix."_encyclopedia_text WHERE tid='$tid'"));


Code:
      $db->sql_query("UPDATE ".$prefix."_encyclopedia_text SET counter=counter+1 WHERE tid='$tid'");


Code:
href=\"modules.php?name=$module_name&amp;op=content&amp;tid=$tid&amp;page=$next_pagenumber$fromsearch\">"._NEXT."


Code:
href=\"modules.php?name=$module_name&amp;op=content&amp;tid=$tid&amp;page=$next_pagenumber\"><img src=\"images/right.gif\" border=\"0\" alt=\""._NEXT."\" title=\""._NEXT."\"></a>";


Code:
href=\"modules.php?name=$module_name&amp;op=content&amp;tid=$tid&amp;page=$previous_pagenumber$fromsearch\"><img src=\"images/left.gif\" border=\"0\" alt=\""._PREVIOUS."\" title=\""._PREVIOUS."\"></a>


Code:
href=\"modules.php?name=$module_name&amp;op=content&amp;tid=$tid&amp;page=$previous_pagenumber$fromsearch\">"._PREVIOUS." ($previous_pagenumber/$pageno)</a>";


Code:
   case "content":
   content($tid, $ltr, $page, $query);


11 entries, wich shoud i change???
View user's profile Send private message MSN Messenger
rafamp
Regular
Regular


Joined: Oct 15, 2005
Posts: 92
Location: Brazil

PostPosted: Tue Nov 15, 2005 4:11 pm Reply with quote Back to top

i still need it guys =/
View user's profile Send private message MSN Messenger
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Tue Nov 15, 2005 6:32 pm Reply with quote Back to top

How do you expect using an encrypted ID to stop anyone from "stealing" content? They can find the encrypted link easily enough, and use that instead of an integer ID...
View user's profile Send private message
rafamp
Regular
Regular


Joined: Oct 15, 2005
Posts: 92
Location: Brazil

PostPosted: Tue Nov 15, 2005 7:25 pm Reply with quote Back to top

ehhh?

i just want to stop this:

modules.php?name=Encyclopedia&op=content&tid=203

modules.php?name=Encyclopedia&op=content&tid=204

this way anyone will steal stuff EASILY
View user's profile Send private message MSN Messenger
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Tue Nov 15, 2005 7:46 pm Reply with quote Back to top

How is that any different than (with the MD5 values for 203 and 204, respectively):

modules.php?name=Encyclopedia&op=content&tid=e2c0be24560d78c5e599c2a9c9d0bbd2

modules.php?name=Encyclopedia&op=content&tid=274ad4786c3abca69fa097b85867d9a4

?

As long as there is a link to the content on your site, people will be able to access it easily.
View user's profile Send private message
rafamp
Regular
Regular


Joined: Oct 15, 2005
Posts: 92
Location: Brazil

PostPosted: Wed Nov 16, 2005 9:50 am Reply with quote Back to top

listen, i know what i am doing; please, can you help me?
View user's profile Send private message MSN Messenger
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Wed Nov 16, 2005 12:49 pm Reply with quote Back to top

I'd like to help, but I don't understand what you want to do.
View user's profile Send private message
rafamp
Regular
Regular


Joined: Oct 15, 2005
Posts: 92
Location: Brazil

PostPosted: Wed Nov 16, 2005 3:47 pm Reply with quote Back to top

do what u posted

modules.php?name=Encyclopedia&op=content&tid=e2c0be24560d78c5e599c2a9c9d0bbd2

instead of

modules.php?name=Encyclopedia&op=content&tid=203

understood?
View user's profile Send private message MSN Messenger
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum