if ($user->AsSquidAdministrator == false) { $tpl = new templates(); echo "<p class=text-error>" . $tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}") . "</p>"; die; exit; } if (isset($_GET["unlink-websites-js"])) { unlink_js(); exit; } if (isset($_POST["unlink-websites"])) { unlink_perform(); exit; } if (isset($_GET["list"])) { list_items(); exit; } table(); function unlink_js() { $page = CurrentPageName(); $tpl = new templates(); $servername = $_GET["servername"]; header("content-type: application/x-javascript"); $explain = $tpl->javascript_parse_text("{warnin_nginx_unlink_site}"); $explain = str_replace("%s", $_GET["servername"], $explain); $t = time(); $html = "\nvar xDeleteFreeWeb{$t}=function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>10){alert(results);return;}\n\t\$('#NGINX_MAIN_TABLE').flexReload();\n\t\$('#NGINX_MAIN_TABLE2').flexReload();\n}\n\t\nfunction DeleteFreeWeb{$t}(){\n\tif(!confirm('{$explain}')){return;}\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('unlink-websites','{$servername}');\n\tXHR.sendAndLoad('{$page}', 'POST',xDeleteFreeWeb{$t});\n}\nDeleteFreeWeb{$t}();\n\t"; echo $html; }
include_once('ressources/class.ActiveDirectory.inc'); $usersmenus=new usersMenus(); if(!$usersmenus->AsDansGuardianAdministrator){ $tpl=new templates(); $alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "alert('$alert');"; die(); } if(isset($_GET["button-ad"])){button_ad();exit;} if(isset($_POST["acl-rule-link"])){quota_destination_link();exit;} if(isset($_POST["acl-rule-link-delete"])){quota_destination_unlink();exit;} if(isset($_GET["list-items"])){list_items();exit;} if(isset($_GET["new-quota-rule"])){new_quota_rule_js();exit;} if(isset($_GET["get-quota-rule"])){quota_rule_js();exit;} if(isset($_GET["service-cmds"])){service_cmds_js();exit;} if(isset($_GET["service-cmds-popup"])){service_cmds_popup();exit;} if(isset($_GET["service-cmds-perform"])){service_cmds_perform();exit;} if(isset($_POST["EnableDisable"])){EnableDisable();exit;} if(isset($_GET["ID-TAB"])){quota_tab();exit;} if(isset($_GET["quota-params-members"])){quota_rule();exit;} if(isset($_GET["quota-destination-list"])){quota_destination_list();exit;} if(isset($_GET["quota-params-destination"])){quota_destination();exit;} if(isset($_GET["quota-params-notification"])){quota_notification();exit;} if(isset($_GET["ID"])){quota_rule();exit;}
function do_new_set() { $inputs = JxBotUtil::inputs('set-name'); $set_name = trim($inputs['set-name']); $stmt = JxBotDB::$db->prepare('INSERT INTO _set (name) VALUES (?)'); $stmt->execute(array($set_name)); list_items(JxBotDB::$db->lastInsertId()); }
$duration = $interval_types[$url_params['interval']]['duration']; if ($url_params['service'] == 'sms') { $stats_url = SMS_STATS_URL . "?days=" . $interval_types[$url_params['interval']]['numdays']; $stats_data = json_decode(file_get_contents($stats_url), TRUE); $days = aggregate_days($stats_data['days'], $url_params['interval'], $duration); $sent = aggregate_days($stats_data['sent'], $url_params['interval'], $duration); $modules = $stats_data['modules']; $carriers = $stats_data['carriers']; $graphs = array(summary_total($days, "count", "total incoming messages"), trend($days, "count", "Incoming Messages by " . ucfirst($url_params['interval']), $url_params['interval']), summary_total($sent, "count", "total outgoing messages"), trend($sent, "count", "Outgoing Messages by " . ucfirst($url_params['interval']), $url_params['interval']), bar_percentage(carriers_data($carriers), "Queries by Carrier"), list_items(generate_sms_content($modules), "Popular SMS Queries", "queries")); } else { $all_data = PageViews::view_past($url_params['service'], $url_params['interval'], $duration); if ($url_params['service'] == 'web') { $graphs = array(summary_total($all_data, "total", "total page views"), trend($all_data, "total", 'Page Views by ' . ucfirst($url_params['interval']), $url_params['interval']), bar_percentage(platform_data($all_data), "Traffic by Platform"), list_items(generate_popular_content('web', $all_data), "Most Popular Content", "page views")); } else { // api $graphs = array(summary_total(PageViews::count_iphone_tokens(), "total", "active users"), summary_total($all_data, "total", "total API requests"), trend($all_data, "total", 'API Requests by ' . ucfirst($url_params['interval']), $url_params['interval']), list_items(generate_popular_content('api', $all_data), "Most Popular Modules", "requests")); } } $name = $service_types[$url_params['service']]; // set states of fake segmented control $statclasses = array(); foreach ($interval_types as $type => $attrs) { $stclass = array(); $stclass['interval'] = $type; if ($url_params['interval'] == $type) { $stclass['active'] = ' class="active"'; } else { $stclass['active'] = ''; } $stclass['title'] = $attrs['title']; $statclasses[$type] = $stclass;
include "menu.php"; ?> <?php include "assets/list_items.php"; ?> <!-- The "info" div is the meat of the body, it contains the general information of the page. --> <div class="info"> <!-- The "heading" div styles the heading of each section to stand out more and make it very readable.--> <div class="heading"> <?php echo $this_user_seller["login_name"] . "'s Shopping Cart"; ?> </div> <br> <ul class = "product_grid"> <?php list_items($itemRows, "Cart Items"); ?> </ul> <br> <br> </div> </body> </html>
function list_items($items, $menu_id) { ?> <ol class="dd-list"> <?php foreach ($items as $v) { ?> <li class="dd-item" data-id="<?php echo $v['item_id']; ?> "> <div class="dd-handle"> <?php echo $v['item_title']; ?> <i><a href="<?php _link("admin_menus_item_edit", $menu_id, $v['item_id']); ?> " class="dd-nodrag">edit</a></i> </div> <?php if (!empty($v['item_subitems'])) { list_items($v['item_subitems'], $menu_id); } ?> </li> <?php } ?> </ol> <?php }
summary_total($all_data, "total", "total page views"), trend($all_data, "total", 'Page Views by ' . ucfirst($url_params['interval']), $url_params['interval']), bar_percentage( platform_data($all_data), "Traffic by Platform"), list_items(generate_popular_content('web', $all_data), "Most Popular Content", "page views"), ); } else { // api $graphs = array( summary_total(PageViews::count_iphone_tokens(), "total", "active iPhone users"), summary_total($all_data, "total", "total API requests"), trend($all_data, "total", 'API Requests by ' . ucfirst($url_params['interval']), $url_params['interval']), bar_percentage( native_platform_data($all_data), "Requests by Platform"), list_items(generate_popular_content('api', $all_data), "Most Popular Modules", "requests"), ); } $name = $service_types[$url_params['service']]; // set states of fake segmented control $statclasses = Array(); foreach ($interval_types as $type => $attrs) { $stclass = Array(); $stclass['interval'] = $type; if ($url_params['interval'] == $type) { $stclass['active'] = ' class="active"'; } else { $stclass['active'] = ''; }
header("Pragma: no-cache"); header("Expires: 0"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); $user=new usersMenus(); if(!$user->AsDansGuardianAdministrator){ $tpl=new templates(); echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}").");"; exit; } if(isset($_GET["enable-js"])){skin_enable_js();exit;} if(isset($_GET["delete-rule-js"])){skin_delete_js();exit;} if(isset($_GET["picture"])){send_picture();exit;} if(isset($_GET["skin-js"])){skin_js();exit;} if(isset($_GET["list"])){list_items();exit();} if(isset($_GET["skin-tabs"])){skin_tabs();exit;} if(isset($_GET["TEMPLATE_SETTINGS"])){skin_parameters();exit;} if(isset($_GET["TEMPLATE_CONTENT"])){skin_design();exit;} if(isset($_GET["TEMPLATE_LOGO"])){skin_logo();exit;} if(isset($_POST["zmd5-params"])){skin_parameters_save();exit;} if(isset($_POST["UFDBGUARD_TITLE_1"])){skin_design_save();exit;} if(isset($_POST["SquidHTTPTemplateLogoEnable"])){skin_logo_save();exit;} if(isset($_POST["delete-rule"])){skin_delete();exit;} if(isset($_POST["enable-rule"])){skin_enable();exit;} page(); function skin_js(){ header("content-type: application/x-javascript");
// .'</td>' // .'<td>' // . $this_buy["buy_price"] // .'</td>' // .'<td>' // . $sell_date->format('m/d/Y H:i:s') // .'</td>' // .'</tr>'; // } // echo '</tbody>' // .'</table>' // .'</div>'; list_sale($items_bought_query, "Items You Bought"); } echo "<br>" . "<hr>" . "<br>"; list_items($sellings, "Current Items you are Selling"); // echo 'Current Items you are selling ' // .'<div class="table_div">' // .'<table class="table-striped table-bordered">' // .'<thead>' // .'<th>' // .'Title' // .'</th>' // .'<th>' // .'Description' // .'</th>' // .'</thead>' // .'<tbody>'; // while(($this_item = $sellings->fetch(PDO::FETCH_ASSOC))) // { // echo '<tr>'
} ?> <!DOCTYPE html> <html> <head> <?php include "assets/includes.php"; ?> </head> <body> <?php include "menu.php"; ?> <!-- The "info" div is the meat of the body, it contains the general information of the page. --> <div class="info"> <!-- The "heading" div styles the heading of each section to stand out more and make it very readable.--> <div class="heading"> All-Star Database </div> <?php list_items($itemRows, "Items"); ?> </div> </body> </html>