Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Moved webdav
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Marion committed Apr 20, 2011
1 parent 22bc0ce commit 66d8503
Show file tree
Hide file tree
Showing 158 changed files with 5,938 additions and 1,265 deletions.
3 changes: 2 additions & 1 deletion core/Bootstrap.php
Expand Up @@ -173,7 +173,8 @@ protected function _initRouter()
$route1 = new Zend_Controller_Router_Route(
Zend_Registry::get('configGlobal')->webdav->path.'/:action/*',
array(
'controller' => 'webdav',
'module' => 'webdav',
'controller' => ':action',
'action' => ':action'
)
);
Expand Down
30 changes: 18 additions & 12 deletions core/controllers/AdminController.php
Expand Up @@ -79,20 +79,26 @@ function indexAction()
switch (Zend_Registry::get('configDatabase')->database->adapter)
{
case 'PDO_MYSQL':
$this->Component->Utility->run_mysql_from_file(BASE_PATH.'/modules/'.$moduleName.'/database/mysql/'.$allModules[$moduleName]->version.'.sql',
Zend_Registry::get('configDatabase')->database->params->host,
Zend_Registry::get('configDatabase')->database->params->username,
Zend_Registry::get('configDatabase')->database->params->password,
Zend_Registry::get('configDatabase')->database->params->dbname,
Zend_Registry::get('configDatabase')->database->params->port);
if(file_exists(BASE_PATH.'/modules/'.$moduleName.'/database/mysql/'.$allModules[$moduleName]->version.'.sql'))
{
$this->Component->Utility->run_mysql_from_file(BASE_PATH.'/modules/'.$moduleName.'/database/mysql/'.$allModules[$moduleName]->version.'.sql',
Zend_Registry::get('configDatabase')->database->params->host,
Zend_Registry::get('configDatabase')->database->params->username,
Zend_Registry::get('configDatabase')->database->params->password,
Zend_Registry::get('configDatabase')->database->params->dbname,
Zend_Registry::get('configDatabase')->database->params->port);
}
break;
case 'PDO_PGSQL':
$this->Component->Utility->run_pgsql_from_file(BASE_PATH.'/modules/'.$key.'/database/pgsql/'.$allModules[$moduleName]->version.'.sql',
Zend_Registry::get('configDatabase')->database->params->host,
Zend_Registry::get('configDatabase')->database->params->username,
Zend_Registry::get('configDatabase')->database->params->password,
Zend_Registry::get('configDatabase')->database->params->dbname,
Zend_Registry::get('configDatabase')->database->params->port);
if(file_exists(BASE_PATH.'/modules/'.$key.'/database/pgsql/'.$allModules[$moduleName]->version.'.sql'))
{
$this->Component->Utility->run_pgsql_from_file(BASE_PATH.'/modules/'.$key.'/database/pgsql/'.$allModules[$moduleName]->version.'.sql',
Zend_Registry::get('configDatabase')->database->params->host,
Zend_Registry::get('configDatabase')->database->params->username,
Zend_Registry::get('configDatabase')->database->params->password,
Zend_Registry::get('configDatabase')->database->params->dbname,
Zend_Registry::get('configDatabase')->database->params->port);
}
break;
}
}
Expand Down
74 changes: 0 additions & 74 deletions library/SabreDAV/lib/Sabre/CalDAV/CalendarRootNode.php

This file was deleted.

79 changes: 0 additions & 79 deletions library/SabreDAV/lib/Sabre/DAV/Auth/Backend/PDO.php

This file was deleted.

0 comments on commit 66d8503

Please sign in to comment.