<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
@if?!Authenticate@ @AddFile?/grinder/failedlogin.cmvp@ @else@
@if?!CheckAuthCode?AUTH_CMDSOCIALS=true@ @AddFile?/grinder/nopriv.cmvp@ @else@
<html>
<head>
<link rel="grinder icon" href="/images/grinder.ico" >
<title>Socials List</title>
<script language=JavaScript>
<!--
function Social(action)
{
var strFeatures="top=0,left=75,resizeable=no,scrollbars=yes,height=500,width=750,alwaysRaised=yes,dependent=yes";
w=window.open("social.cmvp?AUTH=@Authenticate?AUTH@&SOCIAL="+action,
"Social",strFeatures, false);
}
function Clicked(action)
{
document.RESOURCES.action=action;
document.RESOURCES.submit();
}
function Refresh()
{
document.RESOURCES.action='socials.cmvp';
document.RESOURCES.submit();
}
@if?CheckReqParm?FUNCTION=TOVFS@
alert('@SocialData?TOVFS@');
@endif@
@if?CheckReqParm?FUNCTION=TOLFS@
alert('@SocialData?TOLFS@');
@endif@
@if?CheckReqParm?FUNCTION=NOVFS@
alert('@SocialData?NOVFS@');
@endif@
@if?CheckReqParm?FUNCTION=NOLFS@
alert('@SocialData?NOLFS@');
@endif@
function ChangeVFS(me)
{
if(!me.checked)
{
@if?!SocialData?ISLFS@
alert('You must have at least one socials.txt file!');
me.checked=true;
@else@
var txt='R';
@if?SocialData?NEWVFS@
txt='Your vfs socials file appears to be newer! Are you sure you want to r';
@endif@
if(confirm(txt+'emove your socials.txt file from vfs?'))
{
document.RESOURCES.FUNCTION.value='NOVFS';
Refresh();
}
else
me.checked=true;
@endif@
}
else
{
if(confirm('Copy your local socials.txt file to vfs?'))
{
document.RESOURCES.FUNCTION.value='TOVFS';
Refresh();
}
else
me.checked=false;
}
}
function ChangeLFS(me)
{
if(!me.checked)
{
@if?!SocialData?ISVFS@
alert('You must have at least one socials.txt file!');
me.checked=true;
@else@
var txt='R';
@if?SocialData?NEWLFS@
txt='Your local socials file appears to be newer! Are you sure you want to r';
@endif@
if(confirm(txt+'emove your socials.txt file from the local filesystem?!?'))
{
document.RESOURCES.FUNCTION.value='NOLFS';
Refresh();
}
else
me.checked=true;
@endif@
}
else
{
if(confirm('Copy your vfs socials.txt file to local filesystem?'))
{
document.RESOURCES.FUNCTION.value='TOLFS';
Refresh();
}
else
me.checked=false;
}
}
//-->
</script>
</head>
<body BGCOLOR=BLACK>
<TABLE WIDTH=100% BORDER=0>
<TR>
<TD WIDTH=33% ALIGN=LEFT VALIGN=TOP></TD>
<TD WIDTH=33% ALIGN=CENTER VALIGN=TOP><IMG SRC="/grinder/images/grinder.gif" WIDTH=78 HEIGHT=122 ALT="" BORDER="0"></TD>
<TD WIDTH=33% ALIGN=RIGHT VALIGN=TOP>
<TABLE WIDTH=50% BORDER=1>
<TR><TD BGCOLOR=WHITE ALIGN=CENTER><FONT COLOR=BLACK SIZE=-1><B>Menu</B></FONT></TD></TR>
<TR><TD><a href="javascript:Clicked('/grinder/loggedin.cmvp');"><FONT COLOR=WHITE SIZE=-1><B>MUDGrinder Menu</B></FONT></A></TD></TR>
<TR><TD><a href="javascript:Refresh();"><FONT COLOR=WHITE SIZE=-1><B>Refresh Page</B></FONT></A></TD></TR>
</TABLE>
</TD>
</TR>
</TABLE>
<CENTER>
<FORM NAME=RESOURCES TARGET=_top METHOD=POST ACTION="socials.cmvp">
<INPUT TYPE=HIDDEN NAME=FUNCTION VALUE="">
<INPUT TYPE=HIDDEN NAME=AUTH VALUE="@Authenticate?AUTH@">
<TABLE WIDTH=100% BORDER=1>
<TR><TD WIDTH=100% COLSPAN=6 BGCOLOR=WHITE ALIGN=CENTER><FONT COLOR=BLACK><H2>CoffeeMud @MudServerVersion@ Socials Manager</H2></FONT></TD></TR>
<TR>
<TD WIDTH=20%><B><FONT COLOR=YELLOW>Name</FONT></b></TD>
<TD WIDTH=10%><B><FONT COLOR=YELLOW>No Target</FONT></b></TD>
<TD WIDTH=10%><B><FONT COLOR=YELLOW>Target Self</FONT></b></TD>
<TD WIDTH=10%><B><FONT COLOR=YELLOW>Target Other</FONT></B></TD>
<TD WIDTH=10%><B><FONT COLOR=YELLOW>Target All</FONT></B></TD>
<TD WIDTH=40%><B><FONT COLOR=YELLOW>MSP File</FONT></B></TD>
</TR>
@SocialNext?RESET@
@loop@
@SocialNext@
<TR>
<TD><a href="javascript:Social('@SocialID?ENCODED@')"><FONT COLOR=WHITE><B>@SocialID@</B></FONT></a></TD>
<TD ALIGN=CENTER><FONT COLOR=WHITE>@if?SocialData?ISNONE@Y@else@ @endif@</FONT></TD>
<TD ALIGN=CENTER><FONT COLOR=WHITE>@if?SocialData?ISSELF@Y@else@ @endif@</FONT></TD>
<TD ALIGN=CENTER><FONT COLOR=WHITE>@if?SocialData?ISTARGET@Y@else@ @endif@</FONT></TD>
<TD ALIGN=CENTER><FONT COLOR=WHITE>@if?SocialData?ISALL@Y@else@ @endif@</FONT></TD>
<TD><FONT COLOR=WHITE>
@if?SocialData?ISNONE@
@SocialData?SDAT_NONE_M@
@else@
@if?SocialData?ISTARGET@
@SocialData?SDAT_TARGET_M@
@else@
@if?SocialData?ISSELF@
@SocialData?SDAT_SELF_M@
@else@
@if?SocialData?ISALL@
@SocialData?SDAT_ALL_M@
@else@
@endif@
@endif@
@endif@
@endif@
</FONT></TD>
</TR>
@back@
<TR>
<TD COLSPAN=5><a href="javascript:if(document.RESOURCES.NEWSOCIAL.value!='')Social(document.RESOURCES.NEWSOCIAL.value+'&NEWSOCIAL='+document.RESOURCES.NEWSOCIAL.value)"><FONT COLOR=WHITE><B>Create New:</a> <INPUT TYPE=TEXT NAME=NEWSOCIAL SIZE=70></B></FONT></TD>
</TR>
</TABLE>
<P>
<TABLE WIDTH=100% BORDER=0>
<TR>
<TD WIDTH=33% ALIGN=CENTER>
</TD>
<TD ALIGN=CENTER><INPUT TYPE=BUTTON NAME=REFRESH VALUE="Refresh" ONCLICK="Refresh();"></TD>
<TD WIDTH=33% ALIGN=CENTER>
<INPUT TYPE=CHECKBOX NAME=CHECK4VFS @if?SocialData?ISVFS@CHECKED@endif@ ONCLICK="ChangeVFS(this);"><FONT COLOR=WHITE SIZE=-1>VFS</FONT>
<INPUT TYPE=CHECKBOX NAME=CHECK4LFS @if?SocialData?ISLFS@CHECKED@endif@ ONCLICK="ChangeLFS(this);"><FONT COLOR=WHITE SIZE=-1>Local</FONT>
</TD>
</TR>
</TABLE>
<CENTER>
</CENTER>
</FORM>
</BODY>
</HTML>
@endif@
@endif@