Contenuto HTML, sicuro funzione PHP

Sabato 28 marzo 2009 02:43
Inserito nella categoria PHP

ingresso Html per la funzione s-pulizia, ma praticamente la gozukuor etmedım test

Copyright: http://www.ysfkc.com/dosyalar/guvenliHtml.phps

funzione guvenliHtml ($ testo) (
global $ di partenza;
KonumK $ = 0; # <(erano al di sotto), abbiamo visto, la posizione finale del carattere
KonumB $ = 0, #> (Buyuktur), si è visto, la posizione finale del carattere
$ Tag_mi = False; tag # dentro di voi?
OzellikSablon $ = "# proprietà = valore da utilizzare per le chiamate a livello mondiale formatindaki
$ TagTablosu = array (); informazioni dei tag #, sostituire alacagi globale
$ OzellikTablosu = array (); funzione # (attributo) informazioni sulla posizione del alacagi globale
$ DegerTablosu = array (); valore # (valore), uno spazio di informazione globale alacagi

# Variabili globali impostata su valori
guvenliGlobal ();

# Elaborazione testi sul processo di correzione viene fatta prima
$ Testo = onDuzeltme ($ testo);

$ I = 0;
Buffer $ = ";
KonumK $ = strpos ($ testo, '<', $ i); # <carattere nella prima posizione rastlandigi
KonumB $ = strpos ($ testo, '>', $ i); #> personaggio in prima posizione rastlandigi

# Scansione del testo all'interno del tag di
while (true) (
# Se il carattere <prima rastlandiysa
# Oppure <characters erano found, but> carattere bulunamadiysa
if (($ konumK! == false & & $ konumK <$ konumB) | | ($ konumK! == false & & $ konumB === false)) (
# Tag icerisindeysek
if ($ tag_mi) (
# In tag olamayacagi <per la parte sandigimiz tag
# Basindaki <<carattere alla dichiarazione ambientale
Buffer $ .= '<'. substr ($ testo, $ i, $ konumK - $ i);

Se non sei all'interno di tag #
Else ()
#
$ Buffer .= substr ($ testo, $ i, $ konumK - $ i);
)

konumK $ i = $ + 1;
KonumK $ = strpos ($ testo, '<', $ i);
# Avvio tag
$ Tag_mi = True;

# Se il carattere> prima di rastlandiysa
# Oppure> carattere, ma ha carattere <bulunamadiysa
) Elseif (($ konumB! == False & & $ konumK> $ konumB) | | ($ konumK === false & & $ konumB! == False)) (
# Tag icerisindeysek
if ($ tag_mi) (
# Smoothed Aggiungi tag
$ Buffer .= guvenliTag (substr ($ testo, $ i, $ konumB - $ i));

# Tag di chiusura
$ Tag_mi = False;

Se non sei all'interno di tag #
Else ()
Kodar ottenere la parte # qui
# E> personaggi> per la dichiarazione ambientale
$ Buffer .= substr ($ testo, $ i, $ konumB - $ i). '>';
)

$ I = $ konumB +1;
KonumB $ = strpos ($ testo, '>', $ i);

# Se rastlanmadiysa <o> carattere
Else ()
# Tag icerisindeysek
if ($ tag_mi) (
# Fine del comune carattere <<per la dichiarazione ambientale
# E aggiungere testo per continuare il buffer
Buffer $ .= '<'. substr ($ testo, $ i);
Else ()
Dalla fine del testo per continuare la posizione concordata # aggiunge tampone
$ Buffer .= substr ($ testo, $ i);
)

# Ora tag secondo kalmadigina Dong et
break;
)
)

return $ buffer;
)

