當前位置: 首頁>>代碼示例>>PHP>>正文


PHP email::delete_account方法代碼示例

本文整理匯總了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>
開發者ID:BackupTheBerlios,項目名稱:hpt-obm-svn,代碼行數:31,代碼來源:accounts.php

示例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>
開發者ID:BackupTheBerlios,項目名稱:hpt-obm-svn,代碼行數:31,代碼來源:accounts.php


注:本文中的email::delete_account方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。