aboutsummaryrefslogblamecommitdiffstats
path: root/mod/smilies.php
blob: 2ccc007b481f69439a65cd2bbc6a8317dcb30271 (plain) (tree)
1
2
3
4

     
                                
                                    










                                                                                                     
<?php

function smilies_content(&$a) { 
	if (App::$argv[1]==="json"){
		$tmp = list_smilies();
		$results = array();
		for($i = 0; $i < count($tmp['texts']); $i++) {
			$results[] = array('text' => $tmp['texts'][$i], 'icon' => $tmp['icons'][$i]);
		}
		json_return_and_die($results);
	}
	else {
		return smilies('',true);
	}
}