Huge update! ingame part should work!
This commit is contained in:
parent
67f5741243
commit
a33288c5f2
43 changed files with 2731 additions and 105 deletions
|
@ -0,0 +1,101 @@
|
|||
{block name=content}
|
||||
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>Create a new ticket</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<form id="changePassword" class="form-vertical" method="post" action="{$ingame_webpath}?page=createticket&id={$target_id}">
|
||||
<table cellspacing="3">
|
||||
<tr>
|
||||
<td valign="middle">Title: </td>
|
||||
<td>
|
||||
<input type="text" size="300" id="Title" name="Title">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="middle">Category: </td>
|
||||
<td>
|
||||
<select name="Category">
|
||||
{foreach from=$category key=k item=v}
|
||||
<option value="{$k}">{$v}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="middle">Description:</td>
|
||||
<td><textarea cols="45" id="Content" name="Content"><br><br><br><br><br></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="function" value="create_ticket">
|
||||
<input type="hidden" name="target_id" value="{$target_id}">
|
||||
|
||||
<!-- Additional Ticket info-->
|
||||
{if $ingame}
|
||||
<input type="hidden" name="ShardId" value="{$ShardId}">
|
||||
<input type="hidden" name="UserPosition" value="{$UserPosition}">
|
||||
<input type="hidden" name="ViewPosition" value="{$ViewPosition}">
|
||||
<input type="hidden" name="ClientVersion" value="{$ClientVersion}">
|
||||
<input type="hidden" name="PatchVersion" value="{$PatchVersion}">
|
||||
<input type="hidden" name="ServerTick" value="{$ServerTick}">
|
||||
<input type="hidden" name="ConnectState" value="{$ConnectState}">
|
||||
<input type="hidden" name="LocalAddress" value="{$LocalAddress}">
|
||||
<input type="hidden" name="Memory" value="{$Memory}">
|
||||
<input type="hidden" name="OS" value="{$OS}">
|
||||
<input type="hidden" name="Processor" value="{$Processor}">
|
||||
<input type="hidden" name="CPUID" value="{$CPUID}">
|
||||
<input type="hidden" name="CpuMask" value="{$CpuMask}">
|
||||
<input type="hidden" name="HT" value="{$HT}">
|
||||
<input type="hidden" name="NeL3D" value="{$NeL3D}">
|
||||
<input type="hidden" name="UserId" value="{$UserId}">
|
||||
|
||||
{/if}
|
||||
<input type="submit" value="Send Ticket"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
||||
|
|
@ -0,0 +1,81 @@
|
|||
{block name=content}
|
||||
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>{$home_title}</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" cellpadding="3" border="2">
|
||||
<tr>
|
||||
<td width="25%" align = "center" ><font color="{$info_color}">Tickets Waiting for Direct Action</font></td>
|
||||
<td width="25%" align = "center" ><font color="{$info_color}">Tickets Todo</font></td>
|
||||
<td width="25%" align = "center" ><font color="{$info_color}">Newest Ticket</font></td>
|
||||
<td width="25%" align = "center" ><font color="{$info_color}">Total amount of Tickets</font></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="25%" align = "center" ><a href="{$ingame_webpath}?page=show_queue&get=create&userid={$user_id}&groupid=1&what=waiting_for_support&how=assigned&who=user"><font color="{$notification_color}">{$nrAssignedWaiting}</font></a></td>
|
||||
<td width="25%" align = "center" ><a href="{$ingame_webpath}?page=show_queue&get=todo"><font color="{$notification_color}">{$nrToDo}</font></a></td>
|
||||
<td width="25%" align = "center" ><a href="{$ingame_webpath}?page=show_ticket&id={$newestTicketId}"><font color="{$notification_color}">{$newestTicketTitle}</font></a></td>
|
||||
<td width="25%" align = "center" ><a href="{$ingame_webpath}?page=show_queue&get=all"><font color="{$notification_color}">{$nrTotalTickets}</font></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>{$home_info}</h3></p>
|
||||
<p> This is the GSOC project of Daan Janssens mentored by Matthew Lagoe.</p>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{/block}
|
||||
|
|
@ -0,0 +1,81 @@
|
|||
{config_load file="ams_lib.conf" section="setup"}
|
||||
|
||||
<PRE>
|
||||
|
||||
{* bold and title are read from the config file *}
|
||||
{if #bold#}<b>{/if}
|
||||
{* capitalize the first letters of each word of the title *}
|
||||
Title: {#title#|capitalize}
|
||||
{if #bold#}</b>{/if}
|
||||
|
||||
The current date and time is {$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}
|
||||
|
||||
The value of global assigned variable $SCRIPT_NAME is {$SCRIPT_NAME}
|
||||
|
||||
Example of accessing server environment variable SERVER_NAME: {$smarty.server.SERVER_NAME}
|
||||
|
||||
The value of {ldelim}$Name{rdelim} is <b>{$Name}</b>
|
||||
|
||||
variable modifier example of {ldelim}$Name|upper{rdelim}
|
||||
|
||||
<b>{$Name|upper}</b>
|
||||
|
||||
|
||||
An example of a section loop:
|
||||
|
||||
{section name=outer
|
||||
loop=$FirstName}
|
||||
{if $smarty.section.outer.index is odd by 2}
|
||||
{$smarty.section.outer.rownum} . {$FirstName[outer]} {$LastName[outer]}
|
||||
{else}
|
||||
{$smarty.section.outer.rownum} * {$FirstName[outer]} {$LastName[outer]}
|
||||
{/if}
|
||||
{sectionelse}
|
||||
none
|
||||
{/section}
|
||||
|
||||
An example of section looped key values:
|
||||
|
||||
{section name=sec1 loop=$contacts}
|
||||
phone: {$contacts[sec1].phone}<br>
|
||||
fax: {$contacts[sec1].fax}<br>
|
||||
cell: {$contacts[sec1].cell}<br>
|
||||
{/section}
|
||||
<p>
|
||||
|
||||
testing strip tags
|
||||
{strip}
|
||||
<table border=0>
|
||||
<tr>
|
||||
<td>
|
||||
<A HREF="{$SCRIPT_NAME}">
|
||||
<font color="red">This is a test </font>
|
||||
</A>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/strip}
|
||||
|
||||
</PRE>
|
||||
|
||||
This is an example of the html_select_date function:
|
||||
|
||||
<form>
|
||||
{html_select_date start_year=1998 end_year=2010}
|
||||
</form>
|
||||
|
||||
This is an example of the html_select_time function:
|
||||
|
||||
<form>
|
||||
{html_select_time use_24_hours=false}
|
||||
</form>
|
||||
|
||||
This is an example of the html_options function:
|
||||
|
||||
<form>
|
||||
<select name=states>
|
||||
{html_options values=$option_values selected=$option_selected output=$option_output}
|
||||
</select>
|
||||
</form>
|
||||
|
||||
{include file="footer.tpl"}
|
|
@ -0,0 +1,34 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Ryzom Account Management System</title>
|
||||
<meta name="description" content="ryzom,ams">
|
||||
<meta name="author" content="Daan Janssens & Matthew Lagoe">
|
||||
</head>
|
||||
|
||||
<body bgcolor="#00000000">
|
||||
|
||||
<table width="100%" cellspacing="1">
|
||||
<tr><td bgcolor="#000000">
|
||||
<table width="100%" cellspacing="2">
|
||||
<tr><td height="3"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td width="3"></td>
|
||||
{block name=menu}{/block}
|
||||
<td width="50%"></td>
|
||||
</tr>
|
||||
<tr><td height="3"></td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
{block name=content}{/block}
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,19 @@
|
|||
{extends file="layout.tpl"}
|
||||
{block name=menu}
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=dashboard"><h5> Dashboard</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=show_user"><h5> Profile</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=settings"><h5> Settings</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td width="10" align="center">|</td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=userlist"><h5> Users</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=show_queue&get=todo"><h5> Queues</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=sgroup_list"><h5> Support Groups</h5></a></td>
|
||||
<td width="3"></td>
|
||||
|
||||
{/block}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
{extends file="layout.tpl"}
|
||||
{block name=menu}
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}"><h5> Dashboard</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=show_user"><h5> Profile</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=settings"><h5> Settings</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td width="10" align="center">|</td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=userlist"><h5> Users</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=show_queue&get=todo"><h5> Queues</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=sgroup_list"><h5> Support Groups</h5></a></td>
|
||||
<td width="3"></td>
|
||||
{/block}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
{extends file="layout.tpl"}
|
||||
{block name=menu}
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=show_user"><h5> Profile</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=settings"><h5> Settings</h5></a></td>
|
||||
<td width="3"></td>
|
||||
<td width="10" align="center">|</td>
|
||||
<td width="3"></td>
|
||||
<td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}?page=createticket"><h5> Create New Ticket</h5></a></td>
|
||||
<td width="3"></td>
|
||||
|
||||
{/block}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
<p> </p>
|
||||
<table cellpadding = "10"><tr><td>
|
||||
<div class="alert alert-info">
|
||||
<h3>{$login_info}</h3>
|
||||
</div>
|
||||
<form method="post" action="{$ingame_webpath}?page=login" class="form-horizontal">
|
||||
<br/>
|
||||
<p>
|
||||
Username:
|
||||
<input type="text" value="" id="Username" name="Username" class="input-large span10" placeholder="Username">
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Password:
|
||||
<input type="text" value="" id="Password" name="Password" class="input-large span10" placeholder="Password">
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Remember me:
|
||||
<label for="remember" class="remember"><div class="checker" id="uniform-remember"><span><input type="checkbox" id="remember" style="opacity: 0;"></span></div>Remember me</label>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<input type="hidden" name="function" value="login"/>
|
||||
<input type="submit" value="Login"/>
|
||||
</p>
|
||||
|
||||
</form>
|
||||
|
||||
{if isset($login_error) and $login_error eq "TRUE"}
|
||||
<p>
|
||||
<strong><font color="red">{$login_error_message}</font></strong>
|
||||
</p>
|
||||
{/if}
|
||||
<p>
|
||||
<font color="green">{$login_register_message} <a href="{$ingame_webpath}?page=register">{$login_register_message_here}</a></font>!
|
||||
</p>
|
||||
</td></tr>
|
||||
</table>
|
|
@ -0,0 +1,115 @@
|
|||
{config_load file="ams_lib.conf" section="setup"}
|
||||
<div class="title">
|
||||
{$title}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
{$welcome_message}
|
||||
</div>
|
||||
|
||||
<form name="Page1"
|
||||
method="post"
|
||||
>
|
||||
<table>
|
||||
<tr>
|
||||
<td width="33%" {if isset($USERNAME_ERROR) && $USERNAME_ERROR eq "TRUE"}class="error"{/if} id="caption-Username">{$username_tag} </td>
|
||||
|
||||
<td width="25%">
|
||||
<input type="text"
|
||||
name="Username"
|
||||
value="{if isset($Username)}{$Username}{/if}"
|
||||
maxlength="12"
|
||||
onfocus=
|
||||
"javascript:showTooltip('{$username_tooltip}', this);" />
|
||||
</td>
|
||||
|
||||
<td id="comment-Username" {if isset($USERNAME_ERROR) && $USERNAME_ERROR eq "TRUE"}class="error"{/if} width="42%">{if isset($Username)}{$Username}{/if}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="33%" {if isset($PASSWORD_ERROR) && $PASSWORD_ERROR eq "TRUE"}class="error"{/if} id="caption-Password">{$password_tag}</td>
|
||||
|
||||
<td width="25%">
|
||||
<input type="password"
|
||||
name="Password"
|
||||
value=""
|
||||
maxlength="20"
|
||||
onkeyup=
|
||||
"testPassword(document.Page1.Password.value, 'comment-Password')"
|
||||
onfocus="javascript:showTooltip('{$password_message}', this);" />
|
||||
</td>
|
||||
|
||||
<td id="comment-Password" {if isset($PASSWORD_ERROR) && $PASSWORD_ERROR eq "TRUE"}class="error"{/if} width="42%">{if isset($PASSWORD_ERROR) && $PASSWORD_ERROR eq "TRUE"}{$Password}{/if}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="33%" {if isset($CPASSWORD_ERROR) && $CPASSWORD_ERROR eq "TRUE"}class="error"{/if} id="caption-ConfirmPass">{$cpassword_tag}</td>
|
||||
|
||||
<td width="25%"><input type="password"
|
||||
name="ConfirmPass"
|
||||
value=""
|
||||
maxlength="20"
|
||||
onfocus="javascript:showTooltip('{$cpassword_message}', this);" />
|
||||
</td>
|
||||
|
||||
<td id="comment-ConfirmPass" {if isset($CPASSWORD_ERROR) && $CPASSWORD_ERROR eq "TRUE"}class="error"{/if} width="42%">{if isset($CPASSWORD_ERROR) && $CPASSWORD_ERROR eq "TRUE"}{$ConfirmPass}{/if}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="33%" {if isset($CPASSWORD_ERROR) && $CPASSWORD_ERROR eq "TRUE"}class="error"{/if} id="caption-Email">{$email_tag}</td>
|
||||
|
||||
<td width="25%">
|
||||
<input type="text"
|
||||
name="Email"
|
||||
value=""
|
||||
maxlength="255"
|
||||
onfocus=
|
||||
"javascript:showTooltip('{$email_message}', this);" />
|
||||
</td>
|
||||
|
||||
<td id="comment-Email" {if isset($EMAIL_ERROR) && $EMAIL_ERROR eq "TRUE"}class="error"{/if} width="42%">{if isset($EMAIL_ERROR) && $EMAIL_ERROR eq "TRUE"}{$Email}{/if}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width=
|
||||
"33%" {if isset($TAC_ERROR) && $TAC_ERROR eq "TRUE"}class="error"{/if}
|
||||
colspan="2"><input type="checkbox"
|
||||
name="TaC"
|
||||
value="1"
|
||||
onfocus="javascript:showTooltip('', this);" /><span id=
|
||||
"caption-TaC">{$tac_tag}</span></td>
|
||||
<td id="comment-TaC" {if isset($TAC_ERROR) && $TAC_ERROR eq "TRUE"}class="error"{/if} width="42%">{$tac_message}</td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="c1">
|
||||
<input type="submit"
|
||||
name="Submit"
|
||||
value="Continue" />
|
||||
</div>
|
||||
<input type="hidden" name="function" value="add_user">
|
||||
</form>
|
||||
|
||||
<div id="signupTooltip"
|
||||
class="c2"
|
||||
inset=""></div>
|
||||
|
||||
<div id="tooltip-Username">
|
||||
{$username_tooltip}
|
||||
</div>
|
||||
|
||||
|
||||
<div id="tooltip-Password">
|
||||
{$password_message}
|
||||
</div>
|
||||
|
||||
<div id="tooltip-ConfirmPass">
|
||||
{$cpassword_message}
|
||||
</div>
|
||||
|
||||
<div id="tooltip-Email">
|
||||
{$email_message}
|
||||
</div>
|
||||
|
||||
<div id="tooltip-TaC"></div>
|
|
@ -0,0 +1,161 @@
|
|||
{block name=content}
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="{$second_menu_bg_color}" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="4">
|
||||
<tr>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_user&id={$target_id}"><h7>Browse User</h7></a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=createticket&user_id={$target_id}"><h7>Send Ticket</h7></a></td>
|
||||
{if isset($isAdmin) and $isAdmin eq 'TRUE' and $target_id neq 1}
|
||||
{if $userPermission eq 1}
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=2"><h7>Make Moderator</h7></a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</h7></a></td>
|
||||
{else if $userPermission eq 2 }
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=1"><h7>Demote to User</h7></a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</h7></a></td>
|
||||
{else if $userPermission eq 3 }
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=1"><h7>Demote to User</h7></a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=2"><h7>Demote to Moderator</h7></a></td>
|
||||
{/if}
|
||||
{/if}
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="3" bgcolor="#000000"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>Change Settings of {$target_username}</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
|
||||
<p><h3>Change Password</h3></p>
|
||||
|
||||
<form id="changePassword" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}">
|
||||
<table cellpadding="1">
|
||||
{if !isset($changesOther) or $changesOther eq "FALSE"}
|
||||
<tr>
|
||||
<td valign="middle">
|
||||
Current Password:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" id="CurrentPass" name="CurrentPass" {if isset($prevCurrentPass)}value="{$prevCurrentPass}"{/if}>
|
||||
{if isset($MATCH_ERROR) and $MATCH_ERROR eq "TRUE"}<font color="red">The password is incorrect</font>{/if}
|
||||
</td>
|
||||
</p>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr><td valign="middle">
|
||||
New Password:
|
||||
</td><td>
|
||||
<input type="text" class="input-xlarge" id="NewPass" name="NewPass" placeholder="Your new password" {if isset($prevNewPass)}value="{$prevNewPass}"{/if}>
|
||||
{if isset($NEWPASSWORD_ERROR) and $NEWPASSWORD_ERROR eq "TRUE"}<font color="red">{$newpass_error_message}</font>{/if}
|
||||
</td></tr>
|
||||
|
||||
<tr><td valign="middle">
|
||||
Confirm New Password:
|
||||
</td><td>
|
||||
<input type="text" class="input-xlarge" id="ConfirmNewPass" name="ConfirmNewPass" placeholder="Re-enter the new password" {if isset($prevConfirmNewPass)}value="{$prevConfirmNewPass}"{/if}>
|
||||
{if isset($CNEWPASSWORD_ERROR) and $CNEWPASSWORD_ERROR eq "TRUE"}<font color="red">{$confirmnewpass_error_message}</font>{/if}
|
||||
</td></tr>
|
||||
</table>
|
||||
{if isset($SUCCESS_PASS) and $SUCCESS_PASS eq "OK"}
|
||||
<p><font color="green">
|
||||
The password has been changed!
|
||||
</font></p>
|
||||
{/if}
|
||||
|
||||
|
||||
<input type="hidden" name="function" value="change_password">
|
||||
<input type="hidden" name="target_id" value="{$target_id}">
|
||||
|
||||
<p><input type="submit" value="Change Password"/></p>
|
||||
|
||||
</form>
|
||||
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>Change Email</h3></p>
|
||||
|
||||
<form id="changeEmail" class="form-vertical" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}">
|
||||
<table>
|
||||
<tr><td valign="middle">
|
||||
New Email:
|
||||
</td><td>
|
||||
<input type="text" class="input-xlarge" id="NewEmail" size="200" name="NewEmail" placeholder="Your new email" {if isset($prevNewEmail)}value="{$prevNewEmail}"{else if isset($current_mail)}value="{$current_mail}"{/if}>
|
||||
{if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE"}<font color="red">{$EMAIL}</font>{/if}
|
||||
</td></tr>
|
||||
</table>
|
||||
{if isset($SUCCESS_MAIL) and $SUCCESS_MAIL eq "OK"}
|
||||
<p>
|
||||
<font color="green">The email has been changed!</green>
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
<input type="hidden" name="function" value="change_mail">
|
||||
<input type="hidden" name="target_id" value="{$target_id}">
|
||||
<p>
|
||||
<input type="submit" value="Change Email"/>
|
||||
</p>
|
||||
</form>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
|
@ -0,0 +1,146 @@
|
|||
{block name=content}
|
||||
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>Support Groups</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
{if isset($isAdmin) && $isAdmin eq 'TRUE'}
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>Add a Support group</h3></p>
|
||||
|
||||
<form id="addSGroup" class="form-vertical" method="post" action="{$ingame_webpath}">
|
||||
<table cellpadding="1">
|
||||
<tr>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td valign="middle">Group name: </td>
|
||||
<td><input type="text" maxlength="20" size="180" id="Name" name="Name"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="middle">Group Tag: </td>
|
||||
<td><input type="text" maxlength="4" size="180" id="Tag" name="Tag"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="middle">Group EmailAddress: </td>
|
||||
<td><input type="text" id="GroupEmail" size="180" name="GroupEmail"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width=10></td>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td valign="middle">IMAP MailServer IP: </td>
|
||||
<td><input type="text" id="IMAP_MailServer" size="180" name="IMAP_MailServer"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="middle">IMAP Username: </td>
|
||||
<td><input type="text" id="IMAP_Username" size="180" name="IMAP_Username"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="middle">IMAP Password: </td>
|
||||
<td><input type="text" id="IMAP_Password" size="180" name="IMAP_Password"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="function" value="add_sgroup">
|
||||
<p><input type="submit" value="Add Group" /></p>
|
||||
|
||||
|
||||
{if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "SUCCESS"}
|
||||
<p>
|
||||
<font color="green">{$group_success}</font>
|
||||
</p>
|
||||
{else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "NAME_TAKEN"}
|
||||
<p>
|
||||
<font color="red">{$group_name_taken}</font>
|
||||
</p>
|
||||
{else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "TAG_TAKEN"}
|
||||
<p>
|
||||
<font color="red">{$group_tag_taken}</font>
|
||||
</p>
|
||||
{else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "SIZE_ERROR"}
|
||||
<p>
|
||||
<font color="red">{$group_size_error}</font>
|
||||
</p>
|
||||
{/if}
|
||||
</form>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
{/if}
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellspacing="10">
|
||||
<tr><td>
|
||||
<p><h3>All groups</h3></p>
|
||||
<table cellpadding="4">
|
||||
<tr bgcolor="{$table_header_tr_color}">
|
||||
<td>ID</td>
|
||||
<td>Name</td>
|
||||
<td>Tag</td>
|
||||
<td>Email</td>
|
||||
{if isset($isAdmin) && $isAdmin eq 'TRUE'}<td>Action</td>{/if}
|
||||
</tr>
|
||||
|
||||
{foreach from=$grouplist item=group}
|
||||
<tr>
|
||||
<td>{$group.sGroupId}</td>
|
||||
<td><a href ="{$ingame_webpath}?page=show_sgroup&id={$group.sGroupId}">{$group.name}</a></td>
|
||||
<td class="center"><span class="label label-important" >{$group.tag}</span></td>
|
||||
<td class="center">{$group.groupemail}</td>
|
||||
{if isset($isAdmin) && $isAdmin eq 'TRUE'}<td class="center"><a href="{$ingame_webpath}?page=sgroup_list&delete={$group.sGroupId}"><font color="red">Delete</font></a></td>{/if}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
|
@ -0,0 +1,222 @@
|
|||
{block name=content}
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="{$second_menu_bg_color}" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="4">
|
||||
<tr>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_queue&get=todo">Todo tickets</a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_queue&get=all">All tickets</a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_queue&get=all_open">All open tickets</a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_queue&get=archive">Ticket Archive</a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_queue&get=not_assigned">Not Assigned Tickets</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="3" bgcolor="#000000"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>Ticket Queue: {$queue_view}</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table width="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>Tickets</h3></p>
|
||||
<p>
|
||||
<form id="create_queue" method="post" action="{$ingame_webpath}?page=show_queue&get=create">
|
||||
<table width="100%" bgcolor="#00000060" border="1">
|
||||
<tr>
|
||||
<td width="5"></td>
|
||||
<td valign="middle"> Show </td>
|
||||
<td>
|
||||
<select size ="100" name="what">
|
||||
<option value="all" {if $prev_created_what eq "all"}selected="selected"{/if}>all</option>
|
||||
<option value="waiting_for_support" {if $prev_created_what eq "waiting_for_support"}selected="selected"{/if}>waiting for support</option>
|
||||
<option value="waiting_for_users" {if $prev_created_what eq "waiting_for_users"}selected="selected"{/if}>waiting for user</option>
|
||||
<option value="closed" {if $prev_created_what eq "closed"}selected="selected"{/if}>closed</option>
|
||||
</select>
|
||||
</td>
|
||||
<td valign="middle"> tickets </td>
|
||||
<td>
|
||||
<select style="width: 110px;" name="how">
|
||||
<option value="assigned" {if $prev_created_how eq "assigned"}selected="selected"{/if}>assigned</option>
|
||||
<option value="not_assigned" {if $prev_created_how eq "not_assigned"}selected="selected"{/if}>not assigned</option>
|
||||
</select>
|
||||
</td>
|
||||
<td valign="middle"> to </td>
|
||||
<td>
|
||||
<select style="width: 140px;" name="who" onchange="aimedforwhochanged(this.value);">
|
||||
<option value="user" {if $prev_created_who eq "user"}selected="selected"{/if}>user</option>
|
||||
<option value="support_group" {if $prev_created_who eq "support_group"}selected="selected"{/if}>Group</option>
|
||||
</select>
|
||||
</td>
|
||||
<td valign="middle">:</td>
|
||||
<td>
|
||||
<select style="width: 140px;" name="userid">
|
||||
<option>select user</option>
|
||||
{foreach from=$teamlist item=member}
|
||||
<option value="{$member.tUserId}" {if $prev_created_userid eq $member.tUserId}selected="selected"{/if}>{$member.name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td valign="middle"> or </td>
|
||||
<td>
|
||||
<select style="width: 140px;" name="groupid">
|
||||
<option>select group</option>
|
||||
{foreach from=$grouplist item=group}
|
||||
<option value="{$group.sGroupId}" {if $prev_created_groupid eq $group.sGroupId}selected="selected"{/if}>{$group.name}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td valign="middle">
|
||||
<input type="hidden" name="action" value="create_queue">
|
||||
<input type="submit" value="View"/>
|
||||
</td>
|
||||
<td width="30%"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</p>
|
||||
<p>
|
||||
<table width="100%" cellpadding="4" cellspacing="2">
|
||||
<tr bgcolor="{$table_header_tr_color}">
|
||||
<td>ID</td>
|
||||
<td>Title</td>
|
||||
<td>Assigned</td>
|
||||
<td>Timestamp</td>
|
||||
<td>Category</td>
|
||||
<td>Status</td>
|
||||
<td>SupportGroup</td>
|
||||
<td>Actions</td>
|
||||
</tr>
|
||||
{foreach from=$tickets item=ticket}
|
||||
<tr>
|
||||
<td>{$ticket.tId}</td>
|
||||
<td><a href ="{$ingame_webpath}?page=show_ticket&id={$ticket.tId}">{$ticket.title}</a></td>
|
||||
<td>{if $ticket.assignedText neq ""} <a href="{$ingame_webpath}?page=show_user&id={$ticket.assigned}">{$ticket.assignedText}</a>{else} {$not_assigned} {/if}</td>
|
||||
<td class="center"><span title="{$ticket.timestamp_elapsed}" data-rel="tooltip" data-placement="right">{$ticket.timestamp}</span></td>
|
||||
<td class="center">{$ticket.category}</td>
|
||||
<td class="center">{if $ticket.status eq 0}<font color="green">{else if $ticket.status eq 1}<font color="orange">{else if $ticket.status eq 2}<font color="red">{/if}{$ticket.statusText}</font></td>
|
||||
<td class="center">
|
||||
|
||||
{if $ticket.forwardedGroupName eq "0"}
|
||||
{$public_sgroup}
|
||||
{else}
|
||||
<a href="{$ingame_webpath}?page=show_sgroup&id={$ticket.forwardedGroupId}">{$ticket.forwardedGroupName}</a>
|
||||
{/if}
|
||||
|
||||
</td>
|
||||
<td>
|
||||
{if $ticket.assigned eq 0}
|
||||
<form id="assign_ticket" class="form-vertical" method="post" action="{$ingame_webpath}?page=show_queue&get=todo" style="margin:0px 0px 0px;">
|
||||
<input type="hidden" name="ticket_id" value="{$ticket.tId}">
|
||||
<input type="hidden" name="action" value="assignTicket">
|
||||
<input type="submit" value="Assign Ticket"/>
|
||||
</form>
|
||||
{else if $ticket.assigned eq $user_id}
|
||||
<form id="assign_ticket" class="form-vertical" method="post" action="{$ingame_webpath}?page=show_queue&get=todo" style="margin:0px 0px 0px;">
|
||||
<input type="hidden" name="ticket_id" value="{$ticket.tId}">
|
||||
<input type="hidden" name="action" value="unAssignTicket">
|
||||
<input type="submit" value="Remove Assign"/>
|
||||
</form>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</p>
|
||||
</td></tr>
|
||||
<tr><td align = "center">
|
||||
<table>
|
||||
<tr>
|
||||
<td><a href="{$pagination_base_link}&pagenum=1">«</a></td>
|
||||
{foreach from=$links item=link}
|
||||
<td {if $link == $currentPage}bgcolor="{$pagination_current_page_bg}"{/if}><a href="{$pagination_base_link}&pagenum={$link}">{$link}</a></td>
|
||||
{/foreach}
|
||||
<td><a href="{$pagination_base_link}&pagenum={$lastPage}">»</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
{if isset($ACTION_RESULT)}
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="1">
|
||||
<tr><td height="4"></td></tr>
|
||||
<tr>
|
||||
<td valign="middle">
|
||||
{if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_ASSIGNED"}
|
||||
<p>
|
||||
<font color="green">{$success_assigned}</font>
|
||||
</p>
|
||||
{else if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_UNASSIGNED"}
|
||||
<p>
|
||||
<font color="green">{$success_unassigned}</font>
|
||||
</p>
|
||||
{else if isset($ACTION_RESULT) and $ACTION_RESULT eq "TICKET_NOT_EXISTING"}
|
||||
<p>
|
||||
<font color="red">{$ticket_not_existing}</font>
|
||||
</p>
|
||||
{else if isset($ACTION_RESULT) and $ACTION_RESULT eq "ALREADY_ASSIGNED"}
|
||||
<p>
|
||||
<font color="red">{$ticket_already_assigned}</font>
|
||||
</p>
|
||||
{else if isset($ACTION_RESULT) and $ACTION_RESULT eq "NOT_ASSIGNED"}
|
||||
<p>
|
||||
<font color="red">{$ticket_not_assigned}</font>
|
||||
</p>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="4"></td></tr>
|
||||
<table>
|
||||
</td></tr>
|
||||
{/if}
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
{block name=content}
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="{$second_menu_bg_color}" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="4">
|
||||
<tr>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket&id={$ticket_id}">Show Ticket</a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket_log&id={$ticket_id}">Show Ticket Log</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="3" bgcolor="#000000"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>Reply ID#{$reply_id} of Ticket <a href="{$ingame_webpath}?page=show_ticket&id={$ticket_id}">#{$ticket_id}</a></h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>Reply:</h3></p>
|
||||
<p>
|
||||
<table cellspacing="5">
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<font color="{$info_color}"> {$reply_timestamp}</font>
|
||||
{if $author_permission eq '1'}
|
||||
<span class="label label-success"><strong><i class="icon-user icon-white"></i>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$author}"><font color="white"> {$authorName}</font>{else} {$authorName} {/if}</a></strong></span>
|
||||
{else if $reply.permission gt '1'}
|
||||
<span class="label label-warning"><strong><i class="icon-star icon-white"></i>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$author}"><font color="{$team_color}"> {$authorName}</font>{else} {$authorName} {/if}</a></strong></span>
|
||||
{/if}</p>
|
||||
<p><pre>{$reply_content}</pre></p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</p>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
||||
|
|
@ -0,0 +1,171 @@
|
|||
{block name=content}
|
||||
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>Support Group: {$groupsname}</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>Add user to the list</h3></p>
|
||||
{if isset($isAdmin) && $isAdmin eq 'TRUE'}
|
||||
<form id="addSGroup" class="form-vertical" method="post" action="{$ingame_webpath}?page=show_sgroup&id={$target_id}">
|
||||
<table>
|
||||
<tr>
|
||||
<td valign="middle">Username: </td>
|
||||
<td><input type="text" maxlength="15" id="Name" name="Name"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="function" value="add_user_to_sgroup">
|
||||
<input type="hidden" name="target_id" value="{$target_id}">
|
||||
|
||||
<p>
|
||||
<input type="submit" value="Add user" />
|
||||
</p>
|
||||
|
||||
{if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "SUCCESS"}
|
||||
<p>
|
||||
<font color="green">{$add_to_group_success}</font>
|
||||
</p>
|
||||
{else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "ALREADY_ADDED"}
|
||||
<p>
|
||||
<font color="red">{$user_already_added}</font>
|
||||
</p>
|
||||
{else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "GROUP_NOT_EXISTING"}
|
||||
<p>
|
||||
<font color="red">{$group_not_existing}</font>
|
||||
</p>
|
||||
{else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "USER_NOT_EXISTING"}
|
||||
<p>
|
||||
<font color="red">{$user_not_existing}</font>
|
||||
</p>
|
||||
{else if isset($RESULT_OF_ADDING) and $RESULT_OF_ADDING eq "NOT_MOD_OR_ADMIN"}
|
||||
<p>
|
||||
<font color="red">{$not_mod_or_admin}</font>
|
||||
</p>
|
||||
{/if}
|
||||
</form>
|
||||
{/if}
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>All members</h3></p>
|
||||
<table cellpadding="4">
|
||||
<tr bgcolor="{$table_header_tr_color}">
|
||||
<td>ID</td>
|
||||
<td>Name</td>
|
||||
{if isset($isAdmin) && $isAdmin eq 'TRUE'}<td>Action</td>{/if}
|
||||
|
||||
</tr>
|
||||
{foreach from=$userlist item=user}
|
||||
<tr>
|
||||
<td>{$user.tUserId}</td>
|
||||
<td><a href ="{$ingame_webpath}?page=show_user&id={$user.tUserId}">{$user.name}</a></td>
|
||||
{if isset($isAdmin) && $isAdmin eq 'TRUE'}<td class="center"><a href="{$ingame_webpath}?page=show_sgroup&id={$target_id}&delete={$user.tUserId}"><font color="red">Delete</font></a></td>{/if}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>Mail settings</h3></p>
|
||||
<form id="modifyMailSGroup" class="form-vertical" method="post" action="{$ingame_webpath}?page=show_sgroup&id={$target_id}">
|
||||
<table>
|
||||
|
||||
<tr>
|
||||
<td valign="middle">Group Email: </td>
|
||||
<td><input type="text" id="GroupEmail" name="GroupEmail" size="220" value="{$groupemail}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="middle">IMAP Mail Server: </td>
|
||||
<td><input type="text" id="IMAP_MailServer" name="IMAP_MailServer" size="220" value="{$imap_mailserver}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="middle">IMAP Username: </td>
|
||||
<td><input type="text" id="IMAP_Username" name="IMAP_Username" size="220" value="{$imap_username}"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td valign="middle">IMAP Password: </td>
|
||||
<td><input type="text" id="IMAP_Password" size="220" name="IMAP_Password"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
<input type="hidden" name="function" value="modify_email_of_sgroup">
|
||||
<input type="hidden" name="target_id" value="{$target_id}">
|
||||
|
||||
<p>
|
||||
<input type="submit" value="Update"/>
|
||||
</p>
|
||||
|
||||
{if isset($RESULT_OF_MODIFYING) and $RESULT_OF_MODIFYING eq "SUCCESS"}
|
||||
<p>
|
||||
<font color="green">{$modify_mail_of_group_success}</font>
|
||||
</p>
|
||||
{else if isset($RESULT_OF_MODIFYING) and $RESULT_OF_MODIFYING eq "EMAIL_NOT_VALID"}
|
||||
<p>
|
||||
<font color="red">{$email_not_valid}</font>
|
||||
</p>
|
||||
{else if isset($RESULT_OF_MODIFYING) and $RESULT_OF_MODIFYING eq "NO_PASSWORD"}
|
||||
<p>
|
||||
<font color="yellow">{$no_password_given}</font>
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
</form>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
|
@ -0,0 +1,285 @@
|
|||
{block name=content}
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="{$second_menu_bg_color}" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="4">
|
||||
<tr>
|
||||
{if isset($isMod) and $isMod eq "TRUE"}<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket_log&id={$ticket_tId}">Show Ticket Log</a></td>{/if}
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=createticket&user_id={$ticket_author}">Send Other Ticket</a></td>
|
||||
{if $hasInfo}<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket_info&id={$ticket_tId}">Show Additional Info</a></td>{/if}
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="3" bgcolor="#000000"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>[{$t_title}-#{$ticket_tId}] {$ticket_title}</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10" width="100%">
|
||||
<tr><td>
|
||||
<table cellpadding="5" width="100%">
|
||||
<tr><td>
|
||||
<table cellpadding="1" bgcolor="{$normal_tbl_color}" border="2" width="100%">
|
||||
<tr><td>
|
||||
<table cellpadding="3" width="100%">
|
||||
<tr>
|
||||
<td><font color="{$info_color}">Submitted: </font>{$ticket_timestamp}</td>
|
||||
<td><font color="{$info_color}">Last Updated: </font>{$ticket_lastupdate}</td>
|
||||
<td><font color="{$info_color}">Status: </font>{if $ticket_status neq 3}<font color="green">Open</font>{/if} {if $ticket_status eq 3} <font color="red">{$ticket_statustext}</font>{else}{$ticket_statustext} {/if}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><font color="{$info_color}">Category: </font>{$ticket_category}</td>
|
||||
<td><font color="{$info_color}">Priority </font>{$ticket_prioritytext}</td>
|
||||
<td><font color="{$info_color}">Support Group: </font>
|
||||
<span class="label label-info">
|
||||
{if $ticket_forwardedGroupName eq "0"}
|
||||
{$public_sgroup}
|
||||
{else}
|
||||
<a href="{$ingame_webpath}?page=show_sgroup&id={$ticket_forwardedGroupId}"><font color="white">{$ticket_forwardedGroupName}</font></a>
|
||||
{/if}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><font color="{$info_color}">Assigned To: </font>{if $ticket_assignedTo neq ""} <a href="{$ingame_webpath}?page=show_user&id={$ticket_assignedTo}">{$ticket_assignedToText}</a>{else} {$not_assigned} {/if}</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table cellpadding="1" bgcolor="{$normal_tbl_color}" border="2" width="100%">
|
||||
{foreach from=$ticket_replies item=reply}
|
||||
<tr>
|
||||
<td {if $reply.permission gt '1'} {if $reply.hidden eq 0} bgcolor="{$team_reply_tbl_color}"{else if $reply.hidden eq 1} bgcolor="{$hidden_reply_tbl_color}"{/if}{/if}>
|
||||
<table cellpadding="3">
|
||||
<tr><td>
|
||||
<p>
|
||||
<font color="{$info_color}"> {$reply.timestamp}</font>
|
||||
{if $reply.permission eq '1'}
|
||||
<span class="label label-success"><strong><i class="icon-user icon-white"></i>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$reply.authorExtern}"><font color="white"> {$reply.author}</font>{else} {$reply.author} {/if}</a></strong></span>
|
||||
{else if $reply.permission gt '1'}
|
||||
<span class="label label-warning"><strong><i class="icon-star icon-white"></i>{if isset($isMod) and $isMod eq "TRUE"} <a href="index.php?page=show_user&id={$reply.authorExtern}"><font color="{$team_color}"> {$reply.author}</font>{else} {$reply.author} {/if}</a></strong></span>
|
||||
{/if}
|
||||
</p>
|
||||
<p><pre>{$reply.replyContent}</pre></p>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
{if $ticket_status eq 3}
|
||||
<tr>
|
||||
<td bgcolor="{$closed_tbl_color}">
|
||||
<table cellpadding="4">
|
||||
<tr><td>
|
||||
<p><pre><h4>[Ticket is closed]</h4></pre></p>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
|
||||
<form id="reply" class="form-vertical" method="post" action="{$ingame_webpath}">
|
||||
<table cellpadding="4">
|
||||
<tr><td height="5"></td></tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p><h4>{$t_reply}:</h4></p>
|
||||
</td>
|
||||
</tr>
|
||||
{if $ticket_status neq 3}
|
||||
<tr>
|
||||
<td><textarea cols="50" id="Content" name="Content"><br><br><br></textarea></td>
|
||||
</tr>
|
||||
{if isset($isMod) and $isMod eq "TRUE"}
|
||||
<tr>
|
||||
<td><input type="checkbox" name="hidden">Hide reply for user.</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/if}
|
||||
<tr>
|
||||
<td>
|
||||
{if isset($isMod) and $isMod eq "TRUE"}
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
Change status to
|
||||
<select name="ChangeStatus">
|
||||
{foreach from=$statusList key=k item=v}
|
||||
<option value="{$k}">{$v}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
<td>
|
||||
Change priority to
|
||||
<select name="ChangePriority">
|
||||
{foreach from=$ticket_priorities key=k item=v}
|
||||
<option value="{$k}" {if $k eq $ticket_priority}selected="selected"{/if}>{$v}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="hidden" name="function" value="reply_on_ticket">
|
||||
<input type="hidden" name="ticket_id" value="{$ticket_id}">
|
||||
<input type="submit" value="{$t_send}"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
|
||||
{if isset($isMod) and $isMod eq "TRUE"}
|
||||
<tr><td>
|
||||
<table cellpadding="1" bgcolor="{$normal_tbl_color}" border="2" width="100%">
|
||||
<tr><td>
|
||||
<table cellpadding="3" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
Ticket Assigning:
|
||||
{if $ticket_assignedTo eq 0}
|
||||
<form id="assign_ticket" method="post" action="{$ingame_webpath}?page=show_ticket&id={$ticket_tId}">
|
||||
<input type="hidden" name="ticket_id" value="{$ticket_tId}">
|
||||
<input type="hidden" name="action" value="assignTicket">
|
||||
<input type="submit" value="Assign Ticket"/>
|
||||
</form>
|
||||
{else if $ticket_assignedTo eq $user_id}
|
||||
<form id="assign_ticket" method="post" action="{$ingame_webpath}?page=show_ticket&id={$ticket_tId}">
|
||||
<input type="hidden" name="ticket_id" value="{$ticket_tId}">
|
||||
<input type="hidden" name="action" value="unAssignTicket">
|
||||
<input type="submit"value="Remove Assign"/>
|
||||
</form>
|
||||
{/if}
|
||||
</p>
|
||||
{if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_ASSIGNED"}
|
||||
<p>
|
||||
<font color="green">{$success_assigned}</font>
|
||||
</p>
|
||||
{else if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_UNASSIGNED"}
|
||||
<p>
|
||||
<font color="green">{$success_unassigned}</font>
|
||||
</p>
|
||||
{else if isset($ACTION_RESULT) and $ACTION_RESULT eq "TICKET_NOT_EXISTING"}
|
||||
<p>
|
||||
<font color="red">{$ticket_not_existing}</font>
|
||||
</p>
|
||||
{else if isset($ACTION_RESULT) and $ACTION_RESULT eq "ALREADY_ASSIGNED"}
|
||||
<p>
|
||||
<font color="red">{$ticket_already_assigned}</font>
|
||||
</p>
|
||||
{else if isset($ACTION_RESULT) and $ACTION_RESULT eq "NOT_ASSIGNED"}
|
||||
<p>
|
||||
<font color="red">{$ticket_not_assigned}</font>
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
Forward to Group:
|
||||
<form id="forward" method="post" action="{$ingame_webpath}?page=show_ticket&id={$ticket_tId}" >
|
||||
<select name="group">
|
||||
<option></option>
|
||||
{foreach from=$sGroups key=k item=v}
|
||||
<option value="{$k}">{$v}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
|
||||
<input type="hidden" name="ticket_id" value="{$ticket_tId}">
|
||||
<input type="hidden" name="action" value="forward">
|
||||
<input type="submit"value="Forward"/>
|
||||
</form>
|
||||
</p>
|
||||
{if isset($ACTION_RESULT) and $ACTION_RESULT eq "INVALID_SGROUP"}
|
||||
<p>
|
||||
<font color="red">{$invalid_sgroup}</font>
|
||||
</p>
|
||||
{else if isset($ACTION_RESULT) and $ACTION_RESULT eq "TICKET_NOT_EXISTING"}
|
||||
<p>
|
||||
<font color="red">{$ticket_not_existing}</font>
|
||||
</p>
|
||||
{else if isset($ACTION_RESULT) and $ACTION_RESULT eq "SUCCESS_FORWARDED"}
|
||||
<p>
|
||||
<font color="green">{$success_forwarded}</font>
|
||||
</p>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
{/if}
|
||||
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
|
@ -0,0 +1,168 @@
|
|||
{block name=content}
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="{$second_menu_bg_color}" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="4">
|
||||
<tr>
|
||||
{if isset($isMod) and $isMod eq "TRUE"}<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket_log&id={$ticket_id}">Show Ticket Log</a></td>{/if}
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=createticket&user_id={$ticket_author}">Send Other Ticket</a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket&id={$ticket_id}">Show Ticket</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="3" bgcolor="#000000"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>Additional Info For Ticket <a href="{$ingame_webpath}?page=show_ticket&id={$ticket_id}">[#{$ticket_id}]</a></h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10" width="100%">
|
||||
<tr><td>
|
||||
<table cellpadding="5" width="100%">
|
||||
<tr><td>
|
||||
<table cellpadding="1" bgcolor="{$normal_tbl_color}" border="2" width="100%">
|
||||
<tr><td>
|
||||
<p><h3>Ingame related</h3></p>
|
||||
<table cellpadding="3" width="100%">
|
||||
<tr><td></td><td></td></tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/shard.png"/></td>
|
||||
<td><font color="{$info_color}">Shard ID: </font>{$shard_id}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/user.png"/></td>
|
||||
<td><font color="{$info_color}">User_Id: </font>{$user_id}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/position.png"/></td>
|
||||
<td><font color="{$info_color}">User Position: </font>{$user_position}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/view.png"/></td>
|
||||
<td><font color="{$info_color}">View Position: </font>{$view_position}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/client.png"/></td>
|
||||
<td><font color="{$info_color}">Client_Version: </font>{$client_version}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/patch.png"/></td>
|
||||
<td><font color="{$info_color}">Patch_Version: </font>{$patch_version}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/server.png"/></td>
|
||||
<td><font color="{$info_color}"> Server_Tick: </font>{$server_tick}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table cellpadding="1" bgcolor="{$normal_tbl_color}" border="2" width="100%">
|
||||
<tr><td>
|
||||
<p><h3>Hardware & Software related</h3></p>
|
||||
<table cellpadding="3" width="100%">
|
||||
<tr><td></td><td></td></tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/memory.png"/></td>
|
||||
<td><font color="{$info_color}">Memory: </font>{$memory}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/processor.png"/></td>
|
||||
<td><font color="{$info_color}">Processor: </font>{$processor}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/cpuid.png"/></td>
|
||||
<td><font color="{$info_color}">Cpu_Id: </font>{$cpu_id}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/mask.png"/></td>
|
||||
<td><font color="{$info_color}">Cpu_Mask: </font>{$cpu_mask}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/ht.png"/></td>
|
||||
<td><font color="{$info_color}">HT: </font>{$ht}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/os.png"/></td>
|
||||
<td><font color="{$info_color}">OS: </font>{$os}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/nel.png"/></td>
|
||||
<td><font color="{$info_color}">NeL3D: </font>{$nel3d}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table cellpadding="1" bgcolor="{$normal_tbl_color}" border="2" width="100%">
|
||||
<tr><td>
|
||||
<p><h3>Network related</h3></p>
|
||||
<table cellpadding="3" width="100%">
|
||||
<tr><td></td><td></td></tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/connect.png"/></td>
|
||||
<td><font color="{$info_color}">Connect_State: </font>{$connect_state}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/local.png"/></td>
|
||||
<td><font color="{$info_color}">Local_Address: </font>{$local_address}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
{block name=content}
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="{$second_menu_bg_color}" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="4">
|
||||
<tr>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket&id={$ticket_id}">Show Ticket</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="3" bgcolor="#000000"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>Log of Ticket #{$ticket_id}</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>Title: <a href="{$ingame_webpath}?page=show_ticket&id={$ticket_id}">{$ticket_title}</a></h3></p>
|
||||
<p>
|
||||
<table cellspacing="5">
|
||||
<tr bgcolor="{$table_header_tr_color}">
|
||||
<td>ID</td>
|
||||
<td>Timestamp</td>
|
||||
<td>Query</td>
|
||||
</tr>
|
||||
|
||||
{foreach from=$ticket_logs item=log}
|
||||
<tr>
|
||||
<td>{$log.tLogId}</td>
|
||||
<td><span title="{$log.timestamp_elapsed}" data-rel="tooltip" data-placement="right">{$log.timestamp}</span></td>
|
||||
<td>{$log.query}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
</p>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
|
@ -0,0 +1,163 @@
|
|||
{block name=content}
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="{$second_menu_bg_color}" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="4">
|
||||
<tr>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=settings&id={$target_id}"><h7>Edit User</h7></a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=createticket&user_id={$target_id}"><h7>Send Ticket</h7></a></td>
|
||||
{if isset($isAdmin) and $isAdmin eq 'TRUE' and $target_id neq 1}
|
||||
{if $userPermission eq 1}
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=2"><h7>Make Moderator</h7></a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</h7></a></td>
|
||||
{else if $userPermission eq 2 }
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=1"><h7>Demote to User</h7></a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</h7></a></td>
|
||||
{else if $userPermission eq 3 }
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=1"><h7>Demote to User</h7></a></td>
|
||||
<td valign="middle" nowrap><a href="{$ingame_webpath}?page=change_permission&user_id={$target_id}&value=2"><h7>Demote to Moderator</h7></a></td>
|
||||
{/if}
|
||||
{/if}
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="3" bgcolor="#000000"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>Profile of {$target_name}</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
|
||||
<p><h2>Info</h2></p>
|
||||
<table cellpadding="4">
|
||||
|
||||
<tr>
|
||||
<td><strong>Email:</strong></td>
|
||||
<td>{$mail}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><strong>Role:</strong></td>
|
||||
<td>
|
||||
{if $userPermission eq 1}<font color="{$user_color}">User</font>{/if}
|
||||
{if $userPermission eq 2}<font color="{$mod_color}">Moderator</font>{/if}
|
||||
{if $userPermission eq 3}<font color="{$admin_color}">Admin</font>{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{if $firstName neq ""}
|
||||
<tr>
|
||||
<td><strong>Firstname:</strong></td>
|
||||
<td>{$firstName}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $lastName neq ""}
|
||||
<tr>
|
||||
<td><strong>LastName:</strong></td>
|
||||
<td>{$lastName}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $country neq ""}
|
||||
<tr>
|
||||
<td><strong>Country:</strong></td>
|
||||
<td>{$country}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $gender neq 0}
|
||||
<tr>
|
||||
<td><strong>Gender:</strong></td>
|
||||
{if $gender eq 1}
|
||||
<td><strong>♂</strong></td>
|
||||
{else if $gender eq 2}
|
||||
<td><strong>♀</strong></td>
|
||||
{/if}
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>Tickets</h3></p>
|
||||
<table cellpadding="3">
|
||||
|
||||
<tr bgcolor="{$table_header_tr_color}">
|
||||
<td>ID</td>
|
||||
<td>Title</td>
|
||||
<td>Timestamp</td>
|
||||
<td>Category</td>
|
||||
<td>Status</td>
|
||||
</tr>
|
||||
|
||||
{foreach from=$ticketlist item=ticket}
|
||||
<tr>
|
||||
<td>{$ticket.tId}</td>
|
||||
<td><a href ="{$ingame_webpath}?page=show_ticket&id={$ticket.tId}">{$ticket.title}</a></td>
|
||||
<td class="center">{$ticket.timestamp}</td>
|
||||
<td class="center">{$ticket.category}</td>
|
||||
|
||||
<td class="center"><span class="label {if $ticket.status eq 0}label-success{else if $ticket.status eq 1}label-warning{else if $ticket.status eq 2}label-important{/if}">{if $ticket.status eq 0} <i class="icon-exclamation-sign icon-white"></i>{/if} {$ticket.statusText}</span></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
{block name=content}
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$title_bg_color}" cellspacing="2">
|
||||
<tr><td height="7"></td><td></td></tr>
|
||||
<tr>
|
||||
<td width="3%"></td>
|
||||
<td width="100%" height="12" valign="middle"><h1>Members</h1></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="5"></td><td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td>
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
<tr bgcolor="#000000" valign="middle">
|
||||
<td>
|
||||
<table>
|
||||
<tr><td height="8"></td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td height="2"></td></tr>
|
||||
<tr><td height="1" bgcolor="#000000"></td></tr>
|
||||
<tr><td height="10"></td></tr>
|
||||
<tr valign="middle">
|
||||
<td>
|
||||
<table width="100%" height="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<table width="100%" bgcolor="{$main_tbl_color}" border="2">
|
||||
<tr><td>
|
||||
<table width="100%" cellpadding="10">
|
||||
<tr><td>
|
||||
<p><h3>All Acounts</h3></p>
|
||||
<table width="100%" cellpadding="4" cellspacing="2">
|
||||
<tr bgcolor="{$table_header_tr_color}">
|
||||
<td>Id</td>
|
||||
<td>Username</td>
|
||||
<td>Email</td>
|
||||
<td>Permission</td>
|
||||
<td>Action</td>
|
||||
</tr>
|
||||
|
||||
{foreach from=$userlist item=element}
|
||||
<tr>
|
||||
<td>{$element.id}</td>
|
||||
<td class="center"><a href="{$ingame_webpath}?page=show_user&id={$element.id}">{$element.username}</a></td>
|
||||
<td class="center">{$element.email}</td>
|
||||
{if $element.permission eq 1}<td class="center"><font color="{$user_color}">User</font></td>{/if}
|
||||
{if $element.permission eq 2}<td class="center"><font color="{$mod_color}">Moderator</font></td>{/if}
|
||||
{if $element.permission eq 3}<td class="center"><font color="{$admin_color}">Admin</font></td>{/if}
|
||||
<td class="center">
|
||||
<a href="{$ingame_webpath}?page=show_user&id={$element.id}">Show User</a>
|
||||
<a href="{$ingame_webpath}?page=settings&id={$element.id}">Edit User</a>
|
||||
{if isset($isAdmin) and $isAdmin eq 'TRUE' and $element.id neq 1}
|
||||
{if $element.permission eq 1}
|
||||
<a href="{$ingame_webpath}?page=change_permission&user_id={$element.id}&value=2">Make Moderator</a>
|
||||
<a href="{$ingame_webpath}?page=change_permission&user_id={$element.id}&value=3">Make Admin</a>
|
||||
{else if $element.permission eq 2 }
|
||||
<a href="{$ingame_webpath}?page=change_permission&user_id={$element.id}&value=1">Demote to User</a>
|
||||
<a href="{$ingame_webpath}?page=change_permission&user_id={$element.id}&value=3">Make Admin</a>
|
||||
{else if $element.permission eq 3 }
|
||||
<a href="{$ingame_webpath}?page=change_permission&user_id={$element.id}&value=1">Demote to User</a>
|
||||
<a href="{$ingame_webpath}?page=change_permission&user_id={$element.id}&value=2">Demote to Moderator</a>
|
||||
{/if}
|
||||
{/if}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td></tr>
|
||||
<tr><td align = "center">
|
||||
<table>
|
||||
<tr>
|
||||
<td><a href="{$ingame_webpath}?page=userlist&pagenum=1">«</a></td>
|
||||
{foreach from=$links item=link}
|
||||
<td {if $link == $currentPage}bgcolor="{$pagination_current_page_bg}"{/if}><a href="{$ingame_webpath}?page=userlist&pagenum={$link}">{$link}</a></td>
|
||||
{/foreach}
|
||||
<td><a href="{$ingame_webpath}?page=userlist&pagenum={$lastPage}">»</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</td></tr>
|
||||
|
||||
{/block}
|
||||
|
|
@ -87,7 +87,7 @@ class WebUsers extends Users{
|
|||
}
|
||||
|
||||
public function getUsername(){
|
||||
|
||||
|
||||
if(! isset($this->login) || $this->login == ""){
|
||||
$row = db_query("SELECT * FROM {users} WHERE uid = :id", array(':id' => $this->uId))->fetchAssoc();
|
||||
$this->set($row);
|
||||
|
@ -137,12 +137,13 @@ class WebUsers extends Users{
|
|||
}
|
||||
|
||||
public function setPassword($user, $pass){
|
||||
$reply = WebUsers::setAmsPassword($user, $pass);
|
||||
$values = Array('user' => $user, 'pass' => $pass);
|
||||
$hashpass = crypt($pass, WebUsers::generateSALT());
|
||||
$reply = WebUsers::setAmsPassword($user, $hashpass);
|
||||
$drupal_pass = user_hash_password($pass);
|
||||
$values = Array('user' => $user, 'pass' => $drupal_pass);
|
||||
try {
|
||||
//make connection with and put into shard db
|
||||
$dbw = new DBLayer("web");
|
||||
$dbw->execute("UPDATE ams_user SET Password = :pass WHERE Login = :user ",$values);
|
||||
db_query("UPDATE {users} SET pass = :pass WHERE name = :user", $values);
|
||||
}
|
||||
catch (PDOException $e) {
|
||||
//ERROR: the web DB is offline
|
||||
|
@ -155,8 +156,8 @@ class WebUsers extends Users{
|
|||
$values = Array('user' => $user, 'mail' => $mail);
|
||||
try {
|
||||
//make connection with and put into shard db
|
||||
$dbw = new DBLayer("web");
|
||||
$dbw->execute("UPDATE ams_user SET Email = :mail WHERE Login = :user ",$values);
|
||||
db_query("UPDATE {users} SET mail = :mail WHERE name = :user", $values);
|
||||
|
||||
}
|
||||
catch (PDOException $e) {
|
||||
//ERROR: the web DB is offline
|
||||
|
|
|
@ -91,5 +91,7 @@ $TIME_FORMAT = "m-d-Y H:i:s";
|
|||
//defines which ingame layout template should be used
|
||||
$INGAME_LAYOUT = "basic";
|
||||
|
||||
$FORCE_INGAME = true;
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
<?php
|
||||
|
||||
function add_sgroup(){
|
||||
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
if(WebUsers::isLoggedIn()){
|
||||
|
||||
if( Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
|
||||
|
@ -22,7 +23,11 @@ function add_sgroup(){
|
|||
//require($SITEBASE . '/inc/sgroup_list.php');
|
||||
//$result= array_merge($result, sgroup_list());
|
||||
//return helpers :: loadtemplate( 'sgroup_list', $result, true);
|
||||
header("Location: ams?page=sgroup_list");
|
||||
if (Helpers::check_if_game_client()) {
|
||||
header("Location: ".$INGAME_WEBPATH."?page=sgroup_list");
|
||||
}else{
|
||||
header("Location: ".$WEBPATH."?page=sgroup_list");
|
||||
}
|
||||
exit;
|
||||
|
||||
}else{
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
<?php
|
||||
|
||||
function add_user_to_sgroup(){
|
||||
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
if(WebUsers::isLoggedIn()){
|
||||
|
||||
if( Ticket_User::isAdmin(unserialize($_SESSION['ticket_user'])) && isset($_POST['target_id'])){
|
||||
|
@ -25,7 +26,11 @@ function add_user_to_sgroup(){
|
|||
//require_once($SITEBASE . 'inc/show_sgroup.php');
|
||||
//$result= array_merge($result, show_sgroup());
|
||||
//helpers :: loadtemplate( 'show_sgroup', $result);
|
||||
header("Location: ams?page=show_sgroup&id=".$id);
|
||||
if (Helpers::check_if_game_client()) {
|
||||
header("Location: ".$INGAME_WEBPATH."?page=show_sgroup&id=".$id);
|
||||
}else{
|
||||
header("Location: ".$WEBPATH."?page=show_sgroup&id=".$id);
|
||||
}
|
||||
exit;
|
||||
|
||||
}else{
|
||||
|
|
|
@ -0,0 +1,93 @@
|
|||
<?php
|
||||
|
||||
function change_mail(){
|
||||
|
||||
try{
|
||||
//if logged in
|
||||
if(WebUsers::isLoggedIn()){
|
||||
|
||||
if(isset($_POST['target_id'])){
|
||||
|
||||
|
||||
if( ($_POST['target_id'] == $_SESSION['id']) || Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) ){
|
||||
if($_POST['target_id'] == $_SESSION['id']){
|
||||
$target_username = $_SESSION['user'];
|
||||
}else{
|
||||
$webUser = new WebUsers($_POST['target_id']);
|
||||
$target_username = $webUser->getUsername();
|
||||
}
|
||||
|
||||
$webUser = new WebUsers($_POST['target_id']);
|
||||
$reply = $webUser->checkEmail($_POST['NewEmail']);
|
||||
|
||||
global $SITEBASE;
|
||||
require_once($SITEBASE . '/inc/settings.php');
|
||||
$result = settings();
|
||||
|
||||
if ( $reply != "success" ){
|
||||
$result['EMAIL_ERROR'] = 'TRUE';
|
||||
}else{
|
||||
$result['EMAIL_ERROR'] = 'FALSE';
|
||||
}
|
||||
$result['prevNewEmail'] = filter_var($_POST["NewEmail"], FILTER_SANITIZE_EMAIL);
|
||||
|
||||
if ($reply== "success"){
|
||||
$status = WebUsers::setEmail($target_username, filter_var($_POST["NewEmail"], FILTER_SANITIZE_EMAIL) );
|
||||
if($status == 'ok'){
|
||||
$result['SUCCESS_MAIL'] = "OK";
|
||||
}else if($status == 'shardoffline'){
|
||||
$result['SUCCESS_MAIL'] = "SHARDOFF";
|
||||
}
|
||||
$result['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
|
||||
$result['no_visible_elements'] = 'FALSE';
|
||||
$result['username'] = $_SESSION['user'];
|
||||
$result['target_id'] = $_POST['target_id'];
|
||||
if(isset($_GET['id'])){
|
||||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) && ($_POST['target_id'] != $_SESSION['id'])){
|
||||
$result['isMod'] = "TRUE";
|
||||
}
|
||||
}
|
||||
helpers :: loadtemplate( 'settings', $result);
|
||||
exit;
|
||||
|
||||
}else{
|
||||
$result['EMAIL'] = $reply;
|
||||
$result['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
|
||||
$result['no_visible_elements'] = 'FALSE';
|
||||
$result['username'] = $_SESSION['user'];
|
||||
$result['target_id'] = $_POST['target_id'];
|
||||
if(isset($_GET['id'])){
|
||||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) && ($_POST['target_id'] != $_SESSION['id'])){
|
||||
$result['isMod'] = "TRUE";
|
||||
}
|
||||
}
|
||||
helpers :: loadtemplate( 'settings', $result);
|
||||
exit;
|
||||
}
|
||||
|
||||
}else{
|
||||
//ERROR: permission denied!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
}
|
||||
|
||||
}else{
|
||||
//ERROR: The form was not filled in correclty
|
||||
header("Location: index.php?page=settings");
|
||||
exit;
|
||||
}
|
||||
}else{
|
||||
//ERROR: user is not logged in
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
}catch (PDOException $e) {
|
||||
//go to error page or something, because can't access website db
|
||||
print_r($e);
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
<?php
|
||||
|
||||
function change_password(){
|
||||
|
||||
try{
|
||||
//if logged in
|
||||
if(WebUsers::isLoggedIn()){
|
||||
|
||||
if(isset($_POST['target_id'])){
|
||||
$adminChangesOther = false;
|
||||
//if target_id is the same as session id or is admin
|
||||
if( ($_POST['target_id'] == $_SESSION['id']) || Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) ){
|
||||
if($_POST['target_id'] == $_SESSION['id']){
|
||||
$target_username = $_SESSION['user'];
|
||||
}else{
|
||||
$webUser = new WebUsers($_POST['target_id']);
|
||||
$target_username = $webUser->getUsername();
|
||||
//isAdmin is true when it's the admin, but the target_id != own id
|
||||
$adminChangesOther = true;
|
||||
$_POST["CurrentPass"] = "dummypass";
|
||||
}
|
||||
|
||||
$webUser = new WebUsers($_POST['target_id']);
|
||||
$params = Array( 'user' => $target_username, 'CurrentPass' => $_POST["CurrentPass"], 'NewPass' => $_POST["NewPass"], 'ConfirmNewPass' => $_POST["ConfirmNewPass"], 'adminChangesOther' => $adminChangesOther);
|
||||
$result = $webUser->check_change_password($params);
|
||||
if ($result == "success"){
|
||||
//edit stuff into db
|
||||
global $SITEBASE;
|
||||
require_once($SITEBASE . '/inc/settings.php');
|
||||
$succresult = settings();
|
||||
$status = WebUsers::setPassword($target_username, $_POST["NewPass"]);
|
||||
if($status == 'ok'){
|
||||
$succresult['SUCCESS_PASS'] = "OK";
|
||||
}else if($status == 'shardoffline'){
|
||||
$succresult['SUCCESS_PASS'] = "SHARDOFF";
|
||||
}
|
||||
$succresult['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
|
||||
$succresult['no_visible_elements'] = 'FALSE';
|
||||
$succresult['username'] = $_SESSION['user'];
|
||||
$succresult['target_id'] = $_POST['target_id'];
|
||||
helpers :: loadtemplate( 'settings', $succresult);
|
||||
exit;
|
||||
|
||||
}else{
|
||||
|
||||
$result['prevCurrentPass'] = filter_var($_POST["CurrentPass"], FILTER_SANITIZE_STRING);
|
||||
$result['prevNewPass'] = filter_var($_POST["NewPass"], FILTER_SANITIZE_STRING);
|
||||
$result['prevConfirmNewPass'] = filter_var($_POST["ConfirmNewPass"], FILTER_SANITIZE_STRING);
|
||||
$result['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
|
||||
$result['no_visible_elements'] = 'FALSE';
|
||||
$result['username'] = $_SESSION['user'];
|
||||
$result['target_id'] = $_POST['target_id'];
|
||||
|
||||
global $SITEBASE;
|
||||
require_once($SITEBASE . '/inc/settings.php');
|
||||
$settings = settings();
|
||||
|
||||
$result = array_merge($result,$settings);
|
||||
helpers :: loadtemplate( 'settings', $result);
|
||||
exit;
|
||||
}
|
||||
|
||||
}else{
|
||||
//ERROR: permission denied!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
}
|
||||
|
||||
}else{
|
||||
//ERROR: The form was not filled in correclty
|
||||
header("Location: index.php?page=settings");
|
||||
exit;
|
||||
}
|
||||
}else{
|
||||
//ERROR: user is not logged in
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
}catch (PDOException $e) {
|
||||
//go to error page or something, because can't access website db
|
||||
print_r($e);
|
||||
exit;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
function create_ticket(){
|
||||
//if logged in
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
if(WebUsers::isLoggedIn() && isset($_SESSION['ticket_user'])){
|
||||
|
||||
if(isset($_POST['target_id'])){
|
||||
|
@ -19,7 +21,11 @@ function create_ticket(){
|
|||
$author= Ticket_User::constr_ExternId($_POST['target_id'])->getTUserId();
|
||||
}
|
||||
$ticket_id = Ticket::create_Ticket($title, $content, $category, $author, unserialize($_SESSION['ticket_user'])->getTUserId(),0, $_POST);
|
||||
header("Location: ams?page=show_ticket&id=".$ticket_id);
|
||||
if (Helpers::check_if_game_client()) {
|
||||
header("Location: ".$INGAME_WEBPATH."?page=show_ticket&id=".$ticket_id);
|
||||
}else{
|
||||
header("Location: ".$WEBPATH."?page=show_ticket&id=".$ticket_id);
|
||||
}
|
||||
exit;
|
||||
|
||||
}catch (PDOException $e) {
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
<?php
|
||||
|
||||
function login(){
|
||||
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
try{
|
||||
$username = filter_var($_POST['Username'],FILTER_SANITIZE_STRING);
|
||||
$password = filter_var($_POST['Password'],FILTER_SANITIZE_STRING);
|
||||
|
@ -15,7 +16,11 @@ function login(){
|
|||
$_SESSION['Language'] = $user->getLanguage();
|
||||
|
||||
//go back to the index page.
|
||||
header( 'Location: '. $INGAME_WEBPATH );
|
||||
if (Helpers::check_if_game_client()) {
|
||||
header( 'Location: '. $INGAME_WEBPATH );
|
||||
}else{
|
||||
header( 'Location: '. $WEBPATH );
|
||||
}
|
||||
exit;
|
||||
}else{
|
||||
//handle login failure
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
<?php
|
||||
|
||||
function modify_email_of_sgroup(){
|
||||
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
if(WebUsers::isLoggedIn()){
|
||||
|
||||
if( Ticket_User::isAdmin(unserialize($_SESSION['ticket_user'])) && isset($_POST['target_id'])){
|
||||
|
@ -36,7 +37,11 @@ function modify_email_of_sgroup(){
|
|||
//require_once($SITEBASE . 'inc/show_sgroup.php');
|
||||
//$result= array_merge($result, show_sgroup());
|
||||
//helpers :: loadtemplate( 'show_sgroup', $result);
|
||||
header("Location: ams?page=show_sgroup&id=".$sgroupid);
|
||||
if (Helpers::check_if_game_client()) {
|
||||
header("Location: ".$INGAME_WEBPATH."?page=show_sgroup&id=".$sgroupid);
|
||||
}else{
|
||||
header("Location: ".$WEBPATH."?page=show_sgroup&id=".$sgroupid);
|
||||
}
|
||||
exit;
|
||||
|
||||
}else{
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
<?php
|
||||
|
||||
function reply_on_ticket(){
|
||||
|
||||
//if logged in
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
//if logged in
|
||||
if(WebUsers::isLoggedIn() && isset($_POST['ticket_id'])){
|
||||
|
||||
$ticket_id = filter_var($_POST['ticket_id'], FILTER_SANITIZE_NUMBER_INT);
|
||||
|
@ -29,7 +30,11 @@ function reply_on_ticket(){
|
|||
$newPriority = filter_var($_POST['ChangePriority'], FILTER_SANITIZE_NUMBER_INT);
|
||||
Ticket::updateTicketStatusAndPriority($ticket_id,$newStatus, $newPriority, $author);
|
||||
}
|
||||
header("Location: ams?page=show_ticket&id=".$ticket_id);
|
||||
if (Helpers::check_if_game_client()) {
|
||||
header("Location: ".$INGAME_WEBPATH."?page=show_ticket&id=".$ticket_id);
|
||||
}else{
|
||||
header("Location: ".$WEBPATH."?page=show_ticket&id=".$ticket_id);
|
||||
}
|
||||
exit;
|
||||
|
||||
}catch (PDOException $e) {
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
<?php
|
||||
|
||||
function change_permission(){
|
||||
|
||||
//if logged in
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
//if logged in
|
||||
if(WebUsers::isLoggedIn()){
|
||||
|
||||
if(ticket_user::isAdmin(unserialize($_SESSION['ticket_user']))){
|
||||
|
@ -12,13 +13,21 @@ function change_permission(){
|
|||
$value = filter_var($_GET['value'], FILTER_SANITIZE_NUMBER_INT);
|
||||
|
||||
Ticket_User::change_permission(Ticket_User::constr_ExternId($user_id)->getTUserId(), $value);
|
||||
header("Location: ams?page=show_user&id=".$user_id);
|
||||
if (Helpers::check_if_game_client()) {
|
||||
header("Location: ".$INGAME_WEBPATH."?page=show_user&id=".$user_id);
|
||||
}else{
|
||||
header("Location: ".$WEBPATH."?page=show_user&id=".$user_id);
|
||||
}
|
||||
exit;
|
||||
|
||||
|
||||
}else{
|
||||
//ERROR: GET PARAMS not given or trying to change admin
|
||||
header("Location: ams?page=show_user&id=".$user_id);
|
||||
if (Helpers::check_if_game_client()) {
|
||||
header("Location: ".$INGAME_WEBPATH."?page=show_user&id=".$user_id);
|
||||
}else{
|
||||
header("Location: ".$WEBPATH."?page=show_user&id=".$user_id);
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
|
|
|
@ -35,6 +35,8 @@ function createticket(){
|
|||
//create array of category id & names
|
||||
$catArray = Ticket_Category::getAllCategories();
|
||||
$result['category'] = Gui_Elements::make_table_with_key_is_id($catArray, Array("getName"), "getTCategoryId" );
|
||||
global $INGAME_WEBPATH;
|
||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $result;
|
||||
|
||||
}else{
|
||||
|
|
|
@ -2,5 +2,8 @@
|
|||
|
||||
function logout(){
|
||||
session_unset();
|
||||
session_destroy();
|
||||
session_destroy();
|
||||
global $INGAME_WEBPATH;
|
||||
header("Location: ". $INGAME_WEBPATH);
|
||||
exit;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,298 @@
|
|||
<?php
|
||||
|
||||
function settings(){
|
||||
if(WebUsers::isLoggedIn()){
|
||||
//in case id-GET param set it's value as target_id, if no id-param is given, ue the session id.
|
||||
if(isset($_GET['id'])){
|
||||
if(($_GET['id'] != $_SESSION['id']) && (!Ticket_User::isMod(unserialize($_SESSION['ticket_user']))) ){
|
||||
//ERROR: No access!
|
||||
$_SESSION['error_code'] = "403";
|
||||
header("Location: index.php?page=error");
|
||||
exit;
|
||||
}else{
|
||||
$webUser = new Webusers($_GET['id']);
|
||||
//$result = $webUser->getInfo();
|
||||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) && ($_GET['id']!= $_SESSION['id'])){
|
||||
$result['changesOther'] = "TRUE";
|
||||
}
|
||||
$result['target_id'] = $_GET['id'];
|
||||
$result['current_mail'] = $webUser->getEmail();
|
||||
$result['target_username'] = $webUser->getUsername();
|
||||
}
|
||||
}else{
|
||||
$webUser = new Webusers($_SESSION['id']);
|
||||
//$result = $webUser->getInfo();
|
||||
$result['target_id'] = $_SESSION['id'];
|
||||
$result['current_mail'] = $webUser->getEmail();
|
||||
$result['target_username'] = $webUser->getUsername();
|
||||
|
||||
}
|
||||
//Sanitize Data
|
||||
$result['current_mail'] = filter_var($result['current_mail'], FILTER_SANITIZE_EMAIL);
|
||||
$result['target_username'] = filter_var($result['target_username'], FILTER_SANITIZE_STRING);
|
||||
//$result['FirstName'] = filter_var($result['FirstName'], FILTER_SANITIZE_STRING);
|
||||
//$result['LastName'] = filter_var($result['LastName'], FILTER_SANITIZE_STRING);
|
||||
//$result['Country'] = filter_var($result['Country'], FILTER_SANITIZE_STRING);
|
||||
//$result['Gender'] = filter_var($result['Gender'], FILTER_SANITIZE_NUMBER_INT);
|
||||
//$result['ReceiveMail'] = filter_var($result['ReceiveMail'], FILTER_SANITIZE_NUMBER_INT);
|
||||
//$result['country_array'] = getCountryArray();
|
||||
global $INGAME_WEBPATH;
|
||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $result;
|
||||
}else{
|
||||
//ERROR: not logged in!
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function getCountryArray(){
|
||||
|
||||
$countries = array(
|
||||
'AA'=>'None Selected',
|
||||
'AF'=>'Afghanistan',
|
||||
'AL'=>'Albania',
|
||||
'DZ'=>'Algeria',
|
||||
'AS'=>'American Samoa',
|
||||
'AD'=>'Andorra',
|
||||
'AO'=>'Angola',
|
||||
'AI'=>'Anguilla',
|
||||
'AQ'=>'Antarctica',
|
||||
'AG'=>'Antigua And Barbuda',
|
||||
'AR'=>'Argentina',
|
||||
'AM'=>'Armenia',
|
||||
'AW'=>'Aruba',
|
||||
'AU'=>'Australia',
|
||||
'AT'=>'Austria',
|
||||
'AZ'=>'Azerbaijan',
|
||||
'BS'=>'Bahamas',
|
||||
'BH'=>'Bahrain',
|
||||
'BD'=>'Bangladesh',
|
||||
'BB'=>'Barbados',
|
||||
'BY'=>'Belarus',
|
||||
'BE'=>'Belgium',
|
||||
'BZ'=>'Belize',
|
||||
'BJ'=>'Benin',
|
||||
'BM'=>'Bermuda',
|
||||
'BT'=>'Bhutan',
|
||||
'BO'=>'Bolivia',
|
||||
'BA'=>'Bosnia And Herzegovina',
|
||||
'BW'=>'Botswana',
|
||||
'BV'=>'Bouvet Island',
|
||||
'BR'=>'Brazil',
|
||||
'IO'=>'British Indian Ocean Territory',
|
||||
'BN'=>'Brunei',
|
||||
'BG'=>'Bulgaria',
|
||||
'BF'=>'Burkina Faso',
|
||||
'BI'=>'Burundi',
|
||||
'KH'=>'Cambodia',
|
||||
'CM'=>'Cameroon',
|
||||
'CA'=>'Canada',
|
||||
'CV'=>'Cape Verde',
|
||||
'KY'=>'Cayman Islands',
|
||||
'CF'=>'Central African Republic',
|
||||
'TD'=>'Chad',
|
||||
'CL'=>'Chile',
|
||||
'CN'=>'China',
|
||||
'CX'=>'Christmas Island',
|
||||
'CC'=>'Cocos (Keeling) Islands',
|
||||
'CO'=>'Columbia',
|
||||
'KM'=>'Comoros',
|
||||
'CG'=>'Congo',
|
||||
'CK'=>'Cook Islands',
|
||||
'CR'=>'Costa Rica',
|
||||
'CI'=>'Cote D\'Ivorie (Ivory Coast)',
|
||||
'HR'=>'Croatia (Hrvatska)',
|
||||
'CU'=>'Cuba',
|
||||
'CY'=>'Cyprus',
|
||||
'CZ'=>'Czech Republic',
|
||||
'CD'=>'Democratic Republic Of Congo (Zaire)',
|
||||
'DK'=>'Denmark',
|
||||
'DJ'=>'Djibouti',
|
||||
'DM'=>'Dominica',
|
||||
'DO'=>'Dominican Republic',
|
||||
'TP'=>'East Timor',
|
||||
'EC'=>'Ecuador',
|
||||
'EG'=>'Egypt',
|
||||
'SV'=>'El Salvador',
|
||||
'GQ'=>'Equatorial Guinea',
|
||||
'ER'=>'Eritrea',
|
||||
'EE'=>'Estonia',
|
||||
'ET'=>'Ethiopia',
|
||||
'FK'=>'Falkland Islands (Malvinas)',
|
||||
'FO'=>'Faroe Islands',
|
||||
'FJ'=>'Fiji',
|
||||
'FI'=>'Finland',
|
||||
'FR'=>'France',
|
||||
'FX'=>'France, Metropolitan',
|
||||
'GF'=>'French Guinea',
|
||||
'PF'=>'French Polynesia',
|
||||
'TF'=>'French Southern Territories',
|
||||
'GA'=>'Gabon',
|
||||
'GM'=>'Gambia',
|
||||
'GE'=>'Georgia',
|
||||
'DE'=>'Germany',
|
||||
'GH'=>'Ghana',
|
||||
'GI'=>'Gibraltar',
|
||||
'GR'=>'Greece',
|
||||
'GL'=>'Greenland',
|
||||
'GD'=>'Grenada',
|
||||
'GP'=>'Guadeloupe',
|
||||
'GU'=>'Guam',
|
||||
'GT'=>'Guatemala',
|
||||
'GN'=>'Guinea',
|
||||
'GW'=>'Guinea-Bissau',
|
||||
'GY'=>'Guyana',
|
||||
'HT'=>'Haiti',
|
||||
'HM'=>'Heard And McDonald Islands',
|
||||
'HN'=>'Honduras',
|
||||
'HK'=>'Hong Kong',
|
||||
'HU'=>'Hungary',
|
||||
'IS'=>'Iceland',
|
||||
'IN'=>'India',
|
||||
'ID'=>'Indonesia',
|
||||
'IR'=>'Iran',
|
||||
'IQ'=>'Iraq',
|
||||
'IE'=>'Ireland',
|
||||
'IL'=>'Israel',
|
||||
'IT'=>'Italy',
|
||||
'JM'=>'Jamaica',
|
||||
'JP'=>'Japan',
|
||||
'JO'=>'Jordan',
|
||||
'KZ'=>'Kazakhstan',
|
||||
'KE'=>'Kenya',
|
||||
'KI'=>'Kiribati',
|
||||
'KW'=>'Kuwait',
|
||||
'KG'=>'Kyrgyzstan',
|
||||
'LA'=>'Laos',
|
||||
'LV'=>'Latvia',
|
||||
'LB'=>'Lebanon',
|
||||
'LS'=>'Lesotho',
|
||||
'LR'=>'Liberia',
|
||||
'LY'=>'Libya',
|
||||
'LI'=>'Liechtenstein',
|
||||
'LT'=>'Lithuania',
|
||||
'LU'=>'Luxembourg',
|
||||
'MO'=>'Macau',
|
||||
'MK'=>'Macedonia',
|
||||
'MG'=>'Madagascar',
|
||||
'MW'=>'Malawi',
|
||||
'MY'=>'Malaysia',
|
||||
'MV'=>'Maldives',
|
||||
'ML'=>'Mali',
|
||||
'MT'=>'Malta',
|
||||
'MH'=>'Marshall Islands',
|
||||
'MQ'=>'Martinique',
|
||||
'MR'=>'Mauritania',
|
||||
'MU'=>'Mauritius',
|
||||
'YT'=>'Mayotte',
|
||||
'MX'=>'Mexico',
|
||||
'FM'=>'Micronesia',
|
||||
'MD'=>'Moldova',
|
||||
'MC'=>'Monaco',
|
||||
'MN'=>'Mongolia',
|
||||
'MS'=>'Montserrat',
|
||||
'MA'=>'Morocco',
|
||||
'MZ'=>'Mozambique',
|
||||
'MM'=>'Myanmar (Burma)',
|
||||
'NA'=>'Namibia',
|
||||
'NR'=>'Nauru',
|
||||
'NP'=>'Nepal',
|
||||
'NL'=>'Netherlands',
|
||||
'AN'=>'Netherlands Antilles',
|
||||
'NC'=>'New Caledonia',
|
||||
'NZ'=>'New Zealand',
|
||||
'NI'=>'Nicaragua',
|
||||
'NE'=>'Niger',
|
||||
'NG'=>'Nigeria',
|
||||
'NU'=>'Niue',
|
||||
'NF'=>'Norfolk Island',
|
||||
'KP'=>'North Korea',
|
||||
'MP'=>'Northern Mariana Islands',
|
||||
'NO'=>'Norway',
|
||||
'OM'=>'Oman',
|
||||
'PK'=>'Pakistan',
|
||||
'PW'=>'Palau',
|
||||
'PA'=>'Panama',
|
||||
'PG'=>'Papua New Guinea',
|
||||
'PY'=>'Paraguay',
|
||||
'PE'=>'Peru',
|
||||
'PH'=>'Philippines',
|
||||
'PN'=>'Pitcairn',
|
||||
'PL'=>'Poland',
|
||||
'PT'=>'Portugal',
|
||||
'PR'=>'Puerto Rico',
|
||||
'QA'=>'Qatar',
|
||||
'RE'=>'Reunion',
|
||||
'RO'=>'Romania',
|
||||
'RU'=>'Russia',
|
||||
'RW'=>'Rwanda',
|
||||
'SH'=>'Saint Helena',
|
||||
'KN'=>'Saint Kitts And Nevis',
|
||||
'LC'=>'Saint Lucia',
|
||||
'PM'=>'Saint Pierre And Miquelon',
|
||||
'VC'=>'Saint Vincent And The Grenadines',
|
||||
'SM'=>'San Marino',
|
||||
'ST'=>'Sao Tome And Principe',
|
||||
'SA'=>'Saudi Arabia',
|
||||
'SN'=>'Senegal',
|
||||
'SC'=>'Seychelles',
|
||||
'SL'=>'Sierra Leone',
|
||||
'SG'=>'Singapore',
|
||||
'SK'=>'Slovak Republic',
|
||||
'SI'=>'Slovenia',
|
||||
'SB'=>'Solomon Islands',
|
||||
'SO'=>'Somalia',
|
||||
'ZA'=>'South Africa',
|
||||
'GS'=>'South Georgia And South Sandwich Islands',
|
||||
'KR'=>'South Korea',
|
||||
'ES'=>'Spain',
|
||||
'LK'=>'Sri Lanka',
|
||||
'SD'=>'Sudan',
|
||||
'SR'=>'Suriname',
|
||||
'SJ'=>'Svalbard And Jan Mayen',
|
||||
'SZ'=>'Swaziland',
|
||||
'SE'=>'Sweden',
|
||||
'CH'=>'Switzerland',
|
||||
'SY'=>'Syria',
|
||||
'TW'=>'Taiwan',
|
||||
'TJ'=>'Tajikistan',
|
||||
'TZ'=>'Tanzania',
|
||||
'TH'=>'Thailand',
|
||||
'TG'=>'Togo',
|
||||
'TK'=>'Tokelau',
|
||||
'TO'=>'Tonga',
|
||||
'TT'=>'Trinidad And Tobago',
|
||||
'TN'=>'Tunisia',
|
||||
'TR'=>'Turkey',
|
||||
'TM'=>'Turkmenistan',
|
||||
'TC'=>'Turks And Caicos Islands',
|
||||
'TV'=>'Tuvalu',
|
||||
'UG'=>'Uganda',
|
||||
'UA'=>'Ukraine',
|
||||
'AE'=>'United Arab Emirates',
|
||||
'UK'=>'United Kingdom',
|
||||
'US'=>'United States',
|
||||
'UM'=>'United States Minor Outlying Islands',
|
||||
'UY'=>'Uruguay',
|
||||
'UZ'=>'Uzbekistan',
|
||||
'VU'=>'Vanuatu',
|
||||
'VA'=>'Vatican City (Holy See)',
|
||||
'VE'=>'Venezuela',
|
||||
'VN'=>'Vietnam',
|
||||
'VG'=>'Virgin Islands (British)',
|
||||
'VI'=>'Virgin Islands (US)',
|
||||
'WF'=>'Wallis And Futuna Islands',
|
||||
'EH'=>'Western Sahara',
|
||||
'WS'=>'Western Samoa',
|
||||
'YE'=>'Yemen',
|
||||
'YU'=>'Yugoslavia',
|
||||
'ZM'=>'Zambia',
|
||||
'ZW'=>'Zimbabwe'
|
||||
);
|
||||
|
||||
return $countries;
|
||||
|
||||
}
|
||||
|
|
@ -1,6 +1,8 @@
|
|||
<?php
|
||||
|
||||
function sgroup_list(){
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
//if logged in
|
||||
if(WebUsers::isLoggedIn()){
|
||||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
|
||||
|
@ -8,13 +10,19 @@ function sgroup_list(){
|
|||
if(isset($_GET['delete']) && Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
|
||||
$delete_id = filter_var($_GET['delete'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$result['delete'] = Support_Group::deleteSupportGroup( $delete_id);
|
||||
header("Location: ams?page=sgroup_list");
|
||||
if (Helpers::check_if_game_client()) {
|
||||
header("Location: ".$INGAME_WEBPATH."?page=sgroup_list");
|
||||
}else{
|
||||
header("Location: ".$WEBPATH."?page=sgroup_list");
|
||||
}
|
||||
exit;
|
||||
}
|
||||
if(Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
|
||||
$result['isAdmin'] = "TRUE";
|
||||
}
|
||||
$result['grouplist'] = Gui_Elements::make_table(Support_Group::getGroups(), Array("getSGroupId","getName","getTag","getGroupEmail"), Array("sGroupId","name","tag","groupemail"));
|
||||
global $INGAME_WEBPATH;
|
||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $result;
|
||||
}else{
|
||||
//ERROR: No access!
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
<?php
|
||||
|
||||
function show_queue(){
|
||||
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
//if logged in & queue id is given
|
||||
if(WebUsers::isLoggedIn() && isset($_GET['get'])){
|
||||
|
||||
|
@ -14,10 +15,20 @@ function show_queue(){
|
|||
$queue_handler = new Ticket_Queue_handler();
|
||||
|
||||
//Pagination Base Links
|
||||
$result['pagination_base_link'] = "ams?page=show_queue&get=".$result['queue_view'] ;
|
||||
if (Helpers::check_if_game_client()) {
|
||||
$result['pagination_base_link'] = $INGAME_WEBPATH."?page=show_queue&get=".$result['queue_view'] ;
|
||||
}else{
|
||||
$result['pagination_base_link'] = $WEBPATH."?page=show_queue&get=".$result['queue_view'] ;
|
||||
}
|
||||
|
||||
//form url to keep the getters constant
|
||||
$result['getURL'] = "ams?page=show_queue&get=" . $result['queue_view'];
|
||||
|
||||
if (Helpers::check_if_game_client()) {
|
||||
$result['getURL'] = $INGAME_WEBPATH."?page=show_queue&get=" . $result['queue_view'];
|
||||
}else{
|
||||
$result['getURL'] = $WEBPATH."?page=show_queue&get=" . $result['queue_view'];
|
||||
}
|
||||
|
||||
if(isset($_GET['pagenum'])){
|
||||
$result['getURL'] = $result['getURL'] . "&pagenum=".$_GET['pagenum'];
|
||||
}
|
||||
|
@ -29,7 +40,14 @@ function show_queue(){
|
|||
$how = filter_var($_GET['how'], FILTER_SANITIZE_STRING);
|
||||
$who = filter_var($_GET['who'], FILTER_SANITIZE_STRING);
|
||||
$queue_handler->CreateQueue($userid, $groupid, $what, $how, $who);
|
||||
$result['pagination_base_link'] = "ams?page=show_queue&get=create&userid=".$userid."&groupid=".$groupid."&what=".$what."&how=".$how."&who=".$who;
|
||||
|
||||
if (Helpers::check_if_game_client()) {
|
||||
$result['pagination_base_link'] = $INGAME_WEBPATH."?page=show_queue&get=create&userid=".$userid."&groupid=".$groupid."&what=".$what."&how=".$how."&who=".$who;
|
||||
}else{
|
||||
$result['pagination_base_link'] = $WEBPATH."?page=show_queue&get=create&userid=".$userid."&groupid=".$groupid."&what=".$what."&how=".$how."&who=".$who;
|
||||
}
|
||||
|
||||
|
||||
$result['prev_created_userid'] = $userid;
|
||||
$result['prev_created_groupid'] = $groupid;
|
||||
$result['prev_created_what'] = $what;
|
||||
|
@ -60,7 +78,11 @@ function show_queue(){
|
|||
$how = filter_var($_POST['how'], FILTER_SANITIZE_STRING);
|
||||
$who = filter_var($_POST['who'], FILTER_SANITIZE_STRING);
|
||||
$queue_handler->CreateQueue($userid, $groupid, $what, $how, $who);
|
||||
$result['pagination_base_link'] = "ams?page=show_queue&get=create&userid=".$userid."&groupid=".$groupid."&what=".$what."&how=".$how."&who=".$who;
|
||||
if (Helpers::check_if_game_client()) {
|
||||
$result['pagination_base_link'] = $INGAME_WEBPATH."?page=show_queue&get=create&userid=".$userid."&groupid=".$groupid."&what=".$what."&how=".$how."&who=".$who;
|
||||
}else{
|
||||
$result['pagination_base_link'] = $WEBPATH."?page=show_queue&get=create&userid=".$userid."&groupid=".$groupid."&what=".$what."&how=".$how."&who=".$who;
|
||||
}
|
||||
$result['prev_created_userid'] = $userid;
|
||||
$result['prev_created_groupid'] = $groupid;
|
||||
$result['prev_created_what'] = $what;
|
||||
|
@ -104,6 +126,8 @@ function show_queue(){
|
|||
$result['teamlist'][$i]['name'] = $web_teammember->getUsername();
|
||||
$i++;
|
||||
}
|
||||
global $INGAME_WEBPATH;
|
||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $result;
|
||||
|
||||
}else{
|
||||
|
|
|
@ -30,6 +30,8 @@ function show_reply(){
|
|||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
|
||||
$result['isMod'] = "TRUE";
|
||||
}
|
||||
global $INGAME_WEBPATH;
|
||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $result;
|
||||
|
||||
}else{
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
<?php
|
||||
|
||||
function show_sgroup(){
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
//if logged in
|
||||
if(WebUsers::isLoggedIn()){
|
||||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
|
||||
|
@ -11,7 +13,11 @@ function show_sgroup(){
|
|||
if(isset($_GET['delete']) && Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
|
||||
$delete_id = filter_var($_GET['delete'], FILTER_SANITIZE_NUMBER_INT);
|
||||
$result['delete'] = Support_Group::deleteUserOfSupportGroup( $delete_id, $result['target_id'] );
|
||||
header("Location: ams?page=show_sgroup&id=" . $result['target_id']);
|
||||
if (Helpers::check_if_game_client()) {
|
||||
header("Location: ".$INGAME_WEBPATH."?page=show_sgroup&id=" . $result['target_id']);
|
||||
}else{
|
||||
header("Location: ".$WEBPATH."?page=show_sgroup&id=" . $result['target_id']);
|
||||
}
|
||||
exit;
|
||||
|
||||
}
|
||||
|
@ -32,6 +38,8 @@ function show_sgroup(){
|
|||
$result['userlist'][$i]['name'] = $webuser->getUsername();
|
||||
$i++;
|
||||
}
|
||||
global $INGAME_WEBPATH;
|
||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $result;
|
||||
|
||||
|
||||
|
|
|
@ -68,6 +68,8 @@ function show_ticket(){
|
|||
$result['sGroups'] = Gui_Elements::make_table_with_key_is_id(Support_Group::getAllSupportGroups(), Array("getName"), "getSGroupId" );
|
||||
}
|
||||
$result['hasInfo'] = $target_ticket->hasInfo();
|
||||
global $INGAME_WEBPATH;
|
||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $result;
|
||||
|
||||
}else{
|
||||
|
|
|
@ -37,6 +37,8 @@ function show_ticket_info(){
|
|||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
|
||||
$result['isMod'] = "TRUE";
|
||||
}
|
||||
global $INGAME_WEBPATH;
|
||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $result;
|
||||
|
||||
}else{
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
<?php
|
||||
|
||||
function show_ticket_log(){
|
||||
|
||||
global $INGAME_WEBPATH;
|
||||
global $WEBPATH;
|
||||
//if logged in
|
||||
if(WebUsers::isLoggedIn() && isset($_GET['id'])){
|
||||
//only allow admins to browse the log!
|
||||
|
@ -23,7 +24,11 @@ function show_ticket_log(){
|
|||
$webUser2 = new WebUsers($log['argument']);
|
||||
$query_backpart = $webUser2->getUsername();
|
||||
}else if($log['action'] == 4){
|
||||
$query_backpart = "<a href='ams?page=show_reply&id=" . $log['argument'] . "'>ID#" . $log['argument'] . "</a>";
|
||||
if (Helpers::check_if_game_client()) {
|
||||
$query_backpart = "<a href='".$INGAME_WEBPATH."?page=show_reply&id=" . $log['argument'] . "'>ID#" . $log['argument'] . "</a>";
|
||||
}else{
|
||||
$query_backpart = "<a href='".$WEBPATH."?page=show_reply&id=" . $log['argument'] . "'>ID#" . $log['argument'] . "</a>";
|
||||
}
|
||||
}else if($log['action'] == 5){
|
||||
$statusArray = Ticket::getStatusArray();
|
||||
$query_backpart = $statusArray[$log['argument'] ];
|
||||
|
@ -31,7 +36,11 @@ function show_ticket_log(){
|
|||
$priorityArray = Ticket::getPriorityArray();
|
||||
$query_backpart = $priorityArray[$log['argument'] ];
|
||||
}else if($log['action'] == 8){
|
||||
$query_backpart = "<a href='ams?page=show_sgroupy&id=" . $log['argument'] . "'>" . Support_Group::getGroup($log['argument'])->getName() . "</a>";
|
||||
if (Helpers::check_if_game_client()) {
|
||||
$query_backpart = "<a href='".$INGAME_WEBPATH."?page=show_sgroupy&id=" . $log['argument'] . "'>" . Support_Group::getGroup($log['argument'])->getName() . "</a>";
|
||||
}else{
|
||||
$query_backpart = "<a href='".$WEBPATH."?page=show_sgroupy&id=" . $log['argument'] . "'>" . Support_Group::getGroup($log['argument'])->getName() . "</a>";
|
||||
}
|
||||
}
|
||||
$result['ticket_logs'][$i]['query'] = $author . " " . $log_action_array[$log['action']] . " " . $query_backpart;
|
||||
$result['ticket_logs'][$i]['timestamp_elapsed'] = Gui_Elements::time_elapsed_string($log['timestamp']);
|
||||
|
@ -40,6 +49,8 @@ function show_ticket_log(){
|
|||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
|
||||
$result['isMod'] = "TRUE";
|
||||
}
|
||||
global $INGAME_WEBPATH;
|
||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $result;
|
||||
|
||||
}else{
|
||||
|
|
|
@ -28,6 +28,8 @@ function show_user(){
|
|||
$ticketlist = Ticket::getTicketsOf($ticket_user->getTUserId());
|
||||
|
||||
$result['ticketlist'] = Gui_Elements::make_table($ticketlist, Array("getTId","getTimestamp","getTitle","getStatus","getStatusText","getStatusText","getCategoryName"), Array("tId","timestamp","title","status","statustext","statusText","category"));
|
||||
global $INGAME_WEBPATH;
|
||||
$result['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $result;
|
||||
|
||||
}else{
|
||||
|
|
|
@ -18,6 +18,8 @@ function userlist(){
|
|||
if (Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
|
||||
$pageResult['isAdmin'] = "TRUE";
|
||||
}
|
||||
global $INGAME_WEBPATH;
|
||||
$pageResult['ingame_webpath'] = $INGAME_WEBPATH;
|
||||
return $pageResult;
|
||||
}else{
|
||||
//ERROR: No access!
|
||||
|
|
|
@ -27,6 +27,7 @@ global $WEBPATH;
|
|||
global $INGAME_WEBPATH;
|
||||
global $BASE_WEBPATH;
|
||||
global $INGAME_LAYOUT;
|
||||
global $FORCE_INGAME;
|
||||
|
||||
require 'ams_lib/libinclude.php';
|
||||
spl_autoload_register('__autoload');
|
||||
|
@ -268,9 +269,12 @@ function ryzommanage_block_view($delta = '')
|
|||
|
||||
|
||||
|
||||
function _ams_handler()
|
||||
function _ams_handler($ingame = false)
|
||||
{
|
||||
global $BASE_WEBPATH;
|
||||
global $SITEBASE;
|
||||
global $INGAME_WEBPATH;
|
||||
|
||||
//Decide what page to load
|
||||
if ( ! isset( $_GET["page"]) ){
|
||||
if(isset($_SESSION['user'])){
|
||||
|
@ -281,7 +285,11 @@ function _ams_handler()
|
|||
}
|
||||
}else{
|
||||
//default page
|
||||
header("Location: ".$BASE_WEBPATH."/user/login");
|
||||
if($ingame){
|
||||
header("Location: ".$INGAME_WEBPATH."?page=login");
|
||||
}else{
|
||||
header("Location: ".$BASE_WEBPATH."/user/login");
|
||||
}
|
||||
exit;
|
||||
}
|
||||
}else{
|
||||
|
@ -291,13 +299,13 @@ function _ams_handler()
|
|||
//perform an action in case one is specified
|
||||
//else check if a php page is included in the inc folder, else just set page to the get param
|
||||
if ( isset( $_POST["function"] ) ){
|
||||
$filename = dirname( __FILE__ ).'/func/' . $_POST["function"] . '.php';
|
||||
$filename = $SITEBASE . '/func/' . $_POST["function"] . '.php';
|
||||
if(is_file($filename)){
|
||||
require($filename);
|
||||
$return = $_POST["function"]();
|
||||
}
|
||||
}else{
|
||||
$filename = dirname( __FILE__ ).'/inc/' . $page . '.php';
|
||||
$filename = $SITEBASE . '/inc/' . $page . '.php';
|
||||
if(is_file($filename)){
|
||||
require_once($filename);
|
||||
$return = $page();
|
||||
|
@ -324,7 +332,12 @@ function _ams_handler()
|
|||
}
|
||||
|
||||
//return $page;
|
||||
return helpers :: loadTemplate( $page , $return, true);
|
||||
if ($ingame){
|
||||
helpers :: loadTemplate( $page , $return );
|
||||
}else{
|
||||
return helpers :: loadTemplate( $page , $return, true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -366,8 +379,8 @@ function _collect_register($nids, $collection)
|
|||
function _collect_ingame_ams($nids, $collection)
|
||||
{
|
||||
//if not using ryzom core client show registration page
|
||||
if (Helpers::check_if_game_client(true)) {
|
||||
_return_ingame_httpdata();
|
||||
if (Helpers::check_if_game_client()) {
|
||||
_ams_handler(true);
|
||||
} else {
|
||||
//redirect to registration page
|
||||
global $WEBPATH;
|
||||
|
@ -376,70 +389,6 @@ function _collect_ingame_ams($nids, $collection)
|
|||
}
|
||||
|
||||
|
||||
function _return_ingame_httpdata(){
|
||||
|
||||
//Decide what page to load
|
||||
if ( ! isset( $_GET["page"]) ){
|
||||
if(isset($_SESSION['user'])){
|
||||
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
|
||||
$page = 'dashboard';
|
||||
}else{
|
||||
$page = 'show_user';
|
||||
}
|
||||
}else{
|
||||
//default page
|
||||
$page = 'login';
|
||||
}
|
||||
}else{
|
||||
$page = $_GET["page"];
|
||||
}
|
||||
|
||||
//perform an action in case one is specified
|
||||
//else check if a php page is included in the inc folder, else just set page to the get param
|
||||
global $SITEBASE;
|
||||
if ( isset( $_POST["function"] ) ){
|
||||
$filename = $SITEBASE.'/func/' . $_POST["function"] . '.php';
|
||||
if(is_file($filename)){
|
||||
require($filename);
|
||||
$return = $_POST["function"]();
|
||||
}
|
||||
}else{
|
||||
|
||||
$filename = $SITEBASE.'/inc/' . $page . '.php';
|
||||
if(is_file($filename)){
|
||||
require_once($filename);
|
||||
$return = $page();
|
||||
}
|
||||
}
|
||||
|
||||
//add username to the return array in case logged in.
|
||||
if(isset($_SESSION['user'])){
|
||||
$return['username'] = $_SESSION['user'];
|
||||
}
|
||||
|
||||
//Set permission
|
||||
if(isset($_SESSION['ticket_user'])){
|
||||
$return['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
|
||||
}else{
|
||||
//default permission
|
||||
$return['permission'] = 0;
|
||||
}
|
||||
|
||||
//hide sidebar + topbar in case of login/register
|
||||
if($page == 'login' || $page == 'register' || $page == 'logout'){
|
||||
$return['no_visible_elements'] = 'TRUE';
|
||||
}else{
|
||||
$return['no_visible_elements'] = 'FALSE';
|
||||
}
|
||||
|
||||
//handle error page
|
||||
if($page == 'error'){
|
||||
$return['permission'] = 0;
|
||||
$return['no_visible_elements'] = 'FALSE';
|
||||
}
|
||||
|
||||
helpers :: loadTemplate( $page , $return );
|
||||
}
|
||||
/**
|
||||
*
|
||||
* Function _collect_register
|
||||
|
|
Loading…
Reference in a new issue