Login   Register  
PHP Classes
elePHPant
Icontem

File: act_processStart.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Vibert Bruno  >  Process Wait Screen  >  act_processStart.php  >  Download  
File: act_processStart.php
Role: Auxiliary script
Content type: text/plain
Description: Process initialization
Class: Process Wait Screen
Display wait screens to show during long processes
Author: By
Last change:
Date: 10 years ago
Size: 2,017 bytes
 

Contents

Class file image Download
<?
if( !isset( $ENABLE_PROCESS ) || !$ENABLE_PROCESS )
{
    include_once( 
BASE_PATH "class_POSTForm.php" );

    if( empty( 
$HTTP_POST_VARS ) )
    {
        
$template_param = array();
        
$template_param'title' ]         = "Wait screen..."// Titre de la page
        
$template_param'requestPage' ] = $PHP_SELF.( isset( $QUERY_STRING )? "?$QUERY_STRING&ENABLE_PROCESS=1":"?ENABLE_PROCESS=1"  );
        
$template_param'waitPage' ]     = BASE_PATH "index.php?fuseAction=waitScreen";
    }
    else
    {
        
$POST_FORM = new POSTform$HTTP_POST_VARS$PHP_SELF.( isset( $QUERY_STRING )? "?$QUERY_STRING&ENABLE_PROCESS=1":"?ENABLE_PROCESS=1" ), "requestFrame" );
        
$POST_FORM -> output();
        
        
$template_param = array();
        
$template_param'title' ]         = "Wait screen..."// Titre de la page
        
$template_param'requestPage' ] = '';
        
$template_param'waitPage' ]     = BASE_PATH "index.php?fuseAction=waitScreen";
    }
    
?>
    
    <html>
    <head>
            <title><?=$template_param'title' ]?></title>
            <script language=JavaScript src=<?=$MOVIESCENEWEBPATH?>home/index.php?fuseAction=javaScript></script>
            <script language=javascript>
                <?
                
if( isset( $template_param'requestPage' ] ) && !empty( $template_param'requestPage' ] ) )
                {
                
?>
                    setTimeout( "requestFrame.location.replace ('<?=$template_param'requestPage' ]?>')", 500 ); 
                <?
                
}
                
?>
            </script>
            <?
            
if( isset( $POST_FORM ) && is_object$POST_FORM ) )
            {
                
$POST_FORM -> post500 );
            }
            
?>
    </head>
        <frameset rows="<?=($SHOW_DEBUG)? '*,250':'*,0'?>" frameborder=0 framespacing=0 border=2>
            <frame src="<?=$template_param'waitPage' ]?>" noresize name="mainFrame" id="mainFrame" scrolling="no" frameborder="0">
            <frame src="" noresize name="requestFrame" scrolling="yes" frameborder="0">
            <noframes>
                <body>
                    This text will appear only if the browser does not support frames.
                </body>
            </noframes>
        </frameset>
        
        
    </html>
    <?
    
die(); // Stop all processes
}
?>