$c = '<label for="' . $id . '" class="ml">' . $id . '</label> '; $c .= '<input type="text" class="text" size="2" id="' . $id . '" name="' . $id . '" value="' . $value . '" />'; return $c; } ?> </div> <?php if (db_records()) { ?> <hr /> <h1 class="mt" id="mine">Mine results</h1> <?php check_notified_request("mine"); ?> <em>Leave fields blank for default values</em> <form id="filter" class="center" action="filter.php" method="post"> <fieldset class="smallround"> <legend>Filter by</legend> <?php echo select_client(); echo select_domain(); echo select_cache(); echo select_tbl(TBL_PREFIX . TBL_OS, "os_id", "OS"); echo select_tbl(TBL_PREFIX . TBL_BROWSERS, "browser_id", "Browser"); echo select_fps(); ?> </fieldset>
<!-- <h2>Flash API</h2> <p>When using the Flash (SWF) visualization API, all options are customized at runtime. These options are stored on a <a href="http://en.wikipedia.org/wiki/Local_Shared_Object">Local Shared Object</a> (aka <em>Flash cookie</em>).</p> <p>You should use this API to visualize the mouse tracking data, since it is dramatically more advanced than the JavaScript one. However, it relies on the <em>wmode</em> parameter of Flash, so if you cannot see the HTML page behind the tracking layer, please use the old (but revised) JavaScript API.</p> <h2 id="<?php echo TBL_JSOPT; ?> " class="vspace">JavaScript API <small class="del">deprecated!</small></h2> <?php check_notified_request(TBL_JSOPT); ?> <p> If you wish to use the JavaScript (JS) visualization API, you can customize it here. These options are stored on your MySQL database. <em>Leave fields blank for default values</em>. </p> <p>This API will be not supported in a future, and maybe it will be removed definitely in next smt2 releases.</p> <br /> <form action="savesettings.php" method="post"> <?php $jsoption = db_select_all(TBL_PREFIX . TBL_JSOPT, "*", "1"); echo display_options($jsoption); ?>
echo count($MODULES) + 2; ?> ">...</td></tr> <?php // add one row more for creating a new role echo table_row(0, true); ?> </tbody> </table> <h1 id="describe" class="mt">Describe Roles</h1> <?php check_notified_request("describe"); ?> <p> Here you can set or change each role's properties. Registered users will see their role description when accessing their user area. </p> <form action="saveroles.php" method="post"> <fieldset> <?php foreach ($ROLES as $role) { $disabled = $role['id'] == 1 && !$ROOT ? ' disabled="disabled"' : null; $rnd = mt_rand(); // to match label with id correctly $f = '<fieldset>';
" /> <input type="submit" class="button round delete conf" value="Delete all orphan logs" /> </fieldset> </form> <?php } } else { echo '<p>By now there are no orphan cache logs.</p>'; } ?> <h1 id="backup" class="mt">Backup database</h1> <?php echo check_notified_request("backup"); ?> <?php // check dir if (!is_dir(BACKUPDIR)) { if (!mkdir(BACKUPDIR)) { echo display_text($_displayType["ERROR"], BACKUPDIR . ' does not exist and it could not be created. You must create <strong>' . BACKUPDIR . '</strong> dir or specify another directory to save database backups in <code>admin/ext/maintenance/index.php</code> file.'); } } clearstatcache(); // ensure full access to backup dir (at least apache/IIS) if (!is_writable(BACKUPDIR)) { $perms = substr(decoct(fileperms(BACKUPDIR)), 2); if (($perms != "775" || $perms != "777") && !chmod(BACKUPDIR, 0775)) {
// insert a small padding $f .= '<p class="clear"></p>' . PHP_EOL; if ($isAdmin) { $f .= '</div><!-- end wrapper -->' . PHP_EOL; } return $f; } // end helper function --------------------------------------------------------- // call this function once $isadmin = is_admin(); if ($isadmin) { echo '<h1 id="create">Create new user</h1>' . PHP_EOL; check_notified_request("create"); echo format_fields(null, false); echo '<h1 id="manage">Manage registered users</h1>' . PHP_EOL; check_notified_request("manage"); $users = db_select_all(TBL_PREFIX . TBL_USERS, "*", "1"); foreach ($users as $user) { echo format_fields($user, true); } } else { // other users can edit their own account echo '<h1 id="manage">My account</h1>'; check_notified_request("manage"); $user = db_select(TBL_PREFIX . TBL_USERS, "*", "login='******'login'] . "'"); echo format_fields($user, $isadmin); } ?> <?php include INC_DIR . 'footer.php';