Viewing file: infoaddin_hdr.php (1.29 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php require_once "infosys_global.php"; require_once "${_MOD_PATH}mod_tplutils.php";
require_once "${_CLASS_PATH}clsConnection.php"; require_once "${_CLASS_PATH}clsDB.php"; require_once "${_UMS_PATH}clsUser.php";
setnocache();
session_start(); if (logged_in()) { $oU = &$_SESSION["oU"]; $UsID = $oU->userID; if (!isset($_SESSION["ADDIN_OWNER"])) { $oC = new clsConnection($GLOBALS["DBHOST"], $GLOBALS["DBNAME_UMS"], $GLOBALS["DBUSER_UMS"], $GLOBALS["DBPASS_UMS"]); if ($oC->c && $oC->errmsg == "") { $_SESSION["ADDIN_OWNER"] = array(); $db = $GLOBALS["DBNAME_UMS"]; foreach ($GLOBALS["_ADDIN_WGOWNER"] as $key => $value) { $ownerqry = "select umusergroup.* from $db.umusergroup where umusergroup.UgUsID = $UsID and umusergroup.UgGpID = $value"; $ownres = mysql_query($ownerqry, $oC->c); if (mysql_num_rows($ownres) > 0) $_SESSION["ADDIN_OWNER"][$key] = true; else $_SESSION["ADDIN_OWNER"][$key] = false; } } } ob_start("addinURLLink"); } else { $full_url = $GLOBALS["_PROTOCOL"] . $GLOBALS["_INFO_INDEX"]; #header("Location: $full_url"); ?> <script>window.location.href='<? echo $full_url; ?>';</script> <? } ?>
|