- create
- read
- destroy
- change_flavour
- expand_volume
- stop
- start
- suspend
- resume
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 | |
| $key = base64_decode("iqFPeN2u+Z0Lm5IrsKaOFKRqEU5Gw8ePtaEkHZWuD24="); # 発行したシークレットキーをセット | |
| $token_lifetime = 3600; # 有効期限を1時間とする | |
| $path = "/foo/bar.html"; # アクセス先のパス情報 | |
| $expiration = time() + $token_lifetime; # 有効期限の unix time 取得 | |
| $string_to_sign = $path . $expiration; # パスと有効期限を連結してメッセージを作成 |
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
| # gogo |
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
| <html> | |
| <body> | |
| <form name=a> | |
| <input type=text name=x value="te\st"> | |
| <input type=button onClick="alert(document.a.x.value);"> | |
| <hr> | |
| <div id="y">te\st</div> | |
| <input type=button onClick="alert(document.getElementById('y').innerHTML);"> | |
| <hr> | |
| <input type=button onClick="alert('te\st');"> |