コード例 #1
0
ファイル: gutuma.php プロジェクト: inscriptionweb/gutuma
// Author email address
define('GUTUMA_LISTS_DIR', $plxMotor->plxPlugins->aPlugins['gutuma']->listsDir);
// Directory where lists are stored
define('GUTUMA_TEMP_DIR', 'temp');
// Directory where temp message files are stored
define('GUTUMA_TEMP_EXPIRY_AGE', 3 * 60 * 60);
// The number of seconds from last access before subfolders/files are deleted from the temp directory
define('GUTUMA_PAGE_SIZE', 10);
// The number of items per page in lists of addresses
define('GUTUMA_MAX_ADDRESS_LEN', 320);
// The max allowable length in characters of an email address
define('GUTUMA_TINYMCE_COMPRESSION', FALSE);
// Enables gzip compression of the TinyMCE scripts
if (!defined('RPATH')) {
    if (class_exists('gu_config')) {
        gu_config::reload();
        define('RPATH', str_replace('inc' . DIRECTORY_SEPARATOR . 'gutuma.php', '', __FILE__));
    } else {
        header('Location: ' . absolute_url('install.php'));
        exit;
    }
}
// Demo mode restrictions
define('GUTUMA_DEMO_MAX_LIST_SIZE', 100);
// Maximum number of addresses per list
define('GUTUMA_DEMO_MAX_NUM_LISTS', 10);
// Maximum number of lists
// Apparently IIS5 servers don't populate PHP_SELF
$_SERVER['PHP_SELF'] = isset($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME'];
$htaccess = "Allow from none\n";
$htaccess .= "Deny from all\n";