37 $FileContent = file( $FilePath );
39 '<table' ,
'<a' ,
'<div' ,
'<span' ,
'<td' ,
'<tr' ,
'<li' ,
'<ul' ,
'<select' ,
'</a>' ,
'</div>' ,
40 '</span>' ,
'</select>' ,
'<script' ,
'<link' ,
'</ul>' ,
'</li>' ,
'<br>' ,
'<p>' ,
'<p ' ,
'<option'
43 for( $k = 0 ; $k < count( $FileContent ) ; $k++ )
45 for( $j = 0 ; $j < count( $Patterns ) ; $j++ )
47 if( strpos( $FileContent[ $k ] , $Patterns[ $j ] ) !== false )
50 print(
"<nobr>$FilePath($k)</nobr><br>" );
82 for( ; $Start !== false ; )
84 $Start = strpos( $Content ,
'function' , $Start );
86 if( $Start !==
false )
116 if( ( $Letter >=
'a' && $Letter <=
'z' ) || ( $Letter >=
'A' && $Letter <=
'Z' ) ||
117 ( $Letter >=
'0' && $Letter <=
'9' ) || $Letter ==
'_' )
149 $Length = strlen( $Content );
150 $FunctionName =
false;
151 for( $i = $Entry + 8 ; $i < $Length ; $i++ )
153 if( $FunctionName ===
false &&
isalnum( $Content[ $i ] ) )
155 $FunctionName = $Content[ $i ];
158 elseif( $FunctionName !==
false &&
isalnum( $Content[ $i ] ) )
160 $FunctionName .= $Content[ $i ];
163 elseif( $FunctionName !==
false &&
isalnum( $Content[ $i ] ) ===
false )
165 return( $FunctionName );
195 return( strpos( $Content , chr( 123 ) , $Entry ) );
222 if( $Entry ===
false )
227 $Length = strlen( $Content );
230 for( $i = $Entry + 1 ; $i < $Length ; $i++ )
232 $Counter = $Content[ $i ] ==
'{' ? $Counter + 1 : $Counter;
233 $Counter = $Content[ $i ] ==
'}' ? $Counter - 1 : $Counter;
267 foreach( $Entries as $i => $Entry )
271 $FunctionEnd =
get_func_end( $Content , $FunctionStart );
273 if( $FunctionStart !==
false && $FunctionEnd !==
false )
275 $Bodies [ $FunctionName ] = substr( $Content , $FunctionStart , $FunctionEnd - $FunctionStart + 1 );
302 $Content = str_replace(
"\r" ,
"\n" , $Content );
304 $Content = str_replace(
"\n\n" ,
"\n" , $Content );
306 $Content = explode(
"\n" , $Content );
308 return( count( $Content ) );
329 'excel' ,
'soap' ,
'json.php' ,
'xml_rpc' ,
'jquery.layout.min.js' ,
'jquery.jstree.js' ,
330 'jquery.media.js' ,
'.en.js' ,
'.ru.js' ,
'jquery.tree.xml_nested.js' ,
'jquery.tree.xml_flat.js' ,
331 'jquery.tree.themeroller.js' ,
'jquery.tree.contextmenu.js' ,
'sarissa.js' ,
'jquery.jstree.js' ,
332 'jquery.corner.js' ,
'.min.js' ,
'disable.text.select.js' ,
'dropdown.block.js' ,
'/doc/en/html/' ,
333 'jquery.jqGrid.min.js' ,
'grid.locale-' ,
'jquery.colorbox' ,
'swfupload.js' ,
'jquery.cookie.js' ,
334 'packages/ckeditor/include/' ,
'jquery.jstree.js' ,
'jquery-1.7.1.min.js' ,
'ui.datepicker-ru.js' ,
335 'file_input_view/include/plugins/' ,
'jstree/include/js/' ,
'paginator3000.js' ,
'/tmp/' )
361 foreach( $Files as $k => $v )
363 if( strpos( $FilePath , $v ) !==
false )