示例#1
0
			</tr>
			<tr>
				<td class="membersRow' . (++$rowstripe % 2 + 1) . '">upload_max_filesize</td>
				<td class="membersRow' . ($rowstripe % 2 + 1) . '">' . ini_get('upload_max_filesize') . '</td>
			</tr>
		</table>
	</div>
</div>';
// Table display fix
echo "</td><td valign=\"top\" style=\"width:50%;\">\n";
// Display GD info
echo '
<div class="tier-2-a">
	<div class="tier-2-b">
		<div class="tier-2-title">GD Support</div>
' . describeGDdyn() . '
	</div>
</div>';
// Table display fix
echo "</td></tr></table>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"6\"><tr><td valign=\"top\" style=\"width:50%;\">\n";
// Display conf.php info
echo '
<div class="tier-2-a">
	<div class="tier-2-b">
		<div class="tier-2-title">Config Values</div>
		<div class="tier-3-a">
			<div class="tier-3-b">
				<div class="text">
					<em><a href="' . makelink('rosterdiag&amp;printconf=1') . '" target="_blank">Show All Config Data</a></em>
				</div>
示例#2
0
		<td class="membersRow' . (++$rowstripe % 2 + 1) . '">allow_url_fopen</td>
		<td class="membersRowRight' . ($rowstripe % 2 + 1) . '">' . onOff(ini_get('allow_url_fopen')) . '</td>
	</tr>
	<tr>
		<td class="membersRow' . (++$rowstripe % 2 + 1) . '">file_uploads</td>
		<td class="membersRowRight' . ($rowstripe % 2 + 1) . '">' . onOff(ini_get('file_uploads')) . '</td>
	</tr>
	<tr>
		<td class="membersRow' . (++$rowstripe % 2 + 1) . '">upload_max_filesize</td>
		<td class="membersRowRight' . ($rowstripe % 2 + 1) . '">' . ini_get('upload_max_filesize') . '</td>
	</tr>
</table>', 'PHP Settings', 'syellow', false, '350px');
// Table display fix
echo "</td><td valign=\"top\">\n";
// Display GD info
echo messageboxtoggle(describeGDdyn(), 'GD Support', 'sgreen', false, '350px');
// Table display fix
echo "</td></tr></table>\n";
echo "<table cellspacing=\"6\"><tr><td valign=\"top\">\n";
// Display conf.php info
echo messageboxtoggle('
<table width="100%" class="bodyline" cellspacing="0">
	<tr>
		<th colspan="2" class="membersHeaderRight"><i><a href="' . makelink('rosterdiag&amp;printconf=1') . '" target="_blank">Show Entire $roster->config array</a></i></th>
	</tr>
	<tr>
		<td class="membersRow' . (($rowstripe = 0) % 2 + 1) . '">version</td>
		<td class="membersRowRight' . ($rowstripe % 2 + 1) . '">' . $roster->config['version'] . '</td>
	</tr>
	<tr>
		<td class="membersRow' . (++$rowstripe % 2 + 1) . '">db_version</td>
示例#3
0
            }
        }
    } else {
        echo "<font color=\"#ff0000\">no</font>";
    }
    echo "</li></ul>";
}
function yesNo($bool)
{
    if ($bool) {
        return "<font color=\"#00ff00\"> yes</font>";
    } else {
        return "<font color=\"#ff0000\"> no</font>";
    }
}
echo '<strong>var_dump(gd_info()):</strong><br>';
var_dump(gd_info());
echo '<br><br><strong>gdVersion():</strong><br>';
if ($gdv = gdVersion()) {
    echo '$gdv: ' . $gdv . '<br>';
    if ($gdv >= 2) {
        echo 'TrueColor functions may be used.';
    } else {
        echo 'GD version is 1.  Avoid the TrueColor functions.';
    }
} else {
    echo "The GD extension isn't loaded.";
}
echo '<br><br><strong>describeGDdyn():</strong><br>';
describeGDdyn();