File: g1-makereport.php

package info (click to toggle)
gallery 1.5-1sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 21,172 kB
  • ctags: 4,516
  • sloc: php: 26,456; sh: 427; perl: 188; makefile: 58; xml: 48
file content (11 lines) | stat: -rw-r--r-- 342 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
<?php
	// This works only on Linux
	
	include (dirname(dirname(__FILE__)). '/Version.php');

	$path=dirname(__FILE__);
	shell_exec ("php $path/g1-report.php > $path/reports/$gallery->version--report.html");
	shell_exec ("rm $path/g1-report.html");
	shell_exec ("ln -s $path/reports/$gallery->version--report.html $path/g1-report.html");
	
?>