diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 5 | ||||
-rw-r--r-- | lib/files/storage/common.php | 7 | ||||
-rw-r--r-- | lib/l10n/el.php | 6 | ||||
-rw-r--r-- | lib/l10n/ka.php | 15 | ||||
-rw-r--r-- | lib/l10n/ur_PK.php | 8 | ||||
-rw-r--r-- | lib/setup.php | 2 | ||||
-rw-r--r-- | lib/user.php | 2 |
7 files changed, 40 insertions, 5 deletions
diff --git a/lib/base.php b/lib/base.php index 9bdbf48d725..0e751c0f0ec 100644 --- a/lib/base.php +++ b/lib/base.php @@ -326,6 +326,7 @@ class OC { OC_Log::ERROR); header('HTTP/1.1 500 Internal Server Error'); + OC_Util::addStyle("styles"); $error = 'Session could not be initialized. Please contact your '; $error .= 'system administrator'; @@ -339,13 +340,13 @@ class OC { // regenerate session id periodically to avoid session fixation if (!isset($_SESSION['SID_CREATED'])) { $_SESSION['SID_CREATED'] = time(); - } else if (time() - $_SESSION['SID_CREATED'] > 900) { + } else if (time() - $_SESSION['SID_CREATED'] > 60*60*12) { session_regenerate_id(true); $_SESSION['SID_CREATED'] = time(); } // session timeout - if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > 3600)) { + if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > 60*60*24)) { if (isset($_COOKIE[session_name()])) { setcookie(session_name(), '', time() - 42000, '/'); } diff --git a/lib/files/storage/common.php b/lib/files/storage/common.php index cb41d17e446..8aa227ec0b7 100644 --- a/lib/files/storage/common.php +++ b/lib/files/storage/common.php @@ -334,6 +334,13 @@ abstract class Common implements \OC\Files\Storage\Storage { return implode('/', $output); } + public function test() { + if ($this->stat('')) { + return true; + } + return false; + } + /** * get the free space in the storage * diff --git a/lib/l10n/el.php b/lib/l10n/el.php index e2e86edc4da..c17a33dfee1 100644 --- a/lib/l10n/el.php +++ b/lib/l10n/el.php @@ -19,7 +19,11 @@ "Set an admin username." => "Εισάγετε όνομα χρήστη διαχειριστή.", "Set an admin password." => "Εισάγετε συνθηματικό διαχειριστή.", "Specify a data folder." => "Καθορίστε τον φάκελο δεδομένων.", +"%s enter the database username." => "%s εισάγετε το όνομα χρήστη της βάσης δεδομένων.", +"%s enter the database name." => "%s εισάγετε το όνομα της βάσης δεδομένων.", +"%s you may not use dots in the database name" => "%s μάλλον δεν χρησιμοποιείτε τελείες στο όνομα της βάσης δεδομένων", "PostgreSQL username and/or password not valid" => "Μη έγκυρος χρήστης και/ή συνθηματικό της PostgreSQL", +"You need to enter either an existing account or the administrator." => "Χρειάζεται να εισάγετε είτε έναν υπάρχον λογαριασμό ή του διαχειριστή.", "Oracle username and/or password not valid" => "Μη έγκυρος χρήστης και/ή συνθηματικό της Oracle", "MySQL username and/or password not valid" => "Μη έγκυρος χρήστης και/ή συνθηματικό της MySQL", "DB Error: \"%s\"" => "Σφάλμα Βάσης Δεδομένων: \"%s\"", @@ -41,7 +45,7 @@ "%d months ago" => "%d μήνες πριν", "last year" => "τον προηγούμενο χρόνο", "years ago" => "χρόνια πριν", -"%s is available. Get <a href=\"%s\">more information</a>" => "%s είναι διαθέσιμα. Δείτε <a href=\"%s\">περισσότερες πληροφορίες</a>", +"%s is available. Get <a href=\"%s\">more information</a>" => "%s είναι διαθέσιμο. Δείτε <a href=\"%s\">περισσότερες πληροφορίες</a>", "up to date" => "ενημερωμένο", "updates check is disabled" => "ο έλεγχος ενημερώσεων είναι απενεργοποιημένος", "Could not find category \"%s\"" => "Αδυναμία εύρεσης κατηγορίας \"%s\"" diff --git a/lib/l10n/ka.php b/lib/l10n/ka.php new file mode 100644 index 00000000000..e5a3e659668 --- /dev/null +++ b/lib/l10n/ka.php @@ -0,0 +1,15 @@ +<?php $TRANSLATIONS = array( +"Help" => "შველა", +"Personal" => "პერსონა", +"Users" => "მომხმარებლები", +"Admin" => "ადმინისტრატორი", +"ZIP download is turned off." => "ZIP გადმოწერა გამორთულია", +"Files" => "ფაილები", +"seconds ago" => "წამის წინ", +"1 minute ago" => "1 წუთის წინ", +"%d minutes ago" => "%d წუთის წინ", +"1 hour ago" => "1 საათის წინ", +"today" => "დღეს", +"yesterday" => "გუშინ", +"%d days ago" => "%d დღის წინ" +); diff --git a/lib/l10n/ur_PK.php b/lib/l10n/ur_PK.php new file mode 100644 index 00000000000..7e09d79bc68 --- /dev/null +++ b/lib/l10n/ur_PK.php @@ -0,0 +1,8 @@ +<?php $TRANSLATIONS = array( +"Help" => "مدد", +"Personal" => "ذاتی", +"Settings" => "سیٹینگز", +"Users" => "یوزرز", +"Apps" => "ایپز", +"Admin" => "ایڈمن" +); diff --git a/lib/setup.php b/lib/setup.php index b7fe2f6a2cc..8f772e663e2 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -628,7 +628,7 @@ class OC_Setup { } else { $entry = ''; } - throw new Exception($l->t('MS SQL username and/or password not valid: $s', array($entry))); + throw new Exception($l->t('MS SQL username and/or password not valid: %s', array($entry))); } OC_Config::setValue('dbuser', $dbuser); diff --git a/lib/user.php b/lib/user.php index f84aa8fad83..6144f0f6bf9 100644 --- a/lib/user.php +++ b/lib/user.php @@ -530,7 +530,7 @@ class OC_User { $displayNames = array_merge($displayNames, $backendDisplayNames); } } - ksort($displayNames); + asort($displayNames); return $displayNames; } |