Login   Register  
PHP Classes
elePHPant
Icontem

File: index.html

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  >  index.html  >  Download  
File: index.html
Role: Example script
Content type: text/plain
Description: Test (start page)
Class: History links
Keep track and link to pages browsed by user
Author: By
Last change: * Little changes
Date: 8 years ago
Size: 4,138 bytes
 

Contents

Class file image Download
<?php 
@session_start();
if(isset(
$_SESSION['history_links'])){
    unset(
$_SESSION['history_links']);
    
#session_unregister('history_links');
}
?>
<html>
<head>
<title>test_history_links - select test</title>
<style>
html,body,td,span,div,th{
    font-family: Arial,Tahoma,Helvetica,sans-serif;
    font-size:12px;    
}
pre{
    font-size:11px;
}
form{
    margin:0;
}
</style>    
</head>

<body>

<div align=center>
<b><big>Select test</big></b><p>
<table border=1 cellpadding=2 cellspacing=0>
<tr valign="top">
<td><b><a href="page1.html?test_select=1">Test 1</a></b><p>
<font color="#008080">If exceptions are installed,<br>the given configuration recommended to usage</font><p>
<?php 
$arr_get
=1;
include(
'param.inc');
echo 
'max history: <b>'.$max_url_history.'</b>';
echo 
'<br>back_next_param: <b>'.$back_next_param.'</b>';
echo 
'<br><pre>';
print_r($arr);
$arr=array();
?></td>
<td><b><a href="page2.html?test_select=2">Test 2</a></b><p>
<?php 
$arr_get
=2;
include(
'param.inc');
echo 
'max history: <b>'.$max_url_history.'</b>';
echo 
'<br>back_next_param: <b>'.$back_next_param.'</b>';
echo 
'<br><pre>';
print_r($arr);
$arr=array();
?></td>
<!-- <td><b><a href="page3.html?test_select=3">Test 3</a></b><p>
<?php 
$arr_get
=3;
include(
'param.inc');
echo 
'max history: <b>'.$max_url_history.'</b>';
echo 
'<br>back_next_param: <b>'.$back_next_param.'</b>';
echo 
'<br><pre>';
print_r($arr);
$arr=array();
?></td> -->
<td nowrap><b><a href="page4.html?test_select=4">Test 4</a></b><p>
<?php 
$arr_get
=4;
include(
'param.inc');
echo 
'max history: <b>'.$max_url_history.'</b>';
echo 
'<br>back_next_param: <b>'.$back_next_param.'</b>';
echo 
'<br><pre>';
print_r($arr);
$arr=array();
?></td>
<td nowrap><b><a href="page5.html?test_select=5">Test 5</a></b><p>
<?php 
$arr_get
=5;
include(
'param.inc');
echo 
'max history: <b>'.$max_url_history.'</b>';
echo 
'<br>back_next_param: <b>'.$back_next_param.'</b>';
echo 
'<br><pre>';
print_r($arr);
$arr=array();
?></td>
<td><b><a href="page6.html?test_select=6">Test 6</a></b><p>
<?php 
$arr_get
=6;
include(
'param.inc');
echo 
'max history: <b>'.$max_url_history.'</b>';
echo 
'<br>back_next_param: <b>'.$back_next_param.'</b>';
echo 
'<br><pre>';
print_r($arr);
?></td>
</tr>
</table><br>
<table style="border: 1px solid #3F3F3F; background-color: #fAfAfA;"><tr><td><pre>
[start] => page1.html               Start page for tracking (default: empty), absolute "url" is recommended
[name_back_param] => back_name      Name for "back" parameter (default: b) -> page.html?back_name=1
[name_next_param] => next_name      Name for "next" parameter (default: n) -> page.html?next_name=1
[header_param] => h_pm              Name for "header()" (default: h_p) -> &lt;?php header("Location: page.html?h_pm");?&gt;
[page_back] => Array                Skip of page if back step
    (
        [0] => page3.html
        ...
        [n] => page_name
    )
[page_full] => Array                Skip of page if back step or next step
    (
        [0] => page6.html
        ...
        [n] => page_name
    )
[param_back] => Array               Skip of page if back step -> the page "page.html?param2=1" will be skipped
    (
        [0] => param2
        ...
        [n] => string
    )
[param_full] => Array               Skip of page if back step or next step -> the page "page.html?param4=1" will be skipped
    (
        [0] => param4
    )
[value_back] => Array               Skip of page if back step -> the page "page.html?param=content3" will be skipped
    (
        [0] => content3
        ...
        [n] => string
    )
[value_full] => Array               Skip of page if back step or next step -> the page "page.html?param=content4" will be skipped
    (
        [0] => content4
        ...
        [n] => string
    )
[post] => 1                         Will track page without "POST-request" (default: 0, always will skip page with POST)


back_next_param=1                   Use of additional parameters in URL (name_back_param,name_next_param) 
                                    if 0, not use additional parameters in URL
                                    !!!!! <b>Correctly works only for one step</b> !!!!!
</td></tr></table></div>
</body>
</html>