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
Add most necessary files for admin interface.
r1 <?php
/* Types */
function get_typeByID( $id ) {
global $mtdb;
$id = (int)$id;
$r = $mtdb->getRow( 'SELECT id, name, description FROM strip_t WHERE id=' . $id );
Fix calls to mysqli_error().
r7 $r->meta = $mtdb->getAll( 'SELECT meta as id from meta where type=' . $id);
Add most necessary files for admin interface.
r1 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;
}
Fix calls to mysqli_error().
r7 ?>