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.
Hey, I'm a little confused by how I can send info to a website. I have read your documentation, and I don't understand much.
Can you please explain to me how I send info to a website?
@xMinecraft
Hm. I don't understand your question, but you don't have to type any hash... Just put your favourite password in both configs, and PHPsend will do the rest for you. :)
The password need hash?
@rcth
Please update to 1.1 ASAP. Also, read tutorials. You shuld change the port in config... In case of serious problems PM me.
I'm using PHPSend0.9: I tried to do a simple /say command but it didn't work. My server has port 25595 (mc server). I tried with port and without port and both didn't work.
http://pastebin.com/hmvKDa8F
can you add a direct way to send a message to a player and only them.
where colors codes still work in the message
$con->PHPSmessage("&8blah blah blah");
Where PHPSmessage is already set to send a message to a specific playername
@DrNotThatEvil
Oh, Im glad that someone has understood my code (I have a bad maneer to name variables very weird) :D Well, I'd suggest you miniplugins, then you can separate the PHPsend stuff and everything else (helpfull when something is not working), It's easier to debug, and so on :) If you have managed to edit the source, good for you :)
@kittyPL Nevermind i am busy editing your source code to implement the ban and kick functinality it will be able to ban, kick and warn pepole.
the warn functionality will be able to automaticly tempban pepole and stuff. this is actualy my first time programming java at all but thanks to the internet i can learn it quickly.
when i'm done i might send you the code if you want :P
EDIT: i'm done programming it's fully working if you want the source code i'm happy to share
@typzea
If you want to use IP whitelist, then you need to create a file named wlist.txt in PHPSend config folder, containing allowed IP adresses. Check out other pages for more info.
@DrNotThatEvil
This can be done with Miniplugins easily, hope with new scripting language too (when I finally implement that). If you don't know Java, pm me, if I find some time, I would do this for you :)
Dear KittyPl, Love the plugin very hany for automating stuff but i have one question. you say a command from the (going from plugin -> php) can be activated with a player command. but the only command that can do that is /website key=value ...
what i am wondering is i could catch other commands like a essenstials ban command so that i can automaticly unsubscribe bannend players from say a newsletter. hope you can help with this :)
Hello,
We are currently experiencing a problem when starting the Plug'in PHPSend on our server. We have the following error when we do a restart phpsend:
phpsend reload 2:21:27 p.m. [INFO] [PHPsend] (ERR) ENABLED IN CONFIG whitelist BUT NO FILE FOUND! 2:21:27 p.m. [INFO] reloaded
Can you help us.
thank you,
@kinghazee
It happens when you cant open socket, probably the port is busy.
Accept Interrupted
what does it mean?!
@kittyPL
Dun :D Sources available!
Sources are being uploaded now...
Link in few minutes...
@XeonG8
XeonG8, the best way to make it work is just to write PHPsend miniplugin in Java. PM me, tell what you need and I will do my best to help you :)
@kittyPL
Yes I know :) In 1.1, I confirm that UTF-8 does not work ;) So, it's for 1.2 :P
LOVE the multithread support!
still really wanting a way to not have to write messages=_like_this_in_the_website_command.
@decebaldecebal
When user enters a website, the PHP code inside is executed. You have to make something like this:
Page One: <Input field for InGame name> <Input for sms code, or any other auth code> <Submit: redirect to page 2 with post data from form>
Page Two: Check if Code is valid: YES: { Execute command to give user rank, permission or anything else; redirect to Page Three; } NO: { redirect to Page Four; }
Page Three: <Message that everything succed>
Page Four: <Message that something went wrong>
This is the basic scheme, that's how this should work. For admin panel make authentication just like im account based sites :)
If you want more help, PM me, If I have some time (I don't think so)I can write it for you :)
Maybe I will find a couple of minutes.