Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> ShortLinks/TegoNuke
Author Message
hinksta
Worker
Worker



Joined: Dec 23, 2005
Posts: 226
Location: UK

PostPosted: Fri Mar 30, 2007 5:45 pm Reply with quote

When I create edit or delete a post the forum all the forum shortlinks change.
example: forum-4.html?sid=59005b3511205e981a4b37d0ce6939f8

_________________
Nuke | On The Ball | ATS | Aardvark Top Sites Mod 
View user's profile Send private message Visit poster's website
hinksta







PostPosted: Fri Mar 30, 2007 7:08 pm Reply with quote

after reading this post http://www.ravenphpscripts.com/postt10188.html I removed this code from session.php
Code:
if ($userdata['user_level'] > 1) {

   if ( !empty($SID) && !eregi('sid=', $url) )
   {
       if ( !empty($SID) && !eregi('sid=', $url) )   {
      $url .= ( ( strpos($url, '?') != false ) ?  ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
          }
      }
   }

I remember a similar edit had to be made for gt 4a
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Sun Apr 01, 2007 7:04 am Reply with quote

I believe that code was in sessions.php for security but the underlying culprit is actually in the forum file for the function. In those files, within the template_assign_vars array they usually append the session_id to the save/edit/delete link.
 
View user's profile Send private message Send e-mail
hinksta







PostPosted: Sun Apr 01, 2007 10:05 am Reply with quote

Embarassed I forgot to set the cookie in forums, that fixed it (I think) Wink
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sun Apr 01, 2007 10:19 am Reply with quote

Yeah, we'll have to see. I have not seen this behavior on my site for quite some time now since switching over to RN2.10. But, yes, do please let me know how this goes.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> ShortLinks/TegoNuke

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 ©