<?php
if (!eregi("modules.php", $PHP_SELF)){
die (_accessdirectly);
}
$description = str_replace("\n","",addslashes(strip_tags(stripslashes($description))));
$details = addslashes(stripslashes($details));
$query = "select userid from ".$prefix."_character_characters where charid = '$charid'";
$result = sql_query($query,$dbi);
$line = sql_fetch_array($result);
if($userid != $line['userid'])
die("Access Denied");
$query1 = "UPDATE ".$prefix."_character_characters SET description = '$description', details = '$details' where charid = '$charid'";
$result = sql_query($query1,$dbi);
echo _detailssubmitted;
?>