Пример #1
0
echo WurflSupport::showLogLevel(TeraWurflConfig::$LOG_LEVEL);
?>
						</span>, desired logging level. Use the same constants as for PHP logging<br />
					OVERRIDE_MEMORY_LIMIT <span class="setting">
						<?php 
echo WurflSupport::showBool(TeraWurflConfig::$OVERRIDE_MEMORY_LIMIT);
?>
						</span>, override PHP's default memory limit<br />
					MEMORY_LIMIT <span class="setting">
						<?php 
echo TeraWurflConfig::$MEMORY_LIMIT;
?>
						</span>, the amount of memory to allocate to PHP if OVERRIDE_MEMORY_LIMIT is enabled<br />
					SIMPLE_DESKTOP_ENGINE_ENABLE <span class="setting">
						<?php 
echo WurflSupport::showBool(TeraWurflConfig::$SIMPLE_DESKTOP_ENGINE_ENABLE);
?>
						</span>, enable the SimpleDesktop Detection Engine to increase performance<br />
					CAPABILITY_FILTER:
						<?php 
echo "<pre class=\"setting\">" . var_export(TeraWurflConfig::$CAPABILITY_FILTER, true) . "</pre>";
?>
						the capability filter that is used to determine which capabilities are available<br />
			</p>
				</td>
		</tr>
	</table>
	<p>&nbsp;</p>
	<table width="800" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<th scope="col">Log File (last 30 lines) </th>
        foreach ($capability as $property => $value) {
            $class = $i++ % 2 == 0 ? 'lightrow' : 'darkrow';
            // Primary Group
            $value = is_bool($value) || $value == "true" || $value == "false" ? WurflSupport::showBool($value) : $value;
            if ($value == "") {
                $value = "[null]";
            } else {
                $value = htmlspecialchars($value);
            }
            $nicecap .= "<tr><td class=\"cap_title {$class}\">{$property}</td><td class=\"cap_value {$class}\">" . htmlspecialchars($value) . "</td></tr>\n";
        }
        $nicecap .= "</table>";
        $nicecap .= "</td></tr>\n";
    } else {
        // Top Level attribute
        $capability = is_bool($capability) || $capability == "true" || $capability == "false" ? WurflSupport::showBool($capability) : $capability;
        if ($capability == "") {
            $capability = "[null]";
        } else {
            $capability = htmlspecialchars($capability);
        }
        $nicecap .= "<tr><td class=\"cap_heading\">{$group}</td><td class=\"cap_value\">{$capability}</td></tr>\n";
    }
}
foreach ($groups as $num => $group) {
    $groups[$num] = "<a href=\"#{$group}\">{$group}</a>";
}
$grouplinks = implode(' | ', $groups);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">