dede/article_select_sw.php
(完整代码) 1KB<?php
/**
* @version $Id: article_select_sw.php 1 8:26 2010年7月12日Z tianya $
* @package DedeCMS.Administrator
* @copyright Copyright (c) 2007 - 2010, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require(dirname(__FILE__)."/config.php");
header("Pragma:no-cache");
header("Cache-Control:no-cache");
header("Expires:0");
//来源列表
if($t=='source')
{
$m_file = DEDEDATA."/admin/source.txt";
$allsources = file($m_file);
echo "<div class='coolbg4'>[<a href=\"javascript:OpenMyWin('article_source_edit.php');ClearDivCt('mysource');\">设置</a>] ";
echo "[<a href='#' onclick='javascript:HideObj(\"mysource\");ChangeFullDiv(\"hide\");'>关闭</a>]</div>\r\n<div class='wsselect'>\r\n";
foreach($allsources as $v)
{
$v = trim($v);
if($v!="")
{
echo "<a href='#' onclick='javascript:PutSource(\"$v\")'>$v</a> | \r\n";
}
}
echo "</div><div class='coolbg5'> </div>";
}
else
{
//作者列表
$m_file = DEDEDATA."/admin/writer.txt";
echo "<div class='coolbg4'>[<a href=\"javascript:OpenMyWin('article_writer_edit.php');ClearDivCt('mywriter');\">设置</a>] ";
echo "[<a href='#' onclick='javascript:HideObj(\"mywriter\");ChangeFullDiv(\"hide\");'>关闭</a>]</div>\r\n<div class='wsselect'>\r\n";
if(filesize($m_file)>0)
{
$fp = fopen($m_file,'r');
$str = fread($fp,filesize($m_file));
fclose($fp);
$strs = explode(',',$str);
foreach($strs as $str)
{
$str = trim($str);
if($str!="")
{
echo "<a href='#' onclick='javascript:PutWriter(\"$str\")'>$str</a> | ";
}
}
}
echo "</div><div class='coolbg5'> </div>\r\n";
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
