<label for="post_tags"><?php _e('URL','cp'); ?> <?php _e('(i.e. http://www.mysite.com)','cp'); ?></label> <input type="text" id="cp_adURL" class="adfields" name="cp_adURL" size="60" maxlength="250" value="<?php echo $_POST['cp_adURL']; ?>" />
<label for="post_tags"><?php _e('IP','cp'); ?> <?php _e('(To prevent the abuse the IPs are logged)','cp'); ?></label> <input disabled="disabled" readonly="readonly" type="text" name="ip" size="13" maxlength="250" value="<?php echo $ip=$_SERVER['REMOTE_ADDR'];?>" /">
$cp_adURL = cp_filter($_POST['cp_adURL']); $featured_ad = cp_filter($_POST['featured_ad']);
$ip = cp_filter($ip=$_SERVER['REMOTE_ADDR']);
add_post_meta($post_id, 'images', $images, true); add_post_meta($post_id, 'expires', $expires, true);
add_post_meta($post_id, 'ip', $ip, true);
There are currently 1 users browsing this thread. (0 members and 1 guests)