Exemplo n.º 1
0
 /**
  * get connection information from session
  * 
  * @param string $type the connection type
  * @param int $num the connection index
  * @return array 
  */
 function GetConFromSession($type, $num)
 {
     if ($type == 'con') {
         $list = getConsList();
         return $list['cons'][$num];
     } else {
         $list = getConpsList();
         return $list['conps'][$num];
     }
 }
Exemplo n.º 2
0
<?php

if (!defined('IN_MADM')) {
    exit;
}
require_once "./langs/" . $_SESSION["MADM_SESSION_KEY"]['lang'] . ".php";
require_once "./include/func/memadmin.func.php";
require_once './config.php';
global $config;
$conlist = getConsList();
$conplist = getConpsList();
if ($conlist['num'] > 0) {
    $type = "con";
} else {
    $type = "conp";
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="include/js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="include/js/jquery.ui.all.js"></script>
<script type="text/javascript" src="include/js/jquery.layout.min.js"></script>
<script type="text/javascript" src="include/js/memadmin.js"></script>
<link rel="stylesheet" href="include/css/memadmin.css" />
<title><?php 
echo $langs['title'] . " - " . $config['version'];
?>
</title>
<script>