Skip to content
Permalink
Browse files
Merge pull request #710 from kvazimoda24/patch-4
Исправление работы из подкаталога
  • Loading branch information
sergejey committed Mar 16, 2020
2 parents 2ff7105 + 0775976 commit d9265811fc51c744a7382585c8ce435db03a97cc
Showing 2 changed files with 8 additions and 8 deletions.
@@ -40,7 +40,7 @@
$mkt->removeTree(ROOT.'cms/saverestore/temp');
//@SaveFile(ROOT.'reboot', 'updated');
$mkt->echonow("Redirecting to main page...");
$mkt->echonow('<script language="javascript">window.top.location.href="/admin.php?md=panel&action=market&ok_msg='.urlencode($res).'";</script>');
$mkt->echonow('<script language="javascript">window.top.location.href="' . ROOTHTML . 'admin.php?md=panel&action=market&ok_msg='.urlencode($res).'";</script>');
}
}
}
@@ -64,7 +64,7 @@
$mkt->removeTree(ROOT.'cms/saverestore/temp');
//@SaveFile(ROOT.'reboot', 'updated');
$mkt->echonow("Redirecting to main page...");
$mkt->echonow('<script language="javascript">window.top.location.href="/admin.php?md=panel&action=market&ok_msg='.urlencode($res).'";</script>');
$mkt->echonow('<script language="javascript">window.top.location.href="' . ROOTHTML . 'admin.php?md=panel&action=market&ok_msg='.urlencode($res).'";</script>');
}
}
}
@@ -79,7 +79,7 @@
$mkt->echonow("Rebooting system ... ");
@SaveFile(ROOT . 'reboot', 'updated');
$mkt->echonow(" OK<br/> ", 'green');
$mkt->echonow('<script language="javascript">window.top.location.href="/admin.php?md=panel&action=market&ok_msg='.urlencode($res).'";</script>');
$mkt->echonow('<script language="javascript">window.top.location.href="' . ROOTHTML . 'admin.php?md=panel&action=market&ok_msg='.urlencode($res).'";</script>');
}
}

@@ -94,12 +94,12 @@
$mkt->echonow("Rebooting system ... ");
@SaveFile(ROOT . 'reboot', 'updated');
$mkt->echonow(" OK<br/> ", 'green');
$mkt->echonow('<script language="javascript">window.top.location.href="/admin.php?md=panel&action=market&ok_msg='.urlencode($res).'";</script>');
$mkt->echonow('<script language="javascript">window.top.location.href="' . ROOTHTML . 'admin.php?md=panel&action=market&ok_msg='.urlencode($res).'";</script>');
}
} else {
$res = 'Nothing to update.';
$mkt->echonow("Nothing to update ... ");
$mkt->echonow('<script language="javascript">window.top.location.href="/admin.php?md=panel&action=market&ok_msg='.urlencode($res).'";</script>');
$mkt->echonow('<script language="javascript">window.top.location.href="' . ROOTHTML . 'admin.php?md=panel&action=market&ok_msg='.urlencode($res).'";</script>');
}
}

@@ -113,7 +113,7 @@
$mkt->echonow("Rebooting system ... ");
@SaveFile(ROOT . 'reboot', 'updated');
$mkt->echonow(" OK<br/> ", 'green');
$mkt->echonow('<script language="javascript">window.top.location.href="/admin.php?md=panel&action=market&ok_msg='.urlencode($res).'";</script>');
$mkt->echonow('<script language="javascript">window.top.location.href="' . ROOTHTML . 'admin.php?md=panel&action=market&ok_msg='.urlencode($res).'";</script>');
}
}

@@ -123,7 +123,7 @@
$res=$mkt->uninstallPlugin($name, 1);
if ($res) {
$mkt->echonow("Redirecting to main page...");
$mkt->echonow('<script language="javascript">window.top.location.href="/admin.php?md=panel&action=market&ok_msg='.urlencode($res).'";</script>');
$mkt->echonow('<script language="javascript">window.top.location.href="' . ROOTHTML . 'admin.php?md=panel&action=market&ok_msg='.urlencode($res).'";</script>');
}
}

@@ -11,7 +11,7 @@
}
</style>
<td class="addon_icon" valign="top">
<img width="64" height="64" src='https://connect.smartliving.ru/cms/addons/[#ID#]_icon.png' onerror="this.src='/img/modules/default.png'"/>
<img width="64" height="64" src='https://connect.smartliving.ru/cms/addons/[#ID#]_icon.png' onerror="this.src='<#ROOTHTML#>img/modules/default.png'"/>
</td>
<td valign="top">

0 comments on commit d926581

Please sign in to comment.