Example #1
0
     $MyPost = do_html_bbcode($MyPost);
 }
 $MyPost = text2icons($MyPost, $Settings['sqltable'], $SQLStat);
 $MyPost = preg_replace("/\\<br\\>/", "<br />", nl2br($MyPost));
 $MyPost = url2link($MyPost);
 if ($MySubPost != null) {
     $MyPost = $MyPost . "\n" . $MySubPost;
 }
 if ($User1CanUseBBags == "yes") {
     $User1Signature = bbcode_parser($User1Signature);
 }
 if ($User1CanExecPHP == "no") {
     $User1Signature = preg_replace("/\\[ExecPHP\\](.*?)\\[\\/ExecPHP\\]/is", "<span style=\"color: red; font-weight: bold;\">ERROR:</span> cannot execute php code.", $User1Signature);
 }
 if ($User1CanExecPHP == "yes") {
     $User1Signature = php_execute($User1Signature);
 }
 if ($User1CanDoHTML1 == "no") {
     $User1Signature = preg_replace("/\\[DoHTML\\](.*?)\\[\\/DoHTML\\]/is", "<span style=\"color: red; font-weight: bold;\">ERROR:</span> cannot execute html.", $User1Signature);
 }
 if ($User1CanDoHTML == "yes") {
     $User1Signature = do_html_bbcode($User1Signature);
 }
 $User1Signature = text2icons($User1Signature, $Settings['sqltable'], $SQLStat);
 $User1Signature = preg_replace("/\\<br\\>/", "<br />", nl2br($User1Signature));
 $User1Signature = url2link($User1Signature);
 $CanEditReply = false;
 $CanDeleteReply = false;
 if ($_SESSION['UserGroup'] != $Settings['GuestGroup']) {
     if ($PermissionInfo['CanEditReplys'][$MyForumID] == "yes" && $_SESSION['UserID'] == $MyUserID) {
         $CanEditReply = true;
Example #2
0
     $User1CanUseBBags = sql_result($gresult, 0, "CanUseBBags");
 }
 if ($User1CanUseBBags != "yes" && $User1CanUseBBags != "no") {
     $User1CanUseBBags = "no";
 }
 $GroupNamePrefix = sql_result($gresult, 0, "NamePrefix");
 $GroupNameSuffix = sql_result($gresult, 0, "NameSuffix");
 sql_free_result($gresult);
 if ($User1CanUseBBags == "yes") {
     $MyDescription = bbcode_parser($MyDescription);
 }
 if ($User1CanExecPHP == "no") {
     $MyDescription = preg_replace("/\\[ExecPHP\\](.*?)\\[\\/ExecPHP\\]/is", "<span style=\"color: red; font-weight: bold;\">ERROR:</span> cannot execute php code.", $MyDescription);
 }
 if ($User1CanExecPHP == "yes") {
     $MyDescription = php_execute($MyDescription);
 }
 if ($User1CanDoHTML == "no") {
     $MyDescription = preg_replace("/\\[DoHTML\\](.*?)\\[\\/DoHTML\\]/is", "<span style=\"color: red; font-weight: bold;\">ERROR:</span> cannot execute html.", $MyDescription);
 }
 if ($User1CanDoHTML == "yes") {
     $MyDescription = do_html_bbcode($MyDescription);
 }
 $MyDescription = text2icons($MyDescription, $Settings['sqltable'], $SQLStat);
 $MyDescription = preg_replace("/\\<br\\>/", "<br />", nl2br($MyDescription));
 $MyDescription = url2link($MyDescription);
 if (isset($GroupNamePrefix) && $GroupNamePrefix != null) {
     $UsersName = $GroupNamePrefix . $UsersName;
 }
 if (isset($GroupNameSuffix) && $GroupNameSuffix != null) {
     $UsersName = $UsersName . $GroupNameSuffix;