edit.php File Reference

Go to the source code of this file.

Namespaces

namespace  wiki

Functions

 compare_import_versions ($a1, $a2)
 extract_section ($data, $section)
 htmldecode ($string)
 parse_output (&$obj, &$parts, $i)
 replace_section ($data, $section, $new_section_data)
 walk_and_parse (&$c, &$src, &$p)
 Parsed HTML tree walker( used by HTML sucker ).

Variables

 $_REQUEST ["edit"] = $data_to_parse
 $_REQUEST ['edit'] = $sdta
 $copyrightAuthors = $_REQUEST['copyrightAuthors']
 $copyrightTitle = $_REQUEST['copyrightTitle']
 $copyrightYear = $_REQUEST['copyrightYear']
 $edit = $imagegallib->capture_images( $edit )
 $formInfo ['edit_comment'] = ''
 $formInfo ['edit'] = $data_to_edit
 $formInfo ['section'] = $_REQUEST['section']
 $formInfo ['edit_section'] = 1
 $formInfo ['data'] = $data_to_edit
 $grammar = unserialize( fread( $fp, filesize( $grammarfile ) ) )
 $htmlparser = new HtmlParser( $sdta, $grammar, '', 0 )
 $p = array( 'stack' => array(), 'listack' => array(), 'first_td' => false )
 $parseddata = preg_replace( ",[\n]+,mU","\n", $parseddata )
 $parseddata = preg_replace( ',\( img src=(.*)\),mU','{img src=$1}', $parseddata )
 $parseddata = preg_replace( ',\[(.*)\|\( img src=(.*)\)\],mU','{img src=$2 link=$1}', $parseddata )
 $parseddata = ''
 $parsehtml = isset( $_REQUEST["parsehtml"] ) ? ( $_REQUEST["parsehtml"] == 'on' ? 'y' : 'n' ): 'n'
 $sdta = $parseddata
 $sdta = $e['string']
 $suck_url = isset( $_REQUEST["suck_url"] ) ? $_REQUEST["suck_url"] : ''
 die


Function Documentation

compare_import_versions ( a1,
a2 
)

Definition at line 70 of file wiki/edit.php.

extract_section ( data,
section 
)

Definition at line 48 of file wiki/edit.php.

References $b, $gBitSystem, $gContent, $section, and mInfo.

htmldecode ( string  ) 

Definition at line 304 of file wiki/edit.php.

parse_output ( &$  obj,
&$  parts,
i 
)

Definition at line 309 of file wiki/edit.php.

References $i, $item, $items, and $parts.

replace_section ( data,
section,
new_section_data 
)

Definition at line 58 of file wiki/edit.php.

References $b, $gBitSystem, $gContent, $section, and mInfo.

walk_and_parse ( &$  c,
&$  src,
&$  p 
)

Parsed HTML tree walker( used by HTML sucker ).

This is initial implementation( stupid... w/o any intellegence( almost : ) ) It is rapidly designed version... just for test: 'can this feature be useful'. Later it should be replaced by well designed one :) don't bash me now : )

Parameters:
&$c array -- parsed HTML
&$src string -- output string
&$p array -- ['stack'] = closing strings stack, ['listack'] = stack of list types currently opened ['first_td'] = flag: 'is

was just before this

'

Definition at line 87 of file wiki/edit.php.

References $c, $i, and $p.


Variable Documentation

$_REQUEST["edit"] = $data_to_parse

Definition at line 385 of file wiki/edit.php.

$_REQUEST['edit'] = $sdta

Definition at line 228 of file wiki/edit.php.

$copyrightAuthors = $_REQUEST['copyrightAuthors']

Definition at line 355 of file wiki/edit.php.

$copyrightTitle = $_REQUEST['copyrightTitle']

Definition at line 354 of file wiki/edit.php.

$copyrightYear = $_REQUEST['copyrightYear']

Definition at line 353 of file wiki/edit.php.

$edit = $imagegallib->capture_images( $edit )

Definition at line 361 of file wiki/edit.php.

$formInfo['edit_comment'] = ''

Definition at line 245 of file wiki/edit.php.

$formInfo['edit'] = $data_to_edit

Definition at line 244 of file wiki/edit.php.

$formInfo['section'] = $_REQUEST['section']

Definition at line 241 of file wiki/edit.php.

$formInfo['edit_section'] = 1

Definition at line 240 of file wiki/edit.php.

$formInfo['data'] = $data_to_edit

Definition at line 239 of file wiki/edit.php.

$grammar = unserialize( fread( $fp, filesize( $grammarfile ) ) )

Definition at line 201 of file wiki/edit.php.

$htmlparser = new HtmlParser( $sdta, $grammar, '', 0 )

Definition at line 204 of file wiki/edit.php.

Referenced by BitPdf::insert_html().

$p = array( 'stack' => array(), 'listack' => array(), 'first_td' => false )

Definition at line 208 of file wiki/edit.php.

$parseddata = preg_replace( ",[\n]+,mU","\n", $parseddata )

Definition at line 224 of file wiki/edit.php.

$parseddata = preg_replace( ',\( img src=(.*)\),mU','{img src=$1}', $parseddata )

Definition at line 222 of file wiki/edit.php.

$parseddata = preg_replace( ',\[(.*)\|\( img src=(.*)\)\],mU','{img src=$2 link=$1}', $parseddata )

Definition at line 220 of file wiki/edit.php.

$parseddata = ''

Definition at line 207 of file wiki/edit.php.

$parsehtml = isset( $_REQUEST["parsehtml"] ) ? ( $_REQUEST["parsehtml"] == 'on' ? 'y' : 'n' ): 'n'

Definition at line 178 of file wiki/edit.php.

$sdta = $parseddata

Definition at line 226 of file wiki/edit.php.

$sdta = $e['string']

Definition at line 214 of file wiki/edit.php.

$suck_url = isset( $_REQUEST["suck_url"] ) ? $_REQUEST["suck_url"] : ''

Definition at line 177 of file wiki/edit.php.

die

Definition at line 394 of file wiki/edit.php.


Generated on Wed Aug 22 19:33:55 2007 for bitweaver by  doxygen 1.5.2