| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | /** |
|---|
| 4 | * Jlog |
|---|
| 5 | * |
|---|
| 6 | * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | * it under the terms of the GNU General Public License as published by |
|---|
| 8 | * the Free Software Foundation; either version 2 of the License, or |
|---|
| 9 | * (at your option) any later version. |
|---|
| 10 | * |
|---|
| 11 | * This program is distributed in the hope that it will be useful, |
|---|
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 | * GNU General Public License for more details. |
|---|
| 15 | * |
|---|
| 16 | * You should have received a copy of the GNU General Public License |
|---|
| 17 | * along with this program; if not, write to the Free Software |
|---|
| 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 19 | * |
|---|
| 20 | * $HeadURL$ |
|---|
| 21 | * $Rev$ |
|---|
| 22 | * $Author$ |
|---|
| 23 | * $Date$ |
|---|
| 24 | **/ |
|---|
| 25 | |
|---|
| 26 | require_once('./config.inc.php'); |
|---|
| 27 | require_once(JLOG_LIBPATH . '/bootstrap.php'); |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | $c['meta']['robots'] = "noindex, follow"; |
|---|
| 31 | $c['title'] = JLOG_WEBSITE; |
|---|
| 32 | |
|---|
| 33 | $stop = escape_for_mysql(strip($_GET)); |
|---|
| 34 | |
|---|
| 35 | $sql = "UPDATE ".JLOG_DB_COMMENTS." SET |
|---|
| 36 | mail_by_comment = '0' |
|---|
| 37 | WHERE |
|---|
| 38 | reference = '".$stop['id']."' AND |
|---|
| 39 | email = '".$stop['email']."'"; |
|---|
| 40 | |
|---|
| 41 | $stop = new Query($sql); |
|---|
| 42 | if($stop->error()) { |
|---|
| 43 | echo "<pre>\n"; |
|---|
| 44 | echo $stop->getError(); |
|---|
| 45 | echo "</pre>\n"; |
|---|
| 46 | die(); |
|---|
| 47 | } |
|---|
| 48 | |
|---|
| 49 | $c['main'] = "<p>".$l['comments_stop_successful']."</p>"; |
|---|
| 50 | |
|---|
| 51 | require(JLOG_BASEPATH.'scripts'.DIRECTORY_SEPARATOR.'do_template.php'); |
|---|
| 52 | echo $body; |
|---|
| 53 | |
|---|
| 54 | // eof |
|---|