News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu

Paste-1212712354:v:use_geshi-1:v:type-php

Started by Guest, Jun 06, 2008, 12:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Guest

   // Do errors exist in the install? If so light them up like a christmas tree.
   if ($context['has_failure'])
   {
      echo '
            <div style="margin: 2ex; padding: 2ex; border: 2px dashed #cc3344; color: black; background-color: #ffe4e9; margin-top: 0;">
               <div style="float: left; width: 2ex; font-size: 2em; color: red;">!!</div>
                  <b style="text-decoration: underline;">', $txt['package_will_fail_title'], '

                  <div style="padding-left: 6ex;">
                     ', $txt['package_will_fail_warning'];
      if (isset($context['failures']))
         foreach($context['failures'] as $failure) {
            echo '
File: ' . $failure['filename'] . '
Failure: ' . $failure['search'] . '
';
         }
      echo '
                  </div>
               </div>
            </div>';
   }