08-08-2010, 09:48 PM
bit2bit Wrote:1) I'd try it this way:hi..
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 ...
thanks again for the reply.
For number 2 i can successuflly create another category.
But for no.1, u are right it wont work if i just copy and paste
But can i just put it in any line in index.php..?
and the code i tried to modified, but seems its not working (