Biggest push ever! :D Kinda made it possible to only need a few files in the inc/func of the drupal module, all others can be copied of the www version

This commit is contained in:
Quitta 2013-09-09 03:47:32 +02:00
parent 86033768fa
commit d7cab1ab28
103 changed files with 407 additions and 7528 deletions

View file

@ -5,7 +5,6 @@ class Helpers{
public static function loadTemplate( $template, $vars = array (), $returnHTML = false ) public static function loadTemplate( $template, $vars = array (), $returnHTML = false )
{ {
global $AMS_LIB; global $AMS_LIB;
global $SITEBASE; global $SITEBASE;
global $AMS_TRANS; global $AMS_TRANS;
@ -25,7 +24,8 @@ class Helpers{
$smarty -> cache_lifetime = 120; $smarty -> cache_lifetime = 120;
helpers :: create_folders (); helpers :: create_folders ();
if ( helpers::check_if_game_client() or $forcelibrender = false ){ global $FORCE_INGAME;
if ( helpers::check_if_game_client() or $FORCE_INGAME ){
$smarty -> template_dir = $AMS_LIB . '/ingame_templates/'; $smarty -> template_dir = $AMS_LIB . '/ingame_templates/';
$smarty -> setConfigDir( $AMS_LIB . '/configs' ); $smarty -> setConfigDir( $AMS_LIB . '/configs' );
$variables = parse_ini_file( $AMS_LIB . '/configs/ingame_layout.ini', true ); $variables = parse_ini_file( $AMS_LIB . '/configs/ingame_layout.ini', true );
@ -90,7 +90,8 @@ class Helpers{
static public function check_if_game_client() static public function check_if_game_client()
{ {
// if HTTP_USER_AGENT is not set then its ryzom core // if HTTP_USER_AGENT is not set then its ryzom core
if ( strpos($_SERVER['HTTP_USER_AGENT'],"Ryzom") === 0){ global $FORCE_INGAME;
if (( strpos($_SERVER['HTTP_USER_AGENT'],"Ryzom") === 0) || $FORCE_INGAME){
return true; return true;
}else{ }else{
return false; return false;

View file

@ -32,7 +32,7 @@
<tr><td> <tr><td>
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>
<form id="changePassword" class="form-vertical" method="post" action="index.php?page=createticket&id={$target_id}"> <form id="changePassword" class="form-vertical" method="post" action="{$ingame_webpath}?page=createticket&id={$target_id}">
<table cellspacing="3"> <table cellspacing="3">
<tr> <tr>
<td valign="middle">Title: </td> <td valign="middle">Title: </td>

View file

@ -40,10 +40,10 @@
<td width="25%" align = "center" ><font color="{$info_color}">Total amount of Tickets</font></td> <td width="25%" align = "center" ><font color="{$info_color}">Total amount of Tickets</font></td>
</tr> </tr>
<tr> <tr>
<td width="25%" align = "center" ><a href="index.php?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=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="index.php?page=show_queue&get=todo"><font color="{$notification_color}">{$nrToDo}</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="index.php?page=show_ticket&id={$newestTicketId}"><font color="{$notification_color}">{$newestTicketTitle}</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="index.php?page=show_queue&get=all"><font color="{$notification_color}">{$nrTotalTickets}</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> </tr>
</table> </table>
</td></tr> </td></tr>

View file

@ -1,18 +1,18 @@
{extends file="layout.tpl"} {extends file="layout.tpl"}
{block name=menu} {block name=menu}
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php"><h5> Dashboard</h5></a></td> <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 width="3"></td>
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php?page=show_user"><h5> Profile</h5></a></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 width="3"></td>
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php?page=settings"><h5> Settings</h5></a></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="3"></td>
<td width="10" align="center">|</td> <td width="10" align="center">|</td>
<td width="3"></td> <td width="3"></td>
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php?page=userlist"><h5> Users</h5></a></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 width="3"></td>
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php?page=show_queue&get=todo"><h5> Queues</h5></a></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 width="3"></td>
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php?page=sgroup_list"><h5> Support Groups</h5></a></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> <td width="3"></td>
{/block} {/block}

View file

@ -1,18 +1,18 @@
{extends file="layout.tpl"} {extends file="layout.tpl"}
{block name=menu} {block name=menu}
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php"><h5> Dashboard</h5></a></td> <td height="25" valign="middle" nowrap><a class="ajax-link" href="{$ingame_webpath}"><h5> Dashboard</h5></a></td>
<td width="3"></td> <td width="3"></td>
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php?page=show_user"><h5> Profile</h5></a></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 width="3"></td>
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php?page=settings"><h5> Settings</h5></a></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="3"></td>
<td width="10" align="center">|</td> <td width="10" align="center">|</td>
<td width="3"></td> <td width="3"></td>
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php?page=userlist"><h5> Users</h5></a></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 width="3"></td>
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php?page=show_queue&get=todo"><h5> Queues</h5></a></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 width="3"></td>
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php?page=sgroup_list"><h5> Support Groups</h5></a></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> <td width="3"></td>
{/block} {/block}

View file

@ -1,12 +1,12 @@
{extends file="layout.tpl"} {extends file="layout.tpl"}
{block name=menu} {block name=menu}
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php?page=show_user"><h5> Profile</h5></a></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 width="3"></td>
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php?page=settings"><h5> Settings</h5></a></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="3"></td>
<td width="10" align="center">|</td> <td width="10" align="center">|</td>
<td width="3"></td> <td width="3"></td>
<td height="25" valign="middle" nowrap><a class="ajax-link" href="index.php?page=createticket"><h5> Create New Ticket</h5></a></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> <td width="3"></td>
{/block} {/block}

View file

@ -3,14 +3,13 @@
<div class="alert alert-info"> <div class="alert alert-info">
<h3>{$login_info}</h3> <h3>{$login_info}</h3>
</div> </div>
<form method="post" action="index.php" class="form-horizontal"> <form method="post" action="{$ingame_webpath}?page=login" class="form-horizontal">
<br/> <br/>
<p> <p>
Username: Username:
<input type="text" value="" id="Username" name="Username" class="input-large span10" placeholder="Username"> <input type="text" value="" id="Username" name="Username" class="input-large span10" placeholder="Username">
</p> </p>
<p> <p>
Password: Password:
<input type="text" value="" id="Password" name="Password" class="input-large span10" placeholder="Password"> <input type="text" value="" id="Password" name="Password" class="input-large span10" placeholder="Password">
@ -34,7 +33,7 @@
</p> </p>
{/if} {/if}
<p> <p>
<font color="green">{$login_register_message} <a href="?page=register">{$login_register_message_here}</a></font>! <font color="green">{$login_register_message} <a href="{$ingame_webpath}?page=register">{$login_register_message_here}</a></font>!
</p> </p>
</td></tr> </td></tr>
</table> </table>

View file

@ -6,7 +6,7 @@
<div> <div>
{$welcome_message} {$welcome_message}
</div> </div>
<a href="index.php">click hereeeee</a>
<form name="Page1" <form name="Page1"
method="post" method="post"
> >

View file

@ -8,18 +8,18 @@
<td> <td>
<table cellspacing="0" cellpadding="4"> <table cellspacing="0" cellpadding="4">
<tr> <tr>
<td valign="middle" nowrap><a href="index.php?page=show_user&id={$target_id}"><h7>Browse User</h7></a></td> <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="index.php?page=createticket&user_id={$target_id}"><h7>Send Ticket</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 isset($isAdmin) and $isAdmin eq 'TRUE' and $target_id neq 1}
{if $userPermission eq 1} {if $userPermission eq 1}
<td valign="middle" nowrap><a href="index.php?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=2"><h7>Make Moderator</h7></a></td>
<td valign="middle" nowrap><a href="index.php?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</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 } {else if $userPermission eq 2 }
<td valign="middle" nowrap><a href="index.php?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=1"><h7>Demote to User</h7></a></td>
<td valign="middle" nowrap><a href="index.php?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</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 } {else if $userPermission eq 3 }
<td valign="middle" nowrap><a href="index.php?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=1"><h7>Demote to User</h7></a></td>
<td valign="middle" nowrap><a href="index.php?page=change_permission&user_id={$target_id}&value=2"><h7>Demote to Moderator</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}
{/if} {/if}
</tr> </tr>
@ -40,7 +40,7 @@
<tr><td height="7"></td><td></td></tr> <tr><td height="7"></td><td></td></tr>
<tr> <tr>
<td width="3%"></td> <td width="3%"></td>
<td width="100%" height="12" valign="middle"><h1>Change Settings</h1></td> <td width="100%" height="12" valign="middle"><h1>Change Settings of {$target_username}</h1></td>
</tr> </tr>
<tr> <tr>
<td height="5"></td><td></td> <td height="5"></td><td></td>
@ -70,7 +70,7 @@
<p><h3>Change Password</h3></p> <p><h3>Change Password</h3></p>
<form id="changePassword" method="post" action="index.php?page=settings&id={$target_id}"> <form id="changePassword" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}">
<table cellpadding="1"> <table cellpadding="1">
{if !isset($changesOther) or $changesOther eq "FALSE"} {if !isset($changesOther) or $changesOther eq "FALSE"}
<tr> <tr>
@ -124,7 +124,7 @@
<tr><td> <tr><td>
<p><h3>Change Email</h3></p> <p><h3>Change Email</h3></p>
<form id="changeEmail" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}"> <form id="changeEmail" class="form-vertical" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}">
<table> <table>
<tr><td valign="middle"> <tr><td valign="middle">
New Email: New Email:
@ -156,7 +156,7 @@
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>
<p><h3>Change Info</h3></p> <p><h3>Change Info</h3></p>
<form id="changeEmail" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}"> <form id="changeEmail" class="form-vertical" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}">
<table> <table>
<tr> <tr>
<td valign="middle">Firstname: </td> <td valign="middle">Firstname: </td>
@ -212,7 +212,7 @@
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>
<p><h3>Ticket-Update Mail Settings</h3></p> <p><h3>Ticket-Update Mail Settings</h3></p>
<form id="changeReceiveMail" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}"> <form id="changeReceiveMail" class="form-vertical" method="post" action="{$ingame_webpath}?page=settings&id={$target_id}">
<table> <table>
<tr><td valign="middle"> <tr><td valign="middle">
Receive ticket updates Receive ticket updates

View file

@ -35,7 +35,7 @@
<tr><td> <tr><td>
<p><h3>Add a Support group</h3></p> <p><h3>Add a Support group</h3></p>
<form id="addSGroup" class="form-vertical" method="post" action="index.php"> <form id="addSGroup" class="form-vertical" method="post" action="{$ingame_webpath}">
<table cellpadding="1"> <table cellpadding="1">
<tr> <tr>
<td> <td>
@ -123,10 +123,10 @@
{foreach from=$grouplist item=group} {foreach from=$grouplist item=group}
<tr> <tr>
<td>{$group.sGroupId}</td> <td>{$group.sGroupId}</td>
<td><a href ="index.php?page=show_sgroup&id={$group.sGroupId}">{$group.name}</a></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"><span class="label label-important" >{$group.tag}</span></td>
<td class="center">{$group.groupemail}</td> <td class="center">{$group.groupemail}</td>
{if isset($isAdmin) && $isAdmin eq 'TRUE'}<td class="center"><a href="index.php?page=sgroup_list&delete={$group.sGroupId}"><font color="red">Delete</font></a></td>{/if} {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> </tr>
{/foreach} {/foreach}
</table> </table>

View file

@ -8,11 +8,11 @@
<td> <td>
<table cellspacing="0" cellpadding="4"> <table cellspacing="0" cellpadding="4">
<tr> <tr>
<td valign="middle" nowrap><a href="index.php?page=show_queue&get=todo">Todo tickets</a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_queue&get=todo">Todo tickets</a></td>
<td valign="middle" nowrap><a href="index.php?page=show_queue&get=all">All 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="index.php?page=show_queue&get=all_open">All open 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="index.php?page=show_queue&get=archive">Ticket Archive</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="index.php?page=show_queue&get=not_assigned">Not Assigned Tickets</a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_queue&get=not_assigned">Not Assigned Tickets</a></td>
</tr> </tr>
</table> </table>
</td> </td>
@ -60,7 +60,7 @@
<tr><td> <tr><td>
<p><h3>Tickets</h3></p> <p><h3>Tickets</h3></p>
<p> <p>
<form id="create_queue" method="post" action="index.php?page=show_queue&get=create"> <form id="create_queue" method="post" action="{$ingame_webpath}?page=show_queue&get=create">
<table width="100%" bgcolor="#00000060" border="1"> <table width="100%" bgcolor="#00000060" border="1">
<tr> <tr>
<td width="5"></td> <td width="5"></td>
@ -129,8 +129,8 @@
{foreach from=$tickets item=ticket} {foreach from=$tickets item=ticket}
<tr> <tr>
<td>{$ticket.tId}</td> <td>{$ticket.tId}</td>
<td><a href ="index.php?page=show_ticket&id={$ticket.tId}">{$ticket.title}</a></td> <td><a href ="{$ingame_webpath}?page=show_ticket&id={$ticket.tId}">{$ticket.title}</a></td>
<td>{if $ticket.assignedText neq ""} <a href="index.php?page=show_user&id={$ticket.assigned}">{$ticket.assignedText}</a>{else} {$not_assigned} {/if}</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"><span title="{$ticket.timestamp_elapsed}" data-rel="tooltip" data-placement="right">{$ticket.timestamp}</span></td>
<td class="center">{$ticket.category}</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.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>
@ -139,19 +139,19 @@
{if $ticket.forwardedGroupName eq "0"} {if $ticket.forwardedGroupName eq "0"}
{$public_sgroup} {$public_sgroup}
{else} {else}
<a href="index.php?page=show_sgroup&id={$ticket.forwardedGroupId}">{$ticket.forwardedGroupName}</a> <a href="{$ingame_webpath}?page=show_sgroup&id={$ticket.forwardedGroupId}">{$ticket.forwardedGroupName}</a>
{/if} {/if}
</td> </td>
<td> <td>
{if $ticket.assigned eq 0} {if $ticket.assigned eq 0}
<form id="assign_ticket" class="form-vertical" method="post" action="index.php?page=show_queue&get=todo" style="margin:0px 0px 0px;"> <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="ticket_id" value="{$ticket.tId}">
<input type="hidden" name="action" value="assignTicket"> <input type="hidden" name="action" value="assignTicket">
<input type="submit" value="Assign Ticket"/> <input type="submit" value="Assign Ticket"/>
</form> </form>
{else if $ticket.assigned eq $user_id} {else if $ticket.assigned eq $user_id}
<form id="assign_ticket" class="form-vertical" method="post" action="index.php?page=show_queue&get=todo" style="margin:0px 0px 0px;"> <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="ticket_id" value="{$ticket.tId}">
<input type="hidden" name="action" value="unAssignTicket"> <input type="hidden" name="action" value="unAssignTicket">
<input type="submit" value="Remove Assign"/> <input type="submit" value="Remove Assign"/>

View file

@ -8,8 +8,8 @@
<td> <td>
<table cellspacing="0" cellpadding="4"> <table cellspacing="0" cellpadding="4">
<tr> <tr>
<td valign="middle" nowrap><a href="index.php?page=show_ticket&id={$ticket_id}">Show Ticket</a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket&id={$ticket_id}">Show Ticket</a></td>
<td valign="middle" nowrap><a href="index.php?page=show_ticket_log&id={$ticket_id}">Show Ticket Log</a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket_log&id={$ticket_id}">Show Ticket Log</a></td>
</tr> </tr>
</table> </table>
</td> </td>
@ -27,7 +27,7 @@
<tr><td height="7"></td><td></td></tr> <tr><td height="7"></td><td></td></tr>
<tr> <tr>
<td width="3%"></td> <td width="3%"></td>
<td width="100%" height="12" valign="middle"><h1>Reply ID#{$reply_id} of Ticket <a href="index.php?page=show_ticket&id={$ticket_id}">#{$ticket_id}</a></h1></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>
<tr> <tr>
<td height="5"></td><td></td> <td height="5"></td><td></td>

View file

@ -34,7 +34,7 @@
<tr><td> <tr><td>
<p><h3>Add user to the list</h3></p> <p><h3>Add user to the list</h3></p>
{if isset($isAdmin) && $isAdmin eq 'TRUE'} {if isset($isAdmin) && $isAdmin eq 'TRUE'}
<form id="addSGroup" class="form-vertical" method="post" action="index.php?page=show_sgroup&id={$target_id}"> <form id="addSGroup" class="form-vertical" method="post" action="{$ingame_webpath}?page=show_sgroup&id={$target_id}">
<table> <table>
<tr> <tr>
<td valign="middle">Username: </td> <td valign="middle">Username: </td>
@ -92,8 +92,8 @@
{foreach from=$userlist item=user} {foreach from=$userlist item=user}
<tr> <tr>
<td>{$user.tUserId}</td> <td>{$user.tUserId}</td>
<td><a href ="index.php?page=show_user&id={$user.tUserId}">{$user.name}</a></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="index.php?page=show_sgroup&id={$target_id}&delete={$user.tUserId}"><font color="red">Delete</font></a></td>{/if} {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> </tr>
{/foreach} {/foreach}
</table> </table>
@ -108,7 +108,7 @@
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>
<p><h3>Mail settings</h3></p> <p><h3>Mail settings</h3></p>
<form id="modifyMailSGroup" class="form-vertical" method="post" action="index.php?page=show_sgroup&id={$target_id}"> <form id="modifyMailSGroup" class="form-vertical" method="post" action="{$ingame_webpath}?page=show_sgroup&id={$target_id}">
<table> <table>
<tr> <tr>

View file

@ -8,9 +8,9 @@
<td> <td>
<table cellspacing="0" cellpadding="4"> <table cellspacing="0" cellpadding="4">
<tr> <tr>
{if isset($isMod) and $isMod eq "TRUE"}<td valign="middle" nowrap><a href="index.php?page=show_ticket_log&id={$ticket_tId}">Show Ticket Log</a></td>{/if} {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="index.php?page=createticket&user_id={$ticket_author}">Send Other Ticket</a></td> <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="index.php?page=show_ticket_info&id={$ticket_tId}">Show Additional Info</a></td>{/if} {if $hasInfo}<td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket_info&id={$ticket_tId}">Show Additional Info</a></td>{/if}
</tr> </tr>
</table> </table>
</td> </td>
@ -74,13 +74,13 @@
{if $ticket_forwardedGroupName eq "0"} {if $ticket_forwardedGroupName eq "0"}
{$public_sgroup} {$public_sgroup}
{else} {else}
<a href="index.php?page=show_sgroup&id={$ticket_forwardedGroupId}"><font color="white">{$ticket_forwardedGroupName}</font></a> <a href="{$ingame_webpath}?page=show_sgroup&id={$ticket_forwardedGroupId}"><font color="white">{$ticket_forwardedGroupName}</font></a>
{/if} {/if}
</span> </span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><font color="{$info_color}">Assigned To: </font>{if $ticket_assignedTo neq ""} <a href="index.php?page=show_user&id={$ticket_assignedTo}">{$ticket_assignedToText}</a>{else} {$not_assigned} {/if}</td> <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>
<td></td> <td></td>
</tr> </tr>
@ -125,7 +125,7 @@
<tr> <tr>
<td> <td>
<form id="reply" class="form-vertical" method="post" action="index.php"> <form id="reply" class="form-vertical" method="post" action="{$ingame_webpath}">
<table cellpadding="4"> <table cellpadding="4">
<tr><td height="5"></td></tr> <tr><td height="5"></td></tr>
<tr> <tr>
@ -193,13 +193,13 @@
<p> <p>
Ticket Assigning: Ticket Assigning:
{if $ticket_assignedTo eq 0} {if $ticket_assignedTo eq 0}
<form id="assign_ticket" method="post" action="index.php?page=show_ticket&id={$ticket_tId}"> <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="ticket_id" value="{$ticket_tId}">
<input type="hidden" name="action" value="assignTicket"> <input type="hidden" name="action" value="assignTicket">
<input type="submit" value="Assign Ticket"/> <input type="submit" value="Assign Ticket"/>
</form> </form>
{else if $ticket_assignedTo eq $user_id} {else if $ticket_assignedTo eq $user_id}
<form id="assign_ticket" method="post" action="index.php?page=show_ticket&id={$ticket_tId}"> <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="ticket_id" value="{$ticket_tId}">
<input type="hidden" name="action" value="unAssignTicket"> <input type="hidden" name="action" value="unAssignTicket">
<input type="submit"value="Remove Assign"/> <input type="submit"value="Remove Assign"/>
@ -233,7 +233,7 @@
<td> <td>
<p> <p>
Forward to Group: Forward to Group:
<form id="forward" method="post" action="index.php?page=show_ticket&id={$ticket_tId}" > <form id="forward" method="post" action="{$ingame_webpath}?page=show_ticket&id={$ticket_tId}" >
<select name="group"> <select name="group">
<option></option> <option></option>
{foreach from=$sGroups key=k item=v} {foreach from=$sGroups key=k item=v}

View file

@ -8,9 +8,9 @@
<td> <td>
<table cellspacing="0" cellpadding="4"> <table cellspacing="0" cellpadding="4">
<tr> <tr>
{if isset($isMod) and $isMod eq "TRUE"}<td valign="middle" nowrap><a href="index.php?page=show_ticket_log&id={$ticket_id}">Show Ticket Log</a></td>{/if} {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="index.php?page=createticket&user_id={$ticket_author}">Send Other Ticket</a></td> <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="index.php?page=show_ticket&id={$ticket_id}">Show Ticket</a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket&id={$ticket_id}">Show Ticket</a></td>
</tr> </tr>
</table> </table>
</td> </td>
@ -29,7 +29,7 @@
<tr><td height="7"></td><td></td></tr> <tr><td height="7"></td><td></td></tr>
<tr> <tr>
<td width="3%"></td> <td width="3%"></td>
<td width="100%" height="12" valign="middle"><h1>Additional Info For Ticket <a href="index.php?page=show_ticket&id={$ticket_id}">[#{$ticket_id}]</a></h1></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>
<tr> <tr>
<td height="5"></td><td></td> <td height="5"></td><td></td>
@ -64,31 +64,31 @@
<table cellpadding="3" width="100%"> <table cellpadding="3" width="100%">
<tr><td></td><td></td></tr> <tr><td></td><td></td></tr>
<tr> <tr>
<td width=30><img src="{$WEBPATH}/ams_lib/img/info/shard.png"/></td> <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> <td><font color="{$info_color}">Shard ID: </font>{$shard_id}</td>
</tr> </tr>
<tr> <tr>
<td width=30><img src="{$WEBPATH}/ams_lib/img/info/user.png"/></td> <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> <td><font color="{$info_color}">User_Id: </font>{$user_id}</td>
</tr> </tr>
<tr> <tr>
<td width=30><img src="{$WEBPATH}/ams_lib/img/info/position.png"/></td> <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> <td><font color="{$info_color}">User Position: </font>{$user_position}</td>
</tr> </tr>
<tr> <tr>
<td width=30><img src="{$WEBPATH}/ams_lib/img/info/view.png"/></td> <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> <td><font color="{$info_color}">View Position: </font>{$view_position}</td>
</tr> </tr>
<tr> <tr>
<td width=30><img src="{$WEBPATH}/ams_lib/img/info/client.png"/></td> <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> <td><font color="{$info_color}">Client_Version: </font>{$client_version}</td>
</tr> </tr>
<tr> <tr>
<td width=30><img src="{$WEBPATH}/ams_lib/img/info/patch.png"/></td> <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> <td><font color="{$info_color}">Patch_Version: </font>{$patch_version}</td>
</tr> </tr>
<tr> <tr>
<td><img src="{$WEBPATH}/ams_lib/img/info/server.png"/></td> <td><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/server.png"/></td>
<td><font color="{$info_color}"> Server_Tick: </font>{$server_tick}</td> <td><font color="{$info_color}"> Server_Tick: </font>{$server_tick}</td>
</tr> </tr>
</table> </table>
@ -102,31 +102,31 @@
<table cellpadding="3" width="100%"> <table cellpadding="3" width="100%">
<tr><td></td><td></td></tr> <tr><td></td><td></td></tr>
<tr> <tr>
<td width=30><img src="{$WEBPATH}/ams_lib/img/info/memory.png"/></td> <td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/memory.png"/></td>
<td><font color="{$info_color}">Memory: </font>{$memory}</td> <td><font color="{$info_color}">Memory: </font>{$memory}</td>
</tr> </tr>
<tr> <tr>
<td width=30><img src="{$WEBPATH}/ams_lib/img/info/processor.png"/></td> <td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/processor.png"/></td>
<td><font color="{$info_color}">Processor: </font>{$processor}</td> <td><font color="{$info_color}">Processor: </font>{$processor}</td>
</tr> </tr>
<tr> <tr>
<td width=30><img src="{$WEBPATH}/ams_lib/img/info/cpuid.png"/></td> <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> <td><font color="{$info_color}">Cpu_Id: </font>{$cpu_id}</td>
</tr> </tr>
<tr> <tr>
<td width=30><img src="{$WEBPATH}/ams_lib/img/info/mask.png"/></td> <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> <td><font color="{$info_color}">Cpu_Mask: </font>{$cpu_mask}</td>
</tr> </tr>
<tr> <tr>
<td width=30><img src="{$WEBPATH}/ams_lib/img/info/ht.png"/></td> <td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/ht.png"/></td>
<td><font color="{$info_color}">HT: </font>{$ht}</td> <td><font color="{$info_color}">HT: </font>{$ht}</td>
</tr> </tr>
<tr> <tr>
<td width=30><img src="{$WEBPATH}/ams_lib/img/info/os.png"/></td> <td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/os.png"/></td>
<td><font color="{$info_color}">OS: </font>{$os}</td> <td><font color="{$info_color}">OS: </font>{$os}</td>
</tr> </tr>
<tr> <tr>
<td width=30><img src="{$WEBPATH}/ams_lib/img/info/nel.png"/></td> <td width=30><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/nel.png"/></td>
<td><font color="{$info_color}">NeL3D: </font>{$nel3d}</td> <td><font color="{$info_color}">NeL3D: </font>{$nel3d}</td>
</tr> </tr>
</table> </table>
@ -140,11 +140,11 @@
<table cellpadding="3" width="100%"> <table cellpadding="3" width="100%">
<tr><td></td><td></td></tr> <tr><td></td><td></td></tr>
<tr> <tr>
<td width=30><img src="{$WEBPATH}/ams_lib/img/info/connect.png"/></td> <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> <td><font color="{$info_color}">Connect_State: </font>{$connect_state}</td>
</tr> </tr>
<tr> <tr>
<td width=30><img src="{$WEBPATH}/ams_lib/img/info/local.png"/></td> <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> <td><font color="{$info_color}">Local_Address: </font>{$local_address}</td>
</tr> </tr>
</table> </table>

View file

@ -8,7 +8,7 @@
<td> <td>
<table cellspacing="0" cellpadding="4"> <table cellspacing="0" cellpadding="4">
<tr> <tr>
<td valign="middle" nowrap><a href="index.php?page=show_ticket&id={$ticket_id}">Show Ticket</a></td> <td valign="middle" nowrap><a href="{$ingame_webpath}?page=show_ticket&id={$ticket_id}">Show Ticket</a></td>
</tr> </tr>
</table> </table>
</td> </td>
@ -53,7 +53,7 @@
<tr><td> <tr><td>
<table cellpadding="10"> <table cellpadding="10">
<tr><td> <tr><td>
<p><h3>Title: <a href="index.php?page=show_ticket&id={$ticket_id}">{$ticket_title}</a></h3></p> <p><h3>Title: <a href="{$ingame_webpath}?page=show_ticket&id={$ticket_id}">{$ticket_title}</a></h3></p>
<p> <p>
<table cellspacing="5"> <table cellspacing="5">
<tr bgcolor="{$table_header_tr_color}"> <tr bgcolor="{$table_header_tr_color}">

View file

@ -8,18 +8,18 @@
<td> <td>
<table cellspacing="0" cellpadding="4"> <table cellspacing="0" cellpadding="4">
<tr> <tr>
<td valign="middle" nowrap><a href="index.php?page=settings&id={$target_id}"><h7>Edit User</h7></a></td> <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="index.php?page=createticket&user_id={$target_id}"><h7>Send Ticket</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 isset($isAdmin) and $isAdmin eq 'TRUE' and $target_id neq 1}
{if $userPermission eq 1} {if $userPermission eq 1}
<td valign="middle" nowrap><a href="index.php?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=2"><h7>Make Moderator</h7></a></td>
<td valign="middle" nowrap><a href="index.php?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</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 } {else if $userPermission eq 2 }
<td valign="middle" nowrap><a href="index.php?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=1"><h7>Demote to User</h7></a></td>
<td valign="middle" nowrap><a href="index.php?page=change_permission&user_id={$target_id}&value=3"><h7>Make Admin</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 } {else if $userPermission eq 3 }
<td valign="middle" nowrap><a href="index.php?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=1"><h7>Demote to User</h7></a></td>
<td valign="middle" nowrap><a href="index.php?page=change_permission&user_id={$target_id}&value=2"><h7>Demote to Moderator</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}
{/if} {/if}
</tr> </tr>
@ -138,7 +138,7 @@
{foreach from=$ticketlist item=ticket} {foreach from=$ticketlist item=ticket}
<tr> <tr>
<td>{$ticket.tId}</td> <td>{$ticket.tId}</td>
<td><a href ="index.php?page=show_ticket&id={$ticket.tId}">{$ticket.title}</a></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.timestamp}</td>
<td class="center">{$ticket.category}</td> <td class="center">{$ticket.category}</td>

View file

@ -44,24 +44,24 @@
{foreach from=$userlist item=element} {foreach from=$userlist item=element}
<tr> <tr>
<td>{$element.id}</td> <td>{$element.id}</td>
<td class="center"><a href="index.php?page=show_user&id={$element.id}">{$element.username}</a></td> <td class="center"><a href="{$ingame_webpath}?page=show_user&id={$element.id}">{$element.username}</a></td>
<td class="center">{$element.email}</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 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 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} {if $element.permission eq 3}<td class="center"><font color="{$admin_color}">Admin</font></td>{/if}
<td class="center"> <td class="center">
<a href="index.php?page=show_user&id={$element.id}">Show User</a> <a href="{$ingame_webpath}?page=show_user&id={$element.id}">Show User</a>
<a href="index.php?page=settings&id={$element.id}">Edit 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 isset($isAdmin) and $isAdmin eq 'TRUE' and $element.id neq 1}
{if $element.permission eq 1} {if $element.permission eq 1}
<a href="index.php?page=change_permission&user_id={$element.id}&value=2">Make Moderator</a> <a href="{$ingame_webpath}?page=change_permission&user_id={$element.id}&value=2">Make Moderator</a>
<a href="index.php?page=change_permission&user_id={$element.id}&value=3">Make Admin</a> <a href="{$ingame_webpath}?page=change_permission&user_id={$element.id}&value=3">Make Admin</a>
{else if $element.permission eq 2 } {else if $element.permission eq 2 }
<a href="index.php?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=1">Demote to User</a>
<a href="index.php?page=change_permission&user_id={$element.id}&value=3">Make Admin</a> <a href="{$ingame_webpath}?page=change_permission&user_id={$element.id}&value=3">Make Admin</a>
{else if $element.permission eq 3 } {else if $element.permission eq 3 }
<a href="index.php?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=1">Demote to User</a>
<a href="index.php?page=change_permission&user_id={$element.id}&value=2">Demote to Moderator</a> <a href="{$ingame_webpath}?page=change_permission&user_id={$element.id}&value=2">Demote to Moderator</a>
{/if} {/if}
{/if} {/if}
</td> </td>
@ -73,11 +73,11 @@
<tr><td align = "center"> <tr><td align = "center">
<table> <table>
<tr> <tr>
<td><a href="index.php?page=userlist&pagenum=1">&laquo;</a></td> <td><a href="{$ingame_webpath}?page=userlist&pagenum=1">&laquo;</a></td>
{foreach from=$links item=link} {foreach from=$links item=link}
<td {if $link == $currentPage}bgcolor="{$pagination_current_page_bg}"{/if}><a href="index.php?page=userlist&pagenum={$link}">{$link}</a></td> <td {if $link == $currentPage}bgcolor="{$pagination_current_page_bg}"{/if}><a href="{$ingame_webpath}?page=userlist&pagenum={$link}">{$link}</a></td>
{/foreach} {/foreach}
<td><a href="index.php?page=userlist&pagenum={$lastPage}">&raquo;</a></td> <td><a href="{$ingame_webpath}?page=userlist&pagenum={$lastPage}">&raquo;</a></td>
</tr> </tr>
</table> </table>
</td></tr> </td></tr>

View file

@ -3,10 +3,14 @@
// Base include file for library functions for AMS // Base include file for library functions for AMS
// *********************************************** // ***********************************************
function __autoload( $className ){ function __autoload( $className ){
if(file_exists( '/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/ams_lib/autoload/' . strtolower ( $className ) . '.php')){ global $AMS_LIB;
global $SITEBASE;
if(file_exists( $AMS_LIB.'/autoload/' . strtolower ( $className ) . '.php')){
require_once 'autoload/' . strtolower ( $className ) . '.php'; require_once 'autoload/' . strtolower ( $className ) . '.php';
} }
if($className == "WebUsers") if($className == "WebUsers"){
require_once '/home/daan/ryzom/ryzomcore/code/ryzom/tools/server/ryzom_ams/www/html/autoload/' . strtolower ( $className ) . '.php'; require_once $SITEBASE.'/autoload/' . strtolower ( $className ) . '.php';
}
} }

View file

@ -1,101 +0,0 @@
{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}

View file

@ -1,81 +0,0 @@
{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}

View file

@ -1,81 +0,0 @@
{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"}

View file

@ -1,34 +0,0 @@
<!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>

View file

@ -1,19 +0,0 @@
{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}

View file

@ -1,18 +0,0 @@
{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}

View file

@ -1,13 +0,0 @@
{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}

View file

@ -1,39 +0,0 @@
<p>&nbsp;</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>

View file

@ -1,115 +0,0 @@
{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>

View file

@ -1,146 +0,0 @@
{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}

View file

@ -1,222 +0,0 @@
{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">&laquo;</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}">&raquo;</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}

View file

@ -1,88 +0,0 @@
{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}

View file

@ -1,171 +0,0 @@
{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}

View file

@ -1,285 +0,0 @@
{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}

View file

@ -1,168 +0,0 @@
{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}

View file

@ -1,88 +0,0 @@
{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}

View file

@ -1,163 +0,0 @@
{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}

View file

@ -1,96 +0,0 @@
{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">&laquo;</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}">&raquo;</a></td>
</tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
</td>
</tr>
</table>
</td></tr>
{/block}

View file

@ -1,45 +0,0 @@
<?php
function add_sgroup(){
global $INGAME_WEBPATH;
global $WEBPATH;
if(WebUsers::isLoggedIn()){
if( Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
$name = filter_var($_POST['Name'],FILTER_SANITIZE_STRING);
$inner_tag = filter_var($_POST['Tag'], FILTER_SANITIZE_STRING);
$tag = "[" . $inner_tag . "]";
$inner_tag = filter_var($_POST['Tag'], FILTER_SANITIZE_STRING);
$groupemail = filter_var($_POST['GroupEmail'], FILTER_SANITIZE_STRING);
$imap_mailserver = filter_var($_POST['IMAP_MailServer'], FILTER_SANITIZE_STRING);
$imap_username = filter_var($_POST['IMAP_Username'], FILTER_SANITIZE_STRING);
$imap_password = filter_var($_POST['IMAP_Password'], FILTER_SANITIZE_STRING);
$result['RESULT_OF_ADDING'] = Support_Group::createSupportGroup($name, $tag, $groupemail, $imap_mailserver, $imap_username, $imap_password);
$result['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
$result['no_visible_elements'] = 'FALSE';
$result['username'] = $_SESSION['user'];
//global $SITEBASE;
//require($SITEBASE . '/inc/sgroup_list.php');
//$result= array_merge($result, sgroup_list());
//return helpers :: loadtemplate( 'sgroup_list', $result, true);
if (Helpers::check_if_game_client()) {
header("Location: ".$INGAME_WEBPATH."?page=sgroup_list");
}else{
header("Location: ".$WEBPATH."?page=sgroup_list");
}
exit;
}else{
//ERROR: No access!
$_SESSION['error_code'] = "403";
header("Location: index.php?page=error");
exit;
}
}else{
//ERROR: not logged in!
header("Location: index.php");
exit;
}
}

View file

@ -1,48 +0,0 @@
<?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'])){
$name = filter_var($_POST['Name'],FILTER_SANITIZE_STRING);
$id = filter_var($_POST['target_id'],FILTER_SANITIZE_NUMBER_INT);
$user_id = WebUsers::getId($name);
if ($user_id != ""){
if (Ticket_User::constr_ExternId($user_id)->getPermission()>1){
$result['RESULT_OF_ADDING'] = Support_Group::addUserToSupportGroup($user_id, $id);
}else{
$result['RESULT_OF_ADDING'] = "NOT_MOD_OR_ADMIN";
}
}else{
$result['RESULT_OF_ADDING'] = "USER_NOT_EXISTING";
}
$result['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
$result['no_visible_elements'] = 'FALSE';
$result['username'] = $_SESSION['user'];
//global $SITEBASE;
//require_once($SITEBASE . 'inc/show_sgroup.php');
//$result= array_merge($result, show_sgroup());
//helpers :: loadtemplate( 'show_sgroup', $result);
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{
//ERROR: No access!
$_SESSION['error_code'] = "403";
header("Location: index.php?page=error");
exit;
}
}else{
//ERROR: not logged in!
header("Location: index.php");
exit;
}
}

View file

@ -1,93 +0,0 @@
<?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;
}
}

View file

@ -1,88 +0,0 @@
<?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;
}
}

View file

@ -1,58 +0,0 @@
<?php
function create_ticket(){
//if logged in
global $INGAME_WEBPATH;
global $WEBPATH;
if(WebUsers::isLoggedIn() && isset($_SESSION['ticket_user'])){
if(isset($_POST['target_id'])){
//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'])) ){
$category = filter_var($_POST['Category'], FILTER_SANITIZE_NUMBER_INT);
$title = filter_var($_POST['Title'], FILTER_SANITIZE_STRING);
$content = filter_var($_POST['Content'], FILTER_SANITIZE_STRING);
try{
if($_POST['target_id'] == $_SESSION['id']){
$author = unserialize($_SESSION['ticket_user'])->getTUserId();
}else{
$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);
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) {
//ERROR: LIB DB is not online!
print_r($e);
exit;
header("Location: index.php");
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=create_ticket");
exit;
}
}else{
//ERROR: user is not logged in
header("Location: index.php");
exit;
}
}

View file

@ -1,41 +0,0 @@
<?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);
$result = WebUsers::checkLoginMatch($username, $password);
if( $result != "fail"){
//handle successful login
$_SESSION['user'] = $username;
$_SESSION['id'] = $result['uid'];
$_SESSION['ticket_user'] = serialize(Ticket_User::constr_ExternId($result['uid']));
$user = new WebUsers($_SESSION['id']);
$_SESSION['Language'] = $user->getLanguage();
//go back to the index page.
if (Helpers::check_if_game_client()) {
header( 'Location: '. $INGAME_WEBPATH );
}else{
header( 'Location: '. $WEBPATH );
}
exit;
}else{
//handle login failure
$result = Array();
$result['login_error'] = 'TRUE';
$result['no_visible_elements'] = 'TRUE';
helpers :: loadtemplate( 'login', $result);
exit;
}
}catch (PDOException $e) {
//go to error page or something, because can't access website db
print_r($e);
exit;
}
}

View file

@ -1,59 +0,0 @@
<?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'])){
$sgroupid = filter_var($_POST['target_id'],FILTER_SANITIZE_NUMBER_INT);
$group = Support_Group::getGroup($sgroupid);
$groupemail = filter_var($_POST['GroupEmail'],FILTER_SANITIZE_STRING);
if(Users::validEmail($groupemail) || $groupemail == ""){
$password = filter_var($_POST['IMAP_Password'],FILTER_SANITIZE_STRING);
$group->setGroupEmail($groupemail);
$group->setIMAP_MailServer(filter_var($_POST['IMAP_MailServer'],FILTER_SANITIZE_STRING));
$group->setIMAP_Username(filter_var($_POST['IMAP_Username'],FILTER_SANITIZE_STRING));
//encrypt password!
global $cfg;
$crypter = new MyCrypt($cfg['crypt']);
$enc_password = $crypter->encrypt($password);
$group->setIMAP_Password($enc_password);
$group->update();
$result['RESULT_OF_MODIFYING'] = "SUCCESS";
if($password == ""){
$result['RESULT_OF_MODIFYING'] = "NO_PASSWORD";
}
}else{
$result['RESULT_OF_MODIFYING'] = "EMAIL_NOT_VALID";
}
$result['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
$result['no_visible_elements'] = 'FALSE';
$result['username'] = $_SESSION['user'];
//global $SITEBASE;
//require_once($SITEBASE . 'inc/show_sgroup.php');
//$result= array_merge($result, show_sgroup());
//helpers :: loadtemplate( 'show_sgroup', $result);
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{
//ERROR: No access!
$_SESSION['error_code'] = "403";
header("Location: index.php?page=error");
exit;
}
}else{
//ERROR: not logged in!
header("Location: index.php");
exit;
}
}

