summaryrefslogtreecommitdiffstats
path: root/controllers/ImportController.php
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-07-02 17:02:07 -0700
committerraylu <raylu@mixpanel.com>2011-07-02 17:02:07 -0700
commit05a2b26d9038752a40348a3f226e44710833c49b (patch)
tree9bc3e49ac2e84b33ca5ff6e44eb7e5f2c02d13bf /controllers/ImportController.php
parent83483a1826d1d05e2f9733746f35fef1939b8c0a (diff)
downloadotakuhub-05a2b26d9038752a40348a3f226e44710833c49b.tar.xz
pull in dev branch changes
not pulled: swiftmailer, gzip
Diffstat (limited to 'controllers/ImportController.php')
-rw-r--r--controllers/ImportController.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/controllers/ImportController.php b/controllers/ImportController.php
new file mode 100644
index 0000000..af917fb
--- /dev/null
+++ b/controllers/ImportController.php
@@ -0,0 +1,13 @@
+<?php
+
+namespace app\controllers;
+
+class ImportController extends \lithium\action\Controller {
+ public function index($source, $type = 'all') {
+ if ($this->request->data) {
+ $user = Auth::check('default');
+ $user = Users::find($user->id);
+ ContentList::ImportAnimeXML($user, $this->request->data['file']);
+ }
+ }
+} \ No newline at end of file