Sha256: e0ded7c84a5c39b731dfc304ef276f8a4c4ba38538246b4937eeb1e5af6cd5a4

Contents?: true

Size: 529 Bytes

Versions: 11

Compression:

Stored size: 529 Bytes

Contents

<?php

/**
 * @author AzT3K
 */
class AbcSecurityExtension extends Extension {
	
	public function onAfterInit() {
		
		$controller		= $this->owner;
		$params			= (object) $controller->getURLParams();
		
		if ($params->Action == 'ping') {
			
			$requirements	= LeftAndMainHelper::get_requirements();

			foreach ($requirements['block'] as $file) {
				Requirements::block($file[0]);
			}

			foreach ($requirements['unblock'] as $file) {
				Requirements::unblock($file[0]);
			}
			
		}
		
	}
	
}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
bonethug-0.0.17 skel/project_types/silverstripe3/public/abc/code/Extensions/AbcSecurityExtension.php
bonethug-0.0.16 skel/project_types/silverstripe3/public/abc/code/Extensions/AbcSecurityExtension.php
bonethug-0.0.15 skel/project_types/silverstripe3/public/abc/code/Extensions/AbcSecurityExtension.php
bonethug-0.0.14 skel/project_types/silverstripe3/public/abc/code/Extensions/AbcSecurityExtension.php
bonethug-0.0.13 skel/project_types/silverstripe3/public/abc/code/Extensions/AbcSecurityExtension.php
bonethug-0.0.12 skel/project_types/silverstripe3/public/abc/code/Extensions/AbcSecurityExtension.php
bonethug-0.0.11 skel/project_types/silverstripe3/public/abc/code/Extensions/AbcSecurityExtension.php
bonethug-0.0.10 skel/project_types/silverstripe3/public/abc/code/Extensions/AbcSecurityExtension.php
bonethug-0.0.7 skel/project_types/silverstripe3/public/abc/code/Extensions/AbcSecurityExtension.php
bonethug-0.0.6 skel/project_types/silverstripe3/public/abc/code/Extensions/AbcSecurityExtension.php
bonethug-0.0.5 skel/project_types/silverstripe3/public/abc/code/Extensions/AbcSecurityExtension.php