예제 #1
0
 function SESanityTestPermission($options)
 {
     parent::SESanityTest($options);
     $cleaned_filename = $this->path;
     if (substr($cleaned_filename, 0, 2) == "./") {
         $cleaned_filename = substr($cleaned_filename, 2, strlen($cleaned_filename) - 2);
     }
     $cleaned_filename_array = preg_split("/[^a-zA-Z0-9_\\.-]+/", $cleaned_filename);
     $cleaned_filename = join('_', $cleaned_filename_array);
     $cleaned_filename = preg_replace('/\\.[^.]$/', '', $cleaned_filename);
     $this->name = 'permission_' . $cleaned_filename;
 }
예제 #2
0
 function SESanityTestConfiguration($options)
 {
     parent::SESanityTest($options);
     $this->name = 'configuration_' . strtolower(preg_replace('/[^A-Z0-9_\\.-]/i', '', $this->directive));
 }
예제 #3
0
 function SESanityTestCustom($options)
 {
     parent::SESanityTest($options);
     $this->name = 'custom_' . $options['name'];
 }
예제 #4
0
 function SESanityTestExtension($options)
 {
     parent::SESanityTest($options);
     $this->name = 'extension_' . strtolower(preg_replace('/[^A-Z0-9_\\.-]/i', '', $this->extension));
 }