function check_stats($string) {
	global $globals;
	if (preg_match('/^!statsu/', $string)) return do_statsu($string);
	if (preg_match('/^!stats2/', $string)) return do_stats2($string);
	if (preg_match('/^!stats1{0,1}/', $string)) return do_stats1($string);
	if (preg_match('/^!help/', $string)) return _('comandos') . ': <a href="http://meneame.wikispaces.com/Comandos">meneame.wikispaces.com/Comandos</a>';
	if (preg_match('/^!cabal/', $string)) return do_cabal($string);
	if (preg_match('/^!wiki/', $string)) return 'wiki: <a href="http://meneame.wikispaces.com/">meneame.wikispaces.com</a>';
	if (preg_match('/^!promote/', $string)) return '<a href="http://' . get_server_name().$globals['base_url']. 'archives/promote.html">promote.html</a>';
	return '';
}
Esempio n. 2
0
function check_stats($string)
{
    global $globals;
    if (preg_match('/^!top/', $string)) {
        return do_top($string);
    }
    if (preg_match('/^!statsu/', $string)) {
        return do_statsu($string);
    }
    if (preg_match('/^!stats2/', $string)) {
        return do_stats2($string);
    }
    if (preg_match('/^!stats3/', $string)) {
        return do_stats3($string);
    }
    if (preg_match('/^!stats1{0,1}/', $string)) {
        return do_stats1($string);
    }
    if (preg_match('/^!help/', $string)) {
        return _('comandos') . ': <a href="http://meneame.wikispaces.com/Comandos">meneame.wikispaces.com/Comandos</a>';
    }
    if (preg_match('/^!cabal/', $string)) {
        return do_cabal($string);
    }
    if (preg_match('/^!dariaunojo/', $string)) {
        return do_ojo($string);
    }
    if (preg_match('/^!wiki/', $string)) {
        return 'wiki: <a href="http://meneame.wikispaces.com/">meneame.wikispaces.com</a>';
    }
    if (preg_match('/^!promote/', $string)) {
        return '<a href="http://' . get_server_name() . $globals['base_url'] . 'archives/promote.html">promote.html</a>';
    }
    if (preg_match('/^!hoygan/', $string)) {
        return '¡HOYGAN! BISITEN http://' . get_server_name() . $globals['base_url'] . 'hoygan.php GRASIAS DE HANTEMANO';
    }
    if (preg_match('/^!webstats/', $string)) {
        return '<a href="http://' . get_server_name() . '/statcounter">Statcounter</a>, <a href="http://' . get_server_name() . '/webalizer/">Webalizer</a>';
    }
    return '';
}
Esempio n. 3
0
function do_stats3($string)
{
    return do_stats2('!stats3 1');
}