Gizli Resim Sistemi
|
#187 |
|
|
qharez
User is:
Posts: 172
Meslek:
Age: 35
|
System/ fonksiyon.php yi a??yoruz alttakini buluyoruz..
Kod: function sed_bbcode_autourls($text) { $text = ' '.$text; $text = preg_replace("#([n ])([a-z0-9]+?)://([^t nr]+)#i", "[url]://[/url]", $text); $text = preg_replace("#([n ])([a-z0-9-_.]+?@[A-z0-9-]+.[^,t nr]+)#i", "[email][/email]", $text); return(substr($text,1)); } Alttaki ile degi?tiriyoruz.. Kod: function sed_bbcode_autourls($text) { global $usr; if ($usr['maingrp']>0) { $text = ' '.$text; $text = preg_replace("#([n ])([a-z0-9]+?)://([^t nr]+)#i", "[url]://[/url]", $text); $text = preg_replace("#([n ])([a-z0-9-_.]+?@[A-z0-9-]+.[^,t nr]+)#i", "[email][/email]", $text); return(substr($text,1)); } else { $text = ' '.$text; $text = preg_replace("#[img]((http|ftp|https|ftps)://)(.*?)(.(jpg|jpeg|gif|png|JPG|JPEG|GIF|PNG))[/img]#i", " <b><font color="blue">( Resimleri Sadece ?yelerimiz G?rebilir...)</font> - <font color="red">[ <a href="users.php?m=register">Kay?t Ol</a> ] </font> - <font color="red">[ <a href="users.php?m=auth">Giri? yap</a> ] </font></b>", $text); return(substr($text,1)); } } |













