예제 #1
0
/**
 * Check if the user's PHP version is supported by Geeklog
 *
 * @return boolean True if supported, falsed if not supported
 *
 */
function INST_phpOutOfDate()
{
    $minv = explode('.', SUPPORTED_PHP_VER);
    $phpv = php_v();
    if ($phpv[0] < $minv[0] || $phpv[0] == $minv[0] && $phpv[1] < $minv[1] || $phpv[0] == $minv[0] && $phpv[1] == $minv[1] && $phpv[2] < $minv[2]) {
        return true;
    }
    return false;
}
예제 #2
0
/**
 * Check if the user's PHP version is supported by glFusion
 *
 * @return bool True if supported, falsed if not supported
 *
 */
function _phpOutOfDate()
{
    $phpv = php_v();
    if ($phpv[0] < 5 || $phpv[0] == 5 && $phpv[1] < 2) {
        return true;
    } else {
        return false;
    }
}
예제 #3
0
function INST_phpIsGreater($version)
{
    $phpv = php_v();
    $check = explode('.', $version);
    if ($phpv[0] > $check[0]) {
        return true;
    }
    if ($phpv[0] >= $check[0] && $phpv[1] > $check[1]) {
        return true;
    }
    if ($phpv[0] >= $check[0] && $phpv[1] >= $check[1] && $phpv[2] >= $check[2]) {
        return true;
    }
    return false;
}
    <style type="text/css">
      .pass{
        color: green;
      }
      .fail{
        color: red;
        font-weight: bold;
      }
    </style>
  </head>
  <body>
    <p>This page checks some system settings and configuration options to help judge if Concerto will work as intended.  It is by no means exhaustive or all inclusive.</p>
    <h1>PHP Enviroment</h1>
    <ul>
      <li>PHP Version: <?php 
echo php_v();
?>
</li>
      <li>MySQL Support: <?php 
echo mysql_ext();
?>
</li>
      <li>GD Support: <?php 
echo gd_ext();
?>
</li>
      <li>JSON Support: <?php 
echo json_test();
?>
</li>
      <li>PATH INFO Global: <?php