function get_page_content($name, $coID = '')
 {
     $mode = '';
     $format = strtolower(MODULE_JANOLAW_FORMAT);
     if ($format == 'html') {
         $mode = '_include';
     }
     $url = 'http://www.janolaw.de/agb-service/shops/' . $this->m_user_id . '/' . $this->m_shop_id . '/' . $name . $mode . '.' . $format;
     $content = get_external_content($url, '3', false);
     if (strtolower(MODULE_JANOLAW_TYPE) == 'database') {
         // update data in table
         $sql_data_array = array('content_text' => $content, 'content_file' => '');
         xtc_db_perform(TABLE_CONTENT_MANAGER, $sql_data_array, 'update', "content_group='" . (int) $coID . "' and languages_id='2'");
     } else {
         // write content to file
         $file = DIR_FS_CATALOG . 'media/content/' . $name . '.' . $format;
         $fp = @fopen($file, 'w+');
         if (is_resource($fp)) {
             fwrite($fp, $content);
             fclose($fp);
         }
         // update data in table
         $sql_data_array = array('content_file' => $name . '.' . $format, 'content_text' => '');
         xtc_db_perform(TABLE_CONTENT_MANAGER, $sql_data_array, 'update', "content_group='" . (int) $coID . "' and languages_id='2'");
     }
 }
<?php

require_once DIR_FS_INC . 'get_external_content.inc.php';
define('RSS_FEED_TITLE', 'Shophelfer Ankündigungen');
define('RSS_FEED_DESCRIPTION', 'Shophelfer - Forum - Ankündigungen');
define('RSS_FEED_LINK', 'http://www.shophelfer.com/index.php?action=forum');
define('RSS_FEED_ALTERNATIVE', 'Leider k&ouml;nnen die aktuellen Neuigkeiten nicht im RSS Feed dargestellt werden. Bitte besuchen sie unsere Community unter <a href="' . RSS_FEED_LINK . '">www.shophelfer.com</a> um wichtige Informationen f&uuml;r Shopbetreiber zu diesen Themen zu erfahren: <ul><li>Wichtige Updates und Fixes</li><li>Funktionserweiterungen</li><li>Rechtssprechungen</li><li>Neuigkeiten</li><li>Klatsch und Tratsch</li></ul>');
?>

	    <table border="0" width="98%" cellspacing="0" cellpadding="0">
        <?php 
