Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 185
Total: 185

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

0 Members and 1 Guest are viewing this topic.

Offline Shades

  • Full Member
  • ***
  • Posts: 219
  • 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: 16436
    • 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

  • Full Member
  • ***
  • Posts: 219
  • 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: 16436
    • 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: 16436
    • 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

  • Full Member
  • ***
  • Posts: 219
  • 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
8127 Views
Last post December 31, 2008, 03:46:42 pm
by SMFHacks
2 Replies
2898 Views
Last post November 10, 2016, 05:31:33 am
by assemblytube
1 Replies
1822 Views
Last post June 24, 2017, 11:45:17 am
by SMFHacks
4 Replies
3625 Views
Last post August 11, 2017, 10:12:59 am
by ted245
Code

Started by con-a-ser Support

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

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal