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 = '/home/<your_id>/public_html/www/<your_wp_dir>/' | |
filename = 'wp-login.php' | |
size = 12 | |
original_file = dir + filename | |
# 指定されたディレクトリに、指定されたファイルがあるか探す | |
if File.exist?(original_file) | |
# あれば リネームする | |
rename = [*1..9, *'A'..'Z', *'a'..'z'].sample(size).join + '_' |
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 | |
/** | |
* Array to Text Table Generation Class | |
* | |
* @author Tony Landis <[email protected]> | |
* @link http://www.tonylandis.com/ | |
* @copyright Copyright (C) 2006-2009 Tony Landis | |
* @license http://www.opensource.org/licenses/bsd-license.php | |
*/ | |
class ArrayToTextTable |
NewerOlder