Integration Page Template - WisTex/php-integrating-scripts-example GitHub Wiki
Name of Script
Replace this text with a summary of what the script does. Update everything below as appropriate.
- URL to Script's home page
- License: Proprietary, GPLv3, MIT, etc.
- Type: Premium, Freemium, Free
Login System Integration
If you include the following code in your custom PHP page, you will have access to the variables related to this script's login and user management system.
<?php
// check if users are logged in
include '/path/to/members.php';
?>
Note: you may have to change the path.
This will give you access to the following variables:
/* Available Variables
$loggedin (boolean) - is a user logged in? true or false?
$userid (integer) - the user's unique ID number
$username (string) - the user's username
$userlevel (integer) - user's permission level
$isadmin (boolean) - is the user an administrator? true or false?
*/
Use with Picé
To use this with Picé, refer to the following instructions:
Version Notes
This code should work for the following versions:
- 1.0 and higher
Restrictions & Pitfalls
The code may not work as expected unless:
- The custom page must be located on the same domain name.
- The custom page must be located in the main directory or a subdirectory.
- The custom page must be located in a specific directory, which is:
Additional Notes
Add any additional notes about the integration here, if any.
Resources
Links to additional resources.
- URL or hyperlink