09-04-2012, 10:00 AM
Thanks for the update, but I couldn't wait. So I did another edit to emulate an anonymous user.
1. I created a user ID that is only allowed read only.
2. I copied index.php to index-r.php.
3. I edited index-r.php:
a. I remarked out line 63: if(isset($_Post['login']))
b. I remarked out the { on line 64
c. I changed line 71 to hard code an ID: $frmuser = "username";
d. I changed line 72 to hard code a Password: $frmpass= "password";
e. I remarked out lines 119-130.
Now when a user goes to <!-- m --><a class="postlink" href="http://intranet/opendoc/index-r.php">http://intranet/opendoc/index-r.php</a><!-- m --> it auto logs in with the ID that is restricted to read only.
If I send a user to <!-- m --><a class="postlink" href="http://intranet/opendoc/index.php">http://intranet/opendoc/index.php</a><!-- m --> they get the normal log in.
-Chris
1. I created a user ID that is only allowed read only.
2. I copied index.php to index-r.php.
3. I edited index-r.php:
a. I remarked out line 63: if(isset($_Post['login']))
b. I remarked out the { on line 64
c. I changed line 71 to hard code an ID: $frmuser = "username";
d. I changed line 72 to hard code a Password: $frmpass= "password";
e. I remarked out lines 119-130.
Now when a user goes to <!-- m --><a class="postlink" href="http://intranet/opendoc/index-r.php">http://intranet/opendoc/index-r.php</a><!-- m --> it auto logs in with the ID that is restricted to read only.
If I send a user to <!-- m --><a class="postlink" href="http://intranet/opendoc/index.php">http://intranet/opendoc/index.php</a><!-- m --> they get the normal log in.
-Chris