diff --git a/app/modules/meta/controllers/data.php b/app/modules/meta/controllers/data.php
deleted file mode 100644
index b27c98b..0000000
--- a/app/modules/meta/controllers/data.php
+++ /dev/null
@@ -1,66 +0,0 @@
-model->get_data($section_id);
-
-
- $keys = filter_var_array($_POST['name'], FILTER_SANITIZE_STRING);
- $vals = filter_var_array($_POST['val'], FILTER_SANITIZE_STRING);
-
- //echo miniMVC\to_string($_POST);
-
- $data = array_combine($keys, $vals);
-
- $res = /*(empty($old_data))
- ?*/ $this->model->add_data($section_id, $data);
- //: FALSE;
-
- ($res)
- ? $this->page->set_message('success', 'Added data')
- : $this->page->set_message('error', 'Data already exists');
-
- }
-}
-
-// End of data.php
\ No newline at end of file
diff --git a/app/modules/meta/models/model.php b/app/modules/meta/models/model.php
index f3a0e9a..1c868c2 100644
--- a/app/modules/meta/models/model.php
+++ b/app/modules/meta/models/model.php
@@ -594,6 +594,25 @@ class model extends \miniMVC\Model {
return $return;
}
+
+ // --------------------------------------------------------------------------
+ // ! Miscellaneous methods
+ // --------------------------------------------------------------------------
+
+ /**
+ * Check if a valid type for editing
+ *
+ * @param string
+ * @return bool
+ */
+ public function is_valid_type($str)
+ {
+ $valid = array(
+ 'genre','category','section','data'
+ );
+
+ return in_array(str_to_lower($str), $valid);
+ }
}
diff --git a/assets/js/tinyeditor/index.html b/assets/js/tinyeditor/index.html
deleted file mode 100755
index 17977d6..0000000
--- a/assets/js/tinyeditor/index.html
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
-TinyEditor - JavaScript WYSIWYG Editor
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/assets/js/tinyeditor/packed.js b/assets/js/tinyeditor/packed.js
deleted file mode 100755
index 6dbafbe..0000000
--- a/assets/js/tinyeditor/packed.js
+++ /dev/null
@@ -1 +0,0 @@
-TINY={};function T$(i){return document.getElementById(i)}function T$$$(){return document.all?1:0}TINY.editor=function(){var c=[],offset=-30;c['cut']=[1,'Cut','a','cut',1];c['copy']=[2,'Copy','a','copy',1];c['paste']=[3,'Paste','a','paste',1];c['bold']=[4,'Bold','a','bold'];c['italic']=[5,'Italic','a','italic'];c['underline']=[6,'Underline','a','underline'];c['strikethrough']=[7,'Strikethrough','a','strikethrough'];c['subscript']=[8,'Subscript','a','subscript'];c['superscript']=[9,'Superscript','a','superscript'];c['orderedlist']=[10,'Insert Ordered List','a','insertorderedlist'];c['unorderedlist']=[11,'Insert Unordered List','a','insertunorderedlist'];c['outdent']=[12,'Outdent','a','outdent'];c['indent']=[13,'Indent','a','indent'];c['leftalign']=[14,'Left Align','a','justifyleft'];c['centeralign']=[15,'Center Align','a','justifycenter'];c['rightalign']=[16,'Right Align','a','justifyright'];c['blockjustify']=[17,'Block Justify','a','justifyfull'];c['undo']=[18,'Undo','a','undo'];c['redo']=[19,'Redo','a','redo'];c['image']=[20,'Insert Image','i','insertimage','Enter Image URL:','http://'];c['hr']=[21,'Insert Horizontal Rule','a','inserthorizontalrule'];c['link']=[22,'Insert Hyperlink','i','createlink','Enter URL:','http://'];c['unlink']=[23,'Remove Hyperlink','a','unlink'];c['unformat']=[24,'Remove Formatting','a','removeformat'];c['print']=[25,'Print','a','print'];function edit(n,a){this.n=n;window[n]=this;this.t=T$(a.id);this.obj=a;this.xhtml=a.xhtml;var p=document.createElement('div'),w=document.createElement('div'),h=document.createElement('div'),l=a.controls.length,i=0;this.i=document.createElement('iframe');this.i.frameBorder=0;this.i.width=a.width||'500';this.i.height=a.height||'250';this.ie=T$$$();h.className='teheader';p.className=a.cssclass||'te';p.style.width=this.i.width+'px';p.appendChild(h);for(i;i'],['Header 1',''],['Header 2',''],['Header 3',''],['Header 4',''],['Header 5',''],['Header 6','']],sl=styles.length,x=0;g.className='testyle';g.onchange=new Function(this.n+'.ddaction(this,"formatblock")');for(x;x'}if(a.css){m+=''}m+=''+(a.content||this.t.value);m+='