setTimestamp($EventStart); $eventstartcurtime->setTimezone($usertz); $EventStart = $eventstartcurtime->format($_SESSION['iDBDateFormat']); $eventendcurtime = new DateTime(); $eventendcurtime->setTimestamp($EventEnd); $eventendcurtime->setTimezone($usertz); $EventEnd = $eventendcurtime->format($_SESSION['iDBDateFormat']); $ipshow = "two"; if(isset($_SESSION['OldViewingPage'])) { $_SESSION['AncientViewingPage'] = $_SESSION['OldViewingPage']; } else { $_SESSION['AncientViewingPage'] = url_maker(null,"no+ext","act=view","&","=",$prexqstr['index'],$exqstr['index']); } if(isset($_SESSION['OldViewingFile'])) { $_SESSION['AncientViewingFile'] = $_SESSION['OldViewingFile']; } else { if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") { $_SESSION['AncientViewingFile'] = $exfile['index'].$Settings['file_ext']; } if($Settings['file_ext']=="no+ext"||$Settings['file_ext']=="no ext") { $_SESSION['AncientViewingFile'] = $exfile['index']; } } if(isset($_SESSION['OldPreViewingTitle'])) { $_SESSION['AncientPreViewingTitle'] = $_SESSION['OldPreViewingTitle']; } else { $_SESSION['AncientPreViewingTitle'] = "Viewing"; } if(isset($_SESSION['OldViewingTitle'])) { $_SESSION['AncientViewingTitle'] = $_SESSION['OldViewingTitle']; } else { $_SESSION['AncientViewingTitle'] = "Board index"; } if(isset($_SESSION['OldExtraData'])) { $_SESSION['AncientExtraData'] = $_SESSION['OldExtraData']; } else { $_SESSION['AncientExtraData'] = "currentact:view; currentcategoryid:0; currentforumid:0; currenttopicid:0; currentmessageid:0; currenteventid:0; currentmemberid:0;"; } if(isset($_SESSION['ViewingPage'])) { $_SESSION['OldViewingPage'] = $_SESSION['ViewingPage']; } else { $_SESSION['OldViewingPage'] = url_maker(null,"no+ext","act=view","&","=",$prexqstr['index'],$exqstr['index']); } if(isset($_SESSION['ViewingFile'])) { $_SESSION['OldViewingFile'] = $_SESSION['ViewingFile']; } else { if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") { $_SESSION['OldViewingFile'] = $exfile['index'].$Settings['file_ext']; } if($Settings['file_ext']=="no+ext"||$Settings['file_ext']=="no ext") { $_SESSION['OldViewingFile'] = $exfile['index']; } } if(isset($_SESSION['PreViewingTitle'])) { $_SESSION['OldPreViewingTitle'] = $_SESSION['PreViewingTitle']; } else { $_SESSION['OldPreViewingTitle'] = "Viewing"; } if(isset($_SESSION['ViewingTitle'])) { $_SESSION['OldViewingTitle'] = $_SESSION['ViewingTitle']; } else { $_SESSION['OldViewingTitle'] = "Board index"; } if(isset($_SESSION['ExtraData'])) { $_SESSION['OldExtraData'] = $_SESSION['ExtraData']; } else { $_SESSION['OldExtraData'] = "currentact:view; currentcategoryid:0; currentforumid:0; currenttopicid:0; currentmessageid:0; currenteventid:0; currentmemberid:0;"; } $_SESSION['ViewingPage'] = url_maker(null,"no+ext","act=view&id=".$_GET['id'],"&","=",$prexqstr['event'],$exqstr['event']); if($Settings['file_ext']!="no+ext"&&$Settings['file_ext']!="no ext") { $_SESSION['ViewingFile'] = $exfile['event'].$Settings['file_ext']; } if($Settings['file_ext']=="no+ext"||$Settings['file_ext']=="no ext") { $_SESSION['ViewingFile'] = $exfile['event']; } $_SESSION['PreViewingTitle'] = "Viewing Event:"; $_SESSION['ViewingTitle'] = $EventName; $_SESSION['ExtraData'] = "currentact:".$_GET['act']."; currentcategoryid:0; currentforumid:0; currenttopicid:0; currentmessageid:0; currenteventid:".$EventID.";"; $requery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."members\" WHERE \"id\"=%i LIMIT 1", array($EventUser)); $reresult=sql_query($requery,$SQLStat); $renum=sql_num_rows($reresult); if($renum<1) { $EventUser = -1; $requery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."members\" WHERE \"id\"=%i LIMIT 1", array($EventUser)); $reresult=sql_query($requery,$SQLStat); $renum=sql_num_rows($reresult); } $memrequery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."mempermissions\" WHERE \"id\"=%i LIMIT 1", array($EventUser)); $memreresult=sql_query($memrequery,$SQLStat); $memrenum=sql_num_rows($memreresult); $rei=0; $User1ID=$EventUser; $User1Name=sql_result($reresult,$rei,"Name"); $User1IP=sql_result($reresult,$rei,"IP"); if($User1IP==$EventIP) { $ipshow = "one"; } $User1Email=sql_result($reresult,$rei,"Email"); $User1Title=sql_result($reresult,$rei,"Title"); $PreUserCanExecPHP=sql_result($memreresult,$rei,"CanExecPHP"); if($PreUserCanExecPHP!="yes"&&$PreUserCanExecPHP!="no"&&$PreUserCanExecPHP!="group") { $PreUserCanExecPHP = "no"; } $PreUserCanDoHTML=sql_result($memreresult,$rei,"CanDoHTML"); if($PreUserCanDoHTML!="yes"&&$PreUserCanDoHTML!="no"&&$PreUserCanDoHTML!="group") { $PreUserCanDoHTML = "no"; } $PreUserCanUseBBTags=sql_result($memreresult,$rei,"CanUseBBTags"); if($PreUserCanUseBBTags!="yes"&&$PreUserCanUseBBTags!="no"&&$PreUserCanUseBBTags!="group") { $PreUserCanUseBBTags = "no"; } sql_free_result($memreresult); $User1Joined=sql_result($reresult,$rei,"Joined"); $tmpusrcurtime = new DateTime(); $tmpusrcurtime->setTimestamp($User1Joined); $tmpusrcurtime->setTimezone($usertz); $User1Joined=$tmpusrcurtime->format($_SESSION['iDBDateFormat']); $User1GroupID=sql_result($reresult,$rei,"GroupID"); $gquery = sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."groups\" WHERE \"id\"=%i LIMIT 1", array($User1GroupID)); $gresult=sql_query($gquery,$SQLStat); $User1Hidden=sql_result($reresult,$rei,"HiddenMember"); $User1Group=sql_result($gresult,0,"Name"); $User1CanExecPHP = $PreUserCanExecPHP; if($PreUserCanExecPHP=="group") { $User1CanExecPHP=sql_result($gresult,0,"CanExecPHP"); } if($User1CanExecPHP!="yes"&&$User1CanExecPHP!="no") { $User1CanExecPHP = "no"; } $User1CanDoHTML = $PreUserCanDoHTML; if($PreUserCanDoHTML=="group") { $User1CanDoHTML=sql_result($gresult,0,"CanDoHTML"); } if($User1CanDoHTML!="yes"&&$User1CanDoHTML!="no") { $User1CanDoHTML = "no"; } $User1CanUseBBTags = $PreUserCanUseBBTags; if($User1CanUseBBTags=="group") { $User1CanUseBBTags=sql_result($gresult,0,"CanUseBBTags"); } if($User1CanUseBBTags!="yes"&&$User1CanUseBBTags!="no") { $User1CanUseBBTags = "no"; } $GroupNamePrefix=sql_result($gresult,0,"NamePrefix"); $GroupNameSuffix=sql_result($gresult,0,"NameSuffix"); sql_free_result($gresult); if($User1Title=="") { $User1Title = $User1Group; } $User1Signature=sql_result($reresult,$rei,"Signature"); $User1Signature = preg_replace("/\/", "
", nl2br($User1Signature)); $User1Avatar=sql_result($reresult,$rei,"Avatar"); $User1AvatarSize=sql_result($reresult,$rei,"AvatarSize"); if ($User1Avatar=="http://"||$User1Avatar==null|| strtolower($User1Avatar)=="noavatar") { $User1Avatar=$ThemeSet['NoAvatar']; $User1AvatarSize=$ThemeSet['NoAvatarSize']; } $AvatarSize1=explode("x", $User1AvatarSize); $AvatarSize1W=$AvatarSize1[0]; $AvatarSize1H=$AvatarSize1[1]; $User1Website=sql_result($reresult,$rei,"Website"); if($User1Website=="http://") { $User1Website = $Settings['idburl']; } $User1Website = urlcheck($User1Website); $BoardWWWChCk = parse_url($Settings['idburl']); $User1WWWChCk = parse_url($User1Website); $opennew = " onclick=\"window.open(this.href);return false;\""; if($BoardWWWChCk['host']==$User1WWWChCk['host']) { $opennew = null; } $User1PostCount=sql_result($reresult,$rei,"PostCount"); $User1IP=sql_result($reresult,$rei,"IP"); sql_free_result($reresult); ++$is; } sql_free_result($result); if($User1Name=="Guest") { $User1Name=$EventGuest; if($User1Name==null) { $User1Name="Guest"; } } if(isset($GroupNamePrefix)&&$GroupNamePrefix!=null) { $User1Name = $GroupNamePrefix.$User1Name; } if(isset($GroupNameSuffix)&&$GroupNameSuffix!=null) { $User1Name = $User1Name.$GroupNameSuffix; } if($User1CanUseBBTags=="yes") { $EventText = bbcode_parser($EventText); } if($User1CanExecPHP=="no") { $EventText = preg_replace("/\[ExecPHP\](.*?)\[\/ExecPHP\]/is","ERROR: cannot execute php code.",$EventText); } if($User1CanExecPHP=="yes") { $EventText = php_execute($EventText); } if($User1CanDoHTML=="no") { $EventText = preg_replace("/\[DoHTML\](.*?)\[\/DoHTML\]/is","ERROR: cannot execute html.",$EventText); } if($User1CanDoHTML=="yes") { $EventText = do_html_bbcode($EventText); } $EventText = text2icons($EventText,$Settings['sqltable'],$SQLStat); $EventText = preg_replace("/\/", "
", nl2br($EventText)); $EventText = url2link($EventText); if($User1CanUseBBTags=="yes") { $User1Signature = bbcode_parser($User1Signature); } if($User1CanExecPHP=="no") { $User1Signature = preg_replace("/\[ExecPHP\](.*?)\[\/ExecPHP\]/is","ERROR: cannot execute php code.",$User1Signature); } if($User1CanExecPHP=="yes") { $User1Signature = php_execute($User1Signature); } if($User1CanDoHTML=="no") { $User1Signature = preg_replace("/\[DoHTML\](.*?)\[\/DoHTML\]/is","ERROR: cannot execute html.",$User1Signature); } if($User1CanDoHTML=="yes") { $User1Signature = do_html_bbcode($User1Signature); } $User1Signature = text2icons($User1Signature,$Settings['sqltable'],$SQLStat); $User1Signature = preg_replace("/\/", "
", nl2br($User1Signature)); $User1Signature = url2link($User1Signature); ?>
">
 0&&$User1Hidden=="no") { echo "".$User1Name.""; } if($User1ID<=0||$User1Hidden=="yes") { echo "".$User1Name.""; } ?>