View file

@ -1,59 +0,0 @@
<?php
function reply_on_ticket(){
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);
$target_ticket = new Ticket();
$target_ticket->load_With_TId($ticket_id);
if(($target_ticket->getAuthor() == unserialize($_SESSION['ticket_user'])->getTUserId()) || Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) ){
try{
$author = unserialize($_SESSION['ticket_user'])->getTUserId();
if(isset($_POST['Content'])){
$content = $_POST['Content'];
}else{
$content="";
}
$hidden = 0;
if(isset($_POST['hidden']) && Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
$hidden = 1;
}
Ticket::createReply($content, $author, $ticket_id, $hidden);
if(isset($_POST['ChangeStatus']) && isset($_POST['ChangePriority']) && Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
$newStatus = filter_var($_POST['ChangeStatus'], FILTER_SANITIZE_NUMBER_INT);
$newPriority = filter_var($_POST['ChangePriority'], FILTER_SANITIZE_NUMBER_INT);
Ticket::updateTicketStatusAndPriority($ticket_id,$newStatus, $newPriority, $author);
}
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) {
//ERROR: LIB DB is not online!
print_r($e);
//header("Location: index.php");
exit;
}
}else{
//ERROR: No access!
$_SESSION['error_code'] = "403";
header("Location: index.php?page=error");
exit;
}
}else{
//ERROR: not logged in!
header("Location: index.php");
exit;
}
}

