これの意味わかるひと~
define('DATA_REGIST', 0);
define('DATA_NOTREGIST', -1);
define('DATA_VISIBLE', 0);
define('DATA_UNVISIBLE', -1);
なんだろう、このもやもや感。
自称スーパーなPGが書いたPHPのソースに書いてあった。
>> 2024.11.
そいつはもういないらしい。
辞める数年前には、俺はそいつを嫌いになっていた。
define('DATA_REGIST', 0);
define('DATA_NOTREGIST', -1);
define('DATA_VISIBLE', 0);
define('DATA_UNVISIBLE', -1);
# cd /var/www/html # find . -type f -name "*.php" | xargs grep -E "common/html"
Inside per-server configuration (httpd.conf)
for request GET /somepath/pathinfo:
Given Rule Resulting Substitution
---------------------------------------------- ----------------------------------
^/somepath(.*) otherpath$1 invalid, not supported
^/somepath(.*) otherpath$1 [R] invalid, not supported
^/somepath(.*) otherpath$1 [P] invalid, not supported
---------------------------------------------- ----------------------------------
^/somepath(.*) /otherpath$1 /otherpath/pathinfo
^/somepath(.*) /otherpath$1 [R] http://thishost/otherpath/pathinfo
via external redirection
^/somepath(.*) /otherpath$1 [P] doesn't make sense, not supported
---------------------------------------------- ----------------------------------
^/somepath(.*) http://thishost/otherpath$1 /otherpath/pathinfo
^/somepath(.*) http://thishost/otherpath$1 [R] http://thishost/otherpath/pathinfo
via external redirection
^/somepath(.*) http://thishost/otherpath$1 [P] doesn't make sense, not supported
---------------------------------------------- ----------------------------------
^/somepath(.*) http://otherhost/otherpath$1 http://otherhost/otherpath/pathinfo
via external redirection
^/somepath(.*) http://otherhost/otherpath$1 [R] http://otherhost/otherpath/pathinfo
via external redirection
(the [R] flag is redundant)
^/somepath(.*) http://otherhost/otherpath$1 [P] http://otherhost/otherpath/pathinfo
via internal proxy
Inside per-directory configuration for /somepath
(/physical/path/to/somepath/.htaccess, with RewriteBase /somepath)
for request GET /somepath/localpath/pathinfo:
Given Rule Resulting Substitution
---------------------------------------------- ----------------------------------
^localpath(.*) otherpath$1 /somepath/otherpath/pathinfo
^localpath(.*) otherpath$1 [R] http://thishost/somepath/otherpath/pathinfo
via external redirection
^localpath(.*) otherpath$1 [P] doesn't make sense, not supported
---------------------------------------------- ----------------------------------
^localpath(.*) /otherpath$1 /otherpath/pathinfo
^localpath(.*) /otherpath$1 [R] http://thishost/otherpath/pathinfo
via external redirection
^localpath(.*) /otherpath$1 [P] doesn't make sense, not supported
---------------------------------------------- ----------------------------------
^localpath(.*) http://thishost/otherpath$1 /otherpath/pathinfo
^localpath(.*) http://thishost/otherpath$1 [R] http://thishost/otherpath/pathinfo
via external redirection
^localpath(.*) http://thishost/otherpath$1 [P] doesn't make sense, not supported
---------------------------------------------- ----------------------------------
^localpath(.*) http://otherhost/otherpath$1 http://otherhost/otherpath/pathinfo
via external redirection
^localpath(.*) http://otherhost/otherpath$1 [R] http://otherhost/otherpath/pathinfo
via external redirection
(the [R] flag is redundant)
^localpath(.*) http://otherhost/otherpath$1 [P] http://otherhost/otherpath/pathinfo
via internal proxy
# grep -E "from=" /var/log/maillog | grep -o -E "[0-9A-Z]{10}" > ~/hoge.txt
# grep -f ~/hoge.txt /var/log/maillog | grep "said: 5" > ~/hoge_5XX.log
chown -R hoge:hoge ./ ※ ./* としたいところだが、* を付けると隠しファイルが変更対象にならない。
mv * .[^\.]* 移動先ディレクトリ
rm -r * .[^\.]* ※ 確認メッセージが鬱陶しかったら、-rf とする。
# ls -aRl / > /tmp/permission_list
# find -printf "%p\t%TY-%Tm-%Td %TH:%TM:%TS\t%u\t%g\t%#m\n" > /tmp/permission_list
7月に県の消防操法大会がある。 市内分団の持ち回り制で、今年はうちの分団が出場する。 俺も前回回ってきたときに、選手として出た。 訓練が5月から始まっている。 週5日。 訓練時間は2時間だけど、その前に準備する時間もあり、訓練後の撤収時間も必要だから、拘束時間は約3時間。 俺が...