use strict;
use warnings FATAL => 'all';
use ND::Web::Forum;
+use ND::Include;
our $BODY;
our $DBH;
-our $LOG;
our $ERROR;
my $error;
my $value = escapeHTML(param('nick'));
if ($DBH->do(q{UPDATE planets SET nick = ? WHERE id =?}
,undef,$value,$planet->{id})){
+ intel_log $ND::UID,$planet->{id},"Set nick to: $value";
$planet->{nick} = $value;
}else{
$error .= "<p> Something went wrong: ".$DBH->errstr."</p>";
my $value = escapeHTML(param('channel'));
if ($DBH->do(q{UPDATE planets SET channel = ? WHERE id =?}
,undef,$value,$planet->{id})){
+ intel_log $ND::UID,$planet->{id},"Set channel to: $value";
$planet->{channel} = $value;
}else{
$error .= "<p> Something went wrong: ".$DBH->errstr."</p>";
my $value = escapeHTML(param('status'));
if ($DBH->do(q{UPDATE planets SET planet_status = ? WHERE id =?}
,undef,$value,$planet->{id})){
+ intel_log $ND::UID,$planet->{id},"Set planet_status to: $value";
$planet->{planet_status} = $value;
}else{
$error .= "<p> Something went wrong: ".$DBH->errstr."</p>";
if (param('calliance')){
if ($DBH->do(q{UPDATE planets SET alliance_id = NULLIF(?,-1) WHERE id =?}
,undef,param('alliance'),$planet->{id})){
+ intel_log $ND::UID,$planet->{id},"Set alliance_id to: ".param('alliance');
$planet->{alliance_id} = param('alliance');
}else{
$error .= "<p> Something went wrong: ".$DBH->errstr."</p>";