コード例 #1
0
ファイル: sneaker-stats.php プロジェクト: rasomu/chuza
function check_stats($string) {
	global $globals, $current_user;
	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('/^!time/', $string)) return date(" d-m-Y H:i:s T");
	if (preg_match('/^!help/', $string)) return _('comandos') . ': http://meneame.wikispaces.com/Comandos';
	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: http://meneame.wikispaces.com/';
	if (preg_match('/^!promote/', $string)) return 'http://' . get_server_name().$globals['base_url']. 'promote.php';
	if (preg_match('/^!hoygan/', $string)) return '¡HOYGAN! BISITEN http://' . get_server_name().$globals['base_url']. 'sneak.php?hoygan=1 GRASIAS DE HANTEMANO';
	if (preg_match('/^!webstats/', $string)) return 'http://www.quantcast.com/'.get_server_name();
	if (preg_match('/^!ignore/', $string)) return do_ignore($string);
	if (preg_match('/^!admins/', $string)) return do_admins($string);
	if (preg_match('/^!bloggers/', $string)) return do_bloggers($string);
	if (preg_match('/^!last/', $string)) return do_last($string);
	if (preg_match('/^!gs/', $string)) return do_fon_gs($string);
//	if (preg_match('/^!rae/', $string)) return do_rae($string);
	if (preg_match('/^!values/', $string)) return do_values();
	if (preg_match('/^!load/', $string)) return do_load();
	return false;
}
コード例 #2
0
ファイル: sneaker-stats.php プロジェクト: brainsqueezer/fffff
function check_stats($string)
{
    global $globals, $current_user;
    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('/^!time/', $string)) {
        return date(" d-m-Y H:i:s") . ', ' . _('una hora menos en Canarias');
    }
    if (preg_match('/^!help/', $string)) {
        return _('comandos') . ': http://meneame.wikispaces.com/Comandos';
    }
    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: http://meneame.wikispaces.com/';
    }
    if (preg_match('/^!promote/', $string)) {
        return 'http://' . get_server_name() . $globals['base_url'] . 'promote.php';
    }
    if (preg_match('/^!hoygan/', $string)) {
        return '¡HOYGAN! BISITEN http://' . get_server_name() . $globals['base_url'] . 'sneak.php?hoygan=1 GRASIAS DE HANTEMANO';
    }
    if (preg_match('/^!webstats/', $string)) {
        return 'http://www.quantcast.com/' . get_server_name();
    }
    if (preg_match('/^!ignore/', $string)) {
        return do_ignore($string);
    }
    if (preg_match('/^!admins/', $string)) {
        return do_admins($string);
    }
    return false;
}
コード例 #3
0
ファイル: sneaker-stats.php プロジェクト: brainsqueezer/fffff
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 '';
}