onepunch.php 580 B

12345678910111213141516171819
  1. <?php
  2. //One-Punch Scripts startup
  3. if (ubRouting::get('action') == 'onepunch') {
  4. if ($alterconf['ONEPUNCH_ENABLED']) {
  5. if (ubRouting::checkGet('param')) {
  6. $onePunchScriptAlias = ubRouting::get('param');
  7. $onePunchScripts = new OnePunch($onePunchScriptAlias);
  8. $onePunchScriptCode = $onePunchScripts->getScriptContent($onePunchScriptAlias);
  9. eval($onePunchScriptCode);
  10. die('OK:ONEPUNCH');
  11. } else {
  12. die('ERROR:NO_PARAM');
  13. }
  14. } else {
  15. die('ERROR:ONEPUNCH_DISABLED');
  16. }
  17. }