Date: 03/16/01
- Next message: Christian Geschkat: "[phplib] Strange MySQL behaviour"
- Previous message: Mike Green: "Re: [phplib] What is happening now?"
- Next in thread: phplib: "Re: [phplib] PHPLib & Phorum"
- Maybe reply: phplib: "Re: [phplib] PHPLib & Phorum"
- Maybe reply: Dennis Gearon: "Re: [phplib] PHPLib & Phorum"
- Reply: Matt Williams: "RE: [phplib] PHPLib & Phorum"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
phplib schrieb:
>
> >Hi Lars,
> >
> >> But I think Phorum uses two files like header and footer. Maybe
> >it's
> >> possilbe to use the header file to open a session and just
> >rewrite the
> >> links?
> >> I don't know how much work it is... ;-)
> >Not so much - I have done this for a project. It is yust adding
> >the
> >phplib-header to the "header" file. I cannot find my updated
> >version of
> >phorum at the moment, but If someone is interested, I can search
> >more
> >extensivly.
> >
> >Regards,
> >Joern
>
> I'd be interested if it's not too much trouble.
No - it is not. I have found the version. I have added the following
lines at the beginning of each file:
-------------------------
<?php
include ($DOCUMENT_ROOT."/includes/defines.inc");
include ($DOCUMENT_ROOT."/includes/osdb.inc");
include ($DOCUMENT_ROOT."/includes/header.inc");
include ($DOCUMENT_ROOT."/includes/user.inc");
page_open(array("sess" => "OS_Session",
"auth" => "OS_Auth",
"perm" => "OS_Perm"));
$perm->check("user");
--------------------------
osdb.inc is the database-Objectfile for postgres
header.inc includes some functions for adding the menubar at top
user.inc includes some function needed for this project, you can leave
it out.
At the end of each file, I have addes a "page_close()"
What I could not realize (there was not enough time to do so): It is
still necessary to add username and email-adress, when you post a new
message to phorm. There must be a way, to read this data from the
database and insert it automaticly.
I think now you can do it on your own - if you still need the source, I
would upload it to my homepage. (please email me, if necessary)
Regards,
Joern
-- Linux is like a wigwam - no Windows, no Gates and Apache inside--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Christian Geschkat: "[phplib] Strange MySQL behaviour"
- Previous message: Mike Green: "Re: [phplib] What is happening now?"
- Next in thread: phplib: "Re: [phplib] PHPLib & Phorum"
- Maybe reply: phplib: "Re: [phplib] PHPLib & Phorum"
- Maybe reply: Dennis Gearon: "Re: [phplib] PHPLib & Phorum"
- Reply: Matt Williams: "RE: [phplib] PHPLib & Phorum"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

