08-03-2010, 06:42 AM
1) I'd try it this way:
1a) edit index.php
1b) add a query to retrieve the username from DB (this is just pseudocode, do not copy/paste, it won't work):
1c) add a html-element to display
2) Visit: <!-- m --><a class="postlink" href="http://your-host/opendocman/admin.php">http://your-host/opendocman/admin.php</a><!-- m -->
2a) Select one of the Options: Add / Delete / Update / Display
2b) Add new category: Admin -> Categories / Add
2c) Delete any categories: Admin -> Categories / Delete ...
1a) edit index.php
1b) add a query to retrieve the username from DB (this is just pseudocode, do not copy/paste, it won't work):
1c) add a html-element to display
Code:
// retrieve the username from the DB
$query = "SELECT username FROM {$GLOBALS['CONFIG']['db_prefix']}user WHERE username = '$frmuser' AND password = password('$frmpass')";
return: $user;
// add thml element to display the message + username
echo "<font color=green>Welcome: $user!</font>";
2) Visit: <!-- m --><a class="postlink" href="http://your-host/opendocman/admin.php">http://your-host/opendocman/admin.php</a><!-- m -->
2a) Select one of the Options: Add / Delete / Update / Display
2b) Add new category: Admin -> Categories / Add
2c) Delete any categories: Admin -> Categories / Delete ...