justicenode / php-wol Goto Github PK
View Code? Open in Web Editor NEWPHP WakeOnLan Interface
License: GNU General Public License v3.0
PHP WakeOnLan Interface
License: GNU General Public License v3.0
Hi,
in a list of servers created by a user admin, would it be possible to choose which servers to show a basic user or associate a single server with a given basic user account?
Could you suggest me how to change the code?
Thanks
Hi , I have installed new server with apache 2.4;php7.4;mysql server 8, but database is not created.
I don't have erro in to the apache log, or mysql log.
Any Idea?
tks
Hi there and happy new year,
after I fixed some issues with MariaDB and nginx using php7.0-fpm on my Raspberry Pi 3 (Raspbian Stretch) I got the interface almost running.
Now I can't log in as I don't know the decrypted default password which you supply with the INSERT statement and can't get inserting another user to work.
It also might be a problem that I need to use PHP7 which seems to not support the mysql_escape_string() in auth.php which I changed to mysql_real_escape_string() due to some hints after searching the web. Didn't change the log entries though.
2018/01/06 19:20:32 [error] 30921#30921: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in /var/www/html/local/php-wol/auth.php:47 Stack trace: #0 /var/www/html/local/php-wol/login.php(17): Auth->login('admin', 'password') #1 {main} thrown in /var/www/html/local/php-wol/auth.php on line 47" while reading response header from upstream, client: 192.168.0.2, server: 192.168.0.213:8000, request: "POST /php-wol/login.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.0.213:8000", referrer: "http://192.168.0.213:8000/php-wol/"
Anyway, the first step for me is to try with the correct password to be able to really debug and exclude that the error comes up because of the wrong password.
Edit: first step is to use mysqli_ - mysql_ functions are deprecated now with php7 .. now I get another error because the function expects 2 parameters but gets only one.
Hi,
Thank you for your web ui, it's simple and clear.
I just have a problem with the magic packet, I run the UI on php 7.2, I have done some modification 'mysqli' etc... But when I click on the button "Wake Up", there is "loading" and "Dead" at the end.
I've no error on my webserver.
Have you got an idea about this ?
private $servername = "cn.vomiku.com";
private $username = "wol";
private $password = "7w87Z4y6xPp******";
private $database = "wol";
private $mysqli;
Hello, (is not an issue)
I edited your script with some functionality.
I can't do pull request. If you want, I can send you the code.
How can I add extra user and/or change name/pass from current user(s)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.