Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function showrootbasedocument()
- {
- $sTitle = $GLOBALS['sNomeProduttore'] . ' ' . $GLOBALS['sSystemName'] . ' ';
- $sTitle .= $GLOBALS['sSystemVersion'] . $GLOBALS['sSystemPatchLevel'];
- $oSystem = new systembasedocument($sTitle);
- $oSystem->showheader(1);
- echo '<script type="text/javascript">' . "\n";
- echo ' Ext.onReady(function () {' . "\n";
- echo ' WHDesktop.newWindow("system_sites.php", 38, 40, 910, 650, "Nuovo sito", 2, false, false);' . "\n";
- echo ' });' . "\n";
- echo '</script>' . "\n";
- include 'library/kernel.js.php';
- $oSystem->showfooter();
- }
- function showbasedocument()
- {
- $aLanguageText = $GLOBALS['aLanguageText'];
- $sTitle = $GLOBALS['sSystemName'] . ' ';
- $sTitle .= $GLOBALS['sSystemVersion'] . $GLOBALS['sSystemPatchLevel'];
- $oSystem = new systembasedocument($sTitle);
- if ($GLOBALS['sToolbarView'] == 'toolbar') {
- $oSystem->showheader(3);
- include 'library/kernel.js.php';
- $oSystem->showfooter();
- echo '<script type="text/javascript">';
- echo 'parent.WHDesktop.getModule(\'page-cache\').createWindow();';
- echo '</script>';
- exit();
- }
- else {
- $oSystem->showheader(2);
- }
- global $bIsMSIE;
- $bWebHat5 = $GLOBALS['bWebHat5'];
- if (!$bWebHat5) {
- if ($bIsMSIE) {
- $iLeft = $GLOBALS['iAvailWidth'] - 260;
- $iHeight = $GLOBALS['iAvailHeight'] - 140;
- }
- else {
- $iLeft = $GLOBALS['iAvailWidth'] - 240;
- $iHeight = $GLOBALS['iAvailHeight'] - 110;
- }
- }
- else if ($bIsMSIE) {
- $iLeft = $GLOBALS['iAvailWidth'] - 254;
- $iHeight = $GLOBALS['iAvailHeight'] - 238;
- }
- else {
- $iLeft = $GLOBALS['iAvailWidth'] - 234;
- $iHeight = $GLOBALS['iAvailHeight'] - 220;
- }
- if ($aLanguageText['mgNotizieProduttore'] == 'Notizie dal produttore') {
- if (!$bWebHat5) {
- $oSystem->addwindow(40, $iLeft, 220, $iHeight, 'Finestra delle utilità', __DIR__, 1, 'system_info.php?sView=notizie_produttore&iAvailHeight=' . $GLOBALS['iAvailHeight'], 1, true);
- }
- }
- if ($GLOBALS['bCache'] == '1') {
- if (!$bWebHat5) {
- $oSystem->addwindow(0, 0, 83, 70, $aLanguageText['wtPubblicazioneModifiche'], __DIR__, 1, 'page_cache.php?sView=status', 0, true);
- }
- }
- $sQueryTxt = 'SELECT iShowMessage, iSiteId, sLastLoginVersion FROM system_users ';
- $sQueryTxt .= 'WHERE sUsername="' . $GLOBALS['uname'] . '"';
- $pQuery = mysql_query($sQueryTxt);
- $aRow = mysql_fetch_row($pQuery);
- $iSiteId = $aRow[1];
- if ($aRow[2] != $GLOBALS['sSystemVersion'] . $GLOBALS['sSystemPatchLevel']) {
- $sQueryTxt = 'SELECT COUNT(*) FROM system_changelog WHERE sVersion > "' . $aRow[2] . '"';
- if (mysql_result(mysql_query($sQueryTxt), 0, 0) != 0) {
- echo '<script type="text/javascript">' . "\n";
- echo ' Ext.onReady(function () {' . "\n";
- echo ' WHDesktop.newWindow("system_info.php?sView=changelog", ' . (($GLOBALS['iAvailWidth'] / 2) - 250) . ', ' . (($GLOBALS['iAvailHeight'] / 2) - 200) . ', 500, 400, "Ultimi aggiornamenti", 1, false, false);' . "\n";
- echo ' });' . "\n";
- echo '</script>' . "\n";
- }
- }
- if ($aRow[0] == '1') {
- $sQueryTxt = 'SELECT tValore FROM system_parameters WHERE sParametro="tMessage"';
- $pQuery = mysql_query($sQueryTxt);
- $aRow = mysql_fetch_row($pQuery);
- if ($aRow[0] != __DIR__) {
- echo '<script type="text/javascript">' . "\n";
- echo ' Ext.onReady(function () {' . "\n";
- echo ' WHDesktop.newWindow("system_info.php?sView=show_message", ' . (($GLOBALS['iAvailWidth'] / 2) - 185) . ', ' . (($GLOBALS['iAvailHeight'] / 2) - 90) . ', 370, 180, "Benvenuto", 1, false, false);' . "\n";
- echo ' });' . "\n";
- echo '</script>' . "\n";
- }
- }
- if (substr($GLOBALS['uname'], 0, 6) == 'spview') {
- echo '<script type="text/javascript">' . "\n";
- echo ' Ext.onReady(function () {' . "\n";
- echo ' WHDesktop.newWindow("modules/enerx_controllo/manage.php?sView=ricerca", 80, 80, ' . ($GLOBALS['iAvailWidth'] - 200) . ', ' . ($GLOBALS['iAvailHeight'] - 180) . ', "Ricerca", 1, false, false);' . "\n";
- echo ' });' . "\n";
- echo '</script>' . "\n";
- }
- $sQueryTxt = 'SELECT bDemoVersion FROM system_sites WHERE iId="' . $iSiteId . '"';
- $pQuery = mysql_query($sQueryTxt);
- $aRow = mysql_fetch_row($pQuery);
- if ($aRow[0] == '1') {
- if ($bWebHat5) {
- echo '<div align="center" style="position: absolute; bottom: 35px; right: 5px; z-index: 0; border-top: 1px solid #AFC6E4; border-left: 1px solid #AFC6E4; border-bottom: 1px solid #6F98BB; border-right: 1px solid #6F98BB;">';
- echo '<table width="210" border="0">';
- echo '<tr>';
- echo '<td align="center" bgcolor="#D5E9FF">';
- echo '<b>ATTIVAZIONE DIMOSTRATIVA</b><br />';
- echo '</td>';
- echo '</tr>';
- echo '<tr>';
- echo '<td bgcolor="#E9F2FB">';
- echo '<div align="justify">';
- echo 'Nei siti dimostrativi alcune funzioni potrebbero non funzionare in modo completo.<br /><br />';
- echo '<div align="center" style="padding-bottom: 10px;">';
- echo '<a href="http://www.keycode.it/video-corsi-webhat.php" onclick="return OpenPopup(this.href, 746, 413);">';
- echo '<img height="65" width="229" src="http://www.keycode.it/_media/images/banner_videocorsi_it.gif" alt="Guarda i Video Corsi di WebHat (popup)" title="Guarda i Video Corsi di WebHat (popup)" border="0" />';
- echo '</a>';
- echo '</div>';
- echo 'Puoi anche iscriverti ad uno dei corsi organizzati presso la nostra sede: <a href="http://www.keycode.it/italian/keycode-academy.php" target="_blank">guarda le date</a>.<br /><br />';
- echo 'Contattate il nostro <a href="mailto:marketing@keycode.it">staff</a> per una dimostrazione personalizzata';
- echo '</div>';
- echo '</td>';
- echo '</table>';
- echo '</div>';
- echo "\t\t\t";
- ...........................................................
- .....................................
- ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement