That did the trick. Thanks.
Loving SimpleDesk? Help us spread the word!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
<?php
require_once('../SSI.php');
?>
$context['user']['username']
<iframe src="http://ethera.servehttp.com/game/game_load.php" height="200" width="100%" frameborder="0"></iframe>
$context['user']['username']
<?php
// Version: 1.1 RC2; Gallery
function template_main()
{
global $context, $settings, $options, $txt, $scripturl;
echo '
<script language="JavaScript" type="text/javascript"><!--
function checkAll(onOff)
{
for (var i = 0; i < document.searchform.elements.length; i++)
{
if (document.searchform.elements[i].name.substr(0, 3) == "brd")
document.searchform.elements[i].checked = onOff;
}
}
// --></script>
<form action="', $scripturl, '?action=search2" method="post" name="searchform" id="searchform">
<script type="text/javascript"><!--
/***********************************************
* IFrame SSI script II- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of original DHTML scripts
* This notice must stay intact for legal use
***********************************************/
//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
//Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
var iframeids=["myframe"]
//Should script hide iframe from browsers that don\'t support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="yes"
var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers
function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids[i])
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}
function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight;
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe) // Bug fix line
currentfr.attachEvent("onload", readjustIframe)
}
}
}
function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}
function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}
if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller
// --></script>
<table width="100%" border="0" cellspacing="0" cellpadding="4" align="center" class="tborder">
<tr>
<td class="windowbg">';
// load the gallery
echo '<iframe id="myframe" src="http://ethera.servehttp.com/Coppermine/" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:novisible; width:100%; display:none"></iframe>';
echo '
</td>
</tr>
</table>
</form>';
}
?>
...
include_once($_SERVER['DOCUMENT_ROOT'].'/SSI.php');
...
Quote from: clarinet on March 04, 2013, 08:42:29 AM
Well, I could not help myself ... it was not that hard. Edit file ./Sources/sd_source/Subs-SimpleDeskPermissions.php, replace line 364
$user_info['shd_permissions'][$perm] = $depts[$role];
with
if(is_array($user_info['shd_permissions'][$perm]))
$user_info['shd_permissions'][$perm] = array_merge($user_info['shd_permissions'][$perm],$depts[$role]);
else
$user_info['shd_permissions'][$perm] = $depts[$role];
...
// 1. Get all the roles that conceivably apply to this user.
$query = $smcFunc['db_query']('', '
SELECT hdrg.id_role, hdr.template
FROM {db_prefix}helpdesk_role_groups AS hdrg
INNER JOIN {db_prefix}helpdesk_roles AS hdr ON (hdrg.id_role = hdr.id_role)
WHERE hdrg.id_group IN ({array_int:groups})',
array(
'groups' => $user_info['groups'],
)
);
$roles = array();
Array
(
[0] => Array
(
[id_role] => 1
[template] => 1
)
[1] => Array
(
[id_role] => 2
[template] => 2
)
)
[2] => Array
(
[id_role] => 5
[template] => 2
)
Array
(
[0] => 24
[1] => 4
[2] => 17
)
id_role | id_group |
1 | 11 |
1 | 12 |
1 | 13 |
1 | 14 |
1 | 16 |
1 | 18 |
1 | 24 |
2 | 14 |
2 | 17 |
3 | 2 |
3 | 15 |
4 | 13 |
4 | 14 |
5 | 11 |
5 | 12 |
5 | 24 |
id_role | template | role_name |
1 | 1 | Helpdesk Users |
2 | 2 | Helpdesk Staff |
3 | 4 | Helpdesk Managers |
4 | 1 | Workdesk Users |
5 | 2 | Workdesk Staff |
if(empty($useFront) || !empty($context['pmx']['show_frontpanel']) || !empty($context['pmx']['show_pagespanel']) || !empty($_GET['pmxerror']))
if(!empty($useFront) || !empty($context['pmx']['show_frontpanel']) || !empty($context['pmx']['show_pagespanel']) || !empty($_GET['pmxerror']))
Quote from: venguard223 on August 12, 2012, 10:15:07 AM
Still need to know more about these groups and the users who have these groups, what groups do they have?
Also, go to the profile of a user in these groups and pull up a list of their permissions in the helpdesk, that will show you what permissions they have access to.
Page created in 0.028 seconds with 17 queries.