From 64d4d57615f1002d3993cc319959c2b97e4f6775 Mon Sep 17 00:00:00 2001 From: "Martin T. H. Sandsmark" Date: Fri, 16 Jul 2010 11:36:03 +0200 Subject: [PATCH] fix permissions, start to implement private data api --- .gitignore | 0 README | 0 TODO | 2 + admin/index.php | 0 config/.gitignore | 0 config/config.sample.php | 0 css/default.php | 0 css/small.php | 0 db_structure.xml | 31 +++++++++ docs/FAQs | 0 docs/INSTALL | 0 docs/TODO | 0 docs/owncloud.sql | 0 files/api.php | 0 files/get_files.php | 0 files/index.php | 0 files/open_file.php | 0 files/upload.php | 0 img/arrow.png | Bin img/arrow_down.png | Bin img/arrow_up.png | Bin img/dots.png | Bin img/icons/delete.png | Bin img/icons/folder.png | Bin img/icons/loading.gif | Bin img/icons/other.png | Bin img/icons/rename.png | Bin img/owncloud-icon.png | Bin img/owncloud-logo-small.png | Bin img/owncloud-logo.png | Bin inc/Archive/Tar.php | 0 inc/Console/Getopt.php | 0 inc/HTTP/WebDAV/Server.php | 0 inc/HTTP/WebDAV/Server/Filesystem.php | 0 inc/HTTP/WebDAV/Tools/_parse_lockinfo.php | 0 inc/HTTP/WebDAV/Tools/_parse_propfind.php | 0 inc/HTTP/WebDAV/Tools/_parse_proppatch.php | 0 inc/Log.php | 0 inc/Log/composite.php | 0 inc/Log/console.php | 0 inc/Log/daemon.php | 0 inc/Log/display.php | 0 inc/Log/error_log.php | 0 inc/Log/file.php | 0 inc/Log/mail.php | 0 inc/Log/mcal.php | 0 inc/Log/null.php | 0 inc/Log/observer.php | 0 inc/Log/sql.php | 0 inc/Log/sqlite.php | 0 inc/Log/syslog.php | 0 inc/Log/win.php | 0 inc/MDB2.php | 0 inc/MDB2/Date.php | 0 inc/MDB2/Driver/Datatype/Common.php | 0 inc/MDB2/Driver/Datatype/mysql.php | 0 inc/MDB2/Driver/Datatype/pgsql.php | 0 inc/MDB2/Driver/Datatype/sqlite.php | 0 inc/MDB2/Driver/Function/Common.php | 0 inc/MDB2/Driver/Function/mysql.php | 0 inc/MDB2/Driver/Function/pgsql.php | 0 inc/MDB2/Driver/Function/sqlite.php | 0 inc/MDB2/Driver/Manager/Common.php | 0 inc/MDB2/Driver/Manager/mysql.php | 0 inc/MDB2/Driver/Manager/pgsql.php | 0 inc/MDB2/Driver/Manager/sqlite.php | 0 inc/MDB2/Driver/Native/Common.php | 0 inc/MDB2/Driver/Native/mysql.php | 0 inc/MDB2/Driver/Native/pgsql.php | 0 inc/MDB2/Driver/Native/sqlite.php | 0 inc/MDB2/Driver/Reverse/Common.php | 0 inc/MDB2/Driver/Reverse/mysql.php | 0 inc/MDB2/Driver/Reverse/pgsql.php | 0 inc/MDB2/Driver/Reverse/sqlite.php | 0 inc/MDB2/Driver/mysql.php | 0 inc/MDB2/Driver/pgsql.php | 0 inc/MDB2/Driver/sqlite.php | 0 inc/MDB2/Extended.php | 0 inc/MDB2/Iterator.php | 0 inc/MDB2/LOB.php | 0 inc/Mail.php | 0 inc/Mail/RFC822.php | 0 inc/Mail/mail.php | 0 inc/Mail/mime.php | 0 inc/Mail/mimeDecode.php | 0 inc/Mail/mimePart.php | 0 inc/Mail/null.php | 0 inc/Mail/sendmail.php | 0 inc/Mail/smtp.php | 0 inc/Mail/xmail.dtd | 0 inc/Mail/xmail.xsl | 0 inc/Net/SMTP.php | 0 inc/Net/Socket.php | 0 inc/OS/Guess.php | 0 inc/PEAR.php | 0 inc/PEAR/Autoloader.php | 0 inc/PEAR/Builder.php | 0 inc/PEAR/Command.php | 0 inc/PEAR/Command/Auth.php | 0 inc/PEAR/Command/Build.php | 0 inc/PEAR/Command/Common.php | 0 inc/PEAR/Command/Config.php | 0 inc/PEAR/Command/Install.php | 0 inc/PEAR/Command/Mirror.php | 0 inc/PEAR/Command/Package.php | 0 inc/PEAR/Command/Registry.php | 0 inc/PEAR/Command/Remote.php | 0 inc/PEAR/Common.php | 0 inc/PEAR/Config.php | 0 inc/PEAR/Dependency.php | 0 inc/PEAR/Downloader.php | 0 inc/PEAR/ErrorStack.php | 0 inc/PEAR/Exception.php | 0 inc/PEAR/Frontend/CLI.php | 0 inc/PEAR/Installer.php | 0 inc/PEAR/Packager.php | 0 inc/PEAR/Registry.php | 0 inc/PEAR/Remote.php | 0 inc/PEAR/RunTest.php | 0 inc/PHPUnit.php | 0 inc/PHPUnit/Assert.php | 0 inc/PHPUnit/GUI/Gtk.php | 0 inc/PHPUnit/GUI/HTML.php | 0 inc/PHPUnit/GUI/SetupDecorator.php | 0 inc/PHPUnit/RepeatedTest.php | 0 inc/PHPUnit/Skeleton.php | 0 inc/PHPUnit/TestCase.php | 0 inc/PHPUnit/TestDecorator.php | 0 inc/PHPUnit/TestFailure.php | 0 inc/PHPUnit/TestListener.php | 0 inc/PHPUnit/TestResult.php | 0 inc/PHPUnit/TestSuite.php | 0 inc/System.php | 0 inc/XML/Parser.php | 0 inc/XML/RPC.php | 0 inc/XML/RPC/Server.php | 0 inc/docs/HTTP_WebDAV_Server/README | 0 inc/docs/HTTP_WebDAV_Server/dav.txt | 0 inc/docs/HTTP_WebDAV_Server/db/Fileserver.sql | 0 inc/lib_base.php | 0 inc/lib_files.php | 0 inc/lib_filestorage.php | 0 inc/lib_filesystem.php | 0 inc/lib_log.php | 0 inc/lib_ocs.php | 63 +++++++++++++++++- inc/lib_user.php | 0 inc/package.dtd | 0 inc/packages/Archive_Tar.xml | 0 inc/packages/Console_Getopt.xml | 0 inc/packages/DB.xml | 0 inc/packages/Log.xml | 0 inc/packages/Mail.xml | 0 inc/packages/Mail_Mime.xml | 0 inc/packages/Net_SMTP.xml | 0 inc/packages/Net_Socket.xml | 0 inc/packages/PEAR.xml | 0 inc/packages/PHPUnit.xml | 0 inc/packages/XML_Parser.xml | 0 inc/packages/XML_RPC.xml | 0 inc/pearcmd.php | 0 inc/templates/adminform.php | 0 inc/templates/configform.php | 0 inc/templates/footer.php | 0 inc/templates/header.php | 0 inc/templates/loginform.php | 0 index.php | 0 js/ajax.js | 0 js/filebrowser.js | 0 js/lib_ajax.js | 0 js/lib_api.js | 0 js/lib_drag.js | 0 js/lib_event.js | 0 js/lib_files.js | 0 js/lib_notification.js | 0 js/lib_timer.js | 0 js/lib_xmlloader.js | 0 log/index.php | 0 ocs/providers.php | 0 ocs/v1.php | 0 plugins/music/index.php | 0 plugins/music/lib_music.php | 0 plugins/test/index.php | 0 plugins/test/lib_test.php | 0 settings/index.php | 0 webdav/owncloud.php | 0 185 files changed, 95 insertions(+), 1 deletion(-) mode change 100755 => 100644 .gitignore mode change 100755 => 100644 README create mode 100644 TODO mode change 100755 => 100644 admin/index.php mode change 100755 => 100644 config/.gitignore mode change 100755 => 100644 config/config.sample.php mode change 100755 => 100644 css/default.php mode change 100755 => 100644 css/small.php mode change 100755 => 100644 db_structure.xml mode change 100755 => 100644 docs/FAQs mode change 100755 => 100644 docs/INSTALL mode change 100755 => 100644 docs/TODO mode change 100755 => 100644 docs/owncloud.sql mode change 100755 => 100644 files/api.php mode change 100755 => 100644 files/get_files.php mode change 100755 => 100644 files/index.php mode change 100755 => 100644 files/open_file.php mode change 100755 => 100644 files/upload.php mode change 100755 => 100644 img/arrow.png mode change 100755 => 100644 img/arrow_down.png mode change 100755 => 100644 img/arrow_up.png mode change 100755 => 100644 img/dots.png mode change 100755 => 100644 img/icons/delete.png mode change 100755 => 100644 img/icons/folder.png mode change 100755 => 100644 img/icons/loading.gif mode change 100755 => 100644 img/icons/other.png mode change 100755 => 100644 img/icons/rename.png mode change 100755 => 100644 img/owncloud-icon.png mode change 100755 => 100644 img/owncloud-logo-small.png mode change 100755 => 100644 img/owncloud-logo.png mode change 100755 => 100644 inc/Archive/Tar.php mode change 100755 => 100644 inc/Console/Getopt.php mode change 100755 => 100644 inc/HTTP/WebDAV/Server.php mode change 100755 => 100644 inc/HTTP/WebDAV/Server/Filesystem.php mode change 100755 => 100644 inc/HTTP/WebDAV/Tools/_parse_lockinfo.php mode change 100755 => 100644 inc/HTTP/WebDAV/Tools/_parse_propfind.php mode change 100755 => 100644 inc/HTTP/WebDAV/Tools/_parse_proppatch.php mode change 100755 => 100644 inc/Log.php mode change 100755 => 100644 inc/Log/composite.php mode change 100755 => 100644 inc/Log/console.php mode change 100755 => 100644 inc/Log/daemon.php mode change 100755 => 100644 inc/Log/display.php mode change 100755 => 100644 inc/Log/error_log.php mode change 100755 => 100644 inc/Log/file.php mode change 100755 => 100644 inc/Log/mail.php mode change 100755 => 100644 inc/Log/mcal.php mode change 100755 => 100644 inc/Log/null.php mode change 100755 => 100644 inc/Log/observer.php mode change 100755 => 100644 inc/Log/sql.php mode change 100755 => 100644 inc/Log/sqlite.php mode change 100755 => 100644 inc/Log/syslog.php mode change 100755 => 100644 inc/Log/win.php mode change 100755 => 100644 inc/MDB2.php mode change 100755 => 100644 inc/MDB2/Date.php mode change 100755 => 100644 inc/MDB2/Driver/Datatype/Common.php mode change 100755 => 100644 inc/MDB2/Driver/Datatype/mysql.php mode change 100755 => 100644 inc/MDB2/Driver/Datatype/pgsql.php mode change 100755 => 100644 inc/MDB2/Driver/Datatype/sqlite.php mode change 100755 => 100644 inc/MDB2/Driver/Function/Common.php mode change 100755 => 100644 inc/MDB2/Driver/Function/mysql.php mode change 100755 => 100644 inc/MDB2/Driver/Function/pgsql.php mode change 100755 => 100644 inc/MDB2/Driver/Function/sqlite.php mode change 100755 => 100644 inc/MDB2/Driver/Manager/Common.php mode change 100755 => 100644 inc/MDB2/Driver/Manager/mysql.php mode change 100755 => 100644 inc/MDB2/Driver/Manager/pgsql.php mode change 100755 => 100644 inc/MDB2/Driver/Manager/sqlite.php mode change 100755 => 100644 inc/MDB2/Driver/Native/Common.php mode change 100755 => 100644 inc/MDB2/Driver/Native/mysql.php mode change 100755 => 100644 inc/MDB2/Driver/Native/pgsql.php mode change 100755 => 100644 inc/MDB2/Driver/Native/sqlite.php mode change 100755 => 100644 inc/MDB2/Driver/Reverse/Common.php mode change 100755 => 100644 inc/MDB2/Driver/Reverse/mysql.php mode change 100755 => 100644 inc/MDB2/Driver/Reverse/pgsql.php mode change 100755 => 100644 inc/MDB2/Driver/Reverse/sqlite.php mode change 100755 => 100644 inc/MDB2/Driver/mysql.php mode change 100755 => 100644 inc/MDB2/Driver/pgsql.php mode change 100755 => 100644 inc/MDB2/Driver/sqlite.php mode change 100755 => 100644 inc/MDB2/Extended.php mode change 100755 => 100644 inc/MDB2/Iterator.php mode change 100755 => 100644 inc/MDB2/LOB.php mode change 100755 => 100644 inc/Mail.php mode change 100755 => 100644 inc/Mail/RFC822.php mode change 100755 => 100644 inc/Mail/mail.php mode change 100755 => 100644 inc/Mail/mime.php mode change 100755 => 100644 inc/Mail/mimeDecode.php mode change 100755 => 100644 inc/Mail/mimePart.php mode change 100755 => 100644 inc/Mail/null.php mode change 100755 => 100644 inc/Mail/sendmail.php mode change 100755 => 100644 inc/Mail/smtp.php mode change 100755 => 100644 inc/Mail/xmail.dtd mode change 100755 => 100644 inc/Mail/xmail.xsl mode change 100755 => 100644 inc/Net/SMTP.php mode change 100755 => 100644 inc/Net/Socket.php mode change 100755 => 100644 inc/OS/Guess.php mode change 100755 => 100644 inc/PEAR.php mode change 100755 => 100644 inc/PEAR/Autoloader.php mode change 100755 => 100644 inc/PEAR/Builder.php mode change 100755 => 100644 inc/PEAR/Command.php mode change 100755 => 100644 inc/PEAR/Command/Auth.php mode change 100755 => 100644 inc/PEAR/Command/Build.php mode change 100755 => 100644 inc/PEAR/Command/Common.php mode change 100755 => 100644 inc/PEAR/Command/Config.php mode change 100755 => 100644 inc/PEAR/Command/Install.php mode change 100755 => 100644 inc/PEAR/Command/Mirror.php mode change 100755 => 100644 inc/PEAR/Command/Package.php mode change 100755 => 100644 inc/PEAR/Command/Registry.php mode change 100755 => 100644 inc/PEAR/Command/Remote.php mode change 100755 => 100644 inc/PEAR/Common.php mode change 100755 => 100644 inc/PEAR/Config.php mode change 100755 => 100644 inc/PEAR/Dependency.php mode change 100755 => 100644 inc/PEAR/Downloader.php mode change 100755 => 100644 inc/PEAR/ErrorStack.php mode change 100755 => 100644 inc/PEAR/Exception.php mode change 100755 => 100644 inc/PEAR/Frontend/CLI.php mode change 100755 => 100644 inc/PEAR/Installer.php mode change 100755 => 100644 inc/PEAR/Packager.php mode change 100755 => 100644 inc/PEAR/Registry.php mode change 100755 => 100644 inc/PEAR/Remote.php mode change 100755 => 100644 inc/PEAR/RunTest.php mode change 100755 => 100644 inc/PHPUnit.php mode change 100755 => 100644 inc/PHPUnit/Assert.php mode change 100755 => 100644 inc/PHPUnit/GUI/Gtk.php mode change 100755 => 100644 inc/PHPUnit/GUI/HTML.php mode change 100755 => 100644 inc/PHPUnit/GUI/SetupDecorator.php mode change 100755 => 100644 inc/PHPUnit/RepeatedTest.php mode change 100755 => 100644 inc/PHPUnit/Skeleton.php mode change 100755 => 100644 inc/PHPUnit/TestCase.php mode change 100755 => 100644 inc/PHPUnit/TestDecorator.php mode change 100755 => 100644 inc/PHPUnit/TestFailure.php mode change 100755 => 100644 inc/PHPUnit/TestListener.php mode change 100755 => 100644 inc/PHPUnit/TestResult.php mode change 100755 => 100644 inc/PHPUnit/TestSuite.php mode change 100755 => 100644 inc/System.php mode change 100755 => 100644 inc/XML/Parser.php mode change 100755 => 100644 inc/XML/RPC.php mode change 100755 => 100644 inc/XML/RPC/Server.php mode change 100755 => 100644 inc/docs/HTTP_WebDAV_Server/README mode change 100755 => 100644 inc/docs/HTTP_WebDAV_Server/dav.txt mode change 100755 => 100644 inc/docs/HTTP_WebDAV_Server/db/Fileserver.sql mode change 100755 => 100644 inc/lib_base.php mode change 100755 => 100644 inc/lib_files.php mode change 100755 => 100644 inc/lib_filestorage.php mode change 100755 => 100644 inc/lib_filesystem.php mode change 100755 => 100644 inc/lib_log.php mode change 100755 => 100644 inc/lib_ocs.php mode change 100755 => 100644 inc/lib_user.php mode change 100755 => 100644 inc/package.dtd mode change 100755 => 100644 inc/packages/Archive_Tar.xml mode change 100755 => 100644 inc/packages/Console_Getopt.xml mode change 100755 => 100644 inc/packages/DB.xml mode change 100755 => 100644 inc/packages/Log.xml mode change 100755 => 100644 inc/packages/Mail.xml mode change 100755 => 100644 inc/packages/Mail_Mime.xml mode change 100755 => 100644 inc/packages/Net_SMTP.xml mode change 100755 => 100644 inc/packages/Net_Socket.xml mode change 100755 => 100644 inc/packages/PEAR.xml mode change 100755 => 100644 inc/packages/PHPUnit.xml mode change 100755 => 100644 inc/packages/XML_Parser.xml mode change 100755 => 100644 inc/packages/XML_RPC.xml mode change 100755 => 100644 inc/pearcmd.php mode change 100755 => 100644 inc/templates/adminform.php mode change 100755 => 100644 inc/templates/configform.php mode change 100755 => 100644 inc/templates/footer.php mode change 100755 => 100644 inc/templates/header.php mode change 100755 => 100644 inc/templates/loginform.php mode change 100755 => 100644 index.php mode change 100755 => 100644 js/ajax.js mode change 100755 => 100644 js/filebrowser.js mode change 100755 => 100644 js/lib_ajax.js mode change 100755 => 100644 js/lib_api.js mode change 100755 => 100644 js/lib_drag.js mode change 100755 => 100644 js/lib_event.js mode change 100755 => 100644 js/lib_files.js mode change 100755 => 100644 js/lib_notification.js mode change 100755 => 100644 js/lib_timer.js mode change 100755 => 100644 js/lib_xmlloader.js mode change 100755 => 100644 log/index.php mode change 100755 => 100644 ocs/providers.php mode change 100755 => 100644 ocs/v1.php mode change 100755 => 100644 plugins/music/index.php mode change 100755 => 100644 plugins/music/lib_music.php mode change 100755 => 100644 plugins/test/index.php mode change 100755 => 100644 plugins/test/lib_test.php mode change 100755 => 100644 settings/index.php mode change 100755 => 100644 webdav/owncloud.php diff --git a/.gitignore b/.gitignore old mode 100755 new mode 100644 diff --git a/README b/README old mode 100755 new mode 100644 diff --git a/TODO b/TODO new file mode 100644 index 00000000000..1165ed7e72a --- /dev/null +++ b/TODO @@ -0,0 +1,2 @@ +Database: + - Stored procedures! diff --git a/admin/index.php b/admin/index.php old mode 100755 new mode 100644 diff --git a/config/.gitignore b/config/.gitignore old mode 100755 new mode 100644 diff --git a/config/config.sample.php b/config/config.sample.php old mode 100755 new mode 100644 diff --git a/css/default.php b/css/default.php old mode 100755 new mode 100644 diff --git a/css/small.php b/css/small.php old mode 100755 new mode 100644 diff --git a/db_structure.xml b/db_structure.xml old mode 100755 new mode 100644 index 7efb722bd72..51ab9210933 --- a/db_structure.xml +++ b/db_structure.xml @@ -7,6 +7,37 @@ latin1 + + *dbprefix*privatedata + + + key + text + + true + 64 + + + value + text + false + + + timestamp + timestamp + true + + + timestamp + false + + timestamp + ascending + + + +
+ *dbprefix*groups diff --git a/docs/FAQs b/docs/FAQs old mode 100755 new mode 100644 diff --git a/docs/INSTALL b/docs/INSTALL old mode 100755 new mode 100644 diff --git a/docs/TODO b/docs/TODO old mode 100755 new mode 100644 diff --git a/docs/owncloud.sql b/docs/owncloud.sql old mode 100755 new mode 100644 diff --git a/files/api.php b/files/api.php old mode 100755 new mode 100644 diff --git a/files/get_files.php b/files/get_files.php old mode 100755 new mode 100644 diff --git a/files/index.php b/files/index.php old mode 100755 new mode 100644 diff --git a/files/open_file.php b/files/open_file.php old mode 100755 new mode 100644 diff --git a/files/upload.php b/files/upload.php old mode 100755 new mode 100644 diff --git a/img/arrow.png b/img/arrow.png old mode 100755 new mode 100644 diff --git a/img/arrow_down.png b/img/arrow_down.png old mode 100755 new mode 100644 diff --git a/img/arrow_up.png b/img/arrow_up.png old mode 100755 new mode 100644 diff --git a/img/dots.png b/img/dots.png old mode 100755 new mode 100644 diff --git a/img/icons/delete.png b/img/icons/delete.png old mode 100755 new mode 100644 diff --git a/img/icons/folder.png b/img/icons/folder.png old mode 100755 new mode 100644 diff --git a/img/icons/loading.gif b/img/icons/loading.gif old mode 100755 new mode 100644 diff --git a/img/icons/other.png b/img/icons/other.png old mode 100755 new mode 100644 diff --git a/img/icons/rename.png b/img/icons/rename.png old mode 100755 new mode 100644 diff --git a/img/owncloud-icon.png b/img/owncloud-icon.png old mode 100755 new mode 100644 diff --git a/img/owncloud-logo-small.png b/img/owncloud-logo-small.png old mode 100755 new mode 100644 diff --git a/img/owncloud-logo.png b/img/owncloud-logo.png old mode 100755 new mode 100644 diff --git a/inc/Archive/Tar.php b/inc/Archive/Tar.php old mode 100755 new mode 100644 diff --git a/inc/Console/Getopt.php b/inc/Console/Getopt.php old mode 100755 new mode 100644 diff --git a/inc/HTTP/WebDAV/Server.php b/inc/HTTP/WebDAV/Server.php old mode 100755 new mode 100644 diff --git a/inc/HTTP/WebDAV/Server/Filesystem.php b/inc/HTTP/WebDAV/Server/Filesystem.php old mode 100755 new mode 100644 diff --git a/inc/HTTP/WebDAV/Tools/_parse_lockinfo.php b/inc/HTTP/WebDAV/Tools/_parse_lockinfo.php old mode 100755 new mode 100644 diff --git a/inc/HTTP/WebDAV/Tools/_parse_propfind.php b/inc/HTTP/WebDAV/Tools/_parse_propfind.php old mode 100755 new mode 100644 diff --git a/inc/HTTP/WebDAV/Tools/_parse_proppatch.php b/inc/HTTP/WebDAV/Tools/_parse_proppatch.php old mode 100755 new mode 100644 diff --git a/inc/Log.php b/inc/Log.php old mode 100755 new mode 100644 diff --git a/inc/Log/composite.php b/inc/Log/composite.php old mode 100755 new mode 100644 diff --git a/inc/Log/console.php b/inc/Log/console.php old mode 100755 new mode 100644 diff --git a/inc/Log/daemon.php b/inc/Log/daemon.php old mode 100755 new mode 100644 diff --git a/inc/Log/display.php b/inc/Log/display.php old mode 100755 new mode 100644 diff --git a/inc/Log/error_log.php b/inc/Log/error_log.php old mode 100755 new mode 100644 diff --git a/inc/Log/file.php b/inc/Log/file.php old mode 100755 new mode 100644 diff --git a/inc/Log/mail.php b/inc/Log/mail.php old mode 100755 new mode 100644 diff --git a/inc/Log/mcal.php b/inc/Log/mcal.php old mode 100755 new mode 100644 diff --git a/inc/Log/null.php b/inc/Log/null.php old mode 100755 new mode 100644 diff --git a/inc/Log/observer.php b/inc/Log/observer.php old mode 100755 new mode 100644 diff --git a/inc/Log/sql.php b/inc/Log/sql.php old mode 100755 new mode 100644 diff --git a/inc/Log/sqlite.php b/inc/Log/sqlite.php old mode 100755 new mode 100644 diff --git a/inc/Log/syslog.php b/inc/Log/syslog.php old mode 100755 new mode 100644 diff --git a/inc/Log/win.php b/inc/Log/win.php old mode 100755 new mode 100644 diff --git a/inc/MDB2.php b/inc/MDB2.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Date.php b/inc/MDB2/Date.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/Datatype/Common.php b/inc/MDB2/Driver/Datatype/Common.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/Datatype/mysql.php b/inc/MDB2/Driver/Datatype/mysql.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/Datatype/pgsql.php b/inc/MDB2/Driver/Datatype/pgsql.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/Datatype/sqlite.php b/inc/MDB2/Driver/Datatype/sqlite.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/Function/Common.php b/inc/MDB2/Driver/Function/Common.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/Function/mysql.php b/inc/MDB2/Driver/Function/mysql.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/Function/pgsql.php b/inc/MDB2/Driver/Function/pgsql.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/Function/sqlite.php b/inc/MDB2/Driver/Function/sqlite.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/Manager/Common.php b/inc/MDB2/Driver/Manager/Common.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/Manager/mysql.php b/inc/MDB2/Driver/Manager/mysql.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/Manager/pgsql.php b/inc/MDB2/Driver/Manager/pgsql.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/Manager/sqlite.php b/inc/MDB2/Driver/Manager/sqlite.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/Native/Common.php b/inc/MDB2/Driver/Native/Common.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/Native/mysql.php b/inc/MDB2/Driver/Native/mysql.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/Native/pgsql.php b/inc/MDB2/Driver/Native/pgsql.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/Native/sqlite.php b/inc/MDB2/Driver/Native/sqlite.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/Reverse/Common.php b/inc/MDB2/Driver/Reverse/Common.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/Reverse/mysql.php b/inc/MDB2/Driver/Reverse/mysql.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/Reverse/pgsql.php b/inc/MDB2/Driver/Reverse/pgsql.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/Reverse/sqlite.php b/inc/MDB2/Driver/Reverse/sqlite.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/mysql.php b/inc/MDB2/Driver/mysql.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/pgsql.php b/inc/MDB2/Driver/pgsql.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Driver/sqlite.php b/inc/MDB2/Driver/sqlite.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Extended.php b/inc/MDB2/Extended.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/Iterator.php b/inc/MDB2/Iterator.php old mode 100755 new mode 100644 diff --git a/inc/MDB2/LOB.php b/inc/MDB2/LOB.php old mode 100755 new mode 100644 diff --git a/inc/Mail.php b/inc/Mail.php old mode 100755 new mode 100644 diff --git a/inc/Mail/RFC822.php b/inc/Mail/RFC822.php old mode 100755 new mode 100644 diff --git a/inc/Mail/mail.php b/inc/Mail/mail.php old mode 100755 new mode 100644 diff --git a/inc/Mail/mime.php b/inc/Mail/mime.php old mode 100755 new mode 100644 diff --git a/inc/Mail/mimeDecode.php b/inc/Mail/mimeDecode.php old mode 100755 new mode 100644 diff --git a/inc/Mail/mimePart.php b/inc/Mail/mimePart.php old mode 100755 new mode 100644 diff --git a/inc/Mail/null.php b/inc/Mail/null.php old mode 100755 new mode 100644 diff --git a/inc/Mail/sendmail.php b/inc/Mail/sendmail.php old mode 100755 new mode 100644 diff --git a/inc/Mail/smtp.php b/inc/Mail/smtp.php old mode 100755 new mode 100644 diff --git a/inc/Mail/xmail.dtd b/inc/Mail/xmail.dtd old mode 100755 new mode 100644 diff --git a/inc/Mail/xmail.xsl b/inc/Mail/xmail.xsl old mode 100755 new mode 100644 diff --git a/inc/Net/SMTP.php b/inc/Net/SMTP.php old mode 100755 new mode 100644 diff --git a/inc/Net/Socket.php b/inc/Net/Socket.php old mode 100755 new mode 100644 diff --git a/inc/OS/Guess.php b/inc/OS/Guess.php old mode 100755 new mode 100644 diff --git a/inc/PEAR.php b/inc/PEAR.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Autoloader.php b/inc/PEAR/Autoloader.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Builder.php b/inc/PEAR/Builder.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Command.php b/inc/PEAR/Command.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Command/Auth.php b/inc/PEAR/Command/Auth.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Command/Build.php b/inc/PEAR/Command/Build.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Command/Common.php b/inc/PEAR/Command/Common.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Command/Config.php b/inc/PEAR/Command/Config.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Command/Install.php b/inc/PEAR/Command/Install.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Command/Mirror.php b/inc/PEAR/Command/Mirror.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Command/Package.php b/inc/PEAR/Command/Package.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Command/Registry.php b/inc/PEAR/Command/Registry.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Command/Remote.php b/inc/PEAR/Command/Remote.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Common.php b/inc/PEAR/Common.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Config.php b/inc/PEAR/Config.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Dependency.php b/inc/PEAR/Dependency.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Downloader.php b/inc/PEAR/Downloader.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/ErrorStack.php b/inc/PEAR/ErrorStack.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Exception.php b/inc/PEAR/Exception.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Frontend/CLI.php b/inc/PEAR/Frontend/CLI.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Installer.php b/inc/PEAR/Installer.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Packager.php b/inc/PEAR/Packager.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Registry.php b/inc/PEAR/Registry.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/Remote.php b/inc/PEAR/Remote.php old mode 100755 new mode 100644 diff --git a/inc/PEAR/RunTest.php b/inc/PEAR/RunTest.php old mode 100755 new mode 100644 diff --git a/inc/PHPUnit.php b/inc/PHPUnit.php old mode 100755 new mode 100644 diff --git a/inc/PHPUnit/Assert.php b/inc/PHPUnit/Assert.php old mode 100755 new mode 100644 diff --git a/inc/PHPUnit/GUI/Gtk.php b/inc/PHPUnit/GUI/Gtk.php old mode 100755 new mode 100644 diff --git a/inc/PHPUnit/GUI/HTML.php b/inc/PHPUnit/GUI/HTML.php old mode 100755 new mode 100644 diff --git a/inc/PHPUnit/GUI/SetupDecorator.php b/inc/PHPUnit/GUI/SetupDecorator.php old mode 100755 new mode 100644 diff --git a/inc/PHPUnit/RepeatedTest.php b/inc/PHPUnit/RepeatedTest.php old mode 100755 new mode 100644 diff --git a/inc/PHPUnit/Skeleton.php b/inc/PHPUnit/Skeleton.php old mode 100755 new mode 100644 diff --git a/inc/PHPUnit/TestCase.php b/inc/PHPUnit/TestCase.php old mode 100755 new mode 100644 diff --git a/inc/PHPUnit/TestDecorator.php b/inc/PHPUnit/TestDecorator.php old mode 100755 new mode 100644 diff --git a/inc/PHPUnit/TestFailure.php b/inc/PHPUnit/TestFailure.php old mode 100755 new mode 100644 diff --git a/inc/PHPUnit/TestListener.php b/inc/PHPUnit/TestListener.php old mode 100755 new mode 100644 diff --git a/inc/PHPUnit/TestResult.php b/inc/PHPUnit/TestResult.php old mode 100755 new mode 100644 diff --git a/inc/PHPUnit/TestSuite.php b/inc/PHPUnit/TestSuite.php old mode 100755 new mode 100644 diff --git a/inc/System.php b/inc/System.php old mode 100755 new mode 100644 diff --git a/inc/XML/Parser.php b/inc/XML/Parser.php old mode 100755 new mode 100644 diff --git a/inc/XML/RPC.php b/inc/XML/RPC.php old mode 100755 new mode 100644 diff --git a/inc/XML/RPC/Server.php b/inc/XML/RPC/Server.php old mode 100755 new mode 100644 diff --git a/inc/docs/HTTP_WebDAV_Server/README b/inc/docs/HTTP_WebDAV_Server/README old mode 100755 new mode 100644 diff --git a/inc/docs/HTTP_WebDAV_Server/dav.txt b/inc/docs/HTTP_WebDAV_Server/dav.txt old mode 100755 new mode 100644 diff --git a/inc/docs/HTTP_WebDAV_Server/db/Fileserver.sql b/inc/docs/HTTP_WebDAV_Server/db/Fileserver.sql old mode 100755 new mode 100644 diff --git a/inc/lib_base.php b/inc/lib_base.php old mode 100755 new mode 100644 diff --git a/inc/lib_files.php b/inc/lib_files.php old mode 100755 new mode 100644 diff --git a/inc/lib_filestorage.php b/inc/lib_filestorage.php old mode 100755 new mode 100644 diff --git a/inc/lib_filesystem.php b/inc/lib_filesystem.php old mode 100755 new mode 100644 diff --git a/inc/lib_log.php b/inc/lib_log.php old mode 100755 new mode 100644 diff --git a/inc/lib_ocs.php b/inc/lib_ocs.php old mode 100755 new mode 100644 index 72d2adb1798..891ca192c0b --- a/inc/lib_ocs.php +++ b/inc/lib_ocs.php @@ -133,10 +133,21 @@ class OC_OCS { $message=OC_OCS::readdata('message','text'); OC_OCS::activityput($format,$message); + // PRIVATEDATA + // get - GET DATA + }elseif(($method=='get') and (strtolower($ex[$paracount-3])=='v1.php')and (strtolower($ex[$paracount-2])=='privatedata')){ + $key=OC_OCS::readdata('key','text'); + OC_OCS::privateDataGet($key); + + // set - POST DATA + }elseif(($method=='post') and (strtolower($ex[$paracount-3])=='v1.php')and (strtolower($ex[$paracount-2])=='privatedata')){ + $key=OC_OCS::readdata('key','text'); + $value=OC_OCS::readdata('key','text'); + OC_OCS::privatedataset($key, $value); }else{ $format=OC_OCS::readdata('format','text'); - $txt='please check the syntax. api specifications are here: http://www.freedesktop.org/wiki/Specifications/open-collaboration-services'."\n"; + $txt='Invalid query, please check the syntax. API specifications are here: http://www.freedesktop.org/wiki/Specifications/open-collaboration-services. DEBUG OUTPUT:'."\n"; $txt.=OC_OCS::getdebugoutput(); echo(OC_OCS::generatexml($format,'failed',999,$txt)); } @@ -418,8 +429,58 @@ class OC_OCS { echo(OC_OCS::generatexml($format,'ok',100,'')); } + // PRIVATEDATA API ############################################# + /** + * get private data + * @param string $key + * @return string xml/json + */ + private static function privateDataGet($key) { + global $CONFIG_DBTABLEPREFIX; + + $user=OC_OCS::checkpassword(); + + $result = OC_DB::select("select key,value,timestamp from {$CONFIG_DBTABLEPREFIX}privatedata where key like'% ".addslashes($key)."%' order by timestamp desc"); + $itemscount=count($result); + + $xml=array(); + foreach($result as $i=>$log) { + $xml[$i]['key']=$log['key']; + $xml[$i]['value']=$log['value']; + $xml[$i]['timestamp']=$log['timestamp']; + } + + + $txt=OC_OCS::generatexml($format,'ok',100,'',$xml,'activity','full',2,$totalcount,$pagesize); + echo($txt); + } + + /** + * set private data referenced by $key to $valu` + * @param string $key + * @param string $value + * @return string xml/json + */ + private static function privateDataSet($key, $value) { + global $CONFIG_DBTABLEPREFIX; + + //TODO: prepared statements, locking tables, fancy stuff, error checking/handling + $user=OC_OCS::checkpassword(); + $result = OC_DB::query("select count(*) as co from {$CONFIG_DBTABLEPREFIX}privatedata where key = '".$key."'"); + $entry=$result->fetchRow(); + $existing=$entry['co']; + OC_DB::free_result($result); + + if ($existing != 0) { + $result = OC_DB::query("update {$CONFIG_DBTABLEPREFIX}privatedata set value='".addslashes($value)."', timestamp = now() where key = '".addslashes($key)."'"); + } else { + $result = OC_DB::query("insert into {$CONFIG_DBTABLEPREFIX}privatedata(key, value, timestamp) values('".addslashes($key)."', '".addslashes($value)."', now())"); + } + + echo(OC_OCS::generatexml($format,'ok',100,'')); + } } diff --git a/inc/lib_user.php b/inc/lib_user.php old mode 100755 new mode 100644 diff --git a/inc/package.dtd b/inc/package.dtd old mode 100755 new mode 100644 diff --git a/inc/packages/Archive_Tar.xml b/inc/packages/Archive_Tar.xml old mode 100755 new mode 100644 diff --git a/inc/packages/Console_Getopt.xml b/inc/packages/Console_Getopt.xml old mode 100755 new mode 100644 diff --git a/inc/packages/DB.xml b/inc/packages/DB.xml old mode 100755 new mode 100644 diff --git a/inc/packages/Log.xml b/inc/packages/Log.xml old mode 100755 new mode 100644 diff --git a/inc/packages/Mail.xml b/inc/packages/Mail.xml old mode 100755 new mode 100644 diff --git a/inc/packages/Mail_Mime.xml b/inc/packages/Mail_Mime.xml old mode 100755 new mode 100644 diff --git a/inc/packages/Net_SMTP.xml b/inc/packages/Net_SMTP.xml old mode 100755 new mode 100644 diff --git a/inc/packages/Net_Socket.xml b/inc/packages/Net_Socket.xml old mode 100755 new mode 100644 diff --git a/inc/packages/PEAR.xml b/inc/packages/PEAR.xml old mode 100755 new mode 100644 diff --git a/inc/packages/PHPUnit.xml b/inc/packages/PHPUnit.xml old mode 100755 new mode 100644 diff --git a/inc/packages/XML_Parser.xml b/inc/packages/XML_Parser.xml old mode 100755 new mode 100644 diff --git a/inc/packages/XML_RPC.xml b/inc/packages/XML_RPC.xml old mode 100755 new mode 100644 diff --git a/inc/pearcmd.php b/inc/pearcmd.php old mode 100755 new mode 100644 diff --git a/inc/templates/adminform.php b/inc/templates/adminform.php old mode 100755 new mode 100644 diff --git a/inc/templates/configform.php b/inc/templates/configform.php old mode 100755 new mode 100644 diff --git a/inc/templates/footer.php b/inc/templates/footer.php old mode 100755 new mode 100644 diff --git a/inc/templates/header.php b/inc/templates/header.php old mode 100755 new mode 100644 diff --git a/inc/templates/loginform.php b/inc/templates/loginform.php old mode 100755 new mode 100644 diff --git a/index.php b/index.php old mode 100755 new mode 100644 diff --git a/js/ajax.js b/js/ajax.js old mode 100755 new mode 100644 diff --git a/js/filebrowser.js b/js/filebrowser.js old mode 100755 new mode 100644 diff --git a/js/lib_ajax.js b/js/lib_ajax.js old mode 100755 new mode 100644 diff --git a/js/lib_api.js b/js/lib_api.js old mode 100755 new mode 100644 diff --git a/js/lib_drag.js b/js/lib_drag.js old mode 100755 new mode 100644 diff --git a/js/lib_event.js b/js/lib_event.js old mode 100755 new mode 100644 diff --git a/js/lib_files.js b/js/lib_files.js old mode 100755 new mode 100644 diff --git a/js/lib_notification.js b/js/lib_notification.js old mode 100755 new mode 100644 diff --git a/js/lib_timer.js b/js/lib_timer.js old mode 100755 new mode 100644 diff --git a/js/lib_xmlloader.js b/js/lib_xmlloader.js old mode 100755 new mode 100644 diff --git a/log/index.php b/log/index.php old mode 100755 new mode 100644 diff --git a/ocs/providers.php b/ocs/providers.php old mode 100755 new mode 100644 diff --git a/ocs/v1.php b/ocs/v1.php old mode 100755 new mode 100644 diff --git a/plugins/music/index.php b/plugins/music/index.php old mode 100755 new mode 100644 diff --git a/plugins/music/lib_music.php b/plugins/music/lib_music.php old mode 100755 new mode 100644 diff --git a/plugins/test/index.php b/plugins/test/index.php old mode 100755 new mode 100644 diff --git a/plugins/test/lib_test.php b/plugins/test/lib_test.php old mode 100755 new mode 100644 diff --git a/settings/index.php b/settings/index.php old mode 100755 new mode 100644 diff --git a/webdav/owncloud.php b/webdav/owncloud.php old mode 100755 new mode 100644 -- 2.39.5