Answer the question
In order to leave comments, you need to log in
How to install script dle 14?
Good day.
Where to add this script : require_once 'path to file/ap.php';
For all pages to work.
They sent me these instructions, but I did not understand anything:
The files must be placed together with the site scripts (preferably in a separate directory). In the starting php script of the site, connect the command
require_once 'path to the file/ap.php';
and the first command to call the function init_adv([string $ip])
Script connection:
**require_once 'ap.php';**
Usage:
at the beginning of the script, call the function **init_adv([string $ip])**
* @param string $ip IPv4 or IPv6 address (if address is not specified, get it from header)
* returnboolean true - user redirected to https version
The **config.php** file must be located in the same directory as ap.php.
The following fields can be configured in the configuration:
**ip_header** - the name of the header in which the user's ip is transmitted
**domain** - the domain to which the redirect occurs. If not specified, then the redirect occurs to the same domain where the user came from.
**ap_folder** - path where access points are stored. If not specified, they are saved to the script directory
**server** - URL for requesting access points.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question