\include\inc_bookfunctions.php
---------------------------------------------------
......
Copy Code code as follows:
function Writebooktext ($cid, $body)
{<span id= "more-1944" ></span>
Global $cfg _cmspath, $cfg _basedir;
$ipath = $cfg _cmspath. " /data/textdata ";
$tpath = ceil ($cid/5000);
if (!is_dir ($cfg _basedir. $ipath)) Mkdirall ($cfg _basedir. $ipath, $GLOBALS [' Cfg_dir_purview ']);
if (!is_dir ($cfg _basedir. $ipath. /'. $tpath)) Mkdirall ($cfg _basedir. $ipath. /'. $tpath, $GLOBALS [' Cfg_dir_purview ']);
$bookfile = $cfg _basedir. $ipath. " /{$tpath}/bk{$cid}.php ";
$body = "<"? Php\r\n ". $body." \ r \ n? "." > ";
@ $fp = fopen ($bookfile, ' w ');
@flock ($FP);
@fwrite ($fp, $body);
@fclose ($FP);
<div id= "qhide_185676" class= "qt" style= "display:block;" "}
</div>
......
—————————————————
\member\story_add_content_action.php
—————————————————
......
Copy Code code as follows:
Writebooktext ($arcID, Addslashes ($body));
......
—————————————————
Got a nice station and tested it.