Ejemplo n.º 1
0
}
require $GO_THEME->theme_path . "header.inc";
echo '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '" name="email_client">';
echo '<input type="hidden" name="task" value="" />';
echo '<input type="hidden" name="close" value="false" />';
echo '<input type="hidden" name="return_to" value="' . $return_to . '" />';
echo '<input type="hidden" name="link_back" value="' . $link_back . '" />';
echo '<input type="hidden" name="delete_account_id" />';
$tabtable = new tabtable('accounts_list', $ml_your_accounts, '600', '300', '100', '', true);
$tabtable->print_head();
if (!function_exists('imap_open')) {
    echo 'Error: the imap extension for PHP is not installed';
} else {
    if (isset($_REQUEST['delete_account_id']) && $_REQUEST['delete_account_id'] > 0) {
        $delete_account_id = smart_addslashes($_REQUEST['delete_account_id']);
        if (!$email->delete_account($GO_SECURITY->user_id, $delete_account_id)) {
            echo $strDeleteError;
        }
    }
    if ($_SERVER['REQUEST_METHOD'] == "POST" && isset($_POST['account_id']) && $_REQUEST['delete_account_id'] < 1) {
        $email->set_as_default($_POST['account_id'], $GO_SECURITY->user_id);
    }
    ?>
	<br />
	<a href="account.php?return_to=<?php 
    echo urlencode($link_back);
    ?>
" class="normal"><?php 
    echo $ml_new_account;
    ?>
</a>
Ejemplo n.º 2
0
    }
}
require $GO_THEME->theme_path . "header.inc";
echo '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '" name="email_client">';
echo '<input type="hidden" name="task" value="" />';
echo '<input type="hidden" name="close" value="false" />';
echo '<input type="hidden" name="return_to" value="' . $return_to . '" />';
echo '<input type="hidden" name="link_back" value="' . $link_back . '" />';
echo '<input type="hidden" name="delete_account_id" />';
$tabtable = new tabtable('accounts_list', $ml_your_accounts, '600', '300', '100', '', true);
$tabtable->print_head();
if (!function_exists('imap_open')) {
    echo 'Error: the imap extension for PHP is not installed';
} else {
    if (isset($_REQUEST['delete_account_id']) && $_REQUEST['delete_account_id'] > 0) {
        if (!$email->delete_account($GO_SECURITY->user_id, $_REQUEST['delete_account_id'])) {
            echo $strDeleteError;
        }
    }
    if ($_SERVER['REQUEST_METHOD'] == "POST" && isset($_POST['account_id']) && $_REQUEST['delete_account_id'] < 1) {
        $email->set_as_default($_POST['account_id'], $GO_SECURITY->user_id);
    }
    ?>
	<br />
	<a href="account.php?return_to=<?php 
    echo urlencode($link_back);
    ?>
" class="normal"><?php 
    echo $ml_new_account;
    ?>
</a>