16 if (isset(
$_GET[
'widget']) && (!empty(
$_GET[
'widget'])) && (isset(
$_GET[
'published']) && (!empty(
$_GET[
'published']))))
25 if (
$_GET[
'published'] ===
'1')
27 $widget->published = 0;
31 $widget->published = 1;
34 if($widget->toggleOffline(
$db,
$_GET[
'widget'], $widget->published))
36 backend::setTimeout(
"index.php?page=widgets",0);
40 print alert::draw(
"danger",
"$lang[ERROR]",
"$lang[WIDGET_TOGGLE_FAILED]",
"page=widgets",
"4800");
Throws a fancy Bootstrap Alert (success, info, warning or danger)
Backend class serves a few useful functions for the admin backend.
Mysqli database class; returns db connection object.
The language class - support multilingual backend.