Exemple #1
0
function xpress_block_check($mydirname){
	include_once(dirname(dirname(__FILE__)) . '/class/check_blocks_class.php');

	$xoops_block_check =& xoops_block_check::getInstance();

	if ( !$xoops_block_check->is_admin() )
	{
		$cont = 'Block Check Pass';
		return cont;
	}

	switch ( $xoops_block_check->get_op() ) 
	{
		case "remove_block":
			$cont = $xoops_block_check->remove_block();
			break;

		default:
			$cont = $xoops_block_check->check_blocks($mydirname);
			break;
	}
	return $cont;
}
Exemple #2
0
function xpress_block_state($is_report = false)
{
    $mydirname = basename(dirname(dirname(__FILE__)));
    include_once dirname(dirname(__FILE__)) . '/class/check_blocks_class.php';
    $xoops_block_check =& xoops_block_check::getInstance();
    $xoops_block_check->check_blocks($mydirname);
    if ($is_report) {
        echo "******** " . _AM_XP2_BLOCK_STATS . "********" . "<br />\n";
        echo $xoops_block_check->get_message();
        echo "<br />\n";
        echo "<br />\n";
    } else {
        echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . _AM_XP2_BLOCK_STATS . "</legend>";
        echo "<div style='padding: 8px;'>";
        echo $xoops_block_check->get_message();
        echo "</div>";
        echo '</legend>';
        echo "</fieldset><br />";
    }
}
Exemple #3
0
	exit ;
}

//include_once('./menu.php');
//include_once('./../../../include/cp_header.php');
xoops_cp_header();
include( './mymenu.php' ) ;

include_once(dirname(__FILE__) . '/../class/check_blocks_class.php');

//BLOCK CHECK
		echo "<div class='resultMsg'>\n";
		echo "<h4>"  . 'Check ' . $mydirname . ' block table' . "</h4>\n";
echo "<div style='padding: 8px;'>\n";

$xoops_block_check =& xoops_block_check::getInstance();

if ( !$xoops_block_check->is_admin() )
{
	include XOOPS_ROOT_PATH.'/footer.php';
	exit();
}

switch ( $xoops_block_check->get_op() ) 
{
case "remove_all_block":
	echo $xoops_block_check->remove_all_block();
	break;
case "remove_block":
	echo $xoops_block_check->remove_block();
	break;
Exemple #4
0
function xpress_block_state($is_report = false)
{
	$mydirname = basename( dirname( dirname( __FILE__ ) ) ) ;

	include_once(dirname(dirname(__FILE__) ). '/class/check_blocks_class.php');
	$xoops_block_check =& xoops_block_check::getInstance();
	$xoops_block_check->check_blocks($mydirname);
	if ($is_report){
		echo "******** " . _AM_XP2_BLOCK_STATS . "********" . "<br />\n";
		echo $xoops_block_check->get_message();
		echo "<br />\n";
		echo "<br />\n";
	} else {
		echo "<div class='resultMsg'>";
		echo "<h4>" . _AM_XP2_BLOCK_STATS . "</h4>";
		echo "<div style='padding: 8px;'>";
		echo $xoops_block_check->get_message();
		echo "</div>";
		echo "</div><br />";
	}		
}