* * See the enclosed file COPYING for license information (LGPL). If you * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html. */ @define('HORDE_BASE', dirname(__FILE__) . '/..'); require_once HORDE_BASE . '/lib/base.php'; require_once 'Horde/Menu.php'; require_once 'Horde/Help.php'; if (!Auth::isAdmin()) { Horde::authenticationFailureRedirect(); } $title = _("PHP Shell"); require HORDE_TEMPLATES . '/common-header.inc'; require HORDE_TEMPLATES . '/admin/common-header.inc'; $apps_tmp = $registry->listApps(); $apps = array(); foreach ($apps_tmp as $app) { $apps[$app] = $registry->get('name', $app); } asort($apps); $application = Util::getFormData('app', 'horde'); ?>




get('fileroot', $application) . '/lib/base.php')) { include $registry->get('fileroot', $application) . '/lib/base.php'; } else { $registry->pushApp($application); } require_once 'Horde/MIME/Viewer.php'; require_once 'Horde/MIME/Viewer/source.php'; $pretty = highlight_string('<?php ', "\r\n", "\r", "\n", '
'), array('', '', '', '', '', "\n"), $pretty); $pretty = MIME_Viewer_Source::lineNumber(trim($pretty)); echo '

' . _("PHP Code") . '


'; echo $pretty; echo '

' . _("Results") . '


'; echo '
';
    eval($command);
    echo '

'; } ?>
" />