Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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);
     }
 }