From 9c7e2889b3d9236a35abe75038e382ae1fe047f6 Mon Sep 17 00:00:00 2001 From: Andreas Rudolph Date: Wed, 26 Nov 2014 15:15:49 +0100 Subject: [PATCH] version 0.3 imported --- README.md | 6 +++++- src/OpenEstatePhpWrapper.module.php | 6 +++--- src/action.default.php | 33 ++++++----------------------- src/lang/de_DE.php | 3 ++- src/lang/en_US.php | 3 ++- 5 files changed, 19 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 0646d4a..fa48ec7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -OpenEstate-PHP-Wrapper for CMSms 0.2 +OpenEstate-PHP-Wrapper for CMSms 0.3 ==================================== This module integrates [OpenEstate-PHP-Export](https://github.com/OpenEstate/OpenEstate-PHP-Export) @@ -74,6 +74,10 @@ Webseite integriert werden. Changelog --------- +### 0.3 + +- Some smaller improvements. + ### 0.2 - First public release diff --git a/src/OpenEstatePhpWrapper.module.php b/src/OpenEstatePhpWrapper.module.php index c85ab6c..5494faf 100644 --- a/src/OpenEstatePhpWrapper.module.php +++ b/src/OpenEstatePhpWrapper.module.php @@ -2,7 +2,7 @@ /** * PHP-Wrapper für CMSms. * Modul-Klasse, siehe http://www.cmsmadesimple.org/api/class_cms_module.html - * $Id: OpenEstatePhpWrapper.module.php 50 2010-03-25 02:44:21Z andy $ + * $Id: OpenEstatePhpWrapper.module.php 594 2010-12-12 01:37:49Z andy $ * * @author Andreas Rudolph & Walter Wagner * @copyright 2009, OpenEstate.org @@ -13,7 +13,7 @@ * Modul. * * @author Andreas Rudolph & Walter Wagner - * @version 0.2 + * @version 0.3 * @license GPL3 **/ class OpenEstatePhpWrapper extends CMSModule { @@ -61,7 +61,7 @@ function GetFriendlyName() { * @return string version number (can be something like 1.4rc1) */ function GetVersion() { - return '0.2'; + return '0.3'; } /** diff --git a/src/action.default.php b/src/action.default.php index 94f5ac3..fc53a98 100644 --- a/src/action.default.php +++ b/src/action.default.php @@ -2,7 +2,7 @@ /** * PHP-Wrapper für CMSms. * Darstellung der Wrapper-Ausgabe auf der Webseite. - * $Id: action.default.php 50 2010-03-25 02:44:21Z andy $ + * $Id: action.default.php 594 2010-12-12 01:37:49Z andy $ * * @author Andreas Rudolph & Walter Wagner * @copyright 2009, OpenEstate.org @@ -143,30 +143,11 @@ $stylesheets[] = $setup->AdditionalStylesheet; // Ausgabe erzeugen -$scriptName = $_SERVER['SCRIPT_NAME']; -$output = immotool_functions::wrap_page( $page, $wrap, $scriptName, IMMOTOOL_BASE_URL, $stylesheets ); - -// 'page'-Parameter von CMSms einfügen -if (isset($_REQUEST['page']) && is_string($_REQUEST['page'])) { - //die(preg_quote( $scriptName )); - - $newLink = $scriptName.'?page='.$_REQUEST['page']; - $replacements = array( - - // page-Parameter in Direktlinks übernehmen - '/]*)href="'.preg_quote( $scriptName, '/' ).'\?([^"]*)"/is' => ']*)href="'.preg_quote( $scriptName, '/' ).'"/is' => ']*)method="get"([^>]*)>/is' => '', - '/]*)action="'.preg_quote( $scriptName, '/' ).'\?([^"]*)"([^>]*)method="post"([^>]*)>/is' => '', - '/]*)action="'.preg_quote( $scriptName, '/' ).'(#[^"]*)?"([^>]*)method="post"([^>]*)>/is' => '', - ); - - //echo '
'; print_r($replacements); echo '
'; - $output = preg_replace( array_keys($replacements), array_values($replacements), $output ); +$baseUrl = $_SERVER['SCRIPT_NAME']; +$hiddenParams = array(); +if (isset($_REQUEST['page'])) { + $baseUrl .= '?page='.$_REQUEST['page']; + $hiddenParams['page'] = $_REQUEST['page']; } - -// Ausgabe schreiben -echo $output; +echo immotool_functions::wrap_page( $page, $wrap, $baseUrl, IMMOTOOL_BASE_URL, $stylesheets, $hiddenParams ); ?> \ No newline at end of file diff --git a/src/lang/de_DE.php b/src/lang/de_DE.php index e8e41ff..e0037fa 100644 --- a/src/lang/de_DE.php +++ b/src/lang/de_DE.php @@ -2,7 +2,7 @@ /** * PHP-Wrapper für CMSms. * Sprachdatei, deutsch - * $Id: de_DE.php 50 2010-03-25 02:44:21Z andy $ + * $Id: de_DE.php 595 2010-12-12 01:40:46Z andy $ * * @author Andreas Rudolph & Walter Wagner * @copyright 2009, OpenEstate.org @@ -12,6 +12,7 @@ $lang['friendlyname'] = 'OpenEstate PHP-Wrapper'; $lang['moddescription'] = 'Dieses Modul integriert PHP-Immobilienexporte aus dem OpenEstate-ImmoTool in CMSms.'; $lang['changelog'] = '
    +
  • Version 0.3. Detail-Korrekturen.
  • Version 0.2. Erstes öffentliches Release.
  • Version 0.1. Internes Release.
'; diff --git a/src/lang/en_US.php b/src/lang/en_US.php index fc93c8e..39c201c 100644 --- a/src/lang/en_US.php +++ b/src/lang/en_US.php @@ -2,7 +2,7 @@ /** * PHP-Wrapper für CMSms. * Sprachdatei, englisch - * $Id: en_US.php 50 2010-03-25 02:44:21Z andy $ + * $Id: en_US.php 595 2010-12-12 01:40:46Z andy $ * * @author Andreas Rudolph & Walter Wagner * @copyright 2009, OpenEstate.org @@ -12,6 +12,7 @@ $lang['friendlyname'] = 'OpenEstate PHP-Wrapper'; $lang['moddescription'] = 'This module integrates PHP-exported properties from OpenEstate-ImmoTool into CMSms.'; $lang['changelog'] = '
    +
  • Version 0.3. Some smaller improvements.
  • Version 0.2. First public release.
  • Version 0.1. Internal release.
';