本文整理匯總了PHP中server::unsuspend方法的典型用法代碼示例。如果您正苦於以下問題:PHP server::unsuspend方法的具體用法?PHP server::unsuspend怎麽用?PHP server::unsuspend使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類server
的用法示例。
在下文中一共展示了server::unsuspend方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: set_paid
public function set_paid($iid, $noemail = 0)
{
global $dbh, $postvar, $getvar, $instance;
$invoices_update = array("datepaid" => time(), "is_paid" => "1");
$response = $dbh->update("invoices", $invoices_update, array("id", "=", $iid));
$invoices_data = $dbh->select("invoices", array("id", "=", $iid), 0, "1");
server::unsuspend($invoices_data['uid'], $noemail);
return $response;
}
示例2: UnsuspendClient
private function UnsuspendClient($client)
{
global $dbh, $postvar, $getvar, $instance;
$command = server::unsuspend($client['id']);
if ($command == true) {
main::redirect("?page=users&sub=search&do=" . $client['id']);
} else {
main::errors($command);
}
}