summaryrefslogtreecommitdiffstats
path: root/apps/test_db/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/test_db/index.php')
-rw-r--r--apps/test_db/index.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/apps/test_db/index.php b/apps/test_db/index.php
new file mode 100644
index 00000000000..2569aedb9b3
--- /dev/null
+++ b/apps/test_db/index.php
@@ -0,0 +1,26 @@
+<?php
+
+require_once('../../lib/base.php');
+
+// Check if we are a user
+if( !OC_User::isLoggedIn()){
+ header( "Location: ".OC_Helper::linkTo( '', 'index.php' ));
+ exit();
+}
+
+class Test {
+ private $test1;
+ private $test2;
+ public function init() {
+ $this->test1 = "test1";
+ $this->test2 = 2;
+ }
+ public function show() {
+ echo "test1:".$this->test1."<br/>test2:".$this->test2."<br/>";
+ }
+};
+
+$tmpl = new OC_Template( 'test_db', 'index', 'user' );
+
+$tmpl->printPage();
+?>