📄 9.php
字号:
<?php
function is_priview14( $str, $priview )
{
$str_array = explode( ",", $str );
$priview = explode( ",", $priview );
$i = 0;
for ( ; $i < sizeof( $priview ); ++$i )
{
if ( in_array( $str_array[$i], $priview ) )
{
return true;
}
else
{
return false;
}
}
}
include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
$sql = "SELECT UP.FUNC_ID_STR FROM user AS U,user_priv AS UP WHERE U.USER_ID='".$_SESSION['LOGIN_USER_ID']."' AND U.USER_PRIV=UP.USER_PRIV";
$cursor = exequery( $connection, $sql );
if ( $row = mysql_fetch_array( $cursor ) )
{
$u_priv = $row['FUNC_ID_STR'];
}
$strlink = $_SERVER['PHP_SELF'];
if ( strpos( $strlink, "block_02.php" ) === false )
{
$isimg = true;
}
if ( $isimg == true )
{
$imgurl01 = "background=\"/theme/4/bg_mt_line_.gif\"";
$imgurl02 = "background=\"/theme/1/newsbg.gif\"";
$imgurl04 = "";
$strimg = "<img src=\"/theme/1/gray_up_arrow.gif\" width=\"30\" height=\"22\" border=\"0\" id=\"imgarrow14\" title=\"展开/收缩\" onClick=\"ControlContent14();\" style=\"cursor:hand\">";
$td04width = "30";
$tdbgcolor = "#EBEBEB";
$fontstyle = "a";
$jscontrolu = "/theme/1/gray_up_arrow.gif";
$jscontrold = "/theme/1/gray_down_arrow.gif";
}
else
{
$imgurl01 = "background=\"/theme/1/darkheadleft.gif\"";
$imgurl02 = "background=\"/theme/1/darkheadbg.gif\"";
$imgurl04 = "/theme/1/darkheadbg.gif\"";
$strimg = "<img src=\"/theme/1/black_up_arrow.gif\" width=\"19\" height=\"28\" border=\"0\" id=\"imgarrow14\" title=\"展开/收缩\" onClick=\"ControlContent14();\" style=\"cursor:hand\">";
$td04width = "19";
$tdbgcolor = "#ABABAB";
$fontstyle = "b";
$jscontrolu = "/theme/1/black_up_arrow.gif";
$jscontrold = "/theme/1/black_down_arrow.gif";
}
echo "<s";
echo "cript src=\"/inc/ajax_about.js\"></script>\r\n";
echo "<s";
echo "cript>\r\nfunction ControlContent14(){\r\n if (contentid14.style.display == 'none'){\r\n\t contentid14.style.display = '';\r\n\t\timgarrow14.src = '";
echo $jscontrolu;
echo "';\r\n\t}\r\n else {\r\n\t contentid14.style.display = 'none';\r\n\t\timgarrow14.src = '";
echo $jscontrold;
echo "';\r\n\t}\t\r\n\r\n}\r\n\r\n</script>\r\n\r\n<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"newsbg\" align=\"center\">\r\n <tr>\r\n <td width=\"88\" ";
echo $imgurl01;
echo "><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n <tr>\r\n <td width=\"15%\"> </td>\r\n <td height=\"18\">";
if ( !is_priview14( "260,", $u_priv ) )
{
echo "<span style=\"font:bold;\">我的资讯</span>";
}
else
{
echo "<a href=\"/general/rss/index.php\" target=\"main\" class=\"".$fontstyle."\">我的资讯</a>";
}
echo "</td>\r\n </tr>\r\n </table></td>\r\n <td ";
echo $imgurl02;
echo "> </td>\r\n <td width=\"";
echo $td04width;
echo "\" align=\"right\" ";
echo $imgurl04;
echo ">";
echo $strimg;
echo "</td>\r\n </tr>\r\n</table>\r\n<table width=\"100%\" id=\"contentid14\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" class=\"darkbord\">\r\n <tr>\r\n <td colspan=\"3\" bgcolor=\"";
echo $tdbgcolor;
echo "\" height=\"1\"></td>\r\n </tr>\r\n ";
if ( !is_priview14( "260,", $u_priv ) )
{
echo " <tr>\r\n <td>";
message( "", "无权查看此栏目!" );
echo "</td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"3\" bgcolor=\"";
echo $tdbgcolor;
echo "\" height=\"1\"></td>\r\n </tr>\r\n ";
}
else
{
$connection = openconnection( );
$query = "SELECT * FROM user_resource WHERE USER_ID='".$_SESSION['LOGIN_USER_ID']."' AND RES_INDEX=1 ORDER BY RES_ORDER ASC";
$cursor = exequery( $connection, $query );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
$res_id = $ROW['RES_ID'];
$res_name = $ROW['RES_NAME'];
echo " <tr height=\"20\">\r\n <td width=\"2%\"> </td>\r\n <td><div id=\"rssDiv";
echo $res_id;
echo "\"></div>\r\n ";
echo "<s";
echo "cript>\r\n\t\t\t var curObject = document.getElementById(\"rssDiv";
echo $res_id;
echo "\");\r\n\t\t\t createhtml(\"/general/rss/more_limit.php?res_id=";
echo $res_id;
echo "\",curObject);\r\n\t\t\t </script></td>\r\n </tr>\r\n <tr>\r\n <td colspan=\"2\" bgcolor=\"";
echo $tdbgcolor;
echo "\" height=\"1\"></td>\r\n </tr>\r\n ";
}
}
echo "</table>\r\n<br>\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -