回归本源
This commit is contained in:
@@ -20,7 +20,6 @@ $description = $_POST['description'];
|
|||||||
//$description = str_replace("<p>", "", $description);
|
//$description = str_replace("<p>", "", $description);
|
||||||
//$description = str_replace("</p>", "<br />", $description);
|
//$description = str_replace("</p>", "<br />", $description);
|
||||||
$description = str_replace(",", ",", $description);
|
$description = str_replace(",", ",", $description);
|
||||||
$description = str_replace("\n\n", "\n<br/>", $description);
|
|
||||||
|
|
||||||
$input = $_POST['input'];
|
$input = $_POST['input'];
|
||||||
//$input = str_replace("<p>", "", $input);
|
//$input = str_replace("<p>", "", $input);
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ if (!(isset($_SESSION[$OJ_NAME . '_' . 'administrator']) || isset($_SESSION[$OJ_
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
<title>Problem Add</title>
|
<title>Problem Add</title>
|
||||||
</head>
|
</head>
|
||||||
<pre?php echo "<center><h3>" .$MSG_PROBLEM."-".$MSG_ADD."</h3>
|
<?php echo "<center><h3>" .$MSG_PROBLEM."-".$MSG_ADD."</h3>
|
||||||
</center>";
|
</center>";
|
||||||
include_once("kindeditor.php") ;
|
include_once("kindeditor.php") ;
|
||||||
$source=pdo_query("select source from problem order by problem_id desc limit 1"); //默认续用最后一次的分类标签
|
$source=pdo_query("select source from problem order by problem_id desc limit 1"); //默认续用最后一次的分类标签
|
||||||
@@ -49,7 +49,8 @@ if (!(isset($_SESSION[$OJ_NAME . '_' . 'administrator']) || isset($_SESSION[$OJ_
|
|||||||
< align=left>
|
< align=left>
|
||||||
<?php echo "<h4>" . $MSG_Description . "(<64kB)</h4>" ?>
|
<?php echo "<h4>" . $MSG_Description . "(<64kB)</h4>" ?>
|
||||||
<textarea class="kindeditor" rows=13 name=description cols=80><span class='md auto_select'>
|
<textarea class="kindeditor" rows=13 name=description cols=80><span class='md auto_select'>
|
||||||
<br><br>
|
|
||||||
|
|
||||||
</span></textarea><br>
|
</span></textarea><br>
|
||||||
</p>
|
</p>
|
||||||
<p align=left>
|
<p align=left>
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ include_once("kindeditor.php") ;
|
|||||||
</p>
|
</p>
|
||||||
<p align=left>
|
<p align=left>
|
||||||
<?php echo "<h4>".$MSG_Description."</h4>"?>
|
<?php echo "<h4>".$MSG_Description."</h4>"?>
|
||||||
<textarea class="kindeditor" rows=13 name=description cols=80><?php echo $row['description']?></textarea><br>
|
<textarea class="kindeditor" rows=13 name=description cols=80><?php echo htmlentities($row['description'],ENT_QUOTES,"UTF-8")?></textarea><br>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align=left>
|
<p align=left>
|
||||||
@@ -237,7 +237,6 @@ include_once("kindeditor.php") ;
|
|||||||
// $description = str_replace("<p>", "", $description);
|
// $description = str_replace("<p>", "", $description);
|
||||||
// $description = str_replace("</p>", "<br />", $description);
|
// $description = str_replace("</p>", "<br />", $description);
|
||||||
$description = str_replace(",", ",", $description);
|
$description = str_replace(",", ",", $description);
|
||||||
$description = str_replace("\n\n", "\n<br/>", $description);
|
|
||||||
|
|
||||||
$input = $_POST['input'];
|
$input = $_POST['input'];
|
||||||
// $input = str_replace("<p>", "", $input);
|
// $input = str_replace("<p>", "", $input);
|
||||||
|
|||||||
Reference in New Issue
Block a user