mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 20:41:20 -05:00
ip
This commit is contained in:
parent
32106be13e
commit
a80dfde39f
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user