function sum_page() { global $gEnv; $amp_locale = new Locale('amp_root_menu', AMP_LANG); import('com.solarix.ampoliros.module.ModuleConfig'); $mod_cfg = new ModuleConfig($gEnv['root']['db'], 'ampoliros'); $hui = new Hui($gEnv['root']['db'], TRUE); $hui->LoadWidget('table'); $hui->LoadWidget('page'); $hui->LoadWidget('vertgroup'); $hui->LoadWidget('vertframe'); $hui->LoadWidget('treemenu'); $hui_page = new HuiPage('page', array('title' => 'Ampoliros' . (strlen(AMP_HOST) ? ' - ' . AMP_HOST . (strlen(AMP_DOMAIN) ? '.' . AMP_DOMAIN : '') : ''), 'border' => 'false')); $hui_page->mArgs['background'] = $hui_page->mThemeHandler->mStyle['menuback']; $hui_mainvertgroup = new HuiVertGroup('mainvertgroup'); $el[1]['groupname'] = 'Ampoliros'; $cont = 1; $query =& $gEnv['root']['db']->Execute('SELECT id FROM sites'); if ($query->NumRows()) { $el[1]['groupelements'][$cont]['name'] = $amp_locale->GetStr('siteadmin'); $el[1]['groupelements'][$cont]['image'] = $hui_page->mThemeHandler->mStyle['siteaccess']; $el[1]['groupelements'][$cont]['action'] = 'admin/'; $el[1]['groupelements'][$cont]['themesized'] = 'true'; $cont++; } $el[1]['groupelements'][$cont]['name'] = $amp_locale->GetStr('rootadmin'); $el[1]['groupelements'][$cont]['image'] = $hui_page->mThemeHandler->mStyle['rootaccess']; $el[1]['groupelements'][$cont]['action'] = 'root/'; $el[1]['groupelements'][$cont]['themesized'] = 'true'; if ($mod_cfg->GetKey('ampoliros-link-disabled') != '1') { $el[1]['groupelements'][++$cont]['name'] = $amp_locale->GetStr('amphome'); $el[1]['groupelements'][$cont]['image'] = $hui_page->mThemeHandler->mStyle['ampminilogo']; $el[1]['groupelements'][$cont]['action'] = 'http://www.ampoliros.com/'; $el[1]['groupelements'][$cont]['target'] = 'op'; $el[1]['groupelements'][$cont]['themesized'] = 'true'; } if ($mod_cfg->GetKey('solarix-link-disabled') != '1') { $el[1]['groupelements'][++$cont]['name'] = $amp_locale->GetStr('solarixhome'); $el[1]['groupelements'][$cont]['image'] = $hui_page->mThemeHandler->mStyle['solarixminilogo']; $el[1]['groupelements'][$cont]['action'] = 'http://www.solarix.biz/'; $el[1]['groupelements'][$cont]['target'] = 'op'; $el[1]['groupelements'][$cont]['themesized'] = 'true'; } if ($mod_cfg->GetKey('oem-link-disabled') != '1') { $oem_link_filename = $mod_cfg->GetKey('oem-link-filename'); if (strlen($oem_link_filename) and file_exists(CGI_PATH . $oem_link_filename)) { $el[1]['groupelements'][++$cont]['name'] = $mod_cfg->GetKey('oem-name'); $el[1]['groupelements'][$cont]['image'] = CGI_URL . $oem_link_filename; $el[1]['groupelements'][$cont]['action'] = $mod_cfg->GetKey('oem-url'); $el[1]['groupelements'][$cont]['target'] = 'parent'; $el[1]['groupelements'][$cont]['themesized'] = 'false'; } } $hui_vertframe = new HuiVertFrame('vertframe'); $hui_vertframe->AddChild(new HuiTreeMenu('treemenu', array('elements' => $el, 'width' => '120', 'target' => 'parent', 'allgroupsactive' => 'true'))); $hui_mainvertgroup->AddChild($hui_vertframe); $hui_page->AddChild($hui_mainvertgroup); $hui->AddChild($hui_page); $hui->Render(); }
function main_page($redrawFrames = FALSE) { Carthag::import('com.solarix.ampoliros.hui.Hui'); global $gEnv; if (!$redrawFrames and is_object($gEnv['root']['db']) and !defined('AMPOLIROS_SETUP_PHASE')) { import('com.solarix.ampoliros.module.ModuleConfig'); $mod_cfg = new ModuleConfig($gEnv['root']['db'], 'ampoliros'); $amp_logo_disabled = $mod_cfg->GetKey('ampoliros-biglogo-disabled'); } else { $amp_logo_disabled = 0; } $hui = new Hui($gEnv['root']['db'], true); $hui->LoadWidget('page'); $hui->LoadWidget('vertgroup'); $hui->LoadWidget('button'); $page_params['title'] = 'Ampoliros'; $page_params['border'] = 'false'; if ($redrawFrames) { $page_params['javascript'] = "parent.frames.sum.location.reload()\nparent.frames.header.location.reload()"; } $hui_page = new HuiPage('page', $page_params); $hui_vertgroup = new HuiVertGroup('vertgroup', array('align' => 'center', 'groupalign' => 'center', 'groupvalign' => 'middle', 'height' => '100%')); $hui_buttons_group = new HuiVertGroup('buttons_group', array('align' => 'center', 'groupalign' => 'center', 'groupvalign' => 'middle', 'height' => '0%')); if ($amp_logo_disabled != '1') { if ($gEnv['core']['edition'] == AMP_EDITION_ASP) { $edition = '_asp'; } else { $edition = '_enterprise'; } if (isset($hui_page->mThemeHandler->mStyle['bigdot' . $edition])) { $bigdot_image = $hui_page->mThemeHandler->mStyle['bigdot' . $edition]; } else { $bigdot_image = $hui_page->mThemeHandler->mStyle['bigdot']; } $hui_button = new HuiButton('button', array('action' => 'http://www.ampoliros.com', 'target' => '_top', 'image' => $bigdot_image, 'highlight' => 'false')); $hui_buttons_group->AddChild($hui_button); } if (!$redrawFrames and is_object($gEnv['root']['db']) and !defined('AMPOLIROS_SETUP_PHASE')) { // OEM personalization // $oem_biglogo_filename = $mod_cfg->GetKey('oem-biglogo-filename'); $oem_url = $mod_cfg->GetKey('oem-url'); if ($mod_cfg->GetKey('oem-biglogo-disabled') != '1') { if (strlen($oem_biglogo_filename) and file_exists(CGI_PATH . $oem_biglogo_filename)) { $oem_button = new HuiButton('oembutton', array('action' => strlen($oem_url) ? $oem_url : 'http://www.ampoliros.com', 'target' => '_top', 'image' => CGI_URL . $oem_biglogo_filename, 'highlight' => 'false')); $hui_buttons_group->AddChild($oem_button); } } } $hui_vertgroup->AddChild($hui_buttons_group); $hui_page->AddChild($hui_vertgroup); $hui->AddChild($hui_page); $hui->Render(); }
* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // $Id: header.php,v 1.13 2004-07-08 15:04:25 alex Exp $ require './auth.php'; import('com.solarix.ampoliros.hui.Hui'); $hui = new Hui($env['ampdb']); $hui->LoadWidget('button'); $hui->LoadWidget('image'); $hui->LoadWidget('label'); $hui->LoadWidget('link'); $hui->LoadWidget('page'); $hui->LoadWidget('vertgroup'); $hui_page = new HuiPage('page', array('title' => 'Ampoliros - ' . $env['sitedata']['sitename'], 'border' => 'false')); $hui_page->mArgs['background'] = $hui_page->mThemeHandler->mStyle['menuback']; $hui_mainvertgroup = new HuiVertGroup('mainvertgroup', array('align' => 'center')); $hui_mainvertgroup->AddChild(new HuiButton('amplogo', array('action' => AMP_URL, 'target' => '_top', 'image' => $hui_page->mThemeHandler->mStyle['middot'], 'highlight' => 'false'))); $hui_mainvertgroup->AddChild(new HuiLabel('label', array('label' => $env['sitedata']['sitename'], 'nowrap' => 'true', 'align' => 'center'))); if (strlen($env['currentusercname'])) { $hui_mainvertgroup->AddChild(new HuiLabel('labelname', array('label' => $env['currentusercname']))); } $hui_page->AddChild($hui_mainvertgroup); $hui->AddChild($hui_page);
<?php // Initialization // require 'auth.php'; OpenLibrary('configman.library'); OpenLibrary('locale.library'); OpenLibrary('hui.library'); OpenLibrary('ampshared.library'); OpenLibrary('jpcache.library'); $gEnv['runtime']['modules']['jpcache']['cacheon'] = 0; $gLocale = new Locale('jpcache_root_jpcache', $gEnv['root']['locale']['language']); $gHui = new Hui($gEnv['root']['db']); $gHui->LoadWidget('amppage'); $gHui->LoadWidget('amptoolbar'); $gHui->LoadWidget('xml'); $gPage_content = $gStatus = $gToolbars = ''; $gTitle = $gLocale->GetStr('jpcache.title'); $gMenu = get_ampoliros_root_menu_def($gEnv['root']['locale']['language']); $gToolbars['main'] = array('main' => array('label' => $gLocale->GetStr('default.button'), 'themeimage' => 'configure', 'action' => build_events_call_string('', array(array('main', 'default', '')))), 'stats' => array('label' => $gLocale->GetStr('stats.button'), 'themeimage' => 'folder', 'action' => build_events_call_string('', array(array('main', 'stats', '')))), 'erase' => array('label' => $gLocale->GetStr('erasecache.button'), 'themeimage' => 'edittrash', 'action' => build_events_call_string('', array(array('main', 'default', ''), array('action', 'erasecache', ''))), 'needconfirm' => 'true', 'confirmmessage' => $gLocale->GetStr('erase.confirm'))); /* $gToolbars['help'] = array( 'help' => array( 'label' => $gLocale->GetStr( 'help.button' ), 'themeimage' => 'help', 'action' => build_events_call_string( '', array( array( 'main', 'help', '' ) ) ) ) ); */ // Action dispatcher // $gAction_disp = new HuiDispatcher('action'); $gAction_disp->AddEvent('setprefs', 'action_setprefs');
* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // $Id: main.php,v 1.16 2004-07-08 15:04:24 alex Exp $ require './auth.php'; import('com.solarix.ampoliros.locale.Locale'); import('com.solarix.ampoliros.hui.Hui'); import('com.solarix.ampoliros.module.Module'); $hui = new Hui($gEnv['root']['db']); $hui->LoadWidget('button'); $hui->LoadWidget('grid'); $hui->LoadWidget('horizframe'); $hui->LoadWidget('horizgroup'); $hui->LoadWidget('image'); $hui->LoadWidget('label'); $hui->LoadWidget('link'); $hui->LoadWidget('page'); $hui->LoadWidget('vertframe'); $hui->LoadWidget('vertgroup'); $mod_cfg = new ModuleConfig($env['ampdb'], 'ampoliros'); $hui_page = new HuiPage('page', array('title' => 'Ampoliros', 'border' => 'false')); $hui_vertgroup = new HuiVertGroup('vertgroup', array('align' => 'center', 'groupalign' => 'center', 'groupvalign' => 'middle', 'height' => '100%')); $hui_buttons_group = new HuiVertGroup('buttons_group', array('align' => 'center', 'groupalign' => 'center', 'groupvalign' => 'middle', 'height' => '0%')); if ($mod_cfg->GetKey('ampoliros-biglogo-disabled') != '1') { if ($gEnv['core']['edition'] == AMP_EDITION_ASP) {
* * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // $Id: profiles.php,v 1.23 2004-07-08 15:04:25 alex Exp $ require './auth.php'; Carthag::import('com.solarix.ampoliros.io.log.Logger'); Carthag::import('com.solarix.ampoliros.locale.Locale'); OpenLibrary('hui.library'); OpenLibrary('users.library'); $log = new Logger(AMP_LOG); $amp_locale = new Locale('amp_site_profiles', $gEnv['user']['locale']['language']); $hui = new Hui($env['ampdb']); $hui->LoadWidget('button'); $hui->LoadWidget('checkbox'); $hui->LoadWidget('combobox'); $hui->LoadWidget('date'); $hui->LoadWidget('empty'); $hui->LoadWidget('file'); $hui->LoadWidget('formarg'); $hui->LoadWidget('form'); $hui->LoadWidget('grid'); $hui->LoadWidget('helpnode'); $hui->LoadWidget('horizbar'); $hui->LoadWidget('horizframe'); $hui->LoadWidget('horizgroup'); $hui->LoadWidget('image'); $hui->LoadWidget('label'); $hui->LoadWidget('link');
public function abort($text, $forceInterface) { global $gEnv; OpenLibrary('hui.library'); if (strlen($forceInterface)) { $interface = $forceInterface; } else { $interface = $this->interface; } if ($interface == Ampoliros::INTERFACE_EXTERNAL) { if (isset($gEnv['runtime']['external_interface_error_handler']) and function_exists($gEnv['runtime']['external_interface_error_handler'])) { $func = $gEnv['runtime']['external_interface_error_handler']; $func($text); } else { $interface = Ampoliros::INTERFACE_WEB; $this->interface = Ampoliros::INTERFACE_WEB; } } switch ($interface) { case Ampoliros::INTERFACE_GUI: case Ampoliros::INTERFACE_UNKNOWN: case Ampoliros::INTERFACE_REMOTE: case Ampoliros::INTERFACE_EXTERNAL: break; case Ampoliros::INTERFACE_CONSOLE: echo "\n" . $text . "\n"; break; case Ampoliros::INTERFACE_WEB: $reg = Registry::instance(); $tmp_hui = new Hui($reg->getEntry('amp.root.db')); $tmp_hui->LoadWidget('empty'); //$tmp_elem = new HuiEmpty('empty'); if (is_object($gEnv['hui']['theme']['handler'])) { $die_image = $gEnv['hui']['theme']['handler']->mStyle['bigdot']; } else { $die_image = ''; } ?> <html> <head> <basefont face="Verdana"> <title>Ampoliros</title> <link rel="stylesheet" type="text/css" href="<?php echo $gEnv['hui']['theme']['handler']->mStyle['css']; ?> "> </head> <body bgcolor="white"> <table border="0" cellspacing="0" cellpadding="0" align="center" width="200"> <tr> <td align="center"><a href="<?php echo AMP_URL; ?> "><img src="<?php echo $die_image; ?> " alt="Ampoliros" border="0"></a></td> </tr> <tr> <td> </td> </tr> <tr> <td align="center"><?php echo $text; ?> </td> </tr> </table> </body> </html> <?php break; } $carthag = Carthag::instance(); $carthag->halt(); }
<?php require 'auth.php'; OpenLibrary('hui.library'); $gHui = new Hui($GLOBALS['gEnv']['root']['db']); $gHui->LoadWidget('amppage'); $gHui->LoadWidget('xml'); $gXml_def = ''; $gMain_disp = new HuiDispatcher('main'); $gMain_disp->AddEvent('default', 'main_default'); function main_default($eventData) { global $gXml_def; $example_data = array(array("80", 0.0, 20, 4, 5, 6), array("81", 2.0, 30, 5, 6, 7), array("82", 3.0, 40, 5, 7, 8), array("83", 4.0, 50, 3, 6, 3), array("84", 4.4, 40, 3, 6, 5), array("85", 5.4, 40, 5, 6, 5), array("86", 5.5, 40, 7, 6, 5), array("87", 7, 35, 0.0, 0.0, ""), array("88", 7.4, 40, 14, 16, 25), array("89", 7.6, 40, 6, 6, 5), array("90", 8.199999999999999, 40, 3, 6, 5), array("91", 8.5, 40, 8, 6, 9), array("92", 9.300000000000001, 40, 5, 6, 5), array("93", 9.6, 40, 9, 6, 7), array("94", 9.9, 40, 2, 6, 5), array("95", 10.0, 40, 3, 6, 8), array("96", 10.4, 40, 3, 6, 5), array("97", 10.5, 40, 3, 6, 5), array("98", 10.8, 40, 3, 6, 5), array("99", 11.4, 40, 3, 6, 5), array("00", 12.0, 40, 3, 7, 5), array("01", 13.4, 40, 3, 5, 3), array("02", 14.0, 30, 3, 5, 6)); $legend = array('Prodotto A', 'Prodotto B', 'Prodotto C', 'Prodotto D', 'Prodotto E'); $gXml_def = '<vertgroup> <children> <label> <args> <label>Grafico</label> </args> </label> <vertframe> <children> <phplot> <args> <data type="array">' . huixml_encode($example_data) . '</data> <width>600</width>
function DoAuth($wrong = false, $reason = '') { global $gEnv; $amp_locale = new Locale('amp_misc_auth', AMP_LANG); $amp = Ampoliros::instance('Ampoliros'); $amp->startRoot(); $hui = new Hui($gEnv['root']['db']); $hui->LoadWidget('button'); $hui->LoadWidget('formarg'); $hui->LoadWidget('form'); $hui->LoadWidget('grid'); $hui->LoadWidget('horizbar'); $hui->LoadWidget('horizframe'); $hui->LoadWidget('horizgroup'); $hui->LoadWidget('image'); $hui->LoadWidget('label'); $hui->LoadWidget('link'); $hui->LoadWidget('page'); $hui->LoadWidget('sessionkey'); $hui->LoadWidget('statusbar'); $hui->LoadWidget('string'); $hui->LoadWidget('submit'); $hui->LoadWidget('titlebar'); $hui->LoadWidget('vertframe'); $hui->LoadWidget('vertgroup'); $hui_page = new HuiPage('loginpage', array('title' => $amp_locale->GetStr('amplogin'), 'border' => 'false')); $hui_topgroup = new HuiVertGroup('topgroup', array('align' => 'center', 'groupalign' => 'center', 'groupvalign' => 'middle', 'height' => '100%')); $hui_maingroup = new HuiVertGroup('maingroup', array('align' => 'center')); $hui_titlebar = new HuiTitleBar('titlebar', array('title' => $amp_locale->GetStr('amplogin'), 'closewidget' => 'false', 'newwindowwidget' => 'false')); $hui_mainbframe = new HuiVertFrame('vframe', array('align' => 'center')); $hui_mainframe = new HuiHorizGroup('horizframe'); $hui_mainstatus = new HuiStatusBar('mainstatusbar'); // Main frame // $hui_grid = new HuiGrid('grid', array('rows' => '2', 'cols' => '2')); $hui_grid->AddChild(new HuiLabel('usernamelabel', array('label' => $amp_locale->GetStr('username'))), 0, 0); $hui_grid->AddChild(new HuiString('username', array('disp' => 'login')), 0, 1); $hui_grid->AddChild(new HuiLabel('passwordlabel', array('label' => $amp_locale->GetStr('password'))), 1, 0); $hui_grid->AddChild(new HuiString('password', array('disp' => 'login', 'password' => 'true')), 1, 1); $hui_vgroup = new HuiVertGroup('vertgroup', array('align' => 'center')); //$hui_vgroup->AddChild( new HuiLabel( 'titlelabel', array( 'label' => $amp_locale->GetStr( 'amprootlogin' ) ) ) ); $hui_vgroup->AddChild($hui_grid); $hui_vgroup->AddChild(new HuiSubmit('submit', array('caption' => $amp_locale->GetStr('enter')))); $form_events_call = new HuiEventsCall(); $form_events_call->AddEvent(new HuiEvent('login', 'login', '')); $form_events_call->AddEvent(new HuiEvent('main', 'default', '')); $hui_form = new HuiForm('form', array('action' => $form_events_call->GetEventsCallString())); $hui_hgroup = new HuiHorizGroup('horizgroup', array('align' => 'middle')); // $hui_hgroup -> AddChild(new HuiButton('amplogo', array('image' => $hui_page -> mThemeHandler -> mStyle['middot'], 'action' => AMP_URL, 'highlight' => false))); $hui_hgroup->AddChild(new HuiButton('password', array('themeimage' => 'password', 'themeimagetype' => 'big', 'action' => AMP_URL, 'highlight' => false))); $hui_hgroup->AddChild($hui_vgroup); $hui_form->AddChild($hui_hgroup); $hui_mainframe->AddChild($hui_form); // Wrong account check // if ($wrong) { if ($gEnv['core']['config']->Value('ALERT_ON_WRONG_LOCAL_USER_LOGIN') == '1') { Carthag::import('com.solarix.ampoliros.security.SecurityLayer'); global $login_disp; $event_data = $login_disp->GetEventData(); $amp_security = new SecurityLayer(); $amp_security->SendAlert('Wrong user local login for user ' . $event_data['username'] . ' from remote address ' . $_SERVER['REMOTE_ADDR']); $amp_security->LogFailedAccess($event_data['username'], false, $_SERVER['REMOTE_ADDR']); unset($amp_security); } $sleep_time = $gEnv['core']['config']->Value('WRONG_LOGIN_DELAY'); if (!strlen($sleep_time)) { $sleep_time = 1; } $max_attempts = $gEnv['core']['config']->Value('MAX_WRONG_LOGINS'); if (!strlen($max_attempts)) { $max_attempts = 3; } sleep($sleep_time); if (isset($_SESSION['site_login_attempts'])) { $_SESSION['site_login_attempts']++; if ($_SESSION['site_login_attempts'] >= $max_attempts) { AmpDie($amp_locale->GetStr('wrongpwd')); } } else { $_SESSION['site_login_attempts'] = 1; } if ($reason) { $hui_mainstatus->mArgs['status'] = $amp_locale->GetStr($reason); } else { $hui_mainstatus->mArgs['status'] = $amp_locale->GetStr('wrongpwd'); } } else { $_SESSION['site_login_attempts'] = 0; } // Page render // $hui_maingroup->AddChild($hui_titlebar); //$hui_maingroup->AddChild( new HuiButton( 'amplogo', array( 'image' => CGI_URL.'ampbigdot.gif', 'action' => AMP_URL ) ) ); $hui_mainbframe->AddChild($hui_mainframe); $hui_mainbframe->AddChild(new HuiHorizBar('hb')); $hui_mainbframe->AddChild(new HuiLink('copyright', array('label' => $amp_locale->GetStr('auth_copyright.label'), 'link' => 'http://www.solarix.it/', 'target' => '_blank'))); $hui_maingroup->AddChild($hui_mainbframe); $hui_maingroup->AddChild($hui_mainstatus); $hui_topgroup->AddChild($hui_maingroup); $hui_page->AddChild($hui_topgroup); $hui->AddChild($hui_page); $hui->Render(); $carthag = Carthag::instance(); $carthag->halt(); }
<?php require 'auth.php'; $gHui = new Hui($GLOBALS['gEnv']['root']['db']); $gHui->LoadWidget('page'); $gHui->LoadWidget('xml'); $gHui->LoadWidget('fckeditor'); $gMain_disp = new HuiDispatcher('view'); print_r($_POST); $gMain_disp->AddEvent('default', 'main_default'); function main_default($eventData) { global $gXml_def; $gXml_def = '<vertgroup> <children> <label> <args> <label>Prova</label> </args> </label> <form><name>testo</name> <args> <action type="encoded">' . build_events_call_string('', array(array('view', 'default'))) . '</action> </args> <children> <fckeditor><name>pino</name> <args> <height>400</height>
<?php require 'auth.php'; $gHui = new Hui($GLOBALS['gEnv']['root']['db']); $gHui->LoadWidget('page'); $gHui->LoadWidget('xml'); $gHui->LoadWidget('htmlarea'); $gMain_disp = new HuiDispatcher('main'); print_r($_POST); $gMain_disp->AddEvent('default', 'main_default'); function main_default($eventData) { global $gXml_def; $gXml_def = '<vertgroup> <children> <label> <args> <label>Prova</label> </args> </label> <form><name>testo</name> <args> <action type="encoded">' . build_events_call_string('', array(array('main', 'default'))) . '</action> </args> <children> <htmlarea><name>pino</name> <args> <rows>10</rows>
* */ // $Id: sum.php,v 1.18 2004-07-08 15:04:25 alex Exp $ require './auth.php'; import('com.solarix.ampoliros.locale.Locale'); import('com.solarix.ampoliros.hui.Hui'); import('com.solarix.ampoliros.hui.HuiEvent'); import('com.solarix.ampoliros.hui.HuiEventsCall'); header('P3P: CP="CUR ADM OUR NOR STA NID"'); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s')); header('Cache-control: no-cache, must-revalidate'); header('Pragma: no-cache'); $amp_menu_locale = new Locale('amp_root_menu', $gEnv['root']['locale']['language']); $hui = new Hui($env['ampdb']); $hui->LoadWidget('empty'); $hui->LoadWidget('grid'); $hui->LoadWidget('horizframe'); $hui->LoadWidget('horizgroup'); $hui->LoadWidget('label'); $hui->LoadWidget('page'); $hui->LoadWidget('sessionkey'); $hui->LoadWidget('treemenu'); $hui->LoadWidget('vertframe'); $hui->LoadWidget('vertgroup'); $hui_page = new HuiPage('page', array('title' => 'Ampoliros' . (strlen(AMP_HOST) ? ' - ' . AMP_HOST . (strlen(AMP_DOMAIN) ? '.' . AMP_DOMAIN : '') : ''), 'border' => 'false')); $hui_page->mArgs['background'] = $hui_page->mThemeHandler->mStyle['menuback']; $hui_mainvertgroup = new HuiVertGroup('mainvertgroup'); $groups_query = $env['ampdb']->execute('SELECT * ' . 'FROM rootgroups ' . 'ORDER BY name'); $num_groups = $groups_query->numrows(); if ($num_groups > 0) {
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // $Id: sum.php,v 1.18 2004-07-08 15:04:25 alex Exp $ require './auth.php'; import('com.solarix.ampoliros.hui.Hui'); import('com.solarix.ampoliros.hui.HuiEvent'); import('com.solarix.ampoliros.hui.HuiEventsCall'); import('com.solarix.ampoliros.site.user.Permissions'); header('P3P: CP="CUR ADM OUR NOR STA NID"'); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s')); header('Cache-control: no-cache, must-revalidate'); header('Pragma: no-cache'); $hui = new Hui($env['ampdb']); $hui->LoadWidget('horizframe'); $hui->LoadWidget('horizgroup'); $hui->LoadWidget('page'); $hui->LoadWidget('treemenu'); $hui->LoadWidget('vertframe'); $hui->LoadWidget('vertgroup'); $hui_page = new HuiPage('page', array('title' => 'Ampoliros - ' . $env['sitedata']['sitename'], 'border' => 'false')); $hui_page->mArgs['background'] = $hui_page->mThemeHandler->mStyle['menuback']; $hui_mainvertgroup = new HuiVertGroup('mainvertgroup'); $tmpperm = new Permissions($env['db'], $env['currentgroupserial']); $groupsquery = $env['db']->execute('select * from admingroups order by name'); $numgroups = $groupsquery->numrows(); if ($numgroups > 0) { import('com.solarix.ampoliros.site.SiteSettings'); $site = new SiteSettings($env['db']); $prefs_id = 0;