Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function nenscript_load_marker($marker=NULL)
- {
- global $nen;
- if(is_null($marker))
- $marker=false;
- if($marker===false)
- $marker='markup';
- $pattern=nenscript_list_ini_load(nenscript_resolve('{{nen::ver}}/{{nen::pcre}}/'.$marker.'/pattern.ini'),"\r\n",'file','temp_pattern');
- $replace=nenscript_list_ini_load(nenscript_resolve('{{nen::ver}}/{{nen::pcre}}/'.$marker.'/replace.ini'),"\r\n",'file','temp_replace');
- $pattern2=array();
- $replace2=array();
- echo '<h1>marker('.htmlentities(count($pattern)).':'.htmlentities(count($replace)).'):"<tt>'.htmlentities($marker).'</tt>"</h1>';
- foreach($pattern as $stroke => $value)
- {
- if(preg_match('/\/(.*)\//',$pattern[$stroke],$matches))
- if($matches[0]===$pattern[$stroke])
- {
- if(isset($replace[$stroke]))
- {
- $pattern2[$stroke]=$pattern[$stroke];
- $replace2[$stroke]=$replace[$stroke];
- echo '<h1>pattern('.htmlentities($stroke).'):"<tt>'.htmlentities($pattern2[$stroke]).'</tt>"</h1>';
- echo '<h1>replace('.htmlentities($stroke).'):"<tt>'.htmlentities($replace2[$stroke]).'</tt>"</h1>';
- }
- }
- }
- return array('pattern' => $pattern2, 'replace' => $replace2);
- }
- ---------------------
- marker(5:5):"initial"
- marker(4:4):"verily"
- pattern(key):"/\[\+\](.*) \-\- (.*)\[\/\+\]/"
- replace(key):" <tr><td align="center" valign="top">$1</td><td align="left" valign="top" min-width="80%"><tt>-- $2</tt></td></tr>"
- marker(6:6):"media"
- pattern(key):"/\[\+\](.*) \-\- (.*)\[\/\+\]/"
- replace(key):" <tr><td align="center" valign="top">$1</td><td align="left" valign="top" min-width="80%"><tt>-- $2</tt></td></tr>"
- marker(16:16):"neinstar"
- pattern(key):"/\[(?P<tag>vid)=\"([^"]+)\"(( ([A-Za-z0-9_]+)((="([^"])"){0,1}))*)(\](((?:(?!\[(?P=tag)\]).)+?){0,1})\[\/(?P=tag)\]| \/\])/"
- replace(key):"[<][tbl][row][col][<]#[url="$2"]$2[/url][>][/col][/row][row][col]<video onload="siren_pause(this);siren_pause(this);" onclick="siren_pause(this);" style="max-width: 80%; width: 320px;"$3><source src="$2"></video>[/col][/row][row][col]$10[/col][/row][/tbl][>]"
- marker(7:7):"markup"
- pattern(key):"/(\[neinstar.logo company\])/"
- replace(key):"/network666/originals/site/Logo.png"
- marker(20:20):"bbcode"
- pattern(key):"/(\[neinstar.logo company\])/"
- replace(key):"/network666/originals/site/Logo.png"
- marker(2:2):"images"
- pattern(key):"/\[(col)(( ([a-z]+)="([^"]*)"(( ([a-z]+)="([^"]*)")*)){0,1})\](((?:(?!\[col(=|\]| )).)+?){0,1})\[\/col\]/"
- replace(key):"<td$3>$10</td>"
- marker(1:1):"block"
- pattern(key):"/\[(col)(( ([a-z]+)="([^"]*)"(( ([a-z]+)="([^"]*)")*)){0,1})\](((?:(?!\[col(=|\]| )).)+?){0,1})\[\/col\]/"
- replace(key):"<td$3>$10</td>"
- marker(2:2):"linestyle"
- pattern(key):"/\[(col)(( ([a-z]+)="([^"]*)"(( ([a-z]+)="([^"]*)")*)){0,1})\](((?:(?!\[col(=|\]| )).)+?){0,1})\[\/col\]/"
- replace(key):"<td$3>$10</td>"
- marker(3:3):"final"
- pattern(key):"/\[\<\]\#(((?:(?!(\[\<\])|(\[\>\])).)+?){0,1})\[\>\]/"
- replace(key):"<center><h1><font class="stress" face="courier new">$1</font></h1></center>"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement