Exemplo n.º 1
0
                $notification->push(_("Extension Deleted."));
                $action = 'list';
            } catch (Exception $e) {
                $notification->push($e);
            }
        } elseif ($Form->isSubmitted()) {
            // Submitted but not valid
            $notification->push(_("Problem processing the form.  Please check below and try again."), 'horde.warning');
        }
        $vars = Horde_Variables::getDefaultVariables(array());
        $vars->set('account', $curaccount);
        $Form = new ExtensionDeleteForm($vars);
        break;
    case 'list':
    default:
        $action = 'list';
        $title .= _("List Numbers");
}
try {
    $accounts = $shout->storage->getAccounts();
    $numbers = $shout->storage->getNumbers();
} catch (Exception $e) {
    $notification->push($e);
}
$page_output->addScriptFile('stripe.js', 'horde');
$page_output->header(array('title' => $title));
require SHOUT_TEMPLATES . '/menu.inc';
$notification->notify();
Shout::getAdminTabs();
require SHOUT_TEMPLATES . '/admin/numbers/' . $action . '.inc.php';
$page_output->footer();