function rex_benchmark($params, $cached = false)
 {
     $div = '<div style="position: absolute; top: 10px; left: 10px;background-color:#EFEFEF;border:2px solid;padding:4px" onClick="this.style.display=\'none\'">';
     $div .= '<b>Redaxo Benchmark Time:</b><br />' . showScripttime() . ' sec';
     if ($cached) {
         $div .= ' (cached)';
     }
     $div .= '</div>';
     $params['subject'] = str_replace('</body>', $div . '</body>', $params['subject']);
     return $params['subject'];
 }
Example #2
0
    }
}
if ($SHOWARTICLE) {
    $REX_ARTICLE = new article();
    $REX_ARTICLE->setCLang($clang);
    if ($REX_ARTICLE->setArticleId($article_id)) {
        $REX_ARTICLE->getArticleTemplate();
    } elseif ($REX_ARTICLE->setArticleId($REX[STARTARTIKEL_ID])) {
        $REX_ARTICLE->getArticleTemplate();
    } else {
        echo "Kein Startartikel selektiert / No starting Article selected. Please click here to enter <a href=redaxo/index.php>redaxo</a>";
        $REX[STATS] = 0;
    }
    //////////////////////////////////////////////
    // advanced caching
    //////////////////////////////////////////////
    if ($Cache->makeCacheFile) {
        $Cache->writeCacheFile();
        if ($REX[CACHING_DEBUG]) {
            print "<br>MadeCache<br>";
        }
    } else {
        if ($REX[CACHING_DEBUG]) {
            print "<br>Live<br>";
        }
    }
    if ($REX[CACHING_DEBUG]) {
        print "Script time: " . showScripttime();
    }
    //////////////////////////////////////////////
}
Example #3
0
    ?>
   <a name="bottom"></a>
   <br/>
   <table class="rexFooter" cellpadding="5" cellspacing="0">
   
      <tr>
	     <th colspan="2">&nbsp;</th>
      </tr>
      
      <tr>
	     <td>
            <a href="http://www.pergopa.de" target="_blank" class="black">pergopa kristinus gbr</a> |
            <a href="http://www.redaxo.de" target="_blank" class="black">redaxo.de</a> |
            <a href="http://forum.redaxo.de">?</a>
         </td>
	     <td style="text-align: right;">
            <?php 
    echo showScripttime();
    ?>
 sec | <?php 
    echo strftime($I18N->msg("dateformat"));
    ?>
         </td>
      </tr>
         
      </table>
<?php 
}
?>
   </body>
</html>
Example #4
0
<?php

echo "<a name=bottom></a><br><table border=0 cellpadding=5 cellspacing=0 width=770>\r\n<tr>\r\n\t<td class=greenwhite>&nbsp;</td>\r\n</tr>\r\n<tr>\r\n\t<td class=grey>&nbsp;&copy; <a href=http://www.pergopa.de target=_blank class=black>pergopa kristinus gbr</a> | <a href=http://www.redaxo.de target=_blank class=black>redaxo.de</a> | " . showScripttime() . " sec</td>\r\n</tr>\r\n</table>";
echo "</body></html>";
Example #5
0
<?php

echo "<a name=bottom></a><br><table border=0 cellpadding=5 cellspacing=0 width=770>\n<tr>\n\t<td class=greenwhite colspan=2>&nbsp;</td>\n</tr>\n<tr>\n\t<td class=grey ><a href=http://www.pergopa.de target=_blank class=black>pergopa kristinus gbr</a> | <a href=http://www.redaxo.de target=_blank class=black>redaxo.de</a> | <a href=http://forum.redaxo.de>?</a></td>\n\t<td class=grey align=right>" . showScripttime() . " sec | " . strftime($I18N->msg("dateformat")) . "</td>\n</tr>\n</table>";
echo "</body></html>";