* *
* -------------------------------------------------------------------- *
* File : rewrite_functions.php *
* *
* -------------------------------------------------------------------- *
* File : rewrite_functions.php *
* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
- $output = str_replace('{?URL?}/modules.php?module=', $target, $output);
+ foreach (array(getConfig('URL'), '{?URL?}') as $rewrite) {
+ $output = str_replace($rewrite . '/modules.php?module=', $target, $output);
+ } // END - foreach
// Do we have an URL linked to mxchange.org?
if (eregi(getConfig('SERVER_URL'), $output)) {
// Do we have an URL linked to mxchange.org?
if (eregi(getConfig('SERVER_URL'), $output)) {
// Convert &|&action=...
$output = preg_replace('/' . $target2 . '(.*)&action=/i', $action, $output);
// "The same procedure as last variable"... now for &what=
// Convert &|&action=...
$output = preg_replace('/' . $target2 . '(.*)&action=/i', $action, $output);
// "The same procedure as last variable"... now for &what=
$output = preg_replace('/' . $target2 . '(.*)&what=/i', $what, $output);
// Repair missed &what=??? entries
$output = preg_replace('/' . $target2 . '(.*)&what=/i', $what, $output);
// Repair missed &what=??? entries