コード例 #1
0
ファイル: desktop.php プロジェクト: airedale/sumo
 * Define windows for all modules
 */
$num_modules = count($modules);
for ($m = 0; $m < $num_modules; $m++) {
    $m_name = $modules[$m];
    $m_icon = $SUMO['page']['web_path'] . '/themes/' . $SUMO['page']['theme'] . '/images/modules/' . $m_name . '/icon.desktop.png';
    $m_conf = SUMO_PATH . '/modules/' . $m_name . '/module.xml';
    // Load module config
    $config[$m_name] = sumo_xmlize(file_get_contents($m_conf));
    // Verify permissions
    $_level[$m_name] = $config[$m_name]['module']['@']['level'] ? $config[$m_name]['module']['@']['level'] : 0;
    $_group[$m_name] = $config[$m_name]['module']['@']['group'] ? $config[$m_name]['module']['@']['group'] : $SUMO['user']['group'];
    $_user[$m_name] = $config[$m_name]['module']['@']['user'] ? $config[$m_name]['module']['@']['user'] : $SUMO['user']['user'];
    if (sumo_verify_permissions($_level[$m_name], $_group[$m_name], $_user[$m_name])) {
        // Icon
        $tpl['GET:ModuleIcon' . ucfirst($m_name)] = sumo_get_module_icon($m_name, '', $console['language'][$m_name]);
        // Window position
        if (isset($desktop['settings'][$m_name]['xw'])) {
            $sm[$m_name] = $desktop['settings'][$m_name]['s'];
            $xw[$m_name] = $desktop['settings'][$m_name]['xw'];
            $yw[$m_name] = $desktop['settings'][$m_name]['yw'];
        } else {
            $sm[$m_name] = 0;
            $xw[$m_name] = isset($xws) ? $xws + 10 : 100;
            $yw[$m_name] = isset($yws) ? $yws + 23 : 30;
            // reset windows positions
            if ($yw[$m_name] > 400) {
                $xw[$m_name] = 100;
                $yw[$m_name] = 30;
            }
            $xws = $xw[$m_name];
コード例 #2
0
ファイル: action.main.php プロジェクト: airedale/sumo
<?php

/**
 * SUMO MODULE: Users & Groups | Main
 * 
 * @version    0.3.5
 * @link       http://sumoam.sourceforge.net SUMO Access Manager
 * @author     Alberto Basso <*****@*****.**>
 * @copyright  Copyright &copy; 2003-2009, Alberto Basso
 * @package    SUMO
 * @category   Console
 */
$tpl = array('GET:ModuleIconUsers' => sumo_get_module_icon('users', 'list', $language['Users'], false), 'GET:ModuleIconGroups' => sumo_get_module_icon('groups', 'list', $language['Groups'], false), 'GET:ModuleIconRelationship' => sumo_get_module_icon('relationship', 'group2users', $language['Relationship'], false));
コード例 #3
0
ファイル: action.main.php プロジェクト: airedale/sumo
<?php

/**
 * SUMO MODULE: Security | Main
 * 
 * @version    0.2.10
 * @link       http://sumoam.sourceforge.net SUMO Access Manager
 * @author     Alberto Basso <*****@*****.**>
 * @copyright  Copyright &copy; 2003-2009, Alberto Basso
 * @package    SUMO
 * @category   Console
 */
$tpl = array('GET:ModuleIconSecurityLog' => sumo_get_module_icon('security', 'last_list', $language['LogManager'], false, 'log_manager'), 'GET:ModuleIconSecurityBanned' => sumo_get_module_icon('security', 'banned', $language['BannedIP'], false, 'banned_ip'), 'GET:WindowScripts' => 'sumo_unrefresh_window("security")');
コード例 #4
0
ファイル: action.main.php プロジェクト: airedale/sumo
<?php

/**
 * SUMO MODULE: Accesspoints | Main
 * 
 * @version    0.5.0
 * @link       http://sumoam.sourceforge.net SUMO Access Manager
 * @author     Alberto Basso <*****@*****.**>
 * @copyright  Copyright &copy; 2003-2009, Alberto Basso
 * @package    SUMO
 * @category   Console
 */
// Template Data
$tpl = array('GET:ModuleIconAccesspoints' => sumo_get_module_icon('accesspoints', 'list', $language['AccessPoints'], false), 'GET:ModuleIconAccesspointsStats' => sumo_get_module_icon('accesspoints', 'stats', $language['Statistics'], false, 'accesspoints_stats'), 'GET:WindowScripts' => 'sumo_unrefresh_window("accesspoints")');
コード例 #5
0
ファイル: action.main.php プロジェクト: airedale/sumo
<?php

/**
 * SUMO MODULE: Network | Main
 * 
 * @version    0.2.10
 * @link       http://sumoam.sourceforge.net SUMO Access Manager
 * @author     Alberto Basso <*****@*****.**>
 * @copyright  Copyright &copy; 2003-2009, Alberto Basso
 * @package    SUMO
 * @category   Console
 */
$tpl = array('GET:ModuleIconNetworkNodes' => sumo_get_module_icon('network', 'nlist', $language['Nodes'], false, 'nodes'), 'GET:ModuleIconNetworkDatasources' => sumo_get_module_icon('network', 'dlist', $language['DataSources'], false, 'datasources'), 'GET:ModuleIconNetworkLocalNetwork' => sumo_get_module_icon('network', 'ilist', $language['LocalNetwork'], false, 'intranet'));