diff --git a/api-more.php b/api-more.php index b5902eef3c49a79eb985609331e885ad95b12f0d..fb5e5d8af514537be4f6368b117c205e309c95fa 100644 --- a/api-more.php +++ b/api-more.php @@ -32,5 +32,3 @@ while ($row = pg_fetch_array($result)) { echo 'Longitude: ' . $row['long'] . '
'; } } -pg_free_result($result); -pg_close($dbh); diff --git a/api.php b/api.php index afdeabc8ee16ae17d9a8e54c9cdc21fd496988fd..102f04b3fc06d33987a3432363175cf3ea0b0ba5 100644 --- a/api.php +++ b/api.php @@ -90,6 +90,3 @@ EOF; ); } } - -pg_free_result($result); -pg_close($dbh); diff --git a/cleanup.php b/cleanup.php index 2df43cf431363330f28b02f6bf4aea43cf88c6af..d72ddad0378f2565520cd51a28c9c7f365987d33 100644 --- a/cleanup.php +++ b/cleanup.php @@ -97,8 +97,6 @@ $numrows = pg_num_rows($result); '; } - pg_free_result($result); - pg_close($dbh); ?> diff --git a/db/add.php b/db/add.php index b664cd208ae22855e79665baac86f4113008752f..f07e9326b049c4c5314bd15f1973b6e72f659c8c 100644 --- a/db/add.php +++ b/db/add.php @@ -80,9 +80,6 @@ if (stristr($outputssl, 'nodeName')) { echo 'Data successfully inserted! Your pod will be reviewed and live on the list in a few hours!'; - pg_free_result($result); - - pg_close($dbh); } else { $log->lwrite('Could not validate your pod, check your setup! ' . $_domain); echo 'Could not validate your pod, check your setup!
Take a look at your /nodeinfo'; diff --git a/db/edit.php b/db/edit.php index 5723043831d48d0fec2339916fde278f20619b82..d93bf25cc25a9f5b9a162138c614be7124e8d54b 100644 --- a/db/edit.php +++ b/db/edit.php @@ -49,8 +49,6 @@ while ($row = pg_fetch_array($result)) { $message = 'Data for ' . $_domain . " Updated. If it was not you reply and let me know! \n\n"; $headers = "From: " . $adminemail . "\r\nCc:" . $adminemail . "," . $_oldemail . "\r\n"; @mail($to, $subject, $message, $headers); - pg_free_result($result); - pg_close($dbh); die('Data saved. Will go into effect on next hourly change'); } diff --git a/db/gettoken.php b/db/gettoken.php index b4e93c9b97e9d61bb41a7a56386d3aa1a0663228..16a5c31bd956c74a8a231539501f5d437c111bec 100644 --- a/db/gettoken.php +++ b/db/gettoken.php @@ -49,8 +49,4 @@ while ($row = pg_fetch_array($result)) { @mail($to, $subject, $message, $headers); echo 'Link sent to administrator to review and verify, if approved they will forward the edit key to you.'; } - - pg_free_result($result); } - -pg_close($dbh); diff --git a/db/kill.php b/db/kill.php index 6d3da4e226d5c61dcf3c45a0ceed3a42f3d799cf..242f65bb579a3c37bce928d6dc25b9f29faa7d01 100644 --- a/db/kill.php +++ b/db/kill.php @@ -33,7 +33,6 @@ while ($row = pg_fetch_array($result)) { $headers = "From: " . $adminemail ."\r\nCc:" . $adminemail . "," . $row['email'] . "\r\n"; @mail($to, $subject, $message, $headers); } - pg_free_result($result); } elseif ($_action === 'warn') { if ($row['email']) { $to = $row['email']; @@ -46,5 +45,3 @@ while ($row = pg_fetch_array($result)) { echo $result; } - -pg_close($dbh); diff --git a/db/pull.php b/db/pull.php index 2b0fdff81756c0639197991aa1117315b2c2d478..96b4b7854b97924f449acf0e73fe5a461a286661 100644 --- a/db/pull.php +++ b/db/pull.php @@ -89,7 +89,6 @@ while ($row = pg_fetch_all($result)) { if ($admindb == - 1) { $admin_rating = - 1; } - pg_free_result($ratings); unset($name); unset($total_users); unset($active_users_halfyear); @@ -289,5 +288,3 @@ while ($row = pg_fetch_all($result)) { //end foreach } } -pg_free_result($result); -pg_close($dbh); diff --git a/db/saverating.php b/db/saverating.php index a207cc15ee8f96afda2c6b91f165735073c21ecd..caa1a3736158cd74b18f99f03bfdb560db7116c7 100644 --- a/db/saverating.php +++ b/db/saverating.php @@ -25,6 +25,3 @@ $message = 'Pod:' . $_domain . $_domain . $_username . $_userurl . $_comment . $ $headers = 'From: ' . $_email . "\r\n"; @mail($to, $subject, $message, $headers); echo 'Comment posted!'; - -pg_free_result($result); -pg_close($dbh); diff --git a/go.php b/go.php index 063a556b0fc37eeada455ede35bfe7a88ad2cf54..5e21db0c07cedc28e5591c19670af34bcc62e681 100644 --- a/go.php +++ b/go.php @@ -35,5 +35,3 @@ if ($_url) { header('Location:https://' . $row[0]['domain'] . '/users/sign_up'); } - pg_free_result($result); - pg_close($dbh); diff --git a/rate.php b/rate.php index ea240ac08ffbfc71369d342032c18bc084f8517b..9451b01b896ba43b44bbb63b773999fe890a3ba9 100644 --- a/rate.php +++ b/rate.php @@ -90,5 +90,3 @@ XMPP chat server'; echo ''; } - pg_free_result($result); - pg_close($dbh); ?> diff --git a/showfull.php b/showfull.php index 6256fb1bbd57e2ce76511f8a3120ef4def753304..a7df1791c01041195d9d6cfc221099ae718a8f4c 100644 --- a/showfull.php +++ b/showfull.php @@ -93,8 +93,6 @@ $numrows = pg_num_rows($result); $row['service_xmpp'] === 't' && print ''; echo ''; } - pg_free_result($result); - pg_close($dbh); ?> diff --git a/showstats.php b/showstats.php index 8ccc080541f4858f42e69b0caf9a84d70d3c40dc..f140b3b9f070ddd6921e2acfef293dff558f1d47 100644 --- a/showstats.php +++ b/showstats.php @@ -48,5 +48,3 @@ if ($uptr->monitors[0]->status == 9) { $live = 'Down'; } echo 'Status: ' . $live; -pg_free_result($result); -pg_close($dbh);