当前位置: 首页>>代码示例>>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;未经允许,请勿转载。