xerte/new_template.php: remove nasty loop_create_folder and replace it with copy_r which seems vaguely readable; add debugging stuff; change to new db_query_one
xerte/new_template.php: remove nasty loop_create_folder and replace it with copy_r which seems vaguely readable; add debugging stuff; change to new db_query_one

git-svn-id: 17e300447cb4b020d428f438ce6532ae41087135@107 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641

torinfo/xerteonlinetoolkits,thexerteproject/xerteonlinetoolkits,torinfo/xerteonlinetoolkits,thexerteproject/xerteonlinetoolkits,torinfo/xerteonlinetoolkits,thexerteproject/xerteonlinetoolkits,thexerteproject/xerteonlinetoolkits,thexerteproject/xerteonlinetoolkits,torinfo/xerteonlinetoolkits,usernamenumber/xerteonlinetoolkits,usernamenumber/xerteonlinetoolkits,usernamenumber/xerteonlinetoolkits,torinfo/xerteonlinetoolkits,usernamenumber/xerteonlinetoolkits