/[CvsGraph]/cvsgraph/mkimage.php3
ViewVC logotype

Annotate of /cvsgraph/mkimage.php3

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations)
Sun Aug 29 12:48:04 2004 UTC (13 years, 3 months ago) by bertho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Move old wrappers to contrib
1 <?php
2 /* Some basic checks are in place */
3 isset($r) || die("CVSroot must be set\n");
4 isset($m) || die("CVSmodule must be set\n");
5 isset($f) || die("File must be set\n");
6 if(strchr($r, "'") || strchr($m, "'") || strchr($f, "'"))
7 die("Invalid characters in arguments\n");
8
9 /* I'll be paranoid, set root and module here so no one can get access elsewhere */
10 /* Remove this or change it to suit your needs */
11 // $r = "/home/cvsgraph";
12 // $m = "cvsgraph";
13
14 /* Shell escape, PHP4 has functions for this, use them */
15 $r = "'" . $r . "'";
16 $m = "'" . $m . "'";
17 $f = "'" . $f . ",v'";
18
19 /* I expose the paths here (accessible via the server). */
20 /* Set this to a private place to make it secure. */
21 $cvsgraph = "/home/bertho/public_html/cvsgraph/cvsgraph";
22 $cvsgraph_conf = "/home/bertho/public_html/cvsgraph/conf/cvsgraph.conf";
23
24 /* Default I generate PNG */
25 Header("Content-Type: image/png");
26 passthru("$cvsgraph -q -c $cvsgraph_conf -r $r -m $m $f");
27 ?>

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0