Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorElias Probst <mail@eliasprobst.eu>2011-01-01 03:01:57 +0300
committerElias Probst <mail@eliasprobst.eu>2011-01-01 03:01:57 +0300
commitba246b450f8cb6f666bd1fbf108242ab48307da8 (patch)
tree9907bd564ba84fda7a8e45e00d55b89a51fd398a /inc
parent654387ff05e84c51a4c85854abe1843bb65ed412 (diff)
Fixed typo (Lisener → Listener)
Diffstat (limited to 'inc')
-rwxr-xr-xinc/User/backend.php4
-rwxr-xr-xinc/User/database.php4
-rw-r--r--inc/lib_base.php4
-rw-r--r--inc/lib_config.php8
-rw-r--r--inc/lib_user.php8
-rw-r--r--inc/templates/header.php8
6 files changed, 18 insertions, 18 deletions
diff --git a/inc/User/backend.php b/inc/User/backend.php
index e71d155cea1..9d10adefd40 100755
--- a/inc/User/backend.php
+++ b/inc/User/backend.php
@@ -33,7 +33,7 @@ abstract class OC_USER_BACKEND {
* Check if the login button is pressed and log the user in
*
*/
- abstract public static function loginLisener();
+ abstract public static function loginListener();
/**
* Try to create a new user
@@ -55,7 +55,7 @@ abstract class OC_USER_BACKEND {
* Check if the logout button is pressed and logout the user
*
*/
- abstract public static function logoutLisener();
+ abstract public static function logoutListener();
/**
* Check if some user is logged in
diff --git a/inc/User/database.php b/inc/User/database.php
index 9a39e191f61..bd33ba6b6e9 100755
--- a/inc/User/database.php
+++ b/inc/User/database.php
@@ -36,7 +36,7 @@ class OC_USER_DATABASE extends OC_USER_BACKEND {
* Check if the login button is pressed and log the user in
*
*/
- public static function loginLisener(){
+ public static function loginListener(){
if ( isset($_POST['loginbutton']) AND isset($_POST['password']) AND isset($_POST['login']) ) {
if ( OC_USER::login($_POST['login'], $_POST['password']) ) {
echo 1;
@@ -111,7 +111,7 @@ class OC_USER_DATABASE extends OC_USER_BACKEND {
* Check if the logout button is pressed and logout the user
*
*/
- public static function logoutLisener() {
+ public static function logoutListener() {
global $WEBROOT;
if ( isset($_GET['logoutbutton']) AND isset($_SESSION['username']) ) {
OC_LOG::event($_SESSION['username'], 2, '');
diff --git a/inc/lib_base.php b/inc/lib_base.php
index 65664ae8614..b8c639b2446 100644
--- a/inc/lib_base.php
+++ b/inc/lib_base.php
@@ -102,8 +102,8 @@ OC_UTIL::setupFS();
OC_UTIL::checkserver();
// listen for login or logout actions
-OC_USER::logoutlisener();
-$loginresult=OC_USER::loginlisener();
+OC_USER::logoutlistener();
+$loginresult=OC_USER::loginlistener();
/**
* Class for utility functions
diff --git a/inc/lib_config.php b/inc/lib_config.php
index d5f0f2270fb..777673a8b31 100644
--- a/inc/lib_config.php
+++ b/inc/lib_config.php
@@ -45,7 +45,7 @@ class OC_CONFIG{
}
}
- public static function createUserLisener(){
+ public static function createUserListener(){
if(OC_USER::isLoggedIn()){
if(OC_USER::ingroup($_SESSION['username'],'admin')){
if(isset($_POST['new_username']) and isset($_POST['new_password'])){
@@ -63,7 +63,7 @@ class OC_CONFIG{
}
}
- public static function createGroupLisener(){
+ public static function createGroupListener(){
if(OC_USER::isLoggedIn()){
if(isset($_POST['creategroup']) and $_POST['creategroup']==1){
if(OC_USER::creategroup($_POST['groupname'])){
@@ -84,7 +84,7 @@ class OC_CONFIG{
* lisen for configuration changes
*
*/
- public static function configLisener(){
+ public static function configListener(){
if(OC_USER::isLoggedIn()){
if(isset($_POST['config']) and $_POST['config']==1){
$error='';
@@ -142,7 +142,7 @@ class OC_CONFIG{
* lisen for admin configuration changes and write it to the file
*4bd0be1185e76
*/
- public static function writeAdminLisener(){
+ public static function writeAdminListener(){
global $CONFIG_INSTALLED;
$allow=false;
if(!$CONFIG_INSTALLED){
diff --git a/inc/lib_user.php b/inc/lib_user.php
index 8bde1d92075..5b48e0abf2f 100644
--- a/inc/lib_user.php
+++ b/inc/lib_user.php
@@ -78,8 +78,8 @@ class OC_USER {
* Check if the login button is pressed and log the user in
*
*/
- public static function loginLisener() {
- return self::$_backend->loginLisener();
+ public static function loginListener() {
+ return self::$_backend->loginListener();
}
/**
@@ -106,8 +106,8 @@ class OC_USER {
* Check if the logout button is pressed and logout the user
*
*/
- public static function logoutLisener() {
- return self::$_backend->logoutLisener();
+ public static function logoutListener() {
+ return self::$_backend->logoutListener();
}
/**
diff --git a/inc/templates/header.php b/inc/templates/header.php
index 9b67f34c884..4593af59518 100644
--- a/inc/templates/header.php
+++ b/inc/templates/header.php
@@ -51,14 +51,14 @@ if(!OC_UTIL::hasSmallScreen()){
// check if already configured. otherwise start configuration wizard
- $error=OC_CONFIG::writeadminlisener();
- if($e=OC_CONFIG::configlisener()){
+ $error=OC_CONFIG::writeadminlistener();
+ if($e=OC_CONFIG::configlistener()){
$error.=$e;
}
- if($e=OC_CONFIG::createuserlisener()){
+ if($e=OC_CONFIG::createuserlistener()){
$error.=$e;
}
- if($e=OC_CONFIG::creategrouplisener()){
+ if($e=OC_CONFIG::creategrouplistener()){
$error.=$e;
}
$CONFIG_ERROR=$error;