diff --git a/admin/php/listadadostabela.php b/admin/php/listadadostabela.php
new file mode 100644
index 0000000..5234533
--- /dev/null
+++ b/admin/php/listadadostabela.php
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/index.html b/ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/index.html
index ee8c6d9..b2ae78c 100755
--- a/ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/index.html
+++ b/ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/index.html
@@ -302,9 +302,12 @@
+
+ <% if (Saiku.session.attributes.username != "anonimo") {%>
+ <%};%>
diff --git a/ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/js/saiku/Settings.js b/ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/js/saiku/Settings.js
new file mode 100755
index 0000000..eb4ebb3
--- /dev/null
+++ b/ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/js/saiku/Settings.js
@@ -0,0 +1,158 @@
+/*
+ * Copyright 2012 OSBI Ltd
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Change settings here
+ */
+
+var Settings = {
+ VERSION: "Saiku 2.5",
+ BIPLUGIN: false,
+ BASE_URL: "",
+ TOMCAT_WEBAPP: "/saiku",
+ REST_MOUNT_POINT: "/rest/saiku/",
+ DIMENSION_PREFETCH: false,
+ ERROR_LOGGING: false,
+ // number of erroneous ajax calls in a row before UI cant recover
+ ERROR_TOLERANCE: 3,
+ QUERY_PROPERTIES: {
+ 'saiku.olap.query.automatic_execution': 'true',
+ 'saiku.olap.query.nonempty': 'true',
+ 'saiku.olap.query.nonempty.rows': 'true',
+ 'saiku.olap.query.nonempty.columns': 'true',
+ 'saiku.ui.render.mode' : 'table'
+ },
+ /* Valid values for CELLSET_FORMATTER:
+ * 1) flattened
+ * 2) flat
+ */
+ CELLSET_FORMATTER: "flattened",
+ // limits the number of rows in the result
+ // 0 - no limit
+ RESULT_LIMIT: 0,
+ MEMBERS_FROM_RESULT: true,
+ PLUGINS: [
+ "Chart"
+ ],
+ TELEMETRY_SERVER: 'http://telemetry.analytical-labs.com:7000',
+ LOCALSTORAGE_EXPIRATION: 10 * 60 * 60 * 1000 /* 10 hours, in ms */
+};
+/**
+ * Extend settings with query parameters
+ */
+Settings.GET = function () {
+ var qs = document.location.search;
+ qs = qs.split("+").join(" ");
+ var params = {},
+ tokens,
+ re = /[?&]?([^=]+)=([^&]*)/g;
+
+ while (tokens = re.exec(qs)) {
+ var value = decodeURIComponent(tokens[2]);
+ if (! isNaN(value)) value = parseInt(value);
+ if (value === "true") value = true;
+ if (value === "false") value = false;
+ params[decodeURIComponent(tokens[1]).toUpperCase()]
+ = value;
+ }
+
+ return params;
+}();
+_.extend(Settings, Settings.GET);
+
+Settings.REST_URL = Settings.BASE_URL
+ + Settings.TOMCAT_WEBAPP
+ + Settings.REST_MOUNT_POINT;
+
+// lets assume we dont need a min width/height for table mode
+if (Settings.MODE == "table") {
+ Settings.DIMENSION_PREFETCH = false;
+ $('body, html').css('min-height',0);
+ $('body, html').css('min-width',0);
+
+}
+
+
+/**
+ * < IE9 doesn't support Array.indexOf
+ */
+if (!Array.prototype.indexOf)
+{
+ Array.prototype.indexOf = function(elt /*, from*/)
+ {
+ var len = this.length >>> 0;
+
+ var from = Number(arguments[1]) || 0;
+ from = (from < 0)
+ ? Math.ceil(from)
+ : Math.floor(from);
+ if (from < 0)
+ from += len;
+
+ for (; from < len; from++)
+ {
+ if (from in this &&
+ this[from] === elt)
+ return from;
+ }
+ return -1;
+ };
+}
+
+var tagsToReplace = {
+ '&': '&',
+ '<': '<',
+ '>': '>'
+};
+
+function replaceTag(tag) {
+ return tagsToReplace[tag] || tag;
+}
+
+function safe_tags_replace(str) {
+ return str.replace(/[&<>]/g, replaceTag);
+}
+
+if ($.blockUI) {
+ $.blockUI.defaults.css = {};
+ $.blockUI.defaults.overlayCSS = {};
+ $.blockUI.defaults.blockMsgClass = 'processing';
+ $.blockUI.defaults.fadeOut = 0;
+ $.blockUI.defaults.fadeIn = 0;
+ $.blockUI.defaults.ignoreIfBlocked = false;
+
+}
+//original alterado por Edmar Moretti
+/*
+if (window.location.hostname && (window.location.hostname == "dev.analytical-labs.com" || window.location.hostname == "demo.analytical-labs.com" )) {
+ Settings.USERNAME = "admin";
+ Settings.PASSWORD = "admin";
+}
+*/
+//comente essas linhas abaixo para forcar o login
+//Settings.USERNAME = "i3geo";
+//Settings.PASSWORD = "i3geo";
+
+var isIE = (function(){
+ var undef, v = 3, div = document.createElement('div');
+
+ while (
+ div.innerHTML = '',
+ div.getElementsByTagName('i')[0]
+ );
+
+ return v> 4 ? v : false;
+}());
diff --git a/ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/js/saiku/views/LoginForm.js b/ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/js/saiku/views/LoginForm.js
new file mode 100755
index 0000000..e2d6d62
--- /dev/null
+++ b/ferramentas/saiku/saiku-server/tomcat/webapps/ROOT/js/saiku/views/LoginForm.js
@@ -0,0 +1,65 @@
+/*
+ * Copyright 2012 OSBI Ltd
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * The login prompt on startup
+ */
+var LoginForm = Modal.extend({
+ type: "login",
+ message: "",
+
+ buttons: [
+ { text: "Login", method: "login" }
+ ],
+
+ events: {
+ 'click a': 'call',
+ 'keyup #login_form input': 'check'
+ },
+
+ initialize: function(args) {
+ _.extend(this, args);
+ _.bindAll(this, "adjust");
+ this.options.title = Settings.VERSION;
+ this.bind('open', this.adjust);
+ },
+
+ adjust: function() {
+ $(this.el).parent().find('.ui-dialog-titlebar-close').hide();
+ $(this.el).find("#username").select().focus();
+ },
+
+ check: function(event) {
+ if(event.which === 13) {
+ this.login();
+ }
+ },
+
+ login: function() {
+
+ var l_username = $(this.el).find("#username").val();
+ var l_password = $(this.el).find("#password").val();
+ $(this.el).dialog('close');
+ this.session.login(l_username, l_password);
+
+ return true;
+ }
+});
diff --git a/ferramentas/saiku/saiku-server/tomcat/webapps/saiku/WEB-INF/users.properties b/ferramentas/saiku/saiku-server/tomcat/webapps/saiku/WEB-INF/users.properties
index 47c0cde..d2fc96e 100755
--- a/ferramentas/saiku/saiku-server/tomcat/webapps/saiku/WEB-INF/users.properties
+++ b/ferramentas/saiku/saiku-server/tomcat/webapps/saiku/WEB-INF/users.properties
@@ -1,6 +1,6 @@
#Username,password,role
-bob=dylan,ROLE_USER
-krishna=krish2341,ROLE_USER
-smith=pravah@001,ROLE_USER
-adminx=admin,ROLE_USER,ROLE_ADMIN
-admin=admin,ROLE_USER
+#qualquer usuario que nao seja i3geo e nao seja admin podera usar o botao de salvar query
+#remova o usuario i3geo para forcar o login
+#edite o arquivo ROOT/js/Settings.js e comente as linhas que usam o usuario i3geo como default
+anonimo=anonimo,ROLE_USER
+
--
libgit2 0.21.2