You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Lukas Zapletal <lz...@bach.cz> on 2001/12/13 08:02:49 UTC

Re[2]: encoding

>>I`ve implemented a callback function EMBPERL_INPUT_FUNC for encrypting the
>>source code, but Embperl (1.3.3-dev) is calling it only for *.epl files and
>>not for *.phtml files.
GR> Looks like you have setup the INPUT_FUNC only for epl files in your
GR> httpd.conf. If this isn't the problem, please send us the part of your
GR> httpd.conf where you setup Embperl.

SetEnv EMBPERL_LOG 'd:\temp\embperl.log'
SetEnv EMBPERL_MAILHOST "lamed"
SetEnv EMBPERL_OBJECT_BASE "base.epl"
SetEnv EMBPERL_OBJECT_STOPDIR 'd:/Inetpub/wwwroot/suar'
SetEnv EMBPERL_OBJECT_ADDPATH 'd:/Inetpub/wwwroot/suar/default'
SetEnv EMBPERL_ESCMODE 0
SetEnv EMBPERL_COOKIE_NAME "WSID_TEST"
SetEnv EMBPERL_COOKIE_EXPIRES "+30m"
SetEnv EMBPERL_SESSION_HANDLER_CLASS "Weber::Session::Embperl"
SetEnv EMBPERL_SESSION_CLASSES "Weber::Session::DB_File Null Null Weber::Session::IdGenerator::BASE64"
SetEnv EMBPERL_SESSION_ARGS "directory=D:/TEMP/SESSIONS"
SetEnv EMBPERL_INPUT_FUNC "WeberUtil::read_encrypted_file"
SetEnv EMBPERL_DEBUG 0
SetEnv EMBPERL_OPTIONS 48

<FilesMatch "\.(epl|phtml)$">
        SetHandler  perl-script
    PerlHandler HTML::EmbperlObject
    Options     ExecCGI
</FilesMatch>

<Files *.pshtml>
        SetHandler  perl-script
    PerlHandler HTML::Embperl
    Options     ExecCGI
</Files>

AddType text/html .epl
AddType text/html .phtml
AddType text/html .pshtml

GR> P.S. Did you look into crypto/README. Doesn't this fit for you ?
No, I need to implement my own cipher. There is used some fixed SSL ciphers...
and re-implementing should be a bit complicated I suppose.


Regards

  Lukas Zapletal [lzap@bach.cz]
  web programmer
  Bach systems Ltd., Czech Republic

  ----------- PGP FINGERPRINT ------------
  4BA4ECA3EDE9608558646ABBA14259E3459FA0B4
  --------------- COOKIE -----------------
  Linux: Because rebooting is for adding new hardware


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Re[2]: encoding

Posted by Gerald Richter <ri...@ecos.de>.
> >>I`ve implemented a callback function EMBPERL_INPUT_FUNC for encrypting
the
> >>source code, but Embperl (1.3.3-dev) is calling it only for *.epl files
and
> >>not for *.phtml files.
> GR> Looks like you have setup the INPUT_FUNC only for epl files in your
> GR> httpd.conf. If this isn't the problem, please send us the part of your
> GR> httpd.conf where you setup Embperl.
>

The config seems to be ok. As long as you don't have any settings for phtml
elsewhere in your httpd.conf Embperl will handle epl and phtml exactly the
same, because Embperl doesn't care about the file extentions.

Must be either another setting in your httpd.conf (.htaccess) or your
handler treats the both file extentions different.

Gerald

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org