| core_util

# example
    1     <?php
    2     /**
    3     * @package     core_util
    4     */
    5
    6
    7     if (!isSet($GLOBALS['APP']['path']['diffFromDocRootToGlobalConf'])) $GLOBALS['APP']['path']['diffFromDocRootToGlobalConf'] = '../';
    8     require_once($_SERVER['DOCUMENT_ROOT'] . $GLOBALS['APP']['path']['diffFromDocRootToGlobalConf'] . '/global.conf.php');
    9     require_once($APP['path']['core'] . 'util/Bs_Stripper.class.php');
    10    ?>
    11
    12    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    13
    14    <html>
    15    <head>
    16    	<title>Bs_Stripper Example</title>
    17    </head>
    18
    19    <body bgcolor="#FFFFFF">
    20
    21    <?php
    22    if (!empty($_POST['origCode'])) {
    23        $stripper =& new Bs_Stripper();
    24        $strippedCode = $stripper->strip($_POST['origCode']);
    25    }
    26    ?>
    27
    28    <h1>Bs_Stripper Example</h1>
    29
    30    <form name="myForm" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
    31
    32    <h4>Original Code: (paste your code)</h4>
    33    <textarea name="origCode" cols="90" rows="15" wrap="off"><?php if (!empty($_POST['origCode'])) echo $_POST['origCode'];?></textarea>
    34    <br>
    35
    36    <h4>Stripped Code:</h4>
    37    <textarea name="strippedCode" cols="90" rows="8" wrap="off"><?php if (!empty($strippedCode)) echo $strippedCode;?></textarea>
    38    <br><br>
    39
    40    <input type="submit" name="submit" value="Strip!">
    41    </form>
    42
    43    </body>
    44    </html>
Documentation generated on Mon, 29 Dec 2003 21:13:01 +0100 by phpDocumentor 1.2.3