show_body.php

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

PHP
17
字号
<?
  require './inc/inc.php';
  if ((!isset ($folder) OR !isset ($ix)))
  {
    exit ('Expected parameters');
  }
  echo $nocache;
  $body = $sess['currentbody'];
  if ($block_external_images)
  {
    $body = eregi_replace ('src=(["]?)(http[s]?:\\/\\/[a-z0-9~#%@\\&:=?+\\/\\.,_-]+[a-z0-9~#%@\\&=?+\\/_-]+)(["]?)', 'src=\\1images/trans.gif\\3 original_url="\\2"', $body);
  }
  $body = eregi_replace ('target=["]?[A-Z_]+["]?', '', $body);
  $body = eregi_replace ('<a', '<a target="_blank"', $body);
  echo $body;
?>

⌨️ 快捷键说明

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