/[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.1 - (show annotations)
Thu Mar 22 23:11:44 2001 UTC (16 years, 6 months ago) by bertho
Branch: MAIN
CVS Tags: REL_1_2_0, REL_1_4_0, REL_1_4_1, REL_1_3_0, REL_1_1_3, REL_1_1_2, REL_1_5_0
Added the wrapperscripts to the repository for reference.
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