Files
dev.ttsby.com/modules/site/action/a.deletewidget.php
2023-04-17 11:06:08 +09:00

15 lines
380 B
PHP

<?php
if(!defined('__KIMS__')) exit;
checkAdmin(0);
$pwd = trim($pwd);
if (!$pwd || !strstr(substr($pwd,0,10),'widget')) exit;
include $g['path_core'].'function/dir.func.php';
DirDelete($pwd);
$newPwd = str_replace('/'.basename($pwd).'/','/',$pwd);
getLink($g['s'].'/?r='.$r.'&system=popup.widget&iframe=Y&isWcode=Y&pwd='.urlencode($newPwd),'parent.','','');
?>