⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smilies.php

📁 CMS系统
💻 PHP
字号:
<?php

define('MOD_ACCESS', true);
define('IN_ADMIN', true);
define('IN_SUBDREAMER', true);
$rootpath = "../../../../";


// ################################ INCLUDE CORE ###############################

include($rootpath . 'includes/core.php');


// ################################ START PAGE #################################

echo '<html>
      <head>
        <title>Insert Smilie</title>
        <script language="javascript" src="../../tiny_mce_popup.js"></script>
        <script language="javascript">
        function insertEmotion(file_name)
        {
          if (window.opener)
          {
            tinyMCE.themes[\'advanced\']._insertImage(file_name);
            window.close();
          }
        }
        </script>
      </head>

      <body onload="">
      <div align="center">
      <div class="title">Insert Smilie<br /><br /></div>

      <table border="0" cellspacing="0" cellpadding="4">
      <tr>
        <td>';

for($i = 0, $columncount = 0; $i < count($smilieimagepaths); $i++)
{
  // get the image url out of the html image code, ex:
  // <img src="http://localhost/subdreamer/../forums/phpbb2/images/smiles/icon_cry.gif" alt="" border="0" />

  $imageurl = $smilieimagepaths[$i];
  $imageurl = str_replace('<img src="', '', $imageurl);
  $imageurl = str_replace('" alt="" border="0" />', '', $imageurl);

  echo "<a href='javascript:void(0);' onmousedown='insertEmotion(\"" . $imageurl . "\");'>" . $smilieimagepaths[$i] . "</a>\n";

  if($columncount == 4)
  {
    echo '<br />';
    $columncount = 0;
  }
  else
  {
    $columncount++;
  }
}

echo '  </td>
      </tr>
      </table>

      </body>
      </html>';

?>

⌨️ 快捷键说明

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