2011-03-03 23:55:32 +03:00
|
|
|
<?php
|
|
|
|
|
2011-10-02 01:48:00 +04:00
|
|
|
|
2012-04-14 18:44:15 +04:00
|
|
|
$l=OC_L10N::get('files');
|
2011-08-09 19:54:02 +04:00
|
|
|
|
2012-05-02 02:50:26 +04:00
|
|
|
OCP\App::register( array( "order" => 2, "id" => "files", "name" => "Files" ));
|
2012-05-02 13:26:22 +04:00
|
|
|
OCP\App::registerAdmin('files','admin');
|
2011-03-04 01:08:11 +03:00
|
|
|
|
2012-05-02 02:50:26 +04:00
|
|
|
OCP\App::addNavigationEntry( array( "id" => "files_index", "order" => 0, "href" => OCP\Util::linkTo( "files", "index.php" ), "icon" => OCP\Util::imagePath( "core", "places/home.svg" ), "name" => $l->t("Files") ));
|
2011-04-17 22:00:07 +04:00
|
|
|
|
2012-03-02 01:58:44 +04:00
|
|
|
OC_Search::registerProvider('OC_Search_Provider_File');
|
2012-05-05 20:29:02 +04:00
|
|
|
if(!file_exists(OC::$SERVERROOT.'/remote/webdav.php')){
|
2012-05-05 22:43:11 +04:00
|
|
|
file_put_contents(OC::$SERVERROOT.'/remote/webdav.php', file_get_contents(OC::$APPSROOT . '/apps/files/appinfo/remote.php'));
|
2012-05-05 20:29:02 +04:00
|
|
|
}
|