Skip to content
Browse files

Reword

  • Loading branch information...
1 parent 2c4d71e commit 2a3c328763f6a2b000dce868c6f882d59c5a17a3 @CloCkWeRX CloCkWeRX committed May 19, 2012
Showing with 8 additions and 8 deletions.
  1. +1 −1 README
  2. +1 −1 example/BBCodeParser2.ini
  3. +6 −6 example/parser.php
View
2 README
@@ -1,4 +1,4 @@
-This package is http://pear.php.net/package/HTML_BBCodeParser and has been migrated from https://svn.php.net/repository/pear/packages/HTML_BBCodeParser
+This package is http://pear.php.net/package/HTML_BBCodeParser2
Please report all new issues via the PEAR bug tracker.
View
2 example/BBCodeParser2.ini
@@ -1,4 +1,4 @@
-[HTML_BBCodeParser]
+[HTML_BBCodeParser2]
; possible values: single|double
; use single or double quotes for attributes
View
12 example/parser.php
@@ -8,16 +8,16 @@
/* require PEAR and the parser */
require_once('PEAR.php');
-require_once('HTML/BBCodeParser.php');
+require_once('HTML/BBCodeParser2.php');
/* get options from the ini file */
-$config = parse_ini_file('BBCodeParser.ini', true);
-$options = &PEAR::getStaticProperty('HTML_BBCodeParser', '_options');
-$options = $config['HTML_BBCodeParser'];
+$config = parse_ini_file('BBCodeParser2.ini', true);
+$options = PEAR::getStaticProperty('HTML_BBCodeParser2', '_options');
+$options = $config['HTML_BBCodeParser2'];
unset($options);
/* do yer stuff! */
-$parser = new HTML_BBCodeParser();
+$parser = new HTML_BBCodeParser2();
$parser->setText(@$_GET['string']);
$parser->parse();
$parsed = $parser->getParsed();
@@ -26,7 +26,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
-<title>HTML_BBCodeParser (by Stijn de Reede)</title>
+<title>HTML_BBCodeParser2 (by Stijn de Reede)</title>
</head>
<body>
<form method='get' action='parser.php'>

0 comments on commit 2a3c328

Please sign in to comment.
Something went wrong with that request. Please try again.