Exemple #1
0
 function delete()
 {
     $tmpl_id = params::get('tmpl_id');
     db::table('templates');
     db::where('tmpl_id', $tmpl_id);
     $row = db::assoc();
     $file = SYS_ROOT . 'tmpls/' . ADMIN_SITE . '/' . $row['tmpl_file'];
     trash::tables('templates', 'templates_versions');
     trash::conf('tmpls');
     trash::files($file);
     trash::dump();
     @unlink($file);
     db::table('templates');
     db::where('tmpl_id', $tmpl_id);
     db::delete();
     conf::delete('tmpls', $tmpl_id);
     db::table('templates_versions');
     db::where('tmpl_id', $tmpl_id);
     db::delete();
 }
Exemple #2
0
 function files()
 {
     self::$files = func_get_args();
 }