# ------------------------------------------------- -------------------------------------------------
funzione onDuzeltme ($ testo) (
''DegisiklikOncesi $ =;

# Devono essere cambiate fino a quando tengo un sacco di
while ($ degisiklikOncesi! = $ testo) (

DegisiklikOncesi $ = $ testo;

# # & Xx formato, alcuni caratteri sono scritti in cevriliyor karsiliklarina ASCII
# E il contenuto di alcuni tag permettono atiliyor
$ testo = preg_replace ('/ / Delete ',', $ testo);
$ testo = preg_replace ('/ \ S ]+.*?< \ / head> / delete ',', $ testo);
$ testo = preg_replace ('/ \ S ]+.*?< \ / script> /','', cancellare $ testo);
$ testo = preg_replace ('/ \ S ]+.*?< \ / applet> /','', cancellare $ testo);
$ testo = preg_replace ('/ \ S ]+.*?< \ / object> </','', cancellare $ testo);
$ testo = preg_replace ('/ \ S ]+.*?< \ /> frameset /','', cancellare $ testo);
$ testo = preg_replace ('/ \ S ]+.*?< \ / iframe> /','', cancellare $ testo);
$ testo = preg_replace ('/ \ S ]+.*?< \ / title> /','', cancellare $ testo);
$ testo = preg_replace ('/
\ S ]+.*?< \ / style> /','', cancellare $ testo);
('/(&# $ Testo = preg_replace ;)|(&# 0 0 * 38 * 38 (?! []))|(&# 0-9A-F ;)|(&# x0 x0 * 26 * 26 (?! [0-9A-F])) / i ',' & ', $ testo);
('/(&# $ Testo = preg_replace ;)|(&# 0 0 * 35 * 35 (?! []))|(&# 0-9A-F ;)|(&# x0 x0 * 23 * 23 (?! [0-9A-F])) / i ',' # ', $ testo);
('/(&# $ Testo = preg_replace ;)|(&# 0 0 * 34 * 34 (?! []))|(&# 0-9A-F ;)|(&# x0 x0 * 22 * 22 (?! [0-9A-F])) / i ',' "', $ testo);
('/(&# $ Testo = preg_replace ;)|(&# 0 0 * 39 * 39 (?! []))|(&# 0-9A-F ;)|(&# x0 x0 * 27 * 27 (?! [0-9A-F])) / i ',' \'', $ testo);
('/(&# $ Testo = preg_replace ;)|(&# 0 0 * 60 * 60 (?! [0-9A-F ]))|(&# x0 x0 * * 3C 3C ;)|(&# (?! [0-9A-F])) / i ',' <', $ testo);
('/(&# $ Testo = preg_replace ;)|(&# 0 0 * 62 * 62 (?! [0-9A-F ]))|(&# x0 x0 * * 3E 3E ;)|(&# (?! [0-9A-F])) / i ','> ', $ testo);
('/(&# $ Testo = preg_replace ;)|(&# 0 0 * 58 * 58 (?! []))|(&# 0-9A-F ;)|(&# x0 x0 * * 3A 3A (?! [0-9A-F])) / i ',': ', $ testo);
('/(&# $ Testo = preg_replace ;)|(&# 0 0 * 47 * 47 (?! [0-9A-F ]))|(&# x0 x0 * * 2F 2F ;)|(&# (?! [0-9A-F])) / i ',' / ', $ testo);
('/(&# $ Testo = preg_replace ;)|(&# 0 0 * 61 * 61 (?! [0-9A-F ]))|(&# x0 x0 * * 3D 3D ;)|(&# (?! [0-9A-F])) / i ',' = ', $ testo);
# $ Testo = preg_replace ('/(&# ;)|(&# 0 0 * 63 * 63 (?! [3F 0-9A-F ;)|(&# ]))|(&# x0 x0 * * 3F (?! [0-9A-F])) / i ','? ', $ testo);
# $ Testo = preg_replace ('/(&# ;)|(&# 0 0 * 37 * 37 (?! []))|(&# 0-9A-F ;)|(&# x0 x0 * 25 * 25 (?!] [0-9A-F)) / i ','% ', $ testo);
# $ Testo = preg_replace ('/(&# ;)|(&# 0 0 * 46 * 46 (?! [0-9A-F ]))|(&# x0 x0 * * 2E ;)|(&# 2E (?! [0-9A-F])) / i ','. ', $ testo);
)

return $ testo;
)

# ------------------------------------------------- -------------------------------------------------
funzione guvenliTag ($ testo) (
global $ tagTablosu;
Slash $ = false;

# L'ultimo carattere / in
if (preg_match ('/ \ s \ /$/', $ text)) (
$ Testo = substr ($ testo, 0, strlen ($ testo) -1);
Slash $ = true;
)

if (preg_match ('/^( \ /?)([^ \ s] *) \ s * $ / i ', $ testo, $ gruppo) # o o formatindaysa
& &! ($ Gruppi [1] & & $ barra) # allo stesso tempo o
& & Array_key_exists (strtolower ($ gruppo [2]), tagTablosu $)) (tag #, se hai $ tagTablosu'nda
# 1 analogie, se del caso, al basso / carattere
# 2 somiglianza, dà tag

# formatindaysa
if ($ slash) (
$ Text = '<'. $ Gruppi [2]. '/>';

# o formatindaysa
Else ()
$ Text = '<'. $ Gruppi [1]. $ Gruppi [2]. '>';
)

return $ testo;

) Elseif (preg_match ('/([^ \ s] +) \ s cancellare *(.*)$/ ', $ testo, $ gruppo) # formatindaysa
& & Array_key_exists (strtolower ($ gruppo [1]), tagTablosu $)) (tag #, se hai $ tagTablosu'nda
# 1 somiglianza, tag
# 2 somiglianza, fornisce un elenco degli impianti
$ Text = '<'. $ Gruppi [1];
GuvenliOzellikler $ testo .= ($ gruppo [2], $ tagTablosu [strtolower ($ gruppo [1 ])]);

if ($ slash) (
$ Testo .='/>';
Else ()
$ Testo .= '>';
)

return $ testo;
)

# Tag non valido. Freeze tag invece di uno spazio
#''Dondurmeyin o buco di sicurezza è composto da
ritorno'';
)

# ------------------------------------------------- -------------------------------------------------
guvenliOzellikler funzione ($ stiro, $ izin_verilenler) (
ozellikSablon globale $, $ ozellikTablosu, $ degerTablosu;

Temp_ozellikler $ ='';

# Caratteristiche o continuare fino a quando la proprietà = valore rastlandigi formatina
while (preg_match ($ ozellikSablon, $ da stiro, gruppi di $)) (

# 1 somiglianza, caratteristica ...
# 2 3. o 4 somiglianza, il valore ...
# 5 somiglianza, dà un elenco delle strutture rimanenti
Servizi $ = $ gruppi [5];

# Questa caratteristica ha permesso per questo tag strutture sulla lista ...
# Questa funzionalità è in standard HTML per un elenco adeguato di strutture ...
if (in_array (strtolower ($ gruppo [1]), izin_verilenler $) & & array_key_exists (strtolower ($ gruppo [1]), ozellikTablosu $)) (
# Se avete bisogno di questa funzionalità dovrebbe assumere valore
if ($ ozellikTablosu [strtolower ($ gruppo [1])]) (
# VALORE sablona uymadigini e verificare la
preg_match ($ degerTablosu [$ ozellikTablosu [strtolower ($ gruppo [1 ])]][ 0], $ gruppo [2] | $ gruppo [3] | $ gruppo [4], $ group2);

# Sablona ha un grande valore se ...
# E sablonuna yasaklilar non idonei ...
if ($ group2 [1] & &! preg_match ($ degerTablosu [$ ozellikTablosu [strtolower ($ gruppo [1 ])]][ 1], $ gruppo [2] | $ gruppo [3] | $ gruppo [4])) (
Il valore contabile è # "carattere, se esiste una possibilità
if ($ gruppo [3]) (
# = Alloggio 'valore' formato record
Temp_ozellikler $ .=''. $ Gruppi [1]. '= \''. $ Group2 [1]. '\'';

Il valore contabile è # carattere "o che possono essere
Else ()
# "Formato di registrazione di proprietà =" valore
Temp_ozellikler $ .=''. $ Gruppi [1]. '=' ". Group2 $ [1] .'"';
)
)

# Questo valore caratteristico almamasi se necessario ...
# E il valore dato kalkilmadiysa ...
) Elseif (! ($ Group [2] | | $ gruppo [3] | | $ gruppo [4])) (
# Funzionalità è formato di registrazione (ad esempio: disabilitato)
Temp_ozellikler $ .=''. $ Gruppi [1];
)
)
)

return $ temp_ozellikler;
)

# ------------------------------------------------- -------------------------------------------------
guvenliGlobal funzione () (
global $ tagTablosu;
ozellikSablon globale $, $ ozellikTablosu, $ degerTablosu;

# Tag per l'elenco ammessi
Le strutture sono ammessi per ciascun tag #, un array deve essere specificata in
$ TagTablosu = array (
'A' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'forma', 'coordinate', 'target', 'tabindex', 'accesskey' , 'nome' href ',
'Hreflang' 'tipo', 'rel' 'giro', 'charset'),
'Sigla' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'Acronimo' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'Indirizzo' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'Area' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'nome', 'alt', 'href', 'target', 'tabindex' , 'accesskey' 'forma',
'Coordinate' 'usemap', 'nohref'),
'B' => array ('id' 'classe', 'titolo', 'stile' 'dir', 'uomo'),
'BDO' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'Big' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'Citazione' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'citare'),
'Br' => array ('id' 'classe', 'title' 'stile', 'chiaro'),
'Button' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'nome', 'valore' 'tipo', 'accesskey', 'tabindex' )
'Descrizione' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'align'),
'Centro' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'align'),
'Cite' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'Codice' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'Col' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'align' 'durata', 'width', 'char', 'charoff' , 'valign'),
'COLGROUP' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'align' 'durata', 'width', 'char', 'charoff' , 'valign'),
'Dd' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'Del' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'Cite', 'DateTime'),
'DFN' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'Div.' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'align'),
'Dl' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'Dt' => array ('id' 'classe', 'title' 'stile', dir ',' uomo '),
'Em' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'Fieldset' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'align', 'accesskey'),
'Font' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'taglia', 'colore', 'viso'),
'H1' => array ('id', 'classe' 'title', 'stile' 'dir', 'uomo', 'align'),
'H2' => array ('id', 'classe' 'title', 'stile' 'dir', 'uomo', 'align'),
'H3' => array ('id', 'classe' 'title', 'stile' 'dir', 'uomo', 'align'),
'H4' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'align'),
'H5' => array ('id', 'classe' 'title', 'stile' 'dir', 'uomo', 'align'),
'H6' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'align'),
'Hr' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'align' 'taglia', 'width', 'noshade'),
'I' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'Img' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'align', 'src', 'longdesc' 'nome', 'ismap' , 'usemap' 'width', 'height',
'Frontiera' 'hspace', 'vspace'),
'Input' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'align', 'alt', 'accettare', 'readonly', 'disabile' , 'TabIndex',
'Accesskey' 'usemap', 'ismap', 'tipo' 'nome', 'valore' 'taglia', 'maxlength', 'controllato', 'src'),
'Ins' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'Cite', 'DateTime'),
'ISINDEX' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'pronto'),
'KDB' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'Etichetta' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'Accesskey', 'per'),
'Leggenda' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'align', 'accesskey'),
'Li' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'tipo', 'Start', 'valore', 'compatto'),
'Map' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'nome', 'alt', 'href', 'target', 'tabindex' , 'accesskey' 'forma',
'Coordinate' 'usemap', 'nohref'),
'NoFrames' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'NoScript' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'Ol' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'tipo', 'Start', 'valore', 'compatto'),
'OPTGROUP' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'disabili', 'tabindex' 'nome', 'taglia', 'multipla' , 'etichetta'),
'Option' => array ('id', 'classe' 'title', 'stile' 'dir', 'uomo', 'disabili', 'tabindex' 'nome', 'taglia', 'multipla' , 'etichetta'),
'P' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'align'),
'Pre' => array ('id', 'classe' 'title', 'stile' 'dir', 'uomo', 'width'),
'Q' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'citare'),
'S' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'SAMP' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'Select' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'nome' taglia ',' multipla ',' disabili ',' tabindex ' )
'Piccolo' => array ('id', 'classe' 'title', 'stile' 'dir', 'uomo'),
'Span' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'align'),
'Strike' => array ('id', 'classe' 'title', 'stile' 'dir', 'uomo'),
'Forte' => array ('id', 'classe' 'title', 'stile' 'dir', 'uomo'),
'Sub' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'Sup' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'Tavolo' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'align' 'sintesi', 'width', 'bgcolor', 'cornice' 'regole' 'border',
'Spazio tra le celle', 'cellpadding'),
'TBODY' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'align', 'char' 'charoff', 'valign'),
'Td' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'bgcolor', 'align', 'char' 'charoff', 'valign' , 'headers', 'campo',
'Sigla', 'asse', 'rowspan', 'colspan', 'nowrap', 'width', 'height'),
'Textarea' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'nome', 'file', 'colonne', 'readonly', 'disabile' , 'TabIndex',
'Accesskey'),
'TFOOT' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'align', 'char' 'charoff', 'valign'),
'Th' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'bgcolor', 'align', 'char' 'charoff', 'valign' , 'headers', 'campo',
'Sigla', 'asse', 'rowspan', 'colspan', 'nowrap', 'width', 'height'),
'THEAD' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'align', 'char' 'charoff', 'valign'),
'It' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'bgcolor', 'align', 'char' 'charoff', 'valign' )
'TT' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'U' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
'Ul' => array ('id' 'classe', 'title' 'stile', 'dir' 'uomo', 'tipo', 'Start', 'valore', 'compatto'),
'Var' => array ('id' 'classe', 'title' 'stile', 'dir', 'uomo'),
);

