Skip to content

Instantly share code, notes, and snippets.

@pepebe
Forked from Mark-H/plugin.php
Created August 20, 2014 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pepebe/4c5b8441dd1951620d9d to your computer and use it in GitHub Desktop.
Save pepebe/4c5b8441dd1951620d9d to your computer and use it in GitHub Desktop.
<?php
if ($modx->getOption('http_host') == 'YOUR_DOMAIN_HERE') {
$op = '<script type="text/javascript">
Ext.onReady(function() {
document.getElementById("modx-login-username").value = "USER";
document.getElementById("modx-login-password").value = "PASS";
document.getElementById("modx-login-btn").click();
});
</script>';
$modx->event->output($op);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment