Hi

yes, that's a really great plugin.
There is only few changes necessary in the codebase.php.
In links, the correct and complete filename is required:
#$data['menu'] .= ' <a href="?replacer_pid='.$data['pid'].'" class="admin_menu">Replace file</a>';
should be
$data['menu'] .= ' <a href="displayimage.php?replacer_pid='.$data['pid'].'" class="admin_menu">Replace file</a>';
on includes, the full path is needed, we can use the bridge-Constant "MXCPG_PATH_INCLUDE"
require('include/picmgmt.inc.php');
should be:
require(MXCPG_PATH_INCLUDE.'picmgmt.inc.php');
"header location" doesn't work correctly in the pragmaMx Bridge. We use the bridge-Function mxcpg_redirect()
header("Location: {$CONFIG['site_url']}/displayimage.php?pos=-$pid");
should be:
mxcpg_redirect(MXCPG_MODLINK."&act=displayimage&pos=-$pid");
MXCPG_MODLINK is a bridge-Constant which stores "modules.php?name=Gallery"
in forms, the action attribute is required:
echo '<form method="post" enctype="multipart/form-data">';
should be:
echo '<form method="post" action="displayimage.php?replacer_pid='.$pid.'" enctype="multipart/form-data">';
And here, the "replacer_pid" is required in the URL.
I do not know, whether it is a fundamental problem of the Plugins, but in my testing gallery the link "replace file" was indicated doubly in the menu.
Therefore I built the following additional code into the function menu():
static $check;
if (isset($check))
return $data;
$check=true;
Enclosed the changed file

@ all
Ja, das komplette Plugin stellen wir in die Downloads
