mymps_admin_chk_getinfo()) { exit('Access Denied!'); } else { define('IN_ADMIN', true); } $destination = isset($destination) ? trim($destination) : ''; $delfile && @unlink(MYMPS_ROOT . trim($delfile)); $id = isset($id) ? trim($id) : 'imgsrc'; if (is_array($_FILES) && submit_check(CURSCRIPT . '_submit')) { !$destination && ($destination = 'other'); require_once MYMPS_INC . '/upfile.fun.php'; $name_file = 'mymps_img'; check_upimage($name_file); if ($_FILES[$name_file]['name']) { $watermark = !empty($watermark) ? $mymps_global['cfg_upimg_watermark'] : 0; if ($mymps_image = start_upload($name_file, '/' . $destination . '/' . date('Ym') . '/', $watermark, $width, $height)) { $msg = '图片上传成功!'; $path = $mymps_image; } else { $msg = '图片上传失败!'; $path = ''; } } else { $msg = '图片上传失败!'; $path = ''; } echo '点此重新上传图片'; } else { echo '' . "\r\n" . '' . "\r\n" . '' . "\r\n" . '' . "\r\n" . 'upfile' . "\r\n" . '' . "\r\n" . '' . "\r\n" . '' . "\r\n" . ' ' . "\r\n" . '' . "\r\n" . '' . "\r\n" . '' . "\r\n" . '' . "\r\n" . '' . "\r\n" . ' ' . "\r\n" . ' ' . "\r\n" . ' ' . "\r\n" . ' ' . "\r\n" . ' ' . "\r\n" . ' ' . "\r\n" . ' ' . "\r\n" . '' . "\r\n" . '
' . "\r\n" . '
' . "\r\n" . '' . "\r\n" . '' . "\r\n"; }