theme preview for end users

This commit is contained in:
friendica
2012-03-25 19:05:14 -07:00
parent 7ab117fd31
commit c88674aaf2
4 changed files with 23 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
<?php
function pretheme_init(&$a) {
if($_REQUEST['theme']) echo json_encode(array('img' => get_theme_screenshot($_REQUEST['theme'])));
killme();
}