Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
<?php

// check if the user is root or executed in sudo mode
if (posix_getuid() != 0)
{
        echo "Error: please run \"php {$argv[0]}\" in root or sudo\n\n";
        exit;
}

?>

...