From b104af20eaaba900c6fff5d959d94fcd7c022192 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 27 Aug 2005 08:18:58 +0000 Subject: [PATCH] Checking in inital code base --- includes/imaginary.php | 50 ++++++++++++++++++++++++++ includes/init.php | 64 +++++++++++++++++++++++++++++++++ includes/repository.php | 78 +++++++++++++++++++++++++++++++++++++++++ includes/shellcmd.php | 78 +++++++++++++++++++++++++++++++++++++++++ includes/svnlib.php | 19 ++++++++++ index.php | 19 ++++++++++ 6 files changed, 308 insertions(+) create mode 100644 includes/imaginary.php create mode 100644 includes/init.php create mode 100644 includes/repository.php create mode 100644 includes/shellcmd.php create mode 100644 includes/svnlib.php create mode 100644 index.php diff --git a/includes/imaginary.php b/includes/imaginary.php new file mode 100644 index 0000000..6fd3ea9 --- /dev/null +++ b/includes/imaginary.php @@ -0,0 +1,50 @@ + \ No newline at end of file diff --git a/includes/init.php b/includes/init.php new file mode 100644 index 0000000..8dc8f9f --- /dev/null +++ b/includes/init.php @@ -0,0 +1,64 @@ +application = 'ViewSVN'; +$viewsvn->apppath = $viewsvn->fetch_sourcepath(getcwd()); +$viewsvn->appversion = '[#]version[#]'; +$viewsvn->debug = $debug; +$viewsvn->sourcepath = $viewsvn->fetch_sourcepath($issopath); + +$viewsvn->load('functions'); +$viewsvn->exec_sanitize_data(); + +// ################################################################### +// imaginary reporter +require_once('./imaginary.php'); +$viewsvn->trigger =& new Imaginary(); + +// ################################################################### +// load shell subsystem +require_once('./shellcmd.php'); +$viewsvn->shell =& new Shell(); + +// ################################################################### +// setup repository +require_once('./repository.php'); +$viewsvn->repos =& new Repository($repository, $iscontainer); + +/*=====================================================================*\ +|| ################################################################### +|| # $HeadURL$ +|| # $Id$ +|| ################################################################### +\*=====================================================================*/ +?> \ No newline at end of file diff --git a/includes/repository.php b/includes/repository.php new file mode 100644 index 0000000..37873c4 --- /dev/null +++ b/includes/repository.php @@ -0,0 +1,78 @@ +fetch_sourcepath($path); + + if ($iscontainer) + { + if ($dir = @opendir($path)) + { + while (($file = readdir($dir)) !== false) + { + if (is_dir($path . $file) AND $file{0} != '.' AND is_dir($path . $file . '/' . 'db')) + { + $repos[] = $file; + } + } + closedir($dir); + } + } + else + { + if (is_dir($path . 'db')) + { + $repos[] = $path; + } + } + + if (count($repos) < 1) + { + $viewsvn->trigger->error('no valid repositories'); + } + } +} + +/*=====================================================================*\ +|| ################################################################### +|| # $HeadURL$ +|| # $Id$ +|| ################################################################### +\*=====================================================================*/ +?> \ No newline at end of file diff --git a/includes/shellcmd.php b/includes/shellcmd.php new file mode 100644 index 0000000..65b7ac0 --- /dev/null +++ b/includes/shellcmd.php @@ -0,0 +1,78 @@ + \ No newline at end of file diff --git a/includes/svnlib.php b/includes/svnlib.php new file mode 100644 index 0000000..1e01b16 --- /dev/null +++ b/includes/svnlib.php @@ -0,0 +1,19 @@ + \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..1e01b16 --- /dev/null +++ b/index.php @@ -0,0 +1,19 @@ + \ No newline at end of file -- 2.22.5