Example #1
0
     $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;
     }
     if ($PermissionInfo['CanDeleteReplys'][$MyForumID] == "yes" && $_SESSION['UserID'] == $MyUserID) {
         $CanDeleteReply = true;
     }
     if ($PermissionInfo['CanModForum'][$MyForumID] == "yes") {
         $CanEditReply = true;
Example #2
0
 $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;
 }
 $TheTime = sql_result($result, $i, "TimeStamp");
 $AtomTime = GMTimeChange("Y-m-d\\TH:i:s\\Z", $TheTime, 0);
 //$OldRSSTime=GMTimeChange("Y-m-d\TH:i:s+0:00",$TheTime,0);
 $OldRSSTime = $AtomTime;
 $TheTime = GMTimeChange("D, j M Y G:i:s \\G\\M\\T", $TheTime, 0);