Esempio n. 1
0
 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);
 $TopicName = sql_result($result, $i, "TopicName");
 $ForumDescription = sql_result($result, $i, "Description");
Esempio n. 2
0
 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;
         $CanDeleteReply = true;
     }
Esempio n. 3
0
     ob_clean();
     header("Content-Type: text/plain; charset=" . $Settings['charset']);
     $urlstatus = 302;
     gzip_page($Settings['use_gzip'], $GZipEncode['Type']);
     session_write_close();
     die;
 }
 $membertitle = " " . $ThemeSet['TitleDivider'] . " " . $ViewMem['Name'];
 if ($ViewMem['Avatar'] == "http://" || $ViewMem['Avatar'] == null || strtolower($ViewMem['Avatar']) == "noavatar") {
     $ViewMem['Avatar'] = $ThemeSet['NoAvatar'];
     $ViewMem['AvatarSize'] = $ThemeSet['NoAvatarSize'];
 }
 $AvatarSize1 = explode("x", $ViewMem['AvatarSize']);
 $AvatarSize1W = $AvatarSize1[0];
 $AvatarSize1H = $AvatarSize1[1];
 $ViewMem['Signature'] = text2icons($ViewMem['Signature'], $Settings['sqltable'], $SQLStat);
 $ViewMem['Signature'] = url2link($ViewMem['Signature']);
 if ($_GET['view'] == null) {
     $_GET['view'] = "profile";
 }
 if ($_GET['view'] != "profile" && $_GET['view'] != "avatar" && $_GET['view'] != "website" && $_GET['view'] != "homepage") {
     $_GET['view'] = "profile";
 }
 if ($_GET['view'] == "avatar") {
     session_write_close();
     $urlstatus = 302;
     header("Location: " . $ViewMem['Avatar']);
     gzip_page($Settings['use_gzip'], $GZipEncode['Type']);
     die;
 }
 if ($_GET['view'] == "website" || $_GET['view'] == "homepage") {