mirror of
https://gitlab.com/ArkHost/WHMCS-ArkhostVPSAG.git
synced 2026-07-24 07:45:55 +02:00
v1.2
This commit is contained in:
@@ -1,100 +1,43 @@
|
||||
# ArkHost VPSAG WHMCS Module
|
||||
# WHMCS VPS Management Module - ArkHost VPSAG
|
||||
|
||||
WHMCS server module for VPSAG VPS platform integration.
|
||||
A WHMCS server module for VPS management with multi-language support.
|
||||
|
||||
## Features
|
||||
|
||||
- VPS control (start/stop/restart)
|
||||
- Backup management
|
||||
- Firewall configuration
|
||||
- OS reinstallation with advanced options
|
||||
- Resource monitoring
|
||||
- VNC console access
|
||||
- 8 language support
|
||||
- Responsive design
|
||||
|
||||
## Requirements
|
||||
|
||||
- WHMCS 8.0+
|
||||
- WHMCS 7.0+
|
||||
- PHP 7.4+
|
||||
- cURL extension
|
||||
- VPSAG API credentials
|
||||
|
||||
## Installation
|
||||
|
||||
1. Extract to `/path/to/whmcs/modules/servers/ArkhostVPSAG/`
|
||||
2. Set permissions: `chmod -R 755 modules/servers/ArkhostVPSAG/`
|
||||
3. In WHMCS admin: Setup → Products/Services → Servers
|
||||
4. Add server:
|
||||
- Type: ArkhostVPSAG
|
||||
- Hostname: VPSAG API endpoint
|
||||
- Username: API username
|
||||
- Password: API key
|
||||
|
||||
## Configuration
|
||||
|
||||
- Create server with ArkhostVPSAG module type
|
||||
- Enter VPSAG API credentials
|
||||
- Test connection
|
||||
|
||||
- Create product
|
||||
- Select module: ArkhostVPSAG
|
||||
- Set plan ID and OS ID
|
||||
|
||||
Configurable options:
|
||||
- `planid` - VPSAG plan identifier
|
||||
- `osid` - Operating system identifier
|
||||
|
||||
## File Structure
|
||||
|
||||
```
|
||||
/modules/servers/ArkhostVPSAG/
|
||||
├── ArkhostVPSAG.php
|
||||
├── callback.php
|
||||
├── README.md
|
||||
├── lang/
|
||||
│ └── english.php
|
||||
└── template/
|
||||
├── clientarea_direct.tpl
|
||||
├── error.tpl
|
||||
├── css/
|
||||
├── js/
|
||||
└── img/
|
||||
```
|
||||
|
||||
## API Integration
|
||||
|
||||
Base URL: `https://www.vpsag.com/api/v1/`
|
||||
|
||||
Headers:
|
||||
X_API_USER: [username]
|
||||
X_API_KEY: [api_key]
|
||||
|
||||
|
||||
Endpoints:
|
||||
- `GET /plans`
|
||||
- `POST /order/plan`
|
||||
- `GET /vps/{id}`
|
||||
- `POST /vps/{id}/action/{action}`
|
||||
- `GET /vps/{id}/graph/{period}`
|
||||
- `POST /vps/{id}/backup`
|
||||
- `POST /vps/{id}/firewall`
|
||||
## Changelog
|
||||
|
||||
## Webhook
|
||||
### Version 1.2
|
||||
- Custom notifications replace browser popups
|
||||
- Confirmation dialogs for critical actions
|
||||
- Multi-language support for all notifications
|
||||
- Smart post-installation script examples based on OS
|
||||
- Fixed firewall rules not displaying after creation
|
||||
- Improved UI styling and animations
|
||||
|
||||
VPSAG webhook URL:
|
||||
`https://yourdomain.com/modules/servers/ArkhostVPSAG/callback.php`
|
||||
### Version 1.1
|
||||
- Basic VPS management
|
||||
- Backup operations
|
||||
- Firewall rules
|
||||
- OS reinstall
|
||||
|
||||
Handles:
|
||||
- VPS provisioning completion
|
||||
- IP assignment
|
||||
- Service activation
|
||||
### Version 1.0
|
||||
- Initial release
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
Enable module logging: Utilities → Logs → Module Log
|
||||
|
||||
Common issues:
|
||||
- Connection failed: Check API credentials and connectivity
|
||||
- VPS not found: Verify VPS ID in service properties
|
||||
- Client area not loading: Check file permissions and PHP logs
|
||||
|
||||
## Support
|
||||
|
||||
support@arkhost.com
|
||||
|
||||
## License
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2025 ArkHost
|
||||
|
||||
© 2024 ArkHost
|
||||
|
||||
Reference in New Issue
Block a user