View file

@ -1,49 +0,0 @@
<?php
function change_permission(){
global $INGAME_WEBPATH;
global $WEBPATH;
//if logged in
if(WebUsers::isLoggedIn()){
if(ticket_user::isAdmin(unserialize($_SESSION['ticket_user']))){
if(isset($_GET['user_id']) && isset($_GET['value']) && $_GET['user_id'] != 1 && $_GET['value'] < 4 ){
$user_id = filter_var($_GET['user_id'], FILTER_SANITIZE_NUMBER_INT);
$value = filter_var($_GET['value'], FILTER_SANITIZE_NUMBER_INT);
Ticket_User::change_permission(Ticket_User::constr_ExternId($user_id)->getTUserId(), $value);
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
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: No access!
$_SESSION['error_code'] = "403";
header("Location: index.php?page=error");
exit;
}
}else{
//ERROR: not logged in!
header("Location: index.php");
exit;
}
}

View file

@ -1,48 +0,0 @@
<?php
function createticket(){
//if logged in
if(WebUsers::isLoggedIn()){
//in case user_id-GET param set it's value as target_id, if no user_id-param is given, use the session id.
if(isset($_GET['user_id'])){
if(($_GET['user_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{
//if user_id is given, then set it as the target_id
$result['target_id'] = filter_var($_GET['user_id'], FILTER_SANITIZE_NUMBER_INT);
}
}else{
//set session_id as target_id
$result['target_id'] = $_SESSION['id'];
}
if(Helpers::check_if_game_client()){
//get all additional info, which is needed for adding the extra info page
$result[] = $_GET;
$result['ingame'] = true;
}
//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{
//ERROR: not logged in!
header("Location: index.php");
exit;
}
}

View file

@ -1,37 +0,0 @@
<?php
function dashboard(){
//if logged in
if(WebUsers::isLoggedIn()){
//is Mod
if(ticket_user::isMod(unserialize($_SESSION['ticket_user']))){
$result['user_id'] = unserialize($_SESSION['ticket_user'])->getTUserId();
$result['nrToDo'] = Ticket_Queue_Handler::getNrOfTicketsToDo(unserialize($_SESSION['ticket_user'])->getTUserId());
$result['nrAssignedWaiting'] = Ticket_Queue_Handler::getNrOfTicketsAssignedWaiting(unserialize($_SESSION['ticket_user'])->getTUserId());
$result['nrTotalTickets'] = Ticket_Queue_Handler::getNrOfTickets();
$ticket = Ticket_Queue_Handler::getNewestTicket();
$result['newestTicketId'] = $ticket->getTId();
$result['newestTicketTitle'] = $ticket->getTitle();
$result['newestTicketAuthor'] = Ticket_User::get_username_from_id($ticket->getAuthor());
global $INGAME_WEBPATH;
$result['ingame_webpath'] = $INGAME_WEBPATH;
return $result;
}else{
//ERROR: No access!
$_SESSION['error_code'] = "403";
header("Location: index.php?page=error");
exit;
}
}else{
//ERROR: not logged in!
header("Location: index.php");
exit;
}
}

View file

@ -1,21 +0,0 @@
<?php
function login(){
if ( helpers :: check_if_game_client () ){
//check if you are logged in ingame.
$result = Helpers::check_login_ingame();
if( $result != "FALSE"){
//handle successful login
$_SESSION['user'] = $result['name'];
$_SESSION['id'] = WebUsers::getId($result['name']);
$_SESSION['ticket_user'] = serialize(Ticket_User::constr_ExternId($_SESSION['id']));
//go back to the index page.
header( 'Location: '.$INGAME_WEBPATH );
exit;
}
}
global $INGAME_WEBPATH;
$pageElements['ingame_webpath'] = $INGAME_WEBPATH;
return $pageElements;
}

View file

@ -1,39 +0,0 @@
<?php
function sgroup_list(){
global $INGAME_WEBPATH;
global $WEBPATH;
//if logged in
if(WebUsers::isLoggedIn()){
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
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);
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!
$_SESSION['error_code'] = "403";
header("Location: index.php?page=error");
exit;
}
}else{
//ERROR: not logged in!
header("Location: index.php");
exit;
}
}

View file

@ -1,153 +0,0 @@
<?php
function show_queue(){
global $INGAME_WEBPATH;
global $WEBPATH;
//if logged in & queue id is given
if(WebUsers::isLoggedIn() && isset($_GET['get'])){
if( Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
//the default queue you want to see.
$result['queue_view'] = filter_var($_GET['get'], FILTER_SANITIZE_STRING);
$user_id = unserialize($_SESSION['ticket_user'])->getTUserId();
$queueArray = array();
$queue_handler = new Ticket_Queue_handler();
//Pagination Base Links
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
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'];
}
if(isset($_GET['get']) && ($_GET['get'] == "create") && isset($_GET['userid']) && isset($_GET['groupid']) && isset($_GET['what']) && isset($_GET['how']) && isset($_GET['who'])){
$userid = filter_var($_GET['userid'], FILTER_SANITIZE_NUMBER_INT);
$groupid = filter_var($_GET['groupid'], FILTER_SANITIZE_NUMBER_INT);
$what = filter_var($_GET['what'], FILTER_SANITIZE_STRING);
$how = filter_var($_GET['how'], FILTER_SANITIZE_STRING);
$who = filter_var($_GET['who'], FILTER_SANITIZE_STRING);
$queue_handler->CreateQueue($userid, $groupid, $what, $how, $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;
$result['prev_created_how'] = $how;
$result['prev_created_who'] = $who;
$result['getURL'] = $result['getURL'] . "&userid=".$userid."&groupid=".$groupid."&what=".$what."&how=".$how."&who=".$who;
}
//if an action is set
if(isset($_POST['action'])){
switch($_POST['action']){
case "assignTicket":
$ticket_id = filter_var($_POST['ticket_id'], FILTER_SANITIZE_NUMBER_INT);
$result['ACTION_RESULT'] = Ticket::assignTicket($user_id, $ticket_id);
break;
case "unAssignTicket":
$ticket_id = filter_var($_POST['ticket_id'], FILTER_SANITIZE_NUMBER_INT);
$result['ACTION_RESULT'] = Ticket::unAssignTicket($user_id, $ticket_id);
break;
case "create_queue":
$userid = filter_var($_POST['userid'], FILTER_SANITIZE_NUMBER_INT);
$groupid = filter_var($_POST['groupid'], FILTER_SANITIZE_NUMBER_INT);
$what = filter_var($_POST['what'], FILTER_SANITIZE_STRING);
$how = filter_var($_POST['how'], FILTER_SANITIZE_STRING);
$who = filter_var($_POST['who'], FILTER_SANITIZE_STRING);
$queue_handler->CreateQueue($userid, $groupid, $what, $how, $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;
$result['prev_created_how'] = $how;
$result['prev_created_who'] = $who;
$result['getURL'] = $result['getURL'] . "&userid=".$userid."&groupid=".$groupid."&what=".$what."&how=".$how."&who=".$who;
break;
}
}
$queueArray = $queue_handler->getTickets($result['queue_view'], $user_id);
//pagination
$result['links'] = $queue_handler->getPagination()->getLinks(5);
$result['lastPage'] = $queue_handler->getPagination()->getLast();
$result['currentPage'] = $queue_handler->getPagination()->getCurrent();
//if queue_view is a valid parameter value
if ($queueArray != "ERROR"){
$result['tickets'] = Gui_Elements::make_table($queueArray, Array("getTId","getTitle","getTimestamp","getAuthor()->getExternId","getTicket_Category()->getName","getStatus","getStatusText","getAssigned","getForwardedGroupName","getForwardedGroupId"), Array("tId","title","timestamp","authorExtern","category","status","statusText","assigned","forwardedGroupName","forwardedGroupId"));
$i = 0;
foreach( $result['tickets'] as $ticket){
$web_author = new WebUsers($ticket['authorExtern']);
$result['tickets'][$i]['author'] = $web_author->getUsername();
$web_assigned = new WebUsers($ticket['assigned']);
$result['tickets'][$i]['assignedText'] = $web_assigned->getUsername();
$result['tickets'][$i]['timestamp_elapsed'] = Gui_Elements::time_elapsed_string($ticket['timestamp']);
$i++;
}
$result['user_id'] = unserialize($_SESSION['ticket_user'])->getTUserId();
//Queue creator field info
$result['grouplist'] = Gui_Elements::make_table(Support_Group::getGroups(), Array("getSGroupId","getName"), Array("sGroupId","name"));
$result['teamlist'] = Gui_Elements::make_table(Ticket_User::getModsAndAdmins(), Array("getTUserId","getExternId"), Array("tUserId","externId"));
$i = 0;
foreach( $result['teamlist'] as $member){
$web_teammember = new Webusers($member['externId']);
$result['teamlist'][$i]['name'] = $web_teammember->getUsername();
$i++;
}
global $INGAME_WEBPATH;
$result['ingame_webpath'] = $INGAME_WEBPATH;
return $result;
}else{
//ERROR: Doesn't exist!
$_SESSION['error_code'] = "404";
header("Location: ams?page=error");
exit;
}
}else{
//ERROR: No access!
$_SESSION['error_code'] = "403";
header("Location: index.php?page=error");
exit;
}
}else{
//ERROR: not logged in!
header("Location: index.php");
exit;
}
}

View file

@ -1,48 +0,0 @@
<?php
function show_reply(){
//if logged in
if(WebUsers::isLoggedIn() && isset($_GET['id'])){
$result['reply_id'] = filter_var($_GET['id'], FILTER_SANITIZE_NUMBER_INT);
$reply = new Ticket_Reply();
$reply->load_With_TReplyId($result['reply_id']);
$ticket = new Ticket();
$ticket->load_With_TId($reply->getTicket());
if(( $ticket->getAuthor() == unserialize($_SESSION['ticket_user'])->getTUserId() && ! $reply->getHidden()) || Ticket_User::isMod(unserialize($_SESSION['ticket_user']) )){
$content = new Ticket_Content();
$content->load_With_TContentId($reply->getContent());
$author = new Ticket_User();
$author->load_With_TUserId($reply->getAuthor());
$result['hidden'] = $reply->getHidden();
$result['ticket_id'] = $reply->getTicket();
$result['reply_timestamp'] = $reply->getTimestamp();
$result['author_permission'] = $author->getPermission();
$result['reply_content'] = $content->getContent();
$result['author'] = $author->getExternId();
$webUser = new WebUsers($author->getExternId());
$result['authorName'] = $webUser->getUsername();
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
$result['isMod'] = "TRUE";
}
global $INGAME_WEBPATH;
$result['ingame_webpath'] = $INGAME_WEBPATH;
return $result;
}else{
//ERROR: No access!
$_SESSION['error_code'] = "403";
header("Location: index.php?page=error");
exit;
}
}else{
//ERROR: not logged in!
header("Location: index.php");
exit;
}
}

View file

@ -1,66 +0,0 @@
<?php
function show_sgroup(){
global $INGAME_WEBPATH;
global $WEBPATH;
//if logged in
if(WebUsers::isLoggedIn()){
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
if( isset($_GET['id'])){
//['target_id'] holds the id of the group!
$result['target_id'] = filter_var($_GET['id'], FILTER_SANITIZE_NUMBER_INT);
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'] );
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;
}
if(Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
$result['isAdmin'] = "TRUE";
}
$group = Support_Group::getGroup($result['target_id']);
$result['groupsname'] = $group->getName();
$result['groupemail'] = $group->getGroupEmail();
$result['imap_mailserver'] = $group->getIMAP_MailServer();
$result['imap_username'] = $group->getIMAP_Username();
$result['userlist'] = Gui_Elements::make_table(Support_Group::getAllUsersOfSupportGroup($result['target_id']), Array("getTUserId","getPermission","getExternId"), Array("tUserId","permission","externId"));
$i = 0;
foreach( $result['userlist'] as $user){
$webuser = new Webusers($user['externId']);
$result['userlist'][$i]['name'] = $webuser->getUsername();
$i++;
}
global $INGAME_WEBPATH;
$result['ingame_webpath'] = $INGAME_WEBPATH;
return $result;
}else{
//ERROR: No page specified!
$_SESSION['error_code'] = "404";
header("Location: ams?page=error");
exit;
}
}else{
//ERROR: No access!
$_SESSION['error_code'] = "403";
header("Location: index.php?page=error");
exit;
}
}else{
//ERROR: not logged in!
header("Location: index.php");
exit;
}
}

View file

@ -1,86 +0,0 @@
<?php
function show_ticket(){
//if logged in
if(WebUsers::isLoggedIn() && isset($_GET['id'])){
$result['user_id'] = unserialize($_SESSION['ticket_user'])->getTUserId();
$result['ticket_id'] = filter_var($_GET['id'], FILTER_SANITIZE_NUMBER_INT);
$target_ticket = new Ticket();
$target_ticket->load_With_TId($result['ticket_id']);
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user'] ))){
if(isset($_POST['action'])){
switch($_POST['action']){
case "forward":
$ticket_id = filter_var($_POST['ticket_id'], FILTER_SANITIZE_NUMBER_INT);
$group_id = filter_var($_POST['group'], FILTER_SANITIZE_NUMBER_INT);
$result['ACTION_RESULT'] = Ticket::forwardTicket($result['user_id'], $ticket_id, $group_id);
break;
case "assignTicket":
$ticket_id = filter_var($_POST['ticket_id'], FILTER_SANITIZE_NUMBER_INT);
$result['ACTION_RESULT'] = Ticket::assignTicket($result['user_id'] , $ticket_id);
break;
case "unAssignTicket":
$ticket_id = filter_var($_POST['ticket_id'], FILTER_SANITIZE_NUMBER_INT);
$result['ACTION_RESULT'] = Ticket::unAssignTicket($result['user_id'], $ticket_id);
break;
}
}
}
if(($target_ticket->getAuthor() == unserialize($_SESSION['ticket_user'])->getTUserId()) || Ticket_User::isMod(unserialize($_SESSION['ticket_user']) )){
$show_as_admin = false;
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
$show_as_admin = true;
}
$entire_ticket = Ticket::getEntireTicket( $result['ticket_id'],$show_as_admin);
Ticket_Log::createLogEntry($result['ticket_id'],unserialize($_SESSION['ticket_user'])->getTUserId(), 3);
$result['ticket_tId'] = $entire_ticket['ticket_obj']->getTId();
$result['ticket_forwardedGroupName'] = $entire_ticket['ticket_obj']->getForwardedGroupName();
$result['ticket_forwardedGroupId'] = $entire_ticket['ticket_obj']->getForwardedGroupId();
$result['ticket_title'] = $entire_ticket['ticket_obj']->getTitle();
$result['ticket_timestamp'] = $entire_ticket['ticket_obj']->getTimestamp();
$result['ticket_status'] = $entire_ticket['ticket_obj']->getStatus();
$result['ticket_author'] = $entire_ticket['ticket_obj']->getAuthor();
$result['ticket_prioritytext'] = $entire_ticket['ticket_obj']->getPriorityText();
$result['ticket_priorities'] = Ticket::getPriorityArray();
$result['ticket_priority'] = $entire_ticket['ticket_obj']->getPriority();
$result['ticket_statustext'] = $entire_ticket['ticket_obj']->getStatusText();
$result['ticket_lastupdate'] = Gui_Elements::time_elapsed_string(Ticket::getLatestReply($result['ticket_id'])->getTimestamp());
$result['ticket_category'] = $entire_ticket['ticket_obj']->getCategoryName();
$webUser = new WebUsers(Assigned::getUserAssignedToTicket($result['ticket_tId']));
$result['ticket_assignedToText'] = $webUser->getUsername();
$result['ticket_assignedTo'] = Assigned::getUserAssignedToTicket($result['ticket_tId']);
$result['ticket_replies'] = Gui_Elements::make_table($entire_ticket['reply_array'], Array("getTReplyId","getContent()->getContent","getTimestamp","getAuthor()->getExternId","getAuthor()->getPermission","getHidden"), Array("tReplyId","replyContent","timestamp","authorExtern","permission","hidden"));
$i = 0;
foreach( $result['ticket_replies'] as $reply){
$webReplyUser = new WebUsers($reply['authorExtern']);
$result['ticket_replies'][$i]['author'] = $webReplyUser->getUsername();
$i++;
}
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
$result['isMod'] = "TRUE";
$result['statusList'] = Ticket::getStatusArray();
$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{
//ERROR: No access!
$_SESSION['error_code'] = "403";
header("Location: index.php?page=error");
exit;
}
}else{
//ERROR: not logged in!
header("Location: index.php");
exit;
}
}

View file

@ -1,55 +0,0 @@
<?php
function show_ticket_info(){
//if logged in
if(WebUsers::isLoggedIn() && isset($_GET['id'])){
$result['ticket_id'] = filter_var($_GET['id'], FILTER_SANITIZE_NUMBER_INT);
$target_ticket = new Ticket();
$target_ticket->load_With_TId($result['ticket_id']);
if( $target_ticket->hasInfo() && (($target_ticket->getAuthor() == unserialize($_SESSION['ticket_user'])->getTUserId()) || Ticket_User::isMod(unserialize($_SESSION['ticket_user']) ))){
$result['ticket_title'] = $target_ticket->getTitle();
$result['ticket_author'] = $target_ticket->getAuthor();
$ticket_info = new Ticket_Info();
$ticket_info->load_With_Ticket($result['ticket_id']);
$result['shard_id'] = $ticket_info->getShardId();
$result['user_position'] = $ticket_info->getUser_Position();
$result['view_position'] = $ticket_info->getView_Position();
$result['client_version'] = $ticket_info->getClient_Version();
$result['patch_version'] = $ticket_info->getPatch_Version();
$result['server_tick'] = $ticket_info->getServer_Tick();
$result['connect_state'] = $ticket_info->getConnect_State();
$result['local_address'] = $ticket_info->getLocal_Address();
$result['memory'] = $ticket_info->getMemory();
$result['os'] = $ticket_info->getOS();
$result['processor'] = $ticket_info->getProcessor();
$result['cpu_id'] = $ticket_info->getCPUId();
$result['cpu_mask'] = $ticket_info->getCPU_Mask();
$result['ht'] = $ticket_info->getHT();
$result['nel3d'] = $ticket_info->getNel3D();
$result['user_id'] = $ticket_info->getUser_Id();
global $IMAGELOC_WEBPATH;
$result['IMAGELOC_WEBPATH'] = $IMAGELOC_WEBPATH;
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
$result['isMod'] = "TRUE";
}
global $INGAME_WEBPATH;
$result['ingame_webpath'] = $INGAME_WEBPATH;
return $result;
}else{
//ERROR: No access!
$_SESSION['error_code'] = "403";
header("Location: index.php?page=error");
exit;
}
}else{
//ERROR: not logged in!
header("Location: index.php");
exit;
}
}

View file

@ -1,67 +0,0 @@
<?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!
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) ){
$result['ticket_id'] = filter_var($_GET['id'], FILTER_SANITIZE_NUMBER_INT);
$target_ticket = new Ticket();
$target_ticket->load_With_TId($result['ticket_id']);
$result['ticket_title'] = $target_ticket->getTitle();
$ticket_logs = Ticket_Log::getLogsOfTicket( $result['ticket_id']);
$log_action_array = Ticket_Log::getActionTextArray();
$result['ticket_logs'] = Gui_Elements::make_table($ticket_logs, Array("getTLogId","getTimestamp","getAuthor()->getExternId","getAction","getArgument()"), Array("tLogId","timestamp","authorExtern","action","argument"));
$i = 0;
foreach( $result['ticket_logs'] as $log){
$webUser = new WebUsers($log['authorExtern']);
$author = $webUser->getUsername();
$result['ticket_logs'][$i]['author'] = $author;
$query_backpart = "";
if($log['action'] == 2){
$webUser2 = new WebUsers($log['argument']);
$query_backpart = $webUser2->getUsername();
}else if($log['action'] == 4){
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'] ];
}else if($log['action'] == 6){
$priorityArray = Ticket::getPriorityArray();
$query_backpart = $priorityArray[$log['argument'] ];
}else if($log['action'] == 8){
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']);
$i++;
}
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
$result['isMod'] = "TRUE";
}
global $INGAME_WEBPATH;
$result['ingame_webpath'] = $INGAME_WEBPATH;
return $result;
}else{
//ERROR: No access!
$_SESSION['error_code'] = "403";
header("Location: index.php?page=error");
exit;
}
}else{
//ERROR: not logged in!
header("Location: index.php");
exit;
}
}

