コード例 #1
0
ファイル: is_root_read.php プロジェクト: bigdeej/PhpSecInfo
 /**
  * Set the messages specific to this test
  *
  */
 function _setMessages()
 {
     parent::_setMessages();
     $this->setMessageForResult(PHPSECINFO_TEST_RESULT_OK, 'en', "No permissions granted for the root ('/') directory. This is the most secure setup.");
     $this->setMessageForResult(PHPSECINFO_TEST_RESULT_WARN, 'en', "Write permission enabled for the root ('/') directory! You should never allow writing outside your www base.");
     $this->setMessageForResult(PHPSECINFO_TEST_RESULT_NOTICE, 'en', "Read permission enabled. You should under normal instances never allow Reading of the root ('/').");
 }
コード例 #2
0
ファイル: is_dir_write.php プロジェクト: bigdeej/PhpSecInfo
 /**
  * Set the messages specific to this test
  *
  */
 function _setMessages()
 {
     parent::_setMessages();
     $this->setMessageForResult(PHPSECINFO_TEST_RESULT_OK, 'en', "Only allowing Read permission. This is the most secure setup.");
     $this->setMessageForResult(PHPSECINFO_TEST_RESULT_WARN, 'en', "Execute permission enabled! You should never allow execution here.");
     $this->setMessageForResult(PHPSECINFO_TEST_RESULT_NOTICE, 'en', 'Write permission enabled. You should consider revoking this permission since it can allow attackers to more easily modify files on your site.');
 }