Example #1
0
 $bdresult = sql_query($bdquery, $SQLStat);
 $bdmembers = sql_num_rows($bdresult);
 $bdi = 0;
 if ($bdmembers > 0) {
     $bdstring = $bdmembers . " member(s) have a birthday today";
 }
 if ($bdmembers <= 0) {
     $bdstring = "<div>&nbsp;</div>&nbsp;No members have a birthday today<div>&nbsp;</div>";
 }
 while ($bdi < $bdmembers) {
     $bdmemberz = $bdmembers - 1;
     $birthday['ID'] = sql_result($bdresult, $bdi, "id");
     $birthday['Name'] = sql_result($bdresult, $bdi, "Name");
     $birthday['IP'] = sql_result($bdresult, $bdi, "IP");
     $birthday['BirthYear'] = sql_result($bdresult, $bdi, "BirthYear");
     $bdThisYear = GMTimeGet("Y", $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST']);
     $birthday['Age'] = $bdThisYear - $birthday['BirthYear'];
     $bdMemTitle = null;
     if ($GroupInfo['HasAdminCP'] == "yes") {
         $bdMemTitle = " title=\"" . $birthday['IP'] . "\"";
     }
     if ($bdi === 0) {
         $bdstring = $bdstring . "\n<br />&nbsp;";
     }
     $bdMemURL = "<a" . $bdMemTitle . " href=\"" . url_maker($exfile['member'], $Settings['file_ext'], "act=view&id=" . $birthday['ID'], $Settings['qstr'], $Settings['qsep'], $prexqstr['member'], $exqstr['member']) . "\">" . $birthday['Name'] . "</a>";
     if ($bdi < $bdmemberz) {
         $bdstring = $bdstring . $bdMemURL . " (<span style=\"font-weight: bold;\">" . $birthday['Age'] . "</span>), ";
     }
     if ($bdi == $bdmemberz) {
         $bdstring = $bdstring . $bdMemURL . " (<span style=\"font-weight: bold;\">" . $birthday['Age'] . "</span>)";
     }
Example #2
0
    if ($_SESSION['UserDST'] == "on") {
        $MyDST = $checktimea['hour'] + 1;
    }
    if ($_SESSION['UserDST'] == "off") {
        $MyDST = $checktimea['hour'];
    }
    if ($MyDST >= 0) {
        $TimeSign = "+";
    }
    if ($MyDST < 0) {
        $TimeSign = "-";
        $MyDST = abs($MyDST);
    }
    $MyDST = $MyDST . ":" . $checktimea['minute'];
    $MyTimeNow = GMTimeGet($_SESSION['iDBTimeFormat'], $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST']);
    $MyFullTimeNow = GMTimeGet($_SESSION['iDBDateFormat'] . ", " . $_SESSION['iDBTimeFormat'], $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST']);
    $endpagevar = $endpagevar . "<br />The time now is <span class=\"ctimenow\" title=\"" . $MyFullTimeNow . "\">" . $MyTimeNow . "</span> " . $ThemeSet['LineDivider'] . " All times are UTC " . $TimeSign . " " . $MyDST;
}
function execution_time($starttime)
{
    list($uetime, $etime) = explode(" ", microtime());
    $endtime = $uetime + $etime;
    return bcsub($endtime, $starttime, 4);
}
if ($_GET['debug'] == "true" || $_GET['debug'] == "on") {
    $endpagevar = $endpagevar . "<br />\nNumber of Queries: " . $NumQueries . " " . $ThemeSet['LineDivider'] . " Execution Time: " . execution_time($starttime) . $ThemeSet['LineDivider'] . "<a href=\"http://validator.w3.org/check/referer?verbose=1\" title=\"Validate HTML\" onclick=\"window.open(this.href);return false;\">HTML</a>" . $ThemeSet['LineDivider'] . "<a href=\"http://jigsaw.w3.org/css-validator/check/referer?profile=css3\" title=\"Validate CSS\" onclick=\"window.open(this.href);return false;\">CSS</a>";
}
$endpagevar = $endpagevar . "</div>\n";
echo $endpagevar;
session_write_close();
//session_write_close();
Example #3
0
$MyRealYear = GMTimeGet("Y", $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST']);
// Count the Days in this month
$MyTimeStamp = GMTimeStamp() + $calmounthaddd;
$CountDays = GMTimeGet("t", $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST'], $calmounthaddd);
$MyDay = GMTimeGet("j", $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST'], $calmounthaddd);
$MyDay2 = GMTimeGet("jS", $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST'], $calmounthaddd);
$MyDayNum = GMTimeGet("d", $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST'], $calmounthaddd);
$MyDayName = GMTimeGet("l", $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST'], $calmounthaddd);
$MyYear = GMTimeGet("Y", $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST'], $calmounthaddd);
$MyYear2 = GMTimeGet("y", $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST'], $calmounthaddd);
$MyMonth = GMTimeGet("m", $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST'], $calmounthaddd);
$MyTimeStamp1 = mktime(0, 0, 0, $MyMonth, 1, $MyYear);
$MyTimeStamp2 = mktime(23, 59, 59, $MyMonth, $CountDays, $MyYear);
$MyMonthName = GMTimeGet("F", $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST'], $calmounthaddd);
$MyMonthNum1 = GMTimeGet("m", $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST'], $calmounthaddd);
$MyMonthNum2 = GMTimeGet("n", $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST'], $calmounthaddd);
$FirstDayThisMonth = date("w", mktime(0, 0, 0, $MyMonth, 1, $MyYear));
$EventsName = array();
$query = sql_pre_query("SELECT * FROM \"" . $Settings['sqltable'] . "events\" WHERE (\"EventMonth\">=%i AND \"EventYear\"<%i AND \"EventYearEnd\">=%i) OR (\"EventMonth\"<=%i AND \"EventMonthEnd\">=%i AND \"EventYearEnd\">=%i) OR (\"EventMonth\"<=%i AND \"EventMonthEnd\"<=%i AND \"EventYear\"<=%i AND \"EventYearEnd\">%i)", array($MyMonth, $MyYear, $MyYear, $MyMonth, $MyMonth, $MyYear, $MyMonth, $MyMonth, $MyYear, $MyYear));
$result = sql_query($query, $SQLStat);
$num = sql_num_rows($result);
$is = 0;
while ($is < $num) {
    $EventID = sql_result($result, $is, "id");
    $EventUser = sql_result($result, $is, "UserID");
    $EventGuest = sql_result($result, $is, "GuestName");
    $EventName = sql_result($result, $is, "EventName");
    $EventText = sql_result($result, $is, "EventText");
    $EventStart = sql_result($result, $is, "TimeStamp");
    $EventEnd = sql_result($result, $is, "TimeStampEnd");
    //$EventMonth=sql_result($result,$is,"EventMonth");
Example #4
0
        echo 'Could not run query: ' . sql_error($SQLStat);
        exit;
    }
    sql_free_result($result2);
    sql_free_result($tabsta);
    ++$l;
}
$tableout = null;
$num = count($TableNames);
$renee_s = 0;
$sqldump = "-- " . $OrgName . " " . $SQLDumper . "\n";
$sqldump .= "-- version " . $VerInfo['iDB_Ver_SVN'] . "\n";
$sqldump .= "-- " . $iDBHome . "support/\n";
$sqldump .= "--\n";
$sqldump .= "-- Host: " . $Settings['sqlhost'] . "\n";
$sqldump .= "-- Generation Time: " . GMTimeGet('F d, Y \\a\\t h:i A', $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST']) . "\n";
$sqldump .= "-- Server version: " . sql_server_info($SQLStat) . "\n";
$sqldump .= "-- PHP Version: " . phpversion() . "\n\n";
$sqldump .= "SET SESSION SQL_MODE='ANSI_QUOTES,NO_AUTO_VALUE_ON_ZERO';\n\n";
$sqldump .= "--\n";
$sqldump .= "-- Database: \"" . $Settings['sqldb'] . "\"\n";
$sqldump .= "--\n\n";
$sqldump .= "-- --------------------------------------------------------\n\n";
while ($renee_s < $num) {
    $tnum = $num - 1;
    $trow = GetAllRows($TableNames[$renee_s]);
    $numz = count($trow);
    $kazuki_p = 0;
    $sqldump .= "--\n";
    $sqldump .= "-- Table structure for table \"" . $TableNames[$renee_s] . "\"\n";
    $sqldump .= "--\n\n";
Example #5
0
     $KarmaNum = count($KarmaExp);
     $Karmai = 0;
     while ($Karmai < $KarmaNum) {
         if ($KarmaExp[$Karmai] == $KarmaNow) {
             $Settings['KarmaBoostDays'] = $KarmaExp[$Karmai];
             $kupdate = true;
             break 1;
         }
         ++$Karmai;
     }
 }
 if ($kupdate === false) {
     $Settings['KarmaBoostDays'] = $KarmaExp[0];
 }
 $NewKarmaUpdate = GMTimeGet("Ymd", $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST']);
 $ThisYearUpdate = GMTimeGet("Y", $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST']);
 if ($MyKarmaUpdate < $NewKarmaUpdate && $MyPostCountChk > 0) {
     $KarmaBoostDay = $Settings['KarmaBoostDays'];
     $KBoostPercent = explode("|", $Settings['KBoostPercent']);
     if (count($KBoostPercent) < 1) {
         $KBoostPercent[0] = rand(1, 4);
     }
     if (!is_numeric($KBoostPercent[0])) {
         $KBoostPercent[0] = 6;
     }
     if (count($KBoostPercent) == 1) {
         $KBoostPercent[1] = $KBoostPercent[0] + rand(3, 6);
     }
     if (!is_numeric($KBoostPercent[1])) {
         $KBoostPercent[0] = 10;
     }
Example #6
0
if ($Error != "Yes") {
    $ServerUUID = rand_uuid("rand");
    if (!is_numeric($_POST['YourOffSet'])) {
        $_POST['YourOffSet'] = "0";
    }
    if (!is_numeric($_POST['MinOffSet'])) {
        $_POST['MinOffSet'] = "00";
    }
    if ($_POST['MinOffSet'] < 0) {
        $_POST['MinOffSet'] = "00";
    }
    $YourOffSet = $_POST['YourOffSet'] . ":" . $_POST['MinOffSet'];
    $AdminDST = $_POST['DST'];
    $MyDay = GMTimeGet("d", $YourOffSet, 0, $AdminDST);
    $MyMonth = GMTimeGet("m", $YourOffSet, 0, $AdminDST);
    $MyYear = GMTimeGet("Y", $YourOffSet, 0, $AdminDST);
    $MyYear10 = $MyYear + 10;
    $YourDateEnd = $YourDate;
    $EventMonth = GMTimeChange("m", $YourDate, 0, 0, "off");
    $EventMonthEnd = GMTimeChange("m", $YourDateEnd, 0, 0, "off");
    $EventDay = GMTimeChange("d", $YourDate, 0, 0, "off");
    $EventDayEnd = GMTimeChange("d", $YourDateEnd, 0, 0, "off");
    $EventYear = GMTimeChange("Y", $YourDate, 0, 0, "off");
    $EventYearEnd = GMTimeChange("Y", $YourDateEnd, 0, 0, "off");
    $KarmaBoostDay = $EventMonth . $EventDay;
    $Settings['idb_time_format'] = "g:i A";
    if (!isset($_POST['iDBTimeFormat'])) {
        $_POST['iDBTimeFormat'] = "g:i A";
    }
    if (isset($_POST['iDBTimeFormat'])) {
        $_POST['iDBTimeFormat'] = convert_strftime($_POST['iDBTimeFormat']);
Example #7
0
function bbcode_parser($text)
{
    global $Settings;
    $text = preg_replace("/\\[EmbedVideo\\=&quot;([A-Za-z0-9\\.\\-_]+)&quot;\\]([A-Za-z0-9\\.\\-_]+)\\[\\/EmbedVideo\\]/is", "[\\1]\\2[/\\1]", $text);
    $text = preg_replace("/\\[EmbedVideo\\=([A-Za-z0-9\\.\\-_]+)\\]([A-Za-z0-9\\.\\-_]+)\\[\\/EmbedVideo\\]/is", "[\\1]\\2[/\\1]", $text);
    $text = preg_replace("/\\[EmbedMusic\\=&quot;([A-Za-z0-9\\.\\-_]+)&quot;\\]([A-Za-z0-9\\.\\-_]+)\\[\\/EmbedMusic\\]/is", "[\\1]\\2[/\\1]", $text);
    $text = preg_replace("/\\[EmbedMusic\\=([A-Za-z0-9\\.\\-_]+)\\]([A-Za-z0-9\\.\\-_]+)\\[\\/EmbedMusic\\]/is", "[\\1]\\2[/\\1]", $text);
    $text = preg_replace("/\\[Kiwi6\\]([A-Za-z0-9\\.\\-_]+)\\[\\/Kiwi6\\]/is", "\n<object type=\"application/x-shockwave-flash\" height=\"24\" width=\"290\" data=\"http://kiwi6.com/swf/player.swf\">\n<param name=\"movie\" value=\"http://kiwi6.com/swf/player.swf\" />\n<param name=\"FlashVars\" value=\"playerID=audioplayer&amp;soundFile=http%3A%2F%2Fk003.kiwi6.com%2Fuploads%2Fhotlink%2F\\1\" />\n<param name=\"quality\" value=\"high\" />\n<param name=\"menu\" value=\"false\" />\n<param name=\"allowscriptaccess\" value=\"always\" />\n<param name=\"wmode\" value=\"transparent\" />\n</object>\n", $text);
    $text = preg_replace("/\\[YouTube\\]([A-Za-z0-9\\.\\-_]+)\\[\\/YouTube\\]/is", "\n<object type=\"application/x-shockwave-flash\" width=\"480\" height=\"385\" data=\"http://www.youtube.com/v/\\1?fs=1&amp;hl=en_US\">\n<param name=\"\\1\" value=\"http://www.youtube.com/v/\\1?fs=1&amp;hl=en_US\" />\n</object>\n", $text);
    $text = preg_replace("/\\[DailyMotion\\]([A-Za-z0-9\\.\\-_]+)\\[\\/DailyMotion\\]/is", "\n<object type=\"application/x-shockwave-flash\" width=\"480\" height=\"385\" data=\"http://www.dailymotion.com/swf/video/\\1\">\n<param name=\"\\1\" value=\"http://www.dailymotion.com/swf/video/\\1\" />\n<param name=\"allowFullScreen\" value=\"true\" />\n<param name=\"allowScriptAccess\" value=\"always\" />\n<param name=\"wmode\" value=\"transparent\" />\n</object>\n", $text);
    $text = preg_replace("/\\[Vimeo\\]([A-Za-z0-9\\.\\-_]+)\\[\\/Vimeo\\]/is", "\n<object type=\"application/x-shockwave-flash\" width=\"400\" height=\"225\" data=\"http://vimeo.com/moogaloop.swf?clip_id=\\1&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=00adef&amp;fullscreen=1&amp;autoplay=0&amp;loop=0\">\n<param name=\"\\1\" value=\"http://vimeo.com/moogaloop.swf?clip_id=\\1&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=00adef&amp;fullscreen=1&amp;autoplay=0&amp;loop=0\" />\n<param name=\"allowfullscreen\" value=\"true\" />\n<param name=\"allowscriptaccess\" value=\"always\" />\n</object>\n", $text);
    $text = preg_replace("/\\[TinyPic\\]([A-Za-z0-9\\.\\-_]+)\\,([A-Za-z0-9\\.\\-_]+)\\[\\/TinyPic\\]/is", "<img src=\"http://\\1.tinypic.com/\\2\" alt=\"\\2\" title=\"\\2\" />", $text);
    $text = preg_replace("/\\[BR\\]/is", "<br />", $text);
    $text = preg_replace("/\\[HR\\]/is", "<hr />", $text);
    $text = preg_replace("/\\[SUP\\](.*?)\\[\\/SUP\\]/is", "<sup>\\1</sup>", $text);
    $text = preg_replace("/\\[SUB\\](.*?)\\[\\/SUB\\]/is", "<sub>\\1</sub>", $text);
    $text = preg_replace("/\\[BoardName\\]/is", $Settings['board_name'], $text);
    $text = preg_replace("/\\[BoardURL\\]/is", $Settings['idburl'], $text);
    $text = preg_replace("/\\[WebSiteURL\\]/is", $Settings['weburl'], $text);
    $text = preg_replace("/\\{BoardName\\}/is", $Settings['board_name'], $text);
    $text = preg_replace("/\\{BoardURL\\}/is", $Settings['idburl'], $text);
    $text = preg_replace("/\\{WebSiteURL\\}/is", $Settings['weburl'], $text);
    $text = preg_replace("/\\[DATE\\]/is", GMTimeGet('M j Y', $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST']), $text);
    //$text = preg_replace("/\[DATE\=(.*?)\]/is", GMTimeGet("${1}",$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']), $text);
    $text = preg_replace("/\\[TIME\\]/is", GMTimeGet('g:i a', $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST']), $text);
    //$text = preg_replace("/\[TIME\=(.*?)\]/is", GMTimeGet("${1}",$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']), $text);
    $text = preg_replace_callback("/\\[DATE\\=&quot;(.*?)&quot;\\]/is", "bbcode_date_time", $text);
    $text = preg_replace_callback("/\\[TIME\\=&quot;(.*?)&quot;\\]/is", "bbcode_date_time", $text);
    $text = preg_replace_callback("/\\[DATE\\=(.*?)\\]/is", "bbcode_date_time", $text);
    $text = preg_replace_callback("/\\[TIME\\=(.*?)\\]/is", "bbcode_date_time", $text);
    $text = preg_replace("/\\{DATE\\}/is", GMTimeGet('g:i a', $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST']), $text);
    //$text = preg_replace("/\{DATE\=(.*?)\}/is", GMTimeGet("${1}",$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']), $text);
    $text = preg_replace("/\\{TIME\\}/is", GMTimeGet('M j Y', $_SESSION['UserTimeZone'], 0, $_SESSION['UserDST']), $text);
    //$text = preg_replace("/\{TIME\=(.*?)\}/is", GMTimeGet("${1}",$_SESSION['UserTimeZone'],0,$_SESSION['UserDST']), $text);
    $text = preg_replace_callback("/\\{DATE\\=&quot;(.*?)\"\\}/is", "bbcode_date_time", $text);
    $text = preg_replace_callback("/\\{TIME\\=&quot;(.*?)\"\\}/is", "bbcode_date_time", $text);
    $text = preg_replace_callback("/\\[RAND\\=&quot;([\\-]?[0-9]+)&quot;\\]/is", "bbcode_random", $text);
    $text = preg_replace_callback("/\\[RAND\\=&quot;([\\-]?[0-9]+)&quot;,&quot;([\\-]?[0-9]+)&quot;\\]/is", "bbcode_random", $text);
    $text = preg_replace_callback("/\\[RAND\\=&quot;([\\-]?[0-9]+),([\\-]?[0-9]+)&quot;\\]/is", "bbcode_random", $text);
    $text = preg_replace_callback("/\\{RAND\\=&quot;([\\-]?[0-9]+)\"\\}/is", "bbcode_random", $text);
    $text = preg_replace_callback("/\\{RAND\\=&quot;([\\-]?[0-9]+),([\\-]?[0-9]+)\"\\}/is", "bbcode_random", $text);
    $text = preg_replace("/\\[Entity\\=&quot;([A-Za-z0-9\\#]+)&quot;\\]/is", "&\\1;", $text);
    $text = preg_replace("/\\{Entity\\=&quot;([A-Za-z0-9\\#]+)\"\\}/is", "&\\1;", $text);
    $text = preg_replace_callback("/\\{DATE\\=(.*?)\\}/is", "bbcode_date_time", $text);
    $text = preg_replace_callback("/\\{TIME\\=(.*?)\\}/is", "bbcode_date_time", $text);
    $text = preg_replace_callback("/\\[RAND\\=([\\-]?[0-9]+)\\]/is", "bbcode_random", $text);
    $text = preg_replace_callback("/\\[RAND\\=([\\-]?[0-9]+),([\\-]?[0-9]+)\\]/is", "bbcode_random", $text);
    $text = preg_replace_callback("/\\{RAND\\=([\\-]?[0-9]+)\\}/is", "bbcode_random", $text);
    $text = preg_replace_callback("/\\{RAND\\=([\\-]?[0-9]+),([\\-]?[0-9]+)\\}/is", "bbcode_random", $text);
    $text = preg_replace("/\\[Entity\\=([A-Za-z0-9\\#]+)\\]/is", "&\\1;", $text);
    $text = preg_replace("/\\{Entity\\=([A-Za-z0-9\\#]+)\\}/is", "&\\1;", $text);
    $text = preg_replace("/\\[B\\](.*?)\\[\\/B\\]/is", "<span style=\"font-weight: bold;\">\\1</span>", $text);
    $text = preg_replace("/\\[BOLD\\](.*?)\\[\\/BOLD\\]/is", "<span style=\"font-weight: bold;\">\\1</span>", $text);
    $text = preg_replace("/\\[I\\](.*?)\\[\\/I\\]/is", "<span style=\"font-style: italic;\">\\1</span>", $text);
    $text = preg_replace("/\\[ITALIC\\](.*?)\\[\\/ITALIC\\]/is", "<span style=\"font-style: italic;\">\\1</span>", $text);
    $text = preg_replace("/\\[OBLIQUE\\](.*?)\\[\\/OBLIQUE\\]/is", "<span style=\"font-style: oblique;\">\\1</span>", $text);
    $text = preg_replace("/\\[S\\](.*?)\\[\\/S\\]/is", "<span style=\"font-style: strike;\">\\1</span>", $text);
    $text = preg_replace("/\\[STRIKE\\](.*?)\\[\\/STRIKE\\]/is", "<span style=\"font-style: strike;\">\\1</span>", $text);
    $text = preg_replace("/\\[U\\](.*?)\\[\\/U\\]/is", "<span style=\"text-decoration: underline;\">\\1</span>", $text);
    $text = preg_replace("/\\[O\\](.*?)\\[\\/O\\]/is", "<span style=\"text-decoration: overline;\">\\1</span>", $text);
    $text = preg_replace("/\\[CENTER\\](.*?)\\[\\/CENTER\\]/is", "<span style=\"text-align: center;\">\\1</span>", $text);
    $text = preg_replace("/\\[LTR\\](.*?)\\[\\/LTR\\]/is", "<span style=\"direction: rtl;\">\\1</span>", $text);
    $text = preg_replace("/\\[FONT\\=&quot;([A-Za-z0-9\\,\\s]+)&quot;\\](.*?)\\[\\/FONT\\]/is", "<span style=\"font-family: \\1px;\">\\2</span>", $text);
    $text = preg_replace("/\\[DIV\\=&quot;([A-Za-z0-9,\\.%\\-_\\:;~\\(\\)#\\s]+)&quot;\\](.*?)\\[\\/DIV\\]/is", "<div style=\"\\1\">\\2</div>", $text);
    $text = preg_replace("/\\[SPAN\\=&quot;([A-Za-z0-9,\\.%\\-_\\:;~\\(\\)#\\s]+)&quot;\\](.*?)\\[\\/SPAN\\]/is", "<span style=\"\\1\">\\2</span>", $text);
    $text = preg_replace("/\\[SIZE\\=&quot;([0-9]+)&quot;\\](.*?)\\[\\/SIZE\\]/is", "<span style=\"font-size: \\1px;\">\\2</span>", $text);
    $text = preg_replace("/\\[SIZE\\=&quot;([0-9]+)\\%&quot;\\](.*?)\\[\\/SIZE\\]/is", "<span style=\"font-size: \\1%;\">\\2</span>", $text);
    $text = preg_replace("/\\[SIZE\\=&quot;([0-9]+)(em|pt|px)&quot;\\](.*?)\\[\\/SIZE\\]/is", "<span style=\"font-size: \\1\\2;\">\\3</span>", $text);
    $text = preg_replace("/\\[COLOR\\=&quot;([A-Za-z0-9]+)&quot;\\](.*?)\\[\\/COLOR\\]/is", "<span style=\"color: \\1;\">\\2</span>", $text);
    $text = preg_replace("/\\[COLOR\\=&quot;\\#([A-Za-z0-9]+)&quot;\\](.*?)\\[\\/COLOR\\]/is", "<span style=\"color: #\\1;\">\\2</span>", $text);
    $text = preg_replace("/\\[COLOR\\=&quot;rgb\\(([0-9\\,\\s]+)\"\\)\\](.*?)\\[\\/COLOR\\]/is", "<span style=\"color: rgb(\\1);\">\\2</span>", $text);
    $text = preg_replace("/\\[BGCOLOR\\=&quot;([A-Za-z0-9]+)&quot;\\](.*?)\\[\\/BGCOLOR\\]/is", "<span style=\"background-color: \\1;\">\\2</span>", $text);
    $text = preg_replace("/\\[BGCOLOR\\=&quot;\\#([A-Za-z0-9]+)&quot;\\](.*?)\\[\\/BGCOLOR\\]/is", "<span style=\"background-color: #\\1;\">\\2</span>", $text);
    $text = preg_replace("/\\[BGCOLOR\\=&quot;rgb\\(([0-9\\,\\s]+)\"\\)\\](.*?)\\[\\/BGCOLOR\\]/is", "<span style=\"background-color: rgb(\\1);\">\\2</span>", $text);
    $text = preg_replace("/\\[COLOUR\\=&quot;([A-Za-z0-9]+)&quot;\\](.*?)\\[\\/COLOUR\\]/is", "<span style=\"color: \\1;\">\\2</span>", $text);
    $text = preg_replace("/\\[COLOUR\\=&quot;\\#([A-Za-z0-9]+)&quot;\\](.*?)\\[\\/COLOUR\\]/is", "<span style=\"color: #\\1;\">\\2</span>", $text);
    $text = preg_replace("/\\[COLOUR\\=&quot;rgb\\(([0-9\\,\\s]+)\"\\)\\](.*?)\\[\\/COLOUR\\]/is", "<span style=\"color: rgb(\\1);\">\\2</span>", $text);
    $text = preg_replace("/\\[BGCOLOUR\\=&quot;([A-Za-z0-9]+)&quot;\\](.*?)\\[\\/BGCOLOUR\\]/is", "<span style=\"background-color: \\1;\">\\2</span>", $text);
    $text = preg_replace("/\\[BGCOLOUR\\=&quot;\\#([A-Za-z0-9]+)&quot;\\](.*?)\\[\\/BGCOLOUR\\]/is", "<span style=\"background-color: #\\1;\">\\2</span>", $text);
    $text = preg_replace("/\\[BGCOLOUR\\=&quot;rgb\\(([0-9\\,\\s]+)\"\\)\\](.*?)\\[\\/BGCOLOUR\\]/is", "<span style=\"background-color: rgb(\\1);\">\\2</span>", $text);
    $text = preg_replace("/\\[ALIGN=\"(left|center|right|justify)&quot;\\](.*?)\\[\\/ALIGN\\]/is", "<div style=\"text-align: \\1;\">\\2</div>", $text);
    $text = preg_replace("/\\[VALIGN=\"(.*?)&quot;\\](.*?)\\[\\/VALIGN\\]/is", "<div style=\"vertical-align: \\1;\">\\2</div>", $text);
    $text = preg_replace("/\\[FLOAT=\"(left|right)&quot;\\](.*?)\\[\\/FLOAT\\]/is", "<div style=\"float: \\1;\">\\2</div>", $text);
    $text = preg_replace("/\\[FONT\\=([A-Za-z0-9\\,\\s]+)\\](.*?)\\[\\/FONT\\]/is", "<span style=\"font-family: \\1px;\">\\2</span>", $text);
    $text = preg_replace("/\\[DIV\\=([A-Za-z0-9,\\.%\\-_\\:;~\\(\\)#\\s]+)\\](.*?)\\[\\/DIV\\]/is", "<div style=\"\\1\">\\2</div>", $text);
    $text = preg_replace("/\\[SPAN\\=([A-Za-z0-9,\\.%\\-_\\:;~\\(\\)#\\s]+)\\](.*?)\\[\\/SPAN\\]/is", "<span style=\"\\1\">\\2</span>", $text);
    $text = preg_replace("/\\[COMMENT\\](.*?)\\[COMMENT\\]/is", "<!--\\1-->", $text);
    $text = preg_replace("/\\[SIZE\\=([0-9]+)\\](.*?)\\[\\/SIZE\\]/is", "<span style=\"font-size: \\1px;\">\\2</span>", $text);
    $text = preg_replace("/\\[SIZE\\=([0-9]+)\\%\\](.*?)\\[\\/SIZE\\]/is", "<span style=\"font-size: \\1%;\">\\2</span>", $text);
    $text = preg_replace("/\\[SIZE\\=([0-9]+)(em|pt|px)\\](.*?)\\[\\/SIZE\\]/is", "<span style=\"font-size: \\1\\2;\">\\3</span>", $text);
    $text = preg_replace("/\\[COLOR\\=([A-Za-z0-9]+)\\](.*?)\\[\\/COLOR\\]/is", "<span style=\"color: \\1;\">\\2</span>", $text);
    $text = preg_replace("/\\[COLOR\\=\\#([A-Za-z0-9]+)\\](.*?)\\[\\/COLOR\\]/is", "<span style=\"color: #\\1;\">\\2</span>", $text);
    $text = preg_replace("/\\[COLOR\\=rgb\\(([0-9\\,\\s]+)\\)\\](.*?)\\[\\/COLOR\\]/is", "<span style=\"color: rgb(\\1);\">\\2</span>", $text);
    $text = preg_replace("/\\[BGCOLOR\\=([A-Za-z0-9]+)\\](.*?)\\[\\/BGCOLOR\\]/is", "<span style=\"background-color: \\1;\">\\2</span>", $text);
    $text = preg_replace("/\\[BGCOLOR\\=\\#([A-Za-z0-9]+)\\](.*?)\\[\\/BGCOLOR\\]/is", "<span style=\"background-color: #\\1;\">\\2</span>", $text);
    $text = preg_replace("/\\[BGCOLOR\\=rgb\\(([0-9\\,\\s]+)\\)\\](.*?)\\[\\/BGCOLOR\\]/is", "<span style=\"background-color: rgb(\\1);\">\\2</span>", $text);
    $text = preg_replace("/\\[COLOUR\\=([A-Za-z0-9]+)\\](.*?)\\[\\/COLOUR\\]/is", "<span style=\"color: \\1;\">\\2</span>", $text);
    $text = preg_replace("/\\[COLOUR\\=\\#([A-Za-z0-9]+)\\](.*?)\\[\\/COLOUR\\]/is", "<span style=\"color: #\\1;\">\\2</span>", $text);
    $text = preg_replace("/\\[COLOUR\\=rgb\\(([0-9\\,\\s]+)\\)\\](.*?)\\[\\/COLOUR\\]/is", "<span style=\"color: rgb(\\1);\">\\2</span>", $text);
    $text = preg_replace("/\\[BGCOLOUR\\=([A-Za-z0-9]+)\\](.*?)\\[\\/BGCOLOUR\\]/is", "<span style=\"background-color: \\1;\">\\2</span>", $text);
    $text = preg_replace("/\\[BGCOLOUR\\=\\#([A-Za-z0-9]+)\\](.*?)\\[\\/BGCOLOUR\\]/is", "<span style=\"background-color: #\\1;\">\\2</span>", $text);
    $text = preg_replace("/\\[BGCOLOUR\\=rgb\\(([0-9\\,\\s]+)\\)\\](.*?)\\[\\/BGCOLOUR\\]/is", "<span style=\"background-color: rgb(\\1);\">\\2</span>", $text);
    $text = preg_replace("/\\[ALIGN=(left|center|right|justify)\\](.*?)\\[\\/ALIGN\\]/is", "<div style=\"text-align: \\1;\">\\2</div>", $text);
    $text = preg_replace("/\\[VALIGN=(.*?)\\](.*?)\\[\\/VALIGN\\]/is", "<div style=\"vertical-align: \\1;\">\\2</div>", $text);
    $text = preg_replace("/\\[FLOAT=(left|right)\\](.*?)\\[\\/FLOAT\\]/is", "<div style=\"float: \\1;\">\\2</div>", $text);
    // Sub URL and IMG tags
    $text = preg_replace_callback("/\\[URL](.*?)\\[\\/URL\\]/is", "urlcheck2", $text);
    $text = preg_replace("/\\[URL\\=&quot;(.*?)&quot;\\](.*?)\\[\\/URL\\]/is", "[URL=\\1]\\2[/URL]", $text);
    $text = preg_replace_callback("/\\[URL\\=(.*?)\\](.*?)\\[\\/URL\\]/is", "urlcheck2", $text);
    $text = preg_replace_callback("/\\[IMG](.*?)\\[\\/IMG\\]/is", "urlcheck2", $text);
    $text = preg_replace("/\\[IMG\\=&quot;(.*?)&quot;\\](.*?)\\[\\/IMG\\]/is", "[IMG=\\1]\\2[/IMG]", $text);
    $text = preg_replace_callback("/\\[IMG\\=(.*?)](.*?)\\[\\/IMG\\]/is", "urlcheck2", $text);
    $text = preg_replace_callback("/\\[URLENCODE\\](.*?)\\[\\/URLENCODE\\]/is", "bbcode_urlencode", $text);
    $text = preg_replace_callback("/\\[URLDECODE\\](.*?)\\[\\/URLDECODE\\]/is", "bbcode_urldecode", $text);
    $text = preg_replace_callback("/\\[BASE64\\](.*?)\\[\\/BASE64\\]/is", "bbcode_base64encode", $text);
    $text = preg_replace_callback("/\\[BASE64\\=ENCODE\\](.*?)\\[\\/BASE64\\]/is", "bbcode_base64encode", $text);
    $text = preg_replace_callback("/\\[BASE64\\=DECODE\\](.*?)\\[\\/BASE64\\]/is", "bbcode_base64decode", $text);
    $text = preg_replace_callback("/\\[ROT13\\](.*?)\\[\\/ROT13\\]/is", "bbcode_rot13", $text);
    $text = preg_replace("/\\[JavaScript\\](.*?)\\[\\/JavaScript\\]/is", "[DoHTML]\n&lt;script type=&quot;text/javascript&quot;&gt;\n\\1\n&lt;/script&gt;\n[/DoHTML]", $text);
    return $text;
}
Example #8
0
    ?>
<br />
&nbsp;User Group: <?php 
    echo $ViewMem['Group'];
    ?>
<br />
&nbsp;User Joined: <?php 
    echo $ViewMem['Joined'];
    ?>
<br />
&nbsp;Last Active: <?php 
    echo $ViewMem['LastActive'];
    ?>
<br />
&nbsp;User Time: <?php 
    echo GMTimeGet("M j Y, " . $_SESSION['iDBTimeFormat'], $ViewMem['TimeZone'], 0, $ViewMem['DST']);
    ?>
<br />
&nbsp;User Website: <a href="<?php 
    echo $ViewMem['Website'];
    ?>
"<?php 
    echo $opennew;
    ?>
>Website</a><br />
&nbsp;Post Count: <?php 
    echo $ViewMem['PostCount'];
    ?>
<br />
&nbsp;Karma: <?php 
    echo $ViewMem['Karma'];