Location: PHPKode > projects > O - OpenSource GroupWare > osgw/admin/lock.php
<?php
/**************************************************************************
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   @Authors:	Ryan Thompson(hide@address.com)
***************************************************************************/
include("./data.php");
$service['add_header'] = TRUE;
include("../config.inc.php");

include($here. "/class.admin.php");
$admin = new admin;

if($_GET['lo'] == 'lock')
{
	$sql = "UPDATE o_settings SET value='TRUE' WHERE setting_id='10'";
} else {
	$sql = "UPDATE o_settings SET value='FALSE' WHERE setting_id='10'";
}
$db->query($sql);
header("Location: index.php");
Return current item: O - OpenSource GroupWare