Configure the new TinyMCE to have almost the same buttons as the old one.
Configure the new TinyMCE to have almost the same buttons as the old one.

File last commit:

c3da001f5ff1
3cf3f8fd35f8
Show More
type.php
27 lines | 547 B | text/x-php | PhpLexer
<?php
/* Types */
function get_typeByID( $id ) {
global $mtdb;
$id = (int)$id;
$r = $mtdb->getRow( 'SELECT id, name, description FROM strip_t WHERE id=' . $id );
$r->meta = $mtdb->getAll( 'SELECT meta as id from meta where type=' . $id);
return $r;
}
function get_allTypes() {
global $mtdb;
return $mtdb->getRow( 'SELECT id, name, description, meta FROM strip_t' );
}
function get_allMetaTypes() {
global $mtdb;
return $mtdb->getAll("SELECT id, name FROM meta_t");
}
function _getMetaNameFromObject($obj) {
return $obj->name;
}
?>