Example #1
0
            $PHP_directive_Objects[$i]->setPossibleValues("this is an array that comes from values table per each directive");
        }
    }
    ?>
    
    <table cellpadding="0" cellspacing="0">
        <tr> <td align="right"><b>Mode Selected:</b></td> <td><?php 
    echo $mode;
    ?>
</td> </tr>
        <tr> <td align="right"><b>Operating System:</b></td> <td><?php 
    echo getOS();
    ?>
</td> </tr>
        <tr> <td align="right"><b>PHP Version:</b></td> <td><?php 
    echo getPHPVersion();
    ?>
</td> </tr>

    </table>
    <br />
     <form name="changeForm" method="POST" action="change.php">
     <table border="1" cellspacing="0" cellpadding="0" >
         <th bgcolor="white" colspan="7"><h1>PHP Security Configuration Directives for <?php 
    echo $mode;
    ?>
</h1></th>

         <tr bgcolor="white">

             <td align="center"><b>No.</b></td><td align="center"><b>Name</b></td><td align="center"><b>Recommended</b></td>
Example #2
0
function check_php()
{
    return version_compare(PHP_VERSION, getPHPVersion()) >= 0;
}
Example #3
0
        $phpself = isset($HTTP_SERVER_VARS['PHP_SELF']) ? $HTTP_SERVER_VARS['PHP_SELF'] : '';
        $querystring = isset($HTTP_SERVER_VARS['QUERY_STRING']) ? $HTTP_SERVER_VARS['QUERY_STRING'] : '';
    }
}
$isLoginNeeded = true;
if ($username != '' && $password != '') {
    for ($i = 0; $i < count($user); $i++) {
        if ($user[$i]['username'] == $username && $user[$i]['password'] == $password) {
            $isLoginNeeded = false;
        }
    }
    if (time() - $timestamp > $timeout) {
        $isLoginNeeded = true;
    }
    if (!$isLoginNeeded) {
        if (getPHPVersion() >= 4.1) {
            $_SESSION["TIMESTAMP"] = time();
        } else {
            $HTTP_SESSION_VARS["TIMESTAMP"] = time();
        }
    }
}
if ($isLoginNeeded) {
    ?>
<html>
<head>
<style>
body, p, td, tr, table, input { font-family: verdana, arial, helvetica; color: #0B5979; font-size: 12px;}
.title { font-size: 26px; font-weight: bold;}
</style>
</head>