コード例 #1
0
function Subseribe($sidename, $sidetitle, $htmlcode, $isInstall)
{
    global $settingInfo;
    if (isset($_COOKIE["content_{$sidename}"])) {
        $display = $_COOKIE["content_{$sidename}"];
    } else {
        $display = $isInstall > 0 ? "none" : "";
    }
    ?>
<div class="sidepanel" id="Side_Site_Subseribe">
  <h4 class="Ptitle" style="cursor: pointer;" onclick="sidebarTools('<?php 
    echo "content_{$sidename}";
    ?>
')"><?php 
    echo $sidetitle;
    ?>
</h4>
  <div class="Pcontent" id="<?php 
    echo "content_{$sidename}";
    ?>
" style="display:<?php 
    echo $display;
    ?>
">
		<?php 
    if ($htmlcode != "") {
        echo dencode($htmlcode);
    }
    ?>
   </div>
  <div class="Pfoot"></div>
</div>
<?php 
}
コード例 #2
0
ファイル: eMule.php プロジェクト: BGCX067/f2cont-svn-to-git
function emu($code)
{
    $view = "";
    $code = dencode($code);
    $searcharray = explode("<br />", $code);
    $view = '';
    $temp = $total = 0;
    $view = "<div class=\"emuletop\">eMule资源</div><div class=\"emulemain\" align=\"center\"><table border=\"0\" align=\"center\" cellpadding=\"2\" cellspacing=\"1\" width=\"100%\"><tr><td colspan=\"2\" align=\"center\"><a href=\"http://www.emule.org.cn/download/\" target=\"_blank\">下面是用户共享的文件列表,安装eMule后,您可以点击这些文件名进行下载</a></td></tr>";
    foreach ($searcharray as $emule) {
        $emule = trim($emule);
        if ($emule != '' && strpos(";{$emule}", "ed2k://") == 1) {
            $temp++;
            $emule = trim($emule);
            $emule_array = explode("|", $emule);
            $total += $emule_array[3];
            $totalper = esizecount($emule_array[3]);
            if ($temp % 2 != 0) {
                $view .= "<tr><td align=\"left\" class=\"post2\"><input type=\"checkbox\" class=\"forminput\" name=\"em{$codecount}\" value=\"{$emule}\" onclick=\"em_size('em{$codecount}');\" checked=\"checked\" /> <a href=\"{$emule}\"><script language=\"javascript\">document.write(unescape(decodeURIComponent(\"{$emule_array['2']}\")));</script></a></td><td align=\"center\" class=\"post2\">{$totalper}</td></tr>";
            } else {
                $view .= "<tr><td align=\"left\"><input type=\"checkbox\" class=\"forminput\" name=\"em{$codecount}\" value=\"{$emule}\" onclick=\"em_size('em{$codecount}');\" checked=\"checked\" /> <a href=\"{$emule}\"><script language=\"javascript\">document.write(unescape(decodeURIComponent(\"{$emule_array['2']}\")));</script></a></td><td align=\"center\">{$totalper}</td></tr>";
            }
        }
    }
    $total = esizecount($total);
    if ($temp > 0 && $temp != 1) {
        $view .= "<tr><td align=\"left\"class=\"post2\"><input type=\"checkbox\" id=\"checkall_em{$codecount}\" class=\"forminput\"  onclick=\"echeckAll('em{$codecount}',this.checked)\" checked /> <label for=\"checkall_em{$codecount}\">全选</label> <input type=\"button\" value=\"下载选中的文件\" class=\"button\" onclick=\"download('em{$codecount}',0,1)\" /> <input type=\"button\" value=\"复制选中的链接\" class=\"button\" onclick=\"copy('em{$codecount}')\" /><div id=\"ed2kcopy_em{$codecount}\" style=\"position:absolute;height:0px;width:0px;overflow:hidden;\"></div></td><td align=\"center\" id=\"size_em{$codecount}\"class=\"post2\">{$total}</td></tr>";
    }
    $return = "{$view}</table></div>";
    return $return;
}
コード例 #3
0
function copyrightsYou($mainname, $maintitle, $htmlcode)
{
    ?>
<!--免责声明-->
<div id="MainContent_<?php 
    echo $mainname;
    ?>
" class="content-width">
	<div class="Content-top">
		<h1 class="ContentTitle"><a class="titleA">免责声明</a></h1>
	</div>
	<div class="Content-body">
		<?php 
    if ($htmlcode != "") {
        echo dencode($htmlcode);
    } else {
        ?>
			<font color="#339900">本博客立志于收集各类儿童教育资料及技术信息,便于本人和广大网友及家长查询检索,无论公司或个人认为本站存在侵权内容均可与本站联系,任何此类反馈信息一经查明属实后,将立即删除!</font>
		<?php 
    }
    ?>
    </div>	
</div>
<?php 
}
コード例 #4
0
function FlashClockStatistics($sidename, $sidetitle, $htmlcode, $isInstall)
{
    if (isset($_COOKIE["content_{$sidename}"])) {
        $display = $_COOKIE["content_{$sidename}"];
    } else {
        $display = $isInstall > 0 ? "none" : "";
    }
    ?>
<!--FlashClockStatistics-->
<div id="Side_FlashClockStatistics" class="sidepanel">
  <h4 class="Ptitle" style="cursor: pointer;" onclick="sidebarTools('<?php 
    echo "content_{$sidename}";
    ?>
')"><?php 
    echo $sidetitle;
    ?>
</h4>
  <div class="Pcontent" id="<?php 
    echo "content_{$sidename}";
    ?>
" style="display:<?php 
    echo $display;
    ?>
">
	<?php 
    if ($htmlcode != "") {
        echo dencode($htmlcode);
    } else {
        ?>
		<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="130" height="130">
		<param name="movie" value="plugins/FlashClock/clock.swf">
		<param name="quality" value="high">
		<param name="wmode" value="transparent">
		<embed src="clock.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="130" height="130"></embed></object>
	<?php 
    }
    ?>
  </div>
  <div class="Pfoot"></div>
</div>
<?php 
}
コード例 #5
0
function NetExtractYou($mainname, $maintitle, $htmlcode)
{
    ?>
<!--加入网摘-->
<div class="comment">
	<div class="commenttop">
		<img src="plugins/NetExtract/images/vivi.gif" alt="" style="margin:0px 4px -3px 0px"/><strong>&nbsp;加入网摘</strong>
	</div>
	<div class="commentcontent">
		<?php 
    if ($htmlcode != "") {
        echo dencode($htmlcode);
    } else {
        ?>
			<script type="text/javascript" src="plugins/NetExtract/NetExtract.js"></script>
		<?php 
    }
    ?>
    </div>	
</div>
<?php 
}
コード例 #6
0
function flashDailyStatistics($sidename, $sidetitle, $htmlcode, $isInstall)
{
    if (isset($_COOKIE["content_{$sidename}"])) {
        $display = $_COOKIE["content_{$sidename}"];
    } else {
        $display = $isInstall > 0 ? "none" : "";
    }
    ?>
<!--FlashDailyStatistics-->
<div id="Side_flashDailyStatistics" class="sidepanel">
  <h4 class="Ptitle" style="cursor: pointer;" onclick="sidebarTools('<?php 
    echo "content_{$sidename}";
    ?>
')"><?php 
    echo $sidetitle;
    ?>
</h4>
  <div class="Pcontent" id="<?php 
    echo "content_{$sidename}";
    ?>
" style="display:<?php 
    echo $display;
    ?>
">
	<?php 
    if ($htmlcode != "") {
        echo dencode($htmlcode);
    } else {
        ?>
		<object style="border:0px solid;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="165" height="93.5"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="plugins/flashDaily/counter.swf?counter=7"/><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /></object>
	<?php 
    }
    ?>
  </div>
  <div class="Pfoot"></div>
</div>
<?php 
}
コード例 #7
0
function GoogleSearch($sidename, $sidetitle, $htmlcode, $isInstall)
{
    global $settingInfo;
    if (isset($_COOKIE["content_{$sidename}"])) {
        $display = $_COOKIE["content_{$sidename}"];
    } else {
        $display = $isInstall > 0 ? "none" : "";
    }
    ?>
<div class="sidepanel" id="Side_Site_GoogleSearch">
  <h4 class="Ptitle" style="cursor: pointer;" onclick="sidebarTools('<?php 
    echo "content_{$sidename}";
    ?>
')"><?php 
    echo $sidetitle;
    ?>
</h4>
  <div class="Pcontent" id="<?php 
    echo "content_{$sidename}";
    ?>
" style="display:<?php 
    echo $display;
    ?>
">
		<?php 
    if ($htmlcode != "") {
        echo dencode($htmlcode);
    } else {
        ?>
		<script language="JavaScript" type="text/JavaScript" src="http://zhidao.baidu.com/q?ct=18&cid=84&tn=fcuqlclass&pn=50&lm=0&rn=8"></script>
		<?php 
    }
    ?>
   </div>
  <div class="Pfoot"></div>
</div>
<?php 
}
コード例 #8
0
ファイル: weather.php プロジェクト: BGCX067/f2cont-svn-to-git
function weather_report($sidename, $sidetitle, $htmlcode, $isInstall)
{
    if (isset($_COOKIE["content_{$sidename}"])) {
        $display = $_COOKIE["content_{$sidename}"];
    } else {
        $display = $isInstall > 0 ? "none" : "";
    }
    ?>
<!--天气预报-->
<div id="Side_WeatherReport" class="sidepanel">
  <h4 class="Ptitle" style="cursor: pointer;" onclick="sidebarTools('<?php 
    echo "content_{$sidename}";
    ?>
')"><?php 
    echo $sidetitle;
    ?>
</h4>
  <div class="Pcontent" id="<?php 
    echo "content_{$sidename}";
    ?>
" style="display:<?php 
    echo $display;
    ?>
">
  	<?php 
    if ($htmlcode != "") {
        echo dencode($htmlcode);
    } else {
        ?>
		<IFRAME ID='ifm2' WIDTH='175' HEIGHT='190' ALIGN='CENTER' MARGINWIDTH='0' MARGINHEIGHT='0' HSPACE='0' VSPACE='0' FRAMEBORDER='0' SCROLLING='NO' SRC='http://weather.news.qq.com/inc/ss272.htm'></IFRAME>
	<?php 
    }
    ?>
  </div>
  <div class="Pfoot"></div>
</div>
<?php 
}
コード例 #9
0
function flashLink($sidename, $sidetitle, $htmlcode, $isInstall)
{
    if (isset($_COOKIE["content_{$sidename}"])) {
        $display = $_COOKIE["content_{$sidename}"];
    } else {
        $display = $isInstall > 0 ? "none" : "";
    }
    ?>
<!--flashLink-->
<div id="Side_flashLink" class="sidepanel">
  <h4 class="Ptitle" style="cursor: pointer;" onclick="sidebarTools('<?php 
    echo "content_{$sidename}";
    ?>
')"><?php 
    echo $sidetitle;
    ?>
</h4>
  <div class="Pcontent" id="<?php 
    echo "content_{$sidename}";
    ?>
" style="display:<?php 
    echo $display;
    ?>
">
	<?php 
    if ($htmlcode != "") {
        echo dencode($htmlcode);
    } else {
        ?>
		<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6&#44;0&#44;29&#44;0" height="210" width="168" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param value="plugins/flashLink/link.swf?xml_url=plugins/flashLink/link.xml" name="movie" /><param value="high" name="quality" /><param value="false" name="menu" /></object>
	<?php 
    }
    ?>
  </div>
  <div class="Pfoot"></div>
</div>
<?php 
}
コード例 #10
0
function CallBoardYou($mainname, $maintitle, $htmlcode)
{
    ?>
<!--滚动的公告板-->
<div id="MainContent_<?php 
    echo $mainname;
    ?>
" class="content-width">
		<?php 
    if ($htmlcode != "") {
        $arrCode = explode("<br />", $htmlcode);
        ?>
		<table width="100%" height="40" border="0" align="center" cellpadding="0" cellspacing="0" style="background:#f5f9f4;border:2px solid #eaeee8;font-size:12px;text-align:left;">
		<tr>
		<td width="36" align="center"><img src="plugins/CallBoard/callBoard.gif" alt="公告板" /></td>
		<td width="95%" align="right" >
		<div id="icefable1" valign="top">
			<TABLE style="COLOR:#000" height="40" cellSpacing="0" cellPadding="0" width="100%" border="0">
			<?php 
        foreach ($arrCode as $key => $value) {
            ?>
			<TR><TD align=left height=20>&nbsp;<?php 
            echo dencode(trim($value));
            ?>
</TD></TR>
			<?php 
        }
        ?>
			</TABLE>
		</div>

		<script language=javascript> 
			if (navigator.product != 'Gecko'){
				marqueesHeight=20//滚动的高度 
				delaytime = 140 //停留时间 
				scrollupRadio = 18 //每段显示中的文字向上滚动速度... 
				stopscroll=false; 
				document.getElementById('icefable1').scrollTop=0; 
				//设置层的属性 
				with(document.getElementById('icefable1')){  
					//宽度0 
					//style.width=330; 
					//高度为设定的滚动高度 
					style.height=40; 
					//溢出不显示.. 
					style.overflowX="visible"; 
					style.overflowY="hidden"; 
					//不允许换行.. 
					noWrap= false //true; 
					onmouseover=new Function("stopscroll_=true"); 
					onmouseout=new Function("stopscroll_=false"); 
				}

				//将层中的数据输出两次,由于限制了高度,所以不会显示出来; 
				document.getElementById('icefable1').innerHTML+=document.getElementById('icefable1').innerHTML+=document.getElementById('icefable1').innerHTML+=document.getElementById('icefable1').innerHTML+=document.getElementById('icefable1').innerHTML+=document.getElementById('icefable1').innerHTML; 
				function init_srolltext(){  
					document.getElementById('icefable1').scrollTop= 0; 
					setInterval("scrollUp()",scrollupRadio); //滚动速度...100 
				} 

				init_srolltext(); 
				preTop=0; currentTop=0; stoptime=0; 
				function scrollUp(){  
					if(stopscroll==true) return; 
					currentTop+=1; 
					if(currentTop==21){  
						stoptime+=1; 
						currentTop-=1; 
						if(stoptime==delaytime){  
							currentTop=0; 
							stoptime=0; 
						} 
					} else {     
						preTop=document.getElementById('icefable1').scrollTop; 
						document.getElementById('icefable1').scrollTop+=1; 
						if(preTop==document.getElementById('icefable1').scrollTop){  
							document.getElementById('icefable1').scrollTop=20
							document.getElementById('icefable1').scrollTop+=1; 
						} 
					} 
				} 
			}
		</script> 				
		</td>
		</tr>
		</table>
<?php 
    }
    ?>
</div>
<?php 
}
コード例 #11
0
ファイル: editdel.php プロジェクト: BGCX067/f2cont-svn-to-git
     $sql = "select * from {$op_table} where id='" . $postid . "' and password='******'replypassword']) . "'";
 }
 $result = $DMF->query($sql);
 if (!($arr_result = $DMF->fetchArray($result))) {
     $ActionMessage = $strGuestBookRightsError;
     $_GET['action'] = "error";
 } else {
     //编辑,读出原记录
     if ($_POST['chkaction'] == "edit") {
         $username = $arr_result['author'];
         if ($_GET['load'] == "guestbook") {
             //留言
             $homepage = $arr_result['homepage'];
             $email = $arr_result['email'];
         }
         $message = str_replace("<br />", "", dencode($arr_result['content']));
         $postTime = $arr_result['postTime'];
         $isSecret = $arr_result['isSecret'];
         $old_password = $arr_result['password'];
     }
     //删除记录
     if ($_POST['chkaction'] == "del") {
         $del_id = 0;
         if ($arr_result['parent'] == "0") {
             //删除的是主项目,其子项目也要清除
             $sql = "select * from {$op_table} where parent='" . $arr_result['id'] . "'";
             $result = $DMF->query($sql);
             while ($sub_result = $DMF->fetchArray($result)) {
                 $sql = "delete from {$op_table} where id='" . $sub_result['id'] . "'";
                 $DMF->query($sql);
                 //echo $sql."<br>";
コード例 #12
0
function side_other($sidename, $sidetitle, $htmlcode, $isInstall)
{
    if (isset($_COOKIE["content_{$sidename}"])) {
        $display = $_COOKIE["content_{$sidename}"];
    } else {
        $display = $isInstall > 0 ? "none" : "";
    }
    ?>
<!--其它Side-->
<div id="Side_OtherSide" class="sidepanel">
  <h4 class="Ptitle" style="cursor: pointer;" onclick="sidebarTools('<?php 
    echo "content_{$sidename}";
    ?>
')"><?php 
    echo $sidetitle;
    ?>
</h4>
  <div class="Pcontent" id="<?php 
    echo "content_{$sidename}";
    ?>
" style="display:<?php 
    echo $display;
    ?>
">
  	<div id="Other_Body"><?php 
    echo dencode($htmlcode);
    ?>
</div>
  </div>
  <div class="Pfoot"></div>
</div>
<?php 
}
コード例 #13
0
ファイル: setting.php プロジェクト: BGCX067/f2cont-svn-to-git
    $perPageNormal = $settingInfo['perPageNormal'];
    $perPageList = $settingInfo['perPageList'];
    $isLinkTagLog = $settingInfo['isLinkTagLog'];
    $linkTagLog = $settingInfo['linkTagLog'];
    $isProgramRun = $settingInfo['isProgramRun'];
    $commTimerout = $settingInfo['commTimerout'];
    $commLength = $settingInfo['commLength'];
    $isValidateCode = $settingInfo['isValidateCode'];
    $isRegister = $settingInfo['isRegister'];
    $status = $settingInfo['status'];
    $closeReason = dencode($settingInfo['closeReason']);
    $language = $settingInfo['language'];
    $timezone = $settingInfo['timezone'];
    $timeSystemFormat = $settingInfo['timeSystemFormat'];
    $isTbApp = $settingInfo['isTbApp'];
    $tbSiteList = dencode($settingInfo['tbSiteList']);
    $newRss = $settingInfo['newRss'];
    $rssContentType = $settingInfo['rssContentType'];
    $tagNums = $settingInfo['tagNums'];
}
?>

<form action="" method="post" enctype="multipart/form-data" name="seekform">
  <div id="content">
  <div class="box">
    <table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="6" height="20"><img src="images/main/content_lt.gif" width="6" height="21"></td>
        <td height="21" background="images/main/content_top.gif">&nbsp;</td>
        <td width="6" height="20"><img src="images/main/content_rt.gif" width="6" height="21"></td>
      </tr>
コード例 #14
0
function tagList($tags)
{
    global $settingInfo;
    if ($settingInfo['rewrite'] == 0) {
        $gourl = "index.php?job=tags&amp;seekname=";
    }
    if ($settingInfo['rewrite'] == 1) {
        $gourl = "rewrite.php/tags-";
    }
    if ($settingInfo['rewrite'] == 2) {
        $gourl = "tags-";
    }
    $tags = dencode($tags);
    $tagsInfo = explode(";", $tags);
    $str = "";
    foreach ($tagsInfo as $value) {
        $value = encode($value);
        $string = "<a href=\"{$gourl}" . urlencode($value) . $settingInfo['stype'] . "\">" . $value . "</a>";
        $str .= $str == "" ? $string : "&nbsp;" . $string;
    }
    return $str;
}
コード例 #15
0
function addSettingValue($setType, $setName, $setField = "", $setValue = "", $setOption = "")
{
    global $setInfoResult, $strShow, $strDelete, $DMC, $DBPrefix;
    //如果该值没有设定则增加到数据库
    if ($setField != "") {
        if (!keyExists($setField, $setInfoResult)) {
            $DMC->query("insert into " . $DBPrefix . "setting(settName,settValue,settAuto) values('{$setField}','{$setValue}','0')");
            $setInfoResult[$setField] = $setValue;
        }
        if ($setField == "ncalendar") {
            $setInfoResult[$setField] = str_replace("}{", "}\r\n{", dencode($setInfoResult[$setField]));
        }
        if ($setField == "gcalendar") {
            $setInfoResult[$setField] = str_replace("}{", "}\r\n{", dencode($setInfoResult[$setField]));
        }
    }
    //echo $setType."==".$setName."==".$setField."==".$setOption."<br />";
    switch ($setType) {
        case 't':
            //text input
            if ($setField == "linklogo") {
                $changecode = "onchange=\"if ((/^http:\\/\\//i.test(this.value))){document.getElementById('linklogoimg').src=this.value}else{document.getElementById('linklogoimg').src='{$setInfoResult['blogUrl']}'+this.value}\"";
            } else {
                $changecode = "";
            }
            $output = <<<HTMLCODE
            <tr>
              <td width="25%" align="right" valign="middle" class="input-titleblue">{$setName}</td>
              <td width="4" align="left" valign="middle">&nbsp;</td>
              <td width="75%" align="left" valign="middle">
                <input name="{$setField}" type="text" size="50" class="textbox" value="{$setInfoResult[$setField]}" {$changecode}/> {$setOption}
              </td>
            </tr>
HTMLCODE;
            break;
        case 'ta':
            //textarea
            $setInfoResult[$setField] = str_replace("<br />", "", dencode($setInfoResult[$setField]));
            $output = <<<HTMLCODE
            <tr>
              <td width="25%" align="right" valign="top" class="input-titleblue">{$setName}</td>
              <td width="4" align="left" valign="top">&nbsp;</td>
              <td width="75%" align="left">
                <textarea name="{$setField}" cols="60" rows="6" class="blogeditbox">{$setInfoResult[$setField]}</textarea> {$setOption}
              </td>
            </tr>
HTMLCODE;
            break;
        case 'tn':
            //text input
            $output = <<<HTMLCODE
            <tr>
              <td width="25%" align="right" valign="middle" class="input-titleblue">{$setName}</td>
              <td width="4" align="left" valign="middle">&nbsp;</td>
              <td width="75%" align="left" valign="middle">
                <input name="{$setField}" type="text" size="5" class="textbox" value="{$setInfoResult[$setField]}" onKeyPress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false; "/> {$setOption}
              </td>
            </tr>
HTMLCODE;
            break;
        case 'f':
            //file input
            if ($setInfoResult[$setField] != "") {
                $show_images = "&nbsp;&nbsp;<a href='../attachments/{$setInfoResult[$setField]}' target='_blank'>{$strShow}</a>";
                $show_images .= "&nbsp;&nbsp;<a href='setting.php?delete={$setField}'>{$strDelete}</a>";
            } else {
                $show_images = "";
            }
            $output = <<<HTMLCODE
            <tr>
              <td width="25%" align="right" valign="middle" class="input-titleblue">{$setName}</td>
              <td width="4" align="left" valign="middle">&nbsp;</td>
              <td width="75%" align="left" valign="middle">
\t\t\t\t<input name="{$setField}" type="file" size="37" class="filebox" value=""/>
\t\t\t\t{$show_images}  {$setOption}
              </td>
            </tr>
HTMLCODE;
            break;
        case 'r':
            //radio button
            $arr_radio = "";
            $arrOption = explode("|", $setOption);
            for ($i = 0; $i < count($arrOption); $i++) {
                if (strpos($arrOption[$i], "=>")) {
                    list($r_name, $r_value) = explode("=>", $arrOption[$i]);
                    $checked = $setInfoResult[$setField] == $r_value ? " checked=\"checked\"" : "";
                    $arr_radio .= "<input type=\"radio\" name=\"{$setField}\" value=\"{$r_value}\"{$checked}> {$r_name} \n";
                } else {
                    $arr_radio .= $arrOption[$i];
                }
            }
            $output = <<<HTMLCODE
            <tr>
              <td width="25%" align="right" valign="middle" class="input-titleblue">{$setName}</td>
              <td width="4" align="left" valign="middle">&nbsp;</td>
              <td width="75%" align="left" valign="middle" style="padding-top:7px">{$arr_radio}</td>
            </tr>
HTMLCODE;
            break;
        case 'c':
            //check button
            $arr_check = "";
            $arrOption = explode("|", $setOption);
            for ($i = 0; $i < count($arrOption); $i++) {
                if (strpos($arrOption[$i], "=>")) {
                    list($r_name, $r_value) = explode("=>", $arrOption[$i]);
                    $checked = strpos(";{$setInfoResult[$setField]};", $r_value) > 0 ? " checked=\"checked\"" : "";
                    $arr_check .= "<input type=\"checkbox\" name=\"{$setField}[]\" value=\"{$r_value}\"{$checked}> {$r_name} \n";
                } else {
                    $arr_radio .= $arrOption[$i];
                }
            }
            $output = <<<HTMLCODE
            <tr>
              <td width="25%" align="right" valign="middle" class="input-titleblue">{$setName}</td>
              <td width="4" align="left" valign="middle">&nbsp;</td>
              <td width="75%" align="left" valign="middle" style="padding-top:7px">{$arr_check}</td>
            </tr>
HTMLCODE;
            break;
        case 'sel':
            //check button
            $arr_select = "";
            $arrOption = explode("|", $setOption);
            for ($i = 0; $i < count($arrOption); $i++) {
                if (strpos($arrOption[$i], "=>")) {
                    list($r_name, $r_value) = explode("=>", $arrOption[$i]);
                    if (strpos($r_name, ",") > 0) {
                        $arr_name = explode(",", $r_name);
                        $arr_value = explode(",", $r_value);
                        for ($j = 0; $j < count($arr_name); $j++) {
                            $selected = $setInfoResult[$setField] == $arr_value[$j] ? " selected" : "";
                            $arr_select .= "<option value='{$arr_value[$j]}' {$selected}>{$arr_name[$j]}</option> \n";
                        }
                    } else {
                        $selected = $setInfoResult[$setField] == $r_value ? " selected" : "";
                        $arr_select .= "<option value='{$r_value}' {$selected}>{$r_name}</option> \n";
                    }
                } else {
                    $arr_select .= $arrOption[$i];
                }
            }
            $output = <<<HTMLCODE
            <tr>
              <td width="25%" align="right" valign="middle" class="input-titleblue">{$setName}</td>
              <td width="4" align="left" valign="middle">&nbsp;</td>
              <td width="75%" align="left" valign="middle" style="padding-top:7px">
\t\t\t\t<select name="{$setField}" class="blogeditbox">
\t\t\t\t{$arr_select}
\t\t\t\t</select>
\t\t\t  </td>
            </tr>
HTMLCODE;
            break;
        case 'sec':
            //A separator
            $output = <<<HTMLCODE
            <tr>
              <td width="100%" colspan="3">
\t\t\t\t<div class="settitle"> {$setName} </div>\t
\t\t\t  </td>
            </tr>
HTMLCODE;
            break;
    }
    return $output;
}
コード例 #16
0
 if ($fa['password'] != "" && strpos(";" . $_SESSION['logpassword'], $fa['password']) < 1 && $_SESSION['rights'] != "admin") {
     $content = $strLogPasswordHelp;
 } else {
     $content = formatBlogContent($fa['logContent'], 1, $fa['id']);
     $author = !empty($memberscache[$fa['author']]) ? $memberscache[$fa['author']] : $fa['author'];
 }
 $body = $_POST['body'] . "\n";
 $body .= "---------------------------------------------------------------------------\n";
 $body .= "{$strSearchContent}\n";
 $body .= "---------------------------------------------------------------------------\n";
 $body .= "{$strSearchTitle}: " . $fa['logTitle'] . "\n";
 $body .= "{$strAuthor}: " . $author . "\n";
 $body .= "{$strLogDate}: " . format_time("Y-m-d H:i:s", $fa['postTime']) . "\n";
 $body .= "{$strLogRead}: " . $settingInfo['blogUrl'] . "index.php?load=read&id=" . $fa['id'] . "\n";
 $body .= "---------------------------------------------------------------------------\n";
 $body .= dencode($content);
 $body = str_replace("&nbsp;", " ", $body);
 $body = str_replace("<p>", "\n", $body);
 $body = str_replace("<br />", "\n", $body);
 $body = str_replace("<br>", "\n", $body);
 $body = str_replace("<br/>", "\n", $body);
 $body = strip_tags($body);
 //邮件发送
 $ActionMessage = "";
 foreach ($toemail as $value) {
     if (send_mail($value, $_POST['subject'], $body, $_POST['fromaddress']) == 1) {
         $ActionMessage .= "{$value} ... {$strLogsSendMailOK} <br>";
     } else {
         $ActionMessage .= "{$value} ... <font color=\"red\">{$strLogsSendMailBad}</font> <br>";
     }
 }
コード例 #17
0
    ?>
			</td>
		  </tr>
		  <tr id="<?php 
    echo "open{$i}";
    ?>
" style="DISPLAY:<?php 
    echo $visible;
    ?>
">
			<td colspan="7">
			  <table width="95%" align="right" border="0" cellspacing="0" cellpadding="0">
				<tr>
				  <td class="subcontent-td">
					<?php 
    echo strip_tags(dencode($fa['content']), "<br />");
    ?>
				  </td>
				</tr>
			  </table>
			</td>
		  </tr>
		  <?php 
}
//end while
?>
		</table>
	  </div>
	  <br>
	  <div class="bottombar-onebtn"></div>
	  <div class="searchtool">
コード例 #18
0
function main_module($mainname, $maintitle, $htmlcode)
{
    echo "<div id=\"Content_{$mainname}\" class=\"content-width\"> \n";
    echo dencode($htmlcode);
    echo "</div> \n";
}
コード例 #19
0
    //新增信息类别。
    $title = "{$strGuestBookReplyTitle}";
    $dataInfo = $DMC->fetchArray($DMC->query("select * from " . $DBPrefix . "guestbook where id='{$mark_id}'"));
    if ($dataInfo) {
        $reply_content = $dataInfo['author'] . " {$strSideBarGuestBook}:<br /><br />" . ubb($dataInfo['content']);
    } else {
        $reply_content = "";
    }
    include "comments_add.inc.php";
} else {
    if ($action == "edit" && $mark_id != "") {
        //编辑信息类别。
        $title = "{$strGuestBookBrowse} - {$strRecordID}: {$mark_id}";
        $dataInfo = $DMC->fetchArray($DMC->query("select * from " . $DBPrefix . "guestbook where id='{$mark_id}'"));
        if ($dataInfo) {
            $logContent = str_replace("<br />", "", dencode($dataInfo['content']));
            //原内容
            $dataInfo = $DMC->fetchArray($DMC->query("select * from " . $DBPrefix . "guestbook where id='" . $dataInfo['parent'] . "'"));
            if ($dataInfo) {
                $reply_content = $dataInfo['author'] . " {$strSideBarGuestBook}:<br /><br />" . ubb($dataInfo['content']);
            } else {
                $reply_content = "";
            }
            include "comments_add.inc.php";
        } else {
            $error_message = $strNoExits;
            include "error_web.php";
        }
    } else {
        //查找和浏览
        $title = "{$strGuestBookBrowse}";
コード例 #20
0
ファイル: logs.php プロジェクト: BGCX067/f2cont-svn-to-git
//编辑或新增链接
$showmode_url = "{$PHP_SELF}?order={$order}&page={$page}";
//展开/折叠链接
if ($action == "add") {
    //新增信息类别。
    $title = "{$strLogTitleAdd}";
    include "logs_add.inc.php";
} else {
    if ($action == "edit" && $mark_id != "") {
        //编辑信息类别。
        $title = "{$strLogTitleEdit} - {$strRecordID}: {$mark_id}";
        $dataInfo = $DMC->fetchArray($DMC->query("select * from " . $DBPrefix . "logs where id='{$mark_id}'"));
        if ($dataInfo) {
            $cateId = $dataInfo['cateId'];
            $oldCateId = $dataInfo['cateId'];
            $logTitle = dencode($dataInfo['logTitle']);
            $logContent = str_replace("&", "&amp;", $dataInfo['logContent']);
            $author = $dataInfo['author'];
            $quoteUrl = $dataInfo['quoteUrl'];
            $isComment = $dataInfo['isComment'];
            $isTrackback = $dataInfo['isTrackback'];
            $isTop = $dataInfo['isTop'];
            $weather = $dataInfo['weather'];
            $saveType = $dataInfo['saveType'];
            $tags = $dataInfo['tags'];
            $oldTags = $dataInfo['tags'];
            $edittype = $_REQUEST['edittype'];
            $addpassword = $dataInfo['password'];
            include "logs_add.inc.php";
        } else {
            $error_message = $strNoExits;
コード例 #21
0
function ShowBlogNews($mainname, $maintitle, $htmlcode)
{
    global $DBPrefix, $DMC, $settingInfo;
    ?>
<!--滚动的公告板-->
<div id="MainContent_<?php 
    echo $mainname;
    ?>
" class="content-width">
		<?php 
    $SQL = "select id,logTitle,DATE_FORMAT(FROM_UNIXTIME(postTime),'%Y-%m-%d') as DATE from " . $DBPrefix . "logs where isTopNews='1' and isComment='1' and isTrackback='1' and saveType='1' order by id desc";
    $result = $DMC->query($SQL);
    if ($DMC->numRows($result) > 0) {
        while ($aryDetail = $DMC->fetchArray($result)) {
            if ($settingInfo['rewrite'] == 0) {
                $gourl = "index.php?load=read&id=" . $aryDetail[id];
            }
            if ($settingInfo['rewrite'] == 1) {
                $gourl = "rewrite.php/read-" . $aryDetail[id] . ".html";
            }
            if ($settingInfo['rewrite'] == 2) {
                $gourl = "read-" . $aryDetail[id] . ".html";
            }
            $arrCode[] = "&nbsp;<font color=\"#999999\" style=\"font-weight:bold;\">[<font color=\"#acc414\">" . $aryDetail['DATE'] . "</font>]</font>&nbsp;<a href=\"" . $gourl . "\" target=\"_self\">" . $aryDetail[logTitle] . "</a>";
        }
    } elseif ($htmlcode != "") {
        $arrCode = explode("<br />", $htmlcode);
    }
    ?>

		<table width="100%" height="40" border="0" align="center" cellpadding="0" cellspacing="0" style="background:#f5f9f4;border:2px solid #eaeee8;font-size:12px;text-align:left;">
		<tr>
		<td width="36" align="center"><img src="plugins/BlogNews/callBoard.gif" alt="公告板" /></td>
		<td width="95%" align="right" >
		<div id="icefable1" valign="top">
			<TABLE style="COLOR:#000" height="40" cellSpacing="0" cellPadding="0" width="100%" border="0">
			<?php 
    foreach ($arrCode as $key => $value) {
        ?>
			<TR><TD align=left height=20>&nbsp;<?php 
        echo dencode(trim($value));
        ?>
</TD></TR>
			<?php 
    }
    ?>
			</TABLE>
		</div>

		<script language=javascript> 
			if (navigator.product != 'Gecko'){
				marqueesHeight=20//滚动的高度 
				delaytime = 140 //停留时间 
				scrollupRadio = 18 //每段显示中的文字向上滚动速度... 
				stopscroll=false; 
				document.getElementById('icefable1').scrollTop=0; 
				//设置层的属性 
				with(document.getElementById('icefable1')){  
					//宽度0 
					//style.width=330; 
					//高度为设定的滚动高度 
					style.height=40; 
					//溢出不显示.. 
					style.overflowX="visible"; 
					style.overflowY="hidden"; 
					//不允许换行.. 
					noWrap= false //true; 
					onmouseover=new Function("stopscroll_=true"); 
					onmouseout=new Function("stopscroll_=false"); 
				}

				//将层中的数据输出两次,由于限制了高度,所以不会显示出来; 
				document.getElementById('icefable1').innerHTML+=document.getElementById('icefable1').innerHTML+=document.getElementById('icefable1').innerHTML+=document.getElementById('icefable1').innerHTML+=document.getElementById('icefable1').innerHTML+=document.getElementById('icefable1').innerHTML; 
				function init_srolltext(){  
					document.getElementById('icefable1').scrollTop= 0; 
					setInterval("scrollUp()",scrollupRadio); //滚动速度...100 
				} 

				init_srolltext(); 
				preTop=0; currentTop=0; stoptime=0; 
				function scrollUp(){  
					if(stopscroll==true) return; 
					currentTop+=1; 
					if(currentTop==21){  
						stoptime+=1; 
						currentTop-=1; 
						if(stoptime==delaytime){  
							currentTop=0; 
							stoptime=0; 
						} 
					} else {     
						preTop=document.getElementById('icefable1').scrollTop; 
						document.getElementById('icefable1').scrollTop+=1; 
						if(preTop==document.getElementById('icefable1').scrollTop){  
							document.getElementById('icefable1').scrollTop=20
							document.getElementById('icefable1').scrollTop+=1; 
						} 
					} 
				} 
			}
		</script> 				
		</td>
		</tr>
		</table>
</div>
<?php 
}
コード例 #22
0
    ?>
                </td>
              </tr>
              <tr id="<?php 
    echo "open{$i}";
    ?>
" style="DISPLAY:<?php 
    echo $visible;
    ?>
">
                <td colspan="7">
                  <table width="95%" align="right" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="subcontent-td">
                        <?php 
    echo dencode($arr_parent[$i]['content']);
    ?>
                      </td>
                    </tr>
                  </table>
              </tr>
              </td>
              
              <?php 
}
//end while
?>
            </table>
          </div>
          <br>
          <div class="bottombar-onebtn"></div>
コード例 #23
0
ファイル: modules.php プロジェクト: BGCX067/f2cont-svn-to-git
    $title = "{$strModuleTitleAdd}";
    include "modules_add.inc.php";
} else {
    if ($action == "edit" && $mark_id != "") {
        //编辑信息类别。
        $title = "{$strModuleTitleEdit} - {$strRecordID}: {$mark_id}";
        $dataInfo = $DMC->fetchArray($DMC->query("select * from " . $DBPrefix . "modules where id='{$mark_id}'"));
        if ($dataInfo) {
            $name = dencode($dataInfo['name']);
            $modTitle = dencode($dataInfo['modTitle']);
            $disType = $dataInfo['disType'];
            $oldDisType = $dataInfo['disType'];
            $isHidden = $dataInfo['isHidden'];
            $indexOnly = $dataInfo['indexOnly'];
            $orderNo = $dataInfo['orderNo'];
            $htmlCode = str_replace("<br />", "", dencode($dataInfo['htmlCode']));
            $pluginPath = $dataInfo['pluginPath'];
            $isInstall = $dataInfo['isInstall'];
            include "modules_add.inc.php";
        } else {
            $error_message = $strNoExits;
            include "error_web.php";
        }
    } else {
        if ($action == "order") {
            //调整类别顺序
            $title = "{$strCategoryExchage}";
            $arr_parent = $DMC->fetchQueryAll($DMC->query("select * from " . $DBPrefix . "modules where disType='{$mark_id}' and isHidden=0 order by orderNo"));
            if ($arr_parent) {
                include "modules_order.inc.php";
            } else {
コード例 #24
0
ファイル: editor.php プロジェクト: BGCX067/f2cont-svn-to-git
    }
    if (strpos($logContent, "<!--more-->") > 0) {
        $logContent = str_replace("<!--more-->", "[more]", $logContent);
    }
    if (strpos($logContent, "<!--nextpage-->") > 0) {
        $logContent = str_replace("<!--nextpage-->", "[nextpage]", $logContent);
    }
    if (strpos(";" . $logContent, "<") > 0) {
        $allowhtml = 1;
        $logContent = nl2br($logContent);
        $logContent = str_replace("<br />", "<br />\n", $logContent);
        $logContent = str_replace("&", "&amp;", $logContent);
    } else {
        $allowhtml = 0;
        $logContent = str_replace(chr(13), "", $logContent);
        $logContent = dencode($logContent);
    }
}
$editor_language_font = "字体";
$editor_language_color = "颜色";
$editor_language_fontsize = "字号";
$editor_language_bold = "粗体";
$editor_language_italicize = "斜体";
$editor_language_underline = "下划线";
$editor_language_center = "居中";
$editor_language_rming = "插入rm电影文件";
$editor_language_wmv = "插入wmv电影文件";
$editor_language_image = "插入图片";
$editor_language_setswf = "插入 Flash 动画";
$editor_language_showurl = "插入url链接";
$editor_language_showcode = "插入代码";
コード例 #25
0
            ?>
" id="item" name="itemlist[]"  onclick="Javascript:this.form.opselect.value=1">
                        </td>
                        <td nowrap align="center" class="subcontent-td">
                          <?php 
            echo $imgHidden;
            ?>
                        </td>
                        <td nowrap align="center" class="subcontent-td">
                          <?php 
            echo format_time("L", $fa['postTime']);
            ?>
                        </td>
                        <td class="subcontent-td">
                          <?php 
            echo dencode($fa['content']);
            ?>
                        </td>
                        <td nowrap class="subcontent-td">
                          <?php 
            echo $fa['author'];
            ?>
                        </td>
                        <td align="center" nowrap class="subcontent-td">
                          <?php 
            echo $fa['ip'];
            ?>
                        </td>
                      </tr>
                      <?php 
        }
コード例 #26
0
         $content = formatBlogContent($fa['logContent'], 1, $fa['id']);
         $author = $memberscache[$fa['author']] != "" ? $memberscache[$fa['author']] : $fa['author'];
     }
     $body = "{$strSearchTitle}: " . $fa['logTitle'] . "\n";
     $body .= "{$strAuthor}: " . $author . "\n";
     $body .= "{$strLogDate}: " . format_time("Y-m-d H:i:s", $fa['postTime']) . "\n";
     $body .= "{$strLogRead}: " . $settingInfo['blogUrl'] . "index.php?load=read&id=" . $fa['id'] . "\n";
     $body .= "---------------------------------------------------------------------------\n";
     $body .= dencode($content);
     $body = str_replace("&nbsp;", " ", $body);
     $body = str_replace("<p>", "\n", $body);
     $body = str_replace("<br />", "\n", $body);
     $body = str_replace("<br>", "\n", $body);
     $body = str_replace("<br/>", "\n", $body);
     $body = strip_tags($body);
     $filename = strip_tags(dencode($fa['logTitle']));
     /*if (function_exists('mb_convert_encoding'))	{
     			$filename=mb_convert_encoding($filename,'GBK','UTF-8');
     		}elseif (function_exists('iconv')) {
     			$filename=iconv('UTF-8','GBK',$filename);
     		}else{
     			$filename=$id;
     		}*/
     $filename = strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') > 0 ? urlencode($filename) : $filename;
     header("Content-type: application/zip");
     header("Content-disposition: attachment; filename={$filename}.doc");
     echo $body;
     exit;
 } else {
     echo "<script language=\"Javascript\"> \n";
     echo "alert(\"{$strErrorNoExistsLog}\");\n";
コード例 #27
0
ファイル: header.php プロジェクト: BGCX067/f2cont-svn-to-git
echo "attachments/" . $settingInfo['favicon'];
?>
" type="image/x-icon" />
<script type="text/javascript" src="include/common.js.php"></script>
<?php 
if (!empty($settingInfo['showAlertStyle'])) {
    ?>
<script type="text/javascript" src="editor/ubb/nicetitle.js"></script><?php 
}
if ($settingInfo['ajaxstatus'] != "") {
    ?>
<script type="text/javascript" src="include/f2blog_ajax.js"></script><?php 
}
do_action("f2_head");
if ($settingInfo['headcode'] != "") {
    echo str_replace("<br />", "", dencode($settingInfo['headcode']));
}
?>
</head>
<body>

<?php 
//装载在线人员
include_once F2BLOG_ROOT . "./cache/cache_online.php";
// 增加访问量
$curDate = gmdate('Y-m-d', time() + 3600 * $settingInfo['timezone']);
$userBrowse = $_SERVER['HTTP_USER_AGENT'];
$realip = getip();
if (!preg_match("/http/i", $userBrowse) && $realip != "") {
    $onlines = "\$onlinecache = array(\r\n";
    $onlineIP = "\t'ip' => array(";
コード例 #28
0
ファイル: header.php プロジェクト: BGCX067/f2cont-svn-to-git
    <div id="menu">
      <div id="Left"></div>
      <div id="Right"></div>
      <ul>
		<li class="menuL"></li>
		<?php 
//读取顶部栏
for ($i = 0; $i < count($arrTopModule); $i++) {
    $topid = $arrTopModule[$i]['id'];
    $topname = $arrTopModule[$i]['name'];
    $toptitle = replace_string($arrTopModule[$i]['modTitle']);
    $htmlcode = $arrTopModule[$i]['htmlCode'];
    $pluginPath = $arrTopModule[$i]['pluginPath'];
    $installDate = $arrTopModule[$i]['installDate'];
    if ($pluginPath == "#") {
        echo "<li><a class=\"menuA\" id=\"{$topname}\" title=\"{$toptitle}\">{$toptitle}</a>" . str_replace("&quot;", "\"", dencode($htmlcode)) . "</li> \n";
    } else {
        if (strpos($pluginPath, ".inc.php") > 0 || strpos($pluginPath, ".big.php") > 0) {
            echo "<li><a class=\"menuA\" id=\"{$topname}\" title=\"{$toptitle}\" href=\"index.php?load={$topname}\">{$toptitle}</a></li> \n";
        } else {
            if ($installDate > 0) {
                //表示为插件
                do_filter($topname, $topname, $toptitle);
            } else {
                echo "<li><a class=\"menuA\" id=\"{$topname}\" title=\"{$toptitle}\" href=\"{$pluginPath}\">{$toptitle}</a></li> \n";
            }
        }
    }
}
?>
        
コード例 #29
0
ファイル: index.php プロジェクト: BGCX067/f2cont-svn-to-git
$query_sql = "select id,logTitle,postTime,commNums,viewNums from " . $DBPrefix . "logs where saveType=1 order by postTime desc";
$query_result = $DMC->query($query_sql);
$arr_array = $DMC->fetchQueryAll($query_result);
$lastmonth = "";
foreach ($arr_array as $key => $article) {
    list($year, $month, $day) = explode(",", format_time("Y,m,d", $article['postTime']));
    $currmonth = "{$year} {$strYear} {$month} {$strMonth}";
    if ($lastmonth != $currmonth && $key == 0) {
        echo "<h4>{$currmonth}</h4><ul>\n";
        $lastmonth = $currmonth;
    }
    if ($lastmonth != $currmonth && $key > 0) {
        echo "</ul><h4>{$currmonth}</h4><ul>\n";
        $lastmonth = $currmonth;
    }
    echo "<li>{$month}/{$day} : <a href=\"" . $readlogs_url . $article['id'] . $settingInfo['stype'] . "\">" . dencode($article['logTitle']) . "</a>  <span class=\"comminfo\">({$strLogRead}:{$article['viewNums']} {$strLogComm}:{$article['commNums']})</span></li> \n";
}
?>
  </div>
  <!--底部-->
  <hr />
  <div id="foot">
    <p> <strong><a href="mailto:<?php 
echo $settingInfo['email'];
?>
">
      <?php 
echo $settingInfo['master'];
?>
      </a></strong> 's blog
      Powered By <a href="http://www.f2blog.com" target="_blank"><strong>F2blog v
コード例 #30
0
ファイル: modules.php プロジェクト: BGCX067/f2cont-svn-to-git
    }
    if (!isset($indexOnly3)) {
        $indexOnly3 = 0;
    }
    if (!isset($cateId)) {
        $cateId = 0;
    }
    include "modules_add.inc.php";
} else {
    if ($action == "edit" && $mark_id != "") {
        //编辑信息类别。
        $title = "{$strModuleTitleEdit} - {$strRecordID}: {$mark_id}";
        $dataInfo = $DMC->fetchArray($DMC->query("select * from " . $DBPrefix . "modules where id='{$mark_id}'"));
        if ($dataInfo) {
            $name = dencode($dataInfo['name']);
            $modTitle = dencode($dataInfo['modTitle']);
            $disType = $dataInfo['disType'];
            $oldDisType = $dataInfo['disType'];
            $isHidden = $dataInfo['isHidden'];
            $indexOnly = $dataInfo['indexOnly'];
            $orderNo = $dataInfo['orderNo'];
            $htmlCode = $dataInfo['htmlCode'];
            $pluginPath = $dataInfo['pluginPath'];
            $isInstall = $dataInfo['isInstall'];
            $installFolder = $dataInfo['installFolder'];
            $cateId = $dataInfo['cateId'];
            $indexOnly2 = $indexOnly;
            $indexOnly3 = $indexOnly;
            $htmlCode = str_replace("&lt;", "<", $htmlCode);
            $htmlCode = str_replace("&gt;", ">", $htmlCode);
            $htmlCode = str_replace("&#39;", "'", $htmlCode);