{
function getAuth()
{
+
if (HTML_FlexyFramework::get()->cli) {
return true;
}
+
$this->authUser = $this->getAuthUser();
if (!$this->authUser) {
return false;
}
- return true;
+
+ return true;
}
- function get()
+ function get($v, $opts=array())
{
$this->post();
return $this->jerr("not allowed");
}
- function post()
+ function post($v)
{
+
if(isset($_REQUEST['_convertToPlain']))
{
require_once 'System.php';
}
require_once 'File/Convert.php';
$fc = new File_Convert($path, 'text/html');
+
$plain = $fc->convert('text/plain');
$this->jok(file_get_contents($plain));
}
// Import from URL
if(isset($_REQUEST['importUrl']))
{
+
$this->checkHeader($_REQUEST['importUrl']);
+
+ var_dump('die');exit;
+
$data = $this->convertStyle($_REQUEST['importUrl'], '', true);
$this->jok($data);
}
+
+
// Import from file
$htmlFile = DB_DataObject::factory('images');