| @@ -63,7 +63,7 @@ | ||
| 63 | 63 | 50 | 
| 64 | 64 | ); | 
| 65 | 65 | |
| 66 | - // $df->setSize(100); | |
| 66 | + // $df->setSize(100); | |
| 67 | 67 | $params->push($df); | 
| 68 | 68 | |
| 69 | 69 | return $params; | 
| @@ -5,7 +5,7 @@ | ||
| 5 | 5 | public static $db = array( | 
| 6 | 6 | 'MpuAboveFoldPosition' => 'Int', | 
| 7 | 7 | 'MpuBelowFoldPosition' => 'Int', | 
| 8 | - ); | |
| 8 | + ); | |
| 9 | 9 | |
| 10 | 10 | public static $defaults = array( | 
| 11 | 11 | 'MpuAboveFoldPosition' => '4', | 
| @@ -7,7 +7,7 @@ discard block | ||
| 7 | 7 |  { | 
| 8 | 8 | public static $searchable_fields = array( | 
| 9 | 9 | 'WebsiteLink', | 
| 10 | - ); | |
| 10 | + ); | |
| 11 | 11 | |
| 12 | 12 | public static $db = array( | 
| 13 | 13 | // title to show in model admin | 
| @@ -33,7 +33,7 @@ discard block | ||
| 33 | 33 | // stats | 
| 34 | 34 | 'Impressions' => 'Int', | 
| 35 | 35 | 'Clickthroughs' => 'Int', | 
| 36 | - ); | |
| 36 | + ); | |
| 37 | 37 | |
| 38 | 38 | public static $has_one = array( | 
| 39 | 39 | 'AdvertImage' => 'Image', | 
| @@ -75,7 +75,7 @@ discard block | ||
| 75 | 75 | // a Javascript toggle on this field displays either the adbroker text field, or an image with URL | 
| 76 | 76 |          $fields->addFieldToTab('Root.Main', new DropdownField('AdvertSource', 'The type of advert', | 
| 77 | 77 |              singleton('Advert')->dbObject('AdvertSource')->enumValues() | 
| 78 | - )); | |
| 78 | + )); | |
| 79 | 79 | |
| 80 | 80 |          if ($this->ID == 0) { | 
| 81 | 81 | $html = '<div class="field text">An image can be uploaded after the advert is saved for the first time</div>'; | 
| @@ -118,11 +118,11 @@ discard block | ||
| 118 | 118 | parent::onBeforeWrite(); | 
| 119 | 119 | } | 
| 120 | 120 | |
| 121 | - /* | |
| 121 | + /* | |
| 122 | 122 | Calculate a digital signature from several of the fields | 
| 123 | 123 | */ | 
| 124 | - public function CalculateDigitalSignature() | |
| 125 | -  { | |
| 124 | + public function CalculateDigitalSignature() | |
| 125 | +    { | |
| 126 | 126 | /* because we save the impression counter on every rendition this cannot include | 
| 127 | 127 | - number of impressions | 
| 128 | 128 | - last edited | 
| @@ -133,5 +133,5 @@ discard block | ||
| 133 | 133 |      $hashed = hash('sha512', $data); | 
| 134 | 134 |      //error_log("HASH CREATED:".$hashed); | 
| 135 | 135 | return $hashed; | 
| 136 | - } | |
| 136 | + } | |
| 137 | 137 | } | 
| @@ -47,7 +47,7 @@ | ||
| 47 | 47 | parent::onBeforeWrite(); | 
| 48 | 48 | } | 
| 49 | 49 | |
| 50 | - /* | |
| 50 | + /* | |
| 51 | 51 | Get the advert category. Either use the cached advert category, or traverse the tree towards the root looking for it | 
| 52 | 52 | */ | 
| 53 | 53 | public function CalculateAdvertCategoryID() | 
| @@ -1,10 +1,10 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | /** | 
| 3 | - * Handles requests for secure files by url. | |
| 4 | - * | |
| 5 | - * @author Hamish Campbell <[email protected]> | |
| 6 | - * @copyright copyright (c) 2010, Hamish Campbell | |
| 7 | - */ | |
| 3 | + * Handles requests for secure files by url. | |
| 4 | + * | |
| 5 | + * @author Hamish Campbell <[email protected]> | |
| 6 | + * @copyright copyright (c) 2010, Hamish Campbell | |
| 7 | + */ | |
| 8 | 8 | class SecureFileController extends Controller implements PermissionProvider | 
| 9 | 9 |  { | 
| 10 | 10 | /** |