Location: PHPKode > scripts > WH Board > wh_board/admin/users_block.php
<?php require('management/admin_functions/session.php'); ?>
<?php require('management/admin_layout/header.php'); ?>

    <ul id="breadcrumbs">
        <li><a href="index.php"><?php echo $lang['main_navigation']; ?></a></li>
        <li><a href="users.php"><?php echo $lang['admin_manage_users']; ?></a></li>
        <li><a href="users_block.php" class="actual">User <?php echo $lang['admin_block']; ?></a></li>
    </ul>

    <div class="clear_blog"></div>

    <?php

    if((isset($_GET['user_id'])) && (is_numeric($_GET['user_id']))) {

	$id = mysql_real_escape_string($_GET['user_id']);
	$id = intval($_GET['user_id']);

		}else{

		echo '<p class="false">' . $lang['invalid_id'] . '!</p>';
		}

    $sql = "UPDATE
    		    users
    	    SET
    		    user_active = '0'
    	    WHERE
    		    user_id = '" . $id . "'";

    mysql_query($sql) OR die(mysql_error());

    if(mysql_affected_rows() == 1) {

    echo '<p class="success">' . $lang['success_block_user'] . '!</p>
    <p><a href="users.php">' . $lang['go_on'] . '</a></p>';

        }else{

        echo '<p class="false">' . $lang['failed_block_user'] . '</p>
        <p><a href="users.php">' . $lang['back'] . '</a></p>';
        }

    ?>

<?php require('management/admin_layout/footer.php'); ?>
Return current item: WH Board