slight reorganization

- request.php and send.php files moved to web/php/ directory

- updated readme info
This commit is contained in:
Mestima 2020-08-25 06:09:35 +03:00
parent 147a39e67a
commit 7e38b859f4
No known key found for this signature in database
GPG Key ID: 30B59EB1D7F18807
3 changed files with 9 additions and 2 deletions

View File

@ -12,12 +12,20 @@ Discord - [Garry's Mod](https://store.steampowered.com/app/4000) message transfe
- Allows Garry's Mod server admins to run [ULX](https://ulyssesmod.net/downloads.php) commands via Discord - Allows Garry's Mod server admins to run [ULX](https://ulyssesmod.net/downloads.php) commands via Discord
## Installation Guide: ## Installation Guide:
1. Go to your web-server and upload send.php and request.php 1. You have to choose only one(!) of the sub-steps below (1.1 OR 1.2)
1.1. (if you want to use php)
Go to your web server and upload `send.php` and `request.php` files from `web/php/` folder. Your web server must support php.
- `http://yoursite.com/send.php` - `http://yoursite.com/send.php`
- `http://yoursite.com/request.php` - `http://yoursite.com/request.php`
1.2. (if you want to use nodejs)
Coming soon.
2. Go to the `GM-Discord/lua/autorun/server/discord.lua` and replace all API links with your website addresses. 2. Go to the `GM-Discord/lua/autorun/server/discord.lua` and replace all API links with your website addresses.
3. Upload the addon to your server. 3. Upload the addon to your server.

View File

@ -21,6 +21,5 @@
) )
); );
$context = stream_context_create($options); $context = stream_context_create($options);
$result = file_get_contents($_POST["webhook"], false, $context); $result = file_get_contents($_POST["webhook"], false, $context);
?> ?>