Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1] 2   Go Down

Author Topic: ....Illegal usage....  (Read 42388 times)

0 Members and 1 Guest are viewing this topic.

wintersdorff

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
    • http://www.winti.lu
....Illegal usage....
« on: October 11, 2003, 02:14:44 pm »

Hi

When I use Postwrap for coppermine and open application full screen I got the error .....Illegal Usage...... When I switch ...open application full screen off.... it does not find the module ( or link ti copermine) .

Cas in you old forum, somebody had about the same problem, could you eventually send to me the file you send to him as well to me.

Thanks

Winti
Logged
www.winti.lu - The truth well told -

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
....Illegal usage....
« Reply #1 on: October 12, 2003, 11:47:11 am »

Winti,

your problem can be easily fixed.
Open up the pnuser.php and look for the following code :
Code: [Select]

if ($CPGwindow == 1 ) {
Header('Location: '.$url );
} else {


replace this with this code :
Code: [Select]

if ($CPGwindow == 1 ) {
$url="$CPGloc/index_pn.php?parm=$parm&check=$check";
Header('Location: '.$url );
} else {


If it does not solve the problem, try using the module with Postwrap disabled and let me know if it then runs fine.

Cas
Logged

wintersdorff

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
    • http://www.winti.lu
....Illegal usage....
« Reply #2 on: October 12, 2003, 02:38:30 pm »

Thanks Cas,

This did solve the problem of the illegal usage. Another effect now is I cannot get it to run properly in Postwrap. It always "jumps" to the standalone version, but running thru the login and end up as logged in . It makes no difference if Run with Postwrap is ticked or not.

I can get it to run thru postwrap by, instead of calling it thru {pnCPG} calling it with ........modules.php?op=modload&name=pnCPG&file=index&url=../coppermine, but of course than it does not run thru the login in so the client needs to login twice.

Any ideas ??

If you want to see the effect go to www.winti.lu on the left menu there are 3 different version of calling it so you see. (Gal; Gal test; and Gal Test2)

Thanks again

Winti
Logged
www.winti.lu - The truth well told -

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
....Illegal usage....
« Reply #3 on: October 12, 2003, 02:55:50 pm »

Winti,
looks to me , you have Full  Screen enabled in the config of pnCPG. If this is enabled, it looks like jumping to standalone mode but it will log you in.
If you disable full screen, it will open up within PostNuke (with or wirhout PostWrap).

Cas
Logged

wintersdorff

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
    • http://www.winti.lu
....Illegal usage....
« Reply #4 on: October 12, 2003, 05:23:44 pm »

Dummy I am...of course. You are great support. Now I can switch from my eGallery to coppermine.

The only thing is that it does not work with Postwrap, its giving me a blank page, but without PostWrap it works fine.

Thanks again,

Cheerio

PS: Anyway I prefer this hack to a real modul. It is much quicker in loading as i doesent need to always reload the complete postnukepage. The only enoying thing is the fixed height only working with px in frame, but I can live with that.
Logged
www.winti.lu - The truth well told -

wintersdorff

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
    • http://www.winti.lu
....Illegal usage....
« Reply #5 on: October 13, 2003, 11:19:29 am »

Sorry...I have to revise a little.

If one does use it without PostWrap the effect is while logging out of PostNuke and for instance logging back in again, the logging into Coppermine will remain on Guest account. ( Cookies ??) This happens as well on your site.

But with Postwrap enabled I just get a blank page with nothing on it. Do you have an idea of what it could be ?

Thanks
Logged
www.winti.lu - The truth well told -

hardlocke

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 35
....Illegal usage....
« Reply #6 on: October 13, 2003, 11:46:44 am »

i have also the problem, when i enable the postwrap option and open now the coppermine gallery with the pnCPG link, all other postwrap link don't work (404 error)  :cry:  :cry:
Logged

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
....Illegal usage....
« Reply #7 on: October 13, 2003, 12:20:20 pm »

Winti & Hardlocke,

can you supply me with your OS, Webserver,PHP & PN version please ?

Cas
Logged

hardlocke

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 35
....Illegal usage....
« Reply #8 on: October 13, 2003, 01:10:02 pm »

Windows 2003 Server (IIS), PHP 4.33, Postnuke 0.726
Logged

wintersdorff

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
    • http://www.winti.lu
....Illegal usage....
« Reply #9 on: October 13, 2003, 07:46:34 pm »

PHP 4.3.3  and latest Linux. Here more info .http://www.server-2.com/phpinfo.php

 My CMS is Envolution based on the latest Postnuke
Logged
www.winti.lu - The truth well told -

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
....Illegal usage....
« Reply #10 on: October 13, 2003, 11:05:24 pm »

Winti,Hardlocke

Have send you3 updated files by e-mail.
Please post your comments here.

Cas
Logged

hardlocke

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 35
....Illegal usage....
« Reply #11 on: October 14, 2003, 07:54:11 am »

now i get the error
Wrong method of calling this module use {} instead of []..
after upgrading the specified files... (postwrap modus doesn't care)
Logged

wintersdorff

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
    • http://www.winti.lu
....Illegal usage....
« Reply #12 on: October 14, 2003, 08:54:05 am »

Hi Cas,

Its weird, now I get this: You must be logged in to use our projekt environment...
The "Guest"account doesent seem to function anymore.

After having logged to Postnuke, I can get to the Gallery again.

With PostWrap enabled I still got the blank page.


Thanks
Logged
www.winti.lu - The truth well told -

hardlocke

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 35
....Illegal usage....
« Reply #13 on: October 14, 2003, 05:51:36 pm »

Okey, the above problem is resolved (now i start pnCPG wit {pnCPG})

i installed the new files, but after i switch to postwrap-mode and access
to the gallery (this work fine) all other postwrap link doesn't work anymore!
Logged

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
....Illegal usage....
« Reply #14 on: October 14, 2003, 07:16:27 pm »

Hardlocke,
what are your settings within Postwrap ?
Why use postwrap, is there a special reason ?
Cas
Logged

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
....Illegal usage....
« Reply #15 on: October 14, 2003, 07:19:17 pm »

Winti,
i took out the Guest account since Coppermine does not really need it,  will bring it back as an option in the next version.
As for postwrap, how did you configure that ?
Same question for you, why postwrap (which also uses an iframe) ?

Cas
Logged

hardlocke

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 35
....Illegal usage....
« Reply #16 on: October 14, 2003, 08:26:39 pm »

with postwrap i have no unwanted additional border  :lol:
can i remove this in the pnCPG configuration?
Logged

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
....Illegal usage....
« Reply #17 on: October 14, 2003, 09:28:53 pm »

on my site, they look the same, with or without postwrap.
Can you set up 2 links so I can see the difference ?

Cas
Logged

wintersdorff

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
    • http://www.winti.lu
....Illegal usage....
« Reply #18 on: October 14, 2003, 09:50:30 pm »

Did not know it uses iframe as well.

Cas , as you took out the guest account in the new files you sent to us, it does not work anymore at my end, when you are not logged in into Postnuke.

I agree the guest account is not needed, the more it was confusing.

Here the message.

You must be logged in to use our projekt environment...

As in most of the visitors are not logged in they wont be able to see the gallery unless they log in or first have to create an account.

I rather prefer the non guest account changed files but working for non registered or on logged users.

Thanks Cas
Logged
www.winti.lu - The truth well told -

casNuy

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 671
  • My other hobby
    • Nuy Community
....Illegal usage....
« Reply #19 on: October 14, 2003, 10:59:59 pm »

Again easy to achieve. Open up index.php, located in the pcCPG directory.
Take out the following code :
Code: [Select]

if (!pnUserLoggedIn()) {
die ("You must be logged in to use our Gallery...");
}


It still says 'projekt environment' on your end which was a type from me.

Cas
Logged
Pages: [1] 2   Go Up
 

Page created in 0.056 seconds with 19 queries.