Added : ajax/dashboards.php

This commit is contained in:
Fawaz 2012-12-31 09:24:35 +00:00
parent b25c990950
commit d6eb165d72

View file

@ -0,0 +1,34 @@
<?php
include("../includes/config.inc.php");
$mode = $_POST['mode'];
switch ( $mode ) {
case "update_dasboard_widget_states": {
$userid = userid();
if ( !$userid ) {
exit( json_encode( array('err' => array(lang( 'Invalid request' ))) ) );
}
echo __update_dashboard_widget_states();
}
break;
case "update_dashboard_widget_positions": {
$userid = userid();
if ( !$userid ) {
exit( json_encode( array('err' => array(lang( 'Invalid request' ))) ) );
}
echo __update_dashboard_widget_positions();
}
break;
default: {
exit( json_encode( array('err' => array(lang( 'Invalid request' ))) ) );
}
}
?>