PHPsend
PHPsend
Execute console commands using PHP scripts on website!
This plugin provides simple API and lightweight plugin to allow you command your server from your webpage!
To all updating people. You will have to update your scripts plugins, the main thing is that now functions are prefixed with PHPS instead of PHP (for example old PHPconnect is now PHPSconnect).
PHPsend is now PHPSend**
NEW VERSION
- Logging level (No more console spam!), new logging system
- Hash algorithm is now SHA1
- Player associated commands
- New command: phpsend reload to let you reload config and whitelist without server restart
- IP Whitelist for both php script and plugin
- Post argument style
- Protocol names are now with PHPS instead of PHP (like PHPconnect is now PHPSconnect)
- New plugin hook: onWebCommandAsPlayer
- Cleaned up code
- Minor bugs fixed, more exceptions handled.
- Add few API functions to make your life even simplier.
Pages are updated now. Just wait for approval.
Features:
- Execute commands from web
- Using SHA1 password to authenticate
- Simple API with few fuctions!
- Configurable port (default: 11223)
- EXTREME small
- Support for /reload!!!
Plugin API Tutorial - Making simple online player website
Dev Builds
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
@SkeletonGamer
I don't think 1.1 has utf :D I said next one xD It's not as easy as I thought :)
Sorry :C
I am trying to make an online store where players can donate and they get promoted in-game with commands executed by your script but I want to know a thing,how do I stop people from accessing the script from the web?If my php file is on a website,people can just access that file and commands on my server will be executed...How do I stop that?I am quite new to PHP...
@kittyPL
In PHPsend 1.1 ? Thank you kittyPL :)
@SkeletonGamer
Ugh, next version will have unicode included! :)
I have added multithread and fixed some bugs... I wanted to add commands like "PHPSgetOnlinePlayers", and extend miniplugins, but I gonna release multithreaded bugfixer now :)
Uploading in 2 minutes.
@MsPtibiscuit
its double the size of original plugin?
anyway i'll just wait for kittty to get a new update out and maybe integrate that
I've made a parallel version of PHPsend, it modifies the thread to make it multi-thread, this version can handle multiple connections at the same time:
Link Removed: http://www.mediafire.com/?4snq9sbqn01fk1n
@kittyPl
@kingrunes
An error that I reported on the forum: http://dev.bukkit.org/server-mods/phpsend/forum/46188-utf-8-problem/#p1
You can go read please? Thank you! :)
@Ta6akus4
Current fixes:
EndOfStream error is not handled. It occurs very very rarely. Only one client can be processed at time (No multipe connections).
Guys, good news! :D
One of my projects is stopped for a while, I have more time for PHPsend! :D
I hope I will release beta of scripting soon, maybe before the new year :D The bugfix+some new things will be done today or tomorrow, but I don't know if it's worth to release it... Post new features now, to make sure they will be added. All reported bugs will be fixed.
Siema :> You have made mistake in API tutorial. It says "$con = new PHPSend();", but it must be "$con = new PHPSsend();", otherwise the script won't work.
Actually I haven't pinned it down yet, i think it was just a combination of current versions of skript not working at all with 1.4.6 and me thinking it was phpsend.. but it does seem to work.. just some php stuff I was doing and things weren't working that had nothing to do with phpsend.. and perhaps my php code instead :D
ignore the complaint.. and hurry up with the next version :D
@XeonG8
What's wrong? I don't even have time to test -_-
phpsend does seem a little broken with 1.4.6
@Adrenalineq
I see. I hope I will release an updated version soon...
@MsPtibiscuit
Bukkit 1.4.5 - Recommended build OUT.
@kittyPL
Yeah, i'm a bit busy at the moment working on my server, but I'd love to improve the plugin. (Do you have Skype ? To be able to speak about what you've planned for the plugin) :)
@MsPtibiscuit
Hmmm. Do you think you can halp me in general developement? :) I really need some people to help, since kingrunes is out... Of course, If you want and have time ;)
@MsPtibiscuit
I'll try to make a build where I'll modify your code to consider that if readLine() return null (player == null), I'll consider that the connection is closed. I'll see if command are still executed, and if I don't loose anything
Edit: Good news, it works well, here is the code I added
If you want that I run a special build, which displays some variables, i'm ready. :)
@kittyPL
Here is the script I used (I mix all the phpsend.php and the phpsendconfiguration.php into one file, this was just a test so my Phpcode is a bit messy): http://pastebin.com/EBNEbZ6j
When I reload the 3 servers, it works for some minutes, but sometimes, or when I hit F5 fastly, for example, i get the error in my log and then I can't connect to Phpsend because the thread is stopped. I can test a build, if you want.