protected function setMenu() { Menu::modify('adminlte-sidebar', function ($menu) { $menu->dropdown('Configurações', function ($sub) { $sub->route('admin.mmails.index', 'Formulários', [], 200, ['icon' => 'fa fa-minus', 'active' => function () { return checkActive(route('admin.mmails.index')); }])->hideWhen(function () { return checkRule('admin.mmails.index'); }); $sub->route('admin.maudit.index', 'Logs', [], 210, ['icon' => 'fa fa-minus', 'active' => function () { return checkActive(route('admin.maudit.index')); }])->hideWhen(function () { return checkRule('admin.maudit.index'); }); $sub->route('admin.mcache.index', 'Cache', [], 220, ['icon' => 'fa fa-minus', 'active' => function () { return checkActive(route('admin.mcache.index')); }])->hideWhen(function () { return checkRule('admin.mcache.index'); }); }, 2, ['icon' => 'fa fa-cogs'])->hideWhen(function () { return checkRule(['admin.maudit.index', 'admin.mcache.index', 'admin.mmails.index']); }); }); Menu::modify('adminlte-permissions', function ($menu) { $menu->url('admin.mmails.index', 'Formulários', 200); $menu->url('admin.maudit.index', 'Logs', 210, ['except' => ['create', 'edit', 'destroy', 'trash']]); $menu->url('admin.mcache.index', 'Cache', 220, ['except' => ['create', 'edit', 'destroy', 'trash']]); }); }
protected function setMenu() { Menu::create('adminlte-sidebar', function ($menu) { $menu->setView('vendor.pingpong.menus.adminlte.default'); $menu->dropdown('Usuários', function ($sub) { $sub->route('admin.users.index', 'Usuários', [], 1, ['icon' => 'fa fa-minus', 'active' => function () { return checkActive(route('admin.users.index')); }])->hideWhen(function () { return checkRule('admin.users.index'); }); $sub->route('admin.roles.index', 'Grupos', [], 1, ['icon' => 'fa fa-minus', 'active' => function () { return checkActive(route('admin.roles.index')); }])->hideWhen(function () { return checkRule('admin.roles.index'); }); }, 1, ['icon' => 'fa fa-users'])->hideWhen(function () { return checkRule(['admin.users.index', 'admin.roles.index']); }); }); Menu::create('adminlte-permissions', function ($menu) { $menu->setView('vendor.pingpong.menus.adminlte.permissions'); $menu->url('admin.users', 'Usuários', ['']); $menu->url('admin.roles', 'Grupos', ['']); }); }
protected function setMenu() { Menu::modify('adminlte-sidebar', function ($menu) { $menu->route('admin.banners.index', config('mbanners.name', 'Banners'), [], config('mbanners.order', 30), ['icon' => config('mbanners.icon', 'fa fa-image'), 'active' => function () { return checkActive(route('admin.banners.index')); }])->hideWhen(function () { return checkRule('admin.banners.index'); }); }); Menu::modify('adminlte-permissions', function ($menu) { $menu->url('admin.banners', config('mbanners.name', 'Banners'), config('mbanners.order', 30)); }); }
protected function setMenu() { Menu::modify('adminlte-sidebar', function ($menu) { $menu->route('admin.maudit.index', 'Logs', [], 210, ['icon' => 'fa fa-tasks', 'active' => function () { return checkActive(route('admin.maudit.index')); }])->hideWhen(function () { return checkRule('admin.maudit.index'); }); }); Menu::modify('adminlte-permissions', function ($menu) { $menu->url('admin.maudit.index', 'Logs', 210, ['except' => ['create', 'edit', 'destroy', 'trash']]); }); }
protected function setMenu() { Menu::modify('adminlte-sidebar', function ($menu) { $menu->route('admin.mmails.index', 'Envios', [], 210, ['icon' => 'fa fa-paper-plane', 'active' => function () { return checkActive(route('admin.mmails.index')); }])->hideWhen(function () { return checkRule('admin.mmails.index'); }); }); Menu::modify('adminlte-permissions', function ($menu) { $menu->url('admin.mmails.index', 'Envios', 210); }); }
protected function setMenu() { Menu::modify('adminlte-sidebar', function ($menu) { $menu->route('admin.articles.index', config('marticles.name', 'Artigos'), [], config('marticles.order', 20), ['icon' => config('marticles.icon', 'fa fa-file-text'), 'active' => function () { return checkActive(route('admin.articles.index')); }])->hideWhen(function () { return checkRule('admin.articles.index'); }); }); Menu::modify('adminlte-permissions', function ($menu) { $menu->url('admin.articles', config('marticles.name', 'Artigos'), config('marticles.order', 20)); }); }
?> </a></li> <?php } ?> <li class="<?php if (checkActive('pages', 'about')) { echo "active"; } ?> "><a href="<?php getLink('pages', 'about'); ?> ">About</a></li> <li class="<?php if (checkActive('pages', 'contact')) { echo "active"; } ?> "><a href="<?php getLink('pages', 'contact'); ?> ">Contact</a></li> </ul> <!-- Right navigation bar --> <ul class="nav navbar-nav navbar-right"> <?php if (isset($_SESSION["id"])) { ?>
function activateItem($PID, $BID) { $conn = conDB(); $CACT = checkActive($PID); if ($CACT == 0) { $sql = "UPDATE bag SET Active='1' WHERE PlayerID='{$PID}' AND IDKey='{$BID}'"; mysqli_query($conn, $sql); } else { craftItem($PID, $BID, $CACT); deactivateItem(); } }
?> "> <a href="<?php echo base_url('admin/agents/'); ?> "><span class="fa-stack fa-lg pull-left"><i class="fa fa-dashboard fa-stack-1x "></i></span>Agents</a> </li> <li class="<?php echo checkActive('LeadTemplates/index'); ?> "> <a href="<?php echo base_url('admin/leadtemplates/'); ?> "><span class="fa-stack fa-lg pull-left"><i class="fa fa-file fa-stack-1x "></i></span>Sales Funnels</a> </li> <li class="<?php echo checkActive('Salesletters/index'); ?> "> <a href="<?php echo base_url('admin/salesletters/'); ?> "><span class="fa-stack fa-lg pull-left"><i class="fa fa-file fa-stack-1x "></i></span>Sales Letters</a> </li> <li><a href="<?php echo base_url('logout'); ?> "><span class="fa-stack fa-lg pull-left"><i class="fa fa-server fa-stack-1x "></i></span>Sign Out</a></li> </ul> </div>
function adminUUN($id, $section, $code, $unit, $active) { $active = checkActive($active); $query = "UPDATE ref_unit SET ru_rsek_kod='{$section}',ru_short_kod='{$code}',ru_desc='{$unit}',ru_status='{$active}'"; $query .= " WHERE ru_kod='{$id}'"; echo executeQuery($query); }
{ if (getNodeByNid($from)['isActive'] == "yes") { return true; } else { return false; } } function blockMessage($from, $to, $messageContext, $state) { insertMessage($from, $to, $messageContext, $state); } $from = $_POST['from']; $to = $_POST['to']; $messageContext = $_POST['messageContext']; $original = $_POST['original']; if (!checkActive($from)) { echo "fail"; } else { if ($from == $to) { blockMessage($original, $to, $messageContext, "received"); echo "success"; } else { $result = array(); $result = sendMessage($from, $to, array(), array()); if (count($result) == 0) { blockMessage($original, $to, $messageContext, "blocked"); echo "fail"; } else { if (count($result) > 1) { echo $result[count($result) - 2]; } else {
if ($this->session->userdata("admin_user_id") && $this->session->userdata("admin_access") == 1) { ?> <li class="<?php echo checkActive('dashboard/toAdmin/'); ?> "> <a href="<?php echo base_url('dashboard/toAdmin/'); ?> "><span class="fa-stack fa-lg pull-left"><i class="fa fa-wrench fa-stack-1x "></i></span>Back to Admin panel</a> </li> <?php } elseif ($this->session->userdata("admin_user_id") && $this->session->userdata("admin_access") == 2) { ?> <li class="<?php echo checkActive('dashboard/toAdmin/'); ?> "> <a href="<?php echo base_url('dashboard/toAdmin/'); ?> "><span class="fa-stack fa-lg pull-left"><i class="fa fa-wrench fa-stack-1x "></i></span>Back to Agent panel</a> </li> <?php } ?> <?php if ($this->session->userdata("user_id")) { ?> <li><a href="<?php echo base_url('logout');
<div id="sidebar-wrapper"> <ul class="sidebar-nav nav-pills nav-stacked" id="menu"> <?php /*<li class="<?=checkActive('dashboard/index');?>"> <a href="<?=base_url('agent/dashboard');?>"><span class="fa-stack fa-lg pull-left"><i class="fa fa-dashboard fa-stack-1x "></i></span>Dashboard</a> </li> */ ?> <li class="<?php echo checkActive('clients/index'); ?> "> <a href="<?php echo base_url('agent/clients/'); ?> "><span class="fa-stack fa-lg pull-left"><i class="fa fa-dashboard fa-stack-1x "></i></span>Clients</a> </li> <li><a href="<?php echo base_url('logout'); ?> "><span class="fa-stack fa-lg pull-left"><i class="fa fa-server fa-stack-1x "></i></span>Sign Out</a></li> </ul> </div>