This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
if (count($argv) < 3) { | |
echo <<<USAGE | |
Usage: genshadow.php salt password | |
USAGE; | |
exit(0); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Для DIR-300 и подобных давно существует способ посмотреть пароль в plaintext просто находясь с ними в одной сети: | |
http://192.168.0.1/model/__show_info.php?REQUIRE_FILE=/var/etc/httpasswd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Спрятать поле формы для пользователя, но сохранить его значение по умолчанию. | |
// Исключает поле из рендеринга. | |
$form['field_test']['#access'] = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Override default system css | |
stylesheets[all][] = css/default/system.admin.css | |
stylesheets[all][] = css/default/system.admin-rtl.css | |
stylesheets[all][] = css/default/system.base.css | |
stylesheets[all][] = css/default/system.base-rtl.css | |
stylesheets[all][] = css/default/system.maintenance.css | |
stylesheets[all][] = css/default/system.menus.css | |
stylesheets[all][] = css/default/system.menus-rtl.css | |
stylesheets[all][] = css/default/system.messages.css | |
stylesheets[all][] = css/default/system.messages-rtl.css |