www.gusucode.com > Destoon B2B仿淘宝电子商务网站 UTF8 v6.0源码程序 > destoon/api/flashpageflip/make.inc.php
<?php if($filepath && strpos($filepath, '/') !== false) { $total = 1; $file_dir = DT_ROOT.'/api/flashpageflip'; $book_dir = dirname(DT_ROOT.'/'.$MOD['moduledir'].'/'.$filepath); $book_xml = '<content width="400" height="500" bgcolor="cccccc" loadercolor="ffffff" bgimage="0" panelcolor="5d5d61" buttoncolor="5d5d61" textcolor="ffffff" fullscreen="ture" tellafriendmode="false" leftbeginning="false">'."\n"; foreach($T as $_T) { $book_xml .= '<page src="'.$_T['big'].'"/>'."\n"; } $book_xml .= '</content>'; file_put($book_dir.'/xml/Pages.xml', $book_xml); file_copy($file_dir.'/swf/Magazine.swf', $book_dir.'/swf/Magazine.swf'); file_copy($file_dir.'/swf/Pages.swf', $book_dir.'/swf/Pages.swf'); file_copy($file_dir.'/txt/Lang.txt', $book_dir.'/txt/Lang.txt'); } else { $template = 'show'; } ?>