Hi
I have made a mistake, this function
mx_write_file() exists since version 0.1.12
so change in admin.php this code :
<?php
@chmod($conffile, 0777);
$file = @fopen($conffile, "w");
if ($file) {
fwrite($file, $content);
fclose($file);
$msg = _CHANGESAREOK;
$delay = 0;
} else {
$msg = _CHANGESNOTOK;
$delay = 5;
}
@chmod($conffile, 0444);
$msg = _CHANGESAREOK;
$delay = 5;
mx_write_file($conffile, $content, true);
mxRedirect('admin.php?op=web_searchConfig', $msg, $delay);
mxSecureLog("SecLog", "Change Web_search config.php");
$ok = mx_write_file($conffile, $content, true);
if ($ok) {
$statmsg = _ADMIN_SETTINGSAVED;
$delay = 2;
include_once(PMX_SYSTEM_DIR . DS . 'mx_reset.php');
resetPmxCache();
} else {
$statmsg = "<big>" . _ADMIN_SETTINGNOSAVED . "</big><p>" . _ADMIN_CANTCHANGE . " (config.php)</p>";
$delay = 5;
}
mxRedirect('admin.php?op=web_searchConfig', $statmsg, $delay);
by this:
<?php //ignore this line
@chmod($conffile, 0777);
$file = @fopen($conffile, "w");
if ($file) {
fwrite($file, $content);
fclose($file);
$msg = _CHANGESAREOK;
$delay = 0;
} else {
$msg = _CHANGESNOTOK;
$delay = 5;
}
@chmod($conffile, 0444);
mxRedirect('admin.php?op=web_searchConfig', $msg, $delay);
And what kind of ID:
pub-2552995021861XXX