RE: xBilling [MODULE]
10-04-2015, 03:25 PM
(This post was last modified: 10-05-2015, 12:12 AM by TGates.)
(10-04-2015, 03:02 PM)modpluz Wrote: Make sure you have a ".htaccess" file in your "/panel" directory and that your API in xBilling "config.php" matches the API Key on your Sentora installation.
This is file .htaccess:
Code:
RewriteEngine On
# Announcements
RewriteRule ^announcements/([0-9]+)/[a-z0-9_-]+\.html$ ./announcements.php?id=$1 [L,NC]
RewriteRule ^announcements$ ./announcements.php [L,NC]
# Downloads
RewriteRule ^downloads/([0-9]+)/([^/]*)$ ./downloads.php?action=displaycat&catid=$1 [L,NC]
RewriteRule ^downloads$ ./downloads.php [L,NC]
# Knowledgebase
RewriteRule ^knowledgebase/([0-9]+)/[a-z0-9_-]+\.html$ ./knowledgebase.php?action=displayarticle&id=$1 [L,NC]
RewriteRule ^knowledgebase/([0-9]+)/([^/]*)$ ./knowledgebase.php?action=displaycat&catid=$1 [L,NC]
RewriteRule ^knowledgebase$ ./knowledgebase.php [L,NC]
Code:
<?php
/**
* API connection settings for xBilling
* Version : 1.2.0
* @author Aderemi Adewale (modpluz @ Sentora Forums)
* Email : goremmy@gmail.com
* @desc This allows front-end billing package interact with the backend module
*/
// Config;
$cfg = array();
$cfg['api_key'] = '<=removed by admin for security reasons =>';
$cfg['panel_url'] = 'http://webhost.ddns.net';
$cfg['zpx_uid'] = 1;
if(strpos($cfg['panel_url'], 'http') === false){
$cfg['panel_url'] = 'http://'.$cfg['panel_url'];
}
?>
Code:
; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen
allow_url_fopen = On
; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
; http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-include
allow_url_include = On