<!-- Before anything is done, this is executed to check if PHP is working, since it is needed for this starterkit. --> <s:event b:on="construct"> <s:variable b:name="php_check" /> <s:task b:action="load" b:url="php_check.php" b:destination="$php_check" /> <s:script b:test="not($php_check = 'success')"><!-- var cause = 'This can have multiple causes:\n - Your webserver does not support PHP\n - Your webserver is not configured correctly\n - PHP is not configured correctly'; var additional = '\nAdditionally, this starterkit has other prerequisites. More information can be found in the documentation for this starterkit.'; if (location.protocol == 'file:') cause = 'The reason is that you are currently loading this example from the filesystem.'; alert("We're sorry, this application can not run without a working PHP installation.\nWe have detected that currently PHP is not running.\n" + cause + additional); --></s:script> </s:event> <s:execute> <s:variable b:name="cookie-days" b:select="365" b:scope="global" /> <s:task b:test="not(cookie('category-panel-width'))" b:action="setcookie" b:name="category-panel-width" b:value="180px" b:days="{$cookie-days}" /> <s:task b:test="not(cookie('list-panel-height'))" b:action="setcookie" b:name="list-panel-height" b:value="40%" b:days="{$cookie-days}" /> <s:task b:test="not(cookie('contacts-view'))" b:action="setcookie" b:name="contacts-view" b:value="card-view" b:days="{$cookie-days}" /> <s:task b:action="assign" b:target="$bpc_tooltipTimeout" b:select="500" /> <s:task b:action="assign" b:target="$bpc_resizeLine" b:select="'filter:alpha(opacity=60); -moz-opacity:0.6; opacity:0.6; border:4px solid #666;'" /> <s:task b:action="set" b:target="$bpc_dragSymbol/@class" b:value="dragsymbol" /> </s:execute>