From cac99f143f8694e1ad91a66f362408892ca98661 Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 5 Feb 2007 13:09:07 +0000 Subject: [PATCH] alib/var/install - these files are no longer needed. --- .../src/modules/alib/var/install/install.php | 66 ------------------- .../modules/alib/var/install/uninstall.php | 38 ----------- 2 files changed, 104 deletions(-) delete mode 100644 campcaster/src/modules/alib/var/install/install.php delete mode 100644 campcaster/src/modules/alib/var/install/uninstall.php diff --git a/campcaster/src/modules/alib/var/install/install.php b/campcaster/src/modules/alib/var/install/install.php deleted file mode 100644 index 9ef7bd301..000000000 --- a/campcaster/src/modules/alib/var/install/install.php +++ /dev/null @@ -1,66 +0,0 @@ -getMessage()."\ndi:\n".$err->getDebugInfo()."\nui:\n".$err->getUserInfo()."\n\n"; - exit; -} - - -$CC_DBC = DB::connect($CC_CONFIG['dsn'], TRUE); -if (PEAR::isError($CC_DBC)) { - echo "Database connection problem.\n"; - echo "Check if database '".$CC_CONFIG['dsn']['database']."' exists with corresponding permissions.\n"; - echo "Database access is defined by 'dsn' values in conf.php.\n"; - exit; -} -$CC_DBC->setErrorHandling(PEAR_ERROR_RETURN); -$CC_DBC->setFetchMode(DB_FETCHMODE_ASSOC); - -$alib = new Alib(); - -echo "\n\n======\n". - "This is Alib standalone installation script, it is NOT needed to run ". - "for Campcaster.\nAlib is automatically used by storageServer without it.". - "\n======\n\n"; - -exit; - -//echo "Alib: uninstall ...\n"; -//$alib->uninstall(); - -$CC_DBC->setErrorHandling(PEAR_ERROR_DIE, "%s
\n"); -//echo "Alib: install ...\n"; -//$alib->install(); - -echo " Testing ...\n"; -$r = Alib::Test(); -if (PEAR::isError($r)) { - echo $r->getMessage()."\n".$r->getUserInfo()."\n"; - exit; -} -$log = $alib->test_log; -echo " TESTS:\n$log\n---\n"; - -echo " clean up + testdata insert ...\n"; -Alib::DeleteData(); -Alib::TestData(); - -echo " TREE DUMP:\n"; -echo M2tree::DumpTree(); -echo "\n Alib is probably installed OK\n"; - -$CC_DBC->disconnect(); -?> \ No newline at end of file diff --git a/campcaster/src/modules/alib/var/install/uninstall.php b/campcaster/src/modules/alib/var/install/uninstall.php deleted file mode 100644 index 7c154f30e..000000000 --- a/campcaster/src/modules/alib/var/install/uninstall.php +++ /dev/null @@ -1,38 +0,0 @@ -getMessage()."\ndi:\n".$err->getDebugInfo()."\nui:\n".$err->getUserInfo()."\n\n"; - exit; -} - - -$CC_DBC = DB::connect($CC_CONFIG['dsn'], TRUE); -if (PEAR::isError($CC_DBC)) { - echo "Database connection problem.\n"; - echo "Check if database '".$CC_CONFIG['dsn']['database']."' exists with corresponding permissions.\n"; - echo "Database access is defined by 'dsn' values in conf.php.\n"; - exit; -} - -$CC_DBC->setErrorHandling(PEAR_ERROR_RETURN); -$CC_DBC->setFetchMode(DB_FETCHMODE_ASSOC); -//$alib = new Alib(); -// -//echo "Trying to uninstall all ...\n"; -//$alib->uninstall(); - -$CC_DBC->disconnect(); -?> \ No newline at end of file