summary refs log tree commit diff stats
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rwxr-xr-xpages/projects.php94
1 files changed, 0 insertions, 94 deletions
diff --git a/pages/projects.php b/pages/projects.php deleted file mode 100755 index 4129cdf..0000000 --- a/pages/projects.php +++ /dev/null
@@ -1,94 +0,0 @@
1<?php
2/*
3 444444444
4 4::::::::4
5 4:::::::::4
6 4::::44::::4
7 4::::4 4::::4 Four Island
8 4::::4 4::::4
9 4::::4 4::::4 Written and maintained by Starla Insigna
104::::444444::::444
114::::::::::::::::4 pages/projects.php
124444444444:::::444
13 4::::4 Please do not use, reproduce or steal the
14 4::::4 contents of this file without explicit
15 4::::4 permission from Hatkirby.
16 44::::::44
17 4::::::::4
18 4444444444
19*/
20
21if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);}
22
23require('headerproc.php');
24
25include('includes/phpsvnclient.php');
26
27if (!isset($_GET['project']))
28{
29
30} else {
31 if (!isset($_GET['folder']) && !isset($_GET['file']))
32 {
33 } else if (isset($_GET['folder']))
34 {
35 if ($_GET['folder'] == 'browse')
36 {
37 $template = new FITemplate('projects/browse');
38
39 if (!isset($_GET['id']))
40 {
41 $path = '/';
42 } else {
43 $path = '/' . $_GET['id'];
44 }
45 if (!isset($_GET['rev']))
46 {
47 $rev = -1;
48 } else {
49 $rev = $_GET['rev'];
50 }
51
52 $svn = new phpSVNclient();
53 $svn->setRespository('http://svn.fourisland.com/' . $_GET['project']);
54 $svn->setAuth('hatkirby','popstartwo506');
55 $data = $svn->getFile($path,$rev);
56
57 if (substr($path,strlen($path)-1,1) != '/')
58 {
59 $template->add('DATA', str_replace(' ','&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;',str_replace(' ','&nbsp;&nbsp;',nl2br(htmlentities($data)))));
60 $template->adds_block('FILE', array('NAME' => $path));
61 } else {
62 $template->add('DATA', $data);
63 }
64
65 $logs = $svn->getFileLogs($path);
66 $template->add('LOGDATA', str_replace("\n\n",'<P>',htmlentities($logs[count($logs)-1]['comment'])));
67 $template->add('AUTHOR', $logs[count($logs)-1]['author']);
68 $template->add('DATE', date('F dS Y \a\\t g:i:s a',strtotime($logs[count($logs)-1]['date'])));
69
70 if ($rev != -1)
71 {
72 $template->adds_block('FORWARD', array( 'URL' => ('/projects/' . $_GET['project'] . '/browse' . $path . '?rev=' . ($rev+1)),
73 'NUM' => ($rev+1)));
74 }
75
76 if ($rev == -1)
77 {
78 $rev = $svn->getVersion();
79 }
80
81 if ($rev != 1)
82 {
83 $template->adds_block('BACK', array( 'URL' => ('/projects/' . $_GET['project'] . '/browse' . $path . '?rev=' . ($rev-1)),
84 'NUM' => ($rev-1)));
85 }
86 }
87 } else if (isset($_GET['file']))
88 {
89 }
90}
91
92$template->display();
93
94?>