PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
  Classes of Mike Gamble  >  PHP Token Parser Engine  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example scanner script
Class: PHP Token Parser Engine
Parse PHP code to check if it matches syntax rules
Author: By
Last change:
Date: 5 years ago
Size: 1,563 bytes
 

 

Contents

Class file image Download
<?php
require_once("token_engine.php");
$eng = new token_engine();
//CHANGE THE FOLLOWING LINE TO SPECIFY A DIRECTORY TO SCAN RECURSIVELY
$dir = ".";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<title>File Scan</title>
<style type="text/css">
<!--
* {
margin: 0;
padding: 0;
}
body {
    background-color: #FFFFFF;
    color: #000000;
    padding:10px 45px 10px 45px;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-size: 13px;
}
div.code {
    background-color: #E1E5F4;
    margin:20px 0 20px 0;
    padding:10px 0;
    font-family: "Lucida Sans Unicode", Tahoma, Helvetica, sans-serif;
}
pre{
    font-family: "Lucida Sans Unicode", Tahoma, Helvetica, sans-serif;
    font-size: 13px;
}
.code p {
    text-indent: 0;
    margin: 0;
}
.red, .session {
    color: #990000;
}
.light {
    background-color: #EDEEF2;
}
.session{
    margin-bottom: 10px;
}
table{
    table-layout: fixed;
    width: 100%;
    padding-bottom: 45px;
}
td{
    padding: 2px 45px;
    word-wrap: break-word;
}
td.triggers{
    width: 150px;
}
.mtop10{
    margin-top:10px;
}
h3{
    margin: 10px 0 25px 0;
}
-->
</style>
</head>
<body>
    <h3>Scanner</h3>
    <?php
    $eng
->get_results($dir);
   
?>
</body>
</html>