comparison usrajax.php @ 165:15182643d672

Cosmetics.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 27 Oct 2013 04:06:12 +0200
parents cc02c1d6808c
children 8df523e6326a
comparison
equal deleted inserted replaced
164:30728a223249 165:15182643d672
49 else 49 else
50 return TRUE; 50 return TRUE;
51 } 51 }
52 52
53 53
54 54 //
55 // Check if we are allowed to execute 55 // Initialize
56 //
56 if (!stUserSessionAuth()) 57 if (!stUserSessionAuth())
57 { 58 {
58 stSetupCacheControl(); 59 stSetupCacheControl();
59 60
60 stSessionEnd(SESS_USER); 61 stSessionEnd(SESS_USER);
61 62
62 header("Location: ".stGetSetting("defaultPage")); 63 header("Location: ".stGetSetting("defaultPage"));
63 exit; 64 exit;
64 } 65 }
65 66
66 //
67 // Initialize
68 //
69 stSetupCacheControl(); 67 stSetupCacheControl();
70 68
71 if (!stConnectSQLDB()) 69 if (!stConnectSQLDB())
72 die("Could not connect to SQL database."); 70 die("Could not connect to SQL database.");
73 71