Page 1 of 1

click.php move and rename

Posted: Mon Feb 06, 2017 12:09 pm
by quantum
Script URL: Locally under Xampp
Version of script: 2.1.2
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: move und rename

Hello Klemen,
Please excuse the bad english, but since I speak only German, I had to use the Google translator :-)

I hope you can help me with 2 questions.

Question 1:
I would like to move the click.php directly to the root directory of the website for security reasons. So I get instead of the URL http://example.org/ccount/click.php?id=1 then http://example.org/click.php?id=1.

I tried this and in the click.php the require path for the ccount_settings.php adjusted as follows:

Code: Select all

Before:
require 'ccount_settings.php';

Afterwards:
require 'ccount/ccount_settings.php';
Unfortunately this does not work. If I use Google Chrome only a blank white page appears and in the Fireox the following error message:

Error: Redirection error
The called website redirects the request so that it can never be terminated.
This problem can occur when cookies are disabled or denied

Is this at all possible and if so, what am I doing wrong?

Question 2:
Can I rename the click.php? In download.php and if so, what do I have to consider?

I thank you already now and look forward to your suggestions for solutions.

Lovely wishes

Quantum

Re: click.php move and rename

Posted: Mon Feb 06, 2017 1:30 pm
by Klemen
Hi,

Q1: you will also need to correct the "db_file" setting within the copied click.php so that the file can open the correct database file.

So, changing

Code: Select all

require 'ccount_settings.php';
to this should do the trick:

Code: Select all

require 'ccount/ccount_settings.php';
$ccount_settings['db_file'] = 'ccount/ccount_database.php';
Q2: should be no issues, just change the "URL of click.php file" in settings to the new download.php URL so that correct links are generated.

Make sure you clear browser cache before testing any changes.

Re: click.php move and rename

Posted: Mon Feb 06, 2017 3:43 pm
by quantum
Hello Clemen,
works perfectly. Thank you very much for your quick solution. :D

Greetings, Quantum