Changeset View
Changeset View
Standalone View
Standalone View
lib/kolab_sync.php
Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | public function run() | ||||
$_SERVER['PHP_AUTH_USER'] .= '@' . $username[0]; | $_SERVER['PHP_AUTH_USER'] .= '@' . $username[0]; | ||||
} | } | ||||
} | } | ||||
// Authenticate the user | // Authenticate the user | ||||
$userid = $this->authenticate($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']); | $userid = $this->authenticate($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']); | ||||
} | } | ||||
if (empty($userid)) { | |||||
header('WWW-Authenticate: Basic realm="' . $this->app_name .'"'); | |||||
header('HTTP/1.1 401 Unauthorized'); | |||||
exit; | |||||
} | |||||
$this->plugins->exec_hook('ready', array('task' => 'syncroton')); | $this->plugins->exec_hook('ready', array('task' => 'syncroton')); | ||||
// Set log directory per-user | // Set log directory per-user | ||||
$this->set_log_dir(); | $this->set_log_dir(); | ||||
// Save user password for Roundcube Framework | // Save user password for Roundcube Framework | ||||
$this->password = $_SERVER['PHP_AUTH_PW']; | $this->password = $_SERVER['PHP_AUTH_PW']; | ||||
▲ Show 20 Lines • Show All 350 Lines • Show Last 20 Lines |