<?php
/**
* This is a some examples about common operations of class
* In order for Parsing & UnParsing examples to be useful
* you must import the DB Backup given in DB Stated in your
* Config file
* @package Examples
* @author Mohammed Yousef Bassyouni <harrrrpo@gmail.com>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
/**
* Parsing using BBEngine Library
*/
require ("../Config.php");
require ("../Parse.php");
$qq=new Parser();
//OFcourse <br>'s arenot BBCode but i just put them there for illustration
$str="[list][*]One[list=1][*]One/One[list=A][*]One/One[*]One/Two[/list][*]One/Two[/list][/list][list][*]Two[list=1][*]Two/One[*]Two/Two[/list][/list]<br>";
$str.=":D[url=http://arabteam2000-forum.com/]My Forum[/url]<br>[email=harrrrpo@gmail.com]My Email[/email]<br>[img]http://www.google.com.eg/intl/en_com/images/logo_plain.png[/img]<br>[size=20]Big [size=40]Big Label[/size] Label[/size]<br>[gvideo]3966673435136338279[/gvideo]";
print $qq->Parse($str);
?>
|