Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tracking stats actually work now

  • Loading branch information...
commit de01238d3563246fac763ff6a180ddda4a6379e2 1 parent 0e60a28
@capilkey capilkey authored
View
BIN  auth/build/classes/ldap/LDAPAuthenticate.class
Binary file not shown
View
10 auth/src/ldap/LDAPAuthenticate.java
@@ -64,8 +64,6 @@
* }
*/
- private static File file = new File("stats.txt");
-
private boolean logout;
public LDAPAuthenticate() {
@@ -428,7 +426,7 @@ private void reset() {
private void increaseStat(int num) {
try {
- FileInputStream fstream = new FileInputStream("stats.txt");
+ FileInputStream fstream = new FileInputStream("/var/lib/tomcat6/webapps/auth/WEB-INF/stats.txt");
// Get the object of DataInputStream
DataInputStream in = new DataInputStream(fstream);
BufferedReader br = new BufferedReader(new InputStreamReader(in));
@@ -447,7 +445,7 @@ private void increaseStat(int num) {
in.close();
Writer output = null;
- File file = new File("stats.txt");
+ File file = new File("/var/lib/tomcat6/webapps/auth/WEB-INF/stats.txt");
output = new BufferedWriter(new FileWriter(file));
output.write(sb.toString());
@@ -455,7 +453,7 @@ private void increaseStat(int num) {
} catch (Exception e2) {
try {
Writer output = null;
- File file = new File("stats.txt");
+ File file = new File("/var/lib/tomcat6/webapps/auth/WEB-INF/stats.txt");
output = new BufferedWriter(new FileWriter(file));
output.write("0\n0\n0");
output.close();
@@ -469,7 +467,7 @@ private void increaseStat(int num) {
int [] stats = {0,0,0};
try {
- FileInputStream fstream = new FileInputStream("stats.txt");
+ FileInputStream fstream = new FileInputStream("/var/lib/tomcat6/webapps/auth/WEB-INF/stats.txt");
// Get the object of DataInputStream
DataInputStream in = new DataInputStream(fstream);
BufferedReader br = new BufferedReader(new InputStreamReader(in));
View
BIN  final/auth.war
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.