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.
I will upload 1.0 in a minute, many new features here ^^
Documentation will be updated later (outdated pages will be marked).
Changelog:
Uploading in few minutes.
WARNING: Im sorry, but few of names changed, so you will have to update your scripts and plugins.
@MsPtibiscuit
Thx for support! :)
I will release next version today, I hope. There would be 2 files (1.6, 1.7) then. Documentation tomorrow maybe ;)
Any features you want to add? :D
Could you please regive the JRE 1.6 version of the plugin, the link has been removed by a mod cause it is on a offsite site.
And your plugin is awesome, it is simple, light, i use it for my cms-website Mineshop and a ton of users use it ! =)
@XeonG8
Btw, I saw your discussion on SwiftAPI, It can be easily done with custom PHPsend plugin (plugin for plugin, I know it's kinda weird xD) I can help you to code that, It just requires a bit of Java general knowedgle.
@XeonG8
Mine plugin is more simple, but it doesn't support other programming languages than php. I don't think anything more than PHP is needed really. Anyway, you can still connect to PHPsend with your favourite language if you know a bit of socket programming. Whole protocol is described in help pages. The API is written for PHP only, but providing any other API for different programming languages isn't so hard. I could do this, but I as I said, I don't think it's neccessary...
If there are some request for concrete language, then I can make it :)
oh http://dev.bukkit.org/server-mods/swiftapi/
@XeonG8
Uhm, what is Swift API?
How does this compare to Swift API? does it? what would you say are the differences? pros/ cons?
Im more timeish now, prepare for 1.1 soon!
@NathanDTaylor
Make sure you input same password clientside and serverside (in config and in your code).
The other thing, it might be that plugin isn't sending the correct md5 sum. Can you post your version of Java?
To make quick fix, if you know Java a bit, decompile PHPsend (easy to do, google it), and change some code (really clean and simple).
Most probably the first option is correct. Well, Im quite busy now, cant help you better. Sorry.
I just have one problem with this plugin. The password in the config file (generated one) is "3fde53a598568ace" and that is what I have the password set to in the php file. $succ returns "2" which means that the password is incorrect. I copied and pasted it from the config file. If I uncomment, the commented code in PHPSend.php, I get this...
"RESULT: d41d8cd98f00b204e9800998ecf8427e"
When I look at the code, it is sending an md5 hashed version of the password to the console, do I need to set the password in the plugin file to a hashed version of the password in the php file?
Try it out ==>HERE<==
It is possible to add the ability of sending command associated with a connected player ? For exemple /tphere player or other player associated commands.
@sdsk8
sdsk8, PM me if you want help. Tell me what are your skills (if you can add pyhon scripting, it would be awesum :O), Im really out of time, hisql started, need to learn -_-
Hey, i wan't to help developing the plugin I have started a project on github, it's a python binding for your plugin: https://github.com/sdsk8/pybukkitr
could you release the 0.9 source code? thanks.
To everyone and @kittyPL, I am still working on the plugin but a lot of things have been going on with real life recently so my deving time has gone from 4-6 hours a day to 0-1
@kittyPL You could send me a modified plugin to my email [email protected] I would appreciate it ALOT! I just need few lines removed
file = PhpSendListenThread
1. Client connected! Since i dont need to know if it's connected, it only spams my logs fully when more users login/logout from my web admin control
2. PHP client disconnected: Same with above
3. PHP command: since this dont have anything to do with the code than just telling the users what is being executed, i dont need it either.
Because i have no idea how to decompile in Java and get it working. Thank you in advance!
@xtume
Sorry for no code. The plugin is not obfuscated, decompile if you need source :)
Hey just a question.. when is the source for 0.9 coming out..
I would just modify the logger since PHPsend is spamming my logs fully when im using my WAC(web admin control)
So instead of logging user connects and disconnects etc it would log nothing except error's such as when user logs in with bad password or without cmd..
Thanks (:
Got my hands on a friends 3G dongle (he did say he may need it back at unspecified times) but I can't argue, it's a good thing. This should give me time to finish the update and upload everything. Should be an interesting update, but all existing plugins will need to be modified for this.
Sadly, there has been an unexpected set back. I was switching ISPs in order to get fiber optics but me and my bad timing manged to miss the tech guy and therefore I have no service from the old or new ISP. I will be using 3G for the next 13 days, but sadly I missed today and therefore I will try my best to release the update tomorrow.