F A K E S S I

(a ServerSideInclude - replacement for phpCMS with additional features)

current version: 1.4.5

changes: now not only perl but also all oher serversided scripts can be executed
if an error occurs, a message is placed into your content
the performance of the plugin was improved!

a short description

special features in FAKESSI: ::.. NOTE :: ATTENTION ..::

description of the plugin parameters and the use in a content-file

FAKESSI-specific parameters must be written in the same way as described below:
PARAMETER must be in uppercase
describtion is not case sensitive;  value is casesensitive


{PARAMETER}
describtion1:=value
describtion2:=value
aso.....


{FAKESSI_FILE}
path_to_your_documentroot/filename1.xyz
path_to_your_documentroot/filename2.xyz
path_to_your_documentroot/filename3.xyz
path_to_your_documentroot/filename4.xyz



below you find a description of all parameters:
  1. {FAKESSI_TITLE}
  2. {FAKESSI_FILE}


  3. {FAKESSI_SCANRANGE}

  4. {FAKESSI_SCANPRE}
  5. {FAKESSI_RESULT}

definition of the plugin in the content-file

it doesn't matter if you put the FAKESSI parameters before or after the definition for the plugin.

{PLUGIN FILE="$home/path_to_plugin/fakessi.php" TYPE="DYNAMIC"}
or
{PLUGIN FILE="$home/path_to_plugin/fakessi.php" TYPE="STATIC"}

differences between DYNAMIC and STATIC:

if set to  STATIC  FAKESSI includes only at the first run. so whenever you change a value or parameter of FAKESSI you have to clear the parser-cache. (for detail describtion see the phpCMS documentation).

if you set the type of the plugin to DYNAMIC the content is updated on the fly with the parameters and values of FAKESSI.
it is recommended to use the script DYNAMIC.

example for positioning in the content

 using the {FAKESSI_RESULT}parameter

{CONTENT}<br>
your text. foofoofoo.blabla.what a beautiful day!<br>
now let' see the plugin in action!<br>
<#FAKESSI#><br>
wow, the plugin replaced the tag with the content of your included file(s) !<br>

examples

  1. a simple example:
    {FAKESSI_FILE}

    {PLUGIN FILE="$home/path_to_plugin/fakessi.php" TYPE="DYNAMIC"}

    both files are included at the end of the content.

  2. an example with {FAKESSI_SCANRANGE}:
    {FAKESSI_FILE}

    {FAKESSI_SCANRANGE}
    {PLUGIN FILE="$home/path_to_plugin/fakessi.php" TYPE="DYNAMIC"}

    the range values must be set in every file marked for inclusion.
    eg:
    
    [#BEGRANGE#]FirstRunScreens:Start
    Intl:INTL:0:
    GetUserInfo:INIT
    VcpClose:About to close
    VcpClose:About to End
    [#ENDRANGE#]VcpClose:About to Terminate
    DoPreInstallWork:Auditmode :0:

    the plugin adds the text "FirstRunScreens ...  to  End" to the content.

  3. an example with {FAKESSI_SCANPRE}:
    {FAKESSI_SCANPRE} {FAKESSI_FILE}

    {PLUGIN FILE="$home/path_to_plugin/fakessi.php" TYPE="DYNAMIC"}

    each line will be formated with the given values (the plugin doesn't care about text or html files).

  4. an example with {FAKESSI_SCANPRE} and{FAKESSI_SCANRANGE}:
    {FAKESSI_SCANPRE} {FAKESSI_FILE}

    {FAKESSI_SCANRANGE}
    {PLUGIN FILE="$home/path_to_plugin/fakessi.php" TYPE="DYNAMIC"}

    the plugin reads the files within the given range, formats each line and appends them to your content-file.
  5. an example with all parameters:
    {FAKESSI_TITLE}
    {FAKESSI_RESULT}

    {FAKESSI_SCANPRE}
    {FAKESSI_FILE}

    {FAKESSI_SCANRANGE}
    {PLUGIN FILE="$home/path_to_plugin/fakessi1_4.php" TYPE="DYNAMIC"}

    1. the plugins starts scaning after the first body and ends bevore the last body; then each line is formated.
    2. the title of ssitest.html becomes the new title of the content-file.
    3. the plugin replaces the TAG <#fakessi#> with the formated output.


serversided-scripts

NEWS:
now, not only perl-scripts, but also all other serversided scripting languages can be included.
Therefore I renamed rhe tag, the syntax and added more opions!
  1. new syntax for the parameters
  2. now, you can execute as many scripts as you like
  3. new: you can combine files and scripts

SYNTAX:

{SERVERSCRIPT}
1,http://www.yourhost.com/cgi-bin/perldiver.cgi
2,http://www.yourhost.com/cgi-bin/hello.cgi
3,http://www.yourhost.com/$home/setdate.asp+http://www.yourhost.com/$home/php/greetings.php?text=hallo

  1. choose an ID you want to use for your tag followed by a comma!
  2. write down the full path to your serversided-script
  3. NEW: to combine the output of two scripts, write a plus "+" inbetween.
  4. NEW: you can use the specific $home variable of phpCMS. (note: $home has to be defined in your projectfile. for more infos read the phpCMS docu.)
that's all! now place the tags with the ID in your content.

EXAMPLE for a contentfile:

{PLUGIN FILE="$home/fakessi/fakessi.php" TYPE="DYNAMIC"}
{SERVERSCRIPT}
1,http://www.yourhost.com/cgi-bin/perldiver.cgi
2,http://www.yourhost.com/cgi-bin/hello.cgi
3,http://www.yourhost.com/$home/setdate.asp+http://www.yourhost.com/$home/php/greetings.php?text=hallo
and so on...

{CONTENT}
<B>here is the output from the first script:</B><BR>
<BR><SERVERSCRIPT,1><BR>
and here is your second ouput:<BR>
<SERVERSCRIPT,2> <BR>
and here is the ouput of the asp and php script:
<BR>
<SERVERSCRIPT,3> <BR>



todo-list


contact


wernhard ch. kempinger, thevoice@chello.at

if you have any questions, comments, flames please feel free to email me.

you can always check the forum at the phpCMS hompage for updates, news and help also.

Thank You for choosing FAKESSI 1.4