function topform($name, $value, $replace)
{
    global $bg1, $bg2;
    global $tabtag;
    global $mnuimg;
    global $mnutxt;
    $pageid = getpageid();
    $standard = "\n<form method='get' action=" . $_SESSION['reqpage'] . ">\n<input type=hidden name=pageid value='" . getpageid() . "'>\n" . $name . "<input type='text' name='text' value='" . $value . "' size='60'> </th>\n<th width=80> <input type='submit' name='submit' value='submit'>\n</form>\n";
    if (isset($replace)) {
        $standard = $replace;
    }
    //<html
    ?>
<table bgcolor=#000000 <?php 
    echo $tabtag;
    ?>
 >
	<tr bgcolor=#<?php 
    echo $bg1;
    ?>
>
		<th width=80><a href=<?php 
    echo $_SESSION['reqpage'];
    ?>
><img src=img/32/<?php 
    echo $mnuimg;
    ?>
 border=0><?php 
    echo $mnutxt;
    ?>
</a></th>
		<th><?php 
    echo $standard;
    ?>
</th>
	</tr>
</table>
<p>
<?php 
    //html>
}
Exemple #2
0
    require $configdir . "/config.php";
} else {
    $configdir = 'config';
}
//
//
//
$lang = getlang();
if (isset($lang)) {
    if (file_exists("{$configdir}/{$lang}/config.php")) {
        require "{$configdir}/{$lang}/config.php";
    }
}
//
//
$pageid = getpageid();
if (!isset($pageid)) {
    $pageid = $defaultpage;
}
$page_include = "include/" . $pageid;
$config_include = $configdir . "/" . $pageid;
if (file_exists($page_include)) {
    if (file_exists($config_include)) {
        require $config_include;
    }
    if (autherized(getuserid(), $pageauth)) {
        require $page_include;
        $page_var = page_init();
        page_html_header($page_var);
        page_main($page_var);
        page_html_footer($page_var);