PHP Classes
elePHPant
Icontem

File: param.inc

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Vladimir Kudryavtsev  >  History links  >  param.inc  >  Download  
File: param.inc
Role: Auxiliary script
Content type: text/plain
Description: Test (for all pages)
Class: History links
Keep track and link to pages browsed by user
Author: By
Last change: * Little changes
Date: 9 years ago
Size: 1,602 bytes
 

Contents

Class file image Download
<?php
@session_start();
if(!isset(
$_SESSION['test_select_se']))$_SESSION['test_select_se']=6;
if(isset(
$_GET['test_select'])){
   
$_SESSION['test_select_se']=$_GET['test_select'];
}
$switch=$_SESSION['test_select_se'];

if(isset(
$arr_get))$switch=$arr_get;



switch(
$switch){
case
1:
   
$arr=array(
       
'start'=>'page1.html',
       
'page_back'=>array('page3.html','page.html'),
       
'param_full'=>array('param4'),
       
'value_full'=>array('content4')
    );
   
$back_next_param=1;
   
#max history
   
$max_url_history=100;
    break;
case
2:
   
$arr=array(
       
'start'=>'page3.html',
       
'page_back'=>array('page1.html'),
       
'param_back'=>array('param1'),
       
'value_back'=>array('content2'),
       
'post'=>0
   
);
   
$back_next_param=1;
   
#max history
   
$max_url_history=50;
    break;
case
3:
   
$arr=array(
       
'start'=>'page1.html',
       
'page_full'=>array('page6.html','age.html'),
       
'param_full'=>array('param4'),
       
'value_full'=>array('content4'),
       
'post'=>1
   
);
   
$back_next_param=1;
   
#max history
   
$max_url_history=50;
    break;
case
4:
   
$arr=array();
   
$back_next_param=1;
   
#max history
   
$max_url_history=50;
    break;
case
5:
   
$arr=array();
   
$back_next_param=0;
   
#max history
   
$max_url_history=10;
    break;
default:
   
$arr=array(
       
'start'=>'page1.html',
       
'name_back_param'=>'ba',
       
'name_next_param'=>'ne',
       
'header_param'=>'h_pm',
       
'page_back'=>array('page3.html','page.html'),
       
'page_full'=>array('page6.html','age.html'),
       
'param_back'=>array('param2'),
       
'param_full'=>array('param4'),
       
'value_back'=>array('content3'),
       
'value_full'=>array('content4'),
       
'post'=>1
   
);
   
$back_next_param=1;
   
#max history
   
$max_url_history=50;
    break;
}


?>