root/tags/1.0.0/stop.php

Revision 1133, 0.7 KB (checked in by jeena, 4 years ago)

includes mit ./ ergänzt

Line 
1<?php
2 require('.'.DIRECTORY_SEPARATOR.'personal'.DIRECTORY_SEPARATOR.'settings.inc.php');
3
4 $c['meta']['robots']           = "noindex, follow";
5 $c['title']                                    = JLOG_WEBSITE;
6
7 $stop = escape_for_mysql(strip($_GET));
8
9 $sql = "UPDATE ".JLOG_DB_COMMENTS." SET
10              mail_by_comment = '0'
11         WHERE
12          reference = '".$stop['id']."' AND
13          email     = '".$stop['email']."'";
14 
15    $stop = new Query($sql);
16     if($stop->error()) {
17        echo "<pre>\n";
18        echo $stop->getError();
19        echo "</pre>\n";
20        die();
21     }
22   
23 $c['main'] = "<p>".$l['comments_stop_successful']."</p>";
24
25require(JLOG_BASEPATH.'scripts'.DIRECTORY_SEPARATOR.'do_template.php');
26echo $body;
27?>
Note: See TracBrowser for help on using the browser.