From 7e38b859f432924eda838df0b60daae99d37a74e Mon Sep 17 00:00:00 2001 From: Mestima Date: Tue, 25 Aug 2020 06:09:35 +0300 Subject: [PATCH] slight reorganization - request.php and send.php files moved to web/php/ directory - updated readme info --- README.md | 10 +++++++++- web/{ => php}/request.php | 0 web/{ => php}/send.php | 1 - 3 files changed, 9 insertions(+), 2 deletions(-) rename web/{ => php}/request.php (100%) rename web/{ => php}/send.php (99%) diff --git a/README.md b/README.md index 24699bf..deda948 100644 --- a/README.md +++ b/README.md @@ -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 ## 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/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. 3. Upload the addon to your server. diff --git a/web/request.php b/web/php/request.php similarity index 100% rename from web/request.php rename to web/php/request.php diff --git a/web/send.php b/web/php/send.php similarity index 99% rename from web/send.php rename to web/php/send.php index 02f6bc0..a840ca7 100644 --- a/web/send.php +++ b/web/php/send.php @@ -21,6 +21,5 @@ ) ); $context = stream_context_create($options); - $result = file_get_contents($_POST["webhook"], false, $context); ?> \ No newline at end of file