$feed = get_external_content('http://www.blog.shopbetreuung.com/feed/');
if ($feed && class_exists('SimpleXmlElement')) {
    $rss = new SimpleXmlElement($feed, LIBXML_NOCDATA);
    $rss->addAttribute('encoding', 'UTF-8');
    ?>
          <div style="background:#F0F1F1;font-size:11px; border:1px solid #999; padding:5px; font-weight: 700" align="left">
            <a target="_blank" href="<?php 
    echo $rss->channel->link;
    ?>
"><?php 
    echo $rss->channel->title;
    ?>
</a>
            <br/>
            <?php 
    echo $rss->channel->description;
    ?>
          </div>
          <br/>
          <?php 
   modified eCommerce Shopsoftware
   http://www.modified-shop.org

   Copyright (c) 2009 - 2013 [www.modified-shop.org]
   -----------------------------------------------------------------------------------------
   Released under the GNU General Public License
   ---------------------------------------------------------------------------------------*/
chdir('../../');
include 'includes/application_top.php';
// include needed functions
require_once DIR_FS_INC . 'get_external_content.inc.php';
// include needed classes
require_once DIR_FS_EXTERNAL . 'paypal/classes/PayPalPayment.php';
// get request
$request_input = get_external_content('php://input', 3, false);
// get params
parse_str($request_input, $request);
$request['cmd'] = '_notify-validate';
// set payment
$paypal = new PayPalPayment('paypal');
// get transaction
$transaction = $paypal->get_transaction($request['txn_id']);
// set endpoint
$paypal_url = "https://www.paypal.com/cgi-bin/webscr";
if ($paypal->get_config('PAYPAL_MODE') == 'sandbox') {
    $paypal_url = "https://www.sandbox.paypal.com/cgi-bin/webscr";
}
// validate
$ch = curl_init($paypal_url);
if ($ch === false) {
 function action($action, $xml)
 {
     // action 'push'
     if ($action == 'push') {
         // Catch errors - rechtstext_text
         if (strlen($xml->rechtstext_text) < 50) {
             $this->return_error('5');
         }
         // Catch errors - rechtstext_html
         if (strlen($xml->rechtstext_html) < 50) {
             $this->return_error('6');
         }
         // Catch errors - rechtstext_language
         if ($xml->rechtstext_language == '') {
             $this->return_error('9');
         } else {
             require_once DIR_WS_CLASSES . 'language.php';
             $lng = new language($xml->rechtstext_language);
             $languages_id = $lng->language['id'];
             if ($lng->language['code'] != $xml->rechtstext_language) {
                 $this->return_error('9');
             }
         }
         $local_dir_for_pdf_storage = 'media/content/';
         if (MODULE_API_IT_RECHT_KANZLEI_PDF_FILE != '') {
             $local_dir_for_pdf_storage = trim(MODULE_API_IT_RECHT_KANZLEI_PDF_FILE, '/') . '/';
         }
         // Check PDF files required
         $local_rechtstext_pdf_type = array();
         if (MODULE_API_IT_RECHT_KANZLEI_PDF_AGB == 'true') {
             $local_rechtstext_pdf_type[] = 'agb';
         }
         if (MODULE_API_IT_RECHT_KANZLEI_PDF_DSE == 'true') {
             $local_rechtstext_pdf_type[] = 'datenschutz';
         }
         if (MODULE_API_IT_RECHT_KANZLEI_PDF_WRB == 'true') {
             $local_rechtstext_pdf_type[] = 'widerruf';
         }
         // Catch errors - rechtstext_type
         $allowed_rechtstext_type = array('agb', 'datenschutz', 'widerruf', 'impressum');
         if (!in_array($xml->rechtstext_type, $allowed_rechtstext_type)) {
             $this->return_error('4');
         }
         $pdf_file_stored = false;
         if (count($local_rechtstext_pdf_type) > 0 && in_array($xml->rechtstext_type, $local_rechtstext_pdf_type)) {
             if (in_array($xml->rechtstext_type, $local_rechtstext_pdf_type)) {
                 // Catch errors - element 'rechtstext_pdf_url' empty or URL invalid
                 if ($xml->rechtstext_pdf_url == '' || $this->url_valid($xml->rechtstext_pdf_url) !== true) {
                     $this->return_error('7');
                 }
                 // Download pdf file
                 $file_pdf_targetfilename = $xml->rechtstext_type . '.pdf';
                 $file_pdf_target = DIR_FS_CATALOG . $local_dir_for_pdf_storage . $file_pdf_targetfilename;
                 $file_pdf_target_temp = DIR_FS_CATALOG . $local_dir_for_pdf_storage . md5($xml->rechtstext_type) . '.pdf';
                 // include needed function
                 require_once DIR_FS_INC . 'get_external_content.inc.php';
                 $file_pdf = fopen($file_pdf_target_temp, 'w+');
                 if ($file_pdf === false) {
                     // catch errors
                     $this->return_error('7');
                 }
                 $retval = fwrite($file_pdf, get_external_content($xml->rechtstext_pdf_url, 5, false));
                 if ($retval === false) {
                     // catch errors
                     $this->return_error('7');
                 }
                 $retval = fclose($file_pdf);
                 if ($retval === false) {
                     // catch errors
                     $this->return_error('7');
                 }
                 // Catch errors - downloaded file was not properly saved
                 if (!is_file($file_pdf_target_temp)) {
                     $this->return_error('7');
                 }
                 // verify that file is a pdf
                 if ($this->check_if_pdf_file($file_pdf_target_temp) !== true) {
                     @unlink($file_pdf_target_temp);
                     $this->return_error('7');
                 }
                 // verify md5-hash, delete file if hash is not equal
                 if (md5_file($file_pdf_target_temp) != $xml->rechtstext_pdf_md5hash) {
                     @unlink($file_pdf_target_temp);
                     $this->return_error('8');
                 } else {
                     @unlink($file_pdf_target);
                     @copy($file_pdf_target_temp, $file_pdf_target);
                     if (!is_file($file_pdf_target)) {
                         $this->return_error('7');
                     }
                 }
                 $pdf_file_stored = true;
             }
         } else {
             if (is_file(DIR_FS_CATALOG . $local_dir_for_pdf_storage . $xml->rechtstext_type . '.pdf')) {
                 @unlink(DIR_FS_CATALOG . $local_dir_for_pdf_storage . $xml->rechtstext_type . '.pdf');
             }
         }
         // text type
         $pdf_file_text = '';
         $content_group = '';
         if ($xml->rechtstext_type == 'agb') {
             $content_group = MODULE_API_IT_RECHT_KANZLEI_TYPE_AGB;
             if ($pdf_file_stored === true) {
                 $pdf_file_text = '<br /><br /><a href="' . DIR_WS_CATALOG . $local_dir_for_pdf_storage . $file_pdf_targetfilename . '" target="_blank">AGB - PDF download!</a>';
             }
         } elseif ($xml->rechtstext_type == 'datenschutz') {
             $content_group = MODULE_API_IT_RECHT_KANZLEI_TYPE_DSE;
             if ($pdf_file_stored === true) {
                 $pdf_file_text = '<br /><br /><a href="' . DIR_WS_CATALOG . $local_dir_for_pdf_storage . $file_pdf_targetfilename . '" target="_blank">Datenschutz - PDF download!</a>';
             }
         } elseif ($xml->rechtstext_type == 'widerruf') {
             $content_group = MODULE_API_IT_RECHT_KANZLEI_TYPE_WRB;
             if ($pdf_file_stored === true) {
                 $pdf_file_text = '<br /><br /><a href="' . DIR_WS_CATALOG . $local_dir_for_pdf_storage . $file_pdf_targetfilename . '" target="_blank">Widerruf - PDF download!</a>';
             }
         } elseif ($xml->rechtstext_type == 'impressum') {
             $content_group = MODULE_API_IT_RECHT_KANZLEI_TYPE_IMP;
         }
         if ($content_group != '') {
             $check_query = xtc_db_query("SELECT content_text \n                                       FROM " . TABLE_CONTENT_MANAGER . " \n                                      WHERE content_group = '" . $content_group . "' \n                                        AND languages_id = '" . $languages_id . "' \n                                      LIMIT 1");
             $check = xtc_db_fetch_array($check_query);
             if ($check['content_text'] == $this->charset_decode_utf_8($xml->rechtstext_html . $pdf_file_text)) {
                 $this->return_success();
             } else {
                 $sql_data_array = array('content_text' => $this->charset_decode_utf_8($xml->rechtstext_html . $pdf_file_text));
                 xtc_db_perform(TABLE_CONTENT_MANAGER, $sql_data_array, 'update', "content_group = '" . $content_group . "' AND languages_id = '" . $languages_id . "'");
                 if (mysql_affected_rows() < 1) {
                     $check_content_query = xtc_db_query("SELECT content_text \n                                                   FROM " . TABLE_CONTENT_MANAGER . " \n                                                  WHERE content_group = '" . $content_group . "' \n                                                    AND languages_id = '" . $languages_id . "'");
                     $check_content = xtc_db_fetch_array($check_content_query);
                     if ($check_content['content_text'] != $sql_data_array['content_text']) {
                         $this->return_error('99');
                     }
                 }
             }
         } else {
             $this->return_error('99');
         }
         $this->return_success();
     } else {
         $this->return_error('99');
     }
 }