View file

@ -1,30 +0,0 @@
<?php
function userlist(){
if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
$pagination = new Pagination(WebUsers::getAllUsersQuery(),"web",10,"WebUsers");
$pageResult['userlist'] = Gui_Elements::make_table($pagination->getElements() , Array("getUId","getUsername","getEmail"), Array("id","username","email"));
$pageResult['links'] = $pagination->getLinks(5);
$pageResult['lastPage'] = $pagination->getLast();
$pageResult['currentPage'] = $pagination->getCurrent();
$i = 0;
foreach( $pageResult['userlist'] as $user ){
$pageResult['userlist'][$i]['permission'] = Ticket_User::constr_ExternId($pageResult['userlist'][$i]['id'])->getPermission();
$i++;
}
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!
$_SESSION['error_code'] = "403";
header("Location: index.php?page=error");
exit;
}
}

View file

@ -25,7 +25,7 @@
<a class="btn btn-primary" href="ams?page=show_user&id={$element.id}"><i class=" icon-eye-open icon-white"></i> Show User</a> <a class="btn btn-primary" href="ams?page=show_user&id={$element.id}"><i class=" icon-eye-open icon-white"></i> Show User</a>
</td> </td>
<td> <td>
<a class="btn btn-info" href="ams?page=settings&id={$element.id}"><i class=" icon-pencil icon-white"></i> Edit User</a> <a href='{$base_webpath}/user/{$element.id}/edit'><i class=" icon-pencil icon-white"></i> Edit User</a>
</td> </td>
{if isset($isAdmin) and $isAdmin eq 'TRUE' and $element.id neq 1} {if isset($isAdmin) and $isAdmin eq 'TRUE' and $element.id neq 1}

View file

@ -3,3 +3,5 @@
-in helpers make_folders mkdir($value); should be drupal_mkdir(); -in helpers make_folders mkdir($value); should be drupal_mkdir();
-write backwards compatible script for existing nel db! -write backwards compatible script for existing nel db!
-fix the callback in add_user_to_sgroup.php and show_sgroup.php in the func dir -fix the callback in add_user_to_sgroup.php and show_sgroup.php in the func dir
-add createPermissions function to www side.
-add db install stuff to drupal install file + create a matching admin link!

View file

@ -72,8 +72,14 @@ $CREATE_RING = true ;
$AMS_LIB = dirname( dirname( __FILE__ ) ) . '/ams_lib'; $AMS_LIB = dirname( dirname( __FILE__ ) ) . '/ams_lib';
$AMS_TRANS = $AMS_LIB . '/translations'; $AMS_TRANS = $AMS_LIB . '/translations';
$AMS_CACHEDIR = $AMS_LIB . '/cache'; $AMS_CACHEDIR = $AMS_LIB . '/cache';
//Here your inc and func resides
$SITEBASE = dirname( __FILE__ ) . '/html/' ; $SITEBASE = dirname( __FILE__ ) . '/html/' ;
$WEBPATH ='http://localhost:40917' ;
$BASE_WEBPATH = 'http://localhost:40917/www/html';
$IMAGELOC_WEBPATH = 'http://localhost:40917';
$WEBPATH = $BASE_WEBPATH . '/index.php';
$INGAME_WEBPATH = $BASE_WEBPATH . '/index.php';
$CONFIG_PATH = dirname( __FILE__ );
//defines the default language //defines the default language
$DEFAULT_LANGUAGE = 'en'; $DEFAULT_LANGUAGE = 'en';
@ -87,4 +93,5 @@ $TIME_FORMAT = "m-d-Y H:i:s";
//defines which ingame layout template should be used //defines which ingame layout template should be used
$INGAME_LAYOUT = "basic"; $INGAME_LAYOUT = "basic";
$FORCE_INGAME = false;

View file

