@@ -40,7 +40,7 @@ | |||||
<div class="top_link"> | <div class="top_link"> | ||||
<ul> | <ul> | ||||
<li class="welcome"> | <li class="welcome"> | ||||
<a target="main" href="sys_admin_user_edit.php?id=<?php echo $cuserLogin->getUserID(); ?>&dopost=edit"><img src="/static/img/avatar.png" title="<?php echo $cuserLogin->getUserName(); ?>"><?php echo $cuserLogin->getUserName(); ?></a> | |||||
<a target="main" href="sys_admin_user_edit.php?id=<?php echo $cuserLogin->getUserID(); ?>&dopost=edit"><img src="../static/img/avatar.png" title="<?php echo $cuserLogin->getUserName(); ?>"><?php echo $cuserLogin->getUserName(); ?></a> | |||||
<a href="exit.php">退出</a> | <a href="exit.php">退出</a> | ||||
</li> | </li> | ||||
<?php | <?php | ||||
@@ -97,7 +97,7 @@ | |||||
</div> | </div> | ||||
<div class="mb-3"> | <div class="mb-3"> | ||||
<label for="cmspath" class="form-label">安装目录</label> | <label for="cmspath" class="form-label">安装目录</label> | ||||
<input name="cmspath" type="text" class="form-control" id="cmspath" placeholder="<?php echo $basepath; ?>"> | |||||
<input name="cmspath" type="text" class="form-control" id="cmspath" value="<?php echo $basepath; ?>" placeholder="<?php echo $basepath; ?>"> | |||||
<div class="form-text text-danger">在根目录安装时不必理会</div> | <div class="form-text text-danger">在根目录安装时不必理会</div> | ||||
</div> | </div> | ||||
<button type="submit" class="btn btn-success">立即安装</button> | <button type="submit" class="btn btn-success">立即安装</button> | ||||
@@ -146,25 +146,7 @@ function SpGetEditor($fname, $fvalue, $nheight = "350", $etype = "Basic", $gtype | |||||
if ($gtype == "") { | if ($gtype == "") { | ||||
$gtype = "print"; | $gtype = "print"; | ||||
} | } | ||||
if ($GLOBALS['cfg_html_editor'] == 'fck') { | |||||
require_once(DEDEINC.'/FCKeditor/fckeditor.php'); | |||||
$fck = new FCKeditor($fname); | |||||
$fck->BasePath = $GLOBALS['cfg_cmspath'].'/include/FCKeditor/'; | |||||
$fck->Width = '100%'; | |||||
$fck->Height = $nheight; | |||||
$fck->ToolbarSet = $etype; | |||||
$fck->Config['FullPage'] = $isfullpage; | |||||
if ($GLOBALS['cfg_fck_xhtml'] == 'Y') { | |||||
$fck->Config['EnableXHTML'] = 'true'; | |||||
$fck->Config['EnableSourceXHTML'] = 'true'; | |||||
} | |||||
$fck->Value = $fvalue; | |||||
if ($gtype == "print") { | |||||
$fck->Create(); | |||||
} else { | |||||
return $fck->CreateHtml(); | |||||
} | |||||
} else if ($GLOBALS['cfg_html_editor'] == 'ckeditor') { | |||||
if ($GLOBALS['cfg_html_editor'] == 'ckeditor') { | |||||
$addConfig = ""; | $addConfig = ""; | ||||
if (defined("DEDEADMIN")) { | if (defined("DEDEADMIN")) { | ||||
$addConfig = ",{allowedContent:true,filebrowserImageUploadUrl:'./dialog/select_images_post.php',filebrowserUploadUrl:'./dialog/select_media_post.php?ck=1',extraPlugins:'html5video,dedepagebreak,ddfilebrowser,mimage,textindent'}"; | $addConfig = ",{allowedContent:true,filebrowserImageUploadUrl:'./dialog/select_images_post.php',filebrowserUploadUrl:'./dialog/select_media_post.php?ck=1',extraPlugins:'html5video,dedepagebreak,ddfilebrowser,mimage,textindent'}"; | ||||