This commit is contained in:
Claude 2012-06-14 13:16:33 +02:00
parent 32106be13e
commit a80dfde39f
2 changed files with 20 additions and 1 deletions

View File

@ -28,8 +28,14 @@ class Spamadmin extends CI_Controller
{
$this->load->model('pastes');
$session_id = $this->uri->segment(3);
$this->db->select('ip_address');
$this->db->where('session_id', $session_id);
$query = $this->db->get('ci_sessions');
$r = $query->result_array();
$ip_address = $r[0]['ip_address'];
$data = $this->pastes->getSpamLists('spamadmin/session/' . $session_id, $seg = 4, $session_id);
$data['session_id'] = $session_id;
$data['ip_address'] = $ip_address;
$this->load->view('list_sessionid', $data);
}
}

View File

@ -1,5 +1,18 @@
<?php $this->load->view('defaults/header');?>
<h1>Spamadmin - Pastes for sessionid <?php echo $session_id; ?></h1>
<h1><a href="<?php echo site_url('spamadmin'); ?>">Spamadmin</a> - Pastes for sessionid <?php echo $session_id; ?></h1>
<form action="" method="post">
<label for="private">Block IP (<?php echo $ip_address; ?>)</label>
<div class="text_beside">
<input type="checkbox" name="private" value="1" id="private" tabindex="6" />
</div>
<div class="text_beside">
<input type="submit" name="confirm_remove" value="Confirm removal of all pastes below" />
</div>
</form>
<div class="space"></div>
<?php
function checkNum($num){