Advertisement
Guest User

rspy

a guest
Apr 16th, 2014
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. //Choose a passphrase and find the sha256 hash of that passphrase.
  5. //You can use an online calculator to generate the hash: http://www.xorbin.com/tools/sha256-hash-calculator.
  6. //Unless you are using an SSL connection to your server, remember that passphrases could still be obtained via a man-in-the-middle attack.
  7. $APPROVED_HASH = "bcd2ef1daeb417dc852de3fd709658509717e862776d5ef5997b3c7375f9ed0b";
  8.  
  9. //This is the number of times that the WOL server will try to ping the target computer to check if it has woken up. Default = 10.
  10. $MAX_PINGS = 20;
  11. //This is the number of seconds to wait between pings commands when waking up or sleeping. Waking from shutdown or sleep will impact this.
  12. $SLEEP_TIME = 5;
  13.  
  14. //This is the Name of the computers to appear in the drop down
  15. $COMPUTER_NAME = array("TestScale #1","TestScale #2");
  16.  
  17. //This is the MAC address of the Network Interface on the computer you are trying to wake.
  18. $COMPUTER_MAC = array("00:E0:4B:43:35:B7","00:E0:4B:43:35:AD");
  19.  
  20. //This is the LOCAL IP address of the computer you are trying to wake. Use a reserved DHCP through your router's administration interface to ensure it doesn't change.
  21. $COMPUTER_LOCAL_IP = array("10.215.1.227","10.215.2.79");
  22.  
  23.  
  24. //This is the Port being used by the Windows SleepOnLan Utility to initiate a Sleep State
  25. //http://www.ireksoftware.com/SleepOnLan/
  26. $COMPUTER_SLEEP_CMD_PORT = 7760;
  27. //Command to be issued by the windows sleeponlan utility
  28. //options are suspend, hibernate, logoff, poweroff, forcepoweroff, lock, reboot
  29. //You can create a windows scheduled task that starts sleeponlan.exe on boot with following startup parameters /auto /port=7760
  30. $COMPUTER_SLEEP_CMD = "poweroff";
  31.  
  32. //This is the location of the bootstrap style folder relative to your index and config file. Default = "" (Same folder as this file)
  33. //Directory must be called "bootstrap". You may wish to move if this WOL script is the "child" of a larger web project on your Pi, that will also use bootstrap styling.
  34. //If if it on directory up, for example, you would set this to "../"
  35. //Two directories up? Set too "../../"
  36. //etc...
  37. $BOOTSTRAP_LOCATION_PREFIX = "";
  38. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement