Location: PHPKode > projects > VampMan: V:tR Character Manager > vampman-1.0.2/phpnuke/modules/charactersheet/detailssubmit.php
<?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;

?>
Return current item: VampMan: V:tR Character Manager