Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11839
Latest: BugginIn
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 42423
Total Topics: 7395
Most Online Today: 159
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 97
Total: 97

Author Topic: Help with code parsing  (Read 559 times)

0 Members and 1 Guest are viewing this topic.

Offline Shades

  • Community Suite Customer
  • Full Member
  • ******
  • Posts: 185
  • Community Suite Customer
    • View Profile
    • Bikerhound.com
Help with code parsing
« on: September 05, 2021, 10:10:27 am »
SMF2.1RC4
Ad Seller Pro 3.0.3

Its says to replace:
Code: [Select]
// Remember this URL in case someone doesn't like sending HTTP_REFERER.
 if (strpos($_SERVER['REQUEST_URL'], 'action=dlattach') === false && strpos($_SERVER['REQUEST_URL'], 'action=viewsmfile') === false)
 $_SESSION['old_url'] = $_SERVER['REQUEST_URL'];

With:
Code: [Select]
// Remember this URL in case someone doesn't like sending HTTP_REFERER.
 if (strpos($_SERVER['REQUEST_URL'], 'action=dlattach') === false && strpos($_SERVER['REQUEST_URL'], 'action=viewsmfile') === false && strpos($_SERVER['REQUEST_URL'], 'action=adpro') === false )
 $_SESSION['old_url'] = $_SERVER['REQUEST_URL'];

This is what I have in Subs.php:
Code: [Select]
// Remember this URL in case someone doesn't like sending HTTP_REFERER.
 if ($should_log)
 $_SESSION['old_url'] = $_SERVER['REQUEST_URL'];

So do I go ahead and replace that with:
Code: [Select]
// Remember this URL in case someone doesn't like sending HTTP_REFERER.
 if (strpos($_SERVER['REQUEST_URL'], 'action=dlattach') === false && strpos($_SERVER['REQUEST_URL'], 'action=viewsmfile') === false && strpos($_SERVER['REQUEST_URL'], 'action=adpro') === false )
 $_SESSION['old_url'] = $_SERVER['REQUEST_URL'];

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16086
    • View Profile
Re: Help with code parsing
« Reply #1 on: September 05, 2021, 11:46:24 am »
What's the line that has $should_log =
should be above it somewhere
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Shades

  • Community Suite Customer
  • Full Member
  • ******
  • Posts: 185
  • Community Suite Customer
    • View Profile
    • Bikerhound.com
Re: Help with code parsing
« Reply #2 on: September 05, 2021, 11:52:26 am »
Code: [Select]
// Remember this URL in case someone doesn't like sending HTTP_REFERER.
if ($should_log)
$_SESSION['old_url'] = $_SERVER['REQUEST_URL'];

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16086
    • View Profile
Re: Help with code parsing
« Reply #3 on: September 05, 2021, 01:02:12 pm »
Find
Code: [Select]
$no_stat_actions = array(
'about:unknown' => true,
'clock' => true,
'dlattach' => true,
'findmember' => true,
'helpadmin' => true,
'jsoption' => true,
'likes' => true,
'loadeditorlocale' => true,
'modifycat' => true,
'pm' => array('sa' => array('popup')),
'profile' => array('area' => array('popup', 'alerts_popup')),
'requestmembers' => true,
'smstats' => true,
'suggest' => true,
'verificationcode' => true,
'viewquery' => true,
'viewsmfile' => true,
'xmlhttp' => true,
'.xml' => true,
);
Change to
Code: [Select]
$no_stat_actions = array(
'about:unknown' => true,
                'adpro' => true,
'clock' => true,
'dlattach' => true,
'findmember' => true,
'helpadmin' => true,
'jsoption' => true,
'likes' => true,
'loadeditorlocale' => true,
'modifycat' => true,
'pm' => array('sa' => array('popup')),
'profile' => array('area' => array('popup', 'alerts_popup')),
'requestmembers' => true,
'smstats' => true,
'suggest' => true,
'verificationcode' => true,
'viewquery' => true,
'viewsmfile' => true,
'xmlhttp' => true,
'.xml' => true,
);
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16086
    • View Profile
Re: Help with code parsing
« Reply #4 on: September 05, 2021, 01:27:39 pm »
Posted fix in latest update.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Shades

  • Community Suite Customer
  • Full Member
  • ******
  • Posts: 185
  • Community Suite Customer
    • View Profile
    • Bikerhound.com
Re: Help with code parsing
« Reply #5 on: September 05, 2021, 03:11:22 pm »
Great thanks! :)

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

 

Related Topics

  Subject / Started by Replies Last post
6 Replies
7272 Views
Last post December 31, 2008, 03:46:42 pm
by SMFHacks
2 Replies
2393 Views
Last post November 10, 2016, 05:31:33 am
by assemblytube
1 Replies
1543 Views
Last post June 24, 2017, 11:45:17 am
by SMFHacks
4 Replies
2503 Views
Last post August 11, 2017, 10:12:59 am
by ted245
Code

Started by con-a-ser Support

5 Replies
2112 Views
Last post April 12, 2020, 08:27:08 am
by SMFHacks

+- Recent Topics

Custom badges by Hatshepsut
Today at 10:10:46 pm

Membergroup level by davejo
Today at 02:13:49 am

Setting a single free download. by SMFHacks
August 16, 2022, 09:50:04 am

Quick moderation checkboxes in search result? by SMFHacks
August 08, 2022, 10:37:03 am

Contact Page Mod Not Working by SMFHacks
August 05, 2022, 12:19:43 pm

Issues with new Newsletter Pro installation by SMFHacks
August 05, 2022, 07:15:18 am

SMFBlog Mod by Nicole
August 03, 2022, 09:46:22 pm

Contact Page by Nicole
August 03, 2022, 09:45:42 pm

trader + classifieds by Nicole
August 03, 2022, 05:05:17 pm

Category Permissions List by SMFHacks
July 30, 2022, 07:53:24 am

Powered by EzPortal