summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/app.php1
-rw-r--r--lib/db.php9
-rw-r--r--lib/filestorage.php2
-rw-r--r--lib/filesystem.php17
-rw-r--r--lib/filesystemview.php2
-rw-r--r--lib/helper.php6
-rw-r--r--lib/image.php9
-rw-r--r--lib/migrate.php2
-rw-r--r--lib/ocs.php6
-rw-r--r--lib/ocsclient.php2
-rw-r--r--lib/preferences.php8
-rw-r--r--lib/setup.php1
-rw-r--r--lib/streamwrappers.php5
-rw-r--r--lib/template.php1
-rw-r--r--lib/templatelayout.php2
-rwxr-xr-xlib/util.php2
16 files changed, 28 insertions, 47 deletions
diff --git a/lib/app.php b/lib/app.php
index caf8bd82521..2b975de9ef0 100755
--- a/lib/app.php
+++ b/lib/app.php
@@ -27,7 +27,6 @@
* upgrading and removing apps.
*/
class OC_App{
- static private $init = false;
static private $activeapp = '';
static private $navigation = array();
static private $settingsForms = array();
diff --git a/lib/db.php b/lib/db.php
index 2a06d72ea32..6f083d17cfb 100644
--- a/lib/db.php
+++ b/lib/db.php
@@ -33,8 +33,6 @@ class OC_DB {
static private $MDB2=false;
static private $PDO=false;
static private $schema=false;
- static private $affected=0;
- static private $result=false;
static private $inTransaction=false;
static private $prefix=null;
static private $type=null;
@@ -222,7 +220,7 @@ class OC_DB {
echo( '<b>can not connect to database, using '.$type.'. ('.self::$MDB2->getUserInfo().')</center>');
OC_Log::write('core',self::$MDB2->getUserInfo(),OC_Log::FATAL);
OC_Log::write('core',self::$MDB2->getMessage(),OC_Log::FATAL);
- die( $error );
+ die();
}
// We always, really always want associative arrays
@@ -519,8 +517,9 @@ class OC_DB {
// Delete our temporary file
unlink( $file2 );
- foreach($definition['tables'] as $name=>$table){
- self::dropTable($name);
+ $tables=array_keys($definition['tables']);
+ foreach($tables as $table){
+ self::dropTable($table);
}
}
diff --git a/lib/filestorage.php b/lib/filestorage.php
index 71ef4aed00b..e786127d525 100644
--- a/lib/filestorage.php
+++ b/lib/filestorage.php
@@ -24,7 +24,7 @@
* Provde a common interface to all different storage options
*/
abstract class OC_Filestorage{
- public function __construct($parameters){}
+ abstract public function __construct($parameters);
abstract public function mkdir($path);
abstract public function rmdir($path);
abstract public function opendir($path);
diff --git a/lib/filesystem.php b/lib/filesystem.php
index 65318fa3ab6..5b31ed6c703 100644
--- a/lib/filesystem.php
+++ b/lib/filesystem.php
@@ -46,9 +46,10 @@
class OC_Filesystem{
static private $storages=array();
static private $mounts=array();
- static private $storageTypes=array();
public static $loaded=false;
- private $fakeRoot='';
+ /**
+ * @var OC_Filestorage $defaultInstance
+ */
static private $defaultInstance;
@@ -155,7 +156,8 @@ class OC_Filesystem{
}
$path=str_replace('//', '/',$path);
$foundMountPoint='';
- foreach(OC_Filesystem::$mounts as $mountpoint=>$storage){
+ $mountPoints=array_keys(OC_Filesystem::$mounts);
+ foreach($mountPoints as $mountpoint){
if($mountpoint==$path){
return $mountpoint;
}
@@ -260,10 +262,7 @@ class OC_Filesystem{
* tear down the filesystem, removing all storage providers
*/
static public function tearDown(){
- foreach(self::$storages as $mountpoint=>$storage){
- unset(self::$storages[$mountpoint]);
- }
- $fakeRoot='';
+ self::$storages=array();
}
/**
@@ -287,7 +286,7 @@ class OC_Filesystem{
* @return bool
*/
static public function chroot($fakeRoot){
- return self::$defaultInstance->chroot($path);
+ return self::$defaultInstance->chroot($fakeRoot);
}
/**
@@ -485,7 +484,7 @@ class OC_Filesystem{
* @return bool
*/
static public function hasUpdated($path,$time){
- return self::$defaultInstance->hasUpdated($path);
+ return self::$defaultInstance->hasUpdated($path,$time);
}
}
diff --git a/lib/filesystemview.php b/lib/filesystemview.php
index 448663bb081..a23d7bbe7fd 100644
--- a/lib/filesystemview.php
+++ b/lib/filesystemview.php
@@ -393,7 +393,7 @@ class OC_FilesystemView {
return $this->basicOperation('getMimeType',$path);
}
public function hash($type,$path){
- return $this->basicOperation('hash',$path,array('read'));
+ return $this->basicOperation('hash',$path,array('read'),$type);
}
public function free_space($path='/'){
diff --git a/lib/helper.php b/lib/helper.php
index 0d18098a4e7..c4f7e8b2e19 100644
--- a/lib/helper.php
+++ b/lib/helper.php
@@ -676,10 +676,10 @@ class OC_Helper {
*/
public static function mb_str_replace($search, $replace, $subject, $encoding = 'UTF-8', &$count = null) {
$offset = -1;
- $length = mb_strlen($search, 'UTF-8');
- while(($i = mb_strrpos($subject, $search, $offset, 'UTF-8'))) {
+ $length = mb_strlen($search, $encoding);
+ while(($i = mb_strrpos($subject, $search, $offset, $encoding))) {
$subject = OC_Helper::mb_substr_replace($subject, $replace, $i, $length);
- $offset = $i - mb_strlen($subject, 'UTF-8') - 1;
+ $offset = $i - mb_strlen($subject, $encoding) - 1;
$count++;
}
return $subject;
diff --git a/lib/image.php b/lib/image.php
index 01e843d8316..c438b3d67f6 100644
--- a/lib/image.php
+++ b/lib/image.php
@@ -24,8 +24,8 @@
//From user comments at http://dk2.php.net/manual/en/function.exif-imagetype.php
if ( ! function_exists( 'exif_imagetype' ) ) {
function exif_imagetype ( $filename ) {
- if ( ( list($width, $height, $type, $attr) = getimagesize( $filename ) ) !== false ) {
- return $type;
+ if ( ( $info = getimagesize( $filename ) ) !== false ) {
+ return $info[2];
}
return false;
}
@@ -364,7 +364,7 @@ class OC_Image {
public function load($imageref) {
if(is_resource($imageref)) {
if(get_resource_type($imageref) == 'gd') {
- $this->resource = $res;
+ $this->resource = $imageref;
return $this->resource;
} elseif(in_array(get_resource_type($imageref), array('file','stream'))) {
return $this->loadFromFileHandle($imageref);
@@ -650,9 +650,6 @@ class OC_Image {
OC_Log::write('core',__METHOD__.'(): No image loaded', OC_Log::ERROR);
return false;
}
- $width_orig=imageSX($this->resource);
- $height_orig=imageSY($this->resource);
- //OC_Log::write('core',__METHOD__.'(): Original size: '.$width_orig.'x'.$height_orig, OC_Log::DEBUG);
$process = imagecreatetruecolor($w, $h);
if ($process == false) {
OC_Log::write('core',__METHOD__.'(): Error creating true color image',OC_Log::ERROR);
diff --git a/lib/migrate.php b/lib/migrate.php
index f788a637d3c..1b6367ed6ec 100644
--- a/lib/migrate.php
+++ b/lib/migrate.php
@@ -91,7 +91,7 @@ class OC_Migrate{
if( self::$exporttype == 'user' ){
// Check user exists
if( !is_null($uid) ){
- $db = new OC_User_Database;
+ $db = new OC_User_Database;
if( !$db->userExists( $uid ) ){
OC_Log::write('migration', 'User: '.$uid.' is not in the database and so cannot be exported.', OC_Log::ERROR);
return json_encode( array( 'success' => false ) );
diff --git a/lib/ocs.php b/lib/ocs.php
index 1be41202d78..77dd437d6c6 100644
--- a/lib/ocs.php
+++ b/lib/ocs.php
@@ -88,7 +88,6 @@ class OC_OCS {
$method='get';
}elseif($_SERVER['REQUEST_METHOD'] == 'PUT') {
$method='put';
- parse_str(file_get_contents("php://input"),$put_vars);
}elseif($_SERVER['REQUEST_METHOD'] == 'POST') {
$method='post';
}else{
@@ -356,9 +355,6 @@ class OC_OCS {
* @return string xml/json
*/
private static function apiConfig($format) {
- $user=OC_OCS::checkpassword(false);
- $url=substr(OCP\Util::getServerHost().$_SERVER['SCRIPT_NAME'],0,-11).'';
-
$xml['version']='1.5';
$xml['website']='ownCloud';
$xml['host']=OCP\Util::getServerHost();
@@ -416,7 +412,7 @@ class OC_OCS {
*/
private static function activityPut($format,$message) {
// not implemented in ownCloud
- $user=OC_OCS::checkpassword();
+ OC_OCS::checkpassword();
echo(OC_OCS::generatexml($format,'ok',100,''));
}
diff --git a/lib/ocsclient.php b/lib/ocsclient.php
index 951d761d7e6..ae35470cff6 100644
--- a/lib/ocsclient.php
+++ b/lib/ocsclient.php
@@ -71,7 +71,7 @@ class OC_OCSClient{
$tmp=$data->data;
$cats=array();
- foreach($tmp->category as $key=>$value) {
+ foreach($tmp->category as $value) {
$id= (int) $value->id;
$name= (string) $value->name;
diff --git a/lib/preferences.php b/lib/preferences.php
index f72378ce94f..c91423e69bc 100644
--- a/lib/preferences.php
+++ b/lib/preferences.php
@@ -165,7 +165,7 @@ class OC_Preferences{
public static function deleteKey( $user, $app, $key ){
// No need for more comments
$query = OC_DB::prepare( 'DELETE FROM *PREFIX*preferences WHERE userid = ? AND appid = ? AND configkey = ?' );
- $result = $query->execute( array( $user, $app, $key ));
+ $query->execute( array( $user, $app, $key ));
return true;
}
@@ -181,7 +181,7 @@ class OC_Preferences{
public static function deleteApp( $user, $app ){
// No need for more comments
$query = OC_DB::prepare( 'DELETE FROM *PREFIX*preferences WHERE userid = ? AND appid = ?' );
- $result = $query->execute( array( $user, $app ));
+ $query->execute( array( $user, $app ));
return true;
}
@@ -196,7 +196,7 @@ class OC_Preferences{
public static function deleteUser( $user ){
// No need for more comments
$query = OC_DB::prepare( 'DELETE FROM *PREFIX*preferences WHERE userid = ?' );
- $result = $query->execute( array( $user ));
+ $query->execute( array( $user ));
return true;
}
@@ -211,7 +211,7 @@ class OC_Preferences{
public static function deleteAppFromAllUsers( $app ){
// No need for more comments
$query = OC_DB::prepare( 'DELETE FROM *PREFIX*preferences WHERE appid = ?' );
- $result = $query->execute( array( $app ));
+ $query->execute( array( $app ));
return true;
}
diff --git a/lib/setup.php b/lib/setup.php
index 027c84db092..4d71bed86e2 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -102,7 +102,6 @@ class OC_Setup {
}
else {
$oldUser=OC_Config::getValue('dbuser', false);
- $oldPassword=OC_Config::getValue('dbpassword', false);
$query="SELECT user FROM mysql.user WHERE user='$dbuser'"; //this should be enough to check for admin rights in mysql
if(mysql_query($query, $connection)) {
diff --git a/lib/streamwrappers.php b/lib/streamwrappers.php
index f1e0fa0e1d9..f502c6170bd 100644
--- a/lib/streamwrappers.php
+++ b/lib/streamwrappers.php
@@ -1,6 +1,4 @@
<?php
-global $FAKEDIRS;
-$FAKEDIRS=array();
class OC_FakeDirStream{
public static $dirs=array();
@@ -8,8 +6,6 @@ class OC_FakeDirStream{
private $index;
public function dir_opendir($path,$options){
- global $FAKEDIRS;
- $url=parse_url($path);
$this->name=substr($path,strlen('fakedir://'));
$this->index=0;
if(!isset(self::$dirs[$this->name])){
@@ -161,7 +157,6 @@ class OC_StaticStreamWrapper {
public function stream_write($data) {
if (!$this->writable) return 0;
$size = strlen($data);
- $len = strlen(self::$data[$this->path]);
if ($this->stream_eof()) {
self::$data[$this->path] .= $data;
} else {
diff --git a/lib/template.php b/lib/template.php
index 3b48c27b9b4..5b6999af533 100644
--- a/lib/template.php
+++ b/lib/template.php
@@ -82,7 +82,6 @@ function relative_modified_date($timestamp) {
$diffhours = round($diffminutes/60);
$diffdays = round($diffhours/24);
$diffmonths = round($diffdays/31);
- $diffyears = round($diffdays/365);
if($timediff < 60) { return $l->t('seconds ago'); }
else if($timediff < 120) { return $l->t('1 minute ago'); }
diff --git a/lib/templatelayout.php b/lib/templatelayout.php
index d33a87e9e4c..588a7845997 100644
--- a/lib/templatelayout.php
+++ b/lib/templatelayout.php
@@ -123,7 +123,7 @@ class OC_TemplateLayout extends OC_Template {
elseif(self::appendIfExist($files, $apps_dir['path'], $apps_dir['url'], "$style.css")) { $append =true; break; }
}
if(! $append) {
- echo('css file not found: style:'.$script.' formfactor:'.$fext.' webroot:'.OC::$WEBROOT.' serverroot:'.OC::$SERVERROOT);
+ echo('css file not found: style:'.$style.' formfactor:'.$fext.' webroot:'.OC::$WEBROOT.' serverroot:'.OC::$SERVERROOT);
die();
}
}
diff --git a/lib/util.php b/lib/util.php
index 2a7b8a922f9..f35e5a18e42 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -189,8 +189,6 @@ class OC_Util {
if(!(is_callable('sqlite_open') or class_exists('SQLite3')) and !is_callable('mysql_connect') and !is_callable('pg_connect')){
$errors[]=array('error'=>'No database drivers (sqlite, mysql, or postgresql) installed.<br/>','hint'=>'');//TODO: sane hint
}
- $CONFIG_DBTYPE = OC_Config::getValue( "dbtype", "sqlite" );
- $CONFIG_DBNAME = OC_Config::getValue( "dbname", "owncloud" );
//common hint for all file permissons error messages
$permissionsHint="Permissions can usually be fixed by giving the webserver write access to the ownCloud directory";
/span> "二月" #: js/config.php:45 msgid "March" msgstr "三月" #: js/config.php:46 msgid "April" msgstr "四月" #: js/config.php:47 msgid "May" msgstr "五月" #: js/config.php:48 msgid "June" msgstr "六月" #: js/config.php:49 msgid "July" msgstr "七月" #: js/config.php:50 msgid "August" msgstr "八月" #: js/config.php:51 msgid "September" msgstr "九月" #: js/config.php:52 msgid "October" msgstr "十月" #: js/config.php:53 msgid "November" msgstr "十一月" #: js/config.php:54 msgid "December" msgstr "十二月" #: js/js.js:293 msgid "Settings" msgstr "设置" #: js/js.js:725 msgid "seconds ago" msgstr "秒前" #: js/js.js:726 msgid "1 minute ago" msgstr "一分钟前" #: js/js.js:727 msgid "{minutes} minutes ago" msgstr "{minutes} 分钟前" #: js/js.js:728 msgid "1 hour ago" msgstr "1小时前" #: js/js.js:729 msgid "{hours} hours ago" msgstr "{hours} 小时前" #: js/js.js:730 msgid "today" msgstr "今天" #: js/js.js:731 msgid "yesterday" msgstr "昨天" #: js/js.js:732 msgid "{days} days ago" msgstr "{days} 天前" #: js/js.js:733 msgid "last month" msgstr "上月" #: js/js.js:734 msgid "{months} months ago" msgstr "{months} 月前" #: js/js.js:735 msgid "months ago" msgstr "月前" #: js/js.js:736 msgid "last year" msgstr "去年" #: js/js.js:737 msgid "years ago" msgstr "年前" #: js/oc-dialogs.js:117 msgid "Choose" msgstr "选择(&C)..." #: js/oc-dialogs.js:122 msgid "Cancel" msgstr "取消" #: js/oc-dialogs.js:141 js/oc-dialogs.js:200 msgid "Error loading file picker template" msgstr "加载文件选择器模板出错" #: js/oc-dialogs.js:164 msgid "Yes" msgstr "是" #: js/oc-dialogs.js:172 msgid "No" msgstr "否" #: js/oc-dialogs.js:185 msgid "Ok" msgstr "好" #: js/oc-vcategories.js:5 js/oc-vcategories.js:85 js/oc-vcategories.js:102 #: js/oc-vcategories.js:117 js/oc-vcategories.js:132 js/oc-vcategories.js:162 msgid "The object type is not specified." msgstr "未指定对象类型。" #: js/oc-vcategories.js:14 js/oc-vcategories.js:80 js/oc-vcategories.js:95 #: js/oc-vcategories.js:110 js/oc-vcategories.js:125 js/oc-vcategories.js:136 #: js/oc-vcategories.js:172 js/oc-vcategories.js:189 js/oc-vcategories.js:195 #: js/oc-vcategories.js:199 js/share.js:136 js/share.js:143 js/share.js:620 #: js/share.js:632 msgid "Error" msgstr "错误" #: js/oc-vcategories.js:179 msgid "The app name is not specified." msgstr "未指定App名称。" #: js/oc-vcategories.js:194 msgid "The required file {file} is not installed!" msgstr "所需文件{file}未安装!" #: js/share.js:30 js/share.js:45 js/share.js:87 msgid "Shared" msgstr "已共享" #: js/share.js:90 msgid "Share" msgstr "分享" #: js/share.js:125 js/share.js:660 msgid "Error while sharing" msgstr "共享时出错" #: js/share.js:136 msgid "Error while unsharing" msgstr "取消共享时出错" #: js/share.js:143 msgid "Error while changing permissions" msgstr "修改权限时出错" #: js/share.js:152 msgid "Shared with you and the group {group} by {owner}" msgstr "{owner} 共享给您及 {group} 组" #: js/share.js:154 msgid "Shared with you by {owner}" msgstr "{owner} 与您共享" #: js/share.js:172 msgid "Share with" msgstr "分享之" #: js/share.js:177 msgid "Share with link" msgstr "共享链接" #: js/share.js:180 msgid "Password protect" msgstr "密码保护" #: js/share.js:182 templates/installation.php:54 templates/login.php:26 msgid "Password" msgstr "密码" #: js/share.js:187 msgid "Allow Public Upload" msgstr "允许公开上传" #: js/share.js:191 msgid "Email link to person" msgstr "发送链接到个人" #: js/share.js:192 msgid "Send" msgstr "发送" #: js/share.js:197 msgid "Set expiration date" msgstr "设置过期日期" #: js/share.js:198 msgid "Expiration date" msgstr "过期日期" #: js/share.js:230 msgid "Share via email:" msgstr "通过Email共享" #: js/share.js:232 msgid "No people found" msgstr "未找到此人" #: js/share.js:270 msgid "Resharing is not allowed" msgstr "不允许二次共享" #: js/share.js:306 msgid "Shared in {item} with {user}" msgstr "在 {item} 与 {user} 共享。" #: js/share.js:327 msgid "Unshare" msgstr "取消共享" #: js/share.js:339 msgid "can edit" msgstr "可以修改" #: js/share.js:341 msgid "access control" msgstr "访问控制" #: js/share.js:344 msgid "create" msgstr "创建" #: js/share.js:347 msgid "update" msgstr "更新" #: js/share.js:350 msgid "delete" msgstr "删除" #: js/share.js:353 msgid "share" msgstr "共享" #: js/share.js:387 js/share.js:607 msgid "Password protected" msgstr "密码已受保护" #: js/share.js:620 msgid "Error unsetting expiration date" msgstr "取消设置过期日期时出错" #: js/share.js:632 msgid "Error setting expiration date" msgstr "设置过期日期时出错" #: js/share.js:647 msgid "Sending ..." msgstr "正在发送..." #: js/share.js:658 msgid "Email sent" msgstr "邮件已发送" #: js/update.js:17 msgid "" "The update was unsuccessful. Please report this issue to the <a " "href=\"https://github.com/owncloud/core/issues\" target=\"_blank\">ownCloud " "community</a>." msgstr "更新不成功。请汇报将此问题汇报给 <a href=\"https://github.com/owncloud/core/issues\" target=\"_blank\">ownCloud 社区</a>。" #: js/update.js:21 msgid "The update was successful. Redirecting you to ownCloud now." msgstr "更新成功。正在重定向至 ownCloud。" #: lostpassword/controller.php:60 msgid "ownCloud password reset" msgstr "重置 ownCloud 密码" #: lostpassword/templates/email.php:2 msgid "Use the following link to reset your password: {link}" msgstr "使用以下链接重置您的密码:{link}" #: lostpassword/templates/lostpassword.php:4 msgid "" "The link to reset your password has been sent to your email.<br>If you do " "not receive it within a reasonable amount of time, check your spam/junk " "folders.<br>If it is not there ask your local administrator ." msgstr "重置密码的链接已发送到您的邮箱。<br>如果您觉得在合理的时间内还未收到邮件,请查看 spam/junk 目录。<br>如果没有在那里,请询问您的本地管理员。" #: lostpassword/templates/lostpassword.php:12 msgid "Request failed!<br>Did you make sure your email/username was right?" msgstr "请求失败<br>您确定您的邮箱/用户名是正确的?" #: lostpassword/templates/lostpassword.php:15 msgid "You will receive a link to reset your password via Email." msgstr "您将会收到包含可以重置密码链接的邮件。" #: lostpassword/templates/lostpassword.php:18 templates/installation.php:48 #: templates/login.php:19 msgid "Username" msgstr "用户名" #: lostpassword/templates/lostpassword.php:22 msgid "" "Your files are encrypted. If you haven't enabled the recovery key, there " "will be no way to get your data back after your password is reset. If you " "are not sure what to do, please contact your administrator before you " "continue. Do you really want to continue?" msgstr "您的文件已加密。如果您不启用恢复密钥,您将无法在重设密码后取回文件。如果您不太确定,请在继续前联系您的管理员。您真的要继续吗?" #: lostpassword/templates/lostpassword.php:24 msgid "Yes, I really want to reset my password now" msgstr "使得,我真的要现在重设密码" #: lostpassword/templates/lostpassword.php:27 msgid "Request reset" msgstr "请求重置" #: lostpassword/templates/resetpassword.php:4 msgid "Your password was reset" msgstr "您的密码已重置" #: lostpassword/templates/resetpassword.php:5 msgid "To login page" msgstr "到登录页面" #: lostpassword/templates/resetpassword.php:8 msgid "New password" msgstr "新密码" #: lostpassword/templates/resetpassword.php:11 msgid "Reset password" msgstr "重置密码" #: strings.php:5 msgid "Personal" msgstr "个人" #: strings.php:6 msgid "Users" msgstr "用户" #: strings.php:7 msgid "Apps" msgstr "应用" #: strings.php:8 msgid "Admin" msgstr "管理" #: strings.php:9 msgid "Help" msgstr "帮助" #: templates/403.php:12 msgid "Access forbidden" msgstr "访问禁止" #: templates/404.php:12 msgid "Cloud not found" msgstr "未找到云" #: templates/altmail.php:4 #, php-format msgid "" "Hey there,\n" "\n" "just letting you know that %s shared %s with you.\n" "View it: %s\n" "\n" "Cheers!" msgstr "您好,\n\n%s 向您分享了 %s。\n查看: %s" #: templates/edit_categories_dialog.php:4 msgid "Edit categories" msgstr "编辑分类" #: templates/edit_categories_dialog.php:16 msgid "Add" msgstr "增加" #: templates/installation.php:24 templates/installation.php:31 #: templates/installation.php:38 msgid "Security Warning" msgstr "安全警告" #: templates/installation.php:25 msgid "Your PHP version is vulnerable to the NULL Byte attack (CVE-2006-7243)" msgstr "你的PHP版本容易受到空字节攻击 (CVE-2006-7243)" #: templates/installation.php:26 msgid "Please update your PHP installation to use ownCloud securely." msgstr "为保证安全使用 ownCloud 请更新您的PHP。" #: templates/installation.php:32 msgid "" "No secure random number generator is available, please enable the PHP " "OpenSSL extension." msgstr "随机数生成器无效,请启用PHP的OpenSSL扩展" #: templates/installation.php:33 msgid "" "Without a secure random number generator an attacker may be able to predict " "password reset tokens and take over your account." msgstr "没有安全随机码生成器,攻击者可能会猜测密码重置信息从而窃取您的账户" #: templates/installation.php:39 msgid "" "Your data directory and files are probably accessible from the internet " "because the .htaccess file does not work." msgstr "您的数据目录和文件可能可以直接被互联网访问,因为 .htaccess 并未正常工作。" #: templates/installation.php:40 msgid "" "For information how to properly configure your server, please see the <a " "href=\"http://doc.owncloud.org/server/5.0/admin_manual/installation.html\" " "target=\"_blank\">documentation</a>." msgstr "关于如何配置服务器,请参见 <a href=\"http://doc.owncloud.org/server/5.0/admin_manual/installation.html\" target=\"_blank\">此文档</a>。" #: templates/installation.php:44 msgid "Create an <strong>admin account</strong>" msgstr "创建<strong>管理员账号</strong>" #: templates/installation.php:62 msgid "Advanced" msgstr "高级" #: templates/installation.php:64 msgid "Data folder" msgstr "数据目录" #: templates/installation.php:74 msgid "Configure the database" msgstr "配置数据库" #: templates/installation.php:79 templates/installation.php:91 #: templates/installation.php:102 templates/installation.php:113 #: templates/installation.php:125 msgid "will be used" msgstr "将被使用" #: templates/installation.php:137 msgid "Database user" msgstr "数据库用户" #: templates/installation.php:144 msgid "Database password" msgstr "数据库密码" #: templates/installation.php:149 msgid "Database name" msgstr "数据库名" #: templates/installation.php:159 msgid "Database tablespace" msgstr "数据库表空间" #: templates/installation.php:166 msgid "Database host" msgstr "数据库主机" #: templates/installation.php:172 msgid "Finish setup" msgstr "安装完成" #: templates/layout.user.php:43 #, php-format msgid "%s is available. Get more information on how to update." msgstr "%s 可用。获取更多关于如何升级的信息。" #: templates/layout.user.php:68 msgid "Log out" msgstr "注销" #: templates/login.php:9 msgid "Automatic logon rejected!" msgstr "自动登录被拒绝!" #: templates/login.php:10 msgid "" "If you did not change your password recently, your account may be " "compromised!" msgstr "如果您没有最近修改您的密码,您的帐户可能会受到影响!" #: templates/login.php:12 msgid "Please change your password to secure your account again." msgstr "请修改您的密码,以保护您的账户安全。" #: templates/login.php:34 msgid "Lost your password?" msgstr "忘记密码?" #: templates/login.php:39 msgid "remember" msgstr "记住" #: templates/login.php:41 msgid "Log in" msgstr "登录" #: templates/login.php:47 msgid "Alternative Logins" msgstr "其他登录方式" #: templates/mail.php:16 #, php-format msgid "" "Hey there,<br><br>just letting you know that %s shared »%s« with you.<br><a " "href=\"%s\">View it!</a><br><br>Cheers!" msgstr "您好,<br><br>%s 向您分享了 »%s«。<br><a href=\"%s\">查看</a>" #: templates/part.pagenavi.php:3 msgid "prev" msgstr "上一页" #: templates/part.pagenavi.php:20 msgid "next" msgstr "下一页" #: templates/update.php:3 #, php-format msgid "Updating ownCloud to version %s, this may take a while." msgstr "更新 ownCloud 到版本 %s,这可能需要一些时间。"