diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2008-11-19 20:57:23 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2008-11-19 20:57:23 -0500 |
commit | 6a66b6b2fea3fa24862586e27e9b03a2f92196a5 (patch) | |
tree | b84819db2837748574dcac4705beb4bd50fb52f9 /pages | |
parent | 51337807124d7f57d6cff6656d41b5fd57010c6b (diff) | |
download | fourisland-6a66b6b2fea3fa24862586e27e9b03a2f92196a5.tar.gz fourisland-6a66b6b2fea3fa24862586e27e9b03a2f92196a5.tar.bz2 fourisland-6a66b6b2fea3fa24862586e27e9b03a2f92196a5.zip |
Removed includes/phpsvnclient.php
phpsvnclient.php was previously used to interface the Four Island Subversion Repositories so changesets could be seen via the RSS feed, but not only not many people want this in their RSS feed, and the people that did could get a seperate feed, but Four Island no longer uses Subversion, instead it uses the better, distributive Mercurial.
Diffstat (limited to 'pages')
-rwxr-xr-x | pages/projects.php | 94 |
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 | ||
10 | 4::::444444::::444 | ||
11 | 4::::::::::::::::4 pages/projects.php | ||
12 | 4444444444:::::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 | |||
21 | if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} | ||
22 | |||
23 | require('headerproc.php'); | ||
24 | |||
25 | include('includes/phpsvnclient.php'); | ||
26 | |||
27 | if (!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(' ',' ',str_replace(' ',' ',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 | ?> | ||