[Picfinity-commit] SF.net SVN: picfinity: [23] index.php
Status: Beta
Brought to you by:
espadav8
From: <esp...@us...> - 2007-08-09 12:45:41
|
Revision: 23 http://picfinity.svn.sourceforge.net/picfinity/?rev=23&view=rev Author: espadav8 Date: 2007-08-09 05:44:59 -0700 (Thu, 09 Aug 2007) Log Message: ----------- Remove the use of put_file_contents Modified Paths: -------------- index.php Modified: index.php =================================================================== --- index.php 2007-08-09 11:18:11 UTC (rev 22) +++ index.php 2007-08-09 12:44:59 UTC (rev 23) @@ -66,13 +66,23 @@ $xml = $site_layout; // create the XML file if we've been told to - if ($create_xml) file_put_contents("gallery.xml", $xml); + if ($create_xml) + { + $fh = fopen("gallery.xml", "w"); + fwrite($fh, $xml); + fclose($fh); + } // pass the XML to the theme and get the HTML back $html = xml_to_xhtml($xml, ".themes/$theme/$theme.xsl", array('title' => $site_name, 'post_id' => $post_id)); // create the flat version if we need to - if ($create_html) file_put_contents("index.html", $html); + if ($create_html) + { + $fh = fopen("index.html", "w"); + fwrite($fh, $html); + fclose($fh); + } // echo the HTML to the screen echo $html; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |