]> ruin.nu Git - ndwebbie.git/commitdiff
removed intel_messages table all together
authorMichael Andreen <harv@ruin.nu>
Fri, 26 Jan 2007 16:42:25 +0000 (16:42 +0000)
committerMichael Andreen <harv@ruin.nu>
Fri, 26 Jan 2007 16:42:25 +0000 (16:42 +0000)
ND/Web/Pages/Intel.pm
templates/intel.tmpl

index 79cc0ce2d6ae8563f573ee16032f621fbaf29d12..44fbba34239164a1cbabd7a192bee94ae8b3d44f 100644 (file)
@@ -226,16 +226,6 @@ sub render_body {
                push @intellists,{Message => q{Intel where alliances doesn't match}, Intel => \@intel, Origin => 1, Target => 1};
                $BODY->param(IntelLIsts => \@intellists);
        }
                push @intellists,{Message => q{Intel where alliances doesn't match}, Intel => \@intel, Origin => 1, Target => 1};
                $BODY->param(IntelLIsts => \@intellists);
        }
-       my $query = $DBH->prepare(q{SELECT i.id, u.username, i.message, report_date FROM intel_messages i
-               JOIN users u ON u.uid = i.uid
-               WHERE NOT handled ORDER BY report_date});
-       $query->execute;
-       my @messages;
-       while (my $message = $query->fetchrow_hashref){
-               $message->{message} = parseMarkup($message->{message});
-               push @messages,$message;
-       }
-       #$BODY->param(IntelMessages => \@messages);
        $BODY->param(Error => $error);
        return $BODY;
 }
        $BODY->param(Error => $error);
        return $BODY;
 }
index 2a3f12af6793faf540218a37538db01edbf118c2..b872faf355c0b99f6bd19c93c1a9caf04e19d6d8 100644 (file)
 </table>
 </TMPL_LOOP>
 
 </table>
 </TMPL_LOOP>
 
-<table border="1">
-       <tr>
-       <th>Reported by</th>
-       <th>Report time</th>
-       <th>Message</th>
-       <th></th>
-       </tr>
-       <TMPL_LOOP IntelMessages>
-       <tr>
-               <td><TMPL_VAR NAME=Username></td>
-               <td><TMPL_VAR NAME=Report_date></td>
-               <td><TMPL_VAR NAME=Message></td>
-               <td><a href="/<TMPL_VAR NAME=PAGE>?handle=<TMPL_VAR NAME=Id>">remove</a></td>
-       </tr>
-       </TMPL_LOOP>
-</table>
-
        <form action="<TMPL_VAR NAME=PAGE>" method="post"><fieldset> <legend>Coords</legend>
        <p>Paste a list of coords here</p>
        <textarea rows="25" cols="80" name="coords"></textarea>
        <form action="<TMPL_VAR NAME=PAGE>" method="post"><fieldset> <legend>Coords</legend>
        <p>Paste a list of coords here</p>
        <textarea rows="25" cols="80" name="coords"></textarea>