* @access public
* @author Stefan Saasen <s@fase4.com>
* @return array
- * @see _array_item
+ * @see _array_item
*/
function get_array_item( )
{
* @access public
* @author Stefan Saasen <s@fase4.com>
* @return array
- * @see _array_textinput
+ * @see _array_textinput
*/
function get_array_textinput( )
{
/**
* Getter for parser id from resource
*
- * @access private
- * @author Roland Haeder <webmaster@mxchange.org>
- * @return int
+ * @access private
+ * @author Roland Haeder <webmaster@mxchange.org>
+ * @return int
*/
function get_parser_id ($parser) {
// Default is zero
* @access public
* @author Stefan Saasen <s@fase4.com>
* @return array
- * @see _array_image
+ * @see _array_image
*/
function get_array_image( )
{
$ret = '';
if ((strpos($GLOBALS['tpl_content'], '$') !== false) || (strpos($GLOBALS['tpl_content'], '{--') !== false) || (strpos($GLOBALS['tpl_content'], '{!') !== false) || (strpos($GLOBALS['tpl_content'], '{?') !== false)) {
// Normal HTML output?
- if ($GLOBALS['output_mode'] == 0) {
+ if (getOutputMode() == 0) {
// Add surrounding HTML comments to help finding bugs faster
$ret = "<!-- Template " . $template . " - Start -->\n" . $GLOBALS['tpl_content'] . "<!-- Template " . $template . " - End -->\n";
// get new instance
$mail = new PHPMailer();
+
+ // Set charset to UTF-8
+ $mail->CharSet('UTF-8');
+
+ // Path for PHPMailer
$mail->PluginDir = sprintf("%sinc/phpmailer/", getConfig('PATH'));
$mail->IsSMTP();
$text = ''; $PARTS[] = $test;
foreach ($PARTS as $part) {
$text .= $part;
- }
+ } // END - foreach
// Replace new-lines agains <br />-s and finally compile possible own HTML tags out...
return compileCode(str_replace("\n", "<br />\n", $text));
// Send mail away as HTML
$FROM = "Content-Type: text/html; charset=UTF-8\n" . $FROM;
sendEmail($to, $subject, $message, 'N', $FROM);
- }
+ } // END - if
}
//
$data['categories'] = generateCategoryOptionsList('normal');
// Decode entities
- $data['text'] = (decodeEntities($data['text']));
+ $data['text'] = decodeEntities($data['text']);
// Load template
loadTemplate('admin_send_yoomedia', false, $data);
setConfigEntry('OUTPUT_MODE', 'render');
} // END - if
- // Set other missing variables
- if (!isOutputModeSet()) setOutputMode(0);
-
// Include more
foreach (array('inc/databases.php','inc/versions.php','inc/db/lib.php','inc/session.php','inc/install-functions.php','inc/load_config.php') as $inc) {
// Load the include
// Setter for 'output_mode' value
function setOutputMode ($newOutputMode) {
- $GLOBALS['output_mode'] = SQL_ESCAPE($newOutputMode);
+ $GLOBALS['output_mode'] = (int) $newOutputMode;
}
// Checks wether output_mode is set and optionally aborts on miss