function main_share_retranslation_save() { $bck = new backup(); if (isset($_GET["index"])) { $bck->MountBackup[$_GET["index"]] = "{$_GET["servername"]};{$_GET["share_folder"]};{$_GET["username"]};{$_GET["password"]};{$_GET["domain"]}"; } else { $bck->MountBackup[] = "{$_GET["servername"]};{$_GET["share_folder"]};{$_GET["username"]};{$_GET["password"]};{$_GET["domain"]}"; } if ($bck->SaveToLdap()) { $tpl = new templates(); echo $tpl->_ENGINE_parse_body('Share:{success}'); } else { echo $bck->ldap_error; } }