first
This commit is contained in:
15
modules/comment/action/a.bbs_file_delete.php
Normal file
15
modules/comment/action/a.bbs_file_delete.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
checkAdmin(0);
|
||||
|
||||
$R = getDbData($table[$m.'list'],"id='".$bid."'",'*');
|
||||
|
||||
if ($R['img'.$dtype])
|
||||
{
|
||||
getDbUpdate($table[$m.'list'],"img".$dtype."=''",'uid='.$R['uid']);
|
||||
unlink($g['dir_module'].'var/files/'.$R['img'.$dtype]);
|
||||
}
|
||||
|
||||
getLink('reload','parent.','','');
|
||||
?>
|
||||
Reference in New Issue
Block a user