SOURCES: eventum-priv-index.patch (NEW), eventum-httpclient-client...
glen
glen at pld-linux.org
Mon Aug 1 14:39:56 CEST 2005
Author: glen Date: Mon Aug 1 12:39:56 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fixes to 1.6.0
---- Files affected:
SOURCES:
eventum-priv-index.patch (NONE -> 1.1) (NEW), eventum-httpclient-clientside.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/eventum-priv-index.patch
diff -u /dev/null SOURCES/eventum-priv-index.patch:1.1
--- /dev/null Mon Aug 1 14:39:56 2005
+++ SOURCES/eventum-priv-index.patch Mon Aug 1 14:39:50 2005
@@ -0,0 +1,11 @@
+--- eventum-1.6.0/setup/index.php~ 2005-07-30 17:31:20.000000000 +0300
++++ eventum-1.6.0/setup/index.php 2005-07-30 17:45:48.000000000 +0300
+@@ -329,7 +329,7 @@
+ $user_list = array_map('strtolower', $user_list);
+ if (@$HTTP_POST_VARS["create_user"] == 'yes') {
+ if (!in_array(strtolower(@$HTTP_POST_VARS['eventum_user']), $user_list)) {
+- $stmt = "GRANT SELECT, UPDATE, DELETE, INSERT, ALTER, DROP, CREATE ON " . $HTTP_POST_VARS['db_name'] . ".* TO '" . $HTTP_POST_VARS["eventum_user"] . "'@'%' IDENTIFIED BY '" . $HTTP_POST_VARS["eventum_password"] . "'";
++ $stmt = "GRANT SELECT, UPDATE, DELETE, INSERT, ALTER, DROP, CREATE, INDEX ON " . $HTTP_POST_VARS['db_name'] . ".* TO '" . $HTTP_POST_VARS["eventum_user"] . "'@'%' IDENTIFIED BY '" . $HTTP_POST_VARS["eventum_password"] . "'";
+ if (!mysql_query($stmt, $conn)) {
+ return getErrorMessage('create_user', mysql_error());
+ }
================================================================
Index: SOURCES/eventum-httpclient-clientside.patch
diff -u /dev/null SOURCES/eventum-httpclient-clientside.patch:1.1
--- /dev/null Mon Aug 1 14:39:56 2005
+++ SOURCES/eventum-httpclient-clientside.patch Mon Aug 1 14:39:50 2005
@@ -0,0 +1,64 @@
+include javascript files client side, not from smarty.
+as i've separated very clearly files available as htdocs and files that are not.
+
+and besides, js files should be (can be) cached at client side, which is good.
+
+glen 2005-07-30
+
+--- ./js/expandable_cell.js 2005-07-30 17:47:12.000000000 +0300
++++ /tmp/expandable_cell.js 2005-07-30 20:18:01.000000000 +0300
+@@ -1,5 +1,3 @@
+-{literal}
+-
+ var expanding = false;
+
+ // expands the cell specified by ecID and msgID. This will initiate the call to the remote script to get the
+@@ -97,4 +95,3 @@
+ }
+ return newCells;
+ }
+-{/literal}
+\ No newline at end of file
+--- ./js/httpclient.js 2005-07-30 17:47:12.000000000 +0300
++++ /tmp/httpclient.js 2005-07-30 20:18:01.000000000 +0300
+@@ -1,5 +1,3 @@
+-{literal}
+-
+ function HTTPClient() {};
+
+ HTTPClient.prototype = {
+@@ -49,4 +47,3 @@
+ }
+ }
+ }
+-{/literal}
+\ No newline at end of file
+--- ./templates/en/view.tpl.html 2005-07-30 17:47:13.000000000 +0300
++++ /tmp/view.tpl.html 2005-07-30 20:18:01.000000000 +0300
+@@ -1,9 +1,7 @@
+ {include file="header.tpl.html" extra_title=$extra_title}
+ {include file="navigation.tpl.html"}
+-<script language="javascript">
+-{include file="js/httpclient.js"}
+-{include file="js/expandable_cell.js"}
+-</script>
++<script src="{$rel_url}js/httpclient.js"></script>
++<script src="{$rel_url}js/expandable_cell.js"></script>
+ {if $issue == ""}
+ <table width="400" align="center">
+ <tr>
+--- ./templates/en/mail_queue.tpl.html 2005-07-30 17:47:13.000000000 +0300
++++ /tmp/mail_queue.tpl.html 2005-07-30 20:21:46.000000000 +0300
+@@ -3,10 +3,8 @@
+ {if $denied == 1}
+ <div class="default" align="center">Sorry, you do not have permission to view this page</div>
+ {else}
+-<script language="javascript">
+-{include file="js/httpclient.js"}
+-{include file="js/expandable_cell.js"}
+-</script>
++<script src="{$rel_url}js/httpclient.js"></script>
++<script src="{$rel_url}js/expandable_cell.js"></script>
+ <form>
+ <table bgcolor="#FFFFFF" width="100%" cellspacing="1" cellpadding="2" border="0">
+ <tr>
================================================================
More information about the pld-cvs-commit
mailing list