summaryrefslogtreecommitdiffstats
path: root/controllers/ImportController.php
blob: af917fbb03522c0abffa4ae77b20fc03de1cd8ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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']);
		}
	}
}