freebsd-ports/net-mgmt/guifi-snpservices/files/patch-common-misc.php
Kurt Jaeger b8129d8b0f New port: net-mgmt/guifi-snpservices
This software provides graph services in the context of the
Spontaneous Networklink Platform.

WWW: http://es.wiki.guifi.net/wiki/SNPservices

PR:		189904
Submitted by:	tphilipp@potion-studios.com
2014-08-04 09:18:27 +00:00

20 lines
830 B
PHP

--- common/misc.php.orig 2014-04-10 14:05:20.000000000 +0000
+++ common/misc.php 2014-04-10 14:05:45.000000000 +0000
@@ -177,7 +177,7 @@
foreach ($an as $nc) {
$try = 0;
$xml = false;
- $fn = $prefix.'tmp/'.$nc.'.cnml';
+ $fn = $prefix.'/var/tmp/snpservices/tmp/'.$nc.'.cnml';
do {
// print " Processing $nc try $try cache: $waitcache\n<br>";
if (file_exists($fn)) {
@@ -232,7 +232,7 @@
if ($xml) {
$xpnxml = $xml->xpath('//node');
foreach ($xpnxml as $nxml) {
- $fn = $prefix.'tmp/'.$nxml->attributes()->id.'.cnml';
+ $fn = $prefix.'/var/tmp/snpservices/tmp/'.$nxml->attributes()->id.'.cnml';
$wcnml = @fopen($fn, "w+") or die("\n<br>Error caching XML, can't write $fn\n");
fwrite($wcnml,'<cnml>'.$nxml->asXML().'</cnml>');
fclose($wcnml);