|
|
@ -1,6 +1,6 @@ |
|
|
|
<?php |
|
|
|
<?php |
|
|
|
// |
|
|
|
// |
|
|
|
// "$Id: comment.php,v 1.3 2004/05/19 00:57:33 mike Exp $" |
|
|
|
// "$Id: comment.php,v 1.4 2004/05/19 03:26:36 mike Exp $" |
|
|
|
// |
|
|
|
// |
|
|
|
// Comment and moderation interface for PHP pages... |
|
|
|
// Comment and moderation interface for PHP pages... |
|
|
|
// |
|
|
|
// |
|
|
@ -168,10 +168,11 @@ else |
|
|
|
$create_date = time(); |
|
|
|
$create_date = time(); |
|
|
|
db_query("INSERT INTO comment VALUES(NULL,$refer_id,2,'$file'," |
|
|
|
db_query("INSERT INTO comment VALUES(NULL,$refer_id,2,'$file'," |
|
|
|
."'$contents',$create_date,'$create_user')"); |
|
|
|
."'$contents',$create_date,'$create_user')"); |
|
|
|
|
|
|
|
$id = db_insert_id(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$location = str_replace("_", "?", $path); |
|
|
|
$location = str_replace("_", "?", $path); |
|
|
|
header("Location: $location"); |
|
|
|
header("Location: $location#_USER_COMMENT_$id"); |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
@ -349,18 +350,13 @@ else |
|
|
|
db_free($result); |
|
|
|
db_free($result); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ($LOGIN_USER) |
|
|
|
$location = str_replace("_", "?", $path); |
|
|
|
header("Location: $PHP_SELF"); |
|
|
|
header("Location: $location#_USER_COMMENT_$id"); |
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$location = str_replace("_", "?", $path); |
|
|
|
|
|
|
|
header("Location: $location"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// |
|
|
|
// |
|
|
|
// End of "$Id: comment.php,v 1.3 2004/05/19 00:57:33 mike Exp $". |
|
|
|
// End of "$Id: comment.php,v 1.4 2004/05/19 03:26:36 mike Exp $". |
|
|
|
// |
|
|
|
// |
|
|
|
?> |
|
|
|
?> |
|
|
|