no need to check date. handeled by cronjob

This commit is contained in:
Ahmad Samiei 2015-11-30 14:16:52 +08:00 committed by RandomlyKnighted
parent fc3e403aaf
commit 44e563f001

View File

@ -5,7 +5,6 @@ require 'vendor/autoload.php';
use Bestnetwork\Telnet\TelnetClient;
(date('N') < 6) or exit('weekend');
(strpos(exec('who'), getenv('USER')) !== false) or exit('no session');
sleep(17);
$con = new TelnetClient('10.10.42.42');