Created
September 30, 2011 01:29
-
-
Save ichikaway/1252431 to your computer and use it in GitHub Desktop.
phpThumbセキュリティ設定
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
外部画像のサムネイル禁止、画像サイズ上限設定 | |
phpThumb.config.php | |
<?php | |
$PHPTHUMB_CONFIG['cache_maxsize'] = 1024 * 1024 * 1024; //キャッシュ画像全体の上限容量 1Gbyte | |
$PHPTHUMB_CONFIG['output_maxwidth'] = 1000; | |
$PHPTHUMB_CONFIG['output_maxheight'] = 1000; | |
$PHPTHUMB_CONFIG['nohotlink_enabled'] = true; //外部画像のサムネイル禁止 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment