Esempio n. 1
0
<?php

// server settings are required - relative path to smt2 root dir
require '../../../config.php';
// protect extension from being browsed by anyone
require SYS_DIR . 'logincheck.php';
// now you have access to all CMS API
// use ajax settings
require './includes/settings.php';
// insert custom CSS and JS files
$headOpts = array('<link rel="stylesheet" type="text/css" href="styles/table.css" />', '<link rel="stylesheet" type="text/css" href="styles/flags.css" />', '<link rel="stylesheet" type="text/css" href="styles/ui-lightness/custom.css" />');
add_head($headOpts);
include INC_DIR . 'header.php';
// display a warning message for javascript-disabled browsers
echo check_noscript();
// check defaults from DB or current sesion
$show = isset($_SESSION['limit']) && $_SESSION['limit'] > 0 ? $_SESSION['limit'] : db_option(TBL_PREFIX . TBL_CMS, "recordsPerTable");
// sanitize
if (!$show) {
    $show = $defaultNumRecords;
}
?>

    <p><a href="./howto/">Some guides are available</a> to help you with these logs.</p>
    
    <div class="center">
      <!-- Order by date (descending) and client ID -->
      <h1>User logs</h1>
      
      <div id="records">
        <?php 
Esempio n. 2
0
<?php

// server settings are required - relative path to smt2 root dir
require '../../../../config.php';
// protect extension from being browsed by anyone
require SYS_DIR . 'logincheck.php';
// now you have access to all CMS API
add_head(array('<link rel="stylesheet" type="text/css" href="howto.css" />'));
include INC_DIR . 'header.php';
?>

<p>&larr; <a href="../">Back to admin logs</a></p>

<div id="admin-logs-help" class="mt">

<h2>HowTo Guides</h2>

<p>
This page provides you with some tips to take advantage of the admin logs section.
Please be sure to read the <a href="https://code.google.com/p/smt2/w/list">Google code wiki pages</a> for basic info about smt2.
</p>

<div id="tips">

  <h3>Admin logs table</h3>
  <ol>
    <li>Put your mouse over row entries underlined <abbr title="tooltip example">like this</abbr> to display a tooltip with more details about such entries.
    </li>
    <li>
      On the 'actions' column: 
        the play icon loads the cursor replay visualizations;
Esempio n. 3
0
<?php

add_head('<link rel="stylesheet" type="text/css" href="styles.css" />');
include INC_DIR . 'doctype.php';
?>

<head>
  <?php 
include INC_DIR . 'header-base.php';
?>
</head>
<body>
<div id="global">

Esempio n. 4
0
<?php

// server settings are required - relative path to smt2 root dir
require '../../../config.php';
// protect extension from being browsed by anyone
require SYS_DIR . 'logincheck.php';
// now you have access to all CMS API
// insert custom css and JS files
add_head('<link rel="stylesheet" type="text/css" href="custom.css" />');
add_head('<script type="text/javascript" src="interface.js"></script>');
add_head('<script type="text/javascript" src="sort.js"></script>');
include INC_DIR . 'header.php';
// helper function
function display_options($arrOptions)
{
    $list = "";
    foreach ($arrOptions as $o) {
        $list .= '<p>' . $o['description'] . '</p>' . PHP_EOL;
        $list .= '<div class="customize-wrap">' . PHP_EOL;
        $list .= ' <div class="customize block">' . PHP_EOL;
        $list .= '  <label for="' . $o['name'] . '">' . $o['name'] . ':</label>' . PHP_EOL;
        $list .= '  <div class="input-wrap">' . PHP_EOL;
        if ($o['type'] == CMS_CHOICE) {
            $checked = $o['value'] ? 'checked="checked" ' : null;
            $list .= '  <input id="' . $o['name'] . '" type="checkbox" name="' . $o['name'] . '" ' . $checked . '/>' . PHP_EOL;
        } elseif ($o['type'] == CMS_TYPE) {
            $list .= '  <input id="' . $o['name'] . '" type="text" name="' . $o['name'] . '" class="text center" value="' . $o['value'] . '" size="10" maxlength="6" />' . PHP_EOL;
        }
        $list .= '  </div>' . PHP_EOL;
        $list .= ' </div>' . PHP_EOL;
        $list .= '</div>' . PHP_EOL;
Esempio n. 5
0
<?php

// server settings are required - relative path to smt2 root dir
require '../../../config.php';
// protect extension from being browsed by anyone
require SYS_DIR . 'logincheck.php';
// now you have access to all (smt) API functions and constants
// insert custom elements on HEAD section
add_head('<link rel="stylesheet" type="text/css" href="styles/analyze.css" />');
add_head('<script type="text/javascript" src="' . SWFOBJECT . '"></script>');
include INC_DIR . 'header.php';
?>


<p>&larr; <a href="./">Back to admin logs</a></p>
    
<div id="rawlog">
    
  <h1 class="heading center">Log Data Analysis</h1>
  <?php 
if (isset($_GET['id'])) {
    // common var for other modules
    $id = (int) $_GET['id'];
    // shorcuts to table names
    $r = TBL_PREFIX . TBL_RECORDS;
    $c = TBL_PREFIX . TBL_CACHE;
    $b = TBL_PREFIX . TBL_BROWSERS;
    $o = TBL_PREFIX . TBL_OS;
    // get log data
    $tables = $r . " LEFT JOIN " . $c . " ON " . $r . ".cache_id = " . $c . ".id";
    $tables .= " LEFT JOIN " . $b . " ON " . $r . ".browser_id = " . $b . ".id";
Esempio n. 6
0
?>
'</script>
        <script type="text/javascript">var months = '<?php 
echo _clang(MONTH_ON);
?>
'</script>
        <script type="text/javascript">var on = '<?php 
echo _clang(ON);
?>
'</script>
        <script type="text/javascript">var cancle_btn = '<?php 
echo _clang(CANCEL_C);
?>
'</script>
        <?php 
echo add_head();
?>
    </head>
    <body>
        <div class="page indexpage">
            <div id="dashwrapper">
                <div id="wrapper">

                    <header>
                        <?php 
if ($main_content == 'home_view') {
    ?>
                            <div class="topheader">
                                <ul>
                                    <?php 
    if (!$this->session->userdata('is_logged_in')) {