summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-04-18 14:05:21 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-04-18 14:12:53 +0200
commita977ba31ce2dfa5b29151fd34166178a9ac1f6bd (patch)
treea88790318a1762db57cafc97bb1874b7219ef529 /index.php
parent1c300bb49b1139f25bd0b66f2a2cd36c49c013b5 (diff)
downloadnextcloud-server-a977ba31ce2dfa5b29151fd34166178a9ac1f6bd.tar.gz
nextcloud-server-a977ba31ce2dfa5b29151fd34166178a9ac1f6bd.zip
create .htaccess files during installation for apache users
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.php b/index.php
index c582cbdaace..6815aa43dcc 100644
--- a/index.php
+++ b/index.php
@@ -21,6 +21,8 @@
*
*/
+$RUNTIME_NOAPPS=true;//no apps, yet
+
require_once( 'lib/base.php' );
require_once( 'appconfig.php' );
require_once( 'template.php' );
@@ -48,6 +50,7 @@ if(count($errors)>0){
exit();
}
}elseif(isset($_POST["user"])){
+ OC_APP::loadApps();
if( OC_USER::login( $_POST["user"], $_POST["password"] )){
header( "Location: ".$WEBROOT.'/'.OC_APPCONFIG::getValue( "core", "defaultpage", "files/index.php" ));
exit();
@@ -55,6 +58,7 @@ if(count($errors)>0){
OC_TEMPLATE::printGuestPage( "", "login", array( "error" => true));
}
}else{
+ OC_APP::loadApps();
OC_TEMPLATE::printGuestPage( "", "login", array( "error" => false ));
}