PHP Classes

File: config.ini.php

Recommend this page to a friend!
  Classes of Mike Gamble   PHP Token Parser Engine   config.ini.php   Download  
File: config.ini.php
Role: Configuration script
Content type: text/plain
Description: Configuration file required by class
Class: PHP Token Parser Engine
Parse PHP code to check if it matches syntax rules
Author: By
Last change:
Date: 10 years ago
Size: 942 bytes
 

Contents

Class file image Download
;<?php
;die();
;
/*

;TOKEN ENGINE CONFIGURATION FILE
;(Use semicolons to comment lines)

;USE SESSIONS TO STORE SCAN RESULTS

sessions = yes

;FILE EXTENSIONS THAT MAY CONTAIN PHP CODE

file_ext[] = "php"
file_ext[] = "php4"
file_ext[] = "php3"
file_ext[] = "inc"
file_ext[] = "phtml"

;TRIGGERS - (VALUES MUST MATCH RULE DEFINITIONS)

;triggers[] = "var"
;triggers[] = "fx"
;triggers[] = "obj_var"
;triggers[] = "echo"
;triggers[] = "return"
;triggers[] = "array"
triggers[] = "eval"
triggers[] = "list_fx"
triggers[] = "att_fx"
triggers[] = "var_fx"

;LIST FUNCTIONS TO SCAN FOR

;listed[] = "preg_replace"
listed[] = "base64_encode"
listed[] = "base64_decode"
listed[] = "unescape"
listed[] = "assert"

;CODE ELEMENTS TO IGNORE WHEN FORMATTING

ignore[] = 370 ;comment
ignore[] = 371 ;comment
ignore[] = 372 ;opening php tag
ignore[] = 374 ;closing php tag
ignore[] = 311 ;html

;*/

;?>