
Anyone else having this problem?
I can't even find the function that create/add the new user (to the database) through the admin area...
$patterns[] = "/[img align=(['"]?)(left|center|right)\1]([^"()&'<>]*)[/img]/sU";
$patterns[] = "/[img]([^"()'<>]*)[/img]/sU";
$patterns[] = "/[img align=(['"]?)(left|center|right)\1 id=(['"]?)([0-9]*)\3]([^"()'<>]*)[/img]/sU";
$patterns[] = "/[img id=(['"]?)([0-9]*)\1]([^"()'<>]*)[/img]/sU";
$patterns[] = "/[img align=(['"]?)(left|center|right)\1]([^"()?&'<>]*)[/img]/sU";
$patterns[] = "/[img]([^"()?&'<>]*)[/img]/sU";
$patterns[] = "/[img align=(['"]?)(left|center|right)\1 id=(['"]?)([0-9]*)\3]([^"()?&'<>]*)[/img]/sU";
$patterns[] = "/[img id=(['"]?)([0-9]*)\1]([^"()?&'<>]*)[/img]/sU";
if ($allowimage != 1) {
$replacements[] = '\3';
$replacements[] = '\1';
$replacements[] = '.XOOPS_URL.'/image.php?id=\4" target="_blank">\4';
$replacements[] = '.XOOPS_URL.'/image.php?id=\2" target="_blank">\3';
} else {
$replacements[] = '
';
$replacements[] = '
';
$replacements[] = '
.XOOPS_URL.'/image.php?id=\4" align="\2" alt="\4" />';
$replacements[] = '
.XOOPS_URL.'/image.php?id=\2" alt="\3" />';
WORKS (direct link to image):
[img]<URL>/image.gif[/img]
-> MyLinks returns: <img src="/image.gif" >
WORKS (this server does the URL rewriting):
[img]<URL>/a/b/c/[/img]
-> MyLinks returns: <img src="/a/b/c/" >
DOES NOT WORK (this server uses script to interact with
database and then redirect to actual location of image):
[img]<URL>/image.php?a=1&b=2&image=1[/img]
-> MyLinks returns: [img]<URL>/image.php?a=1&b=2&image=1[/img]