# 'S elenco delle caratteristiche dei codici e dei valori del Sablon
# Se il valore della proprietà almiyor solo set a disposizione, yazilacak Null
$ OzellikTablosu = array (
'Sigla' => 'testo',
'Accetta' => 'ContentTypes'
'Accesskey' => 'carattere',
'Allineamento' CUSTOM_ALIGN => '
'Alt' => 'testo',
'Asse' = CDATA> '
'Bgcolor' => 'colore',
'Frontiera' => 'pixel',
'Cellpadding' => 'lunghezza',
'Spazio tra le celle' => 'lunghezza',
'Char' => 'carattere',
'Charoff' => 'lunghezza',
'Set di caratteri' => 'carattere',
'Controllato' => null,
'URI Cite' => '',
'Classe' => 'CDATA'
'Clear' CUSTOM_CLEAR => '
'Colore' Colore => ',
'Cols' => 'numero',
'Colspan' => 'numero',
'Compact' => null,
'Coordinate' => 'COORDS'
'Datetime' => 'DATETIME',
'Dir' = CUSTOM_DIR> '
'Disabile' => null,
'Face' CDATA => '
IDREF 'Per' => '',
'Cornice' = TFrame> '
'Intestazioni' => 'IDREFS'
'Altezza' => 'lunghezza',
'Href' => 'URI',
'Hreflang' LanguageCode => '
'Hspace' => 'pixel',
'Id' => 'ID',
'Ismap' => null,
'Etichetta' => 'testo',
'Man' = LanguageCode> '
L'attributo 'longdesc' => 'URI',
'MaxLength' => 'numero',
'Più' => null,
'Nome' CDATA => '
'Nohref' => null,
'Nohshade' => null,
'Nowrap' => null,
'Chiedi conferma' TEXT => ',
'ReadOnly' => null,
'Rel' => 'LinkTypes'
'Ap' => 'LinkTypes'
'Righe' => 'numero',
'Rowspan' => 'numero',
"Regole" => 'TRULES ",
'Ambito' => 'Campo',
'Forma' => 'forma',
'Taglia' => 'Numero',
'Span' => 'numero',
'Src' => 'URI', '# server non vuole che al di fuori del quadro gosterilmesi' YEREL_URI 'sarà
'Start' NUMERO => ',
'Style' StyleSheet => '
'Sintesi' => 'testo',
'TabIndex' => 'numero',
'Obiettivo' CDATA => '
'Title' => 'testo',
'Tipo' CUSTOM_TYPE => '
'Usemap' => 'URI',
'Valign' CUSTOM_VALIGN => '
'Valore' CDATA => '
'Vspace' => 'pixel',
'Larghezza' => 'lunghezza',
);

