Added : ajax/dashboards.php
This commit is contained in:
parent
b25c990950
commit
d6eb165d72
1 changed files with 34 additions and 0 deletions
34
upload/ajax/dashboards.php
Normal file
34
upload/ajax/dashboards.php
Normal 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' ))) ) );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
Loading…
Add table
Reference in a new issue