Files are written by Jason Robinson in JavaScript for KitCAD i3 KGC Rendering. Feel free to add extra files to this subdirectory. Copyright 2008 as written by Jason Robinson for KitCAD i3 KGC - http://www.kitchenpages.com/ Please feel free to copy as long that this notice stays intact, and unchanged. Note your modifictaions. Include a link/notice on modified versions back to KitCAD i3 original at kitchenpages.com Providing that you have done the above or some of; then feel free to use, however I reserve the right to change at any time, and without notice SECURITY: See PHP note below. No PHP security is enabled by default for KitCAD i3. NOTICE: PLEASE DO NOT PORT THIS DIRECTLY FROM ORIGINAL SITE/S, AND DO NOT LOAD GRAPHICS FROM ORIGINAL SITE/S seek written permission for reuse first before any such reuse The ZIP file with an .sxd extension is PHP generated with PEAR (with package File_Archive). For the PEAR PHP see ../php/ A Perl version is possible with PerlIO - however the current KP server online didn't like PerlIO much. This may get updated again for ooo v2 (ODG file mime type). BUGs: rotation... and scale... INSTALL: The $i3tmp=''; value in _i3_sxd.php (was pear.php) MUST be updated to the correct TLD domain pointer path. See _i3_sxd.php in this directory for more information... NOTE: Inline Canvas function rendering, see the example within KitCAD225_KGraphicControl.htm Or review the file named ooo_odf_sxd.js as shown above Inch sizes are generated to be compatable with ODF SVG //for KPi3 to SVG 1.0 ODF part with KGC //Canvas.svg10(); //remarked kgc.Canvas.ooo115(); //inline function of ooo_odf_sxd.js kgc.Canvas.boot(); kgc.KGraphicControl.Loadall(); writeln(Canvas.Kdata); ------------PHP5 SECURITY-------------------- No seucirty. Append the following lines to the start of the PHP code in the file named _i3_sxd.php Some items below can only be set by PHP_INI_PERDIR or PHP_INI_SYSTEM; but are listed below as PHP_INI_ALL - see http://www.php.net/manual/en/ini.list.php -------------------------------------------- ini_set('post_max_size','1M'); ini_set('upload_max_filesize','1M'); ini_set('safe_mode','1'); ini_set('safe_mode_include_dir','.;../php/PEAR'); ini_set('memory_limit','32M'); ini_set('short_open_tag', '0'); //; only allow elements ini_set('asp_tags', '0'); //; disable ASP elements ini_set('safe_mode_allowed_env_vars' ,'PHP_'); //; alter user set varables ini_set('expose_php', '0'); //; Show PHP header tag ini_set('max_execution_time', '40'); //; Maximum execution time of each script, in seconds ini_set('max_input_time', '20'); //; Maximum amount of time each script may spend parsing request data ini_set('sql.safe_mode', '1'); //; SQL safemode ini_set('session.use_cookies', '0'); //; disabled id cookies ini_set('display_errors', '0'); ini_set('register_globals','0'); //; disable global declairs ini_set('file_uploads', '0');