本文整理汇总了PHP中email::delete_account方法的典型用法代码示例。如果您正苦于以下问题:PHP email::delete_account方法的具体用法?PHP email::delete_account怎么用?PHP email::delete_account使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类email
的用法示例。
在下文中一共展示了email::delete_account方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tabtable
}
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>
示例2: tabtable
}
}
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>