?> <br/> <?php if (!TestPostieDirectory()) { print "<h1>Warning!</h1>\r\n <p>Postie expects to be in its own directory named postie.</p>"; } else { print "<p>Postie is in " . dirname(__FILE__) . "</p>"; } ?> <br/> <h2>GD Library Test<h2> <p> <?php echo HasGDInstalled(); ?> </p> <h2>Iconv Library Test<h2> <p><i>Only required if you want to support ISO-2022-JP</i> <?php echo HasIconvInstalled(); ?> </p> <br/> <h2>Clock Tests<h2> <p>This shows what time it would be if you posted right now</p> <?php $content = ""; $data = DeterminePostDate($content); ?>
?> </table> </fieldset> </td> </tr> <tr><td colspan=2> <fieldset class="options"> <legend><?php _e('Image Settings'); ?> </legend> <table width="100%" cellspacing="2" cellpadding="5" class="editform"> <?php if (!HasGDInstalled()) { ?> <tr> <th scope="row">No GD Support </th> <td>Currently your installation of PHP does not have GD installed so no image resizing can occur. <input type="hidden" name="RESIZE_LARGE_IMAGES" value="0"> <input type="hidden" name="JPEGQUALITY"" value="80"> </td> </tr> <?php } else { ?> <?php echo BuildBooleanSelect("Post Images At End", "IMAGES_APPEND", $config["IMAGES_APPEND"], "No means they will be put before the text of the message."); ?> <?php
<br/> <?php if (!TestPostieDirectory()) { print("<h1>Warning!</h1> <p>Postie expects to be in its own directory named postie.</p>"); } else { print("<p>Postie is in ".dirname(__FILE__)."</p>"); } ?> <br/> <h2>GD Library Test<h2> <p> <?= HasGDInstalled();?> </p> <h2>Iconv Library Test<h2> <p><i>Only required if you want to support ISO-2022-JP</i> <?= HasIconvInstalled();?> </p> <br/> <h2>Clock Tests<h2> <p>This shows what time it would be if you posted right now</p> <?php $content =""; $data = DeterminePostDate($content); ?> <p><?php print("GMT:". $data[1]);?></p> <p><?php print("Current:". $data[0]);?></p>
/** * This function handles building up the configuration array for the program * @return array */ function GetConfig() { $config = GetDBConfig(); if (!ConfirmTrailingDirectorySeperator($config["PHOTOSDIR"])) { $config["PHOTOSDIR"] .= DIRECTORY_SEPARATOR; } if (!ConfirmTrailingDirectorySeperator($config["FILESDIR"])) { $config["FILESDIR"] .= DIRECTORY_SEPARATOR; } //These should only be modified if you are testing $config["DELETE_MAIL_AFTER_PROCESSING"] = true; $config["POST_TO_DB"] = true; $config["TEST_EMAIL"] = false; $config["TEST_EMAIL_ACCOUNT"] = "blog.test"; $config["TEST_EMAIL_PASSWORD"] = ""; //include(POSTIE_ROOT . "/../postie-test.php"); // These are computed #$config["TIME_OFFSET"] = get_option('gmt_offset'); if ($config["USE_IMAGEMAGICK"]) { if (!file_exists($config["IMAGEMAGICK_IDENTIFY"]) || !file_exists($config["IMAGEMAGICK_CONVERT"])) { $config["RESIZE_LARGE_IMAGES"] = false; } } else { if (!HasGDInstalled(false)) { $config["RESIZE_LARGE_IMAGES"] = false; } } $config["POSTIE_ROOT"] = POSTIE_ROOT; $config["URLPHOTOSDIR"] = get_option('siteurl') . ConvertFilePathToUrl($config["PHOTOSDIR"]); $config["REALPHOTOSDIR"] = realpath(ABSPATH . $config["PHOTOSDIR"]) . DIRECTORY_SEPARATOR; $config["URLFILESDIR"] = get_option('siteurl') . ConvertFilePathToUrl($config["FILESDIR"]); $config["REALFILESDIR"] = realpath(ABSPATH . $config["FILESDIR"]) . DIRECTORY_SEPARATOR; for ($i = 0; $i < count($config["AUTHORIZED_ADDRESSES"]); $i++) { $config["AUTHORIZED_ADDRESSES"][$i] = strtolower($config["AUTHORIZED_ADDRESSES"][$i]); } return $config; }
/** * This function handles building up the configuration array for the program * @return array */ function GetConfig() { $config = GetDBConfig(); if (!ConfirmTrailingDirectorySeperator($config["PHOTOSDIR"])) { $config["PHOTOSDIR"] .= DIRECTORY_SEPARATOR; } if (!ConfirmTrailingDirectorySeperator($config["FILESDIR"])) { $config["FILESDIR"] .= DIRECTORY_SEPARATOR; } //These should only be modified if you are testing $config["DELETE_MAIL_AFTER_PROCESSING"] = true; //no delete change to false BF-CHANGED $config["POST_TO_DB"] = true; $config["TEST_EMAIL"] = false; $config["TEST_EMAIL_ACCOUNT"] = "blog.test"; $config["TEST_EMAIL_PASSWORD"] = ""; //include(POSTIE_ROOT . "/../postie-test.php"); // These are computed #$config["TIME_OFFSET"] = get_option('gmt_offset'); if ($config["USE_IMAGEMAGICK"]) { if (!file_exists($config["IMAGEMAGICK_IDENTIFY"]) || !file_exists($config["IMAGEMAGICK_CONVERT"])) { $config["RESIZE_LARGE_IMAGES"] = false; } } else { if (!HasGDInstalled(false)) { $config["RESIZE_LARGE_IMAGES"] = false; } } $config["POSTIE_ROOT"] = POSTIE_ROOT; $config["URLPHOTOSDIR"] = get_option('siteurl') . ConvertFilePathToUrl($config["PHOTOSDIR"]); $config["REALPHOTOSDIR"] = realpath(ABSPATH . $config["PHOTOSDIR"]) . DIRECTORY_SEPARATOR; $config["URLFILESDIR"] = get_option('siteurl') . ConvertFilePathToUrl($config["FILESDIR"]); $config["REALFILESDIR"] = realpath(ABSPATH . $config["FILESDIR"]) . DIRECTORY_SEPARATOR; for ($i = 0; $i < count($config["AUTHORIZED_ADDRESSES"]); $i++) { $config["AUTHORIZED_ADDRESSES"][$i] = strtolower($config["AUTHORIZED_ADDRESSES"][$i]); } if (!isset($config["AJAX_SELECT"])) { $config["AJAX_SELECT"] = "0"; } else { if (!current_user_can('config_postie') && $config["AJAX_SELECT"] == "1") { die("Must have admin rights to use ajax"); } } if (!isset($config["POST_TYPE"])) { $config["POST_TYPE"] = "publish"; } // BF-CHANGED was draft if (!isset($config["DEFAULT_TAG"])) { $config["DEFAULT_TAG"] = DEFAULT_TAGS; } return $config; }