[FilterScript] [Filterscript] HTML Bug Reporter + Auto FTP Uploader
#1

Bug Reporter
File Description:
This is a simple filterscript that allows all your server visitors to report instantly any bug they find in your gamemode. This will update a table in an html file, that you can see by opening it with your browser.
It doesn't use any other library then a_samp, so there is no worries about compatibility or having to download any other library includes to modify the filterscript.

Currently, the filterscript is in version 0.1b, but unlike my previous releases I took a deep look into this one.

If you find any bug, or if you wish any feature or simply have a suggestion to make, please reply to this topic. Comments are welcome aswell.

Oh, I almost forgot. This also includes a welcome message in OnPlayerConnect, telling which command the player can use to report a bug. («/bug [description]»)


SolidFiles Download: Version 0.1b


Credits:
Bug Reporter - Version 0.1b
Copyright © Joгo 'Zriptarusk' Lopes, All rights reserved

Feel free to modify and publish (or just mirror it), as long as you don't remove the credits.


Features to be Added: Request a feature by replying to this topic
- Table Column - User IP Address

How to Publish the Bug Reports in the Web:
File Uploader as finnaly been released. You can use it to update the file automaticly.

Another great way, requires you to have PHP and a web server (apache is good) in the same machine as your sa-mp-server.exe.
If you do, create a 'bugreports.php' in your www root, and populate that file with this code:

Код:
<?php
echo file_get_contents('/path/to/samp/server/scriptfiles/bugreports.htm');
?>
This code has been submited by N_i_k_i

-----------------------------------------------------------------------------------
File Uploader
Bug Reporter File Uploader is a simple Java Application that checks every 5 seconds if the file was modified, and if it was, uploads it to a server specified by you.
Reply
#2

So you mean that, all the bugs people report, goes into a .html file?

COOL! Nice one!
Reply
#3

Quote:
Originally Posted by ʎʇʇnןʞ
So you mean that, all the bugs people report, goes into a .html file?

COOL! Nice one!
It's actually a .htm file, but yes
Reply
#4

Quote:
Originally Posted by -praNkster+
Quote:
Originally Posted by ʎʇʇnןʞ
So you mean that, all the bugs people report, goes into a .html file?

COOL! Nice one!
It's actually a .htm file, but yes
Awesome! Im using this! (im too lazy to make my own /bug command, hehe)

Thanks!
Reply
#5

how to make, that i can include this in my Homepage?

Like anyone Reports a bug.. the File is in Scriptfiles.. but i want that you can see it from the Homepage?
Reply
#6

Quote:
Originally Posted by ►☺◄©ookie►☺◄
how to make, that i can include this in my Homepage?

Like anyone Reports a bug.. the File is in Scriptfiles.. but i want that you can see it from the Homepage?
Well, I never tought about that.
If you host your page in the same computer you host your sa-mp server, you can go to bugreporter.pwn and replace "bugreports.htm" by (for example) "c:/apache/wwwdocs/bugreports.htm". If your host has setted you up a virtual path, you can talk to him for further help.

If you dont, I don't know any other way of doing it.

I'm not sure if this will work tho.


--- Update

I just tried this, and it doesn't work. The server will crash.
Reply
#7

You can set virtual directory in Apache2 config.
Reply
#8

how?
Reply
#9

Quote:
Originally Posted by ►☺◄©ookie►☺◄
how?
The only way I know isn't good at all, but would do the job
Go to your apache/conf folder, search for apache.conf file.
Inside that file, search for
Код:
DocumentRoot "c:/apache/wwwroot"
My path isn't the same as your path. Search for DocumentRoot and your will show up

Set its value to:
Код:
DocumentRoot "c:/somefolder/sa-mp/scriptfiles"
That way, you could do in a browser:
and see your server bug reports.

Other users can access to that very own page, if they replace «localhost» by your global IP.
Reply
#10

i have a root server.. just for information..


Operating System : Debian 4.0



And.. i thing your way will make my Forums unacessable
Reply
#11

Quote:
Originally Posted by ►☺◄©ookie►☺◄
i have a root server.. just for information..


Operating System : Debian 4.0



And.. i thing your way will make my Forums unacessable
That's why I said its a bad way of doing that.
You could move your forums and entire website to scriptfiles/, but that would still be a bad idea since it would open a security breach in your server scriptfiles.
Reply
#12

Lol, nice!
I never had the idea to write a html-file via Pawn.
Reply
#13

Quote:
Originally Posted by Maercell
Lol, nice!
I never had the idea to write a html-file via Pawn.
The idea came by accident.. Lol
Reply
#14

Quote:
Originally Posted by -praNkster+
Quote:
Originally Posted by ►☺◄©ookie►☺◄
i have a root server.. just for information..


Operating System : Debian 4.0



And.. i thing your way will make my Forums unacessable
That's why I said its a bad way of doing that.
You could move your forums and entire website to scriptfiles/, but that would still be a bad idea since it would open a security breach in your server scriptfiles.
This would open the Acess to User Files + Passwords, too
Reply
#15

Quote:
Originally Posted by ►☺◄©ookie►☺◄
This would open the Acess to User Files + Passwords, too
Never heard of .htaccess?

+ you can make scriptfiles/web, and place bugreport file and all webserver in there.
Reply
#16

nah.. too complicated... isnt there a script that checks every 2 Secounds the bug report File and makes a Copy from it to my httpdocs folder?
Reply
#17

Quote:
Originally Posted by ►☺◄©ookie►☺◄
nah.. too complicated... isnt there a script that checks every 2 Secounds the bug report File and makes a Copy from it to my httpdocs folder?
I can do that for you if you want.
I'll create it on Java, which should be compatible with most O/S aslong as theres a Java Virtual Machine installed.

Want me to do it?
Reply
#18

Why don't you make a version with MySQL?!?
It's a bit work, but very useful, if you want to have this bugreports on a webspace or something like that.
Reply
#19

Quote:
Originally Posted by Maercell
Why don't you make a version with MySQL?!?
It's a bit work, but very useful, if you want to have this bugreports on a webspace or something like that.
Maybe.. in a future version.
Reply
#20

I would love you(non gay way) if you do that i can acess from my httpdocs to the bugreport.htm
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)