delete_photo.php

来自「通达OA2007SE源代码 非常好的」· PHP 代码 · 共 38 行

PHP
38
字号
<?
  include_once 'inc/auth.php';
  include_once 'inc/utility_all.php';
  ob_start ();
  echo '<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="bodycolor" topmargin="5">
';
  $query = (((''.'select PHOTO from HRMS where USER_ID=\'').$USER_ID).'\'');
  $cursor = exequery ($connection, $query);
  if ($ROW = mysql_fetch_array ($cursor))
  {
    $PHOTO = $ROW['PHOTO'];
  }
  if (($PHOTO != ''))
  {
    $FILENAME = ($ATTACH_PATH.((''.'hrms_pic/').$PHOTO));
    if (file_exists ($FILENAME))
    {
      unlink ($FILENAME);
    }
  }
  $query = (((''.'update HRMS set PHOTO=\'\' where USER_ID=\'').$USER_ID).'\'');
  exequery ($connection, $query);
  echo '<s';
  echo 'cript>
location="hrms.php?USER_ID=';
  echo $USER_ID;
  echo '";
</script>
</body>
</html>
';
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?