aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-10-16 21:42:24 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-10-16 21:42:24 +0200
commitb0127e39188f2268dbd74714e5d2f0e1a2b6ce7b (patch)
tree63b365930c0232613f28ffbd477202f857fdabee /index.php
parentd9372ac76606cd10e680852dde090171f04f5dee (diff)
downloadnextcloud-server-b0127e39188f2268dbd74714e5d2f0e1a2b6ce7b.tar.gz
nextcloud-server-b0127e39188f2268dbd74714e5d2f0e1a2b6ce7b.zip
use OC_Log instead of error_log
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index 924e7394f7b..558733e1cda 100644
--- a/index.php
+++ b/index.php
@@ -31,7 +31,7 @@ if($not_installed) {
// Check for autosetup:
$autosetup_file = OC::$SERVERROOT."/config/autoconfig.php";
if( file_exists( $autosetup_file )){
- error_log("Autoconfig file found, setting up owncloud...");
+ OC_Log::write('core','Autoconfig file found, setting up owncloud...',OC_Log::INFO);
include( $autosetup_file );
$_POST['install'] = 'true';
$_POST = array_merge ($_POST, $AUTOCONFIG);
@@ -68,7 +68,7 @@ else {
// remember was checked after last login
if(isset($_COOKIE["oc_remember_login"]) && isset($_COOKIE["oc_token"]) && isset($_COOKIE["oc_username"]) && $_COOKIE["oc_remember_login"]) {
if(defined("DEBUG") && DEBUG) {
- error_log("Trying to login from cookie");
+ OC_Log::write('core','Trying to login from cookie',OC_Log::DEBUG);
}
// confirm credentials in cookie
if(isset($_COOKIE['oc_token']) && OC_User::userExists($_COOKIE['oc_username']) &&
@@ -86,7 +86,7 @@ else {
if(OC_User::login($_POST["user"], $_POST["password"])) {
if(!empty($_POST["remember_login"])){
if(defined("DEBUG") && DEBUG) {
- error_log("Setting remember login to cookie");
+ OC_Log::write('core','Setting remember login to cookie',OC_Log::DEBUG);
}
$token = md5($_POST["user"].time());
OC_Preferences::setValue($_POST['user'], 'login', 'token', $token);