@@ -21,7 +21,7 @@ if ($dopost == 'save') { | |||||
flock($fp, 3); | flock($fp, 3); | ||||
fwrite($fp, $allurls); | fwrite($fp, $allurls); | ||||
fclose($fp); | fclose($fp); | ||||
echo "<script>alert('Save OK!');</script>"; | |||||
echo "<script>alert('已保存');</script>"; | |||||
} | } | ||||
//读出 | //读出 | ||||
if (empty($allurls) && filesize($m_file) > 0) { | if (empty($allurls) && filesize($m_file) > 0) { | ||||
@@ -29,8 +29,7 @@ if (empty($allurls) && filesize($m_file) > 0) { | |||||
$allurls = fread($fp, filesize($m_file)); | $allurls = fread($fp, filesize($m_file)); | ||||
fclose($fp); | fclose($fp); | ||||
} | } | ||||
$wintitle = ""; | |||||
$wecome_info = "允许的超链接"; | |||||
$wecome_info = "允许站内链接"; | |||||
$win = new OxWindow(); | $win = new OxWindow(); | ||||
$win->Init('article_allowurl_edit.php', 'js/blank.js', 'POST'); | $win->Init('article_allowurl_edit.php', 'js/blank.js', 'POST'); | ||||
$win->AddHidden('dopost', 'save'); | $win->AddHidden('dopost', 'save'); | ||||
@@ -21,7 +21,7 @@ if ($dopost == 'save') { | |||||
flock($fp, 3); | flock($fp, 3); | ||||
fwrite($fp, $allsource); | fwrite($fp, $allsource); | ||||
fclose($fp); | fclose($fp); | ||||
echo "<script>alert('Save OK!');</script>"; | |||||
echo "<script>alert('已保存');</script>"; | |||||
} | } | ||||
//读出 | //读出 | ||||
if (empty($allsource) && filesize($m_file) > 0) { | if (empty($allsource) && filesize($m_file) > 0) { | ||||
@@ -29,12 +29,11 @@ if (empty($allsource) && filesize($m_file) > 0) { | |||||
$allsource = fread($fp, filesize($m_file)); | $allsource = fread($fp, filesize($m_file)); | ||||
fclose($fp); | fclose($fp); | ||||
} | } | ||||
$wintitle = "文档来源管理"; | |||||
$wecome_info = "文档来源管理"; | $wecome_info = "文档来源管理"; | ||||
$win = new OxWindow(); | $win = new OxWindow(); | ||||
$win->Init('article_source_edit.php', 'js/blank.js', 'POST'); | $win->Init('article_source_edit.php', 'js/blank.js', 'POST'); | ||||
$win->AddHidden('dopost', 'save'); | $win->AddHidden('dopost', 'save'); | ||||
$win->AddTitle("每行保存一个来源"); | |||||
$win->AddTitle("一行填写一个地址"); | |||||
$win->AddMsgItem("<tr><td><textarea name='allsource' id='allsource' class='admin-textarea-xl'>$allsource</textarea></td></tr>"); | $win->AddMsgItem("<tr><td><textarea name='allsource' id='allsource' class='admin-textarea-xl'>$allsource</textarea></td></tr>"); | ||||
$winform = $win->GetWindow('ok'); | $winform = $win->GetWindow('ok'); | ||||
$win->Display(); | $win->Display(); |
@@ -22,7 +22,7 @@ if ($dopost == "save") { | |||||
flock($fp, 3); | flock($fp, 3); | ||||
fwrite($fp, $allsource); | fwrite($fp, $allsource); | ||||
fclose($fp); | fclose($fp); | ||||
echo "<script>alert('Save OK!');</script>"; | |||||
echo "<script>alert('已保存');</script>"; | |||||
} | } | ||||
//读出 | //读出 | ||||
if (empty($allsource) && filesize($m_file) > 0) { | if (empty($allsource) && filesize($m_file) > 0) { | ||||
@@ -31,7 +31,6 @@ if (empty($allsource) && filesize($m_file) > 0) { | |||||
fclose($fp); | fclose($fp); | ||||
} | } | ||||
make_hash(); | make_hash(); | ||||
$wintitle = "防采集工具"; | |||||
$wecome_info = "防采集工具"; | $wecome_info = "防采集工具"; | ||||
$win = new OxWindow(); | $win = new OxWindow(); | ||||
$win->Init('article_string_mix.php', 'js/blank.js', 'POST'); | $win->Init('article_string_mix.php', 'js/blank.js', 'POST'); | ||||
@@ -21,7 +21,7 @@ if ($dopost == "save") { | |||||
flock($fp, 3); | flock($fp, 3); | ||||
fwrite($fp, $allwriter); | fwrite($fp, $allwriter); | ||||
fclose($fp); | fclose($fp); | ||||
echo "<script>alert('保存成功');</script>"; | |||||
echo "<script>alert('已保存');</script>"; | |||||
} | } | ||||
//读出 | //读出 | ||||
if (empty($allwriter) && filesize($m_file) > 0) { | if (empty($allwriter) && filesize($m_file) > 0) { | ||||
@@ -29,7 +29,6 @@ if (empty($allwriter) && filesize($m_file) > 0) { | |||||
$allwriter = fread($fp, filesize($m_file)); | $allwriter = fread($fp, filesize($m_file)); | ||||
fclose($fp); | fclose($fp); | ||||
} | } | ||||
$wintitle = "文档作者管理"; | |||||
$wecome_info = "文档作者管理"; | $wecome_info = "文档作者管理"; | ||||
$win = new OxWindow(); | $win = new OxWindow(); | ||||
$win->Init('article_writer_edit.php', 'js/blank.js', 'POST'); | $win->Init('article_writer_edit.php', 'js/blank.js', 'POST'); | ||||
@@ -22,7 +22,7 @@ | |||||
<script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<form name="form1" action="album_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmitAlb();"> | |||||
<form name="form1" action="album_add.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmitAlb();"> | |||||
<input type="hidden" name="channelid" value="<?php echo $channelid?>"> | <input type="hidden" name="channelid" value="<?php echo $channelid?>"> | ||||
<input type="hidden" name="cid" value="<?php echo $cid;?>"> | <input type="hidden" name="cid" value="<?php echo $cid;?>"> | ||||
<input type="hidden" name="imagebody" value=""> | <input type="hidden" name="imagebody" value=""> | ||||
@@ -22,7 +22,7 @@ | |||||
<script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<form name="form1" action="album_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmitAlb();"> | |||||
<form name="form1" action="album_edit.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmitAlb();"> | |||||
<input type="hidden" name="channelid" value="<?php echo $channelid?>"> | <input type="hidden" name="channelid" value="<?php echo $channelid?>"> | ||||
<input type="hidden" name="id" value="<?php echo $aid?>"> | <input type="hidden" name="id" value="<?php echo $aid?>"> | ||||
<input type="hidden" name="imagebody" value=""> | <input type="hidden" name="imagebody" value=""> | ||||
@@ -19,7 +19,7 @@ | |||||
<script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<form name="form1" action="archives_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit()"> | |||||
<form name="form1" action="archives_add.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit()"> | |||||
<input type="hidden" name="channelid" value="<?php echo $channelid?>"> | <input type="hidden" name="channelid" value="<?php echo $channelid?>"> | ||||
<input type="hidden" name="cid" value="<?php echo $cid?>"> | <input type="hidden" name="cid" value="<?php echo $cid?>"> | ||||
<input type="hidden" name="dopost" value="save"> | <input type="hidden" name="dopost" value="save"> | ||||
@@ -19,7 +19,7 @@ | |||||
<script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<form name="form1" action="archives_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | |||||
<form name="form1" action="archives_edit.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();"> | |||||
<input type="hidden" name="channelid" value="<?php echo $channelid?>"> | <input type="hidden" name="channelid" value="<?php echo $channelid?>"> | ||||
<input type="hidden" name="id" value="<?php echo $aid?>"> | <input type="hidden" name="id" value="<?php echo $aid?>"> | ||||
<input type="hidden" name="dopost" value="save"> | <input type="hidden" name="dopost" value="save"> | ||||
@@ -19,7 +19,7 @@ | |||||
<script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<form name="form1" action="archives_sg_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit()"> | |||||
<form name="form1" action="archives_sg_add.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit()"> | |||||
<input type="hidden" name="channelid" value="<?php echo $channelid?>"> | <input type="hidden" name="channelid" value="<?php echo $channelid?>"> | ||||
<input type="hidden" name="cid" value="<?php echo $cid?>"> | <input type="hidden" name="cid" value="<?php echo $cid?>"> | ||||
<input type="hidden" name="dopost" value="save"> | <input type="hidden" name="dopost" value="save"> | ||||
@@ -19,7 +19,7 @@ | |||||
<script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<form name="form1" action="archives_sg_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | |||||
<form name="form1" action="archives_sg_edit.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();"> | |||||
<input type="hidden" name="channelid" value="<?php echo $channelid;?>"> | <input type="hidden" name="channelid" value="<?php echo $channelid;?>"> | ||||
<input type="hidden" name="id" value="<?php echo $aid;?>"> | <input type="hidden" name="id" value="<?php echo $aid;?>"> | ||||
<input type="hidden" name="sortrank" value="<?php echo $addRow['senddate'];?>"> | <input type="hidden" name="sortrank" value="<?php echo $addRow['senddate'];?>"> | ||||
@@ -20,7 +20,7 @@ | |||||
<script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<form name="form1" action="article_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit()"> | |||||
<form name="form1" action="article_add.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit()"> | |||||
<input type="hidden" name="channelid" value="<?php echo $channelid?>"> | <input type="hidden" name="channelid" value="<?php echo $channelid?>"> | ||||
<input type="hidden" name="dopost" value="save"> | <input type="hidden" name="dopost" value="save"> | ||||
<table width="98%" align="center" id="needset" class="admin-border my-3"> | <table width="98%" align="center" id="needset" class="admin-border my-3"> | ||||
@@ -20,7 +20,7 @@ | |||||
<script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<form name="form1" action="article_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | |||||
<form name="form1" action="article_edit.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();"> | |||||
<input type="hidden" name="dopost" value="save"> | <input type="hidden" name="dopost" value="save"> | ||||
<input type="hidden" name="channelid" value="<?php echo $channelid?>"> | <input type="hidden" name="channelid" value="<?php echo $channelid?>"> | ||||
<input type="hidden" name="id" value="<?php echo $aid?>"> | <input type="hidden" name="id" value="<?php echo $aid?>"> | ||||
@@ -18,7 +18,7 @@ | |||||
<script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<form action="freelist_edit.php" method="post" name="form1" onSubmit="return CheckSubmit();"> | |||||
<form name="form1" action="freelist_edit.php" method="post" onSubmit="return CheckSubmit();"> | |||||
<input type="hidden" name="dopost" value="save"> | <input type="hidden" name="dopost" value="save"> | ||||
<input type="hidden" name="aid" value="<?php echo $row['aid']?>"> | <input type="hidden" name="aid" value="<?php echo $row['aid']?>"> | ||||
<table align="center" class="table maintable my-3"> | <table align="center" class="table maintable my-3"> | ||||
@@ -12,7 +12,7 @@ | |||||
<script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<form action="friendlink_add.php" method="post" enctype="multipart/form-data" name="form1" onSubmit="return CheckSubmit();"> | |||||
<form name="form1" action="friendlink_add.php" method="post" enctype="multipart/form-data" onSubmit="return CheckSubmit();"> | |||||
<input type="hidden" name="dopost" value="add"> | <input type="hidden" name="dopost" value="add"> | ||||
<table align="center" class="table maintable my-3"> | <table align="center" class="table maintable my-3"> | ||||
<tr> | <tr> | ||||
@@ -12,7 +12,7 @@ | |||||
<script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<form enctype="multipart/form-data" name="form1" action="media_add.php" method="POST" onSubmit="return CheckSubmit();"> | |||||
<form name="form1" action="media_add.php" method="post" enctype="multipart/form-data" onSubmit="return CheckSubmit();"> | |||||
<input type="hidden" name="dopost" value="upload"> | <input type="hidden" name="dopost" value="upload"> | ||||
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>"> | <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>"> | ||||
<table align="center" class="table maintable my-3"> | <table align="center" class="table maintable my-3"> | ||||
@@ -12,7 +12,7 @@ | |||||
<script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<form enctype="multipart/form-data" name="form1" action="media_edit.php" method="POST" onSubmit="return CheckSubmit();"> | |||||
<form name="form1" action="media_edit.php" method="post" enctype="multipart/form-data" onSubmit="return CheckSubmit();"> | |||||
<input type="hidden" name="dopost" value="save"> | <input type="hidden" name="dopost" value="save"> | ||||
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>"> | <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>"> | ||||
<input type="hidden" name="aid" value="<?php echo $aid?>"> | <input type="hidden" name="aid" value="<?php echo $aid?>"> | ||||
@@ -19,7 +19,7 @@ | |||||
<script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<form name="form1" action="soft_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | |||||
<form name="form1" action="soft_add.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();"> | |||||
<input type="hidden" name="dopost" value="save"> | <input type="hidden" name="dopost" value="save"> | ||||
<input type="hidden" name="channelid" value="<?php echo $channelid?>"> | <input type="hidden" name="channelid" value="<?php echo $channelid?>"> | ||||
<input type="hidden" name="cid" value="<?php echo $cid;?>"> | <input type="hidden" name="cid" value="<?php echo $cid;?>"> | ||||
@@ -19,7 +19,7 @@ | |||||
<script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<form name="form1" action="soft_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | |||||
<form name="form1" action="soft_edit.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();"> | |||||
<input type="hidden" name="dopost" value="save"> | <input type="hidden" name="dopost" value="save"> | ||||
<input type="hidden" name="channelid" value="<?php echo $channelid?>"> | <input type="hidden" name="channelid" value="<?php echo $channelid?>"> | ||||
<input type="hidden" name="id" value="<?php echo $aid?>"> | <input type="hidden" name="id" value="<?php echo $aid?>"> | ||||
@@ -19,7 +19,7 @@ | |||||
<script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<form name="form1" action="spec_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | |||||
<form name="form1" action="spec_add.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();"> | |||||
<input type="hidden" name="dopost" value="save"> | <input type="hidden" name="dopost" value="save"> | ||||
<input type="hidden" name="channelid" value="<?php echo $channelid?>"> | <input type="hidden" name="channelid" value="<?php echo $channelid?>"> | ||||
<input type="hidden" name="arcrank" value="0"> | <input type="hidden" name="arcrank" value="0"> | ||||
@@ -19,7 +19,7 @@ | |||||
<script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<form name="form1" action="spec_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | |||||
<form name="form1" action="spec_edit.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();"> | |||||
<input type="hidden" name="id" value="<?php echo $arcRow['id']?>"> | <input type="hidden" name="id" value="<?php echo $arcRow['id']?>"> | ||||
<input type="hidden" name="channelid" value="<?php echo $channelid?>"> | <input type="hidden" name="channelid" value="<?php echo $channelid?>"> | ||||
<input type="hidden" name="arcrank" value="<?php echo $arcRow['arcrank']?>"> | <input type="hidden" name="arcrank" value="<?php echo $arcRow['arcrank']?>"> | ||||
@@ -12,7 +12,7 @@ | |||||
<script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<form name="form1" action="sys_admin_user_add.php" onSubmit="return checkSubmit();" method="post"> | |||||
<form name="form1" action="sys_admin_user_add.php" method="post" onSubmit="return checkSubmit();"> | |||||
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>"> | <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>"> | ||||
<input type="hidden" name="dopost" value="add"> | <input type="hidden" name="dopost" value="add"> | ||||
<table align="center" class="table maintable my-3"> | <table align="center" class="table maintable my-3"> | ||||
@@ -63,7 +63,7 @@ table tr:last-child td:last-child { | |||||
border-bottom-right-radius:.5rem; | border-bottom-right-radius:.5rem; | ||||
border-bottom:0 | border-bottom:0 | ||||
} | } | ||||
label { | |||||
form,label { | |||||
margin-bottom:0 | margin-bottom:0 | ||||
} | } | ||||
input { | input { | ||||
@@ -39,7 +39,7 @@ class OxWindow | |||||
} | } | ||||
$this->myWin .= "</script>"; | $this->myWin .= "</script>"; | ||||
$this->formName = $formname; | $this->formName = $formname; | ||||
$this->myWin .= "<form name='$formname' method='$formmethod' onSubmit='return CheckSubmit();' action='$formaction'>"; | |||||
$this->myWin .= "<form name='$formname' action='$formaction' method='$formmethod' onSubmit='return CheckSubmit();'>"; | |||||
} | } | ||||
/** | /** | ||||
* 添加隐藏域 | * 添加隐藏域 | ||||
@@ -26,7 +26,7 @@ | |||||
</ul> | </ul> | ||||
<span class="navbar-text"><a href="/apps/diy.php?action=list&diyid=<?php echo $diy->diyid;?>" class="btn btn-success btn-sm">返回列表</a></span> | <span class="navbar-text"><a href="/apps/diy.php?action=list&diyid=<?php echo $diy->diyid;?>" class="btn btn-success btn-sm">返回列表</a></span> | ||||
</nav> | </nav> | ||||
<form name="addcontent" action="<?php echo $cfg_cmspath;?>/apps/diy.php" enctype="multipart/form-data" method="post"> | |||||
<form name="addcontent" action="<?php echo $cfg_cmspath;?>/apps/diy.php" method="post" enctype="multipart/form-data"> | |||||
<input type="hidden" name="action" value="post"> | <input type="hidden" name="action" value="post"> | ||||
<input type="hidden" name="diyid" value="<?php echo $diyid;?>"> | <input type="hidden" name="diyid" value="<?php echo $diyid;?>"> | ||||
<input type="hidden" name="do" value="2"> | <input type="hidden" name="do" value="2"> | ||||
@@ -21,7 +21,7 @@ | |||||
<?php include(DEDEMEMBER."/templets/menu.htm");?> | <?php include(DEDEMEMBER."/templets/menu.htm");?> | ||||
<div class="col-md-9"> | <div class="col-md-9"> | ||||
<div class="pannel-main-container shadow-sm rounded"> | <div class="pannel-main-container shadow-sm rounded"> | ||||
<form action="edit_baseinfo.php" method="post" enctype="multipart/form-data" name="form2" onsubmit="return checkSubmit();"> | |||||
<form name="form2" action="edit_baseinfo.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();"> | |||||
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>"> | <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token'];?>"> | ||||
<input type="hidden" name="dopost" value="save"> | <input type="hidden" name="dopost" value="save"> | ||||
<input type="hidden" id="newface" name="newface" value=""> | <input type="hidden" id="newface" name="newface" value=""> | ||||
@@ -18,7 +18,7 @@ | |||||
<div class="login-from d-inline-block"> | <div class="login-from d-inline-block"> | ||||
<div class="login-box shadow-sm rounded text-left"> | <div class="login-box shadow-sm rounded text-left"> | ||||
<h2 class="text-center mb-3">会员注册</h2> | <h2 class="text-center mb-3">会员注册</h2> | ||||
<form method="post" action="reg_new.php" id="regUser" name="form2" onsubmit="return CheckSubmit();"> | |||||
<form name="form2" action="reg_new.php" method="post" id="regUser" onsubmit="return CheckSubmit();"> | |||||
<input type="hidden" name="dopost" value="regbase"> | <input type="hidden" name="dopost" value="regbase"> | ||||
<input type="hidden" name="step" value="1"> | <input type="hidden" name="step" value="1"> | ||||
<input type="hidden" name="mtype" value="个人"> | <input type="hidden" name="mtype" value="个人"> | ||||