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.
Hello everyone, as @kittyPL said, I working on an update (I am hoping to push tomorrow) this may break existing plugins that depend on PHPsend but shouldn't take long to update. I will post more details on the changes tomorrow when I release the update.
Hi guys, @kingrunes is going to develop PHPsend now, since Im out of time. I will join him as soon as possible.
We are (actually he is, mostly) preparing a great update, we gonna rewrite most code and add many features.
Thats all for now, I will try to answer any questions and comments.
@kittyPL no I don't mean for other plugins, I mean in plain everyday Java. Also, I have a TON of time right now, Ill PM you about how I can help.
@RiverNight
yep. Should work with all next versions since it has only two bukkit hooks.
@kingrunes
Uhm, If you mean API for other plugins, already made it :)
@kingrunes
If you have too much time :) I will have more time soon... PM me
Is it stable on 1.3.2?
@KittyPL I see you're very busy, and as it happens, I am a very big fan of sockets (Having wrote my own IRC bouncer, IRCd (server) and my own Client/Server socket libraries with threaded events). I'd be happy to continue your work until you have time to continue it.
Please reply
I'm working on a Java API for this, I'll post a link when I'm finished. Please reply if you're interested.
@Stuntweed
Yeah, The SHA is comming next version (already implemented), I gonna add IP white/blacklist. Also, bukkit->bukkit2 connection will be possible next version :)
1. Use SHA1 2. Make it IP based, whitelist and blacklist (very very important).
@Wolf480pl
I will add this in 1.0 :)
About 1.0:
I dont have much time now. Its free project, I have other jobs :C Anyway, Im trying to answer the comments and PM's. I really cant tell you when I gonna work. Sorry.
@Kentora
Uhm, I thought it is clear :) But yes, its a good idea to mention it in plugin api tutorial/doc :)
Thanx for reporting.
I have a suggestion: Use SHA-1 instead of MD5. MD5 is not safe anymore. http://en.wikipedia.org/wiki/MD5CRK
@kittyPL
Thank you but I had observed it was an archive ^ ^ The logs are difficulty viewable from the panel of my host, so I'll try to see but I do not know if I'll be able to see any error. Meanwhile my server still does not detect the plugin :/
Oh well, this is awkward...
I fixed my problem, to the rest of you who make the same mistake as i did:
You have to tell bukkit that your plugin is dependent of PHPsend in your plugin.yml file...
Hello KittyPL.
When i try to load up my server after using your library in my plugin i get this error:
17:20:06 [SEVERE] Could not load 'plugins\**.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/sh adowz/phpsend/PhpSendPlugin
I have phpsend.jar in my plugins folder, what can be the error?
@RiverNight
Uhm... Check on wikipedia what is port :) I think my english is too low to explain it to you :C But in config, port is just the port that PHPsend listens on (it was hard, huh?), default is 11223, you have to specify port in client-connectors (like PHP script, API).
For $succ, I explained it a little in API tutorial, tutorial is based on my own websites :D If you want to check every $succ, take a look at API documentation, I have explained all API functions there, with return values too (just compare them) :D
Hope this helps, if you have more questions, post them :)
@TanveerGT5
Sure :D
@GrandVipercool
Check for errors on server startup, and post them here if any... It should appear in plugins...
Oh, one more thing: My download is zip archive. You have to unpack it before using :) The zip also contains the api files.
Hi, Thank you kittyPL for your plugin but I don't understand what's port and what will be done with. One last question, how to check the results "$succ"? You don't come back.