Beispiel #1
0
/**
 * create and send a response.
 * This function will issue an exit command!
 * 
 * @param   boolean $boolSuccess    was the operating successful?
 * @param   string  $strMessage     a message, if any
 */
function exitWithResponse($boolSuccess, $strMessage = '')
{
    if (true === $boolSuccess) {
        print '<b style="color: green;">SUCCESS</b>';
    } else {
        print '<b style="color: red;">ERROR</b>';
    }
    if (false === empty($strMessage)) {
        print ': ';
        print $strMessage;
    }
    if (true === $boolSuccess) {
        // despite globals being bad in general, this is way easier.
        global $strConfigSuffix;
        print '<p><a href="../editor/?config=' . $strConfigSuffix . '">open config in editor</a></p>';
        print '<p><a href="../?config=' . $strConfigSuffix . '">show in CometVisu</a></p>';
    }
    outputFooter();
    exit;
}
Beispiel #2
0
echo mklink('https://raw.github.com/openlayers/openlayers/master/license.txt', 'FreeBSD license');
?>
)</li>
	<li><?php 
echo mklink('http://jquery.org/', 'jQuery');
?>
 (available under a <?php 
echo mklink('http://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt', 'MIT license');
?>
)</li>
	<li><?php 
echo mklink('http://jqueryui.com/', 'jQuery UI');
?>
 (available under a <?php 
echo mklink('http://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt', 'MIT license');
?>
)</li>
	<li><?php 
echo mklink('http://www.famfamfam.com/lab/icons/silk/', 'famfamfam silk icons');
?>
 (available under the <?php 
echo mklink('http://creativecommons.org/licenses/by/3.0/', 'Creative Commons Attribution 3.0 License');
?>
)</li>
</ul>
</p>
<?php 
outputFooter();
?>