
Got it working with the usual include command.
$sql = $modx->config['base_path'] . "manager/sqlbuddy/index.php";
include($sql);
But in order for this to work you need to change two lines in the functions.php file:
line 163: redirect("login.php?timeout=1");
...
line 165: redirect("login.php");
Should be changed to:
line 163: redirect("sqlbuddy/login.php?timeout=1");
...
line 165: redirect("sqlbuddy/login.php");
About the check if the user is logged into the manager. There are some problems, since the code uses ’redirects’ and there is a go and back between pages, specially with index.php.
This means that the first time index.php is executed the value IN_MANAGER_MODE is true. The second time is undefined and the check fails. So that is why you cannot access it either from the manager nor using the direct link.