\ Include \ inc_bookfunctions.php
---------------------------------------------------
......
CopyCode The Code is as follows: function writebooktext ($ CID, $ body)
{<Span id = "More-1944"> </span>
Global $ export _cmspath, $ export _basedir;
$ Ipath = $ cfg_cmspath. "/data/textdata ";
$ Tpath = Ceil ($ CID/5000 );
If (! Is_dir ($ pai_basedir. $ ipath) mkdirall ($ pai_basedir. $ ipath, $ globals ['cfg _ dir_purview']);
If (! Is_dir ($ pai_basedir. $ ipath. '/'. $ tpath) mkdirall ($ pai_basedir. $ ipath. '/'. $ tpath, $ globals ['cfg _ dir_purview']);
$ Bookfile = $ pai_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 codeThe Code is as follows: writebooktext ($ arcid, addslashes ($ body ));
......
-----------------
I found a nice site to test it.