@ -59,10 +59,10 @@ class WebUsers extends Users{
* @return string Info: Returns true or false if a login match is found in the web db * @return string Info: Returns true or false if a login match is found in the web db
*/ */
public function checkLoginMatch($username,$password){ public function checkLoginMatch($username,$password){
$dbw = new DBLayer("web"); $dbw = new DBLayer("web");
$statement = $dbw->execute("SELECT * FROM ams_user WHERE Login=:user", array('user' => $username)); $statement = $dbw->execute("SELECT * FROM ams_user WHERE Login=:user", array('user' => $username));
$row = $statement->fetch(); $row = $statement->fetch();
$salt = substr($row['Password'],0,2); $salt = substr($row['Password'],0,2);
$hashed_input_pass = crypt($password, $salt); $hashed_input_pass = crypt($password, $salt);
if($hashed_input_pass == $row['Password']){ if($hashed_input_pass == $row['Password']){

View file

@ -1,33 +0,0 @@
<?php include('header.php'); ?>
<div>
<ul class="breadcrumb">
<li>
<a href="#">Home</a> <span class="divider">/</span>
</li>
<li>
<a href="#">Blank</a>
</li>
</ul>
</div>
<div class="row-fluid sortable">
<div class="box span12">
<div class="box-header well" data-original-title>
<h2><i class="icon-picture"></i>Blank</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
</div>
</div><!--/span-->
</div><!--/row-->
<?php include('footer.php'); ?>

View file

@ -1,45 +0,0 @@
<?php include('header.php'); ?>
<div>
<ul class="breadcrumb">
<li>
<a href="#">Home</a> <span class="divider">/</span>
</li>
<li>
<a href="#">Calendar</a>
</li>
</ul>
</div>
<div class="row-fluid sortable">
<div class="box span12">
<div class="box-header well" data-original-title>
<h2><i class="icon-calendar"></i>Calendar</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<div id="external-events" class="well">
<h4>Draggable Events</h4>
<div class="external-event badge">Default</div>
<div class="external-event badge badge-success">Completed</div>
<div class="external-event badge badge-warning">Warning</div>
<div class="external-event badge badge-important">Important</div>
<div class="external-event badge badge-info">Info</div>
<div class="external-event badge badge-inverse">Other</div>
<p>
<label for="drop-remove"><input type="checkbox" id="drop-remove" /> remove after drop</label>
</p>
</div>
<div id="calendar"></div>
<div class="clearfix"></div>
</div>
</div>
</div><!--/row-->
<?php include('footer.php'); ?>

View file

@ -1,120 +0,0 @@
<?php include('header.php'); ?>
<div>
<ul class="breadcrumb">
<li>
<a href="#">Home</a> <span class="divider">/</span>
</li>
<li>
<a href="#">Charts</a>
</li>
</ul>
</div>
<div class="row-fluid sortable">
<div class="box">
<div class="box-header well">
<h2><i class="icon-list-alt"></i> Chart with points</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<div id="sincos" class="center" style="height:300px" ></div>
<p id="hoverdata">Mouse position at (<span id="x">0</span>, <span id="y">0</span>). <span id="clickdata"></span></p>
</div>
</div>
<div class="box">
<div class="box-header well">
<h2><i class="icon-list-alt"></i> Flot</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<div id="flotchart" class="center" style="height:300px"></div>
</div>
</div>
<div class="box">
<div class="box-header well">
<h2><i class="icon-list-alt"></i> Stack Example</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<div id="stackchart" class="center" style="height:300px;"></div>
<p class="stackControls center">
<input class="btn" type="button" value="With stacking">
<input class="btn" type="button" value="Without stacking">
</p>
<p class="graphControls center">
<input class="btn btn-primary" type="button" value="Bars">
<input class="btn btn-primary" type="button" value="Lines">
<input class="btn btn-primary" type="button" value="Lines with steps">
</p>
</div>
</div>
</div><!--/row-->
<div class="row-fluid sortable">
<div class="box span4">
<div class="box-header well" data-original-title>
<h2><i class="icon-list-alt"></i> Pie</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<div id="piechart" style="height:300px"></div>
</div>
</div>
<div class="box span4">
<div class="box-header well" data-original-title>
<h2><i class="icon-list-alt"></i> Realtime</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<div id="realtimechart" style="height:190px;"></div>
<p>You can update a chart periodically to get a real-time effect by using a timer to insert the new data in the plot and redraw it.</p>
<p>Time between updates: <input id="updateInterval" type="text" value="" style="text-align: right; width:5em"> milliseconds</p>
</div>
</div>
<div class="box span4">
<div class="box-header well" data-original-title>
<h2><i class="icon-list-alt"></i> Donut</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<div id="donutchart" style="height: 300px;">
</div>
</div>
</div>
</div><!--/row-->
<?php include('footer.php'); ?>

View file

@ -1,36 +0,0 @@
<?php include('header.php'); ?>
<div>
<ul class="breadcrumb">
<li>
<a href="#">Home</a> <span class="divider">/</span>
</li>
<li>
<a href="#">File Manager</a>
</li>
</ul>
</div>
<div class="row-fluid sortable">
<div class="box span12">
<div class="box-header well" data-original-title>
<h2><i class="icon-picture"></i> File Manager</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<div class="alert alert-info">
<button type="button" class="close" data-dismiss="alert">×</button>
<i class="icon-info-sign"></i> As its a demo, you currently have read-only permission, in your server you may do everything like, upload or delete. It will work on a server only.
</div>
<div class="file-manager"></div>
</div>
</div><!--/span-->
</div><!--/row-->
<?php include('footer.php'); ?>

View file

@ -1,121 +0,0 @@
<?php if(!isset($no_visible_elements) || !$no_visible_elements) { ?>
<!-- content ends -->
</div><!--/#content.span10-->
<?php } ?>
</div><!--/fluid-row-->
<?php if(!isset($no_visible_elements) || !$no_visible_elements) { ?>
<hr>
<div class="modal hide fade" id="myModal">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3>Settings</h3>
</div>
<div class="modal-body">
<p>Here settings can be configured...</p>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal">Close</a>
<a href="#" class="btn btn-primary">Save changes</a>
</div>
</div>
<footer>
<p class="pull-left">&copy; <a href="http://usman.it" target="_blank">Muhammad Usman</a> <?php echo date('Y') ?></p>
<p class="pull-right">Powered by: <a href="http://usman.it/free-responsive-admin-template">Charisma</a></p>
</footer>
<?php } ?>
</div><!--/.fluid-container-->
<!-- external javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<!-- jQuery -->
<script src="js/jquery-1.7.2.min.js"></script>
<!-- jQuery UI -->
<script src="js/jquery-ui-1.8.21.custom.min.js"></script>
<!-- transition / effect library -->
<script src="js/bootstrap-transition.js"></script>
<!-- alert enhancer library -->
<script src="js/bootstrap-alert.js"></script>
<!-- modal / dialog library -->
<script src="js/bootstrap-modal.js"></script>
<!-- custom dropdown library -->
<script src="js/bootstrap-dropdown.js"></script>
<!-- scrolspy library -->
<script src="js/bootstrap-scrollspy.js"></script>
<!-- library for creating tabs -->
<script src="js/bootstrap-tab.js"></script>
<!-- library for advanced tooltip -->
<script src="js/bootstrap-tooltip.js"></script>
<!-- popover effect library -->
<script src="js/bootstrap-popover.js"></script>
<!-- button enhancer library -->
<script src="js/bootstrap-button.js"></script>
<!-- accordion library (optional, not used in demo) -->
<script src="js/bootstrap-collapse.js"></script>
<!-- carousel slideshow library (optional, not used in demo) -->
<script src="js/bootstrap-carousel.js"></script>
<!-- autocomplete library -->
<script src="js/bootstrap-typeahead.js"></script>
<!-- tour library -->
<script src="js/bootstrap-tour.js"></script>
<!-- library for cookie management -->
<script src="js/jquery.cookie.js"></script>
<!-- calander plugin -->
<script src='js/fullcalendar.min.js'></script>
<!-- data table plugin -->
<script src='js/jquery.dataTables.min.js'></script>
<!-- chart libraries start -->
<script src="js/excanvas.js"></script>
<script src="js/jquery.flot.min.js"></script>
<script src="js/jquery.flot.pie.min.js"></script>
<script src="js/jquery.flot.stack.js"></script>
<script src="js/jquery.flot.resize.min.js"></script>
<!-- chart libraries end -->
<!-- select or dropdown enhancer -->
<script src="js/jquery.chosen.min.js"></script>
<!-- checkbox, radio, and file input styler -->
<script src="js/jquery.uniform.min.js"></script>
<!-- plugin for gallery image view -->
<script src="js/jquery.colorbox.min.js"></script>
<!-- rich text editor library -->
<script src="js/jquery.cleditor.min.js"></script>
<!-- notification plugin -->
<script src="js/jquery.noty.js"></script>
<!-- file manager library -->
<script src="js/jquery.elfinder.min.js"></script>
<!-- star rating plugin -->
<script src="js/jquery.raty.min.js"></script>
<!-- for iOS style toggle switch -->
<script src="js/jquery.iphone.toggle.js"></script>
<!-- autogrowing textarea plugin -->
<script src="js/jquery.autogrow-textarea.js"></script>
<!-- multiple file upload plugin -->
<script src="js/jquery.uploadify-3.1.min.js"></script>
<!-- history.js for cross-browser state change on ajax -->
<script src="js/jquery.history.js"></script>
<!-- application script for Charisma demo -->
<script src="js/charisma.js"></script>
<?php //Google Analytics code for tracking my demo site, you can remove this.
if($_SERVER['HTTP_HOST']=='usman.it') { ?>
<script>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-26532312-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
})();
</script>
<?php } ?>
</body>
</html>

View file

@ -1,333 +0,0 @@
<?php include('header.php'); ?>
<div>
<ul class="breadcrumb">
<li>
<a href="#">Home</a> <span class="divider">/</span>
</li>
<li>
<a href="#">Forms</a>
</li>
</ul>
</div>
<div class="row-fluid sortable">
<div class="box span12">
<div class="box-header well" data-original-title>
<h2><i class="icon-edit"></i> Form Elements</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<form class="form-horizontal">
<fieldset>
<legend>Datepicker, Autocomplete, WYSIWYG</legend>
<div class="control-group">
<label class="control-label" for="typeahead">Auto complete </label>
<div class="controls">
<input type="text" class="span6 typeahead" id="typeahead" data-provide="typeahead" data-items="4" data-source='["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Dakota","North Carolina","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"]'>
<p class="help-block">Start typing to activate auto complete!</p>
</div>
</div>
<div class="control-group">
<label class="control-label" for="date01">Date input</label>
<div class="controls">
<input type="text" class="input-xlarge datepicker" id="date01" value="02/16/12">
</div>
</div>
<div class="control-group">
<label class="control-label" for="fileInput">File input</label>
<div class="controls">
<input class="input-file uniform_on" id="fileInput" type="file">
</div>
</div>
<div class="control-group">
<label class="control-label" for="textarea2">Textarea WYSIWYG</label>
<div class="controls">
<textarea class="cleditor" id="textarea2" rows="3"></textarea>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Save changes</button>
<button type="reset" class="btn">Cancel</button>
</div>
</fieldset>
</form>
</div>
</div><!--/span-->
</div><!--/row-->
<div class="row-fluid sortable">
<div class="box span12">
<div class="box-header well" data-original-title>
<h2><i class="icon-edit"></i> Form Elements</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<form class="form-horizontal">
<fieldset>
<div class="control-group">
<label class="control-label" for="focusedInput">Focused input</label>
<div class="controls">
<input class="input-xlarge focused" id="focusedInput" type="text" value="This is focused…">
</div>
</div>
<div class="control-group">
<label class="control-label">Uneditable input</label>
<div class="controls">
<span class="input-xlarge uneditable-input">Some value here</span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="disabledInput">Disabled input</label>
<div class="controls">
<input class="input-xlarge disabled" id="disabledInput" type="text" placeholder="Disabled input here…" disabled="">
</div>
</div>
<div class="control-group">
<label class="control-label" for="optionsCheckbox2">Disabled checkbox</label>
<div class="controls">
<label class="checkbox">
<input type="checkbox" id="optionsCheckbox2" value="option1" disabled="">
This is a disabled checkbox
</label>
</div>
</div>
<div class="control-group warning">
<label class="control-label" for="inputWarning">Input with warning</label>
<div class="controls">
<input type="text" id="inputWarning">
<span class="help-inline">Something may have gone wrong</span>
</div>
</div>
<div class="control-group error">
<label class="control-label" for="inputError">Input with error</label>
<div class="controls">
<input type="text" id="inputError">
<span class="help-inline">Please correct the error</span>
</div>
</div>
<div class="control-group success">
<label class="control-label" for="inputSuccess">Input with success</label>
<div class="controls">
<input type="text" id="inputSuccess">
<span class="help-inline">Woohoo!</span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="selectError3">Plain Select</label>
<div class="controls">
<select id="selectError3">
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
<option>Option 4</option>
<option>Option 5</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label" for="selectError">Modern Select</label>
<div class="controls">
<select id="selectError" data-rel="chosen">
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
<option>Option 4</option>
<option>Option 5</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label" for="selectError1">Multiple Select / Tags</label>
<div class="controls">
<select id="selectError1" multiple data-rel="chosen">
<option>Option 1</option>
<option selected>Option 2</option>
<option>Option 3</option>
<option>Option 4</option>
<option>Option 5</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label" for="selectError2">Group Select</label>
<div class="controls">
<select data-placeholder="Your Favorite Football Team" id="selectError2" data-rel="chosen">
<option value=""></option>
<optgroup label="NFC EAST">
<option>Dallas Cowboys</option>
<option>New York Giants</option>
<option>Philadelphia Eagles</option>
<option>Washington Redskins</option>
</optgroup>
<optgroup label="NFC NORTH">
<option>Chicago Bears</option>
<option>Detroit Lions</option>
<option>Green Bay Packers</option>
<option>Minnesota Vikings</option>
</optgroup>
<optgroup label="NFC SOUTH">
<option>Atlanta Falcons</option>
<option>Carolina Panthers</option>
<option>New Orleans Saints</option>
<option>Tampa Bay Buccaneers</option>
</optgroup>
<optgroup label="NFC WEST">
<option>Arizona Cardinals</option>
<option>St. Louis Rams</option>
<option>San Francisco 49ers</option>
<option>Seattle Seahawks</option>
</optgroup>
<optgroup label="AFC EAST">
<option>Buffalo Bills</option>
<option>Miami Dolphins</option>
<option>New England Patriots</option>
<option>New York Jets</option>
</optgroup>
<optgroup label="AFC NORTH">
<option>Baltimore Ravens</option>
<option>Cincinnati Bengals</option>
<option>Cleveland Browns</option>
<option>Pittsburgh Steelers</option>
</optgroup>
<optgroup label="AFC SOUTH">
<option>Houston Texans</option>
<option>Indianapolis Colts</option>
<option>Jacksonville Jaguars</option>
<option>Tennessee Titans</option>
</optgroup>
<optgroup label="AFC WEST">
<option>Denver Broncos</option>
<option>Kansas City Chiefs</option>
<option>Oakland Raiders</option>
<option>San Diego Chargers</option>
</optgroup>
</select>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Save changes</button>
<button class="btn">Cancel</button>
</div>
</fieldset>
</form>
</div>
</div><!--/span-->
</div><!--/row-->
<div class="row-fluid sortable">
<div class="box span12">
<div class="box-header well" data-original-title>
<h2><i class="icon-edit"></i> Form Elements</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<form class="form-horizontal">
<fieldset>
<div class="control-group">
<label class="control-label" for="prependedInput">Prepended text</label>
<div class="controls">
<div class="input-prepend">
<span class="add-on">@</span><input id="prependedInput" size="16" type="text">
</div>
<p class="help-block">Here's some help text</p>
</div>
</div>
<div class="control-group">
<label class="control-label" for="appendedInput">Appended text</label>
<div class="controls">
<div class="input-append">
<input id="appendedInput" size="16" type="text"><span class="add-on">.00</span>
</div>
<span class="help-inline">Here's more help text</span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="appendedPrependedInput">Append and prepend</label>
<div class="controls">
<div class="input-prepend input-append">
<span class="add-on">$</span><input id="appendedPrependedInput" size="16" type="text"><span class="add-on">.00</span>
</div>
</div>
</div>
<div class="control-group">
<label class="control-label" for="appendedInputButton">Append with button</label>
<div class="controls">
<div class="input-append">
<input id="appendedInputButton" size="16" type="text"><button class="btn" type="button">Go!</button>
</div>
</div>
</div>
<div class="control-group">
<label class="control-label" for="appendedInputButtons">Two-button append</label>
<div class="controls">
<div class="input-append">
<input id="appendedInputButtons" size="16" type="text"><button class="btn" type="button">Search</button><button class="btn" type="button">Options</button>
</div>
</div>
</div>
<div class="control-group">
<label class="control-label">Checkboxes</label>
<div class="controls">
<label class="checkbox inline">
<input type="checkbox" id="inlineCheckbox1" value="option1"> Option 1
</label>
<label class="checkbox inline">
<input type="checkbox" id="inlineCheckbox2" value="option2"> Option 2
</label>
<label class="checkbox inline">
<input type="checkbox" id="inlineCheckbox3" value="option3"> Option 3
</label>
</div>
</div>
<div class="control-group">
<label class="control-label">File Upload</label>
<div class="controls">
<input type="file">
</div>
</div>
<div class="control-group">
<label class="control-label">Radio buttons</label>
<div class="controls">
<label class="radio">
<input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked="">
Option one is this and that—be sure to include why it's great
</label>
<div style="clear:both"></div>
<label class="radio">
<input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">
Option two can be something else and selecting it will deselect option one
</label>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Save changes</button>
<button class="btn">Cancel</button>
</div>
</fieldset>
</form>
</div>
</div><!--/span-->
</div><!--/row-->
<?php include('footer.php'); ?>

View file

@ -1,10 +1,11 @@
<?php <?php
function add_sgroup(){ function add_sgroup(){
global $INGAME_WEBPATH;
global $WEBPATH;
if(WebUsers::isLoggedIn()){ if(WebUsers::isLoggedIn()){
if( Ticket_User::isAdmin($_SESSION['ticket_user'])){ if( Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
$name = filter_var($_POST['Name'],FILTER_SANITIZE_STRING); $name = filter_var($_POST['Name'],FILTER_SANITIZE_STRING);
$inner_tag = filter_var($_POST['Tag'], FILTER_SANITIZE_STRING); $inner_tag = filter_var($_POST['Tag'], FILTER_SANITIZE_STRING);
$tag = "[" . $inner_tag . "]"; $tag = "[" . $inner_tag . "]";
@ -15,13 +16,18 @@ function add_sgroup(){
$imap_password = filter_var($_POST['IMAP_Password'], FILTER_SANITIZE_STRING); $imap_password = filter_var($_POST['IMAP_Password'], FILTER_SANITIZE_STRING);
$result['RESULT_OF_ADDING'] = Support_Group::createSupportGroup($name, $tag, $groupemail, $imap_mailserver, $imap_username, $imap_password); $result['RESULT_OF_ADDING'] = Support_Group::createSupportGroup($name, $tag, $groupemail, $imap_mailserver, $imap_username, $imap_password);
$result['permission'] = $_SESSION['ticket_user']->getPermission(); $result['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
$result['no_visible_elements'] = 'FALSE'; $result['no_visible_elements'] = 'FALSE';
$result['username'] = $_SESSION['user']; $result['username'] = $_SESSION['user'];
global $SITEBASE; //global $SITEBASE;
require_once($SITEBASE . 'inc/sgroup_list.php'); //require($SITEBASE . '/inc/sgroup_list.php');
$result= array_merge($result, sgroup_list()); //$result= array_merge($result, sgroup_list());
helpers :: loadtemplate( 'sgroup_list', $result); //return helpers :: loadtemplate( 'sgroup_list', $result, true);
if (Helpers::check_if_game_client()) {
header("Location: ".$INGAME_WEBPATH."?page=sgroup_list");
}else{
header("Location: ".$WEBPATH."?page=sgroup_list");
}
exit; exit;
}else{ }else{

View file

@ -1,7 +1,7 @@
<?php <?php
function add_user(){ function add_user(){
global $INGAME_WEBPATH;
$params = Array('Username' => $_POST["Username"], 'Password' => $_POST["Password"], 'ConfirmPass' => $_POST["ConfirmPass"], 'Email' => $_POST["Email"]); $params = Array('Username' => $_POST["Username"], 'Password' => $_POST["Password"], 'ConfirmPass' => $_POST["ConfirmPass"], 'Email' => $_POST["Email"]);
$webUser = new WebUsers(); $webUser = new WebUsers();
$result = $webUser->check_Register($params); $result = $webUser->check_Register($params);
@ -20,6 +20,7 @@ function add_user(){
$status = write_user( $edit ); $status = write_user( $edit );
$pageElements['status'] = $status; $pageElements['status'] = $status;
$pageElements['no_visible_elements'] = 'TRUE'; $pageElements['no_visible_elements'] = 'TRUE';
$pageElements['ingame_webpath'] = $INGAME_WEBPATH;
helpers :: loadtemplate( 'register_feedback', $pageElements); helpers :: loadtemplate( 'register_feedback', $pageElements);
exit; exit;
}else{ }else{
@ -29,6 +30,7 @@ function add_user(){
$result['prevConfirmPass'] = $_POST["ConfirmPass"]; $result['prevConfirmPass'] = $_POST["ConfirmPass"];
$result['prevEmail'] = $_POST["Email"]; $result['prevEmail'] = $_POST["Email"];
$result['no_visible_elements'] = 'TRUE'; $result['no_visible_elements'] = 'TRUE';
$pageElements['ingame_webpath'] = $INGAME_WEBPATH;
helpers :: loadtemplate( 'register', $result); helpers :: loadtemplate( 'register', $result);
exit; exit;
} }

View file

@ -1,10 +1,11 @@
<?php <?php
function add_user_to_sgroup(){ function add_user_to_sgroup(){
global $INGAME_WEBPATH;
global $WEBPATH;
if(WebUsers::isLoggedIn()){ if(WebUsers::isLoggedIn()){
if( Ticket_User::isAdmin($_SESSION['ticket_user']) && isset($_POST['target_id'])){ if( Ticket_User::isAdmin(unserialize($_SESSION['ticket_user'])) && isset($_POST['target_id'])){
$name = filter_var($_POST['Name'],FILTER_SANITIZE_STRING); $name = filter_var($_POST['Name'],FILTER_SANITIZE_STRING);
$id = filter_var($_POST['target_id'],FILTER_SANITIZE_NUMBER_INT); $id = filter_var($_POST['target_id'],FILTER_SANITIZE_NUMBER_INT);
$user_id = WebUsers::getId($name); $user_id = WebUsers::getId($name);
@ -18,13 +19,18 @@ function add_user_to_sgroup(){
}else{ }else{
$result['RESULT_OF_ADDING'] = "USER_NOT_EXISTING"; $result['RESULT_OF_ADDING'] = "USER_NOT_EXISTING";
} }
$result['permission'] = $_SESSION['ticket_user']->getPermission(); $result['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
$result['no_visible_elements'] = 'FALSE'; $result['no_visible_elements'] = 'FALSE';
$result['username'] = $_SESSION['user']; $result['username'] = $_SESSION['user'];
global $SITEBASE; //global $SITEBASE;
require_once($SITEBASE . 'inc/show_sgroup.php'); //require_once($SITEBASE . 'inc/show_sgroup.php');
$result= array_merge($result, show_sgroup()); //$result= array_merge($result, show_sgroup());
helpers :: loadtemplate( 'show_sgroup', $result); //helpers :: loadtemplate( 'show_sgroup', $result);
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; exit;
}else{ }else{

View file

@ -9,7 +9,7 @@ function change_info(){
if(isset($_POST['target_id'])){ if(isset($_POST['target_id'])){
if( ($_POST['target_id'] == $_SESSION['id']) || Ticket_User::isMod($_SESSION['ticket_user'] ) ){ if( ($_POST['target_id'] == $_SESSION['id']) || Ticket_User::isMod(unserialize($_SESSION['ticket_user']) ) ){
if($_POST['target_id'] == $_SESSION['id']){ if($_POST['target_id'] == $_SESSION['id']){
$target_username = $_SESSION['user']; $target_username = $_SESSION['user'];
}else{ }else{
@ -77,15 +77,17 @@ function change_info(){
} }
global $SITEBASE; global $SITEBASE;
require_once($SITEBASE . 'inc/settings.php'); require_once($SITEBASE . '/inc/settings.php');
$result = settings(); $result = settings();
if($updated){ if($updated){
$result['info_updated'] = "OK"; $result['info_updated'] = "OK";
} }
$result['permission'] = $_SESSION['ticket_user']->getPermission(); $result['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
$result['username'] = $_SESSION['user']; $result['username'] = $_SESSION['user'];
$result['no_visible_elements'] = 'FALSE'; $result['no_visible_elements'] = 'FALSE';
$result['target_id'] = $_POST['target_id']; $result['target_id'] = $_POST['target_id'];
global $INGAME_WEBPATH;
$result['ingame_webpath'] = $INGAME_WEBPATH;
helpers :: loadtemplate( 'settings', $result); helpers :: loadtemplate( 'settings', $result);
exit; exit;

View file

@ -9,7 +9,7 @@ function change_mail(){
if(isset($_POST['target_id'])){ if(isset($_POST['target_id'])){
if( ($_POST['target_id'] == $_SESSION['id']) || Ticket_User::isMod($_SESSION['ticket_user']) ){ if( ($_POST['target_id'] == $_SESSION['id']) || Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) ){
if($_POST['target_id'] == $_SESSION['id']){ if($_POST['target_id'] == $_SESSION['id']){
$target_username = $_SESSION['user']; $target_username = $_SESSION['user'];
}else{ }else{
@ -21,7 +21,7 @@ function change_mail(){
$reply = $webUser->checkEmail($_POST['NewEmail']); $reply = $webUser->checkEmail($_POST['NewEmail']);
global $SITEBASE; global $SITEBASE;
require_once($SITEBASE . 'inc/settings.php'); require_once($SITEBASE . '/inc/settings.php');
$result = settings(); $result = settings();
if ( $reply != "success" ){ if ( $reply != "success" ){
@ -38,12 +38,12 @@ function change_mail(){
}else if($status == 'shardoffline'){ }else if($status == 'shardoffline'){
$result['SUCCESS_MAIL'] = "SHARDOFF"; $result['SUCCESS_MAIL'] = "SHARDOFF";
} }
$result['permission'] = $_SESSION['ticket_user']->getPermission(); $result['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
$result['no_visible_elements'] = 'FALSE'; $result['no_visible_elements'] = 'FALSE';
$result['username'] = $_SESSION['user']; $result['username'] = $_SESSION['user'];
$result['target_id'] = $_POST['target_id']; $result['target_id'] = $_POST['target_id'];
if(isset($_GET['id'])){ if(isset($_GET['id'])){
if(Ticket_User::isMod($_SESSION['ticket_user']) && ($_POST['target_id'] != $_SESSION['id'])){ if(Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) && ($_POST['target_id'] != $_SESSION['id'])){
$result['isMod'] = "TRUE"; $result['isMod'] = "TRUE";
} }
} }
@ -52,12 +52,12 @@ function change_mail(){
}else{ }else{
$result['EMAIL'] = $reply; $result['EMAIL'] = $reply;
$result['permission'] = $_SESSION['ticket_user']->getPermission(); $result['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
$result['no_visible_elements'] = 'FALSE'; $result['no_visible_elements'] = 'FALSE';
$result['username'] = $_SESSION['user']; $result['username'] = $_SESSION['user'];
$result['target_id'] = $_POST['target_id']; $result['target_id'] = $_POST['target_id'];
if(isset($_GET['id'])){ if(isset($_GET['id'])){
if(Ticket_User::isMod($_SESSION['ticket_user']) && ($_POST['target_id'] != $_SESSION['id'])){ if(Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) && ($_POST['target_id'] != $_SESSION['id'])){
$result['isMod'] = "TRUE"; $result['isMod'] = "TRUE";
} }
} }
@ -91,4 +91,3 @@ function change_mail(){
} }

View file

@ -9,7 +9,7 @@ function change_password(){
if(isset($_POST['target_id'])){ if(isset($_POST['target_id'])){
$adminChangesOther = false; $adminChangesOther = false;
//if target_id is the same as session id or is admin //if target_id is the same as session id or is admin
if( ($_POST['target_id'] == $_SESSION['id']) || Ticket_User::isMod($_SESSION['ticket_user']) ){ if( ($_POST['target_id'] == $_SESSION['id']) || Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) ){
if($_POST['target_id'] == $_SESSION['id']){ if($_POST['target_id'] == $_SESSION['id']){
$target_username = $_SESSION['user']; $target_username = $_SESSION['user'];
}else{ }else{
@ -26,16 +26,15 @@ function change_password(){
if ($result == "success"){ if ($result == "success"){
//edit stuff into db //edit stuff into db
global $SITEBASE; global $SITEBASE;
require_once($SITEBASE . 'inc/settings.php'); require_once($SITEBASE . '/inc/settings.php');
$succresult = settings(); $succresult = settings();
$hashpass = crypt($_POST["NewPass"], WebUsers::generateSALT()); $status = WebUsers::setPassword($target_username, $_POST["NewPass"]);
$status = WebUsers::setPassword($target_username, $hashpass);
if($status == 'ok'){ if($status == 'ok'){
$succresult['SUCCESS_PASS'] = "OK"; $succresult['SUCCESS_PASS'] = "OK";
}else if($status == 'shardoffline'){ }else if($status == 'shardoffline'){
$succresult['SUCCESS_PASS'] = "SHARDOFF"; $succresult['SUCCESS_PASS'] = "SHARDOFF";
} }
$succresult['permission'] = $_SESSION['ticket_user']->getPermission(); $succresult['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
$succresult['no_visible_elements'] = 'FALSE'; $succresult['no_visible_elements'] = 'FALSE';
$succresult['username'] = $_SESSION['user']; $succresult['username'] = $_SESSION['user'];
$succresult['target_id'] = $_POST['target_id']; $succresult['target_id'] = $_POST['target_id'];
@ -47,13 +46,13 @@ function change_password(){
$result['prevCurrentPass'] = filter_var($_POST["CurrentPass"], FILTER_SANITIZE_STRING); $result['prevCurrentPass'] = filter_var($_POST["CurrentPass"], FILTER_SANITIZE_STRING);
$result['prevNewPass'] = filter_var($_POST["NewPass"], FILTER_SANITIZE_STRING); $result['prevNewPass'] = filter_var($_POST["NewPass"], FILTER_SANITIZE_STRING);
$result['prevConfirmNewPass'] = filter_var($_POST["ConfirmNewPass"], FILTER_SANITIZE_STRING); $result['prevConfirmNewPass'] = filter_var($_POST["ConfirmNewPass"], FILTER_SANITIZE_STRING);
$result['permission'] = $_SESSION['ticket_user']->getPermission(); $result['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
$result['no_visible_elements'] = 'FALSE'; $result['no_visible_elements'] = 'FALSE';
$result['username'] = $_SESSION['user']; $result['username'] = $_SESSION['user'];
$result['target_id'] = $_POST['target_id']; $result['target_id'] = $_POST['target_id'];
global $SITEBASE; global $SITEBASE;
require_once($SITEBASE . 'inc/settings.php'); require_once($SITEBASE . '/inc/settings.php');
$settings = settings(); $settings = settings();
$result = array_merge($result,$settings); $result = array_merge($result,$settings);
@ -87,4 +86,3 @@ function change_password(){
} }

View file

@ -4,18 +4,24 @@ function change_receivemail(){
try{ try{
//if logged in //if logged in
global $INGAME_WEBPATH;
global $WEBPATH;
if(WebUsers::isLoggedIn()){ if(WebUsers::isLoggedIn()){
if(isset($_POST['target_id'])){ if(isset($_POST['target_id'])){
if( ( ($_POST['target_id'] == $_SESSION['id']) || Ticket_User::isMod($_SESSION['ticket_user'])) && isset($_POST['ReceiveMail']) ){ if( ( ($_POST['target_id'] == $_SESSION['id']) || Ticket_User::isMod(unserialize($_SESSION['ticket_user']))) && isset($_POST['ReceiveMail']) ){
$user_id = filter_var($_POST['target_id'], FILTER_SANITIZE_NUMBER_INT); $user_id = filter_var($_POST['target_id'], FILTER_SANITIZE_NUMBER_INT);
$receiveMail = filter_var($_POST['ReceiveMail'], FILTER_SANITIZE_NUMBER_INT); $receiveMail = filter_var($_POST['ReceiveMail'], FILTER_SANITIZE_NUMBER_INT);
if($receiveMail == 0 || $receiveMail == 1){ if($receiveMail == 0 || $receiveMail == 1){
WebUsers::setReceiveMail($user_id, $receiveMail); WebUsers::setReceiveMail($user_id, $receiveMail);
} }
header("Location: index.php?page=settings&id=".$user_id); if (Helpers::check_if_game_client()) {
header("Location: ".$INGAME_WEBPATH."?page=settings&id=".$user_id);
}else{
header("Location: ".$WEBPATH."?page=settings&id=".$user_id);
}
exit; exit;
}else{ }else{

View file

@ -2,24 +2,30 @@
function create_ticket(){ function create_ticket(){
//if logged in //if logged in
global $INGAME_WEBPATH;
global $WEBPATH;
if(WebUsers::isLoggedIn() && isset($_SESSION['ticket_user'])){ if(WebUsers::isLoggedIn() && isset($_SESSION['ticket_user'])){
if(isset($_POST['target_id'])){ if(isset($_POST['target_id'])){
//if target_id is the same as session id or is admin //if target_id is the same as session id or is admin
if( ($_POST['target_id'] == $_SESSION['id']) || Ticket_User::isMod($_SESSION['ticket_user']) ){ if( ($_POST['target_id'] == $_SESSION['id']) || Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) ){
$category = filter_var($_POST['Category'], FILTER_SANITIZE_NUMBER_INT); $category = filter_var($_POST['Category'], FILTER_SANITIZE_NUMBER_INT);
$title = filter_var($_POST['Title'], FILTER_SANITIZE_STRING); $title = filter_var($_POST['Title'], FILTER_SANITIZE_STRING);
$content = filter_var($_POST['Content'], FILTER_SANITIZE_STRING); $content = filter_var($_POST['Content'], FILTER_SANITIZE_STRING);
try{ try{
if($_POST['target_id'] == $_SESSION['id']){ if($_POST['target_id'] == $_SESSION['id']){
$author = $_SESSION['ticket_user']->getTUserId(); $author = unserialize($_SESSION['ticket_user'])->getTUserId();
}else{ }else{
$author= Ticket_User::constr_ExternId($_POST['target_id'])->getTUserId(); $author= Ticket_User::constr_ExternId($_POST['target_id'])->getTUserId();
} }
$ticket_id = Ticket::create_Ticket($title, $content, $category, $author, $_SESSION['ticket_user']->getTUserId(),0, $_POST); $ticket_id = Ticket::create_Ticket($title, $content, $category, $author, unserialize($_SESSION['ticket_user'])->getTUserId(),0, $_POST);
header("Location: index.php?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; exit;
}catch (PDOException $e) { }catch (PDOException $e) {

View file

@ -1,21 +1,27 @@
<?php <?php
function login(){ function login(){
global $INGAME_WEBPATH;
global $WEBPATH;
try{ try{
$username = filter_var($_POST['Username'],FILTER_SANITIZE_STRING); $username = filter_var($_POST['Username'],FILTER_SANITIZE_STRING);
$password = filter_var($_POST['Password'],FILTER_SANITIZE_STRING); $password = filter_var($_POST['Password'],FILTER_SANITIZE_STRING);
$result = WebUsers::checkLoginMatch($username, $password); $result = WebUsers::checkLoginMatch($username, $password);
if( $result != "fail"){ if( $result != "fail"){
//handle successful login //handle successful login
$_SESSION['user'] = $username; $_SESSION['user'] = $username;
$_SESSION['id'] = $result['UId']; $_SESSION['id'] = WebUsers::getId($username);
$_SESSION['ticket_user'] = Ticket_User::constr_ExternId($result['UId']); $_SESSION['ticket_user'] = serialize(Ticket_User::constr_ExternId($_SESSION['id']));
$user = new WebUsers($_SESSION['id']); $user = new WebUsers($_SESSION['id']);
$_SESSION['Language'] = $user->getLanguage(); $_SESSION['Language'] = $user->getLanguage();
//go back to the index page. //go back to the index page.
header( 'Location: index.php' ); if (Helpers::check_if_game_client()) {
header( 'Location: '. $INGAME_WEBPATH );
}else{
header( 'Location: '. $WEBPATH );
}
exit; exit;
}else{ }else{
//handle login failure //handle login failure

View file

@ -1,10 +1,11 @@
<?php <?php
function modify_email_of_sgroup(){ function modify_email_of_sgroup(){
global $INGAME_WEBPATH;
global $WEBPATH;
if(WebUsers::isLoggedIn()){ if(WebUsers::isLoggedIn()){
if( Ticket_User::isAdmin($_SESSION['ticket_user']) && isset($_POST['target_id'])){ if( Ticket_User::isAdmin(unserialize($_SESSION['ticket_user'])) && isset($_POST['target_id'])){
$sgroupid = filter_var($_POST['target_id'],FILTER_SANITIZE_NUMBER_INT); $sgroupid = filter_var($_POST['target_id'],FILTER_SANITIZE_NUMBER_INT);
$group = Support_Group::getGroup($sgroupid); $group = Support_Group::getGroup($sgroupid);
@ -29,13 +30,18 @@ function modify_email_of_sgroup(){
$result['RESULT_OF_MODIFYING'] = "EMAIL_NOT_VALID"; $result['RESULT_OF_MODIFYING'] = "EMAIL_NOT_VALID";
} }
$result['permission'] = $_SESSION['ticket_user']->getPermission(); $result['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
$result['no_visible_elements'] = 'FALSE'; $result['no_visible_elements'] = 'FALSE';
$result['username'] = $_SESSION['user']; $result['username'] = $_SESSION['user'];
global $SITEBASE; //global $SITEBASE;
require_once($SITEBASE . 'inc/show_sgroup.php'); //require_once($SITEBASE . 'inc/show_sgroup.php');
$result= array_merge($result, show_sgroup()); //$result= array_merge($result, show_sgroup());
helpers :: loadtemplate( 'show_sgroup', $result); //helpers :: loadtemplate( 'show_sgroup', $result);
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; exit;
}else{ }else{

View file

@ -1,7 +1,8 @@
<?php <?php
function reply_on_ticket(){ function reply_on_ticket(){
global $INGAME_WEBPATH;
global $WEBPATH;
//if logged in //if logged in
if(WebUsers::isLoggedIn() && isset($_POST['ticket_id'])){ if(WebUsers::isLoggedIn() && isset($_POST['ticket_id'])){
@ -9,24 +10,31 @@ function reply_on_ticket(){
$target_ticket = new Ticket(); $target_ticket = new Ticket();
$target_ticket->load_With_TId($ticket_id); $target_ticket->load_With_TId($ticket_id);
if(($target_ticket->getAuthor() == $_SESSION['ticket_user']->getTUserId()) || Ticket_User::isMod($_SESSION['ticket_user']) ){ if(($target_ticket->getAuthor() == unserialize($_SESSION['ticket_user'])->getTUserId()) || Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) ){
try{ try{
$author = $_SESSION['ticket_user']->getTUserId(); $author = unserialize($_SESSION['ticket_user'])->getTUserId();
if(isset($_POST['Content'])){
$content = $_POST['Content']; $content = $_POST['Content'];
}else{
$content="";
}
$hidden = 0; $hidden = 0;
if(isset($_POST['hidden']) && Ticket_User::isMod($_SESSION['ticket_user'])){ if(isset($_POST['hidden']) && Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
$hidden = 1; $hidden = 1;
} }
Ticket::createReply($content, $author, $ticket_id, $hidden); Ticket::createReply($content, $author, $ticket_id, $hidden);
if(isset($_POST['ChangeStatus']) && isset($_POST['ChangePriority']) && Ticket_User::isMod($_SESSION['ticket_user'])){ if(isset($_POST['ChangeStatus']) && isset($_POST['ChangePriority']) && Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
$newStatus = filter_var($_POST['ChangeStatus'], FILTER_SANITIZE_NUMBER_INT); $newStatus = filter_var($_POST['ChangeStatus'], FILTER_SANITIZE_NUMBER_INT);
$newPriority = filter_var($_POST['ChangePriority'], FILTER_SANITIZE_NUMBER_INT); $newPriority = filter_var($_POST['ChangePriority'], FILTER_SANITIZE_NUMBER_INT);
Ticket::updateTicketStatusAndPriority($ticket_id,$newStatus, $newPriority, $author); Ticket::updateTicketStatusAndPriority($ticket_id,$newStatus, $newPriority, $author);
} }
header("Location: index.php?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; exit;
}catch (PDOException $e) { }catch (PDOException $e) {

View file

@ -1,41 +0,0 @@
<?php include('header.php'); ?>
<div>
<ul class="breadcrumb">
<li>
<a href="#">Home</a> <span class="divider">/</span>
</li>
<li>
<a href="#">Gallery</a>
</li>
</ul>
</div>
<div class="row-fluid sortable">
<div class="box span12">
<div class="box-header well" data-original-title>
<h2><i class="icon-picture"></i> Gallery</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<p class="center">
<button id="toggle-fullscreen" class="btn btn-large btn-primary visible-desktop" data-toggle="button">Toggle Fullscreen</button>
</p>
<br/>
<ul class="thumbnails gallery">
<?php for($i=1;$i<=24;$i++) { ?>
<li id="image-<?php echo $i ?>" class="thumbnail">
<a style="background:url(img/gallery/thumbs/<?php echo $i ?>.jpg)" title="Sample Image <?php echo $i ?>" href="img/gallery/<?php echo $i ?>.jpg"><img class="grayscale" src="img/gallery/thumbs/<?php echo $i ?>.jpg" alt="Sample Image <?php echo $i ?>"></a>
</li>
<?php } ?>
</ul>
</div>
</div><!--/span-->
</div><!--/row-->
<?php include('footer.php'); ?>

View file

@ -1,240 +0,0 @@
<?php include('header.php'); ?>
<div>
<ul class="breadcrumb">
<li>
<a href="#">Home</a> <span class="divider">/</span>
</li>
<li>
<a href="#">Grid</a>
</li>
</ul>
</div>
<div class="row-fluid sortable">
<div class="box span12">
<div class="box-header well" data-original-title>
<h2><i class="icon-th"></i> Grid 12</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<div class="row-fluid">
<div class="span4"><h6>span 4</h6></div>
<div class="span4"><h6>span 4</h6></div>
<div class="span4"><h6>span 4</h6></div>
</div>
</div>
</div><!--/span-->
</div><!--/row-->
<div class="row-fluid sortable">
<div class="box span3">
<div class="box-header well" data-original-title>
<h2><i class="icon-th"></i> Grid 3</h2>
<div class="box-icon">
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<div class="row-fluid">
<div class="span4"><h6>span 4</h6></div>
<div class="span4"><h6>span 4</h6></div>
<div class="span4"><h6>span 4</h6></div>
</div>
</div>
</div><!--/span-->
<div class="box span3">
<div class="box-header well" data-original-title>
<h2><i class="icon-th"></i> Grid 3</h2>
<div class="box-icon">
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<div class="row-fluid">
<div class="span4"><h6>span 4</h6></div>
<div class="span4"><h6>span 4</h6></div>
<div class="span4"><h6>span 4</h6></div>
</div>
</div>
</div><!--/span-->
<div class="box span3">
<div class="box-header well" data-original-title>
<h2><i class="icon-th"></i> Grid 3</h2>
<div class="box-icon">
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<div class="row-fluid">
<div class="span4"><h6>span 4</h6></div>
<div class="span4"><h6>span 4</h6></div>
<div class="span4"><h6>span 4</h6></div>
</div>
</div>
</div><!--/span-->
<div class="box span3">
<div class="box-header well" data-original-title>
<h2>Plain</h2>
</div>
<div class="box-content">
<div class="row-fluid">
<div class="span4"><h6>span 4</h6></div>
<div class="span4"><h6>span 4</h6></div>
<div class="span4"><h6>span 4</h6></div>
</div>
</div>
</div><!--/span-->
</div><!--/row-->
<div class="row-fluid sortable">
<div class="box span6">
<div class="box-header well" data-original-title>
<h2><i class="icon-th"></i> Grid 6</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<div class="row-fluid">
<div class="span4"><h6>span 4</h6></div>
<div class="span4"><h6>span 4</h6></div>
<div class="span4"><h6>span 4</h6></div>
</div>
</div>
</div><!--/span-->
<div class="box span6">
<div class="box-header well" data-original-title>
<h2><i class="icon-th"></i> Grid 6</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<div class="row-fluid">
<div class="span4"><h6>span 4</h6></div>
<div class="span4"><h6>span 4</h6></div>
<div class="span4"><h6>span 4</h6></div>
</div>
</div>
</div><!--/span-->
</div><!--/row-->
<div class="row-fluid sortable">
<div class="box span4">
<div class="box-header well" data-original-title>
<h2><i class="icon-th"></i> Grid 4</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<div class="row-fluid">
<div class="span4"><h6>span 4</h6></div>
<div class="span4"><h6>span 4</h6></div>
<div class="span4"><h6>span 4</h6></div>
</div>
</div>
</div><!--/span-->
<div class="box span4">
<div class="box-header well" data-original-title>
<h2><i class="icon-th"></i> Grid 4</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<div class="row-fluid">
<div class="span4"><h6>span 4</h6></div>
<div class="span4"><h6>span 4</h6></div>
<div class="span4"><h6>span 4</h6></div>
</div>
</div>
</div><!--/span-->
<div class="box span4">
<div class="box-header well" data-original-title>
<h2><i class="icon-th"></i> Grid 4</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<div class="row-fluid">
<div class="span4"><h6>span 4</h6></div>
<div class="span4"><h6>span 4</h6></div>
<div class="span4"><h6>span 4</h6></div>
</div>
</div>
</div><!--/span-->
</div><!--/row-->
<div class="row-fluid">
<div class="span12 well">
<div>
<h1>Box less area</h1>
<p>The flat boxes can be created using grids. But you can also use grids inside grids, which makes the layout 100% flexible!</p>
</div>
</div><!--/span-->
</div><!--/row-->
<div class="row-fluid show-grid">
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
<div class="span1">1</div>
</div>
<div class="row-fluid show-grid">
<div class="span4">4</div>
<div class="span4">4</div>
<div class="span4">4</div>
</div>
<div class="row-fluid show-grid">
<div class="span3">3</div>
<div class="span3">3</div>
<div class="span3">3</div>
<div class="span3">3</div>
</div>
<div class="row-fluid show-grid">
<div class="span4">4</div>
<div class="span8">8</div>
</div>
<div class="row-fluid show-grid">
<div class="span6">6</div>
<div class="span6">6</div>
</div>
<div class="row-fluid show-grid">
<div class="span12">12</div>
</div>
<?php include('footer.php'); ?>

View file

@ -1,158 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!--
Charisma v1.0.0
Copyright 2012 Muhammad Usman
Licensed under the Apache License v2.0
http://www.apache.org/licenses/LICENSE-2.0
http://usman.it
http://twitter.com/halalit_usman
-->
<meta charset="utf-8">
<title>Free HTML5 Bootstrap Admin Template</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
<meta name="author" content="Muhammad Usman">
<!-- The styles -->
<link id="bs-css" href="css/bootstrap-cerulean.css" rel="stylesheet">
<style type="text/css">
body {
padding-bottom: 40px;
}
.sidebar-nav {
padding: 9px 0;
}
</style>
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/charisma-app.css" rel="stylesheet">
<link href="css/jquery-ui-1.8.21.custom.css" rel="stylesheet">
<link href='css/fullcalendar.css' rel='stylesheet'>
<link href='css/fullcalendar.print.css' rel='stylesheet' media='print'>
<link href='css/chosen.css' rel='stylesheet'>
<link href='css/uniform.default.css' rel='stylesheet'>
<link href='css/colorbox.css' rel='stylesheet'>
<link href='css/jquery.cleditor.css' rel='stylesheet'>
<link href='css/jquery.noty.css' rel='stylesheet'>
<link href='css/noty_theme_default.css' rel='stylesheet'>
<link href='css/elfinder.min.css' rel='stylesheet'>
<link href='css/elfinder.theme.css' rel='stylesheet'>
<link href='css/jquery.iphone.toggle.css' rel='stylesheet'>
<link href='css/opa-icons.css' rel='stylesheet'>
<link href='css/uploadify.css' rel='stylesheet'>
<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- The fav icon -->
<link rel="shortcut icon" href="img/favicon.ico">
</head>
<body>
<?php if(!isset($no_visible_elements) || !$no_visible_elements) { ?>
<!-- topbar starts -->
<div class="navbar">
<div class="navbar-inner">
<div class="container-fluid">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="index.php"> <img alt="Charisma Logo" src="img/logo20.png" /> <span>Charisma</span></a>
<!-- theme selector starts -->
<div class="btn-group pull-right theme-container" >
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
<i class="icon-tint"></i><span class="hidden-phone"> Change Theme / Skin</span>
<span class="caret"></span>
</a>
<ul class="dropdown-menu" id="themes">
<li><a data-value="classic" href="#"><i class="icon-blank"></i> Classic</a></li>
<li><a data-value="cerulean" href="#"><i class="icon-blank"></i> Cerulean</a></li>
<li><a data-value="cyborg" href="#"><i class="icon-blank"></i> Cyborg</a></li>
<li><a data-value="redy" href="#"><i class="icon-blank"></i> Redy</a></li>
<li><a data-value="journal" href="#"><i class="icon-blank"></i> Journal</a></li>
<li><a data-value="simplex" href="#"><i class="icon-blank"></i> Simplex</a></li>
<li><a data-value="slate" href="#"><i class="icon-blank"></i> Slate</a></li>
<li><a data-value="spacelab" href="#"><i class="icon-blank"></i> Spacelab</a></li>
<li><a data-value="united" href="#"><i class="icon-blank"></i> United</a></li>
</ul>
</div>
<!-- theme selector ends -->
<!-- user dropdown starts -->
<div class="btn-group pull-right" >
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
<i class="icon-user"></i><span class="hidden-phone"> admin</span>
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a href="#">Profile</a></li>
<li class="divider"></li>
<li><a href="login.php">Logout</a></li>
</ul>
</div>
<!-- user dropdown ends -->
<div class="top-nav nav-collapse">
<ul class="nav">
<li><a href="#">Visit Site</a></li>
<li>
<form class="navbar-search pull-left">
<input placeholder="Search" class="search-query span2" name="query" type="text">
</form>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<!-- topbar ends -->
<?php } ?>
<div class="container-fluid">
<div class="row-fluid">
<?php if(!isset($no_visible_elements) || !$no_visible_elements) { ?>
<!-- left menu starts -->
<div class="span2 main-menu-span">
<div class="well nav-collapse sidebar-nav">
<ul class="nav nav-tabs nav-stacked main-menu">
<li class="nav-header hidden-tablet">Main</li>
<li><a class="ajax-link" href="index.php"><i class="icon-home"></i><span class="hidden-tablet"> Dashboard</span></a></li>
<li><a class="ajax-link" href="ui.php"><i class="icon-eye-open"></i><span class="hidden-tablet"> UI Features</span></a></li>
<li><a class="ajax-link" href="form.php"><i class="icon-edit"></i><span class="hidden-tablet"> Forms</span></a></li>
<li><a class="ajax-link" href="chart.php"><i class="icon-list-alt"></i><span class="hidden-tablet"> Charts</span></a></li>
<li><a class="ajax-link" href="typography.php"><i class="icon-font"></i><span class="hidden-tablet"> Typography</span></a></li>
<li><a class="ajax-link" href="gallery.php"><i class="icon-picture"></i><span class="hidden-tablet"> Gallery</span></a></li>
<li class="nav-header hidden-tablet">Sample Section</li>
<li><a class="ajax-link" href="table.php"><i class="icon-align-justify"></i><span class="hidden-tablet"> Tables</span></a></li>
<li><a class="ajax-link" href="calendar.php"><i class="icon-calendar"></i><span class="hidden-tablet"> Calendar</span></a></li>
<li><a class="ajax-link" href="grid.php"><i class="icon-th"></i><span class="hidden-tablet"> Grid</span></a></li>
<li><a class="ajax-link" href="file-manager.php"><i class="icon-folder-open"></i><span class="hidden-tablet"> File Manager</span></a></li>
<li><a href="tour.php"><i class="icon-globe"></i><span class="hidden-tablet"> Tour</span></a></li>
<li><a class="ajax-link" href="icon.php"><i class="icon-star"></i><span class="hidden-tablet"> Icons</span></a></li>
<li><a href="error.php"><i class="icon-ban-circle"></i><span class="hidden-tablet"> Error Page</span></a></li>
<li><a href="login.php"><i class="icon-lock"></i><span class="hidden-tablet"> Login Page</span></a></li>
</ul>
<label id="for-is-ajax" class="hidden-tablet" for="is-ajax"><input id="is-ajax" type="checkbox"> Ajax on menu</label>
</div><!--/.well -->
</div><!--/span-->
<!-- left menu ends -->
<noscript>
<div class="alert alert-block span10">
<h4 class="alert-heading">Warning!</h4>
<p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p>
</div>
</noscript>
<div id="content" class="span10">
<!-- content starts -->
<?php } ?>

File diff suppressed because one or more lines are too long

View file

@ -1,24 +1,33 @@
<?php <?php
function change_permission(){ function change_permission(){
global $INGAME_WEBPATH;
global $WEBPATH;
//if logged in //if logged in
if(WebUsers::isLoggedIn()){ if(WebUsers::isLoggedIn()){
if(ticket_user::isAdmin($_SESSION['ticket_user'])){ if(ticket_user::isAdmin(unserialize($_SESSION['ticket_user']))){
if(isset($_GET['user_id']) && isset($_GET['value']) && $_GET['user_id'] != 1 && $_GET['value'] < 4 ){ if(isset($_GET['user_id']) && isset($_GET['value']) && $_GET['user_id'] != 1 && $_GET['value'] < 4 ){
$user_id = filter_var($_GET['user_id'], FILTER_SANITIZE_NUMBER_INT); $user_id = filter_var($_GET['user_id'], FILTER_SANITIZE_NUMBER_INT);
$value = filter_var($_GET['value'], FILTER_SANITIZE_NUMBER_INT); $value = filter_var($_GET['value'], FILTER_SANITIZE_NUMBER_INT);
Ticket_User::change_permission(Ticket_User::constr_ExternId($user_id)->getTUserId(), $value); Ticket_User::change_permission(Ticket_User::constr_ExternId($user_id)->getTUserId(), $value);
header("Location: index.php?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; exit;
}else{ }else{
//ERROR: GET PARAMS not given or trying to change admin //ERROR: GET PARAMS not given or trying to change admin
header("Location: index.php?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; exit;
} }

View file

@ -7,7 +7,7 @@ function createticket(){
//in case user_id-GET param set it's value as target_id, if no user_id-param is given, use the session id. //in case user_id-GET param set it's value as target_id, if no user_id-param is given, use the session id.
if(isset($_GET['user_id'])){ if(isset($_GET['user_id'])){
if(($_GET['user_id'] != $_SESSION['id']) && ( ! ticket_user::isMod($_SESSION['ticket_user'])) ){ if(($_GET['user_id'] != $_SESSION['id']) && ( ! ticket_user::isMod(unserialize($_SESSION['ticket_user']))) ){
//ERROR: No access! //ERROR: No access!
$_SESSION['error_code'] = "403"; $_SESSION['error_code'] = "403";
@ -35,6 +35,8 @@ function createticket(){
//create array of category id & names //create array of category id & names
$catArray = Ticket_Category::getAllCategories(); $catArray = Ticket_Category::getAllCategories();
$result['category'] = Gui_Elements::make_table_with_key_is_id($catArray, Array("getName"), "getTCategoryId" ); $result['category'] = Gui_Elements::make_table_with_key_is_id($catArray, Array("getName"), "getTCategoryId" );
global $INGAME_WEBPATH;
$result['ingame_webpath'] = $INGAME_WEBPATH;
return $result; return $result;
}else{ }else{

View file

@ -1,19 +1,22 @@
<?php <?php
function dashboard(){ function dashboard(){
//if logged in //if logged in
if(WebUsers::isLoggedIn()){ if(WebUsers::isLoggedIn()){
//is Mod //is Mod
if(ticket_user::isMod($_SESSION['ticket_user'])){ if(ticket_user::isMod(unserialize($_SESSION['ticket_user']))){
$result['user_id'] = $_SESSION['ticket_user']->getTUserId(); $result['user_id'] = unserialize($_SESSION['ticket_user'])->getTUserId();
$result['nrToDo'] = Ticket_Queue_Handler::getNrOfTicketsToDo($_SESSION['ticket_user']->getTUserId()); $result['nrToDo'] = Ticket_Queue_Handler::getNrOfTicketsToDo(unserialize($_SESSION['ticket_user'])->getTUserId());
$result['nrAssignedWaiting'] = Ticket_Queue_Handler::getNrOfTicketsAssignedWaiting($_SESSION['ticket_user']->getTUserId()); $result['nrAssignedWaiting'] = Ticket_Queue_Handler::getNrOfTicketsAssignedWaiting(unserialize($_SESSION['ticket_user'])->getTUserId());
$result['nrTotalTickets'] = Ticket_Queue_Handler::getNrOfTickets(); $result['nrTotalTickets'] = Ticket_Queue_Handler::getNrOfTickets();
$ticket = Ticket_Queue_Handler::getNewestTicket(); $ticket = Ticket_Queue_Handler::getNewestTicket();
$result['newestTicketId'] = $ticket->getTId(); $result['newestTicketId'] = $ticket->getTId();
$result['newestTicketTitle'] = $ticket->getTitle(); $result['newestTicketTitle'] = $ticket->getTitle();
$result['newestTicketAuthor'] = Ticket_User::get_username_from_id($ticket->getAuthor()); $result['newestTicketAuthor'] = Ticket_User::get_username_from_id($ticket->getAuthor());
global $INGAME_WEBPATH;
$result['ingame_webpath'] = $INGAME_WEBPATH;
return $result; return $result;
}else{ }else{

View file

@ -1,6 +1,8 @@
<?php <?php
function login(){ function login(){
global $INGAME_WEBPATH;
global $WEBPATH;
if ( helpers :: check_if_game_client () ){ if ( helpers :: check_if_game_client () ){
//check if you are logged in ingame. //check if you are logged in ingame.
$result = Helpers::check_login_ingame(); $result = Helpers::check_login_ingame();
@ -8,10 +10,17 @@ function login(){
//handle successful login //handle successful login
$_SESSION['user'] = $result['name']; $_SESSION['user'] = $result['name'];
$_SESSION['id'] = WebUsers::getId($result['name']); $_SESSION['id'] = WebUsers::getId($result['name']);
$_SESSION['ticket_user'] = Ticket_User::constr_ExternId($_SESSION['id']); $_SESSION['ticket_user'] = serialize(Ticket_User::constr_ExternId($_SESSION['id']));
//go back to the index page. //go back to the index page.
header( 'Location: index.php' ); if (Helpers::check_if_game_client()) {
header( 'Location: '.$INGAME_WEBPATH );
}else{
header( 'Location: '.$WEBPATH );
}
exit; exit;
} }
} }
$pageElements['ingame_webpath'] = $INGAME_WEBPATH;
return $pageElements;
} }

View file

@ -4,7 +4,7 @@ function settings(){
if(WebUsers::isLoggedIn()){ 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. //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(isset($_GET['id'])){
if(($_GET['id'] != $_SESSION['id']) && (!Ticket_User::isMod($_SESSION['ticket_user'])) ){ if(($_GET['id'] != $_SESSION['id']) && (!Ticket_User::isMod(unserialize($_SESSION['ticket_user']))) ){
//ERROR: No access! //ERROR: No access!
$_SESSION['error_code'] = "403"; $_SESSION['error_code'] = "403";
header("Location: index.php?page=error"); header("Location: index.php?page=error");
@ -12,28 +12,32 @@ function settings(){
}else{ }else{
$webUser = new Webusers($_GET['id']); $webUser = new Webusers($_GET['id']);
$result = $webUser->getInfo(); $result = $webUser->getInfo();
if(Ticket_User::isMod($_SESSION['ticket_user']) && ($_GET['id']!= $_SESSION['id'])){ if(Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) && ($_GET['id']!= $_SESSION['id'])){
$result['changesOther'] = "TRUE"; $result['changesOther'] = "TRUE";
} }
$result['target_id'] = $_GET['id']; $result['target_id'] = $_GET['id'];
$result['current_mail'] = $webUser->getEmail(); $result['current_mail'] = $webUser->getEmail();
$result['target_username'] = $webUser->getUsername();
} }
}else{ }else{
$webUser = new Webusers($_SESSION['id']); $webUser = new Webusers($_SESSION['id']);
$result = $webUser->getInfo(); $result = $webUser->getInfo();
$result['target_id'] = $_SESSION['id']; $result['target_id'] = $_SESSION['id'];
$result['current_mail'] = $webUser->getEmail(); $result['current_mail'] = $webUser->getEmail();
$result['target_username'] = $webUser->getUsername();
} }
//Sanitize Data //Sanitize Data
$result['current_mail'] = filter_var($result['current_mail'], FILTER_SANITIZE_EMAIL); $result['current_mail'] = filter_var($result['current_mail'], FILTER_SANITIZE_EMAIL);
//$result['Login'] = filter_var($result['Login'], FILTER_SANITIZE_STRING); $result['target_username'] = filter_var($result['target_username'], FILTER_SANITIZE_STRING);
$result['FirstName'] = filter_var($result['FirstName'], FILTER_SANITIZE_STRING); $result['FirstName'] = filter_var($result['FirstName'], FILTER_SANITIZE_STRING);
$result['LastName'] = filter_var($result['LastName'], FILTER_SANITIZE_STRING); $result['LastName'] = filter_var($result['LastName'], FILTER_SANITIZE_STRING);
$result['Country'] = filter_var($result['Country'], FILTER_SANITIZE_STRING); $result['Country'] = filter_var($result['Country'], FILTER_SANITIZE_STRING);
$result['Gender'] = filter_var($result['Gender'], FILTER_SANITIZE_NUMBER_INT); $result['Gender'] = filter_var($result['Gender'], FILTER_SANITIZE_NUMBER_INT);
$result['ReceiveMail'] = filter_var($result['ReceiveMail'], FILTER_SANITIZE_NUMBER_INT); $result['ReceiveMail'] = filter_var($result['ReceiveMail'], FILTER_SANITIZE_NUMBER_INT);
$result['country_array'] = getCountryArray(); $result['country_array'] = getCountryArray();
global $INGAME_WEBPATH;
$result['ingame_webpath'] = $INGAME_WEBPATH;
return $result; return $result;
}else{ }else{
//ERROR: not logged in! //ERROR: not logged in!

View file

@ -1,20 +1,28 @@
<?php <?php
function sgroup_list(){ function sgroup_list(){
global $INGAME_WEBPATH;
global $WEBPATH;
//if logged in //if logged in
if(WebUsers::isLoggedIn()){ if(WebUsers::isLoggedIn()){
if(Ticket_User::isMod($_SESSION['ticket_user'])){ if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
if(isset($_GET['delete']) && Ticket_User::isAdmin($_SESSION['ticket_user'])){ if(isset($_GET['delete']) && Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
$delete_id = filter_var($_GET['delete'], FILTER_SANITIZE_NUMBER_INT); $delete_id = filter_var($_GET['delete'], FILTER_SANITIZE_NUMBER_INT);
$result['delete'] = Support_Group::deleteSupportGroup( $delete_id); $result['delete'] = Support_Group::deleteSupportGroup( $delete_id);
header("Location: index.php?page=sgroup_list"); if (Helpers::check_if_game_client()) {
header("Location: ".$INGAME_WEBPATH."?page=sgroup_list");
}else{
header("Location: ".$WEBPATH."?page=sgroup_list");
}
exit; exit;
} }
if(Ticket_User::isAdmin($_SESSION['ticket_user'])){ if(Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
$result['isAdmin'] = "TRUE"; $result['isAdmin'] = "TRUE";
} }
$result['grouplist'] = Gui_Elements::make_table(Support_Group::getGroups(), Array("getSGroupId","getName","getTag","getGroupEmail"), Array("sGroupId","name","tag","groupemail")); $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; return $result;
}else{ }else{
//ERROR: No access! //ERROR: No access!

View file

@ -1,23 +1,34 @@
<?php <?php
function show_queue(){ function show_queue(){
global $INGAME_WEBPATH;
global $WEBPATH;
//if logged in & queue id is given //if logged in & queue id is given
if(WebUsers::isLoggedIn() && isset($_GET['get'])){ if(WebUsers::isLoggedIn() && isset($_GET['get'])){
if( Ticket_User::isMod($_SESSION['ticket_user'])){ if( Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
//the default queue you want to see. //the default queue you want to see.
$result['queue_view'] = filter_var($_GET['get'], FILTER_SANITIZE_STRING); $result['queue_view'] = filter_var($_GET['get'], FILTER_SANITIZE_STRING);
$user_id = $_SESSION['ticket_user']->getTUserId(); $user_id = unserialize($_SESSION['ticket_user'])->getTUserId();
$queueArray = array(); $queueArray = array();
$queue_handler = new Ticket_Queue_handler(); $queue_handler = new Ticket_Queue_handler();
//Pagination Base Links //Pagination Base Links
$result['pagination_base_link'] = "index.php?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 //form url to keep the getters constant
$result['getURL'] = "index.php?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'])){ if(isset($_GET['pagenum'])){
$result['getURL'] = $result['getURL'] . "&pagenum=".$_GET['pagenum']; $result['getURL'] = $result['getURL'] . "&pagenum=".$_GET['pagenum'];
} }
@ -29,7 +40,14 @@ function show_queue(){
$how = filter_var($_GET['how'], FILTER_SANITIZE_STRING); $how = filter_var($_GET['how'], FILTER_SANITIZE_STRING);
$who = filter_var($_GET['who'], FILTER_SANITIZE_STRING); $who = filter_var($_GET['who'], FILTER_SANITIZE_STRING);
$queue_handler->CreateQueue($userid, $groupid, $what, $how, $who); $queue_handler->CreateQueue($userid, $groupid, $what, $how, $who);
$result['pagination_base_link'] = "index.php?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_userid'] = $userid;
$result['prev_created_groupid'] = $groupid; $result['prev_created_groupid'] = $groupid;
$result['prev_created_what'] = $what; $result['prev_created_what'] = $what;
@ -60,7 +78,11 @@ function show_queue(){
$how = filter_var($_POST['how'], FILTER_SANITIZE_STRING); $how = filter_var($_POST['how'], FILTER_SANITIZE_STRING);
$who = filter_var($_POST['who'], FILTER_SANITIZE_STRING); $who = filter_var($_POST['who'], FILTER_SANITIZE_STRING);
$queue_handler->CreateQueue($userid, $groupid, $what, $how, $who); $queue_handler->CreateQueue($userid, $groupid, $what, $how, $who);
$result['pagination_base_link'] = "index.php?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_userid'] = $userid;
$result['prev_created_groupid'] = $groupid; $result['prev_created_groupid'] = $groupid;
$result['prev_created_what'] = $what; $result['prev_created_what'] = $what;
@ -93,7 +115,7 @@ function show_queue(){
$result['tickets'][$i]['timestamp_elapsed'] = Gui_Elements::time_elapsed_string($ticket['timestamp']); $result['tickets'][$i]['timestamp_elapsed'] = Gui_Elements::time_elapsed_string($ticket['timestamp']);
$i++; $i++;
} }
$result['user_id'] = $_SESSION['ticket_user']->getTUserId(); $result['user_id'] = unserialize($_SESSION['ticket_user'])->getTUserId();
//Queue creator field info //Queue creator field info
$result['grouplist'] = Gui_Elements::make_table(Support_Group::getGroups(), Array("getSGroupId","getName"), Array("sGroupId","name")); $result['grouplist'] = Gui_Elements::make_table(Support_Group::getGroups(), Array("getSGroupId","getName"), Array("sGroupId","name"));
@ -104,13 +126,15 @@ function show_queue(){
$result['teamlist'][$i]['name'] = $web_teammember->getUsername(); $result['teamlist'][$i]['name'] = $web_teammember->getUsername();
$i++; $i++;
} }
global $INGAME_WEBPATH;
$result['ingame_webpath'] = $INGAME_WEBPATH;
return $result; return $result;
}else{ }else{
//ERROR: Doesn't exist! //ERROR: Doesn't exist!
$_SESSION['error_code'] = "404"; $_SESSION['error_code'] = "404";
header("Location: index.php?page=error"); header("Location: ams?page=error");
exit; exit;
} }

View file

@ -12,7 +12,7 @@ function show_reply(){
$ticket = new Ticket(); $ticket = new Ticket();
$ticket->load_With_TId($reply->getTicket()); $ticket->load_With_TId($reply->getTicket());
if(( $ticket->getAuthor() == $_SESSION['ticket_user']->getTUserId() && ! $reply->getHidden()) || Ticket_User::isMod($_SESSION['ticket_user'] )){ if(( $ticket->getAuthor() == unserialize($_SESSION['ticket_user'])->getTUserId() && ! $reply->getHidden()) || Ticket_User::isMod(unserialize($_SESSION['ticket_user']) )){
$content = new Ticket_Content(); $content = new Ticket_Content();
$content->load_With_TContentId($reply->getContent()); $content->load_With_TContentId($reply->getContent());
@ -27,9 +27,11 @@ function show_reply(){
$result['author'] = $author->getExternId(); $result['author'] = $author->getExternId();
$webUser = new WebUsers($author->getExternId()); $webUser = new WebUsers($author->getExternId());
$result['authorName'] = $webUser->getUsername(); $result['authorName'] = $webUser->getUsername();
if(Ticket_User::isMod($_SESSION['ticket_user'])){ if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
$result['isMod'] = "TRUE"; $result['isMod'] = "TRUE";
} }
global $INGAME_WEBPATH;
$result['ingame_webpath'] = $INGAME_WEBPATH;
return $result; return $result;
}else{ }else{

View file

@ -1,22 +1,28 @@
<?php <?php
function show_sgroup(){ function show_sgroup(){
global $INGAME_WEBPATH;
global $WEBPATH;
//if logged in //if logged in
if(WebUsers::isLoggedIn()){ if(WebUsers::isLoggedIn()){
if(Ticket_User::isMod($_SESSION['ticket_user'])){ if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
if( isset($_GET['id'])){ if( isset($_GET['id'])){
//['target_id'] holds the id of the group! //['target_id'] holds the id of the group!
$result['target_id'] = filter_var($_GET['id'], FILTER_SANITIZE_NUMBER_INT); $result['target_id'] = filter_var($_GET['id'], FILTER_SANITIZE_NUMBER_INT);
if(isset($_GET['delete']) && Ticket_User::isAdmin($_SESSION['ticket_user'])){ if(isset($_GET['delete']) && Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
$delete_id = filter_var($_GET['delete'], FILTER_SANITIZE_NUMBER_INT); $delete_id = filter_var($_GET['delete'], FILTER_SANITIZE_NUMBER_INT);
$result['delete'] = Support_Group::deleteUserOfSupportGroup( $delete_id, $result['target_id'] ); $result['delete'] = Support_Group::deleteUserOfSupportGroup( $delete_id, $result['target_id'] );
header("Location: index.php?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; exit;
} }
if(Ticket_User::isAdmin($_SESSION['ticket_user'])){ if(Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
$result['isAdmin'] = "TRUE"; $result['isAdmin'] = "TRUE";
} }
@ -32,6 +38,8 @@ function show_sgroup(){
$result['userlist'][$i]['name'] = $webuser->getUsername(); $result['userlist'][$i]['name'] = $webuser->getUsername();
$i++; $i++;
} }
global $INGAME_WEBPATH;
$result['ingame_webpath'] = $INGAME_WEBPATH;
return $result; return $result;
@ -39,7 +47,7 @@ function show_sgroup(){
//ERROR: No page specified! //ERROR: No page specified!
$_SESSION['error_code'] = "404"; $_SESSION['error_code'] = "404";
header("Location: index.php?page=error"); header("Location: ams?page=error");
exit; exit;
} }

View file

@ -4,12 +4,12 @@ function show_ticket(){
//if logged in //if logged in
if(WebUsers::isLoggedIn() && isset($_GET['id'])){ if(WebUsers::isLoggedIn() && isset($_GET['id'])){
$result['user_id'] = $_SESSION['ticket_user']->getTUserId(); $result['user_id'] = unserialize($_SESSION['ticket_user'])->getTUserId();
$result['ticket_id'] = filter_var($_GET['id'], FILTER_SANITIZE_NUMBER_INT); $result['ticket_id'] = filter_var($_GET['id'], FILTER_SANITIZE_NUMBER_INT);
$target_ticket = new Ticket(); $target_ticket = new Ticket();
$target_ticket->load_With_TId($result['ticket_id']); $target_ticket->load_With_TId($result['ticket_id']);
if(Ticket_User::isMod($_SESSION['ticket_user'] )){ if(Ticket_User::isMod(unserialize($_SESSION['ticket_user'] ))){
if(isset($_POST['action'])){ if(isset($_POST['action'])){
switch($_POST['action']){ switch($_POST['action']){
case "forward": case "forward":
@ -30,15 +30,15 @@ function show_ticket(){
} }
} }
if(($target_ticket->getAuthor() == $_SESSION['ticket_user']->getTUserId()) || Ticket_User::isMod($_SESSION['ticket_user'] )){ if(($target_ticket->getAuthor() == unserialize($_SESSION['ticket_user'])->getTUserId()) || Ticket_User::isMod(unserialize($_SESSION['ticket_user']) )){
$show_as_admin = false; $show_as_admin = false;
if(Ticket_User::isMod($_SESSION['ticket_user'])){ if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
$show_as_admin = true; $show_as_admin = true;
} }
$entire_ticket = Ticket::getEntireTicket( $result['ticket_id'],$show_as_admin); $entire_ticket = Ticket::getEntireTicket( $result['ticket_id'],$show_as_admin);
Ticket_Log::createLogEntry($result['ticket_id'],$_SESSION['ticket_user']->getTUserId(), 3); Ticket_Log::createLogEntry($result['ticket_id'],unserialize($_SESSION['ticket_user'])->getTUserId(), 3);
$result['ticket_tId'] = $entire_ticket['ticket_obj']->getTId(); $result['ticket_tId'] = $entire_ticket['ticket_obj']->getTId();
$result['ticket_forwardedGroupName'] = $entire_ticket['ticket_obj']->getForwardedGroupName(); $result['ticket_forwardedGroupName'] = $entire_ticket['ticket_obj']->getForwardedGroupName();
$result['ticket_forwardedGroupId'] = $entire_ticket['ticket_obj']->getForwardedGroupId(); $result['ticket_forwardedGroupId'] = $entire_ticket['ticket_obj']->getForwardedGroupId();
@ -62,12 +62,14 @@ function show_ticket(){
$result['ticket_replies'][$i]['author'] = $webReplyUser->getUsername(); $result['ticket_replies'][$i]['author'] = $webReplyUser->getUsername();
$i++; $i++;
} }
if(Ticket_User::isMod($_SESSION['ticket_user'])){ if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
$result['isMod'] = "TRUE"; $result['isMod'] = "TRUE";
$result['statusList'] = Ticket::getStatusArray(); $result['statusList'] = Ticket::getStatusArray();
$result['sGroups'] = Gui_Elements::make_table_with_key_is_id(Support_Group::getAllSupportGroups(), Array("getName"), "getSGroupId" ); $result['sGroups'] = Gui_Elements::make_table_with_key_is_id(Support_Group::getAllSupportGroups(), Array("getName"), "getSGroupId" );
} }
$result['hasInfo'] = $target_ticket->hasInfo(); $result['hasInfo'] = $target_ticket->hasInfo();
global $INGAME_WEBPATH;
$result['ingame_webpath'] = $INGAME_WEBPATH;
return $result; return $result;
}else{ }else{

View file

@ -9,7 +9,7 @@ function show_ticket_info(){
$target_ticket = new Ticket(); $target_ticket = new Ticket();
$target_ticket->load_With_TId($result['ticket_id']); $target_ticket->load_With_TId($result['ticket_id']);
if( $target_ticket->hasInfo() && (($target_ticket->getAuthor() == $_SESSION['ticket_user']->getTUserId()) || Ticket_User::isMod($_SESSION['ticket_user'] ))){ if( $target_ticket->hasInfo() && (($target_ticket->getAuthor() == unserialize($_SESSION['ticket_user'])->getTUserId()) || Ticket_User::isMod(unserialize($_SESSION['ticket_user']) ))){
$result['ticket_title'] = $target_ticket->getTitle(); $result['ticket_title'] = $target_ticket->getTitle();
$result['ticket_author'] = $target_ticket->getAuthor(); $result['ticket_author'] = $target_ticket->getAuthor();
@ -31,12 +31,14 @@ function show_ticket_info(){
$result['ht'] = $ticket_info->getHT(); $result['ht'] = $ticket_info->getHT();
$result['nel3d'] = $ticket_info->getNel3D(); $result['nel3d'] = $ticket_info->getNel3D();
$result['user_id'] = $ticket_info->getUser_Id(); $result['user_id'] = $ticket_info->getUser_Id();
global $WEBPATH; global $IMAGELOC_WEBPATH;
$result['WEBPATH'] = $WEBPATH; $result['IMAGELOC_WEBPATH'] = $IMAGELOC_WEBPATH;
if(Ticket_User::isMod($_SESSION['ticket_user'])){ if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
$result['isMod'] = "TRUE"; $result['isMod'] = "TRUE";
} }
global $INGAME_WEBPATH;
$result['ingame_webpath'] = $INGAME_WEBPATH;
return $result; return $result;
}else{ }else{

View file

@ -1,11 +1,12 @@
<?php <?php
function show_ticket_log(){ function show_ticket_log(){
global $INGAME_WEBPATH;
global $WEBPATH;
//if logged in //if logged in
if(WebUsers::isLoggedIn() && isset($_GET['id'])){ if(WebUsers::isLoggedIn() && isset($_GET['id'])){
//only allow admins to browse the log! //only allow admins to browse the log!
if(Ticket_User::isMod($_SESSION['ticket_user']) ){ if(Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) ){
$result['ticket_id'] = filter_var($_GET['id'], FILTER_SANITIZE_NUMBER_INT); $result['ticket_id'] = filter_var($_GET['id'], FILTER_SANITIZE_NUMBER_INT);
$target_ticket = new Ticket(); $target_ticket = new Ticket();
$target_ticket->load_With_TId($result['ticket_id']); $target_ticket->load_With_TId($result['ticket_id']);
@ -23,7 +24,11 @@ function show_ticket_log(){
$webUser2 = new WebUsers($log['argument']); $webUser2 = new WebUsers($log['argument']);
$query_backpart = $webUser2->getUsername(); $query_backpart = $webUser2->getUsername();
}else if($log['action'] == 4){ }else if($log['action'] == 4){
$query_backpart = "<a href='index.php?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){ }else if($log['action'] == 5){
$statusArray = Ticket::getStatusArray(); $statusArray = Ticket::getStatusArray();
$query_backpart = $statusArray[$log['argument'] ]; $query_backpart = $statusArray[$log['argument'] ];
@ -31,15 +36,21 @@ function show_ticket_log(){
$priorityArray = Ticket::getPriorityArray(); $priorityArray = Ticket::getPriorityArray();
$query_backpart = $priorityArray[$log['argument'] ]; $query_backpart = $priorityArray[$log['argument'] ];
}else if($log['action'] == 8){ }else if($log['action'] == 8){
$query_backpart = "<a href='index.php?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]['query'] = $author . " " . $log_action_array[$log['action']] . " " . $query_backpart;
$result['ticket_logs'][$i]['timestamp_elapsed'] = Gui_Elements::time_elapsed_string($log['timestamp']); $result['ticket_logs'][$i]['timestamp_elapsed'] = Gui_Elements::time_elapsed_string($log['timestamp']);
$i++; $i++;
} }
if(Ticket_User::isMod($_SESSION['ticket_user'])){ if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
$result['isMod'] = "TRUE"; $result['isMod'] = "TRUE";
} }
global $INGAME_WEBPATH;
$result['ingame_webpath'] = $INGAME_WEBPATH;
return $result; return $result;
}else{ }else{

View file

@ -3,8 +3,7 @@
function show_user(){ function show_user(){
//if logged in //if logged in
if(WebUsers::isLoggedIn()){ if(WebUsers::isLoggedIn()){
if( !isset($_GET['id']) || Ticket_User::isMod(unserialize($_SESSION['ticket_user'])) || $_GET['id'] == $_SESSION['id'] ){
if( !isset($_GET['id']) || Ticket_User::isMod($_SESSION['ticket_user']) || $_GET['id'] == $_SESSION['id'] ){
if(isset($_GET['id'])){ if(isset($_GET['id'])){
$result['target_id'] = filter_var($_GET['id'], FILTER_SANITIZE_NUMBER_INT); $result['target_id'] = filter_var($_GET['id'], FILTER_SANITIZE_NUMBER_INT);
@ -22,12 +21,14 @@ function show_user(){
$ticket_user = Ticket_User::constr_ExternId($result['target_id']); $ticket_user = Ticket_User::constr_ExternId($result['target_id']);
$result['userPermission'] = $ticket_user->getPermission(); $result['userPermission'] = $ticket_user->getPermission();
if(Ticket_User::isAdmin($_SESSION['ticket_user'])){ if(Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
$result['isAdmin'] = "TRUE"; $result['isAdmin'] = "TRUE";
} }
$ticketlist = Ticket::getTicketsOf($ticket_user->getTUserId()); $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")); $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; return $result;
}else{ }else{

View file

@ -1,7 +1,7 @@
<?php <?php
function userlist(){ function userlist(){
if(Ticket_User::isMod($_SESSION['ticket_user'])){ if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
$pagination = new Pagination(WebUsers::getAllUsersQuery(),"web",10,"WebUsers"); $pagination = new Pagination(WebUsers::getAllUsersQuery(),"web",10,"WebUsers");
$pageResult['userlist'] = Gui_Elements::make_table($pagination->getElements() , Array("getUId","getUsername","getEmail"), Array("id","username","email")); $pageResult['userlist'] = Gui_Elements::make_table($pagination->getElements() , Array("getUId","getUsername","getEmail"), Array("id","username","email"));
@ -15,9 +15,13 @@ function userlist(){
$i++; $i++;
} }
if (Ticket_User::isAdmin($_SESSION['ticket_user'])){ if (Ticket_User::isAdmin(unserialize($_SESSION['ticket_user']))){
$pageResult['isAdmin'] = "TRUE"; $pageResult['isAdmin'] = "TRUE";
} }
global $INGAME_WEBPATH;
$pageResult['ingame_webpath'] = $INGAME_WEBPATH;
global $BASE_WEBPATH;
$pageResult['base_webpath'] = $BASE_WEBPATH;
return $pageResult; return $pageResult;
}else{ }else{
//ERROR: No access! //ERROR: No access!

View file

@ -8,7 +8,7 @@ session_start();
//Decide what page to load //Decide what page to load
if ( ! isset( $_GET["page"]) ){ if ( ! isset( $_GET["page"]) ){
if(isset($_SESSION['user'])){ if(isset($_SESSION['user'])){
if(Ticket_User::isMod($_SESSION['ticket_user'])){ if(Ticket_User::isMod(unserialize($_SESSION['ticket_user']))){
$page = 'dashboard'; $page = 'dashboard';
}else{ }else{
$page = 'show_user'; $page = 'show_user';
@ -44,7 +44,7 @@ if(isset($_SESSION['user'])){
//Set permission //Set permission
if(isset($_SESSION['ticket_user'])){ if(isset($_SESSION['ticket_user'])){
$return['permission'] = $_SESSION['ticket_user']->getPermission(); $return['permission'] = unserialize($_SESSION['ticket_user'])->getPermission();
}else{ }else{
//default permission //default permission
$return['permission'] = 0; $return['permission'] = 0;

View file

@ -1,329 +0,0 @@
<?php include('header.php'); ?>
<div>
<ul class="breadcrumb">
<li>
<a href="#">Home</a> <span class="divider">/</span>
</li>
<li>
<a href="#">Dashboard</a>
</li>
</ul>
</div>
<div class="sortable row-fluid">
<a data-rel="tooltip" title="6 new members." class="well span3 top-block" href="#">
<span class="icon32 icon-red icon-user"></span>
<div>Total Members</div>
<div>507</div>
<span class="notification">6</span>
</a>
<a data-rel="tooltip" title="4 new pro members." class="well span3 top-block" href="#">
<span class="icon32 icon-color icon-star-on"></span>
<div>Pro Members</div>
<div>228</div>
<span class="notification green">4</span>
</a>
<a data-rel="tooltip" title="$34 new sales." class="well span3 top-block" href="#">
<span class="icon32 icon-color icon-cart"></span>
<div>Sales</div>
<div>$13320</div>
<span class="notification yellow">$34</span>
</a>
<a data-rel="tooltip" title="12 new messages." class="well span3 top-block" href="#">
<span class="icon32 icon-color icon-envelope-closed"></span>
<div>Messages</div>
<div>25</div>
<span class="notification red">12</span>
</a>
</div>
<div class="row-fluid">
<div class="box span12">
<div class="box-header well">
<h2><i class="icon-info-sign"></i> Introduction</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<h1>Charisma <small>free, premium quality, responsive, multiple skin admin template.</small></h1>
<p>Its a live demo of the template. I have created Charisma to ease the repeat work I have to do on my projects. Now I re-use Charisma as a base for my admin panel work and I am sharing it with you :)</p>
<p><b>All pages in the menu are functional, take a look at all, please share this with your followers.</b></p>
<p class="center">
<a href="http://usman.it/free-responsive-admin-template" class="btn btn-large btn-primary"><i class="icon-chevron-left icon-white"></i> Back to article</a>
<a href="http://usman.it/free-responsive-admin-template" class="btn btn-large"><i class="icon-download-alt"></i> Download Page</a>
</p>
<div class="clearfix"></div>
</div>
</div>
</div>
<div class="row-fluid sortable">
<div class="box span4">
<div class="box-header well">
<h2><i class="icon-th"></i> Tabs</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<ul class="nav nav-tabs" id="myTab">
<li><a href="#info">Info</a></li>
<li class="active"><a href="#custom">Custom</a></li>
<li><a href="#messages">Messages</a></li>
</ul>
<div id="myTabContent" class="tab-content">
<div class="tab-pane" id="info">
<h3>Charisma <small>a fully featued template</small></h3>
<p>Its a fully featured, responsive template for your admin panel. Its optimized for tablet and mobile phones. Scan the QR code below to view it in your mobile device.</p> <img alt="QR Code" class="charisma_qr center" src="img/qrcode136.png" />
</div>
<div class="tab-pane active" id="custom">
<h3>Custom <small>small text</small></h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales at. Nulla tellus elit, varius non commodo eget, mattis vel eros. In sed ornare nulla. Donec consectetur, velit a pharetra ultricies, diam lorem lacinia risus, ac commodo orci erat eu massa. Sed sit amet nulla ipsum. Donec felis mauris, vulputate sed tempor at, aliquam a ligula. Pellentesque non pulvinar nisi.</p>
</div>
<div class="tab-pane" id="messages">
<h3>Messages <small>small text</small></h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula sodales at. Nulla tellus elit, varius non commodo eget, mattis vel eros. In sed ornare nulla. Donec consectetur, velit a pharetra ultricies, diam lorem lacinia risus, ac commodo orci erat eu massa. Sed sit amet nulla ipsum. Donec felis mauris, vulputate sed tempor at, aliquam a ligula. Pellentesque non pulvinar nisi.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor.</p>
</div>
</div>
</div>
</div><!--/span-->
<div class="box span4">
<div class="box-header well" data-original-title>
<h2><i class="icon-user"></i> Member Activity</h2>
<div class="box-icon">
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<div class="box-content">
<ul class="dashboard-list">
<li>
<a href="#">
<img class="dashboard-avatar" alt="Usman" src="http://www.gravatar.com/avatar/<?php echo md5( strtolower( trim( "usman@halalit.net" ) ) ); ?>.png?s=50"></a>
<strong>Name:</strong> <a href="#">Usman
</a><br>
<strong>Since:</strong> 17/05/2012<br>
<strong>Status:</strong> <span class="label label-success">Approved</span>
</li>
<li>
<a href="#">
<img class="dashboard-avatar" alt="Sheikh Heera" src="http://www.gravatar.com/avatar/<?php echo md5( strtolower( trim( "heerasheikh@ymail.com" ) ) ); ?>.png?s=50"></a>
<strong>Name:</strong> <a href="#">Sheikh Heera
</a><br>
<strong>Since:</strong> 17/05/2012<br>
<strong>Status:</strong> <span class="label label-warning">Pending</span>
</li>
<li>
<a href="#">
<img class="dashboard-avatar" alt="Abdullah" src="http://www.gravatar.com/avatar/<?php echo md5( strtolower( trim( "abdullah123456@abc.com" ) ) ); ?>.png?s=50"></a>
<strong>Name:</strong> <a href="#">Abdullah
</a><br>
<strong>Since:</strong> 25/05/2012<br>
<strong>Status:</strong> <span class="label label-important">Banned</span>
</li>
<li>
<a href="#">
<img class="dashboard-avatar" alt="Saruar Ahmed" src="http://www.gravatar.com/avatar/<?php echo md5( strtolower( trim( "saruarall@gmail.com" ) ) ); ?>.png?s=50"></a>
<strong>Name:</strong> <a href="#">Saruar Ahmed
</a><br>
<strong>Since:</strong> 17/05/2012<br>
<strong>Status:</strong> <span class="label label-info">Updates</span>
</li>
</ul>
</div>
</div>
</div><!--/span-->
<div class="box span4">
<div class="box-header well" data-original-title>
<h2><i class="icon-list-alt"></i> Realtime Traffic</h2>
<div class="box-icon">
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<div id="realtimechart" style="height:190px;"></div>
<p class="clearfix">You can update a chart periodically to get a real-time effect by using a timer to insert the new data in the plot and redraw it.</p>
<p>Time between updates: <input id="updateInterval" type="text" value="" style="text-align: right; width:5em"> milliseconds</p>
</div>
</div><!--/span-->
</div><!--/row-->
<div class="row-fluid sortable">
<div class="box span4">
<div class="box-header well" data-original-title>
<h2><i class="icon-list"></i> Buttons</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content buttons">
<p class="btn-group">
<button class="btn">Left</button>
<button class="btn">Middle</button>
<button class="btn">Right</button>
</p>
<p>
<button class="btn btn-small"><i class="icon-star"></i> Icon button</button>
<button class="btn btn-small btn-primary">Small button</button>
<button class="btn btn-small btn-danger">Small button</button>
</p>
<p>
<button class="btn btn-small btn-warning">Small button</button>
<button class="btn btn-small btn-success">Small button</button>
<button class="btn btn-small btn-info">Small button</button>
</p>
<p>
<button class="btn btn-small btn-inverse">Small button</button>
<button class="btn btn-large btn-primary btn-round">Round button</button>
<button class="btn btn-large btn-round"><i class="icon-ok"></i></button>
<button class="btn btn-primary"><i class="icon-edit icon-white"></i></button>
</p>
<p>
<button class="btn btn-mini">Mini button</button>
<button class="btn btn-mini btn-primary">Mini button</button>
<button class="btn btn-mini btn-danger">Mini button</button>
<button class="btn btn-mini btn-warning">Mini button</button>
</p>
<p>
<button class="btn btn-mini btn-info">Mini button</button>
<button class="btn btn-mini btn-success">Mini button</button>
<button class="btn btn-mini btn-inverse">Mini button</button>
</p>
</div>
</div><!--/span-->
<div class="box span4">
<div class="box-header well" data-original-title>
<h2><i class="icon-list"></i> Buttons</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content buttons">
<p>
<button class="btn btn-large">Large button</button>
<button class="btn btn-large btn-primary">Large button</button>
</p>
<p>
<button class="btn btn-large btn-danger">Large button</button>
<button class="btn btn-large btn-warning">Large button</button>
</p>
<p>
<button class="btn btn-large btn-success">Large button</button>
<button class="btn btn-large btn-info">Large button</button>
</p>
<p>
<button class="btn btn-large btn-inverse">Large button</button>
</p>
<div class="btn-group">
<button class="btn btn-large">Large Dropdown</button>
<button class="btn btn-large dropdown-toggle" data-toggle="dropdown"><span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="#"><i class="icon-star"></i> Action</a></li>
<li><a href="#"><i class="icon-tag"></i> Another action</a></li>
<li><a href="#"><i class="icon-download-alt"></i> Something else here</a></li>
<li class="divider"></li>
<li><a href="#"><i class="icon-tint"></i> Separated link</a></li>
</ul>
</div>
</div>
</div><!--/span-->
<div class="box span4">
<div class="box-header well" data-original-title>
<h2><i class="icon-list"></i> Weekly Stat</h2>
<div class="box-icon">
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<ul class="dashboard-list">
<li>
<a href="#">
<i class="icon-arrow-up"></i>
<span class="green">92</span>
New Comments
</a>
</li>
<li>
<a href="#">
<i class="icon-arrow-down"></i>
<span class="red">15</span>
New Registrations
</a>
</li>
<li>
<a href="#">
<i class="icon-minus"></i>
<span class="blue">36</span>
New Articles
</a>
</li>
<li>
<a href="#">
<i class="icon-comment"></i>
<span class="yellow">45</span>
User reviews
</a>
</li>
<li>
<a href="#">
<i class="icon-arrow-up"></i>
<span class="green">112</span>
New Comments
</a>
</li>
<li>
<a href="#">
<i class="icon-arrow-down"></i>
<span class="red">31</span>
New Registrations
</a>
</li>
<li>
<a href="#">
<i class="icon-minus"></i>
<span class="blue">93</span>
New Articles
</a>
</li>
<li>
<a href="#">
<i class="icon-comment"></i>
<span class="yellow">254</span>
User reviews
</a>
</li>
</ul>
</div>
</div><!--/span-->
</div><!--/row-->
<?php include('footer.php'); ?>

File diff suppressed because it is too large Load diff

View file

@ -17,61 +17,61 @@
<td><center><strong> Ingame related </strong></center></td> <td><center><strong> Ingame related </strong></center></td>
</tr> </tr>
<tr> <tr>
<td><img src="{$WEBPATH}/ams_lib/img/info/shard.png"/><strong> Shard ID: </strong>{$shard_id}</td> <td><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/shard.png"/><strong> Shard ID: </strong>{$shard_id}</td>
</tr> </tr>
<tr> <tr>
<td><img src="{$WEBPATH}/ams_lib/img/info/user.png"/><strong> User_Id: </strong>{$user_id}</td> <td><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/user.png"/><strong> User_Id: </strong>{$user_id}</td>
</tr> </tr>
<tr> <tr>
<td><img src="{$WEBPATH}/ams_lib/img/info/position.png"/><strong> User Position: </strong>{$user_position}</td> <td><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/position.png"/><strong> User Position: </strong>{$user_position}</td>
</tr> </tr>
<tr> <tr>
<td><img src="{$WEBPATH}/ams_lib/img/info/view.png"/><strong> View Position: </strong>{$view_position}</td> <td><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/view.png"/><strong> View Position: </strong>{$view_position}</td>
</tr> </tr>
<tr> <tr>
<td><img src="{$WEBPATH}/ams_lib/img/info/client.png"/><strong> Client_Version: </strong> {$client_version}</td> <td><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/client.png"/><strong> Client_Version: </strong> {$client_version}</td>
</tr> </tr>
<tr> <tr>
<td><img src="{$WEBPATH}/ams_lib/img/info/patch.png"/><strong> Patch_Version: </strong>{$patch_version}</td> <td><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/patch.png"/><strong> Patch_Version: </strong>{$patch_version}</td>
</tr> </tr>
<tr> <tr>
<td><img src="{$WEBPATH}/ams_lib/img/info/server.png"/><strong> Server_Tick: </strong>{$server_tick}</td> <td><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/server.png"/><strong> Server_Tick: </strong>{$server_tick}</td>
</tr> </tr>
<tr class="alert alert-info"> <tr class="alert alert-info">
<td><center><strong> Hardware & Software related </strong></center></td> <td><center><strong> Hardware & Software related </strong></center></td>
</tr> </tr>
<tr> <tr>
<td><strong><img src="{$WEBPATH}/ams_lib/img/info/memory.png"/> Memory: </strong>{$memory}</td> <td><strong><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/memory.png"/> Memory: </strong>{$memory}</td>
</tr> </tr>
<tr> <tr>
<td><img src="{$WEBPATH}/ams_lib/img/info/processor.png"/><strong> Processor: </strong>{$processor}</td> <td><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/processor.png"/><strong> Processor: </strong>{$processor}</td>
</tr> </tr>
<tr> <tr>
<td><img src="{$WEBPATH}/ams_lib/img/info/cpuid.png"/><strong> Cpu_Id: </strong>{$cpu_id}</td> <td><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/cpuid.png"/><strong> Cpu_Id: </strong>{$cpu_id}</td>
</tr> </tr>
<tr> <tr>
<td><img src="{$WEBPATH}/ams_lib/img/info/mask.png"/><strong> Cpu_Mask: </strong>{$cpu_mask}</td> <td><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/mask.png"/><strong> Cpu_Mask: </strong>{$cpu_mask}</td>
</tr> </tr>
<tr> <tr>
<td><img src="{$WEBPATH}/ams_lib/img/info/ht.png"/><strong> HT: </strong>{$ht}</td> <td><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/ht.png"/><strong> HT: </strong>{$ht}</td>
</tr> </tr>
<tr> <tr>
<td><img src="{$WEBPATH}/ams_lib/img/info/os.png"/><strong> OS: </strong>{$os}</td> <td><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/os.png"/><strong> OS: </strong>{$os}</td>
</tr> </tr>
<tr> <tr>
<td><img src="{$WEBPATH}/ams_lib/img/info/nel.png"/><strong> NeL3D: </strong>{$nel3d}</td> <td><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/nel.png"/><strong> NeL3D: </strong>{$nel3d}</td>
</tr> </tr>
<tr class="alert alert-info"> <tr class="alert alert-info">
<td><center><strong> Network related </strong></center></td> <td><center><strong> Network related </strong></center></td>
</tr> </tr>
<tr> <tr>
<td><img src="{$WEBPATH}/ams_lib/img/info/connect.png"/><strong> Connect_State: </strong>{$connect_state}</td> <td><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/connect.png"/><strong> Connect_State: </strong>{$connect_state}</td>
</tr> </tr>
<tr> <tr>
<td><img src="{$WEBPATH}/ams_lib/img/info/local.png"/><strong> Local_Address: </strong>{$local_address}</td> <td><img src="{$IMAGELOC_WEBPATH}/ams_lib/img/info/local.png"/><strong> Local_Address: </strong>{$local_address}</td>
</tr> </tr>
</table> </table>

Some files were not shown because too many files have changed in this diff Show more