getUserID() . '.txt';
if (!file_exists($myIcoFile)) $myIcoFile = $defaultIcoFile;
//默认主页
if (empty($dopost)) {
require(DEDEINC . '/inc/inc_fun_funAdmin.php');
$verLockFile = DEDEDATA . '/admin/ver.txt';
$fp = fopen($verLockFile, 'r');
$upTime = trim(fread($fp, 64));
fclose($fp);
$oktime = substr($upTime, 0, 4) . '-' . substr($upTime, 4, 2) . '-' . substr($upTime, 6, 2);
$offUrl = SpGetNewInfo();
$dedecmsidc = DEDEDATA . '/admin/idc.txt';
$fp = fopen($dedecmsidc, 'r');
$dedeIDC = fread($fp, filesize($dedecmsidc));
fclose($fp);
include DedeInclude('templets/index_body.htm');
exit();
}
/*-----------------------
增加新项
function _AddNew() { }
-------------------------*/
else if ($dopost == 'addnew') {
if (empty($link) || empty($title)) {
ShowMsg("链接网址或标题不能为空!", "-1");
exit();
}
$fp = fopen($myIcoFile, 'r');
$oldct = trim(fread($fp, filesize($myIcoFile)));
fclose($fp);
$link = preg_replace("#['\"]#", '`', $link);
$title = preg_replace("#['\"]#", '`', $title);
$ico = preg_replace("#['\"]#", '`', $ico);
$oldct .= "\r\n";
$myIcoFileTrue = DEDEDATA . '/admin/quickmenu-' . $cuserLogin->getUserID() . '.txt';
$fp = fopen($myIcoFileTrue, 'w');
fwrite($fp, $oldct);
fclose($fp);
ShowMsg("成功增加一个项目!", "index_body.php?" . time());
exit();
}
/*---------------------------
保存修改的项
function _EditSave() { }
----------------------------*/
else if ($dopost == 'editsave') {
$quickmenu = stripslashes($quickmenu);
$myIcoFileTrue = DEDEDATA . '/admin/quickmenu-' . $cuserLogin->getUserID() . '.txt';
$fp = fopen($myIcoFileTrue, 'w');
fwrite($fp, $quickmenu);
fclose($fp);
ShowMsg("成功修改快捷操作项目!", "index_body.php?" . time());
exit();
}
/*---------------------------
保存修改的项
function _EditSave() { }
----------------------------*/
else if ($dopost == 'movesave') {
$movedata = str_replace('\\', "", $sortorder);
$movedata = json_decode($movedata, TRUE);
$movedata = serialize($movedata);
$myIcoFileTrue = DEDEDATA . '/admin/move-' . $cuserLogin->getUserID() . '.txt';
$fp = fopen($myIcoFileTrue, 'w');
fwrite($fp, $movedata);
fclose($fp);
}
/*-----------------------------
显示修改表单
function _EditShow() { }
-----------------------------*/
else if ($dopost == 'editshow') {
$fp = fopen($myIcoFile, 'r');
$oldct = trim(fread($fp, filesize($myIcoFile)));
fclose($fp);
?>
GetOne($query);
$query = " SELECT COUNT(*) AS dd FROM `#@__feedback` ";
$row2 = $dsql->GetOne($query);
$chArrNames = array();
$query = "SELECT id, typename FROM `#@__channeltype` ";
$dsql->Execute('c', $query);
while ($row = $dsql->GetArray('c')) {
$chArrNames[$row['id']] = $row['typename'];
}
$query = "SELECT COUNT(channel) AS dd, channel FROM `#@__arctiny` GROUP BY channel ";
$allArc = 0;
$chArr = array();
$dsql->Execute('a', $query);
while ($row = $dsql->GetArray('a')) {
$allArc += $row['dd'];
$row['typename'] = $chArrNames[$row['channel']];
$chArr[] = $row;
}
?>
-2 ORDER BY arc.id DESC LIMIT 0, 6 ";
$arcArr = array();
$dsql->Execute('m', $query);
while ($row = $dsql->GetArray('m')) {
$arcArr[] = $row;
}
AjaxHead();
?>
{$row['title']}";
if ($row['arcrank'] == -1) $linkstr .= "(未审核)";
?>
|
appid = "1008665";
$client->key = "I04NcaYUCmRukRDE";
$rs = $client->SystemInfo();
if ($rs->code === 200) {
echo $rs->data;
exit;
}
$client->Close();
}
?>