File: phpshell.html.php

package info (click to toggle)
php-horde 5.2.1%2Bdebian0-2%2Bdeb8u3
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 12,252 kB
  • ctags: 2,180
  • sloc: php: 11,103; xml: 6,460; sh: 96; makefile: 33; sql: 1
file content (38 lines) | stat: -rw-r--r-- 1,308 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<form action="<?php echo $this->action ?>" method="post">
 <?php Horde_Util::pformInput() ?>
 <input type="hidden" name="token" value="<?php echo $this->session->getToken() ?>" />
 <h1 class="header"><?php echo $this->h($this->title) ?></h1>

 <div class="horde-content">
  <p>
   <label for="app"><?php echo _("Application Context") ?>:</label>
   <select id="app" name="app">
<?php foreach ($this->apps as $app => $name): ?>
    <option value="<?php echo $app ?>"<?php if ($this->application == $app) echo ' selected="selected"' ?>><?php echo $name ?></option>
<?php endforeach; ?>
   </select>
  </p>

  <p>
   <label for="php" class="hidden"><?php echo _("PHP") ?></label>
   <textarea class="fixed" id="php" name="php" rows="10" cols="80"><?php echo $this->h($this->command) ?></textarea>
  </p>
 </div>

 <p class="horde-form-buttons">
  <input type="submit" class="horde-default" value="<?php echo _("Execute") ?>" />
  <?php echo $this->hordeHelp('admin', 'admin-phpshell') ?>
 </p>
</form>

<?php if ($this->command): ?>
<h1 class="header"><?php echo _("PHP Code") ?></h1>
<div class="horde-content">
 <?php echo $this->pretty ?>
</div>

<h1 class="header"><?php echo _("Results") ?></h1>
<div class="horde-content">
 <pre class="text"><?php echo $this->command_exec ?></pre>
</div>
<?php endif; ?>