Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8336725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:05:03+00:00 2026-06-09T04:05:03+00:00

All right so I’ve been looking all over the net and I can’t seem

  • 0

All right so I’ve been looking all over the net and I can’t seem to find any solution for my problem. My apologies if this has been asked in the past.

I’m sure there’s a very simple answer for this: A while back I built a website for a client. This website has an administration system in which some pages are locked using a $_SESSION variable called ‘level’, which basically checks whether the user is an administrator or not. Furthermore, some pages are locked with the usual log in session variables, to ensure that only logged in people can access these pages.

Now the problem is that on two of my pages, the php scripts seems to run completely by themselves. The first page is just a page that resends all of the activation emails to every user in the DB. This page can only be accessed by being logged in, and being an administrator. The second page can only be accessed by going through PayPal. The PayPal script has fallback support which checks whether there are PayPal post variables.

Anyone know why these scripts are running by themselves? It gets bothersome when random emails are continually sent to customers or administrators. I probably did something wrong somewhere. I thought it might just be the Google crawler activating the scripts, but wouldn’t the crawler have to be logged in to access the scripts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T04:05:05+00:00Added an answer on June 9, 2026 at 4:05 am

    It could be a number of things.

    One approach could be that search engines are executing your scripts.

    A couple of years ago I was hired to look into what could be causing the deletion of all pages made with their homemade CMS.

    Looking through their access logs revealed that two search engines was trying to index the content in the administration frontend. Including all the Delete page links.

    The reason why this could occur was a combination of two things.

    The first was the administrators browser plugins from the two search engines. Documentation proved that pages a client visited was sent to the search engines from their plugin.

    Secondly, when the search engine attempted to index a session protected page, the original developer of their CMS forgot to put an exit; after the header('Location: ...');part which meant that the rest of the code on the page still got executed.

    The solution

    I fixed the problem by adding exit; to the code:

    If( ! isset($_SESSION['level']) )
    {
      header('Location: login.php');
      exit; // stops further execution of code
    }
    

    I hope this can help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

All right, I'll try to explain my problem as clearly as I can. I
This is simple example: http://jsfiddle.net/2YE29/3/ What I'm doing wrong? SOLVED: All right, i'm confused
All right so I tried using the button set. So fair, I have been
All right. The problem here is pretty abstract. Bear with me. I have a
All right, this one is going to sound very weird and I don't know
I set up a JavaBridge api over a Tomcat server. All right, it works
All right this is kind of embarrassing, but I am not sure what is
I'm quite new to nhibernate, I was doing all right until I face this
I need twoway binding configClass.RaMsize to numericUpDown. BindField(this.upDownRamSize, Value, configClass, RaMsize);//all right this.upDownRamSize.Value =
Please see this http://jsfiddle.net/yv8uw/1/ When you click View all Comments the box opens up

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.