# Il primo valore della matrice, il modello dovrebbe uyulmasi
# Il secondo valore della matrice, il modello obbligatorio imposta uyulmamasi
Se il pattern bisogno # uyulmamasi, 'non esiste': il '/ ^ \ s * $ / frase' in estate
# I valori per essere accettato il rispetto prima pattern'a, e altra è obbligatoria uymamasi
$ DegerTablosu = array (
'CDATA' => array ('/ ^ \ s *(.*[^ \ s] +) \ s * $ / i', # prima e \ 'ultimo carattere non s qualsiasi kosuluyla testo
'/ ^ \ S *$/'),
'Carattere' => array ('/ ^ \ s * ([\ w. ...........]) \ s * $ / i', # solo un singolo carattere
'/ ^ \ S *$/'),
'Colore' => array ('/ ^ \ s *((?:#[ 0-9abcdef] (6 })|(?:[ \ w] +)) \ s * $ / i', # nome del colore o formato di codice di colore # 000000 o
'/ ^ \ S *$/'),
'ContentTypes' => array ('/ ^ \ s *([^,]+.*[^ \ s] +) \ s * $ / i', # lista separata di carattere
'/ ^ \ S *$/'),
'COORDS' => array ('/ ^ \ s * ([0-9 \.] + [0-9 \., \ S] * [0-9 \.] +) \ S * $ / i', #, i caratteri e numeri separati da
'/ ^ \ S *$/'),
'CUSTOM_ALIGN' => array ('/ ^ \ s *((?: top )|(?: basso a sinistra )|(?: mezzo )|(?: )|(?: centro destra )|(?:) | (?: giustificare)) \ s * $ / i ',
'/ ^ \ S *$/'),
'CUSTOM_CLEAR' => array ('/ ^ \ s *((?: nessuno )|(?: )|(?: tutti )|(?: sinistra a destra)) \ s * $ / i',
'/ ^ \ S *$/'),
'CUSTOM_DIR' => array ('/ ^ \ s *((?: )|(?: ltr rtl)) \ s * $ / i',
'/ ^ \ S *$/'),
'CUSTOM_TYPE' => array ('/ ^ \ s *(.*[^ \ s] +) \ s * $ / i', lo stesso # CDATA
'/ ^ \ S *$/'),
'CUSTOM_VALIGN' => array ('/ ^ \ s *((?: top )|(?: )|(?: in basso al centro basale )|(?:)) \ s * $ / i',
'/ ^ \ S *$/'),
'DATETIME' => array ('/ ^ \ s *(.*[^ \ s] +) \ s * $ / i', lo stesso # CDATA
'/ ^ \ S *$/'),
'ID' => array ('/ ^ \ s * ([a-zA-Z] + [\ w \. \ -:]*) \ S * $ / i', # primo carattere deve essere lettera
'/ ^ \ S *$/'),
'IDREF' => array ('/ ^ \ s * (w [\ \. \ -:]+) \ S * $ / i',
'/ ^ \ S *$/'),
'IDREFS' => array ('/ ^ \ s * ([\ w \. \ -: \ S] +) \ s * $ / i', # separati da uno spazio di lista IDREF
'/ ^ \ S *$/'),
'LanguageCode' => array ('/ ^ \ s * ([a-zA-Z] + [\ \ w. \ -:]*) \ S * $ / i', # ID
'/ ^ \ S *$/'),
'Lunghezza' => array ('/ ^ \ s *(.*[^ \ s] +) \ s * $ / i', lo stesso # CDATA
'/ ^ \ S *$/'),
'LinkTypes' => array ('/ ^ \ s *(.*[^ \ s] +) \ s * $ / i', lo stesso # CDATA
'/ ^ \ S *$/'),
'Numero' => array ('/ ^ \ s * ([0-9] +) \ s * $ / i', # deve avere almeno una cifra
'/ ^ \ S *$/'),
'Pixel' => array ('/ ^ \ s *(.*[^ \ s] +) \ s * $ / i', lo stesso # CDATA
'/ ^ \ S *$/'),
'Ambito' => array ('/ ^ \ s *((?: col )|(?: colgroup )|(?: fila )|(?: rowgroup)) \ s * $ / i',
'/ ^ \ S *$/'),
'Forma' => array ('/ ^ \ s *((?: cerchio rect )|(?: poli )|(?: default )|(?:)) \ s * $ / i',
'/ ^ \ S *$/'),
'StyleSheet' => array ('/ ^ \ s *(.*[^ \ s] +) \ s * $ / i',

'/ ('. # Dichiarazioni StyleSheet sono vietate in
'Express [ii] su |'. # Expression
'Scr [ii] pt |'. # Script
'&#|'. # & #
'\ / \ * |'. # / *
'\ * \ /'. # * /
')/'),

'TEXT' => array ('/ ^ \ s *(.*[^ \ s] +) \ s * $ / i', lo stesso # CDATA
'/ ^ \ S *$/'),
'TFrame' => array ('/ ^ \ s *((?: vuoto )|(?: sopra sotto )|(?: )|(?: hsides )|(?: )|(?: ss sd) | (?: vsides )|(?: )|(?: casella di frontiera)) \ s * $ / i ',
'/ ^ \ S *$/'),
"TRULES" => array ('/ ^ \ s *((?: nessuno )|(?: )|(?: gruppi di righe cols )|(?: )|(?: tutti)) \ s * $ / i '
'/ ^ \ S *$/'),
'URI' => array ('/ ^ \ s * ([^ \ s] *) \ s * $ / i',

'/ ('. # URI non è consentito nelle espressioni
'Express [ii] su |'. # Expression
'Scr [ii] pt |'. # Script
'&#|'. # & #
'\ / \ * |'. # / *
'\ * \ /'. # * /
')/'),

'YEREL_URI' => array ('/ ^ \ s * ('. # Non accettiamo Links da fuori del server appartamento URI
'((?: Http: \ / \ / '. Str_replace ('.',' \ \.', SERVER_NAME $ _SERVER ['']).' [^ \ S ]*)|'.
'(?:[^: \ S ]*))'.
') \ S * $ / i',

'/ ('. # URI non è consentito nelle espressioni
'Express [ii] su |'. # Expression
'Scr [ii] pt |'. # Script
'&#|'. # & #
'\ / \ * |'. # / *
'\ * \ /'. # * /
')/'),
);

# Property = "valore" o di una proprietà che si affaccia formatina Sablon
OzellikSablon $ = '/ ^ \ s * ([\ w ]+)(?: \ s *= \ s *(?:'.
'(?:"([^"]*)")|'. # Formato "Value, il valore in questo caso" da utilizzare
'(?:([^" \ '\ S ,]*))|'. # Format valore, il valore in questa situazione' ", e lo spazio da utilizzare
'(?: \' (*] [^ \ ') \') '. # 'Valore' formato, in questo caso i valori 'essere utilizzato
'))? \ S hanno *(.*)/';

return true;
)
?>

Puoi lasciare una risposta , oppure trackback dal tuo sito.

Lasci una risposta