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 4096878
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:06:08+00:00 2026-05-20T20:06:08+00:00

I try to read Claroline source code to learn from their coding. In index.php

  • 0

I try to read Claroline source code to learn from their coding.
In index.php file, at the first line of code, they write

unset($includePath); // prevent hacking

You can see full claroline source code from here.

They commented that the line is used to prevent hacking..
I have no idea why should they unset $includePath while the variable is never defined before that line..

What is the purpose of that line of code do actually, and what hacking type that they means?

  • 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-05-20T20:06:09+00:00Added an answer on May 20, 2026 at 8:06 pm

    I have not looked at the source myself, but a bit of searches gives the following kind of security advisory :

    Claroline mambo.inc.php and postnuke.inc.php "includePath" file include

    Note that this relies on [**`register_globals`**][2] being enabled, which :

    • is not the default : it’s been disabled by default for a very long time (since PHP 4.2.0)
    • is bad practice (unsafe ^^ as it allows anyone to inject variables into the PHP scripts ; which is why this one, in this case, is unset "to prevent hacking" )
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to read file /proc/'pid'/status, using c program. The code is as follows,
I try to read JSON file with Java. The code is: public static void
I'm having issues when I try to read a float number from a file.
i try to read Data from an Oracle-Database. The problem is that in some
I try to read out all existing calendars. I tried the example from here:
I see that when I try to read the value from a textarea field
I get a warning in MSVC++ when I try to read an integer from
I try to read numeric/decimal/money columns from SQL Server via ODBC in the following
I try to read and write data from/to Socket with NSStream. Here is my
When i am try to read from SslStream function Read() is never end if

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.