Event Start: Event End:
 
<?php echo $User1Name; ?>'s Avatar


Group:
Member: 0&&$User1Hidden=="no") { echo $User1ID; } if($User1ID<=0||$User1Hidden=="yes") { echo 0; } ?>
Posts:
Joined:
User IP:
Event IP:


--------------------
 "> >">
">Making a Event
Making a Event
 "; } echo "
" style="vertical-align: middle; border: 0px; cursor: pointer;" title="" alt="" onclick="addsmiley('EventText','  ')" /> " style="vertical-align: middle; border: 0px; cursor: pointer;" title="" alt="" onclick="addsmiley('EventText','  ')" />
"; sql_free_result($melanie_result); ?>
">




 
">Making a Event
 Make Event Message:
="30") { $Error="Yes"; ?> "2") { $Error="Yes"; ?> "2") { $Error="Yes"; ?> "4") { $Error="Yes"; ?> "2") { $Error="Yes"; ?> "2") { $Error="Yes"; ?> "4") { $Error="Yes"; ?> ="25") { $Error="Yes"; ?> _> by Kazuki Przyborowski - Cool Dude 2k */ $melanieqy=sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."wordfilter\"", array(null)); $melaniert=sql_query($melanieqy,$SQLStat); $melanienm=sql_num_rows($melaniert); $melanies=0; while ($melanies < $melanienm) { $Filter=sql_result($melaniert,$melanies,"FilterWord"); $Replace=sql_result($melaniert,$melanies,"Replacement"); $CaseInsensitive=sql_result($melaniert,$melanies,"CaseInsensitive"); if($CaseInsensitive=="on") { $CaseInsensitive = "yes"; } if($CaseInsensitive=="off") { $CaseInsensitive = "no"; } if($CaseInsensitive!="yes"||$CaseInsensitive!="no") { $CaseInsensitive = "no"; } $WholeWord=sql_result($melaniert,$melanies,"WholeWord"); if($WholeWord=="on") { $WholeWord = "yes"; } if($WholeWord=="off") { $WholeWord = "no"; } if($WholeWord!="yes"&&$WholeWord!="no") { $WholeWord = "no"; } $Filter = preg_quote($Filter, "/"); if($CaseInsensitive!="yes"&&$WholeWord=="yes") { $_POST['EventText'] = preg_replace("/\b(".$Filter.")\b/", $Replace, $_POST['EventText']); } if($CaseInsensitive=="yes"&&$WholeWord=="yes") { $_POST['EventText'] = preg_replace("/\b(".$Filter.")\b/i", $Replace, $_POST['EventText']); } if($CaseInsensitive!="yes"&&$WholeWord!="yes") { $_POST['EventText'] = preg_replace("/".$Filter."/", $Replace, $_POST['EventText']); } if($CaseInsensitive=="yes"&&$WholeWord!="yes") { $_POST['EventText'] = preg_replace("/".$Filter."/i", $Replace, $_POST['EventText']); } ++$melanies; } sql_free_result($melaniert); $lonewolfqy=sql_pre_query("SELECT * FROM \"".$Settings['sqltable']."restrictedwords\" WHERE \"RestrictedEventName\"='yes' or \"RestrictedUserName\"='yes'", array(null)); $lonewolfrt=sql_query($lonewolfqy,$SQLStat); $lonewolfnm=sql_num_rows($lonewolfrt); $lonewolfs=0; $RMatches = null; $RGMatches = null; while ($lonewolfs < $lonewolfnm) { $RWord=sql_result($lonewolfrt,$lonewolfs,"Word"); $RCaseInsensitive=sql_result($lonewolfrt,$lonewolfs,"CaseInsensitive"); if($RCaseInsensitive=="on") { $RCaseInsensitive = "yes"; } if($RCaseInsensitive=="off") { $RCaseInsensitive = "no"; } if($RCaseInsensitive!="yes"||$RCaseInsensitive!="no") { $RCaseInsensitive = "no"; } $RWholeWord=sql_result($lonewolfrt,$lonewolfs,"WholeWord"); if($RWholeWord=="on") { $RWholeWord = "yes"; } if($RWholeWord=="off") { $RWholeWord = "no"; } if($RWholeWord!="yes"||$RWholeWord!="no") { $RWholeWord = "no"; } $RestrictedEventName=sql_result($lonewolfrt,$lonewolfs,"RestrictedEventName"); if($RestrictedEventName=="on") { $RestrictedEventName = "yes"; } if($RestrictedEventName=="off") { $RestrictedEventName = "no"; } if($RestrictedEventName!="yes"||$RestrictedEventName!="no") { $RestrictedEventName = "no"; } $RestrictedUserName=sql_result($lonewolfrt,$lonewolfs,"RestrictedUserName"); if($RestrictedUserName=="on") { $RestrictedUserName = "yes"; } if($RestrictedUserName=="off") { $RestrictedUserName = "no"; } if($RestrictedUserName!="yes"||$RestrictedUserName!="no") { $RestrictedUserName = "no"; } $RWord = preg_quote($RWord, "/"); if($RCaseInsensitive!="yes"&&$RWholeWord=="yes") { if($RestrictedEventName=="yes") { $RMatches = preg_match("/\b(".$RWord.")\b/", $_POST['EventName']); if($RMatches==true) { break 1; } } if($RestrictedUserName=="yes") { $RGMatches = preg_match("/\b(".$RWord.")\b/", $_POST['GuestName']); if($RGMatches==true) { break 1; } } } if($RCaseInsensitive=="yes"&&$RWholeWord=="yes") { if($RestrictedEventName=="yes") { $RMatches = preg_match("/\b(".$RWord.")\b/i", $_POST['EventName']); if($RMatches==true) { break 1; } } if($RestrictedUserName=="yes") { $RGMatches = preg_match("/\b(".$RWord.")\b/i", $_POST['GuestName']); if($RGMatches==true) { break 1; } } } if($RCaseInsensitive!="yes"&&$RWholeWord!="yes") { if($RestrictedEventName=="yes") { $RMatches = preg_match("/".$RWord."/", $_POST['EventName']); if($RMatches==true) { break 1; } } if($RestrictedUserName=="yes") { $RGMatches = preg_match("/".$RWord."/", $_POST['GuestName']); if($RGMatches==true) { break 1; } } } if($RCaseInsensitive=="yes"&&$RWholeWord!="yes") { if($RestrictedEventName=="yes") { $RMatches = preg_match("/".$RWord."/i", $_POST['EventName']); if($RMatches==true) { break 1; } } if($RestrictedUserName=="yes") { $RGMatches = preg_match("/".$RWord."/i", $_POST['GuestName']); if($RGMatches==true) { break 1; } } } ++$lonewolfs; } sql_free_result($lonewolfrt); if ($_POST['EventName']==null) { $Error="Yes"; ?> setTimestamp($TimeSIn); $eventstartcurtime->setTimezone($utctz); $eventendcurtime = new DateTime(); $eventendcurtime->setTimestamp($TimeSOut); $eventendcurtime->setTimezone($utctz); $EventMonth=$eventstartcurtime->format("m"); $EventMonthEnd=$eventendcurtime->format("m"); $EventDay=$eventstartcurtime->format("d"); $EventDayEnd=$eventendcurtime->format("d"); $EventYear=$eventstartcurtime->format("Y"); $EventYearEnd=$eventendcurtime->format("Y"); $User1ID=$MyUserID; $User1IP=$_SERVER['REMOTE_ADDR']; if($_SESSION['UserGroup']==$Settings['GuestGroup']) { $User1Name = $_POST['GuestName']; } if($_SESSION['UserGroup']!=$Settings['GuestGroup']) { $User1Name = $_SESSION['MemberName']; } $query = sql_pre_query("INSERT INTO ".$Settings['sqltable']."events (\"UserID\", \"GuestName\", \"EventName\", \"EventText\", \"TimeStamp\", \"TimeStampEnd\", \"EventMonth\", \"EventMonthEnd\", \"EventDay\", \"EventDayEnd\", \"EventYear\", \"EventYearEnd\", \"IP\") VALUES\n". "(%i, '%s', '%s', '%s', %i, %i, %i, %i, %i, %i, %i, %i, '%s')", array($User1ID,$User1Name,$_POST['EventName'],$_POST['EventText'],$TimeSIn,$TimeSOut,$EventMonth,$EventMonthEnd,$EventDay,$EventDayEnd,$EventYear,$EventYearEnd,$User1IP)); sql_query($query,$SQLStat); $eventid = sql_get_next_id($Settings['sqltable'],"events",$SQLStat); redirect("refresh",$rbasedir.url_maker($exfile['event'],$Settings['file_ext'],"act=event&id=".$eventid,$Settings['qstr'],$Settings['qsep'],$prexqstr['event'],$exqstr['event'],FALSE),"3"); ?>

Your Event Name is too big.
 

Sorry the referering url dose not match our host name.
 

Sorry the referering url dose not match our host name.
 

Invalid code entered
 

Event Start Month is too small.
 

Event Start Month is too big.
 

Event Start Day is too small.
 

Event Start Day is too big.
 

Event Start Year is too small.
 

Event Start Year is too big.
 

Event End Month is too small.
 

Event End Month is too big.
 

Event End Day is too small.
 

Event End Day is too big.
 

Event End Year is too small.
 

Event End Year is too big.
 

Sorry the event start date is not valid.
 

Sorry the event end date is not valid.
 

You Guest Name is too big.
 

Sorry the referering url dose not match our host name.
 

You need to enter a Event Name.
 

You need to enter a Event Text.
 

You need to enter date for event to start in MM/DD/YYYY format.
 

You need to enter date for event to end in MM/DD/YYYY format.
 

You need to enter valid date for event to start in MM/DD/YYYY format.
 

You need to enter valid date for event to end in MM/DD/YYYY format.
 

You need to enter valid date for event to start in MM/DD/YYYY format.
 

You need to enter valid date for event to end in MM/DD/YYYY format.
 

You need to enter valid date for event to start in MM/DD/YYYY format.
 

You need to enter valid date for event to end in MM/DD/YYYY format.
 

You need to enter a Guest Name.
 

This Guest Name is restricted to use.
 

You do not have permission to make a event here.
 

This User Name is restricted to use.
 

Click ">here to goto index page.
 


Event was started.
Click ">here to continue to event.