Access Denied.

Permalink
In my elements folder I have a css.php file. For some reason though when the browser is calling file I'm getting a "Access Denied" error.

Is there anything I can do to fix this?

Here is the code in this file...

<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<style type="text/css">
   <?php
      $co = new Config();
      $pkg = Package::getByHandle('theme_name');
      $co->setPackageObject($pkg);
      $background_image = $co->get('background_image');
      if($background_image){ ?>
         body{
            background:url('<?php echo $background_image; ?>') repeat; !important;
         }
   <?php } ?>
</style>

bryanlewis
 
bryanlewis replied on at Permalink Best Answer Reply
bryanlewis
Fixed: I was including the toolsURL wrong in my header...